Untitled
javascript
a month ago
2.1 MB
4
Indexable
Never
!function(e){function t(t){for(var n,a,i=t[0],s=t[1],o=0,c=[];o<i.length;o++)a=i[o],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&c.push(r[a][0]),r[a]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(l&&l(t);c.length;)c.shift()()}var n={},r={4:0};function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var i=new Promise((function(t,a){n=r[e]=[t,a]}));t.push(n[2]=i);var s,o=document.createElement("script");o.charset="utf-8",o.timeout=120,a.nc&&o.setAttribute("nonce",a.nc),o.src=function(e){return a.p+"js/background-"+e+".chunk.js"}(e);var l=new Error;s=function(t){o.onerror=o.onload=null,clearTimeout(c);var n=r[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,n[1](l)}r[e]=void 0}};var c=setTimeout((function(){s({type:"timeout",target:o})}),12e4);o.onerror=o.onload=s,document.head.appendChild(o)}return Promise.all(t)},a.m=e,a.c=n,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var o=0;o<i.length;o++)t(i[o]);var l=s;a(a.s=407)}([function(e,t,n){"use strict";e.exports=n(394)},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return l})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function a(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function o(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e}},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,l=s(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))a.call(n,u)&&(l[u]=n[u]);if(r){o=r(n);for(var p=0;p<o.length;p++)i.call(n,o[p])&&(l[o[p]]=n[o[p]])}}return l}},function(e,t){e.exports=require("@termius/libtermius")},function(e,t,n){"use strict";const r=n(319),a=r.gt,i=r.lt,s=n(35).release,o=n(320);function l(){}function c(){const e=s().split(".");return`10.${e[0]-4}.${e[1]}`}l.prototype.renderer=function(){return"renderer"===process.type},l.prototype.main=function(){return"browser"===process.type},l.prototype.osx=l.prototype.macOS=function(){return"darwin"===process.platform},l.prototype.windows=function(){return"win32"===process.platform},l.prototype.linux=function(){return"linux"===process.platform},l.prototype.x86=function(){return"ia32"===process.arch},l.prototype.x64=function(){return"x64"===process.arch},l.prototype.production=function(){return!o},l.prototype.dev=function(){return o},l.prototype.sandbox=function(){return"APP_SANDBOX_CONTAINER_ID"in process.env},l.prototype.mas=function(){return!0===process.mas},l.prototype.windowsStore=function(){return!0===process.windowsStore},l.prototype.all=function(){const e=new Array(arguments.length);for(var t=0;t<e.length;t++)e[t]=arguments[t];if(e.length){for(t=0;t<e.length;t++)if(!e[t]())return!1;return!0}},l.prototype.none=function(){const e=new Array(arguments.length);for(var t=0;t<e.length;t++)e[t]=arguments[t];if(e.length){for(t=0;t<e.length;t++)if(e[t]())return!1;return!0}},l.prototype.one=function(){const e=new Array(arguments.length);for(var t=0;t<e.length;t++)e[t]=arguments[t];if(e.length){for(t=0;t<e.length;t++)if(e[t]())return!0;return!1}},l.prototype.release=function(e){if(this.osx())return e===c();if(this.windows()){e=e.split(".");const t=s().split(".");return 2===e.length?`${t[0]}.${t[1]}`==`${e[0]}.${e[1]}`:`${t[0]}.${t[1]}.${t[2]}`==`${e[0]}.${e[1]}.${e[2]}`}return null},l.prototype.gtRelease=function(e){if(this.osx())return a(e,c());if(this.windows()){e=e.split(".");const t=s().split(".");return 2===e.length?a(`${e[0]}.${e[1]}.0`,`${t[0]}.${t[1]}.0`):a(`${e[0]}.${e[1]}.${e[2]}`,`${t[0]}.${t[1]}.${t[2]}`)}return null},l.prototype.ltRelease=function(e){if(this.osx())return i(e,c());if(this.windows()){e=e.split(".");const t=s().split(".");return 2===e.length?i(`${e[0]}.${e[1]}.0`,`${t[0]}.${t[1]}.0`):i(`${e[0]}.${e[1]}.${e[2]}`,`${t[0]}.${t[1]}.${t[2]}`)}return null},e.exports=new l},,function(e,t,n){"use strict";function r(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(e,Error)}}function a(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function i(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function s(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function o(e){return"[object String]"===Object.prototype.toString.call(e)}function l(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return"undefined"!=typeof Event&&m(e,Event)}function p(e){return"undefined"!=typeof Element&&m(e,Element)}function d(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function h(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function f(e){return c(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function m(e,t){try{return e instanceof t}catch(e){return!1}}n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"k",(function(){return o})),n.d(t,"i",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return p})),n.d(t,"j",(function(){return d})),n.d(t,"m",(function(){return h})),n.d(t,"l",(function(){return f})),n.d(t,"g",(function(){return m}))},function(e,t){e.exports=require("electron")},function(e,t,n){var r=n(348),a=n(116)((function(e,t,n){r(e,t,n)}));e.exports=a},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){e.exports=n(236)},function(e,t){e.exports=require("path")},function(e,t,n){var r=n(262),a=n(301),i=n(17),s=n(9),o=n(307);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?s(e)?a(e[0],e[1]):r(e):o(e)}},function(e,t,n){var r=n(46),a=n(77),i=n(12);e.exports=function(e,t){var n={};return t=i(t,3),a(e,(function(e,a,i){r(n,a,t(e,a,i))})),n}},function(e,t,n){"use strict";n.d(t,"e",(function(){return i})),n.d(t,"j",(function(){return s})),n.d(t,"i",(function(){return o})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return p})),n.d(t,"f",(function(){return d})),n.d(t,"h",(function(){return f})),n.d(t,"g",(function(){return m}));var r=n(69),a=(n(36),{});function i(){return Object(r.b)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function s(){var e=i(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function o(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function l(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function c(e){var t=i();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var a=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),a}function u(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function p(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function d(){try{return document.location.href}catch(e){return""}}var h=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function f(e){var t=e.match(h)||[],n=parseInt(t[1],10),r=parseInt(t[2],10),a=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(a)?void 0:a,prerelease:t[4]}}function m(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"g",(function(){return m})),n.d(t,"d",(function(){return S})),n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return g}));var r=n(1),a=n(126),i=n(6),s=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}(),o=n(92),l=n(36);function c(e,t,n){if(t in e){var r=e[t],a=n(r);if("function"==typeof a)try{a.prototype=a.prototype||{},Object.defineProperties(a,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=a}}function u(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function p(e){if(Object(i.d)(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(Object(i.f)(e)){var s=e,o={};o.type=s.type;try{o.target=Object(i.c)(s.target)?Object(a.a)(s.target):Object.prototype.toString.call(s.target)}catch(e){o.target="<unknown>"}try{o.currentTarget=Object(i.c)(s.currentTarget)?Object(a.a)(s.currentTarget):Object.prototype.toString.call(s.currentTarget)}catch(e){o.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&Object(i.g)(e,CustomEvent)&&(o.detail=s.detail),s)Object.prototype.hasOwnProperty.call(s,r)&&(o[r]=s);return o}return e}function d(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function h(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=S(e,t);return d(r)>n?h(e,t-1,n):r}function f(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Object(i.l)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Object(o.a)(e)+"]":e}function m(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new s),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=f(e);return Object(i.i)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var a=f(t,e);if(Object(i.i)(a))return a;var o=p(t),l=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(l[c]=m(c,o[c],n-1,r));return r.unmemoize(t),l}function S(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return m(e,n,t)})))}catch(e){return"**non-serializable**"}}function y(e,t){void 0===t&&(t=40);var n=Object.keys(p(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(l.d)(n[0],t);for(var r=n.length;r>0;r--){var a=n.slice(0,r).join(", ");if(!(a.length>t))return r===n.length?a:Object(l.d)(a,t)}return""}function g(e){var t,n;if(Object(i.h)(e)){var a=e,s={};try{for(var o=Object(r.e)(Object.keys(a)),l=o.next();!l.done;l=o.next()){var c=l.value;void 0!==a[c]&&(s[c]=g(a[c]))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return s}return Array.isArray(e)?e.map(g):e}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(138),a=n(139);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var o=0;o<16;++o)t[i+o]=s[o];return t||a(s)}},function(e,t){e.exports=require("events")},function(e,t,n){var r=n(134),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=require("fs/promises")},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){"use strict";var r,a;function i(e){throw e}function s(e,t,n){4!==t.length&&i(new h.exception.invalid("invalid aes block size"));var r=e.a[n],a=t[0]^r[0],s=t[n?3:1]^r[1],o=t[2]^r[2];t=t[n?1:3]^r[3];var l,c,u,p,d=r.length/4-2,f=4,m=[0,0,0,0];e=(l=e.m[n])[0];var S=l[1],y=l[2],g=l[3],v=l[4];for(p=0;d>p;p++)l=e[a>>>24]^S[s>>16&255]^y[o>>8&255]^g[255&t]^r[f],c=e[s>>>24]^S[o>>16&255]^y[t>>8&255]^g[255&a]^r[f+1],u=e[o>>>24]^S[t>>16&255]^y[a>>8&255]^g[255&s]^r[f+2],t=e[t>>>24]^S[a>>16&255]^y[s>>8&255]^g[255&o]^r[f+3],f+=4,a=l,s=c,o=u;for(p=0;4>p;p++)m[n?3&-p:p]=v[a>>>24]<<24^v[s>>16&255]<<16^v[o>>8&255]<<8^v[255&t]^r[f++],l=a,a=s,s=o,o=t,t=l;return m}function o(e,t){var n,r=h.random.B[e],a=[];for(n in r)r.hasOwnProperty(n)&&a.push(r[n]);for(n=0;n<a.length;n++)a[n](t)}function l(e){e.a=c(e).concat(c(e)),e.C=new h.cipher.aes(e.a)}function c(e){for(var t=0;4>t&&(e.i[t]=e.i[t]+1|0,!e.i[t]);t++);return e.C.encrypt(e.i)}var u,p=void 0,d=!1,h={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(e){this.toString=function(){return"CORRUPT: "+this.message},this.message=e},invalid:function(e){this.toString=function(){return"INVALID: "+this.message},this.message=e},bug:function(e){this.toString=function(){return"BUG: "+this.message},this.message=e},notReady:function(e){this.toString=function(){return"NOT READY: "+this.message},this.message=e}}};e.exports&&(e.exports=h),h.cipher.aes=function(e){this.m[0][0][0]||this.G();var t,n,r,a,s=this.m[0][4],o=this.m[1],l=1;for(4!==(t=e.length)&&6!==t&&8!==t&&i(new h.exception.invalid("invalid aes key size")),this.a=[r=e.slice(0),a=[]],e=t;4*t+28>e;e++)n=r[e-1],(0==e%t||8===t&&4==e%t)&&(n=s[n>>>24]<<24^s[n>>16&255]<<16^s[n>>8&255]<<8^s[255&n],0==e%t&&(n=n<<8^n>>>24^l<<24,l=l<<1^283*(l>>7))),r[e]=r[e-t]^n;for(t=0;e;t++,e--)n=r[3&t?e:e-4],a[t]=4>=e||4>t?n:o[0][s[n>>>24]]^o[1][s[n>>16&255]]^o[2][s[n>>8&255]]^o[3][s[255&n]]},h.cipher.aes.prototype={encrypt:function(e){return s(this,e,0)},decrypt:function(e){return s(this,e,1)},m:[[[],[],[],[],[]],[[],[],[],[],[]]],G:function(){var e,t,n,r,a,i,s,o=this.m[0],l=this.m[1],c=o[4],u=l[4],p=[],d=[];for(e=0;256>e;e++)d[(p[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!c[t];t^=r||1,n=d[n]||1)for(i=(i=n^n<<1^n<<2^n<<3^n<<4)>>8^255&i^99,c[t]=i,u[i]=t,s=16843009*(a=p[e=p[r=p[t]]])^65537*e^257*r^16843008*t,a=257*p[i]^16843008*i,e=0;4>e;e++)o[e][t]=a=a<<24^a>>>8,l[e][i]=s=s<<24^s>>>8;for(e=0;5>e;e++)o[e]=o[e].slice(0),l[e]=l[e].slice(0)}},h.bitArray={bitSlice:function(e,t,n){return e=h.bitArray.P(e.slice(t/32),32-(31&t)).slice(1),n===p?e:h.bitArray.clamp(e,n-t)},extract:function(e,t,n){var r=Math.floor(-t-n&31);return(-32&(t+n-1^t)?e[t/32|0]<<32-r^e[t/32+1|0]>>>r:e[t/32|0]>>>r)&(1<<n)-1},concat:function(e,t){if(0===e.length||0===t.length)return e.concat(t);var n=e[e.length-1],r=h.bitArray.getPartial(n);return 32===r?e.concat(t):h.bitArray.P(t,r,0|n,e.slice(0,e.length-1))},bitLength:function(e){var t=e.length;return 0===t?0:32*(t-1)+h.bitArray.getPartial(e[t-1])},clamp:function(e,t){if(32*e.length<t)return e;var n=(e=e.slice(0,Math.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=h.bitArray.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:function(e,t,n){return 32===e?t:(n?0|t:t<<32-e)+1099511627776*e},getPartial:function(e){return Math.round(e/1099511627776)||32},equal:function(e,t){if(h.bitArray.bitLength(e)!==h.bitArray.bitLength(t))return d;var n,r=0;for(n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r},P:function(e,t,n,r){var a;for(a=0,r===p&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(a=0;a<e.length;a++)r.push(n|e[a]>>>t),n=e[a]<<32-t;return a=e.length?e[e.length-1]:0,e=h.bitArray.getPartial(a),r.push(h.bitArray.partial(t+e&31,t+e>32?n:r.pop(),1)),r},g:function(e,t){return[e[0]^t[0],e[1]^t[1],e[2]^t[2],e[3]^t[3]]}},h.codec.utf8String={fromBits:function(e){var t,n,r="",a=h.bitArray.bitLength(e);for(t=0;a/8>t;t++)0==(3&t)&&(n=e[t/4]),r+=String.fromCharCode(n>>>24),n<<=8;return decodeURIComponent(escape(r))},toBits:function(e){e=unescape(encodeURIComponent(e));var t,n=[],r=0;for(t=0;t<e.length;t++)r=r<<8|e.charCodeAt(t),3==(3&t)&&(n.push(r),r=0);return 3&t&&n.push(h.bitArray.partial(8*(3&t),r)),n}},h.codec.hex={fromBits:function(e){var t,n="";for(t=0;t<e.length;t++)n+=(0xf00000000000+(0|e[t])).toString(16).substr(4);return n.substr(0,h.bitArray.bitLength(e)/4)},toBits:function(e){var t,n,r=[];for(n=(e=e.replace(/\s|0x/g,"")).length,e+="00000000",t=0;t<e.length;t+=8)r.push(0^parseInt(e.substr(t,8),16));return h.bitArray.clamp(r,4*n)}},h.codec.base64={K:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(e,t,n){var r="",a=0,i=h.codec.base64.K,s=0,o=h.bitArray.bitLength(e);for(n&&(i=i.substr(0,62)+"-_"),n=0;6*r.length<o;)r+=i.charAt((s^e[n]>>>a)>>>26),6>a?(s=e[n]<<6-a,a+=26,n++):(s<<=6,a-=6);for(;3&r.length&&!t;)r+="=";return r},toBits:function(e,t){e=e.replace(/\s|=/g,"");var n,r,a=[],s=0,o=h.codec.base64.K,l=0;for(t&&(o=o.substr(0,62)+"-_"),n=0;n<e.length;n++)0>(r=o.indexOf(e.charAt(n)))&&i(new h.exception.invalid("this isn't base64!")),s>26?(s-=26,a.push(l^r>>>s),l=r<<32-s):l^=r<<32-(s+=6);return 56&s&&a.push(h.bitArray.partial(56&s,l,1)),a}},h.codec.base64url={fromBits:function(e){return h.codec.base64.fromBits(e,1,1)},toBits:function(e){return h.codec.base64.toBits(e,1)}},h.hash.sha256=function(e){this.a[0]||this.G(),e?(this.d=e.d.slice(0),this.c=e.c.slice(0),this.b=e.b):this.reset()},h.hash.sha256.hash=function(e){return(new h.hash.sha256).update(e).finalize()},h.hash.sha256.prototype={blockSize:512,reset:function(){return this.d=this.s.slice(0),this.c=[],this.b=0,this},update:function(e){"string"==typeof e&&(e=h.codec.utf8String.toBits(e));var t,n=this.c=h.bitArray.concat(this.c,e);for(t=this.b,e=this.b=t+h.bitArray.bitLength(e),t=512+t&-512;e>=t;t+=512)this.o(n.splice(0,16));return this},finalize:function(){var e,t=this.c,n=this.d;for(e=(t=h.bitArray.concat(t,[h.bitArray.partial(1,1)])).length+2;15&e;e++)t.push(0);for(t.push(Math.floor(this.b/4294967296)),t.push(0|this.b);t.length;)this.o(t.splice(0,16));return this.reset(),n},s:[],a:[],G:function(){function e(e){return 4294967296*(e-Math.floor(e))|0}var t,n=0,r=2;e:for(;64>n;r++){for(t=2;r>=t*t;t++)if(0==r%t)continue e;8>n&&(this.s[n]=e(Math.pow(r,.5))),this.a[n]=e(Math.pow(r,1/3)),n++}},o:function(e){var t,n,r=e.slice(0),a=this.d,i=this.a,s=a[0],o=a[1],l=a[2],c=a[3],u=a[4],p=a[5],d=a[6],h=a[7];for(e=0;64>e;e++)16>e?t=r[e]:(t=r[e+1&15],n=r[e+14&15],t=r[15&e]=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(n>>>17^n>>>19^n>>>10^n<<15^n<<13)+r[15&e]+r[e+9&15]|0),t=t+h+(u>>>6^u>>>11^u>>>25^u<<26^u<<21^u<<7)+(d^u&(p^d))+i[e],h=d,d=p,p=u,u=c+t|0,c=l,l=o,s=t+((o=s)&l^c&(o^l))+(o>>>2^o>>>13^o>>>22^o<<30^o<<19^o<<10)|0;a[0]=a[0]+s|0,a[1]=a[1]+o|0,a[2]=a[2]+l|0,a[3]=a[3]+c|0,a[4]=a[4]+u|0,a[5]=a[5]+p|0,a[6]=a[6]+d|0,a[7]=a[7]+h|0}},h.hash.sha1=function(e){e?(this.d=e.d.slice(0),this.c=e.c.slice(0),this.b=e.b):this.reset()},h.hash.sha1.hash=function(e){return(new h.hash.sha1).update(e).finalize()},h.hash.sha1.prototype={blockSize:512,reset:function(){return this.d=this.s.slice(0),this.c=[],this.b=0,this},update:function(e){"string"==typeof e&&(e=h.codec.utf8String.toBits(e));var t,n=this.c=h.bitArray.concat(this.c,e);for(t=this.b,e=this.b=t+h.bitArray.bitLength(e),t=this.blockSize+t&-this.blockSize;e>=t;t+=this.blockSize)this.o(n.splice(0,16));return this},finalize:function(){var e,t=this.c,n=this.d;for(e=(t=h.bitArray.concat(t,[h.bitArray.partial(1,1)])).length+2;15&e;e++)t.push(0);for(t.push(Math.floor(this.b/4294967296)),t.push(0|this.b);t.length;)this.o(t.splice(0,16));return this.reset(),n},s:[1732584193,4023233417,2562383102,271733878,3285377520],a:[1518500249,1859775393,2400959708,3395469782],o:function(e){var t,n,r,a,i,s,o=e.slice(0),l=this.d;for(n=l[0],r=l[1],a=l[2],i=l[3],s=l[4],e=0;79>=e;e++)e>=16&&(o[e]=(o[e-3]^o[e-8]^o[e-14]^o[e-16])<<1|(o[e-3]^o[e-8]^o[e-14]^o[e-16])>>>31),t=(n<<5|n>>>27)+(t=19>=e?r&a|~r&i:39>=e?r^a^i:59>=e?r&a|r&i|a&i:79>=e?r^a^i:p)+s+o[e]+this.a[Math.floor(e/20)]|0,s=i,i=a,a=r<<30|r>>>2,r=n,n=t;l[0]=l[0]+n|0,l[1]=l[1]+r|0,l[2]=l[2]+a|0,l[3]=l[3]+i|0,l[4]=l[4]+s|0}},h.mode.ccm={name:"ccm",encrypt:function(e,t,n,r,a){var s,o=t.slice(0),l=h.bitArray,c=l.bitLength(n)/8,u=l.bitLength(o)/8;for(a=a||64,r=r||[],7>c&&i(new h.exception.invalid("ccm: iv must be at least 7 bytes")),s=2;4>s&&u>>>8*s;s++);return 15-c>s&&(s=15-c),n=l.clamp(n,8*(15-s)),t=h.mode.ccm.M(e,t,n,r,a,s),o=h.mode.ccm.p(e,o,n,t,a,s),l.concat(o.data,o.tag)},decrypt:function(e,t,n,r,a){a=a||64,r=r||[];var s=h.bitArray,o=s.bitLength(n)/8,l=s.bitLength(t),c=s.clamp(t,l-a),u=s.bitSlice(t,l-a);l=(l-a)/8;for(7>o&&i(new h.exception.invalid("ccm: iv must be at least 7 bytes")),t=2;4>t&&l>>>8*t;t++);return 15-o>t&&(t=15-o),n=s.clamp(n,8*(15-t)),c=h.mode.ccm.p(e,c,n,u,a,t),e=h.mode.ccm.M(e,c.data,n,r,a,t),s.equal(c.tag,e)||i(new h.exception.corrupt("ccm: tag doesn't match")),c.data},M:function(e,t,n,r,a,s){var o=[],l=h.bitArray,c=l.g;if(((a/=8)%2||4>a||a>16)&&i(new h.exception.invalid("ccm: invalid tag length")),(4294967295<r.length||4294967295<t.length)&&i(new h.exception.bug("ccm: can't deal with 4GiB or more data")),s=[l.partial(8,(r.length?64:0)|a-2<<2|s-1)],(s=l.concat(s,n))[3]|=l.bitLength(t)/8,s=e.encrypt(s),r.length)for(65279>=(n=l.bitLength(r)/8)?o=[l.partial(16,n)]:4294967295>=n&&(o=l.concat([l.partial(16,65534)],[n])),o=l.concat(o,r),r=0;r<o.length;r+=4)s=e.encrypt(c(s,o.slice(r,r+4).concat([0,0,0])));for(r=0;r<t.length;r+=4)s=e.encrypt(c(s,t.slice(r,r+4).concat([0,0,0])));return l.clamp(s,8*a)},p:function(e,t,n,r,a,i){var s,o=h.bitArray;s=o.g;var l=t.length,c=o.bitLength(t);if(n=o.concat([o.partial(8,i-1)],n).concat([0,0,0]).slice(0,4),r=o.bitSlice(s(r,e.encrypt(n)),0,a),!l)return{tag:r,data:[]};for(s=0;l>s;s+=4)n[3]++,a=e.encrypt(n),t[s]^=a[0],t[s+1]^=a[1],t[s+2]^=a[2],t[s+3]^=a[3];return{tag:r,data:o.clamp(t,c)}}},h.beware===p&&(h.beware={}),h.beware["CBC mode is dangerous because it doesn't protect message integrity."]=function(){h.mode.cbc={name:"cbc",encrypt:function(e,t,n,r){r&&r.length&&i(new h.exception.invalid("cbc can't authenticate data")),128!==h.bitArray.bitLength(n)&&i(new h.exception.invalid("cbc iv must be 128 bits"));var a=h.bitArray,s=a.g,o=a.bitLength(t),l=0,c=[];for(7&o&&i(new h.exception.invalid("pkcs#5 padding only works for multiples of a byte")),r=0;o>=l+128;r+=4,l+=128)n=e.encrypt(s(n,t.slice(r,r+4))),c.splice(r,0,n[0],n[1],n[2],n[3]);return o=16843009*(16-(o>>3&15)),n=e.encrypt(s(n,a.concat(t,[o,o,o,o]).slice(r,r+4))),c.splice(r,0,n[0],n[1],n[2],n[3]),c},decrypt:function(e,t,n,r){r&&r.length&&i(new h.exception.invalid("cbc can't authenticate data")),128!==h.bitArray.bitLength(n)&&i(new h.exception.invalid("cbc iv must be 128 bits")),(127&h.bitArray.bitLength(t)||!t.length)&&i(new h.exception.corrupt("cbc ciphertext must be a positive multiple of the block size"));var a,s=h.bitArray,o=s.g,l=[];for(r=0;r<t.length;r+=4)a=t.slice(r,r+4),n=o(n,e.decrypt(a)),l.splice(r,0,n[0],n[1],n[2],n[3]),n=a;return(0==(a=255&l[r-1])||a>16)&&i(new h.exception.corrupt("pkcs#5 padding corrupt")),n=16843009*a,s.equal(s.bitSlice([n,n,n,n],0,8*a),s.bitSlice(l,32*l.length-8*a,32*l.length))||i(new h.exception.corrupt("pkcs#5 padding corrupt")),s.bitSlice(l,0,32*l.length-8*a)}}},h.mode.ocb2={name:"ocb2",encrypt:function(e,t,n,r,a,s){128!==h.bitArray.bitLength(n)&&i(new h.exception.invalid("ocb iv must be 128 bits"));var o,l=h.mode.ocb2.I,c=h.bitArray,u=c.g,p=[0,0,0,0];n=l(e.encrypt(n));var d,f=[];for(r=r||[],a=a||64,o=0;o+4<t.length;o+=4)p=u(p,d=t.slice(o,o+4)),f=f.concat(u(n,e.encrypt(u(n,d)))),n=l(n);return d=t.slice(o),t=c.bitLength(d),o=e.encrypt(u(n,[0,0,0,t])),d=c.clamp(u(d.concat([0,0,0]),o),t),p=u(p,u(d.concat([0,0,0]),o)),p=e.encrypt(u(p,u(n,l(n)))),r.length&&(p=u(p,s?r:h.mode.ocb2.pmac(e,r))),f.concat(c.concat(d,c.clamp(p,a)))},decrypt:function(e,t,n,r,a,s){128!==h.bitArray.bitLength(n)&&i(new h.exception.invalid("ocb iv must be 128 bits")),a=a||64;var o,l,c=h.mode.ocb2.I,u=h.bitArray,p=u.g,d=[0,0,0,0],f=c(e.encrypt(n)),m=h.bitArray.bitLength(t)-a,S=[];for(r=r||[],n=0;m/32>n+4;n+=4)o=p(f,e.decrypt(p(f,t.slice(n,n+4)))),d=p(d,o),S=S.concat(o),f=c(f);return l=m-32*n,o=e.encrypt(p(f,[0,0,0,l])),o=p(o,u.clamp(t.slice(n),l).concat([0,0,0])),d=p(d,o),d=e.encrypt(p(d,p(f,c(f)))),r.length&&(d=p(d,s?r:h.mode.ocb2.pmac(e,r))),u.equal(u.clamp(d,a),u.bitSlice(t,m))||i(new h.exception.corrupt("ocb: tag doesn't match")),S.concat(u.clamp(o,l))},pmac:function(e,t){var n,r=h.mode.ocb2.I,a=h.bitArray,i=a.g,s=[0,0,0,0],o=i(o=e.encrypt([0,0,0,0]),r(r(o)));for(n=0;n+4<t.length;n+=4)o=r(o),s=i(s,e.encrypt(i(o,t.slice(n,n+4))));return n=t.slice(n),128>a.bitLength(n)&&(o=i(o,r(o)),n=a.concat(n,[-2147483648,0,0,0])),s=i(s,n),e.encrypt(i(r(i(o,r(o))),s))},I:function(e){return[e[0]<<1^e[1]>>>31,e[1]<<1^e[2]>>>31,e[2]<<1^e[3]>>>31,e[3]<<1^135*(e[0]>>>31)]}},h.mode.gcm={name:"gcm",encrypt:function(e,t,n,r,a){var i=t.slice(0);return t=h.bitArray,r=r||[],e=h.mode.gcm.p(!0,e,i,r,n,a||128),t.concat(e.data,e.tag)},decrypt:function(e,t,n,r,a){var s=t.slice(0),o=h.bitArray,l=o.bitLength(s);return r=r||[],l>=(a=a||128)?(t=o.bitSlice(s,l-a),s=o.bitSlice(s,0,l-a)):(t=s,s=[]),e=h.mode.gcm.p(d,e,s,r,n,a),o.equal(e.tag,t)||i(new h.exception.corrupt("gcm: tag doesn't match")),e.data},V:function(e,t){var n,r,a,i,s,o=h.bitArray.g;for(a=[0,0,0,0],i=t.slice(0),n=0;128>n;n++){for((r=0!=(e[Math.floor(n/32)]&1<<31-n%32))&&(a=o(a,i)),s=0!=(1&i[3]),r=3;r>0;r--)i[r]=i[r]>>>1|(1&i[r-1])<<31;i[0]>>>=1,s&&(i[0]^=-520093696)}return a},j:function(e,t,n){var r,a=n.length;for(t=t.slice(0),r=0;a>r;r+=4)t[0]^=4294967295&n[r],t[1]^=4294967295&n[r+1],t[2]^=4294967295&n[r+2],t[3]^=4294967295&n[r+3],t=h.mode.gcm.V(t,e);return t},p:function(e,t,n,r,a,i){var s,o,l,c,u,p,d,f,m=h.bitArray;for(p=n.length,d=m.bitLength(n),f=m.bitLength(r),o=m.bitLength(a),s=t.encrypt([0,0,0,0]),96===o?(a=a.slice(0),a=m.concat(a,[1])):(a=h.mode.gcm.j(s,[0,0,0,0],a),a=h.mode.gcm.j(s,a,[0,0,Math.floor(o/4294967296),4294967295&o])),o=h.mode.gcm.j(s,[0,0,0,0],r),u=a.slice(0),r=o.slice(0),e||(r=h.mode.gcm.j(s,o,n)),c=0;p>c;c+=4)u[3]++,l=t.encrypt(u),n[c]^=l[0],n[c+1]^=l[1],n[c+2]^=l[2],n[c+3]^=l[3];return n=m.clamp(n,d),e&&(r=h.mode.gcm.j(s,o,n)),e=[Math.floor(f/4294967296),4294967295&f,Math.floor(d/4294967296),4294967295&d],r=h.mode.gcm.j(s,r,e),l=t.encrypt(a),r[0]^=l[0],r[1]^=l[1],r[2]^=l[2],r[3]^=l[3],{tag:m.bitSlice(r,0,i),data:n}}},h.misc.hmac=function(e,t){this.N=t=t||h.hash.sha256;var n,r=[[],[]],a=t.prototype.blockSize/32;for(this.q=[new t,new t],e.length>a&&(e=t.hash(e)),n=0;a>n;n++)r[0][n]=909522486^e[n],r[1][n]=1549556828^e[n];this.q[0].update(r[0]),this.q[1].update(r[1])},h.misc.hmac.prototype.encrypt=h.misc.hmac.prototype.mac=function(e){return e=new this.N(this.q[0]).update(e).finalize(),new this.N(this.q[1]).update(e).finalize()},h.misc.pbkdf2=function(e,t,n,r,a){n=n||1e3,(0>r||0>n)&&i(h.exception.invalid("invalid params to pbkdf2")),"string"==typeof e&&(e=h.codec.utf8String.toBits(e)),e=new(a=a||h.misc.hmac)(e);var s,o,l,c,u=[],p=h.bitArray;for(c=1;32*u.length<(r||1);c++){for(a=s=e.encrypt(p.concat(t,[c])),o=1;n>o;o++)for(s=e.encrypt(s),l=0;l<s.length;l++)a[l]^=s[l];u=u.concat(a)}return r&&(u=p.clamp(u,r)),u},h.prng=function(e){this.e=[new h.hash.sha256],this.k=[0],this.H=0,this.w={},this.F=0,this.L={},this.O=this.f=this.l=this.U=0,this.a=[0,0,0,0,0,0,0,0],this.i=[0,0,0,0],this.C=p,this.D=e,this.r=d,this.B={progress:{},seeded:{}},this.n=this.T=0,this.z=1,this.A=2,this.R=65536,this.J=[0,48,64,96,128,192,256,384,512,768,1024],this.S=3e4,this.Q=80},h.prng.prototype={randomWords:function(e,t){var n,r,a=[];if((n=this.isReady(t))===this.n&&i(new h.exception.notReady("generator isn't seeded")),n&this.A){n=!(n&this.z),r=[];var s,o=0;for(this.O=r[0]=(new Date).valueOf()+this.S,s=0;16>s;s++)r.push(4294967296*Math.random()|0);for(s=0;s<this.e.length&&(r=r.concat(this.e[s].finalize()),o+=this.k[s],this.k[s]=0,n||!(this.H&1<<s));s++);for(this.H>=1<<this.e.length&&(this.e.push(new h.hash.sha256),this.k.push(0)),this.f-=o,o>this.l&&(this.l=o),this.H++,this.a=h.hash.sha256.hash(this.a.concat(r)),this.C=new h.cipher.aes(this.a),n=0;4>n&&(this.i[n]=this.i[n]+1|0,!this.i[n]);n++);}for(n=0;e>n;n+=4)0==(n+1)%this.R&&l(this),r=c(this),a.push(r[0],r[1],r[2],r[3]);return l(this),a.slice(0,e)},setDefaultParanoia:function(e){this.D=e},addEntropy:function(e,t,n){n=n||"user";var r,a,s=(new Date).valueOf(),l=this.w[n],c=this.isReady(),u=0;switch((r=this.L[n])===p&&(r=this.L[n]=this.U++),l===p&&(l=this.w[n]=0),this.w[n]=(this.w[n]+1)%this.e.length,typeof e){case"number":t===p&&(t=1),this.e[l].update([r,this.F++,1,t,s,1,0|e]);break;case"object":if("[object Uint32Array]"===(n=Object.prototype.toString.call(e))){for(a=[],n=0;n<e.length;n++)a.push(e[n]);e=a}else for("[object Array]"!==n&&(u=1),n=0;n<e.length&&!u;n++)"number"!=typeof e[n]&&(u=1);if(!u){if(t===p)for(n=t=0;n<e.length;n++)for(a=e[n];a>0;)t++,a>>>=1;this.e[l].update([r,this.F++,2,t,s,e.length].concat(e))}break;case"string":t===p&&(t=e.length),this.e[l].update([r,this.F++,3,t,s,e.length]),this.e[l].update(e);break;default:u=1}u&&i(new h.exception.bug("random: addEntropy only supports number, array of numbers or string")),this.k[l]+=t,this.f+=t,c===this.n&&(this.isReady()!==this.n&&o("seeded",Math.max(this.l,this.f)),o("progress",this.getProgress()))},isReady:function(e){return e=this.J[e!==p?e:this.D],this.l&&this.l>=e?this.k[0]>this.Q&&(new Date).valueOf()>this.O?this.A|this.z:this.z:this.f>=e?this.A|this.n:this.n},getProgress:function(e){return e=this.J[e||this.D],this.l>=e||this.f>e?1:this.f/e},startCollectors:function(){this.r||(window.addEventListener?(window.addEventListener("load",this.t,d),window.addEventListener("mousemove",this.u,d)):document.attachEvent?(document.attachEvent("onload",this.t),document.attachEvent("onmousemove",this.u)):i(new h.exception.bug("can't attach event")),this.r=!0)},stopCollectors:function(){this.r&&(window.removeEventListener?(window.removeEventListener("load",this.t,d),window.removeEventListener("mousemove",this.u,d)):window.detachEvent&&(window.detachEvent("onload",this.t),window.detachEvent("onmousemove",this.u)),this.r=d)},addEventListener:function(e,t){this.B[e][this.T++]=t},removeEventListener:function(e,t){var n,r,a=this.B[e],i=[];for(r in a)a.hasOwnProperty(r)&&a[r]===t&&i.push(r);for(n=0;n<i.length;n++)delete a[r=i[n]]},u:function(e){h.random.addEntropy([e.x||e.clientX||e.offsetX||0,e.y||e.clientY||e.offsetY||0],2,"mouse")},t:function(){h.random.addEntropy((new Date).valueOf(),2,"loadtime")}},h.random=new h.prng(6);try{var f=new Uint32Array(32);crypto.getRandomValues(f),h.random.addEntropy(f,1024,"crypto['getRandomValues']")}catch(e){}h.json={defaults:{v:1,iter:1e3,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},encrypt:function(e,t,n,r){n=n||{},r=r||{};var a,s=h.json,o=s.h({iv:h.random.randomWords(4,0)},s.defaults);return s.h(o,n),n=o.adata,"string"==typeof o.salt&&(o.salt=h.codec.base64.toBits(o.salt)),"string"==typeof o.iv&&(o.iv=h.codec.base64.toBits(o.iv)),(!h.mode[o.mode]||!h.cipher[o.cipher]||"string"==typeof e&&100>=o.iter||64!==o.ts&&96!==o.ts&&128!==o.ts||128!==o.ks&&192!==o.ks&&256!==o.ks||2>o.iv.length||4<o.iv.length)&&i(new h.exception.invalid("json encrypt: invalid parameters")),"string"==typeof e?(e=(a=h.misc.cachedPbkdf2(e,o)).key.slice(0,o.ks/32),o.salt=a.salt):h.ecc&&e instanceof h.ecc.elGamal.publicKey&&(a=e.kem(),o.kemtag=a.tag,e=a.key.slice(0,o.ks/32)),"string"==typeof t&&(t=h.codec.utf8String.toBits(t)),"string"==typeof n&&(n=h.codec.utf8String.toBits(n)),a=new h.cipher[o.cipher](e),s.h(r,o),r.key=e,o.ct=h.mode[o.mode].encrypt(a,t,o.iv,n,o.ts),s.encode(o)},decrypt:function(e,t,n,r){n=n||{},r=r||{};var a,s=h.json;return n=(t=s.h(s.h(s.h({},s.defaults),s.decode(t)),n,!0)).adata,"string"==typeof t.salt&&(t.salt=h.codec.base64.toBits(t.salt)),"string"==typeof t.iv&&(t.iv=h.codec.base64.toBits(t.iv)),(!h.mode[t.mode]||!h.cipher[t.cipher]||"string"==typeof e&&100>=t.iter||64!==t.ts&&96!==t.ts&&128!==t.ts||128!==t.ks&&192!==t.ks&&256!==t.ks||!t.iv||2>t.iv.length||4<t.iv.length)&&i(new h.exception.invalid("json decrypt: invalid parameters")),"string"==typeof e?(e=(a=h.misc.cachedPbkdf2(e,t)).key.slice(0,t.ks/32),t.salt=a.salt):h.ecc&&e instanceof h.ecc.elGamal.secretKey&&(e=e.unkem(h.codec.base64.toBits(t.kemtag)).slice(0,t.ks/32)),"string"==typeof n&&(n=h.codec.utf8String.toBits(n)),a=new h.cipher[t.cipher](e),n=h.mode[t.mode].decrypt(a,t.ct,t.iv,n,t.ts),s.h(r,t),r.key=e,h.codec.utf8String.fromBits(n)},encode:function(e){var t,n="{",r="";for(t in e)if(e.hasOwnProperty(t))switch(t.match(/^[a-z0-9]+$/i)||i(new h.exception.invalid("json encode: invalid property name")),n+=r+'"'+t+'":',r=",",typeof e[t]){case"number":case"boolean":n+=e[t];break;case"string":n+='"'+escape(e[t])+'"';break;case"object":n+='"'+h.codec.base64.fromBits(e[t],0)+'"';break;default:i(new h.exception.bug("json encode: unsupported type"))}return n+"}"},decode:function(e){(e=e.replace(/\s/g,"")).match(/^\{.*\}$/)||i(new h.exception.invalid("json decode: this isn't json!")),e=e.replace(/^\{|\}$/g,"").split(/,/);var t,n,r={};for(t=0;t<e.length;t++)(n=e[t].match(/^(?:(["']?)([a-z][a-z0-9]*)\1):(?:(\d+)|"([a-z0-9+\/%*_.@=\-]*)")$/i))||i(new h.exception.invalid("json decode: this isn't json!")),r[n[2]]=n[3]?parseInt(n[3],10):n[2].match(/^(ct|salt|iv)$/)?h.codec.base64.toBits(n[4]):unescape(n[4]);return r},h:function(e,t,n){if(e===p&&(e={}),t===p)return e;for(var r in t)t.hasOwnProperty(r)&&(n&&e[r]!==p&&e[r]!==t[r]&&i(new h.exception.invalid("required parameter overridden")),e[r]=t[r]);return e},Y:function(e,t){var n,r={};for(n in e)e.hasOwnProperty(n)&&e[n]!==t[n]&&(r[n]=e[n]);return r},X:function(e,t){var n,r={};for(n=0;n<t.length;n++)e[t[n]]!==p&&(r[t[n]]=e[t[n]]);return r}},h.encrypt=h.json.encrypt,h.decrypt=h.json.decrypt,h.misc.W={},h.misc.cachedPbkdf2=function(e,t){var n,r=h.misc.W;return n=(t=t||{}).iter||1e3,(n=(r=r[e]=r[e]||{})[n]=r[n]||{firstSalt:t.salt&&t.salt.length?t.salt.slice(0):h.random.randomWords(2,0)})[r=t.salt===p?n.firstSalt:t.salt]=n[r]||h.misc.pbkdf2(e,r,t.iter),{key:n[r].slice(0),salt:r.slice(0)}},u=this,r=[n(194)],void 0===(a=function(e){return u.RNCryptor=function(e){var t,n,r,a={}.hasOwnProperty;return r={stringToBase64:function(e){return h.codec.base64.fromBits(h.codec.utf8String.toBits(e))},base64ToString:function(e){return h.codec.utf8String.fromBits(h.codec.base64.toBits(e))},generateHMACSHA256:function(e,t){var n,r,a;return n=h.codec.hex.toBits(e),r=h.codec.hex.toBits(t),a=new h.misc.hmac(n).encrypt(r),h.codec.hex.fromBits(a)},generatePBKDF2WithSHA1:function(e,t,n,r){var a,i,s;return null==r&&(r=256),a=function(e){var t;t=new h.misc.hmac(e,h.hash.sha1),this.encrypt=function(){return t.encrypt.apply(t,arguments)}},s=h.codec.hex.toBits(t),i=h.misc.pbkdf2(e,s,n,r,a),h.codec.hex.fromBits(i)},getRandomHex:function(e){return h.codec.hex.fromBits(h.random.randomWords(e/8*2))},hexTobin:function(e){var t,n;for(n="",t=0;t<e.length;)n+=String.fromCharCode(parseInt(e.substr(t,2),16)),t+=2;return n},stringToHex:function(e){return h.codec.hex.fromBits(h.codec.utf8String.toBits(e))},hexToString:function(e){return h.codec.utf8String.fromBits(h.codec.hex.toBits(e))},hexToBase64:function(e){return h.codec.base64.fromBits(h.codec.hex.toBits(e))},base64ToHex:function(e){return h.codec.hex.fromBits(h.codec.base64.toBits(e))},binToHex:function(e){return this.base64ToHex(this.btoa(e))},chr:function(e){return String.fromCharCode(e)},btoa:function(e){return btoa(e)},atob:function(e){return atob(e)},trim:function(e){return e.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"").replace(/\s+/g," ")},cleanString:function(e){return this.trim(e).replace(/\s+/g,"").replace(/(\r\n|\n|\r)/g,"")},extend:function(){return e.extend.apply(e,arguments)},sjcl:h},t=function(e){function t(e,t){t=t?JSON.stringify(t):"",this.name="RNCryptor error!",this.message=(e||"")+"\n"+t}return function(e,t){function n(){this.constructor=e}for(var r in t)a.call(t,r)&&(e[r]=t[r]);n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,Error),t}(),n={PBKDF_ITERATIONS:1e4,ENCRYPTION_SALT:null,KEY:null,PASSWORD:null,PBKDF2_SIZE:32,HMAC_SALT_LENGTH:8,ENCRYPTION_SALT_LENGTH:8,IV_LENGTH:16,VERSION_LENGTH:1,OPTIONS_LENGTH:1,AES_MODE:"cbc",HMAC_SALT:null},function(){function a(a){var i,s,o,l;for(a=r.extend({},n,a),h.beware["CBC mode is dangerous because it doesn't protect message integrity."](),a.HMAC_KEY||"string"!=typeof a.PASSWORD||(a.HMAC_KEY=r.generatePBKDF2WithSHA1(a.PASSWORD,a.HMAC_SALT,a.PBKDF_ITERATIONS)),a.KEY||"string"!=typeof a.PASSWORD||(a.KEY=r.generatePBKDF2WithSHA1(a.PASSWORD,a.ENCRYPTION_SALT,a.PBKDF_ITERATIONS)),a.options=r.chr(1),a.version=r.chr(2),this.settings=r.extend({},n,a),i=0,s=(l=["KEY","HMAC_KEY","HMAC_SALT","ENCRYPTION_SALT"]).length;s>i;i++)if(o=l[i],!this.settings[o])throw new t(o+" is not defined");this.decrypt=e.memoize(e.bind(this.decrypt,this),function(e){return function(t){return t+e.settings.KEY+e.settings.HMAC_KEY}}(this))}return a.helpers=r,a.CryptoError=t,a.prototype.encrypt=function(e){var n,a,i,s,o,l,c,u,p,d,f,m,S,y,g;g=this.settings.version,S=this.settings.options,s=r.hexTobin(this.settings.ENCRYPTION_SALT),o=r.hexTobin(this.settings.HMAC_SALT),p=r.getRandomHex(this.settings.IV_LENGTH),d=h.codec.hex.toBits(this.settings.KEY),u=h.codec.hex.toBits(p),c=r.hexTobin(p),f=h.codec.utf8String.toBits(e),y=new h.cipher.aes(d);try{h.beware["CBC mode is dangerous because it doesn't protect message integrity."](),n=h.mode[this.settings.AES_MODE].encrypt(y,f,u)}catch(e){throw new t(e.message,this.settings)}return a=h.codec.hex.fromBits(n),m=g+S+s+o+c+r.hexTobin(a),l=r.generateHMACSHA256(this.settings.HMAC_KEY,r.binToHex(m)),i=m+r.hexTobin(l),r.btoa(i)},a.prototype._extractData=function(e){var t,n,a,i,s,o,l,c,u,p,d,h,f,m,S;return a=(p=(c=(m=(h=this.settings.OPTIONS_LENGTH+0)+0+this.settings.OPTIONS_LENGTH)+this.settings.ENCRYPTION_SALT_LENGTH)+this.settings.HMAC_SALT_LENGTH)+this.settings.IV_LENGTH,n=e.length-(a+this.settings.PBKDF2_SIZE),o=e.length-this.settings.PBKDF2_SIZE,S=e.substr(0,this.settings.VERSION_LENGTH),d=e.substr(h,this.settings.OPTIONS_LENGTH),f=e.substr(m,this.settings.ENCRYPTION_SALT_LENGTH),l=e.substr(c,this.settings.HMAC_SALT_LENGTH),u=e.substr(p,this.settings.IV_LENGTH),t=e.substr(a,n),s=e.substr(o),i=S+d+f+l+u+t,{hmac:r.binToHex(s),encryptionSalt:r.binToHex(f),ivHex:r.binToHex(u),dataWithoutHMACinHex:r.binToHex(i),cipher:t}},a.prototype.decrypt=function(e){var n,a,i,s,o,l,c,u;if(a=r.atob(r.cleanString(e)),o=this._extractData(a),(s=r.generateHMACSHA256(this.settings.HMAC_KEY,o.dataWithoutHMACinHex))!==o.hmac)throw new t("HMAC "+s+" mismatch",o);c=h.codec.hex.toBits(this.settings.KEY),l=h.codec.hex.toBits(o.ivHex),n=h.codec.base64.toBits(r.btoa(o.cipher)),u=new h.cipher.aes(c);try{h.beware["CBC mode is dangerous because it doesn't protect message integrity."](),i=h.mode[this.settings.AES_MODE].decrypt(u,n,l)}catch(e){throw new t(e.message)}return h.codec.utf8String.fromBits(i)},a}()}(e)}.apply(t,r))||(e.exports=a)},function(e,t,n){var r=n(102),a=n(100);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},function(e,t){e.exports=function(e,t){return null==e||e!=e?t:e}},,function(e,t,n){var r=n(40),a=n(243),i=n(244),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?a(e):i(e)}},function(e,t,n){var r=n(86),a=n(46);e.exports=function(e,t,n,i){var s=!n;n||(n={});for(var o=-1,l=t.length;++o<l;){var c=t[o],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),s?a(n,c,u):r(n,c,u)}return n}},function(e,t,n){var r,a,i;i=this,r=[n(194),n(67),t],void 0===(a=function(e,t,n){i.Backbone=function(e,t,n,r){var a=e.Backbone,i=[],s=i.slice;t.VERSION="1.1.2",t.$=r,t.noConflict=function(){return e.Backbone=a,this},t.emulateHTTP=!1,t.emulateJSON=!1;var o=t.Events={on:function(e,t,n){return c(this,"on",e,[t,n])&&t?(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this}),this):this},once:function(e,t,r){if(!c(this,"once",e,[t,r])||!t)return this;var a=this,i=n.once((function(){a.off(e,i),t.apply(this,arguments)}));return i._callback=t,this.on(e,i,r)},off:function(e,t,r){var a,i,s,o,l,u,p,d;if(!this._events||!c(this,"off",e,[t,r]))return this;if(!e&&!t&&!r)return this._events=void 0,this;for(l=0,u=(o=e?[e]:n.keys(this._events)).length;l<u;l++)if(e=o[l],s=this._events[e]){if(this._events[e]=a=[],t||r)for(p=0,d=s.length;p<d;p++)i=s[p],(t&&t!==i.callback&&t!==i.callback._callback||r&&r!==i.context)&&a.push(i);a.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=s.call(arguments,1);if(!c(this,"trigger",e,t))return this;var n=this._events[e],r=this._events.all;return n&&u(n,t),r&&u(r,arguments),this},stopListening:function(e,t,r){var a=this._listeningTo;if(!a)return this;var i=!t&&!r;for(var s in r||"object"!=typeof t||(r=this),e&&((a={})[e._listenId]=e),a)(e=a[s]).off(t,r,this),(i||n.isEmpty(e._events))&&delete this._listeningTo[s];return this}},l=/\s+/,c=function(e,t,n,r){if(!n)return!0;if("object"==typeof n){for(var a in n)e[t].apply(e,[a,n[a]].concat(r));return!1}if(l.test(n)){for(var i=n.split(l),s=0,o=i.length;s<o;s++)e[t].apply(e,[i[s]].concat(r));return!1}return!0},u=function(e,t){var n,r=-1,a=e.length,i=t[0],s=t[1],o=t[2];switch(t.length){case 0:for(;++r<a;)(n=e[r]).callback.call(n.ctx);return;case 1:for(;++r<a;)(n=e[r]).callback.call(n.ctx,i);return;case 2:for(;++r<a;)(n=e[r]).callback.call(n.ctx,i,s);return;case 3:for(;++r<a;)(n=e[r]).callback.call(n.ctx,i,s,o);return;default:for(;++r<a;)(n=e[r]).callback.apply(n.ctx,t);return}};n.each({listenTo:"on",listenToOnce:"once"},(function(e,t){o[t]=function(t,r,a){return(this._listeningTo||(this._listeningTo={}))[t._listenId||(t._listenId=n.uniqueId("l"))]=t,a||"object"!=typeof r||(a=this),t[e](r,a,this),this}})),o.bind=o.on,o.unbind=o.off,n.extend(t,o);var p=t.Model=function(e,t){var r=e||{};t||(t={}),this.cid=n.uniqueId("c"),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(r=this.parse(r,t)||{}),r=n.defaults({},r,n.result(this,"defaults")),this.set(r,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(p.prototype,o,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return null!=this.get(e)},set:function(e,t,r){var a,i,s,o,l,c,u,p;if(null==e)return this;if("object"==typeof e?(i=e,r=t):(i={})[e]=t,r||(r={}),!this._validate(i,r))return!1;for(a in s=r.unset,l=r.silent,o=[],c=this._changing,this._changing=!0,c||(this._previousAttributes=n.clone(this.attributes),this.changed={}),p=this.attributes,u=this._previousAttributes,this.idAttribute in i&&(this.id=i[this.idAttribute]),i)t=i[a],n.isEqual(p[a],t)||o.push(a),n.isEqual(u[a],t)?delete this.changed[a]:this.changed[a]=t,s?delete p[a]:p[a]=t;if(!l){o.length&&(this._pending=r);for(var d=0,h=o.length;d<h;d++)this.trigger("change:"+o[d],this,p[o[d]],r)}if(c)return this;if(!l)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var r in this.attributes)t[r]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&n.clone(this.changed);var t,r=!1,a=this._changing?this._previousAttributes:this.attributes;for(var i in e)n.isEqual(a[i],t=e[i])||((r||(r={}))[i]=t);return r},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){void 0===(e=e?n.clone(e):{}).parse&&(e.parse=!0);var t=this,r=e.success;return e.success=function(n){if(!t.set(t.parse(n,e),e))return!1;r&&r(t,n,e),t.trigger("sync",t,n,e)},N(this,e),this.sync("read",this,e)},save:function(e,t,r){var a,i,s,o=this.attributes;if(null==e||"object"==typeof e?(a=e,r=t):(a={})[e]=t,r=n.extend({validate:!0},r),a&&!r.wait){if(!this.set(a,r))return!1}else if(!this._validate(a,r))return!1;a&&r.wait&&(this.attributes=n.extend({},o,a)),void 0===r.parse&&(r.parse=!0);var l=this,c=r.success;return r.success=function(e){l.attributes=o;var t=l.parse(e,r);if(r.wait&&(t=n.extend(a||{},t)),n.isObject(t)&&!l.set(t,r))return!1;c&&c(l,e,r),l.trigger("sync",l,e,r)},N(this,r),"patch"==(i=this.isNew()?"create":r.patch?"patch":"update")&&(r.attrs=a),s=this.sync(i,this,r),a&&r.wait&&(this.attributes=o),s},destroy:function(e){e=e?n.clone(e):{};var t=this,r=e.success,a=function(){t.trigger("destroy",t,t.collection,e)};if(e.success=function(n){(e.wait||t.isNew())&&a(),r&&r(t,n,e),t.isNew()||t.trigger("sync",t,n,e)},this.isNew())return e.success(),!1;N(this,e);var i=this.sync("delete",this,e);return e.wait||a(),i},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||x();return this.isNew()?e:e.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var r=this.validationError=this.validate(e,t)||null;return!r||(this.trigger("invalid",this,r,n.extend(t,{validationError:r})),!1)}}),n.each(["keys","values","pairs","invert","pick","omit"],(function(e){p.prototype[e]=function(){var t=s.call(arguments);return t.unshift(this.attributes),n[e].apply(n,t)}}));var d=t.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},h={add:!0,remove:!0,merge:!0},f={add:!0,remove:!1};n.extend(d.prototype,o,{model:p,initialize:function(){},toJSON:function(e){return this.map((function(t){return t.toJSON(e)}))},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,f))},remove:function(e,t){var r,a,i,s,o=!n.isArray(e);for(t||(t={}),r=0,a=(e=o?[e]:n.clone(e)).length;r<a;r++)(s=e[r]=this.get(e[r]))&&(delete this._byId[s.id],delete this._byId[s.cid],i=this.indexOf(s),this.models.splice(i,1),this.length--,t.silent||(t.index=i,s.trigger("remove",s,this,t)),this._removeReference(s,t));return o?e[0]:e},set:function(e,t){(t=n.defaults({},t,h)).parse&&(e=this.parse(e,t));var r,a,i,s,o,l,c,u=!n.isArray(e);e=u?e?[e]:[]:n.clone(e);var d=t.at,f=this.model,m=this.comparator&&null==d&&!1!==t.sort,S=n.isString(this.comparator)?this.comparator:null,y=[],g=[],v={},_=t.add,b=t.merge,P=t.remove,w=!(m||!_||!P)&&[];for(r=0,a=e.length;r<a;r++){if(i=(o=e[r]||{})instanceof p?s=o:o[f.prototype.idAttribute||"id"],l=this.get(i))P&&(v[l.cid]=!0),b&&(o=o===s?s.attributes:o,t.parse&&(o=l.parse(o,t)),l.set(o,t),m&&!c&&l.hasChanged(S)&&(c=!0)),e[r]=l;else if(_){if(!(s=e[r]=this._prepareModel(o,t)))continue;y.push(s),this._addReference(s,t)}s=l||s,!w||!s.isNew()&&v[s.id]||w.push(s),v[s.id]=!0}if(P){for(r=0,a=this.length;r<a;++r)v[(s=this.models[r]).cid]||g.push(s);g.length&&this.remove(g,t)}if(y.length||w&&w.length)if(m&&(c=!0),this.length+=y.length,null!=d)for(r=0,a=y.length;r<a;r++)this.models.splice(d+r,0,y[r]);else{w&&(this.models.length=0);var E=w||y;for(r=0,a=E.length;r<a;r++)this.models.push(E[r])}if(c&&this.sort({silent:!0}),!t.silent){for(r=0,a=y.length;r<a;r++)(s=y[r]).trigger("add",s,this,t);(c||w&&w.length)&&this.trigger("sort",this,t)}return u?e[0]:e},reset:function(e,t){t||(t={});for(var r=0,a=this.models.length;r<a;r++)this._removeReference(this.models[r],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(){return s.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[e.id]||this._byId[e.cid]},at:function(e){return this.models[e]},where:function(e,t){return n.isEmpty(e)?t?void 0:[]:this[t?"find":"filter"]((function(t){for(var n in e)if(e[n]!==t.get(n))return!1;return!0}))},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return n.invoke(this.models,"get",e)},fetch:function(e){void 0===(e=e?n.clone(e):{}).parse&&(e.parse=!0);var t=e.success,r=this;return e.success=function(n){var a=e.reset?"reset":"set";r[a](n,e),t&&t(r,n,e),r.trigger("sync",r,n,e)},N(this,e),this.sync("read",this,e)},create:function(e,t){if(t=t?n.clone(t):{},!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var r=this,a=t.success;return t.success=function(e,n){t.wait&&r.add(e,t),a&&a(e,n,t)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(e instanceof p)return e;(t=t?n.clone(t):{}).collection=this;var r=new this.model(e,t);return r.validationError?(this.trigger("invalid",this,r.validationError,t),!1):r},_addReference:function(e,t){this._byId[e.cid]=e,null!=e.id&&(this._byId[e.id]=e),e.collection||(e.collection=this),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){("add"!==e&&"remove"!==e||n===this)&&("destroy"===e&&this.remove(t,r),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],null!=t.id&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments))}}),n.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"],(function(e){d.prototype[e]=function(){var t=s.call(arguments);return t.unshift(this.models),n[e].apply(n,t)}})),n.each(["groupBy","countBy","sortBy","indexBy"],(function(e){d.prototype[e]=function(t,r){var a=n.isFunction(t)?t:function(e){return e.get(t)};return n[e](this.models,a,r)}}));var m=t.View=function(e){this.cid=n.uniqueId("view"),e||(e={}),n.extend(this,n.pick(e,y)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},S=/^(\S+)\s*(.*)$/,y=["model","collection","el","id","attributes","className","tagName","events"];n.extend(m.prototype,o,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(e,n){return this.$el&&this.undelegateEvents(),this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0],!1!==n&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=n.result(this,"events")))return this;for(var t in this.undelegateEvents(),e){var r=e[t];if(n.isFunction(r)||(r=this[e[t]]),r){var a=t.match(S),i=a[1],s=a[2];r=n.bind(r,this),i+=".delegateEvents"+this.cid,""===s?this.$el.on(i,r):this.$el.on(i,s,r)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e.class=n.result(this,"className"));var r=t.$("<"+n.result(this,"tagName")+">").attr(e);this.setElement(r,!1)}}}),t.sync=function(e,r,a){var i=v[e];n.defaults(a||(a={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var s={type:i,dataType:"json"};if(a.url||(s.url=n.result(r,"url")||x()),null!=a.data||!r||"create"!==e&&"update"!==e&&"patch"!==e||(s.contentType="application/json",s.data=JSON.stringify(a.attrs||r.toJSON(a))),a.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),a.emulateHTTP&&("PUT"===i||"DELETE"===i||"PATCH"===i)){s.type="POST",a.emulateJSON&&(s.data._method=i);var o=a.beforeSend;a.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",i),o)return o.apply(this,arguments)}}"GET"===s.type||a.emulateJSON||(s.processData=!1),"PATCH"===s.type&&g&&(s.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=a.xhr=t.ajax(n.extend(s,a));return r.trigger("request",r,l,a),l};var g=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),v={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var _=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},b=/\((.*?)\)/g,P=/(\(\?)?:\w+/g,w=/\*\w+/g,E=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(_.prototype,o,{initialize:function(){},route:function(e,r,a){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(r)&&(a=r,r=""),a||(a=this[r]);var i=this;return t.history.route(e,(function(n){var s=i._extractParameters(e,n);i.execute(a,s),i.trigger.apply(i,["route:"+r].concat(s)),i.trigger("route",r,s),t.history.trigger("route",i,r,s)})),this},execute:function(e,t){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var e,t=n.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(E,"\\$&").replace(b,"(?:$1)?").replace(P,(function(e,t){return t?e:"([^/?]+)"})).replace(w,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var r=e.exec(t).slice(1);return n.map(r,(function(e,t){return t===r.length-1?e||null:e?decodeURIComponent(e):null}))}});var k=t.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},T=/^[#\/]|\s+$/g,C=/^\/+|\/+$/g,I=/msie [\w.]+/,A=/\/$/,O=/#.*$/;k.started=!1,n.extend(k.prototype,o,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getFragment:function(e,t){if(null==e)if(this._hasPushState||!this._wantsHashChange||t){e=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(A,"");e.indexOf(n)||(e=e.slice(n.length))}else e=this.getHash();return e.replace(T,"")},start:function(e){if(k.started)throw new Error("Backbone.history has already been started");k.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment(),a=document.documentMode,i=I.exec(navigator.userAgent.toLowerCase())&&(!a||a<=7);if(this.root=("/"+this.root+"/").replace(C,"/"),i&&this._wantsHashChange){var s=t.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=s.hide().appendTo("body")[0].contentWindow,this.navigate(r)}this._hasPushState?t.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!i?t.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=r;var o=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&o.hash&&(this.fragment=this.getHash().replace(T,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){t.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),k.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return e=this.fragment=this.getFragment(e),n.any(this.handlers,(function(t){if(t.route.test(e))return t.callback(e),!0}))},navigate:function(e,t){if(!k.started)return!1;t&&!0!==t||(t={trigger:!!t});var n=this.root+(e=this.getFragment(e||""));if(e=e.replace(O,""),this.fragment!==e){if(this.fragment=e,""===e&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),t.history=new k,p.extend=d.extend=_.extend=m.extend=k.extend=function(e,t){var r,a=this;r=e&&n.has(e,"constructor")?e.constructor:function(){return a.apply(this,arguments)},n.extend(r,a,t);var i=function(){this.constructor=r};return i.prototype=a.prototype,r.prototype=new i,e&&n.extend(r.prototype,e),r.__super__=a.prototype,r};var x=function(){throw new Error('A "url" property or function must be specified')},N=function(e,t){var n=t.error;t.error=function(r){n&&n(e,r,t),e.trigger("error",e,r,t)}};return t}(i,n,e,t)}.apply(t,r))||(e.exports=a)},function(e,t,n){var r=n(113);e.exports=function(e){return r(e,5)}},function(e,t,n){var r=n(142),a=n(143),i=n(25);e.exports=function(e){return i(e)?r(e):a(e)}},function(e,t,n){var r=n(274),a=n(277);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(17),a=n(160),i=n(161);e.exports=function(e,t){return i(a(e,t,r),e+"")}},function(e,t){e.exports=require("os")},function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return o}));var r=n(6);function a(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function i(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var a=Math.max(t-60,0);a<5&&(a=0);var i=Math.min(a+140,r);return i>r-5&&(i=r),i===r&&(a=Math.max(i-140,0)),n=n.slice(a,i),a>0&&(n="'{snip} "+n),i<r&&(n+=" {snip}"),n}function s(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var a=e[r];try{n.push(String(a))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function o(e,t){return!!Object(r.k)(e)&&(Object(r.j)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},function(e,t,n){var r=n(28),a=n(21);e.exports=function(e){return"number"==typeof e||a(e)&&"[object Number]"==r(e)}},function(e,t,n){e.exports=n(358)},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(399)},function(e,t,n){var r=n(20).Symbol;e.exports=r},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(9),a=n(111),i=n(302),s=n(61);e.exports=function(e,t){return r(e)?e:a(e,t)?[e]:i(s(e))}},function(e,t,n){var r=n(28),a=n(21);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}},function(e,t,n){var r=n(43);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(159);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(109),a=n(321);e.exports=function e(t,n,i,s,o){var l=-1,c=t.length;for(i||(i=a),o||(o=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,s,o):r(o,u):s||(o[o.length]=u)}return o}},function(e,t,n){var r=n(25),a=n(21);e.exports=function(e){return a(e)&&r(e)}},function(e,t,n){var r=n(142),a=n(328),i=n(25);e.exports=function(e){return i(e)?r(e,!0):a(e)}},function(e,t,n){"use strict";(function(e){var r,a=n(195);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:e;var i=Object(a.a)(r);t.a=i}).call(this,n(99)(e))},function(e,t,n){var r=n(359)(n(360));e.exports=r},function(e,t,n){var r=n(12),a=n(402);e.exports=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,s=[],o=e.length;for(t=r(t,3);++i<o;){var l=e[i];t(l,i,e)&&(n.push(l),s.push(i))}return a(e,s),n}},,function(e,t,n){var r=n(258),a=n(21),i=Object.prototype,s=i.hasOwnProperty,o=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return a(e)&&s.call(e,"callee")&&!o.call(e,"callee")};e.exports=l},function(e,t,n){(function(e){var r=n(20),a=n(66),i=t&&!t.nodeType&&t,s=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=s&&s.exports===i?r.Buffer:void 0,l=(o?o.isBuffer:void 0)||a;e.exports=l}).call(this,n(78)(e))},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(297),a=n(103),i=n(298),s=n(150),o=n(299),l=n(28),c=n(144),u=c(r),p=c(a),d=c(i),h=c(s),f=c(o),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||a&&"[object Map]"!=m(new a)||i&&"[object Promise]"!=m(i.resolve())||s&&"[object Set]"!=m(new s)||o&&"[object WeakMap]"!=m(new o))&&(m=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case p:return"[object Map]";case d:return"[object Promise]";case h:return"[object Set]";case f:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(42),a=n(45);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[a(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(305);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){const r=n(378),a=n(379),i=String.fromCharCode(30);e.exports={protocol:4,encodePacket:r,encodePayload:(e,t)=>{const n=e.length,a=new Array(n);let s=0;e.forEach((e,o)=>{r(e,!1,e=>{a[o]=e,++s===n&&t(a.join(i))})})},decodePacket:a,decodePayload:(e,t)=>{const n=e.split(i),r=[];for(let e=0;e<n.length;e++){const i=a(n[e],t);if(r.push(i),"error"===i.type)break}return r}}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var a=0;a<r.length;a++)if((n=r[a])===t||n.fn===t){r.splice(a,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var a=(n=n.slice(0)).length;r<a;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r))}),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(381)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,t,n){var r=n(28),a=n(98),i=n(21),s=Function.prototype,o=Object.prototype,l=s.toString,c=o.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=a(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r; /*! * jQuery JavaScript Library v3.5.0 * https://jquery.com/ * * Includes Sizzle.js * https://sizzlejs.com/ * * Copyright JS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2020-04-10T15:07Z */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,a){"use strict";var i=[],s=Object.getPrototypeOf,o=i.slice,l=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},c=i.push,u=i.indexOf,p={},d=p.toString,h=p.hasOwnProperty,f=h.toString,m=f.call(Object),S={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},v=n.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,a,i=(n=n||v).createElement("script");if(i.text=e,t)for(r in _)(a=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,a);n.head.appendChild(i).parentNode.removeChild(i)}function P(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?p[d.call(e)]||"object":typeof e}var w=function(e,t){return new w.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=P(e);return!y(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}w.fn=w.prototype={jquery:"3.5.0",constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},w.extend=w.fn.extend=function(){var e,t,n,r,a,i,s=arguments[0]||{},o=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[o]||{},o++),"object"==typeof s||y(s)||(s={}),o===l&&(s=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(c&&r&&(w.isPlainObject(r)||(a=Array.isArray(r)))?(n=s[t],i=a&&!Array.isArray(n)?[]:a||w.isPlainObject(n)?n:{},a=!1,s[t]=w.extend(c,i,r)):void 0!==r&&(s[t]=r));return s},w.extend({expando:"jQuery"+("3.5.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e))&&(!(t=s(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&f.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(E(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?w.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,a=e.length;r<n;r++)e[a++]=t[r];return e.length=a,e},grep:function(e,t,n){for(var r=[],a=0,i=e.length,s=!n;a<i;a++)!t(e[a],a)!==s&&r.push(e[a]);return r},map:function(e,t,n){var r,a,i=0,s=[];if(E(e))for(r=e.length;i<r;i++)null!=(a=t(e[i],i,n))&&s.push(a);else for(i in e)null!=(a=t(e[i],i,n))&&s.push(a);return l(s)},guid:1,support:S}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=i[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){p["[object "+t+"]"]=t.toLowerCase()}));var k= /*! * Sizzle CSS Selector Engine v2.3.5 * https://sizzlejs.com/ * * Copyright JS Foundation and other contributors * Released under the MIT license * https://js.foundation/ * * Date: 2020-03-14 */ function(e){var t,n,r,a,i,s,o,l,c,u,p,d,h,f,m,S,y,g,v,_="sizzle"+1*new Date,b=e.document,P=0,w=0,E=le(),k=le(),T=le(),C=le(),I=function(e,t){return e===t&&(p=!0),0},A={}.hasOwnProperty,O=[],x=O.pop,N=O.push,R=O.push,D=O.slice,H=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",G="[\\x20\\t\\r\\n\\f]",U="(?:\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",L="\\["+G+"*("+U+")(?:"+G+"*([*^$|!~]?=)"+G+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+G+"*\\]",j=":("+U+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+L+")*)|.*)\\)|)",M=new RegExp(G+"+","g"),B=new RegExp("^"+G+"+|((?:^|[^\\\\])(?:\\\\.)*)"+G+"+$","g"),K=new RegExp("^"+G+"*,"+G+"*"),q=new RegExp("^"+G+"*([>+~]|"+G+")"+G+"*"),V=new RegExp(G+"|>"),$=new RegExp(j),W=new RegExp("^"+U+"$"),z={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+G+"*(even|odd|(([+-]|)(\\d*)n|)"+G+"*(?:([+-]|)"+G+"*(\\d+)|))"+G+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+G+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+G+"*((?:-\\d)?\\d*)"+G+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){d()},se=_e((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{R.apply(O=D.call(b.childNodes),b.childNodes),O[b.childNodes.length].nodeType}catch(e){R={apply:O.length?function(e,t){N.apply(e,D.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,a){var i,o,c,u,p,f,y,g=t&&t.ownerDocument,b=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==b&&9!==b&&11!==b)return r;if(!a&&(d(t),t=t||h,m)){if(11!==b&&(p=Z.exec(e)))if(i=p[1]){if(9===b){if(!(c=t.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(g&&(c=g.getElementById(i))&&v(t,c)&&c.id===i)return r.push(c),r}else{if(p[2])return R.apply(r,t.getElementsByTagName(e)),r;if((i=p[3])&&n.getElementsByClassName&&t.getElementsByClassName)return R.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!C[e+" "]&&(!S||!S.test(e))&&(1!==b||"object"!==t.nodeName.toLowerCase())){if(y=e,g=t,1===b&&(V.test(e)||q.test(e))){for((g=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ae):t.setAttribute("id",u=_)),o=(f=s(e)).length;o--;)f[o]=(u?"#"+u:":scope")+" "+ve(f[o]);y=f.join(",")}try{return R.apply(r,g.querySelectorAll(y)),r}catch(t){C(e,!0)}finally{u===_&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,r,a)}function le(){var e=[];return function t(n,a){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=a}}function ce(e){return e[_]=!0,e}function ue(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function pe(e,t){for(var n=e.split("|"),a=n.length;a--;)r.attrHandle[n[a]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function Se(e){return ce((function(t){return t=+t,ce((function(n,r){for(var a,i=e([],n.length,t),s=i.length;s--;)n[a=i[s]]&&(n[a]=!(r[a]=n[a]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},i=oe.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!J.test(t||n&&n.nodeName||"HTML")},d=oe.setDocument=function(e){var t,a,s=e?e.ownerDocument||e:b;return s!=h&&9===s.nodeType&&s.documentElement?(f=(h=s).documentElement,m=!i(h),b!=h&&(a=h.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",ie,!1):a.attachEvent&&a.attachEvent("onunload",ie)),n.scope=ue((function(e){return f.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Y.test(h.getElementsByClassName),n.getById=ue((function(e){return f.appendChild(e).id=_,!h.getElementsByName||!h.getElementsByName(_).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,a,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(a=t.getElementsByName(e),r=0;i=a[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],a=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[a++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},y=[],S=[],(n.qsa=Y.test(h.querySelectorAll))&&(ue((function(e){var t;f.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&S.push("[*^$]="+G+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||S.push("\\["+G+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+_+"-]").length||S.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||S.push("\\["+G+"*name"+G+"*="+G+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||S.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||S.push(".#.+[+~]"),e.querySelectorAll("\\\f"),S.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&S.push("name"+G+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&S.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&S.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),S.push(",.*:")}))),(n.matchesSelector=Y.test(g=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=g.call(e,"*"),g.call(e,"[s!='']:x"),y.push("!=",j)})),S=S.length&&new RegExp(S.join("|")),y=y.length&&new RegExp(y.join("|")),t=Y.test(f.compareDocumentPosition),v=t||Y.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return p=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==b&&v(b,e)?-1:t==h||t.ownerDocument==b&&v(b,t)?1:u?H(u,e)-H(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return p=!0,0;var n,r=0,a=e.parentNode,i=t.parentNode,s=[e],o=[t];if(!a||!i)return e==h?-1:t==h?1:a?-1:i?1:u?H(u,e)-H(u,t):0;if(a===i)return de(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)o.unshift(n);for(;s[r]===o[r];)r++;return r?de(s[r],o[r]):s[r]==b?-1:o[r]==b?1:0},h):h},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&m&&!C[t+" "]&&(!y||!y.test(t))&&(!S||!S.test(t)))try{var r=g.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){C(t,!0)}return oe(t,h,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!=h&&d(e),v(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!=h&&d(e);var a=r.attrHandle[t.toLowerCase()],i=a&&A.call(r.attrHandle,t.toLowerCase())?a(e,t,!m):void 0;return void 0!==i?i:n.attributes||!m?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},oe.escape=function(e){return(e+"").replace(re,ae)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],a=0,i=0;if(p=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(I),p){for(;t=e[i++];)t===e[i]&&(a=r.push(i));for(;a--;)e.splice(r[a],1)}return u=null,e},a=oe.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=a(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:ce,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&$.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+G+")"+e+"("+G+"|$)"))&&E(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var a=oe.attr(r,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(M," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,a){var i="nth"!==e.slice(0,3),s="last"!==e.slice(-4),o="of-type"===t;return 1===r&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var c,u,p,d,h,f,m=i!==s?"nextSibling":"previousSibling",S=t.parentNode,y=o&&t.nodeName.toLowerCase(),g=!l&&!o,v=!1;if(S){if(i){for(;m;){for(d=t;d=d[m];)if(o?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?S.firstChild:S.lastChild],s&&g){for(v=(h=(c=(u=(p=(d=S)[_]||(d[_]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]||[])[0]===P&&c[1])&&c[2],d=h&&S.childNodes[h];d=++h&&d&&d[m]||(v=h=0)||f.pop();)if(1===d.nodeType&&++v&&d===t){u[e]=[P,h,v];break}}else if(g&&(v=h=(c=(u=(p=(d=t)[_]||(d[_]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]||[])[0]===P&&c[1]),!1===v)for(;(d=++h&&d&&d[m]||(v=h=0)||f.pop())&&((o?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++v||(g&&((u=(p=d[_]||(d[_]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]=[P,v]),d!==t)););return(v-=a)===r||v%r==0&&v/r>=0}}},PSEUDO:function(e,t){var n,a=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return a[_]?a(t):a.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,i=a(e,t),s=i.length;s--;)e[r=H(e,i[s])]=!(n[r]=i[s])})):function(e){return a(e,0,n)}):a}},pseudos:{not:ce((function(e){var t=[],n=[],r=o(e.replace(B,"$1"));return r[_]?ce((function(e,t,n,a){for(var i,s=r(e,null,a,[]),o=e.length;o--;)(i=s[o])&&(e[o]=!(t[o]=i))})):function(e,a,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return oe(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||a(t)).indexOf(e)>-1}})),lang:ce((function(e){return W.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:Se((function(){return[0]})),last:Se((function(e,t){return[t-1]})),eq:Se((function(e,t,n){return[n<0?n+t:n]})),even:Se((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:Se((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:Se((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:Se((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ge(){}function ve(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function _e(e,t,n){var r=t.dir,a=t.next,i=a||r,s=n&&"parentNode"===i,o=w++;return t.first?function(t,n,a){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,a);return!1}:function(t,n,l){var c,u,p,d=[P,o];if(l){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(u=(p=t[_]||(t[_]={}))[t.uniqueID]||(p[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[i])&&c[0]===P&&c[1]===o)return d[2]=c[2];if(u[i]=d,d[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,r){for(var a=e.length;a--;)if(!e[a](t,n,r))return!1;return!0}:e[0]}function Pe(e,t,n,r,a){for(var i,s=[],o=0,l=e.length,c=null!=t;o<l;o++)(i=e[o])&&(n&&!n(i,r,a)||(s.push(i),c&&t.push(o)));return s}function we(e,t,n,r,a,i){return r&&!r[_]&&(r=we(r)),a&&!a[_]&&(a=we(a,i)),ce((function(i,s,o,l){var c,u,p,d=[],h=[],f=s.length,m=i||function(e,t,n){for(var r=0,a=t.length;r<a;r++)oe(e,t[r],n);return n}(t||"*",o.nodeType?[o]:o,[]),S=!e||!i&&t?m:Pe(m,d,e,o,l),y=n?a||(i?e:f||r)?[]:s:S;if(n&&n(S,y,o,l),r)for(c=Pe(y,h),r(c,[],o,l),u=c.length;u--;)(p=c[u])&&(y[h[u]]=!(S[h[u]]=p));if(i){if(a||e){if(a){for(c=[],u=y.length;u--;)(p=y[u])&&c.push(S[u]=p);a(null,y=[],c,l)}for(u=y.length;u--;)(p=y[u])&&(c=a?H(i,p):d[u])>-1&&(i[c]=!(s[c]=p))}}else y=Pe(y===s?y.splice(f,y.length):y),a?a(null,s,y,l):R.apply(s,y)}))}function Ee(e){for(var t,n,a,i=e.length,s=r.relative[e[0].type],o=s||r.relative[" "],l=s?1:0,u=_e((function(e){return e===t}),o,!0),p=_e((function(e){return H(t,e)>-1}),o,!0),d=[function(e,n,r){var a=!s&&(r||n!==c)||((t=n).nodeType?u(e,n,r):p(e,n,r));return t=null,a}];l<i;l++)if(n=r.relative[e[l].type])d=[_e(be(d),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[_]){for(a=++l;a<i&&!r.relative[e[a].type];a++);return we(l>1&&be(d),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),n,l<a&&Ee(e.slice(l,a)),a<i&&Ee(e=e.slice(a)),a<i&&ve(e))}d.push(n)}return be(d)}return ge.prototype=r.filters=r.pseudos,r.setFilters=new ge,s=oe.tokenize=function(e,t){var n,a,i,s,o,l,c,u=k[e+" "];if(u)return t?0:u.slice(0);for(o=e,l=[],c=r.preFilter;o;){for(s in n&&!(a=K.exec(o))||(a&&(o=o.slice(a[0].length)||o),l.push(i=[])),n=!1,(a=q.exec(o))&&(n=a.shift(),i.push({value:n,type:a[0].replace(B," ")}),o=o.slice(n.length)),r.filter)!(a=z[s].exec(o))||c[s]&&!(a=c[s](a))||(n=a.shift(),i.push({value:n,type:s,matches:a}),o=o.slice(n.length));if(!n)break}return t?o.length:o?oe.error(e):k(e,l).slice(0)},o=oe.compile=function(e,t){var n,a=[],i=[],o=T[e+" "];if(!o){for(t||(t=s(e)),n=t.length;n--;)(o=Ee(t[n]))[_]?a.push(o):i.push(o);(o=T(e,function(e,t){var n=t.length>0,a=e.length>0,i=function(i,s,o,l,u){var p,f,S,y=0,g="0",v=i&&[],_=[],b=c,w=i||a&&r.find.TAG("*",u),E=P+=null==b?1:Math.random()||.1,k=w.length;for(u&&(c=s==h||s||u);g!==k&&null!=(p=w[g]);g++){if(a&&p){for(f=0,s||p.ownerDocument==h||(d(p),o=!m);S=e[f++];)if(S(p,s||h,o)){l.push(p);break}u&&(P=E)}n&&((p=!S&&p)&&y--,i&&v.push(p))}if(y+=g,n&&g!==y){for(f=0;S=t[f++];)S(v,_,s,o);if(i){if(y>0)for(;g--;)v[g]||_[g]||(_[g]=x.call(l));_=Pe(_)}R.apply(l,_),u&&!i&&_.length>0&&y+t.length>1&&oe.uniqueSort(l)}return u&&(P=E,c=b),v};return n?ce(i):i}(i,a))).selector=e}return o},l=oe.select=function(e,t,n,a){var i,l,c,u,p,d="function"==typeof e&&e,h=!a&&s(e=d.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=z.needsContext.test(e)?0:l.length;i--&&(c=l[i],!r.relative[u=c.type]);)if((p=r.find[u])&&(a=p(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ye(t.parentNode)||t))){if(l.splice(i,1),!(e=a.length&&ve(l)))return R.apply(n,a),n;break}}return(d||o(e,h))(a,t,!m,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=_.split("").sort(I).join("")===_,n.detectDuplicates=!!p,d(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||pe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||pe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||pe(F,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),oe}(n);w.find=k,w.expr=k.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=k.uniqueSort,w.text=k.getText,w.isXMLDoc=k.isXML,w.contains=k.contains,w.escapeSelector=k.escape;var T=function(e,t,n){for(var r=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&w(e).is(n))break;r.push(e)}return r},C=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},I=w.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function x(e,t,n){return y(t)?w.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?w.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?w.grep(e,(function(e){return u.call(t,e)>-1!==n})):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,n,r=this.length,a=this;if("string"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t<r;t++)if(w.contains(a[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)w.find(e,a[t],n);return r>1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(x(this,e||[],!1))},not:function(e){return this.pushStack(x(this,e||[],!0))},is:function(e){return!!x(this,"string"==typeof e&&I.test(e)?w(e):e||[],!1).length}});var N,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var r,a;if(!e)return this;if(n=n||N,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:R.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),O.test(r[1])&&w.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(a=v.getElementById(r[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,N=w(v);var D=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function F(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,a=this.length,i=[],s="string"!=typeof e&&w(e);if(!I.test(e))for(;r<a;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?w.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?u.call(w(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return F(e,"nextSibling")},prev:function(e){return F(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(n,r){var a=w.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(a=w.filter(r,a)),this.length>1&&(H[e]||w.uniqueSort(a),D.test(e)&&a.reverse()),this.pushStack(a)}}));var G=/[^\x20\t\r\n\f]+/g;function U(e){return e}function L(e){throw e}function j(e,t,n,r){var a;try{e&&y(a=e.promise)?a.call(e).done(t).fail(n):e&&y(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(G)||[],(function(e,n){t[n]=!0})),t}(e):w.extend({},e);var t,n,r,a,i=[],s=[],o=-1,l=function(){for(a=a||e.once,r=t=!0;s.length;o=-1)for(n=s.shift();++o<i.length;)!1===i[o].apply(n[0],n[1])&&e.stopOnFalse&&(o=i.length,n=!1);e.memory||(n=!1),t=!1,a&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(o=i.length-1,s.push(n)),function t(n){w.each(n,(function(n,r){y(r)?e.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==P(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return w.each(arguments,(function(e,t){for(var n;(n=w.inArray(t,i,n))>-1;)i.splice(n,1),n<=o&&o--})),this},has:function(e){return e?w.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return a=s=[],i=n="",this},disabled:function(){return!i},lock:function(){return a=s=[],n||t||(i=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},w.extend({Deferred:function(e){var t=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(n){w.each(t,(function(t,r){var a=y(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=a&&a.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,a){var i=0;function s(e,t,r,a){return function(){var o=this,l=arguments,c=function(){var n,c;if(!(e<i)){if((n=r.apply(o,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(c)?a?c.call(n,s(i,t,U,a),s(i,t,L,a)):(i++,c.call(n,s(i,t,U,a),s(i,t,L,a),s(i,t,U,t.notifyWith))):(r!==U&&(o=void 0,l=[n]),(a||t.resolveWith)(o,l))}},u=a?c:function(){try{c()}catch(n){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(n,u.stackTrace),e+1>=i&&(r!==L&&(o=void 0,l=[n]),t.rejectWith(o,l))}};e?u():(w.Deferred.getStackHook&&(u.stackTrace=w.Deferred.getStackHook()),n.setTimeout(u))}}return w.Deferred((function(n){t[0][3].add(s(0,n,y(a)?a:U,n.notifyWith)),t[1][3].add(s(0,n,y(e)?e:U)),t[2][3].add(s(0,n,y(r)?r:L))})).promise()},promise:function(e){return null!=e?w.extend(e,a):a}},i={};return w.each(t,(function(e,n){var s=n[2],o=n[5];a[n[1]]=s.add,o&&s.add((function(){r=o}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=s.fireWith})),a.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),a=o.call(arguments),i=w.Deferred(),s=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?o.call(arguments):n,--t||i.resolveWith(r,a)}};if(t<=1&&(j(e,i.done(s(n)).resolve,i.reject,!t),"pending"===i.state()||y(a[n]&&a[n].then)))return i.then();for(;n--;)j(a[n],s(n),i.reject);return i.promise()}});var M=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&M.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},w.readyException=function(e){n.setTimeout((function(){throw e}))};var B=w.Deferred();function K(){v.removeEventListener("DOMContentLoaded",K),n.removeEventListener("load",K),w.ready()}w.fn.ready=function(e){return B.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||B.resolveWith(v,[w]))}}),w.ready.then=B.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?n.setTimeout(w.ready):(v.addEventListener("DOMContentLoaded",K),n.addEventListener("load",K));var q=function(e,t,n,r,a,i,s){var o=0,l=e.length,c=null==n;if("object"===P(n))for(o in a=!0,n)q(e,t,o,n[o],!0,i,s);else if(void 0!==r&&(a=!0,y(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(w(e),n)})),t))for(;o<l;o++)t(e[o],n,s?r:r.call(e[o],o,t(e[o],n)));return a?e:c?t.call(e):l?t(e[0],n):i},V=/^-ms-/,$=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function z(e){return e.replace(V,"ms-").replace($,W)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function X(){this.expando=w.expando+X.uid++}X.uid=1,X.prototype={cache:function(e){var t=e[this.expando];return t||(t=Object.create(null),J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,a=this.cache(e);if("string"==typeof t)a[z(t)]=n;else for(r in t)a[z(r)]=t[r];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][z(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(z):(t=z(t))in r?[t]:t.match(G)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||w.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var Q=new X,Y=new X,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Z.test(e)?JSON.parse(e):e)}(n)}catch(e){}Y.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return Y.hasData(e)||Q.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,r,a,i=this[0],s=i&&i.attributes;if(void 0===e){if(this.length&&(a=Y.get(i),1===i.nodeType&&!Q.get(i,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=z(r.slice(5)),te(i,r,a[r]));Q.set(i,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each((function(){Y.set(this,e)})):q(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=Y.get(i,e))||void 0!==(n=te(i,e))?n:void 0;this.each((function(){Y.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Y.remove(this,e)}))}}),w.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Q.get(e,t),n&&(!r||Array.isArray(n)?r=Q.access(e,t,w.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),r=n.length,a=n.shift(),i=w._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),r--),a&&("fx"===t&&n.unshift("inprogress"),delete i.stop,a.call(e,(function(){w.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:w.Callbacks("once memory").add((function(){Q.remove(e,[t+"queue",n])}))})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each((function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){w.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,a=w.Deferred(),i=this,s=this.length,o=function(){--r||a.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Q.get(i[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(o));return o(),a.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),ae=["Top","Right","Bottom","Left"],ie=v.documentElement,se=function(e){return w.contains(e.ownerDocument,e)},oe={composed:!0};ie.getRootNode&&(se=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===w.css(e,"display")};function ce(e,t,n,r){var a,i,s=20,o=r?function(){return r.cur()}:function(){return w.css(e,t,"")},l=o(),c=n&&n[3]||(w.cssNumber[t]?"":"px"),u=e.nodeType&&(w.cssNumber[t]||"px"!==c&&+l)&&re.exec(w.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)w.style(e,t,u+c),(1-i)*(1-(i=o()/l||.5))<=0&&(s=0),u/=i;u*=2,w.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,a=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=a)),a}var ue={};function pe(e){var t,n=e.ownerDocument,r=e.nodeName,a=ue[r];return a||(t=n.body.appendChild(n.createElement(r)),a=w.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),ue[r]=a,a)}function de(e,t){for(var n,r,a=[],i=0,s=e.length;i<s;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(a[i]=Q.get(r,"display")||null,a[i]||(r.style.display="")),""===r.style.display&&le(r)&&(a[i]=pe(r))):"none"!==n&&(a[i]="none",Q.set(r,"display",n)));for(i=0;i<s;i++)null!=a[i]&&(e[i].style.display=a[i]);return e}w.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?w(this).show():w(this).hide()}))}});var he,fe,me=/^(?:checkbox|radio)$/i,Se=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i;he=v.createDocumentFragment().appendChild(v.createElement("div")),(fe=v.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),he.appendChild(fe),S.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",S.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",S.option=!!he.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?w.merge([e],n):n}function _e(e,t){for(var n=0,r=e.length;n<r;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,S.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var be=/<|&#?\w+;/;function Pe(e,t,n,r,a){for(var i,s,o,l,c,u,p=t.createDocumentFragment(),d=[],h=0,f=e.length;h<f;h++)if((i=e[h])||0===i)if("object"===P(i))w.merge(d,i.nodeType?[i]:i);else if(be.test(i)){for(s=s||p.appendChild(t.createElement("div")),o=(Se.exec(i)||["",""])[1].toLowerCase(),l=ge[o]||ge._default,s.innerHTML=l[1]+w.htmlPrefilter(i)+l[2],u=l[0];u--;)s=s.lastChild;w.merge(d,s.childNodes),(s=p.firstChild).textContent=""}else d.push(t.createTextNode(i));for(p.textContent="",h=0;i=d[h++];)if(r&&w.inArray(i,r)>-1)a&&a.push(i);else if(c=se(i),s=ve(p.appendChild(i),"script"),c&&_e(s),n)for(u=0;i=s[u++];)ye.test(i.type||"")&&n.push(i);return p}var we=/^key/,Ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ke=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Ce(){return!1}function Ie(e,t){return e===function(){try{return v.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,a,i){var s,o;if("object"==typeof t){for(o in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,o,n,r,t[o],i);return e}if(null==r&&null==a?(a=n,r=n=void 0):null==a&&("string"==typeof n?(a=r,r=void 0):(a=r,r=n,n=void 0)),!1===a)a=Ce;else if(!a)return e;return 1===i&&(s=a,(a=function(e){return w().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=w.guid++)),e.each((function(){w.event.add(this,t,a,r,n)}))}function Oe(e,t,n){n?(Q.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var r,a,i=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=o.call(arguments),Q.set(this,t,i),r=n(this,t),this[t](),i!==(a=Q.get(this,t))||r?Q.set(this,t,!1):a={},i!==a)return e.stopImmediatePropagation(),e.preventDefault(),a.value}else i.length&&(Q.set(this,t,{value:w.event.trigger(w.extend(i[0],w.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&w.event.add(e,t,Te)}w.event={global:{},add:function(e,t,n,r,a){var i,s,o,l,c,u,p,d,h,f,m,S=Q.get(e);if(J(e))for(n.handler&&(n=(i=n).handler,a=i.selector),a&&w.find.matchesSelector(ie,a),n.guid||(n.guid=w.guid++),(l=S.events)||(l=S.events=Object.create(null)),(s=S.handle)||(s=S.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(G)||[""]).length;c--;)h=m=(o=ke.exec(t[c])||[])[1],f=(o[2]||"").split(".").sort(),h&&(p=w.event.special[h]||{},h=(a?p.delegateType:p.bindType)||h,p=w.event.special[h]||{},u=w.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:a,needsContext:a&&w.expr.match.needsContext.test(a),namespace:f.join(".")},i),(d=l[h])||((d=l[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,r,f,s)||e.addEventListener&&e.addEventListener(h,s)),p.add&&(p.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),a?d.splice(d.delegateCount++,0,u):d.push(u),w.event.global[h]=!0)},remove:function(e,t,n,r,a){var i,s,o,l,c,u,p,d,h,f,m,S=Q.hasData(e)&&Q.get(e);if(S&&(l=S.events)){for(c=(t=(t||"").match(G)||[""]).length;c--;)if(h=m=(o=ke.exec(t[c])||[])[1],f=(o[2]||"").split(".").sort(),h){for(p=w.event.special[h]||{},d=l[h=(r?p.delegateType:p.bindType)||h]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=i=d.length;i--;)u=d[i],!a&&m!==u.origType||n&&n.guid!==u.guid||o&&!o.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(i,1),u.selector&&d.delegateCount--,p.remove&&p.remove.call(e,u));s&&!d.length&&(p.teardown&&!1!==p.teardown.call(e,f,S.handle)||w.removeEvent(e,h,S.handle),delete l[h])}else for(h in l)w.event.remove(e,h+t[c],n,r,!0);w.isEmptyObject(l)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,a,i,s,o=new Array(arguments.length),l=w.event.fix(e),c=(Q.get(this,"events")||Object.create(null))[l.type]||[],u=w.event.special[l.type]||{};for(o[0]=l,t=1;t<arguments.length;t++)o[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=w.event.handlers.call(this,l,c),t=0;(a=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=a.elem,n=0;(i=a.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==i.namespace&&!l.rnamespace.test(i.namespace)||(l.handleObj=i,l.data=i.data,void 0!==(r=((w.event.special[i.origType]||{}).handle||i.handler).apply(a.elem,o))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,a,i,s,o=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],s={},n=0;n<l;n++)void 0===s[a=(r=t[n]).selector+" "]&&(s[a]=r.needsContext?w(a,this).index(c)>-1:w.find(a,this,null,[c]).length),s[a]&&i.push(r);i.length&&o.push({elem:c,handlers:i})}return c=this,l<t.length&&o.push({elem:c,handlers:t.slice(l)}),o},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&A(t,"input")&&Oe(t,"click",Te),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&A(t,"input")&&Oe(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&A(t,"input")&&Q.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Ce,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Ce,isPropagationStopped:Ce,isImmediatePropagationStopped:Ce,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&we.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ee.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},(function(e,t){w.event.special[e]={setup:function(){return Oe(this,e,Ie),!1},trigger:function(){return Oe(this,e),!0},delegateType:t}})),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,a=e.relatedTarget,i=e.handleObj;return a&&(a===r||w.contains(r,a))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),w.fn.extend({on:function(e,t,n,r){return Ae(this,e,t,n,r)},one:function(e,t,n,r){return Ae(this,e,t,n,r,1)},off:function(e,t,n){var r,a;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,w(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ce),this.each((function(){w.event.remove(this,e,n,t)}))}});var xe=/<script|<style|<link/i,Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Fe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ge(e,t){var n,r,a,i,s,o;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.get(e).events))for(a in Q.remove(t,"handle events"),o)for(n=0,r=o[a].length;n<r;n++)w.event.add(t,a,o[a][n]);Y.hasData(e)&&(i=Y.access(e),s=w.extend({},i),Y.set(t,s))}}function Ue(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Le(e,t,n,r){t=l(t);var a,i,s,o,c,u,p=0,d=e.length,h=d-1,f=t[0],m=y(f);if(m||d>1&&"string"==typeof f&&!S.checkClone&&Ne.test(f))return e.each((function(a){var i=e.eq(a);m&&(t[0]=f.call(this,a,i.html())),Le(i,t,n,r)}));if(d&&(i=(a=Pe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===a.childNodes.length&&(a=i),i||r)){for(o=(s=w.map(ve(a,"script"),He)).length;p<d;p++)c=a,p!==h&&(c=w.clone(c,!0,!0),o&&w.merge(s,ve(c,"script"))),n.call(e[p],c,p);if(o)for(u=s[s.length-1].ownerDocument,w.map(s,Fe),p=0;p<o;p++)c=s[p],ye.test(c.type||"")&&!Q.access(c,"globalEval")&&w.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?w._evalUrl&&!c.noModule&&w._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):b(c.textContent.replace(Re,""),c,u))}return e}function je(e,t,n){for(var r,a=t?w.filter(t,e):e,i=0;null!=(r=a[i]);i++)n||1!==r.nodeType||w.cleanData(ve(r)),r.parentNode&&(n&&se(r)&&_e(ve(r,"script")),r.parentNode.removeChild(r));return e}w.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,a,i,s,o=e.cloneNode(!0),l=se(e);if(!(S.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(s=ve(o),r=0,a=(i=ve(e)).length;r<a;r++)Ue(i[r],s[r]);if(t)if(n)for(i=i||ve(e),s=s||ve(o),r=0,a=i.length;r<a;r++)Ge(i[r],s[r]);else Ge(e,o);return(s=ve(o,"script")).length>0&&_e(s,!l&&ve(e,"script")),o},cleanData:function(e){for(var t,n,r,a=w.event.special,i=0;void 0!==(n=e[i]);i++)if(J(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)a[r]?w.event.remove(n,r):w.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),w.fn.extend({detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return q(this,(function(e){return void 0===e?w.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Le(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)}))},prepend:function(){return Le(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Le(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Le(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return q(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!xe.test(e)&&!ge[(Se.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Le(this,arguments,(function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(ve(this)),n&&n.replaceChild(t,this))}),e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){w.fn[e]=function(e){for(var n,r=[],a=w(e),i=a.length-1,s=0;s<=i;s++)n=s===i?this:this.clone(!0),w(a[s])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Me=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),Be=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ke=function(e,t,n){var r,a,i={};for(a in t)i[a]=e.style[a],e.style[a]=t[a];for(a in r=n.call(e),t)e.style[a]=i[a];return r},qe=new RegExp(ae.join("|"),"i");function Ve(e,t,n){var r,a,i,s,o=e.style;return(n=n||Be(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||se(e)||(s=w.style(e,t)),!S.pixelBoxStyles()&&Me.test(s)&&qe.test(t)&&(r=o.width,a=o.minWidth,i=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=n.width,o.width=r,o.minWidth=a,o.maxWidth=i)),void 0!==s?s+"":s}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),a=36===t(e.width),u.style.position="absolute",i=12===t(u.offsetWidth/3),ie.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var r,a,i,s,o,l,c=v.createElement("div"),u=v.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",S.clearCloneStyle="content-box"===u.style.backgroundClip,w.extend(S,{boxSizingReliable:function(){return e(),a},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,r,a;return null==o&&(e=v.createElement("table"),t=v.createElement("tr"),r=v.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",r.style.height="9px",ie.appendChild(e).appendChild(t).appendChild(r),a=n.getComputedStyle(t),o=parseInt(a.height)>3,ie.removeChild(e)),o}}))}();var We=["Webkit","Moz","ms"],ze=v.createElement("div").style,Je={};function Xe(e){var t=w.cssProps[e]||Je[e];return t||(e in ze?e:Je[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=We.length;n--;)if((e=We[n]+t)in ze)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Ye=/^--/,Ze={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,a,i){var s="width"===t?1:0,o=0,l=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=w.css(e,n+ae[s],!0,a)),r?("content"===n&&(l-=w.css(e,"padding"+ae[s],!0,a)),"margin"!==n&&(l-=w.css(e,"border"+ae[s]+"Width",!0,a))):(l+=w.css(e,"padding"+ae[s],!0,a),"padding"!==n?l+=w.css(e,"border"+ae[s]+"Width",!0,a):o+=w.css(e,"border"+ae[s]+"Width",!0,a));return!r&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-o-.5))||0),l}function rt(e,t,n){var r=Be(e),a=(!S.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,r),i=a,s=Ve(e,t,r),o="offset"+t[0].toUpperCase()+t.slice(1);if(Me.test(s)){if(!n)return s;s="auto"}return(!S.boxSizingReliable()&&a||!S.reliableTrDimensions()&&A(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===w.css(e,"display",!1,r))&&e.getClientRects().length&&(a="border-box"===w.css(e,"boxSizing",!1,r),(i=o in e)&&(s=e[o])),(s=parseFloat(s)||0)+nt(e,t,n||(a?"border":"content"),i,r,s)+"px"}function at(e,t,n,r,a){return new at.prototype.init(e,t,n,r,a)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,i,s,o=z(t),l=Ye.test(t),c=e.style;if(l||(t=Xe(o)),s=w.cssHooks[t]||w.cssHooks[o],void 0===n)return s&&"get"in s&&void 0!==(a=s.get(e,!1,r))?a:c[t];"string"===(i=typeof n)&&(a=re.exec(n))&&a[1]&&(n=ce(e,t,a),i="number"),null!=n&&n==n&&("number"!==i||l||(n+=a&&a[3]||(w.cssNumber[o]?"":"px")),S.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var a,i,s,o=z(t);return Ye.test(t)||(t=Xe(o)),(s=w.cssHooks[t]||w.cssHooks[o])&&"get"in s&&(a=s.get(e,!0,n)),void 0===a&&(a=Ve(e,t,r)),"normal"===a&&t in et&&(a=et[t]),""===n||n?(i=parseFloat(a),!0===n||isFinite(i)?i||0:a):a}}),w.each(["height","width"],(function(e,t){w.cssHooks[t]={get:function(e,n,r){if(n)return!Qe.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):Ke(e,Ze,(function(){return rt(e,t,r)}))},set:function(e,n,r){var a,i=Be(e),s=!S.scrollboxSize()&&"absolute"===i.position,o=(s||r)&&"border-box"===w.css(e,"boxSizing",!1,i),l=r?nt(e,t,r,o,i):0;return o&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-nt(e,t,"border",!1,i)-.5)),l&&(a=re.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),tt(0,n,l)}}})),w.cssHooks.marginLeft=$e(S.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(e,t){w.cssHooks[e+t]={expand:function(n){for(var r=0,a={},i="string"==typeof n?n.split(" "):[n];r<4;r++)a[e+ae[r]+t]=i[r]||i[r-2]||i[0];return a}},"margin"!==e&&(w.cssHooks[e+t].set=tt)})),w.fn.extend({css:function(e,t){return q(this,(function(e,t,n){var r,a,i={},s=0;if(Array.isArray(t)){for(r=Be(e),a=t.length;s<a;s++)i[t[s]]=w.css(e,t[s],!1,r);return i}return void 0!==n?w.style(e,t,n):w.css(e,t)}),e,t,arguments.length>1)}}),w.Tween=at,at.prototype={constructor:at,init:function(e,t,n,r,a,i){this.elem=e,this.prop=n,this.easing=a||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(w.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}},at.prototype.init.prototype=at.prototype,at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},at.propHooks.scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=at.prototype.init,w.fx.step={};var it,st,ot=/^(?:toggle|show|hide)$/,lt=/queueHooks$/;function ct(){st&&(!1===v.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ct):n.setTimeout(ct,w.fx.interval),w.fx.tick())}function ut(){return n.setTimeout((function(){it=void 0})),it=Date.now()}function pt(e,t){var n,r=0,a={height:e};for(t=t?1:0;r<4;r+=2-t)a["margin"+(n=ae[r])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function dt(e,t,n){for(var r,a=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),i=0,s=a.length;i<s;i++)if(r=a[i].call(n,t,e))return r}function ht(e,t,n){var r,a,i=0,s=ht.prefilters.length,o=w.Deferred().always((function(){delete l.elem})),l=function(){if(a)return!1;for(var t=it||ut(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),i=0,s=c.tweens.length;i<s;i++)c.tweens[i].run(r);return o.notifyWith(e,[c,r,n]),r<1&&s?n:(s||o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c]),!1)},c=o.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=w.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(a)return this;for(a=!0;n<r;n++)c.tweens[n].run(1);return t?(o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c,t])):o.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,a,i,s;for(n in e)if(a=t[r=z(n)],i=e[n],Array.isArray(i)&&(a=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(s=w.cssHooks[r])&&"expand"in s)for(n in i=s.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=a);else t[r]=a}(u,c.opts.specialEasing);i<s;i++)if(r=ht.prefilters[i].call(c,e,u,c.opts))return y(r.stop)&&(w._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return w.map(u,dt,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),w.fx.timer(w.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}w.Animation=w.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ce(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(G);for(var n,r=0,a=e.length;r<a;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,a,i,s,o,l,c,u,p="width"in t||"height"in t,d=this,h={},f=e.style,m=e.nodeType&&le(e),S=Q.get(e,"fxshow");for(r in n.queue||(null==(s=w._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,o=s.empty.fire,s.empty.fire=function(){s.unqueued||o()}),s.unqueued++,d.always((function(){d.always((function(){s.unqueued--,w.queue(e,"fx").length||s.empty.fire()}))}))),t)if(a=t[r],ot.test(a)){if(delete t[r],i=i||"toggle"===a,a===(m?"hide":"show")){if("show"!==a||!S||void 0===S[r])continue;m=!0}h[r]=S&&S[r]||w.style(e,r)}if((l=!w.isEmptyObject(t))||!w.isEmptyObject(h))for(r in p&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=S&&S.display)&&(c=Q.get(e,"display")),"none"===(u=w.css(e,"display"))&&(c?u=c:(de([e],!0),c=e.style.display||c,u=w.css(e,"display"),de([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===w.css(e,"float")&&(l||(d.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,h)l||(S?"hidden"in S&&(m=S.hidden):S=Q.access(e,"fxshow",{display:c}),i&&(S.hidden=!m),m&&de([e],!0),d.done((function(){for(r in m||de([e]),Q.remove(e,"fxshow"),h)w.style(e,r,h[r])}))),l=dt(m?S[r]:0,r,d),r in S||(S[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),w.speed=function(e,t,n){var r=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return w.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in w.fx.speeds?r.duration=w.fx.speeds[r.duration]:r.duration=w.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&w.dequeue(this,r.queue)},r},w.fn.extend({fadeTo:function(e,t,n,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var a=w.isEmptyObject(e),i=w.speed(t,n,r),s=function(){var t=ht(this,w.extend({},e),i);(a||Q.get(this,"finish"))&&t.stop(!0)};return s.finish=s,a||!1===i.queue?this.each(s):this.queue(i.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",i=w.timers,s=Q.get(this);if(a)s[a]&&s[a].stop&&r(s[a]);else for(a in s)s[a]&&s[a].stop&<.test(a)&&r(s[a]);for(a=i.length;a--;)i[a].elem!==this||null!=e&&i[a].queue!==e||(i[a].anim.stop(n),t=!1,i.splice(a,1));!t&&n||w.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Q.get(this),r=n[e+"queue"],a=n[e+"queueHooks"],i=w.timers,s=r?r.length:0;for(n.finish=!0,w.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),w.each(["toggle","show","hide"],(function(e,t){var n=w.fn[t];w.fn[t]=function(e,r,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(pt(t,!0),e,r,a)}})),w.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){w.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),it=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){st||(st=!0,ct())},w.fx.stop=function(){st=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(e,t){return e=w.fx&&w.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var a=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(a)}}))},function(){var e=v.createElement("input"),t=v.createElement("select").appendChild(v.createElement("option"));e.type="checkbox",S.checkOn=""!==e.value,S.optSelected=t.selected,(e=v.createElement("input")).value="t",e.type="radio",S.radioValue="t"===e.value}();var ft,mt=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return q(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}),w.extend({attr:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?w.prop(e,t,n):(1===i&&w.isXMLDoc(e)||(a=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?ft:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(r=a.get(e,t))?r:null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!S.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,a=t&&t.match(G);if(a&&1===e.nodeType)for(;n=a[r++];)e.removeAttribute(n)}}),ft={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||w.find.attr;mt[t]=function(e,t,r){var a,i,s=t.toLowerCase();return r||(i=mt[s],mt[s]=a,a=null!=n(e,t,r)?s:null,mt[s]=i),a}}));var St=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;function gt(e){return(e.match(G)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function _t(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(G)||[]}w.fn.extend({prop:function(e,t){return q(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&w.isXMLDoc(e)||(t=w.propFix[t]||t,a=w.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:e[t]=n:a&&"get"in a&&null!==(r=a.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):St.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),S.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,n,r,a,i,s,o,l=0;if(y(e))return this.each((function(t){w(this).addClass(e.call(this,t,vt(this)))}));if((t=_t(e)).length)for(;n=this[l++];)if(a=vt(n),r=1===n.nodeType&&" "+gt(a)+" "){for(s=0;i=t[s++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a!==(o=gt(r))&&n.setAttribute("class",o)}return this},removeClass:function(e){var t,n,r,a,i,s,o,l=0;if(y(e))return this.each((function(t){w(this).removeClass(e.call(this,t,vt(this)))}));if(!arguments.length)return this.attr("class","");if((t=_t(e)).length)for(;n=this[l++];)if(a=vt(n),r=1===n.nodeType&&" "+gt(a)+" "){for(s=0;i=t[s++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");a!==(o=gt(r))&&n.setAttribute("class",o)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each((function(n){w(this).toggleClass(e.call(this,n,vt(this),t),t)})):this.each((function(){var t,a,i,s;if(r)for(a=0,i=w(this),s=_t(e);t=s[a++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=vt(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+gt(vt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;w.fn.extend({val:function(e){var t,n,r,a=this[0];return arguments.length?(r=y(e),this.each((function(n){var a;1===this.nodeType&&(null==(a=r?e.call(this,n,w(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=w.map(a,(function(e){return null==e?"":e+""}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=w.valHooks[a.type]||w.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(bt,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:gt(w.text(e))}},select:{get:function(e){var t,n,r,a=e.options,i=e.selectedIndex,s="select-one"===e.type,o=s?null:[],l=s?i+1:a.length;for(r=i<0?l:s?i:0;r<l;r++)if(((n=a[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=w(n).val(),s)return t;o.push(t)}return o},set:function(e,t){for(var n,r,a=e.options,i=w.makeArray(t),s=a.length;s--;)((r=a[s]).selected=w.inArray(w.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},S.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),S.focusin="onfocusin"in n;var Pt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(e,t,r,a){var i,s,o,l,c,u,p,d,f=[r||v],m=h.call(e,"type")?e.type:e,S=h.call(e,"namespace")?e.namespace.split("."):[];if(s=d=o=r=r||v,3!==r.nodeType&&8!==r.nodeType&&!Pt.test(m+w.event.triggered)&&(m.indexOf(".")>-1&&(S=m.split("."),m=S.shift(),S.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[w.expando]?e:new w.Event(m,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=S.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+S.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:w.makeArray(t,[e]),p=w.event.special[m]||{},a||!p.trigger||!1!==p.trigger.apply(r,t))){if(!a&&!p.noBubble&&!g(r)){for(l=p.delegateType||m,Pt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)f.push(s),o=s;o===(r.ownerDocument||v)&&f.push(o.defaultView||o.parentWindow||n)}for(i=0;(s=f[i++])&&!e.isPropagationStopped();)d=s,e.type=i>1?l:p.bindType||m,(u=(Q.get(s,"events")||Object.create(null))[e.type]&&Q.get(s,"handle"))&&u.apply(s,t),(u=c&&s[c])&&u.apply&&J(s)&&(e.result=u.apply(s,t),!1===e.result&&e.preventDefault());return e.type=m,a||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(f.pop(),t)||!J(r)||c&&y(r[m])&&!g(r)&&((o=r[c])&&(r[c]=null),w.event.triggered=m,e.isPropagationStopped()&&d.addEventListener(m,wt),r[m](),e.isPropagationStopped()&&d.removeEventListener(m,wt),w.event.triggered=void 0,o&&(r[c]=o)),e.result}},simulate:function(e,t,n){var r=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),S.focusin||w.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,a=Q.access(r,t);a||r.addEventListener(e,n,!0),Q.access(r,t,(a||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,a=Q.access(r,t)-1;a?Q.access(r,t,a):(r.removeEventListener(e,n,!0),Q.remove(r,t))}}}));var Et=n.location,kt={guid:Date.now()},Tt=/\?/;w.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+e),t};var Ct=/\[\]$/,It=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function xt(e,t,n,r){var a;if(Array.isArray(t))w.each(t,(function(t,a){n||Ct.test(e)?r(e,a):xt(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,n,r)}));else if(n||"object"!==P(t))r(e,t);else for(a in t)xt(e+"["+a+"]",t[a],n,r)}w.param=function(e,t){var n,r=[],a=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){a(this.name,this.value)}));else for(n in e)xt(n,e[n],t,a);return r.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Ot.test(this.nodeName)&&!At.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,(function(e){return{name:t.name,value:e.replace(It,"\r\n")}})):{name:t.name,value:n.replace(It,"\r\n")}})).get()}});var Nt=/%20/g,Rt=/#.*$/,Dt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,Gt=/^\/\//,Ut={},Lt={},jt="*/".concat("*"),Mt=v.createElement("a");function Bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,a=0,i=t.toLowerCase().match(G)||[];if(y(n))for(;r=i[a++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Kt(e,t,n,r){var a={},i=e===Lt;function s(o){var l;return a[o]=!0,w.each(e[o]||[],(function(e,o){var c=o(t,n,r);return"string"!=typeof c||i||a[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)})),l}return s(t.dataTypes[0])||!a["*"]&&s("*")}function qt(e,t){var n,r,a=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:r||(r={}))[n]=t[n]);return r&&w.extend(!0,e,r),e}Mt.href=Et.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,w.ajaxSettings),t):qt(w.ajaxSettings,e)},ajaxPrefilter:Bt(Ut),ajaxTransport:Bt(Lt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,a,i,s,o,l,c,u,p,d,h=w.ajaxSetup({},t),f=h.context||h,m=h.context&&(f.nodeType||f.jquery)?w(f):w.event,S=w.Deferred(),y=w.Callbacks("once memory"),g=h.statusCode||{},_={},b={},P="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Ht.exec(i);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(e,t){return null==c&&(e=b[e.toLowerCase()]=b[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)g[t]=[g[t],e[t]];return this},abort:function(e){var t=e||P;return r&&r.abort(t),k(0,t),this}};if(S.promise(E),h.url=((e||h.url||Et.href)+"").replace(Gt,Et.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(G)||[""],null==h.crossDomain){l=v.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Mt.protocol+"//"+Mt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),Kt(Ut,h,t,E),c)return E;for(p in(u=w.event&&h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ft.test(h.type),a=h.url.replace(Rt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Nt,"+")):(d=h.url.slice(a.length),h.data&&(h.processData||"string"==typeof h.data)&&(a+=(Tt.test(a)?"&":"?")+h.data,delete h.data),!1===h.cache&&(a=a.replace(Dt,"$1"),d=(Tt.test(a)?"&":"?")+"_="+kt.guid+++d),h.url=a+d),h.ifModified&&(w.lastModified[a]&&E.setRequestHeader("If-Modified-Since",w.lastModified[a]),w.etag[a]&&E.setRequestHeader("If-None-Match",w.etag[a])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+jt+"; q=0.01":""):h.accepts["*"]),h.headers)E.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(f,E,h)||c))return E.abort();if(P="abort",y.add(h.complete),E.done(h.success),E.fail(h.error),r=Kt(Lt,h,t,E)){if(E.readyState=1,u&&m.trigger("ajaxSend",[E,h]),c)return E;h.async&&h.timeout>0&&(o=n.setTimeout((function(){E.abort("timeout")}),h.timeout));try{c=!1,r.send(_,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(e,t,s,l){var p,d,v,_,b,P=t;c||(c=!0,o&&n.clearTimeout(o),r=void 0,i=l||"",E.readyState=e>0?4:0,p=e>=200&&e<300||304===e,s&&(_=function(e,t,n){for(var r,a,i,s,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in o)if(o[a]&&o[a].test(r)){l.unshift(a);break}if(l[0]in n)i=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){i=a;break}s||(s=a)}i=i||s}if(i)return i!==l[0]&&l.unshift(i),n[i]}(h,E,s)),!p&&w.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),_=function(e,t,n,r){var a,i,s,o,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(s=c[l+" "+i]||c["* "+i]))for(a in c)if((o=a.split(" "))[1]===i&&(s=c[l+" "+o[0]]||c["* "+o[0]])){!0===s?s=c[a]:!0!==c[a]&&(i=o[0],u.unshift(o[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(h,_,E,p),p?(h.ifModified&&((b=E.getResponseHeader("Last-Modified"))&&(w.lastModified[a]=b),(b=E.getResponseHeader("etag"))&&(w.etag[a]=b)),204===e||"HEAD"===h.type?P="nocontent":304===e?P="notmodified":(P=_.state,d=_.data,p=!(v=_.error))):(v=P,!e&&P||(P="error",e<0&&(e=0))),E.status=e,E.statusText=(t||P)+"",p?S.resolveWith(f,[d,P,E]):S.rejectWith(f,[E,P,v]),E.statusCode(g),g=void 0,u&&m.trigger(p?"ajaxSuccess":"ajaxError",[E,h,p?d:v]),y.fireWith(f,[E,P]),u&&(m.trigger("ajaxComplete",[E,h]),--w.active||w.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],(function(e,t){w[t]=function(e,n,r,a){return y(n)&&(a=a||r,r=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:a,data:n,success:r},w.isPlainObject(e)&&e))}})),w.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),w._evalUrl=function(e,t,n){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,n)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){w(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},$t=w.ajaxSettings.xhr();S.cors=!!$t&&"withCredentials"in $t,S.ajax=$t=!!$t,w.ajaxTransport((function(e){var t,r;if(S.cors||$t&&!e.crossDomain)return{send:function(a,i){var s,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)o[s]=e.xhrFields[s];for(s in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)o.setRequestHeader(s,a[s]);t=function(e){return function(){t&&(t=r=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?i(0,"error"):i(o.status,o.statusText):i(Vt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),r=o.onerror=o.ontimeout=t("error"),void 0!==o.onabort?o.onabort=r:o.onreadystatechange=function(){4===o.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),w.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),w.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,a){t=w("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Wt,zt=[],Jt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||w.expando+"_"+kt.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",(function(e,t,r){var a,i,s,o=!1!==e.jsonp&&(Jt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(Jt,"$1"+a):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return s||w.error(a+" was not called"),s[0]},e.dataTypes[0]="json",i=n[a],n[a]=function(){s=arguments},r.always((function(){void 0===i?w(n).removeProp(a):n[a]=i,e[a]&&(e.jsonpCallback=t.jsonpCallback,zt.push(a)),s&&y(i)&&i(s[0]),s=i=void 0})),"script"})),S.createHTMLDocument=((Wt=v.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Wt.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(S.createHTMLDocument?((r=(t=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,t.head.appendChild(r)):t=v),i=!n&&[],(a=O.exec(e))?[t.createElement(a[1])]:(a=Pe([e],t,i),i&&i.length&&w(i).remove(),w.merge([],a.childNodes)));var r,a,i},w.fn.load=function(e,t,n){var r,a,i,s=this,o=e.indexOf(" ");return o>-1&&(r=gt(e.slice(o)),e=e.slice(0,o)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),s.length>0&&w.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){i=arguments,s.html(r?w("<div>").append(w.parseHTML(e)).find(r):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,(function(t){return e===t.elem})).length},w.offset={setOffset:function(e,t,n){var r,a,i,s,o,l,c=w.css(e,"position"),u=w(e),p={};"static"===c&&(e.style.position="relative"),o=u.offset(),i=w.css(e,"top"),l=w.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(s=(r=u.position()).top,a=r.left):(s=parseFloat(i)||0,a=parseFloat(l)||0),y(t)&&(t=t.call(e,n,w.extend({},o))),null!=t.top&&(p.top=t.top-o.top+s),null!=t.left&&(p.left=t.left-o.left+a),"using"in t?t.using.call(e,p):("number"==typeof p.top&&(p.top+="px"),"number"==typeof p.left&&(p.left+="px"),u.css(p))}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){w.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],a={top:0,left:0};if("fixed"===w.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((a=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),a.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-w.css(r,"marginTop",!0),left:t.left-a.left-w.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||ie}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;w.fn[e]=function(r){return q(this,(function(e,r,a){var i;if(g(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===a)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:a,n?a:i.pageYOffset):e[r]=a}),e,r,arguments.length)}})),w.each(["top","left"],(function(e,t){w.cssHooks[t]=$e(S.pixelPosition,(function(e,n){if(n)return n=Ve(e,t),Me.test(n)?w(e).position()[t]+"px":n}))})),w.each({Height:"height",Width:"width"},(function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){w.fn[r]=function(a,i){var s=arguments.length&&(n||"boolean"!=typeof a),o=n||(!0===a||!0===i?"margin":"border");return q(this,(function(t,n,a){var i;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===a?w.css(t,n,o):w.style(t,n,a,o)}),t,s?a:void 0,s)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){w.fn[t]=function(e){return this.on(t,e)}})),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(e,t){var n,r,a;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return r=o.call(arguments,2),(a=function(){return e.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||w.guid++,a},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=A,w.isFunction=y,w.isWindow=g,w.camelCase=z,w.type=P,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},void 0===(r=function(){return w}.apply(t,[]))||(e.exports=r);var Qt=n.jQuery,Yt=n.$;return w.noConflict=function(e){return n.$===w&&(n.$=Yt),e&&n.jQuery===w&&(n.jQuery=Qt),w},void 0===a&&(n.jQuery=n.$=w),w}))},function(e,t,n){var r=n(85);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));n(6),n(15);function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function a(e,t){return e.require(t)}}).call(this,n(99)(e))},function(e,t,n){var r=n(105);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(353),a=n(169)((function(e,t){return null==e?{}:r(e,t)}));e.exports=a},function(e,t,n){var r=n(176);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){var r=n(87),a=n(34),i=n(48),s=a((function(e,t){return i(e)?r(e,t):[]}));e.exports=s},function(e,t,n){var r=n(140),a=n(255),i=n(12),s=n(9);e.exports=function(e,t){return(s(e)?r:a)(e,i(t,3))}},function(e,t,n){var r=n(86),a=n(29),i=n(116),s=n(25),o=n(58),l=n(32),c=Object.prototype.hasOwnProperty,u=i((function(e,t){if(o(t)||s(t))a(t,l(t),e);else for(var n in t)c.call(t,n)&&r(e,n,t[n])}));e.exports=u},function(e,t,n){var r=n(77),a=n(261)(r);e.exports=a},function(e,t,n){var r=n(141),a=n(32);e.exports=function(e,t){return e&&r(e,t,a)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(259),a=n(57),i=n(101),s=i&&i.isTypedArray,o=s?a(s):r;e.exports=o},function(e,t,n){var r=n(81),a=n(269),i=n(270),s=n(271),o=n(272),l=n(273);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=a,c.prototype.delete=i,c.prototype.get=s,c.prototype.has=o,c.prototype.set=l,e.exports=c},function(e,t,n){var r=n(264),a=n(265),i=n(266),s=n(267),o=n(268);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=s,l.prototype.set=o,e.exports=l},function(e,t,n){var r=n(41);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(33)(Object,"create");e.exports=r},function(e,t,n){var r=n(286);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(106),a=n(156),i=n(158),s=n(107),o=n(318),l=n(108);e.exports=function(e,t,n){var c=-1,u=a,p=e.length,d=!0,h=[],f=h;if(n)d=!1,u=i;else if(p>=200){var m=t?null:o(e);if(m)return l(m);d=!1,u=s,f=new r}else f=t?[]:h;e:for(;++c<p;){var S=e[c],y=t?t(S):S;if(S=n||0!==S?S:0,d&&y==y){for(var g=f.length;g--;)if(f[g]===y)continue e;t&&f.push(y),h.push(S)}else u(f,y,n)||(f!==h&&f.push(y),h.push(S))}return h}},function(e,t,n){var r=n(46),a=n(41),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];i.call(e,t)&&a(s,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(106),a=n(156),i=n(158),s=n(44),o=n(57),l=n(107);e.exports=function(e,t,n,c){var u=-1,p=a,d=!0,h=e.length,f=[],m=t.length;if(!h)return f;n&&(t=s(t,o(n))),c?(p=i,d=!1):t.length>=200&&(p=l,d=!1,t=new r(t));e:for(;++u<h;){var S=e[u],y=null==n?S:n(S);if(S=c||0!==S?S:0,d&&y==y){for(var g=m;g--;)if(t[g]===y)continue e;f.push(S)}else p(t,y,c)||f.push(S)}return f}},function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r))}),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(372)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,t){e.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},function(e,t){e.exports=function(){}},function(e,t){e.exports=require("util")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}},function(e,t,n){var r=n(44),a=n(113),i=n(168),s=n(42),o=n(29),l=n(343),c=n(169),u=n(114),p=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=s(t,e),c||(c=t.length>1),t})),o(e,u(e),n),c&&(n=a(n,7,l));for(var p=t.length;p--;)i(n,t[p]);return n}));e.exports=p},function(e,t,n){var r=n(12),a=n(85);e.exports=function(e,t){return e&&e.length?a(e,r(t,2)):[]}},function(e,t,n){var r=n(174)((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));e.exports=r},function(e,t,n){var r=n(396),a=n(18),i=a;i.v1=r,i.v4=a,e.exports=i},function(e,t){e.exports=function(){return!0}},function(e,t,n){var r=n(135)(Object.getPrototypeOf,Object);e.exports=r},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(134),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===a&&r.process,o=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=o}).call(this,n(78)(e))},function(e,t,n){var r=n(28),a=n(16);e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(33)(n(20),"Map");e.exports=r},function(e,t,n){var r=n(278),a=n(285),i=n(287),s=n(288),o=n(289);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=s,l.prototype.set=o,e.exports=l},function(e,t,n){var r=n(290),a=n(21);e.exports=function e(t,n,i,s,o){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!=t&&n!=n:r(t,n,i,s,e,o))}},function(e,t,n){var r=n(104),a=n(291),i=n(292);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=a,s.prototype.has=i,e.exports=s},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},function(e,t,n){var r=n(140),a=n(149),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,o=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return i.call(e,t)})))}:a;e.exports=o},function(e,t,n){var r=n(9),a=n(43),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(s.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t){e.exports=function(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(80),a=n(162),i=n(86),s=n(326),o=n(327),l=n(163),c=n(164),u=n(330),p=n(331),d=n(147),h=n(114),f=n(59),m=n(332),S=n(333),y=n(167),g=n(9),v=n(55),_=n(338),b=n(16),P=n(340),w=n(32),E=n(49),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function e(t,n,T,C,I,A){var O,x=1&n,N=2&n,R=4&n;if(T&&(O=I?T(t,C,I,A):T(t)),void 0!==O)return O;if(!b(t))return t;var D=g(t);if(D){if(O=m(t),!x)return c(t,O)}else{var H=f(t),F="[object Function]"==H||"[object GeneratorFunction]"==H;if(v(t))return l(t,x);if("[object Object]"==H||"[object Arguments]"==H||F&&!I){if(O=N||F?{}:y(t),!x)return N?p(t,o(O,t)):u(t,s(O,t))}else{if(!k[H])return I?t:{};O=S(t,H,x)}}A||(A=new r);var G=A.get(t);if(G)return G;A.set(t,O),P(t)?t.forEach((function(r){O.add(e(r,n,T,r,t,A))})):_(t)&&t.forEach((function(r,a){O.set(a,e(r,n,T,a,t,A))}));var U=D?void 0:(R?N?h:d:N?E:w)(t);return a(U||t,(function(r,a){U&&(r=t[a=r]),i(O,a,e(r,n,T,a,t,A))})),O}},function(e,t,n){var r=n(148),a=n(165),i=n(49);e.exports=function(e){return r(e,i,a)}},function(e,t,n){var r=n(146);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(34),a=n(117);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(i--,s):void 0,o&&a(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,s)}return t}))}},function(e,t,n){var r=n(41),a=n(25),i=n(56),s=n(16);e.exports=function(e,t,n){if(!s(n))return!1;var o=typeof t;return!!("number"==o?a(n)&&i(t,n.length):"string"==o&&t in n)&&r(n[t],e)}},function(e,t,n){var r=n(180);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){const r=n(62),a=n(63),i=n(64)("engine.io-client:transport");e.exports=class extends a{constructor(e){super(),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,t){const n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this}open(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState?this.write(e):i("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,this.emit("open")}onData(e){const t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){this.emit("packet",e)}onClose(){this.readyState="closed",this.emit("close")}}},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,a=n.length;r<a;r++){var i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const r=n(63),a=n(386),i=n(190),s=n(387)("socket.io-parser");var o;t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(o=t.PacketType||(t.PacketType={}));t.Encoder=class{encode(e){return s("encoding packet %j",e),e.type!==o.EVENT&&e.type!==o.ACK||!i.hasBinary(e)?[this.encodeAsString(e)]:(e.type=e.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,this.encodeAsBinary(e))}encodeAsString(e){let t=""+e.type;return e.type!==o.BINARY_EVENT&&e.type!==o.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data)),s("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=a.deconstructPacket(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}};class l extends r{constructor(){super()}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===o.BINARY_EVENT||t.type===o.BINARY_ACK?(this.reconstructor=new c(t),0===t.attachments&&super.emit("decoded",t)):super.emit("decoded",t)}else{if(!i.isBinary(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emit("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===o[n.type])throw new Error("unknown packet type "+n.type);if(n.type===o.BINARY_EVENT||n.type===o.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(r,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(a)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(t));if(!l.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return s("decoded %s as %j",e,n),n}static isPayloadValid(e,t){switch(e){case o.CONNECT:return"object"==typeof t;case o.DISCONNECT:return void 0===t;case o.CONNECT_ERROR:return"string"==typeof t||"object"==typeof t;case o.EVENT:case o.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case o.ACK:case o.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}t.Decoder=l;class c{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=a.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},function(e,t,n){var r=n(28),a=n(9),i=n(21);e.exports=function(e){return"string"==typeof e||!a(e)&&i(e)&&"[object String]"==r(e)}},function(e,t,n){var r=n(60);e.exports=function(e,t,n){var a=null==e?void 0:r(e,t);return void 0===a?n:a}},function(e,t,n){var r=n(47);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forwardToMain",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"forwardToMainWithParams",{enumerable:!0,get:function(){return r.forwardToMainWithParams}}),Object.defineProperty(t,"forwardToRenderer",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"triggerAlias",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"createAliasedAction",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"replayActionMain",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"replayActionRenderer",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"getInitialStateRenderer",{enumerable:!0,get:function(){return c.default}});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(241)),a=u(n(248)),i=u(n(249)),s=u(n(251)),o=u(n(252)),l=u(n(253)),c=u(n(254));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(6);function a(e){try{for(var t=e,n=[],r=0,a=0,s=" > ".length,o=void 0;t&&r++<5&&!("html"===(o=i(t))||r>1&&a+n.length*s+o.length>=80);)n.push(o),a+=o.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function i(e){var t,n,a,i,s,o=e,l=[];if(!o||!o.tagName)return"";if(l.push(o.tagName.toLowerCase()),o.id&&l.push("#"+o.id),(t=o.className)&&Object(r.k)(t))for(n=t.split(/\s+/),s=0;s<n.length;s++)l.push("."+n[s]);var c=["type","name","title","alt"];for(s=0;s<c.length;s++)a=c[s],(i=o.getAttribute(a))&&l.push("["+a+'="'+i+'"]');return l.join("")}},function(e,t,n){var r=n(87),a=n(47),i=n(12),s=n(34),o=n(48),l=n(23),c=s((function(e,t){var n=l(t);return o(n)&&(n=void 0),o(e)?r(e,a(t,1,o,!0),i(n,2)):[]}));e.exports=c},function(e,t,n){e.exports=n(361)},function(e,t,n){ /* * jwerty - Awesome handling of keyboard events * * jwerty is a JS lib which allows you to bind, fire and assert key combination * strings against elements and events. It normalises the poor std api into * something easy to use and clear. * * This code is licensed under the MIT * For the full license see: http://keithamus.mit-license.org/ * For more information see: http://keithamus.github.com/jwerty * * @author Keith Cirkel ('keithamus') <jwerty@keithcirkel.co.uk> * @license http://keithamus.mit-license.org/ * @copyright Copyright © 2011, Keith Cirkel * */ !function(t,r){function a(r){if(!e.exports)return t[r];try{return n(391)(r.toLowerCase())}catch(e){}}var i,s,o,l,c=t.document,u=a("jQuery")||a("Zepto")||a("ender")||c,p="keydown";function d(e,t){return null===e?"null"===t:void 0===e?"undefined"===t:e.is&&e instanceof u?"element"===t:Object.prototype.toString.call(e).toLowerCase().indexOf(t)>7}u===c?(i=function(e,t){return e?u.querySelector(e,t||u):u},s=function(e,t){e.addEventListener(p,t,!1)},o=function(e,t){e.removeEventListener(p,t,!1)},l=function(e,t){var n,r=c.createEvent("Event");for(n in r.initEvent(p,!0,!0),t)r[n]=t[n];return(e||u).dispatchEvent(r)}):(i=function(e,t){return u(e||c,t)},s=function(e,t){u(e).bind(p+".jwerty",t)},o=function(e,t){u(e).unbind(p+".jwerty",t)},l=function(e,t){u(e||c).trigger(u.Event(p,t))});for(var h={16:"shiftKey",17:"ctrlKey",18:"altKey",91:"metaKey"},f={mods:{"⇧":16,shift:16,"⌃":17,ctrl:17,"⌥":18,alt:18,option:18,"⌘":91,meta:91,cmd:91,super:91,win:91},keys:{"⌫":8,backspace:8,"⇥":9,"⇆":9,tab:9,"↩":13,return:13,enter:13,"⌅":13,pause:19,"pause-break":19,"⇪":20,caps:20,"caps-lock":20,"⎋":27,escape:27,esc:27,space:32,"↖":33,pgup:33,"page-up":33,"↘":34,pgdown:34,"page-down":34,"⇟":35,end:35,"⇞":36,home:36,ins:45,insert:45,del:46,delete:46,"←":37,left:37,"arrow-left":37,"↑":38,up:38,"arrow-up":38,"→":39,right:39,"arrow-right":39,"↓":40,down:40,"arrow-down":40,"*":106,star:106,asterisk:106,multiply:106,"+":107,plus:107,"-":109,subtract:109,"num-.":110,"num-period":110,"num-dot":110,"num-full-stop":110,"num-delete":110,";":186,semicolon:186,"=":187,equals:187,",":188,comma:188,".":190,period:190,"full-stop":190,"/":191,slash:191,"forward-slash":191,"`":192,tick:192,"back-quote":192,"[":219,"open-bracket":219,"\\":220,"back-slash":220,"]":221,"close-bracket":221,"'":222,quote:222,apostraphe:222}},m=47,S=0;++m<106;)f.keys[S]=m,f.keys["num-"+S]=m+48,++S;for(m=111,S=1;++m<136;)f.keys["f"+S]=m,++S;for(m=64;++m<91;)f.keys[String.fromCharCode(m).toLowerCase()]=m;function y(e){var t,n,r,a,i,s,o,l,c;if(e instanceof y)return e;for(d(e,"array")||(e=String(e).replace(/\s/g,"").toLowerCase().match(/(?:\+,|[^,])+/g)),t=0,n=e.length;t<n;++t){for(d(e[t],"array")||(e[t]=String(e[t]).match(/(?:\+\/|[^\/])+/g)),s=[],r=e[t].length;r--;){for(o=e[t][r],i={jwertyCombo:String(o),shiftKey:!1,ctrlKey:!1,altKey:!1,metaKey:!1},d(o,"array")||(o=String(o).toLowerCase().match(/(?:(?:[^\+])+|\+\+|^\+$)/g)),a=o.length;a--;)"++"===o[a]&&(o[a]="+"),o[a]in f.mods?i[h[f.mods[o[a]]]]=!0:o[a]in f.keys?i.keyCode=f.keys[o[a]]:l=o[a].match(/^\[([^-]+\-?[^-]*)-([^-]+\-?[^-]*)\]$/);if(d(i.keyCode,"undefined"))if(l&&l[1]in f.keys&&l[2]in f.keys){for(l[2]=f.keys[l[2]],l[1]=f.keys[l[1]],c=l[1];c<l[2];++c)s.push({altKey:i.altKey,shiftKey:i.shiftKey,metaKey:i.metaKey,ctrlKey:i.ctrlKey,keyCode:c,jwertyCombo:String(o)});i.keyCode=c}else i.keyCode=0;s.push(i)}this[t]=s}return this.length=t,this}var g=r.jwerty={event:function(e,t,n){if(d(t,"boolean")){var r=t;t=function(){return r}}e=new y(e);var a,i=0,s=e.length-1;return function(r){if(a=g.is(e,r,i))return i<s?void++i:(!1===t.call(n||this,r,a)&&r.preventDefault(),void(i=0));i=g.is(e,r)?1:0}},is:function(e,t,n){e=(e=new y(e))[n=n||0],t=t.originalEvent||t;for(var r=e.length,a=!1;r--;){for(var i in a=e[r].jwertyCombo,e[r])"jwertyCombo"!==i&&t[i]!=e[r][i]&&(a=!1);if(!1!==a)return a}return a},key:function(e,n,r,a,l){var c=d(r,"element")||d(r,"string")?r:a,u=c===r?t:r,p=c===r?a:l,h=d(c,"element")?c:i(c,p),f=g.event(e,n,u);return s(h,f),{unbind:function(){o(h,f)}}},fire:function(e,t,n,r){e=new y(e);var a=d(n,"number")?n:r;l(d(t,"element")?t:i(t,n),e[a||0][0])},KEYS:f}}("undefined"!=typeof global&&global.window||this,e.exports?e.exports:this)},function(e,t,n){var r=n(61),a=0;e.exports=function(e){var t=++a;return r(e)+t}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElectronBinding=void 0;t.getElectronBinding=e=>process._linkedBinding?process._linkedBinding("electron_common_"+e):process.electronBinding?process.electronBinding(e):null},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,a.isFSA)(e))return i("WARNING! Action not FSA-compliant",e),!1;return!0};var r,a=n(242);var i=(0,((r=n(245))&&r.__esModule?r:{default:r}).default)("electron-redux:validateAction")},function(e,t){var n="object"==typeof global&&global&&global.Object===Object&&global;e.exports=n},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ALIASED=void 0;t.ALIASED="ALIASED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={},a={get:function(e){return r[e]},set:function(e,t){r[e]=t}};t.default=a},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var a=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,a=n;return[a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]]].join("")}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}},function(e,t,n){var r=n(256)();e.exports=r},function(e,t,n){var r=n(257),a=n(54),i=n(9),s=n(55),o=n(56),l=n(79),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&a(e),p=!n&&!u&&s(e),d=!n&&!u&&!p&&l(e),h=n||u||p||d,f=h?r(e.length,String):[],m=f.length;for(var S in e)!t&&!c.call(e,S)||h&&("length"==S||p&&("offset"==S||"parent"==S)||d&&("buffer"==S||"byteLength"==S||"byteOffset"==S)||o(S,m))||f.push(S);return f}},function(e,t,n){var r=n(58),a=n(260),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(106),a=n(293),i=n(107);e.exports=function(e,t,n,s,o,l){var c=1&n,u=e.length,p=t.length;if(u!=p&&!(c&&p>u))return!1;var d=l.get(e),h=l.get(t);if(d&&h)return d==t&&h==e;var f=-1,m=!0,S=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var y=e[f],g=t[f];if(s)var v=c?s(g,y,f,t,e,l):s(y,g,f,e,t,l);if(void 0!==v){if(v)continue;m=!1;break}if(S){if(!a(t,(function(e,t){if(!i(S,t)&&(y===e||o(y,e,n,s,l)))return S.push(t)}))){m=!1;break}}else if(y!==g&&!o(y,g,n,s,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},function(e,t,n){var r=n(20).Uint8Array;e.exports=r},function(e,t,n){var r=n(148),a=n(110),i=n(32);e.exports=function(e){return r(e,i,a)}},function(e,t,n){var r=n(109),a=n(9);e.exports=function(e,t,n){var i=t(e);return a(e)?i:r(i,n(e))}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(33)(n(20),"Set");e.exports=r},function(e,t,n){var r=n(16);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(306),a=n(154);e.exports=function(e,t){return null!=e&&a(e,t,r)}},function(e,t,n){var r=n(42),a=n(54),i=n(9),s=n(56),o=n(100),l=n(45);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,p=!1;++c<u;){var d=l(t[c]);if(!(p=null!=e&&n(e,d)))break;e=e[d]}return p||++c!=u?p:!!(u=null==e?0:e.length)&&o(u)&&s(d,u)&&(i(e)||a(e))}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){var r=n(315);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(33),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},function(e,t,n){var r=n(322),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,o=a(i.length-t,0),l=Array(o);++s<o;)l[s]=i[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=i[s];return c[t]=n(l),r(e,this,c)}}},function(e,t,n){var r=n(323),a=n(325)(r);e.exports=a},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){(function(e){var r=n(20),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===a?r.Buffer:void 0,o=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(78)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(109),a=n(98),i=n(110),s=n(149),o=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=a(e);return t}:s;e.exports=o},function(e,t,n){var r=n(115);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(337),a=n(98),i=n(58);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(a(e))}},function(e,t,n){var r=n(42),a=n(23),i=n(342),s=n(45);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[s(a(t))]}},function(e,t,n){var r=n(124),a=n(160),i=n(161);e.exports=function(e){return i(a(e,void 0,r),e+"")}},function(e,t,n){var r=n(346),a=n(16),i=n(43),s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=o.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}},function(e,t,n){var r=n(46),a=n(41);e.exports=function(e,t,n){(void 0!==n&&!a(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(17);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(351),a=n(352),i=n(12),s=n(9);e.exports=function(e,t){return function(n,o){var l=s(n)?r:a,c=t?t():{};return l(n,e,i(o,2),c)}}},function(e,t,n){var r=n(60),a=n(176),i=n(42);e.exports=function(e,t,n){for(var s=-1,o=t.length,l={};++s<o;){var c=t[s],u=r(e,c);n(u,c)&&a(l,i(c,e),u)}return l}},function(e,t,n){var r=n(86),a=n(42),i=n(56),s=n(16),o=n(45);e.exports=function(e,t,n,l){if(!s(e))return e;for(var c=-1,u=(t=a(t,e)).length,p=u-1,d=e;null!=d&&++c<u;){var h=o(t[c]),f=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(c!=p){var m=d[h];void 0===(f=l?l(m,h,d):void 0)&&(f=s(m)?m:i(t[c+1])?[]:{})}r(d,h,f),d=d[h]}return e}},function(e,t,n){var r=n(76),a=n(25);e.exports=function(e,t){var n=-1,i=a(e)?Array(e.length):[];return r(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}},function(e,t){e.exports=function(e,t){for(var n,r=-1,a=e.length;++r<a;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}},function(e,t,n){var r=n(44),a=n(60),i=n(12),s=n(177),o=n(354),l=n(57),c=n(355),u=n(17),p=n(9);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return p(e)?function(t){return a(t,1===e.length?e[0]:e)}:e})):[u];var d=-1;t=r(t,l(i));var h=s(e,(function(e,n,a){return{criteria:r(t,(function(t){return t(e)})),index:++d,value:e}}));return o(h,(function(e,t){return c(e,t,n)}))}},function(e,t,n){var r=n(170);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,a=e.indexOf("["),i=e.indexOf("]");-1!=a&&-1!=i&&(e=e.substring(0,a)+e.substring(a,i).replace(/:/g,";")+e.substring(i,e.length));for(var s,o,l=n.exec(e||""),c={},u=14;u--;)c[r[u]]=l[u]||"";return-1!=a&&-1!=i&&(c.source=t,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=function(e,t){var n=t.replace(/\/{2,9}/g,"/").split("/");"/"!=t.substr(0,1)&&0!==t.length||n.splice(0,1);"/"==t.substr(t.length-1,1)&&n.splice(n.length-1,1);return n}(0,c.path),c.queryKey=(s=c.query,o={},s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o),c}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;const r=n(374),a=n(189),i=n(121),s=n(191),o=n(390),l=n(192),c=n(88)("socket.io-client:manager");class u extends l.StrictEventEmitter{constructor(e,t){super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new o({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||i;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(c("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;c("opening %s",this.uri),this.engine=r(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const a=s.on(t,"open",(function(){n.onopen(),e&&e()})),i=s.on(t,"error",t=>{c("error"),n.cleanup(),n._readyState="closed",this.emitReserved("error",t),e?e(t):n.maybeReconnectOnOpen()});if(!1!==this._timeout){const e=this._timeout;c("connect attempt will timeout after %d",e),0===e&&a();const n=setTimeout(()=>{c("connect attempt timed out after %d",e),a(),t.close(),t.emit("error",new Error("timeout"))},e);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}return this.subs.push(a),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){c("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(s.on(e,"ping",this.onping.bind(this)),s.on(e,"data",this.ondata.bind(this)),s.on(e,"error",this.onerror.bind(this)),s.on(e,"close",this.onclose.bind(this)),s.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){this.decoder.add(e)}ondecoded(e){this.emitReserved("packet",e)}onerror(e){c("error",e),this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n||(n=new a.Socket(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return void c("socket %s is still active, skipping close",e)}this._close()}_packet(e){c("writing packet %j",e);const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){c("cleanup"),this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){c("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,"opening"===this._readyState&&this.cleanup(),this.backoff.reset(),this._readyState="closed",this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e){c("onclose"),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();c("will wait %dms before reconnect attempt",t),this._reconnecting=!0;const n=setTimeout(()=>{e.skipReconnect||(c("attempting reconnect"),this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(c("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):(c("reconnect success"),e.onreconnect())}))},t);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=u},function(e,t,n){const r=n(184),a=n(377),i=n(383),s=n(384);t.polling=function(e){let t,n=!1,s=!1;const o=!1!==e.jsonp;if("undefined"!=typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?443:80),n=e.hostname!==location.hostname||r!==e.port,s=e.secure!==t}if(e.xdomain=n,e.xscheme=s,t=new r(e),"open"in t&&!e.forceJSONP)return new a(e);if(!o)throw new Error("JSONP disabled");return new i(e)},t.websocket=s},function(e,t,n){const r=n(376),a=n(89);e.exports=function(e){const t=e.xdomain,n=e.xscheme,i=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&i)return new XDomainRequest}catch(e){}if(!t)try{return new(a[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},function(e,t,n){const r=n(119),a=n(120),i=n(62),s=n(187),o=n(64)("engine.io-client:polling");e.exports=class extends r{get name(){return"polling"}doOpen(){this.poll()}pause(e){const t=this;function n(){o("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){let e=0;this.polling&&(o("we are currently polling - waiting to pause"),e++,this.once("pollComplete",(function(){o("pre-pause polling complete"),--e||n()}))),this.writable||(o("we are currently writing - waiting to pause"),e++,this.once("drain",(function(){o("pre-pause writing complete"),--e||n()})))}else n()}poll(){o("polling"),this.polling=!0,this.doPoll(),this.emit("poll")}onData(e){const t=this;o("polling got data %s",e);i.decodePayload(e,this.socket.binaryType).forEach((function(e,n,r){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():o('ignoring poll - transport state "%s"',this.readyState))}doClose(){const e=this;function t(){o("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(o("transport open - closing"),t()):(o("transport not open - deferring close"),this.once("open",t))}write(e){this.writable=!1,i.encodePayload(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emit("drain")})})}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let n="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=s()),this.supportsBinary||e.sid||(e.b64=1),e=a.encode(e),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),e.length&&(e="?"+e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+e}}},function(e,t){const n=Object.create(null);n.open="0",n.close="1",n.ping="2",n.pong="3",n.message="4",n.upgrade="5",n.noop="6";const r=Object.create(null);Object.keys(n).forEach(e=>{r[n[e]]=e});e.exports={PACKET_TYPES:n,PACKET_TYPES_REVERSE:r,ERROR_PACKET:{type:"error",data:"parser error"}}},function(e,t,n){"use strict";var r,a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),i={},s=0,o=0;function l(e){var t="";do{t=a[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function c(){var e=l(+new Date);return e!==r?(s=0,r=e):e+"."+l(s++)}for(;o<64;o++)i[a[o]]=o;c.encode=l,c.decode=function(e){var t=0;for(o=0;o<e.length;o++)t=64*t+i[e.charAt(o)];return t},e.exports=c},function(e,t){e.exports.pick=(e,...t)=>t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const r=n(121),a=n(191),i=n(192),s=n(88)("socket.io-client:socket"),o=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends i.StrictEventEmitter{constructor(e,t,n){super(),this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.auth&&(this.auth=n.auth),this.io._autoConnect&&this.open()}subEvents(){if(this.subs)return;const e=this.io;this.subs=[a.on(e,"open",this.onopen.bind(this)),a.on(e,"packet",this.onpacket.bind(this)),a.on(e,"error",this.onerror.bind(this)),a.on(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(o.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const n={type:r.PacketType.EVENT,data:t,options:{}};n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(s("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++);const a=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!a||!this.connected)?s("discard packet as the transport is not currently writable"):this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){s("transport is open - connecting"),"function"==typeof this.auth?this.auth(e=>{this.packet({type:r.PacketType.CONNECT,data:e})}):this.packet({type:r.PacketType.CONNECT,data:this.auth})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e){s("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emitReserved("disconnect",e)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case r.PacketType.CONNECT:if(e.data&&e.data.sid){const t=e.data.sid;this.onconnect(t)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case r.PacketType.EVENT:case r.PacketType.BINARY_EVENT:this.onevent(e);break;case r.PacketType.ACK:case r.PacketType.BINARY_ACK:this.onack(e);break;case r.PacketType.DISCONNECT:this.ondisconnect();break;case r.PacketType.CONNECT_ERROR:const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];s("emitting event %j",t),null!=e.id&&(s("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let n=!1;return function(...a){n||(n=!0,s("sending ack %j",a),t.packet({type:r.PacketType.ACK,id:e,data:a}))}}onack(e){const t=this.acks[e.id];"function"==typeof t?(s("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):s("bad ack %s",e.id)}onconnect(e){s("socket connected with id %s",e),this.id=e,this.connected=!0,this.disconnected=!1,this.emitReserved("connect"),this.emitBuffered()}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>this.packet(e)),this.sendBuffer=[]}ondisconnect(){s("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(s("performing disconnect (%s)",this.nsp),this.packet({type:r.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}}t.Socket=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const r="function"==typeof ArrayBuffer,a=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===a.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===a.call(File);function o(e){return r&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||i&&e instanceof Blob||s&&e instanceof File}t.isBinary=o,t.hasBinary=function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(e(t[n]))return!0;return!1}if(o(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return!0;return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,n){return e.on(t,n),function(){e.off(t,n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StrictEventEmitter=void 0;const r=n(63);t.StrictEventEmitter=class extends r{on(e,t){return super.on(e,t),this}once(e,t){return super.once(e,t),this}emit(e,...t){return super.emit(e,...t),this}emitReserved(e,...t){return super.emit(e,...t),this}listeners(e){return super.listeners(e)}}},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,l=s(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))a.call(n,u)&&(l[u]=n[u]);if(r){o=r(n);for(var p=0;p<o.length;p++)i.call(n,o[p])&&(l[o[p]]=n[o[p]])}}return l}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return Mn})),n.d(t,"VERSION",(function(){return a})),n.d(t,"restArguments",(function(){return E})),n.d(t,"isObject",(function(){return k})),n.d(t,"isNull",(function(){return T})),n.d(t,"isUndefined",(function(){return C})),n.d(t,"isBoolean",(function(){return I})),n.d(t,"isElement",(function(){return A})),n.d(t,"isString",(function(){return x})),n.d(t,"isNumber",(function(){return N})),n.d(t,"isDate",(function(){return R})),n.d(t,"isRegExp",(function(){return D})),n.d(t,"isError",(function(){return H})),n.d(t,"isSymbol",(function(){return F})),n.d(t,"isArrayBuffer",(function(){return G})),n.d(t,"isDataView",(function(){return V})),n.d(t,"isArray",(function(){return $})),n.d(t,"isFunction",(function(){return j})),n.d(t,"isArguments",(function(){return J})),n.d(t,"isFinite",(function(){return X})),n.d(t,"isNaN",(function(){return Q})),n.d(t,"isTypedArray",(function(){return ae})),n.d(t,"isEmpty",(function(){return le})),n.d(t,"isMatch",(function(){return ce})),n.d(t,"isEqual",(function(){return he})),n.d(t,"isMap",(function(){return Pe})),n.d(t,"isWeakMap",(function(){return we})),n.d(t,"isSet",(function(){return Ee})),n.d(t,"isWeakSet",(function(){return ke})),n.d(t,"keys",(function(){return oe})),n.d(t,"allKeys",(function(){return fe})),n.d(t,"values",(function(){return Te})),n.d(t,"pairs",(function(){return Ce})),n.d(t,"invert",(function(){return Ie})),n.d(t,"functions",(function(){return Ae})),n.d(t,"methods",(function(){return Ae})),n.d(t,"extend",(function(){return xe})),n.d(t,"extendOwn",(function(){return Ne})),n.d(t,"assign",(function(){return Ne})),n.d(t,"defaults",(function(){return Re})),n.d(t,"create",(function(){return He})),n.d(t,"clone",(function(){return Fe})),n.d(t,"tap",(function(){return Ge})),n.d(t,"get",(function(){return Me})),n.d(t,"has",(function(){return Be})),n.d(t,"mapObject",(function(){return Xe})),n.d(t,"identity",(function(){return Ke})),n.d(t,"constant",(function(){return Y})),n.d(t,"noop",(function(){return Qe})),n.d(t,"toPath",(function(){return Ue})),n.d(t,"property",(function(){return Ve})),n.d(t,"propertyOf",(function(){return Ye})),n.d(t,"matcher",(function(){return qe})),n.d(t,"matches",(function(){return qe})),n.d(t,"times",(function(){return Ze})),n.d(t,"random",(function(){return et})),n.d(t,"now",(function(){return tt})),n.d(t,"escape",(function(){return at})),n.d(t,"unescape",(function(){return it})),n.d(t,"templateSettings",(function(){return st})),n.d(t,"template",(function(){return dt})),n.d(t,"result",(function(){return ht})),n.d(t,"uniqueId",(function(){return mt})),n.d(t,"chain",(function(){return St})),n.d(t,"iteratee",(function(){return ze})),n.d(t,"partial",(function(){return vt})),n.d(t,"bind",(function(){return _t})),n.d(t,"bindAll",(function(){return wt})),n.d(t,"memoize",(function(){return Et})),n.d(t,"delay",(function(){return kt})),n.d(t,"defer",(function(){return Tt})),n.d(t,"throttle",(function(){return Ct})),n.d(t,"debounce",(function(){return It})),n.d(t,"wrap",(function(){return At})),n.d(t,"negate",(function(){return Ot})),n.d(t,"compose",(function(){return xt})),n.d(t,"after",(function(){return Nt})),n.d(t,"before",(function(){return Rt})),n.d(t,"once",(function(){return Dt})),n.d(t,"findKey",(function(){return Ht})),n.d(t,"findIndex",(function(){return Gt})),n.d(t,"findLastIndex",(function(){return Ut})),n.d(t,"sortedIndex",(function(){return Lt})),n.d(t,"indexOf",(function(){return Mt})),n.d(t,"lastIndexOf",(function(){return Bt})),n.d(t,"find",(function(){return Kt})),n.d(t,"detect",(function(){return Kt})),n.d(t,"findWhere",(function(){return qt})),n.d(t,"each",(function(){return Vt})),n.d(t,"forEach",(function(){return Vt})),n.d(t,"map",(function(){return $t})),n.d(t,"collect",(function(){return $t})),n.d(t,"reduce",(function(){return zt})),n.d(t,"foldl",(function(){return zt})),n.d(t,"inject",(function(){return zt})),n.d(t,"reduceRight",(function(){return Jt})),n.d(t,"foldr",(function(){return Jt})),n.d(t,"filter",(function(){return Xt})),n.d(t,"select",(function(){return Xt})),n.d(t,"reject",(function(){return Qt})),n.d(t,"every",(function(){return Yt})),n.d(t,"all",(function(){return Yt})),n.d(t,"some",(function(){return Zt})),n.d(t,"any",(function(){return Zt})),n.d(t,"contains",(function(){return en})),n.d(t,"includes",(function(){return en})),n.d(t,"include",(function(){return en})),n.d(t,"invoke",(function(){return tn})),n.d(t,"pluck",(function(){return nn})),n.d(t,"where",(function(){return rn})),n.d(t,"max",(function(){return an})),n.d(t,"min",(function(){return sn})),n.d(t,"shuffle",(function(){return ln})),n.d(t,"sample",(function(){return on})),n.d(t,"sortBy",(function(){return cn})),n.d(t,"groupBy",(function(){return pn})),n.d(t,"indexBy",(function(){return dn})),n.d(t,"countBy",(function(){return hn})),n.d(t,"partition",(function(){return fn})),n.d(t,"toArray",(function(){return Sn})),n.d(t,"size",(function(){return yn})),n.d(t,"pick",(function(){return vn})),n.d(t,"omit",(function(){return _n})),n.d(t,"first",(function(){return Pn})),n.d(t,"head",(function(){return Pn})),n.d(t,"take",(function(){return Pn})),n.d(t,"initial",(function(){return bn})),n.d(t,"last",(function(){return En})),n.d(t,"rest",(function(){return wn})),n.d(t,"tail",(function(){return wn})),n.d(t,"drop",(function(){return wn})),n.d(t,"compact",(function(){return kn})),n.d(t,"flatten",(function(){return Tn})),n.d(t,"without",(function(){return In})),n.d(t,"uniq",(function(){return An})),n.d(t,"unique",(function(){return An})),n.d(t,"union",(function(){return On})),n.d(t,"intersection",(function(){return xn})),n.d(t,"difference",(function(){return Cn})),n.d(t,"unzip",(function(){return Nn})),n.d(t,"transpose",(function(){return Nn})),n.d(t,"zip",(function(){return Rn})),n.d(t,"object",(function(){return Dn})),n.d(t,"range",(function(){return Hn})),n.d(t,"chunk",(function(){return Fn})),n.d(t,"mixin",(function(){return Un}));var r={};n.r(r),n.d(r,"VERSION",(function(){return a})),n.d(r,"restArguments",(function(){return E})),n.d(r,"isObject",(function(){return k})),n.d(r,"isNull",(function(){return T})),n.d(r,"isUndefined",(function(){return C})),n.d(r,"isBoolean",(function(){return I})),n.d(r,"isElement",(function(){return A})),n.d(r,"isString",(function(){return x})),n.d(r,"isNumber",(function(){return N})),n.d(r,"isDate",(function(){return R})),n.d(r,"isRegExp",(function(){return D})),n.d(r,"isError",(function(){return H})),n.d(r,"isSymbol",(function(){return F})),n.d(r,"isArrayBuffer",(function(){return G})),n.d(r,"isDataView",(function(){return V})),n.d(r,"isArray",(function(){return $})),n.d(r,"isFunction",(function(){return j})),n.d(r,"isArguments",(function(){return J})),n.d(r,"isFinite",(function(){return X})),n.d(r,"isNaN",(function(){return Q})),n.d(r,"isTypedArray",(function(){return ae})),n.d(r,"isEmpty",(function(){return le})),n.d(r,"isMatch",(function(){return ce})),n.d(r,"isEqual",(function(){return he})),n.d(r,"isMap",(function(){return Pe})),n.d(r,"isWeakMap",(function(){return we})),n.d(r,"isSet",(function(){return Ee})),n.d(r,"isWeakSet",(function(){return ke})),n.d(r,"keys",(function(){return oe})),n.d(r,"allKeys",(function(){return fe})),n.d(r,"values",(function(){return Te})),n.d(r,"pairs",(function(){return Ce})),n.d(r,"invert",(function(){return Ie})),n.d(r,"functions",(function(){return Ae})),n.d(r,"methods",(function(){return Ae})),n.d(r,"extend",(function(){return xe})),n.d(r,"extendOwn",(function(){return Ne})),n.d(r,"assign",(function(){return Ne})),n.d(r,"defaults",(function(){return Re})),n.d(r,"create",(function(){return He})),n.d(r,"clone",(function(){return Fe})),n.d(r,"tap",(function(){return Ge})),n.d(r,"get",(function(){return Me})),n.d(r,"has",(function(){return Be})),n.d(r,"mapObject",(function(){return Xe})),n.d(r,"identity",(function(){return Ke})),n.d(r,"constant",(function(){return Y})),n.d(r,"noop",(function(){return Qe})),n.d(r,"toPath",(function(){return Ue})),n.d(r,"property",(function(){return Ve})),n.d(r,"propertyOf",(function(){return Ye})),n.d(r,"matcher",(function(){return qe})),n.d(r,"matches",(function(){return qe})),n.d(r,"times",(function(){return Ze})),n.d(r,"random",(function(){return et})),n.d(r,"now",(function(){return tt})),n.d(r,"escape",(function(){return at})),n.d(r,"unescape",(function(){return it})),n.d(r,"templateSettings",(function(){return st})),n.d(r,"template",(function(){return dt})),n.d(r,"result",(function(){return ht})),n.d(r,"uniqueId",(function(){return mt})),n.d(r,"chain",(function(){return St})),n.d(r,"iteratee",(function(){return ze})),n.d(r,"partial",(function(){return vt})),n.d(r,"bind",(function(){return _t})),n.d(r,"bindAll",(function(){return wt})),n.d(r,"memoize",(function(){return Et})),n.d(r,"delay",(function(){return kt})),n.d(r,"defer",(function(){return Tt})),n.d(r,"throttle",(function(){return Ct})),n.d(r,"debounce",(function(){return It})),n.d(r,"wrap",(function(){return At})),n.d(r,"negate",(function(){return Ot})),n.d(r,"compose",(function(){return xt})),n.d(r,"after",(function(){return Nt})),n.d(r,"before",(function(){return Rt})),n.d(r,"once",(function(){return Dt})),n.d(r,"findKey",(function(){return Ht})),n.d(r,"findIndex",(function(){return Gt})),n.d(r,"findLastIndex",(function(){return Ut})),n.d(r,"sortedIndex",(function(){return Lt})),n.d(r,"indexOf",(function(){return Mt})),n.d(r,"lastIndexOf",(function(){return Bt})),n.d(r,"find",(function(){return Kt})),n.d(r,"detect",(function(){return Kt})),n.d(r,"findWhere",(function(){return qt})),n.d(r,"each",(function(){return Vt})),n.d(r,"forEach",(function(){return Vt})),n.d(r,"map",(function(){return $t})),n.d(r,"collect",(function(){return $t})),n.d(r,"reduce",(function(){return zt})),n.d(r,"foldl",(function(){return zt})),n.d(r,"inject",(function(){return zt})),n.d(r,"reduceRight",(function(){return Jt})),n.d(r,"foldr",(function(){return Jt})),n.d(r,"filter",(function(){return Xt})),n.d(r,"select",(function(){return Xt})),n.d(r,"reject",(function(){return Qt})),n.d(r,"every",(function(){return Yt})),n.d(r,"all",(function(){return Yt})),n.d(r,"some",(function(){return Zt})),n.d(r,"any",(function(){return Zt})),n.d(r,"contains",(function(){return en})),n.d(r,"includes",(function(){return en})),n.d(r,"include",(function(){return en})),n.d(r,"invoke",(function(){return tn})),n.d(r,"pluck",(function(){return nn})),n.d(r,"where",(function(){return rn})),n.d(r,"max",(function(){return an})),n.d(r,"min",(function(){return sn})),n.d(r,"shuffle",(function(){return ln})),n.d(r,"sample",(function(){return on})),n.d(r,"sortBy",(function(){return cn})),n.d(r,"groupBy",(function(){return pn})),n.d(r,"indexBy",(function(){return dn})),n.d(r,"countBy",(function(){return hn})),n.d(r,"partition",(function(){return fn})),n.d(r,"toArray",(function(){return Sn})),n.d(r,"size",(function(){return yn})),n.d(r,"pick",(function(){return vn})),n.d(r,"omit",(function(){return _n})),n.d(r,"first",(function(){return Pn})),n.d(r,"head",(function(){return Pn})),n.d(r,"take",(function(){return Pn})),n.d(r,"initial",(function(){return bn})),n.d(r,"last",(function(){return En})),n.d(r,"rest",(function(){return wn})),n.d(r,"tail",(function(){return wn})),n.d(r,"drop",(function(){return wn})),n.d(r,"compact",(function(){return kn})),n.d(r,"flatten",(function(){return Tn})),n.d(r,"without",(function(){return In})),n.d(r,"uniq",(function(){return An})),n.d(r,"unique",(function(){return An})),n.d(r,"union",(function(){return On})),n.d(r,"intersection",(function(){return xn})),n.d(r,"difference",(function(){return Cn})),n.d(r,"unzip",(function(){return Nn})),n.d(r,"transpose",(function(){return Nn})),n.d(r,"zip",(function(){return Rn})),n.d(r,"object",(function(){return Dn})),n.d(r,"range",(function(){return Hn})),n.d(r,"chunk",(function(){return Fn})),n.d(r,"mixin",(function(){return Un})),n.d(r,"default",(function(){return Ln}));var a="1.13.1",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},s=Array.prototype,o=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,c=s.push,u=s.slice,p=o.toString,d=o.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,f="undefined"!=typeof DataView,m=Array.isArray,S=Object.keys,y=Object.create,g=h&&ArrayBuffer.isView,v=isNaN,_=isFinite,b=!{toString:null}.propertyIsEnumerable("toString"),P=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],w=Math.pow(2,53)-1;function E(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),a=0;a<n;a++)r[a]=arguments[a+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(t+1);for(a=0;a<t;a++)i[a]=arguments[a];return i[t]=r,e.apply(this,i)}}function k(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function T(e){return null===e}function C(e){return void 0===e}function I(e){return!0===e||!1===e||"[object Boolean]"===p.call(e)}function A(e){return!(!e||1!==e.nodeType)}function O(e){var t="[object "+e+"]";return function(e){return p.call(e)===t}}var x=O("String"),N=O("Number"),R=O("Date"),D=O("RegExp"),H=O("Error"),F=O("Symbol"),G=O("ArrayBuffer"),U=O("Function"),L=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof L&&(U=function(e){return"function"==typeof e||!1});var j=U,M=O("Object"),B=f&&M(new DataView(new ArrayBuffer(8))),K="undefined"!=typeof Map&&M(new Map),q=O("DataView");var V=B?function(e){return null!=e&&j(e.getInt8)&&G(e.buffer)}:q,$=m||O("Array");function W(e,t){return null!=e&&d.call(e,t)}var z=O("Arguments");!function(){z(arguments)||(z=function(e){return W(e,"callee")})}();var J=z;function X(e){return!F(e)&&_(e)&&!isNaN(parseFloat(e))}function Q(e){return N(e)&&v(e)}function Y(e){return function(){return e}}function Z(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=w}}function ee(e){return function(t){return null==t?void 0:t[e]}}var te=ee("byteLength"),ne=Z(te),re=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var ae=h?function(e){return g?g(e)&&!V(e):ne(e)&&re.test(p.call(e))}:Y(!1),ie=ee("length");function se(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=P.length,r=e.constructor,a=j(r)&&r.prototype||o,i="constructor";for(W(e,i)&&!t.contains(i)&&t.push(i);n--;)(i=P[n])in e&&e[i]!==a[i]&&!t.contains(i)&&t.push(i)}function oe(e){if(!k(e))return[];if(S)return S(e);var t=[];for(var n in e)W(e,n)&&t.push(n);return b&&se(e,t),t}function le(e){if(null==e)return!0;var t=ie(e);return"number"==typeof t&&($(e)||x(e)||J(e))?0===t:0===ie(oe(e))}function ce(e,t){var n=oe(t),r=n.length;if(null==e)return!r;for(var a=Object(e),i=0;i<r;i++){var s=n[i];if(t[s]!==a[s]||!(s in a))return!1}return!0}function ue(e){return e instanceof ue?e:this instanceof ue?void(this._wrapped=e):new ue(e)}function pe(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,te(e))}ue.VERSION=a,ue.prototype.value=function(){return this._wrapped},ue.prototype.valueOf=ue.prototype.toJSON=ue.prototype.value,ue.prototype.toString=function(){return String(this._wrapped)};function de(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var a=typeof e;return("function"===a||"object"===a||"object"==typeof t)&&function e(t,n,r,a){t instanceof ue&&(t=t._wrapped);n instanceof ue&&(n=n._wrapped);var i=p.call(t);if(i!==p.call(n))return!1;if(B&&"[object Object]"==i&&V(t)){if(!V(n))return!1;i="[object DataView]"}switch(i){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(n);case"[object ArrayBuffer]":case"[object DataView]":return e(pe(t),pe(n),r,a)}var s="[object Array]"===i;if(!s&&ae(t)){if(te(t)!==te(n))return!1;if(t.buffer===n.buffer&&t.byteOffset===n.byteOffset)return!0;s=!0}if(!s){if("object"!=typeof t||"object"!=typeof n)return!1;var o=t.constructor,c=n.constructor;if(o!==c&&!(j(o)&&o instanceof o&&j(c)&&c instanceof c)&&"constructor"in t&&"constructor"in n)return!1}a=a||[];var u=(r=r||[]).length;for(;u--;)if(r[u]===t)return a[u]===n;if(r.push(t),a.push(n),s){if((u=t.length)!==n.length)return!1;for(;u--;)if(!de(t[u],n[u],r,a))return!1}else{var d,h=oe(t);if(u=h.length,oe(n).length!==u)return!1;for(;u--;)if(d=h[u],!W(n,d)||!de(t[d],n[d],r,a))return!1}return r.pop(),a.pop(),!0}(e,t,n,r)}function he(e,t){return de(e,t)}function fe(e){if(!k(e))return[];var t=[];for(var n in e)t.push(n);return b&&se(e,t),t}function me(e){var t=ie(e);return function(n){if(null==n)return!1;var r=fe(n);if(ie(r))return!1;for(var a=0;a<t;a++)if(!j(n[e[a]]))return!1;return e!==_e||!j(n[Se])}}var Se="forEach",ye=["clear","delete"],ge=["get","has","set"],ve=ye.concat(Se,ge),_e=ye.concat(ge),be=["add"].concat(ye,Se,"has"),Pe=K?me(ve):O("Map"),we=K?me(_e):O("WeakMap"),Ee=K?me(be):O("Set"),ke=O("WeakSet");function Te(e){for(var t=oe(e),n=t.length,r=Array(n),a=0;a<n;a++)r[a]=e[t[a]];return r}function Ce(e){for(var t=oe(e),n=t.length,r=Array(n),a=0;a<n;a++)r[a]=[t[a],e[t[a]]];return r}function Ie(e){for(var t={},n=oe(e),r=0,a=n.length;r<a;r++)t[e[n[r]]]=n[r];return t}function Ae(e){var t=[];for(var n in e)j(e[n])&&t.push(n);return t.sort()}function Oe(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var a=1;a<r;a++)for(var i=arguments[a],s=e(i),o=s.length,l=0;l<o;l++){var c=s[l];t&&void 0!==n[c]||(n[c]=i[c])}return n}}var xe=Oe(fe),Ne=Oe(oe),Re=Oe(fe,!0);function De(e){if(!k(e))return{};if(y)return y(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function He(e,t){var n=De(e);return t&&Ne(n,t),n}function Fe(e){return k(e)?$(e)?e.slice():xe({},e):e}function Ge(e,t){return t(e),e}function Ue(e){return $(e)?e:[e]}function Le(e){return ue.toPath(e)}function je(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function Me(e,t,n){var r=je(e,Le(t));return C(r)?n:r}function Be(e,t){for(var n=(t=Le(t)).length,r=0;r<n;r++){var a=t[r];if(!W(e,a))return!1;e=e[a]}return!!n}function Ke(e){return e}function qe(e){return e=Ne({},e),function(t){return ce(t,e)}}function Ve(e){return e=Le(e),function(t){return je(t,e)}}function $e(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,a){return e.call(t,n,r,a)};case 4:return function(n,r,a,i){return e.call(t,n,r,a,i)}}return function(){return e.apply(t,arguments)}}function We(e,t,n){return null==e?Ke:j(e)?$e(e,t,n):k(e)&&!$(e)?qe(e):Ve(e)}function ze(e,t){return We(e,t,1/0)}function Je(e,t,n){return ue.iteratee!==ze?ue.iteratee(e,t):We(e,t,n)}function Xe(e,t,n){t=Je(t,n);for(var r=oe(e),a=r.length,i={},s=0;s<a;s++){var o=r[s];i[o]=t(e[o],o,e)}return i}function Qe(){}function Ye(e){return null==e?Qe:function(t){return Me(e,t)}}function Ze(e,t,n){var r=Array(Math.max(0,e));t=$e(t,n,1);for(var a=0;a<e;a++)r[a]=t(a);return r}function et(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ue.toPath=Ue,ue.iteratee=ze;var tt=Date.now||function(){return(new Date).getTime()};function nt(e){var t=function(t){return e[t]},n="(?:"+oe(e).join("|")+")",r=RegExp(n),a=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(a,t):e}}var rt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},at=nt(rt),it=nt(Ie(rt)),st=ue.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},ot=/(.)^/,lt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ct=/\\|'|\r|\n|\u2028|\u2029/g;function ut(e){return"\\"+lt[e]}var pt=/^\s*(\w|\$)+\s*$/;function dt(e,t,n){!t&&n&&(t=n),t=Re({},t,ue.templateSettings);var r=RegExp([(t.escape||ot).source,(t.interpolate||ot).source,(t.evaluate||ot).source].join("|")+"|$","g"),a=0,i="__p+='";e.replace(r,(function(t,n,r,s,o){return i+=e.slice(a,o).replace(ct,ut),a=o+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(i+="';\n"+s+"\n__p+='"),t})),i+="';\n";var s,o=t.variable;if(o){if(!pt.test(o))throw new Error("variable is not a bare identifier: "+o)}else i="with(obj||{}){\n"+i+"}\n",o="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{s=new Function(o,"_",i)}catch(e){throw e.source=i,e}var l=function(e){return s.call(this,e,ue)};return l.source="function("+o+"){\n"+i+"}",l}function ht(e,t,n){var r=(t=Le(t)).length;if(!r)return j(n)?n.call(e):n;for(var a=0;a<r;a++){var i=null==e?void 0:e[t[a]];void 0===i&&(i=n,a=r),e=j(i)?i.call(e):i}return e}var ft=0;function mt(e){var t=++ft+"";return e?e+t:t}function St(e){var t=ue(e);return t._chain=!0,t}function yt(e,t,n,r,a){if(!(r instanceof t))return e.apply(n,a);var i=De(e.prototype),s=e.apply(i,a);return k(s)?s:i}var gt=E((function(e,t){var n=gt.placeholder,r=function(){for(var a=0,i=t.length,s=Array(i),o=0;o<i;o++)s[o]=t[o]===n?arguments[a++]:t[o];for(;a<arguments.length;)s.push(arguments[a++]);return yt(e,r,this,this,s)};return r}));gt.placeholder=ue;var vt=gt,_t=E((function(e,t,n){if(!j(e))throw new TypeError("Bind must be called on a function");var r=E((function(a){return yt(e,r,t,this,n.concat(a))}));return r})),bt=Z(ie);function Pt(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var a=r.length,i=0,s=ie(e);i<s;i++){var o=e[i];if(bt(o)&&($(o)||J(o)))if(t>1)Pt(o,t-1,n,r),a=r.length;else for(var l=0,c=o.length;l<c;)r[a++]=o[l++];else n||(r[a++]=o)}return r}var wt=E((function(e,t){var n=(t=Pt(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=_t(e[r],e)}return e}));function Et(e,t){var n=function(r){var a=n.cache,i=""+(t?t.apply(this,arguments):r);return W(a,i)||(a[i]=e.apply(this,arguments)),a[i]};return n.cache={},n}var kt=E((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),Tt=vt(kt,ue,1);function Ct(e,t,n){var r,a,i,s,o=0;n||(n={});var l=function(){o=!1===n.leading?0:tt(),r=null,s=e.apply(a,i),r||(a=i=null)},c=function(){var c=tt();o||!1!==n.leading||(o=c);var u=t-(c-o);return a=this,i=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),o=c,s=e.apply(a,i),r||(a=i=null)):r||!1===n.trailing||(r=setTimeout(l,u)),s};return c.cancel=function(){clearTimeout(r),o=0,r=a=i=null},c}function It(e,t,n){var r,a,i,s,o,l=function(){var c=tt()-a;t>c?r=setTimeout(l,t-c):(r=null,n||(s=e.apply(o,i)),r||(i=o=null))},c=E((function(c){return o=this,i=c,a=tt(),r||(r=setTimeout(l,t),n&&(s=e.apply(o,i))),s}));return c.cancel=function(){clearTimeout(r),r=i=o=null},c}function At(e,t){return vt(t,e)}function Ot(e){return function(){return!e.apply(this,arguments)}}function xt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function Nt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Rt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Dt=vt(Rt,2);function Ht(e,t,n){t=Je(t,n);for(var r,a=oe(e),i=0,s=a.length;i<s;i++)if(t(e[r=a[i]],r,e))return r}function Ft(e){return function(t,n,r){n=Je(n,r);for(var a=ie(t),i=e>0?0:a-1;i>=0&&i<a;i+=e)if(n(t[i],i,t))return i;return-1}}var Gt=Ft(1),Ut=Ft(-1);function Lt(e,t,n,r){for(var a=(n=Je(n,r,1))(t),i=0,s=ie(e);i<s;){var o=Math.floor((i+s)/2);n(e[o])<a?i=o+1:s=o}return i}function jt(e,t,n){return function(r,a,i){var s=0,o=ie(r);if("number"==typeof i)e>0?s=i>=0?i:Math.max(i+o,s):o=i>=0?Math.min(i+1,o):i+o+1;else if(n&&i&&o)return r[i=n(r,a)]===a?i:-1;if(a!=a)return(i=t(u.call(r,s,o),Q))>=0?i+s:-1;for(i=e>0?s:o-1;i>=0&&i<o;i+=e)if(r[i]===a)return i;return-1}}var Mt=jt(1,Gt,Lt),Bt=jt(-1,Ut);function Kt(e,t,n){var r=(bt(e)?Gt:Ht)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function qt(e,t){return Kt(e,qe(t))}function Vt(e,t,n){var r,a;if(t=$e(t,n),bt(e))for(r=0,a=e.length;r<a;r++)t(e[r],r,e);else{var i=oe(e);for(r=0,a=i.length;r<a;r++)t(e[i[r]],i[r],e)}return e}function $t(e,t,n){t=Je(t,n);for(var r=!bt(e)&&oe(e),a=(r||e).length,i=Array(a),s=0;s<a;s++){var o=r?r[s]:s;i[s]=t(e[o],o,e)}return i}function Wt(e){var t=function(t,n,r,a){var i=!bt(t)&&oe(t),s=(i||t).length,o=e>0?0:s-1;for(a||(r=t[i?i[o]:o],o+=e);o>=0&&o<s;o+=e){var l=i?i[o]:o;r=n(r,t[l],l,t)}return r};return function(e,n,r,a){var i=arguments.length>=3;return t(e,$e(n,a,4),r,i)}}var zt=Wt(1),Jt=Wt(-1);function Xt(e,t,n){var r=[];return t=Je(t,n),Vt(e,(function(e,n,a){t(e,n,a)&&r.push(e)})),r}function Qt(e,t,n){return Xt(e,Ot(Je(t)),n)}function Yt(e,t,n){t=Je(t,n);for(var r=!bt(e)&&oe(e),a=(r||e).length,i=0;i<a;i++){var s=r?r[i]:i;if(!t(e[s],s,e))return!1}return!0}function Zt(e,t,n){t=Je(t,n);for(var r=!bt(e)&&oe(e),a=(r||e).length,i=0;i<a;i++){var s=r?r[i]:i;if(t(e[s],s,e))return!0}return!1}function en(e,t,n,r){return bt(e)||(e=Te(e)),("number"!=typeof n||r)&&(n=0),Mt(e,t,n)>=0}var tn=E((function(e,t,n){var r,a;return j(t)?a=t:(t=Le(t),r=t.slice(0,-1),t=t[t.length-1]),$t(e,(function(e){var i=a;if(!i){if(r&&r.length&&(e=je(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))}));function nn(e,t){return $t(e,Ve(t))}function rn(e,t){return Xt(e,qe(t))}function an(e,t,n){var r,a,i=-1/0,s=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var o=0,l=(e=bt(e)?e:Te(e)).length;o<l;o++)null!=(r=e[o])&&r>i&&(i=r);else t=Je(t,n),Vt(e,(function(e,n,r){((a=t(e,n,r))>s||a===-1/0&&i===-1/0)&&(i=e,s=a)}));return i}function sn(e,t,n){var r,a,i=1/0,s=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var o=0,l=(e=bt(e)?e:Te(e)).length;o<l;o++)null!=(r=e[o])&&r<i&&(i=r);else t=Je(t,n),Vt(e,(function(e,n,r){((a=t(e,n,r))<s||a===1/0&&i===1/0)&&(i=e,s=a)}));return i}function on(e,t,n){if(null==t||n)return bt(e)||(e=Te(e)),e[et(e.length-1)];var r=bt(e)?Fe(e):Te(e),a=ie(r);t=Math.max(Math.min(t,a),0);for(var i=a-1,s=0;s<t;s++){var o=et(s,i),l=r[s];r[s]=r[o],r[o]=l}return r.slice(0,t)}function ln(e){return on(e,1/0)}function cn(e,t,n){var r=0;return t=Je(t,n),nn($t(e,(function(e,n,a){return{value:e,index:r++,criteria:t(e,n,a)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function un(e,t){return function(n,r,a){var i=t?[[],[]]:{};return r=Je(r,a),Vt(n,(function(t,a){var s=r(t,a,n);e(i,t,s)})),i}}var pn=un((function(e,t,n){W(e,n)?e[n].push(t):e[n]=[t]})),dn=un((function(e,t,n){e[n]=t})),hn=un((function(e,t,n){W(e,n)?e[n]++:e[n]=1})),fn=un((function(e,t,n){e[n?0:1].push(t)}),!0),mn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Sn(e){return e?$(e)?u.call(e):x(e)?e.match(mn):bt(e)?$t(e,Ke):Te(e):[]}function yn(e){return null==e?0:bt(e)?e.length:oe(e).length}function gn(e,t,n){return t in n}var vn=E((function(e,t){var n={},r=t[0];if(null==e)return n;j(r)?(t.length>1&&(r=$e(r,t[1])),t=fe(e)):(r=gn,t=Pt(t,!1,!1),e=Object(e));for(var a=0,i=t.length;a<i;a++){var s=t[a],o=e[s];r(o,s,e)&&(n[s]=o)}return n})),_n=E((function(e,t){var n,r=t[0];return j(r)?(r=Ot(r),t.length>1&&(n=t[1])):(t=$t(Pt(t,!1,!1),String),r=function(e,n){return!en(t,n)}),vn(e,r,n)}));function bn(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Pn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:bn(e,e.length-t)}function wn(e,t,n){return u.call(e,null==t||n?1:t)}function En(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:wn(e,Math.max(0,e.length-t))}function kn(e){return Xt(e,Boolean)}function Tn(e,t){return Pt(e,t,!1)}var Cn=E((function(e,t){return t=Pt(t,!0,!0),Xt(e,(function(e){return!en(t,e)}))})),In=E((function(e,t){return Cn(e,t)}));function An(e,t,n,r){I(t)||(r=n,n=t,t=!1),null!=n&&(n=Je(n,r));for(var a=[],i=[],s=0,o=ie(e);s<o;s++){var l=e[s],c=n?n(l,s,e):l;t&&!n?(s&&i===c||a.push(l),i=c):n?en(i,c)||(i.push(c),a.push(l)):en(a,l)||a.push(l)}return a}var On=E((function(e){return An(Pt(e,!0,!0))}));function xn(e){for(var t=[],n=arguments.length,r=0,a=ie(e);r<a;r++){var i=e[r];if(!en(t,i)){var s;for(s=1;s<n&&en(arguments[s],i);s++);s===n&&t.push(i)}}return t}function Nn(e){for(var t=e&&an(e,ie).length||0,n=Array(t),r=0;r<t;r++)n[r]=nn(e,r);return n}var Rn=E(Nn);function Dn(e,t){for(var n={},r=0,a=ie(e);r<a;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Hn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),a=Array(r),i=0;i<r;i++,e+=n)a[i]=e;return a}function Fn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,a=e.length;r<a;)n.push(u.call(e,r,r+=t));return n}function Gn(e,t){return e._chain?ue(t).chain():t}function Un(e){return Vt(Ae(e),(function(t){var n=ue[t]=e[t];ue.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),Gn(this,n.apply(ue,e))}})),ue}Vt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=s[e];ue.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Gn(this,n)}})),Vt(["concat","join","slice"],(function(e){var t=s[e];ue.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Gn(this,e)}}));var Ln=ue,jn=Un(r);jn._=jn;var Mn=jn},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=require("url")},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,a="~";function i(){}function s(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,r,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");var o=new s(n,r||e,i),l=a?a+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(a=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=a?a+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,s=new Array(i);r<i;r++)s[r]=n[r].fn;return s},c.prototype.listenerCount=function(e){var t=a?a+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,r,i,s){var o=a?a+e:e;if(!this._events[o])return!1;var l,c,u=this._events[o],p=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),p){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,i),!0;case 6:return u.fn.call(u.context,t,n,r,i,s),!0}for(c=1,l=new Array(p-1);c<p;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var d,h=u.length;for(c=0;c<h;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),p){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!l)for(d=1,l=new Array(p-1);d<p;d++)l[d-1]=arguments[d];u[c].fn.apply(u[c].context,l)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,r){var i=a?a+e:e;if(!this._events[i])return this;if(!t)return l(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||r&&!s.once||n&&s.context!==n||l(this,i);else{for(var o=0,c=[],u=s.length;o<u;o++)(s[o].fn!==t||r&&!s[o].once||n&&s[o].context!==n)&&c.push(s[o]);c.length?this._events[i]=1===c.length?c[0]:c:l(this,i)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=a?a+e:e,this._events[t]&&l(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=a,c.EventEmitter=c,e.exports=c},function(e,t,n){var r=n(310)("toUpperCase");e.exports=r},function(e,t,n){"use strict";var r,a={DEBUG:!1,LIB_VERSION:"2.45.0"};if("undefined"==typeof window){var i={hostname:""};r={navigator:{userAgent:""},document:{location:i,referrer:""},screen:{width:0,height:0},location:i}}else r=window;var s,o,l,c,u,p,d,h,f,m,S,y=Array.prototype,g=Function.prototype,v=Object.prototype,_=y.slice,b=v.toString,P=v.hasOwnProperty,w=r.console,E=r.navigator,k=r.document,T=r.opera,C=r.screen,I=E.userAgent,A=g.bind,O=y.forEach,x=y.indexOf,N=y.map,R=Array.isArray,D={},H={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},F={log:function(){if(a.DEBUG&&!H.isUndefined(w)&&w)try{w.log.apply(w,arguments)}catch(e){H.each(arguments,(function(e){w.log(e)}))}},warn:function(){if(a.DEBUG&&!H.isUndefined(w)&&w){var e=["Mixpanel warning:"].concat(H.toArray(arguments));try{w.warn.apply(w,e)}catch(t){H.each(e,(function(e){w.warn(e)}))}}},error:function(){if(a.DEBUG&&!H.isUndefined(w)&&w){var e=["Mixpanel error:"].concat(H.toArray(arguments));try{w.error.apply(w,e)}catch(t){H.each(e,(function(e){w.error(e)}))}}},critical:function(){if(!H.isUndefined(w)&&w){var e=["Mixpanel error:"].concat(H.toArray(arguments));try{w.error.apply(w,e)}catch(t){H.each(e,(function(e){w.error(e)}))}}}},G=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(F,arguments)}},U=function(e){return{log:G(F.log,e),error:G(F.error,e),critical:G(F.critical,e)}};H.bind=function(e,t){var n,r;if(A&&e.bind===A)return A.apply(e,_.call(arguments,1));if(!H.isFunction(e))throw new TypeError;return n=_.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(_.call(arguments)));var a={};a.prototype=e.prototype;var i=new a;a.prototype=null;var s=e.apply(i,n.concat(_.call(arguments)));return Object(s)===s?s:i}},H.each=function(e,t,n){if(null!=e)if(O&&e.forEach===O)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,a=e.length;r<a;r++)if(r in e&&t.call(n,e[r],r,e)===D)return}else for(var i in e)if(P.call(e,i)&&t.call(n,e[i],i,e)===D)return},H.extend=function(e){return H.each(_.call(arguments,1),(function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])})),e},H.isArray=R||function(e){return"[object Array]"===b.call(e)},H.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},H.isArguments=function(e){return!(!e||!P.call(e,"callee"))},H.toArray=function(e){return e?e.toArray?e.toArray():H.isArray(e)||H.isArguments(e)?_.call(e):H.values(e):[]},H.map=function(e,t,n){if(N&&e.map===N)return e.map(t,n);var r=[];return H.each(e,(function(e){r.push(t.call(n,e))})),r},H.keys=function(e){var t=[];return null===e||H.each(e,(function(e,n){t[t.length]=n})),t},H.values=function(e){var t=[];return null===e||H.each(e,(function(e){t[t.length]=e})),t},H.include=function(e,t){var n=!1;return null===e?n:x&&e.indexOf===x?-1!=e.indexOf(t):(H.each(e,(function(e){if(n||(n=e===t))return D})),n)},H.includes=function(e,t){return-1!==e.indexOf(t)},H.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},H.isObject=function(e){return e===Object(e)&&!H.isArray(e)},H.isEmptyObject=function(e){if(H.isObject(e)){for(var t in e)if(P.call(e,t))return!1;return!0}return!1},H.isUndefined=function(e){return void 0===e},H.isString=function(e){return"[object String]"==b.call(e)},H.isDate=function(e){return"[object Date]"==b.call(e)},H.isNumber=function(e){return"[object Number]"==b.call(e)},H.isElement=function(e){return!(!e||1!==e.nodeType)},H.encodeDates=function(e){return H.each(e,(function(t,n){H.isDate(t)?e[n]=H.formatDate(t):H.isObject(t)&&(e[n]=H.encodeDates(t))})),e},H.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},H.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},H.strip_empty_properties=function(e){var t={};return H.each(e,(function(e,n){H.isString(e)&&e.length>0&&(t[n]=e)})),t},H.truncate=function(e,t){var n;return"string"==typeof e?n=e.slice(0,t):H.isArray(e)?(n=[],H.each(e,(function(e){n.push(H.truncate(e,t))}))):H.isObject(e)?(n={},H.each(e,(function(e,r){n[r]=H.truncate(e,t)}))):n=e,n},H.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=n[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},n=function(e,r){var a="",i=0,s="",o="",l=0,c=a,u=[],p=r[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(a+=" ",u=[],"[object Array]"===b.apply(p)){for(l=p.length,i=0;i<l;i+=1)u[i]=n(i,p)||"null";return o=0===u.length?"[]":a?"[\n"+a+u.join(",\n"+a)+"\n"+c+"]":"["+u.join(",")+"]",a=c,o}for(s in p)P.call(p,s)&&(o=n(s,p))&&u.push(t(s)+(a?": ":":")+o);return o=0===u.length?"{}":a?"{"+u.join(",")+c+"}":"{"+u.join(",")+"}",a=c,o}};return n("",{"":e})},H.JSONDecode=(u={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},p=function(e){var t=new SyntaxError(e);throw t.at=s,t.text=l,t},d=function(e){return e&&e!==o&&p("Expected '"+e+"' instead of '"+o+"'"),o=l.charAt(s),s+=1,o},h=function(){var e,t="";for("-"===o&&(t="-",d("-"));o>="0"&&o<="9";)t+=o,d();if("."===o)for(t+=".";d()&&o>="0"&&o<="9";)t+=o;if("e"===o||"E"===o)for(t+=o,d(),"-"!==o&&"+"!==o||(t+=o,d());o>="0"&&o<="9";)t+=o,d();if(e=+t,isFinite(e))return e;p("Bad number")},f=function(){var e,t,n,r="";if('"'===o)for(;d();){if('"'===o)return d(),r;if("\\"===o)if(d(),"u"===o){for(n=0,t=0;t<4&&(e=parseInt(d(),16),isFinite(e));t+=1)n=16*n+e;r+=String.fromCharCode(n)}else{if("string"!=typeof u[o])break;r+=u[o]}else r+=o}p("Bad string")},m=function(){for(;o&&o<=" ";)d()},c=function(){switch(m(),o){case"{":return function(){var e,t={};if("{"===o){if(d("{"),m(),"}"===o)return d("}"),t;for(;o;){if(e=f(),m(),d(":"),Object.hasOwnProperty.call(t,e)&&p('Duplicate key "'+e+'"'),t[e]=c(),m(),"}"===o)return d("}"),t;d(","),m()}}p("Bad object")}();case"[":return function(){var e=[];if("["===o){if(d("["),m(),"]"===o)return d("]"),e;for(;o;){if(e.push(c()),m(),"]"===o)return d("]"),e;d(","),m()}}p("Bad array")}();case'"':return f();case"-":return h();default:return o>="0"&&o<="9"?h():function(){switch(o){case"t":return d("t"),d("r"),d("u"),d("e"),!0;case"f":return d("f"),d("a"),d("l"),d("s"),d("e"),!1;case"n":return d("n"),d("u"),d("l"),d("l"),null}p('Unexpected "'+o+'"')}()}},function(e){var t;return l=e,s=0,o=" ",t=c(),m(),o&&p("Syntax error"),t}),H.base64Encode=function(e){var t,n,r,a,i,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o=0,l=0,c="",u=[];if(!e)return e;e=H.utf8Encode(e);do{t=(i=e.charCodeAt(o++)<<16|e.charCodeAt(o++)<<8|e.charCodeAt(o++))>>18&63,n=i>>12&63,r=i>>6&63,a=63&i,u[l++]=s.charAt(t)+s.charAt(n)+s.charAt(r)+s.charAt(a)}while(o<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},H.utf8Encode=function(e){var t,n,r,a,i="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,a=0;a<r;a++){var s=e.charCodeAt(a),o=null;s<128?n++:o=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==o&&(n>t&&(i+=e.substring(t,n)),i+=o,t=n=a+1)}return n>t&&(i+=e.substring(t,e.length)),i},H.UUID=(S=function(){for(var e=1*new Date,t=0;e==1*new Date;)t++;return e.toString(16)+t.toString(16)},function(){var e=(C.height*C.width).toString(16);return S()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,n=I,r=[],a=0;function i(e,t){var n,a=0;for(n=0;n<t.length;n++)a|=r[n]<<8*n;return e^a}for(e=0;e<n.length;e++)t=n.charCodeAt(e),r.unshift(255&t),r.length>=4&&(a=i(a,r),r=[]);return r.length>0&&(a=i(a,r)),a.toString(16)}()+"-"+e+"-"+S()});var L=["ahrefsbot","baiduspider","bingbot","bingpreview","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];H.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<L.length;t++)if(-1!==e.indexOf(L[t]))return!0;return!1},H.HTTPBuildQuery=function(e,t){var n,r,a=[];return H.isUndefined(t)&&(t="&"),H.each(e,(function(e,t){n=encodeURIComponent(e.toString()),r=encodeURIComponent(t),a[a.length]=r+"="+n})),a.join(t)},H.getQueryParam=function(e,t){t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===n||n&&"string"!=typeof n[1]&&n[1].length)return"";var r=n[1];try{r=decodeURIComponent(r)}catch(e){F.error("Skipping decoding for malformed query param: "+r)}return r.replace(/\+/g," ")},H.cookie={get:function(e){for(var t=e+"=",n=k.cookie.split(";"),r=0;r<n.length;r++){for(var a=n[r];" "==a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t))return decodeURIComponent(a.substring(t.length,a.length))}return null},parse:function(e){var t;try{t=H.JSONDecode(H.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,n,r,a,i,s){var o="",l="",c="";if(s)o="; domain="+s;else if(r){var u=$(k.location.hostname);o=u?"; domain=."+u:""}if(n){var p=new Date;p.setTime(p.getTime()+1e3*n),l="; expires="+p.toGMTString()}i&&(a=!0,c="; SameSite=None"),a&&(c+="; secure"),k.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+o+c},set:function(e,t,n,r,a,i,s){var o="",l="",c="";if(s)o="; domain="+s;else if(r){var u=$(k.location.hostname);o=u?"; domain=."+u:""}if(n){var p=new Date;p.setTime(p.getTime()+24*n*60*60*1e3),l="; expires="+p.toGMTString()}i&&(a=!0,c="; SameSite=None"),a&&(c+="; secure");var d=e+"="+encodeURIComponent(t)+l+"; path=/"+o+c;return k.cookie=d,d},remove:function(e,t,n){H.cookie.set(e,"",-1,t,!1,!1,n)}};var j=null,M=function(e,t){if(null!==j&&!t)return j;var n=!0;try{e=e||window.localStorage;var r="__mplss_"+K(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(n=!1),e.removeItem(r)}catch(e){n=!1}return j=n,n};H.localStorage={is_supported:function(e){var t=M(null,e);return t||F.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){F.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(e){H.localStorage.error(e)}return null},parse:function(e){try{return H.JSONDecode(H.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(e){H.localStorage.error(e)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(e){H.localStorage.error(e)}}},H.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,a,i){if(t)if(t.addEventListener&&!a)t.addEventListener(n,r,!!i);else{var s="on"+n,o=t[s];t[s]=function(t,n,r){return function(a){if(a=a||e(window.event)){var i,s,o=!0;return H.isFunction(r)&&(i=r(a)),s=n.call(t,a),!1!==i&&!1!==s||(o=!1),o}}}(t,r,o)}else F.error("No valid element provided to register_event")}}();var B=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');H.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function n(e,n){var r=" "+n+" ";return(" "+e.className+" ").replace(t," ").indexOf(r)>=0}function r(t){if(!k.getElementsByTagName)return[];var r,a,i,s,o,l,c,u,p,d,h=t.split(" "),f=[k];for(l=0;l<h.length;l++)if((r=h[l].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){i=(a=r.split("#"))[0];var m=a[1],S=k.getElementById(m);if(!S||i&&S.nodeName.toLowerCase()!=i)return[];f=[S]}else if(r.indexOf(".")>-1){i=(a=r.split("."))[0];var y=a[1];for(i||(i="*"),s=[],o=0,c=0;c<f.length;c++)for(p="*"==i?e(f[c]):f[c].getElementsByTagName(i),u=0;u<p.length;u++)s[o++]=p[u];for(f=[],d=0,c=0;c<s.length;c++)s[c].className&&H.isString(s[c].className)&&n(s[c],y)&&(f[d++]=s[c])}else{var g=r.match(B);if(g){i=g[1];var v,_=g[2],b=g[3],P=g[4];for(i||(i="*"),s=[],o=0,c=0;c<f.length;c++)for(p="*"==i?e(f[c]):f[c].getElementsByTagName(i),u=0;u<p.length;u++)s[o++]=p[u];switch(f=[],d=0,b){case"=":v=function(e){return e.getAttribute(_)==P};break;case"~":v=function(e){return e.getAttribute(_).match(new RegExp("\\b"+P+"\\b"))};break;case"|":v=function(e){return e.getAttribute(_).match(new RegExp("^"+P+"-?"))};break;case"^":v=function(e){return 0===e.getAttribute(_).indexOf(P)};break;case"$":v=function(e){return e.getAttribute(_).lastIndexOf(P)==e.getAttribute(_).length-P.length};break;case"*":v=function(e){return e.getAttribute(_).indexOf(P)>-1};break;default:v=function(e){return e.getAttribute(_)}}for(f=[],d=0,c=0;c<s.length;c++)v(s[c])&&(f[d++]=s[c])}else{for(i=r,s=[],o=0,c=0;c<f.length;c++)for(p=f[c].getElementsByTagName(i),u=0;u<p.length;u++)s[o++]=p[u];f=s}}return f}return function(e){return H.isElement(e)?[e]:H.isObject(e)&&!H.isUndefined(e.length)?e:r.call(this,e)}}(),H.info={campaignParams:function(){var e="utm_source utm_medium utm_campaign utm_content utm_term".split(" "),t="",n={};return H.each(e,(function(e){(t=H.getQueryParam(k.URL,e)).length&&(n[e]=t)})),n},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=H.info.searchEngine(e),n="yahoo"!=t?"q":"p",r={};if(null!==t){r.$search_engine=t;var a=H.getQueryParam(e,n);a.length&&(r.mp_keyword=a)}return r},browser:function(e,t,n){return t=t||"",n||H.includes(e," OPR/")?H.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":H.includes(e,"IEMobile")||H.includes(e,"WPDesktop")?"Internet Explorer Mobile":H.includes(e,"SamsungBrowser/")?"Samsung Internet":H.includes(e,"Edge")||H.includes(e,"Edg/")?"Microsoft Edge":H.includes(e,"FBIOS")?"Facebook Mobile":H.includes(e,"Chrome")?"Chrome":H.includes(e,"CriOS")?"Chrome iOS":H.includes(e,"UCWEB")||H.includes(e,"UCBrowser")?"UC Browser":H.includes(e,"FxiOS")?"Firefox iOS":H.includes(t,"Apple")?H.includes(e,"Mobile")?"Mobile Safari":"Safari":H.includes(e,"Android")?"Android Mobile":H.includes(e,"Konqueror")?"Konqueror":H.includes(e,"Firefox")?"Firefox":H.includes(e,"MSIE")||H.includes(e,"Trident/")?"Internet Explorer":H.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[H.info.browser(e,t,n)];if(void 0===r)return null;var a=e.match(r);return a?parseFloat(a[a.length-2]):null},os:function(){var e=I;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},properties:function(){return H.extend(H.strip_empty_properties({$os:H.info.os(),$browser:H.info.browser(I,E.vendor,T),$referrer:k.referrer,$referring_domain:H.info.referringDomain(k.referrer),$device:H.info.device(I)}),{$current_url:r.location.href,$browser_version:H.info.browserVersion(I,E.vendor,T),$screen_height:C.height,$screen_width:C.width,mp_lib:"web",$lib_version:a.LIB_VERSION,$insert_id:K(),time:H.timestamp()/1e3})},people_properties:function(){return H.extend(H.strip_empty_properties({$os:H.info.os(),$browser:H.info.browser(I,E.vendor,T)}),{$browser_version:H.info.browserVersion(I,E.vendor,T)})},pageviewInfo:function(e){return H.strip_empty_properties({mp_page:e,mp_referrer:k.referrer,mp_browser:H.info.browser(I,E.vendor,T),mp_platform:H.info.os()})}};var K=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},q=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,V=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,$=function(e){var t=V,n=e.split("."),r=n[n.length-1];(r.length>4||"com"===r||"org"===r)&&(t=q);var a=e.match(t);return a?a[0]:""},W=null,z=null;"undefined"!=typeof JSON&&(W=JSON.stringify,z=JSON.parse),W=W||H.JSONEncode,z=z||H.JSONDecode,H.toArray=H.toArray,H.isObject=H.isObject,H.JSONEncode=H.JSONEncode,H.JSONDecode=H.JSONDecode,H.isBlockedUA=H.isBlockedUA,H.isEmptyObject=H.isEmptyObject,H.info=H.info,H.info.device=H.info.device,H.info.browser=H.info.browser,H.info.browserVersion=H.info.browserVersion,H.info.properties=H.info.properties;var J=function(){};J.prototype.create_properties=function(){},J.prototype.event_handler=function(){},J.prototype.after_track_handler=function(){},J.prototype.init=function(e){return this.mp=e,this},J.prototype.track=function(e,t,n,r){var a=this,i=H.dom_query(e);if(0!==i.length)return H.each(i,(function(e){H.register_event(e,this.override_event,(function(e){var i={},s=a.create_properties(n,this),o=a.mp.get_config("track_links_timeout");a.event_handler(e,this,i),window.setTimeout(a.track_callback(r,s,i,!0),o),a.mp.track(t,s,a.track_callback(r,s,i))}))}),this),!0;F.error("The DOM query ("+e+") returned 0 elements")},J.prototype.track_callback=function(e,t,n,r){r=r||!1;var a=this;return function(){n.callback_fired||(n.callback_fired=!0,e&&!1===e(r,t)||a.after_track_handler(t,n,r))}},J.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):H.extend({},e)};var X=function(){this.override_event="click"};H.inherit(X,J),X.prototype.create_properties=function(e,t){var n=X.superclass.create_properties.apply(this,arguments);return t.href&&(n.url=t.href),n},X.prototype.event_handler=function(e,t,n){n.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,n.href=t.href,n.new_tab||e.preventDefault()},X.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var Q=function(){this.override_event="submit"};H.inherit(Q,J),Q.prototype.event_handler=function(e,t,n){n.element=t,e.preventDefault()},Q.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var Y=U("lock"),Z=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};Z.prototype.withLock=function(e,t,n){n||"function"==typeof t||(n=t,t=null);var r=n||(new Date).getTime()+"|"+Math.random(),a=(new Date).getTime(),i=this.storageKey,s=this.pollIntervalMS,o=this.timeoutMS,l=this.storage,c=i+":X",u=i+":Y",p=i+":Z",d=function(e){t&&t(e)},h=function(e){if((new Date).getTime()-a>o)return Y.error("Timeout waiting for mutex on "+i+"; clearing lock. ["+r+"]"),l.removeItem(p),l.removeItem(u),void S();setTimeout((function(){try{e()}catch(e){d(e)}}),s*(Math.random()+.1))},f=function(e,t){e()?t():h((function(){f(e,t)}))},m=function(){var e=l.getItem(u);if(e&&e!==r)return!1;if(l.setItem(u,r),l.getItem(u)===r)return!0;if(!M(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},S=function(){l.setItem(c,r),f(m,(function(){l.getItem(c)!==r?h((function(){l.getItem(u)===r?f((function(){return!l.getItem(p)}),y):S()})):y()}))},y=function(){l.setItem(p,"1");try{e()}finally{l.removeItem(p),l.getItem(u)===r&&l.removeItem(u),l.getItem(c)===r&&l.removeItem(c)}};try{if(!M(l,!0))throw new Error("localStorage support check failed");S()}catch(e){d(e)}};var ee=U("batch"),te=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||H.bind(ee.error,ee),this.lock=new Z(e,{storage:this.storage}),this.pid=t.pid||null,this.memQueue=[]};te.prototype.enqueue=function(e,t,n){var r={id:K(),flushAfter:(new Date).getTime()+2*t,payload:e};this.lock.withLock(H.bind((function(){var t;try{var a=this.readFromStorage();a.push(r),(t=this.saveToStorage(a))&&this.memQueue.push(r)}catch(n){this.reportError("Error enqueueing item",e),t=!1}n&&n(t)}),this),H.bind((function(e){this.reportError("Error acquiring storage lock",e),n&&n(!1)}),this),this.pid)},te.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(t.length<e){var n=this.readFromStorage();if(n.length){var r={};H.each(t,(function(e){r[e.id]=!0}));for(var a=0;a<n.length;a++){var i=n[a];if((new Date).getTime()>i.flushAfter&&!r[i.id]&&(i.orphaned=!0,t.push(i),t.length>=e))break}}}return t};var ne=function(e,t){var n=[];return H.each(e,(function(e){e.id&&!t[e.id]&&n.push(e)})),n};te.prototype.removeItemsByID=function(e,t){var n={};H.each(e,(function(e){n[e]=!0})),this.memQueue=ne(this.memQueue,n);var r=H.bind((function(){var t;try{var r=this.readFromStorage();if(r=ne(r,n),t=this.saveToStorage(r)){r=this.readFromStorage();for(var a=0;a<r.length;a++){var i=r[a];if(i.id&&n[i.id])return this.reportError("Item not removed from storage"),!1}}}catch(n){this.reportError("Error removing items",e),t=!1}return t}),this);this.lock.withLock((function(){var e=r();t&&t(e)}),H.bind((function(e){var n=!1;if(this.reportError("Error acquiring storage lock",e),!M(this.storage,!0)&&!(n=r()))try{this.storage.removeItem(this.storageKey)}catch(e){this.reportError("Error clearing queue",e)}t&&t(n)}),this),this.pid)};var re=function(e,t){var n=[];return H.each(e,(function(e){var r=e.id;if(r in t){var a=t[r];null!==a&&(e.payload=a,n.push(e))}else n.push(e)})),n};te.prototype.updatePayloads=function(e,t){this.memQueue=re(this.memQueue,e),this.lock.withLock(H.bind((function(){var n;try{var r=this.readFromStorage();r=re(r,e),n=this.saveToStorage(r)}catch(t){this.reportError("Error updating items",e),n=!1}t&&t(n)}),this),H.bind((function(e){this.reportError("Error acquiring storage lock",e),t&&t(!1)}),this),this.pid)},te.prototype.readFromStorage=function(){var e;try{(e=this.storage.getItem(this.storageKey))&&(e=z(e),H.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]},te.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,W(e)),!0}catch(e){return this.reportError("Error saving queue",e),!1}},te.prototype.clear=function(){this.memQueue=[],this.storage.removeItem(this.storageKey)};var ae=U("batch"),ie=function(e,t){this.errorReporter=t.errorReporter,this.queue=new te(e,{errorReporter:H.bind(this.reportError,this),storage:t.storage}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0};ie.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)},ie.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},ie.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},ie.prototype.clear=function(){this.queue.clear()},ie.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},ie.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},ie.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(H.bind(this.flush,this),this.flushInterval))},ie.prototype.flush=function(e){try{if(this.requestInProgress)return void ae.log("Flush: Request already in progress");e=e||{};var t=this.libConfig.batch_request_timeout_ms,n=(new Date).getTime(),r=this.batchSize,a=this.queue.fillBatch(r),i=[],s={};if(H.each(a,(function(e){var t=e.payload;this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t&&i.push(t),s[e.id]=t}),this),i.length<1)return void this.resetFlush();this.requestInProgress=!0;var o=H.bind((function(i){this.requestInProgress=!1;try{var o=!1;if(e.unloading)this.queue.updatePayloads(s);else if(H.isObject(i)&&"timeout"===i.error&&(new Date).getTime()-n>=t)this.reportError("Network timeout; retrying"),this.flush();else if(H.isObject(i)&&i.xhr_req&&(i.xhr_req.status>=500||429===i.xhr_req.status||"timeout"===i.error)){var l=2*this.flushInterval,c=i.xhr_req.responseHeaders;if(c){var u=c["Retry-After"];u&&(l=1e3*parseInt(u,10)||l)}l=Math.min(6e5,l),this.reportError("Error; retry in "+l+" ms"),this.scheduleFlush(l)}else if(H.isObject(i)&&i.xhr_req&&413===i.xhr_req.status)if(a.length>1){var p=Math.max(1,Math.floor(r/2));this.batchSize=Math.min(this.batchSize,p,a.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",a),this.resetBatchSize(),o=!0;else o=!0;o&&this.queue.removeItemsByID(H.map(a,(function(e){return e.id})),H.bind((function(e){e?(this.consecutiveRemovalFailures=0,this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())}),this))}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}}),this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(l.transport="sendBeacon"),ae.log("MIXPANEL REQUEST:",i),this.sendRequest(i,l,o)}catch(e){this.reportError("Error flushing request queue",e),this.resetFlush()}},ie.prototype.reportError=function(e,t){if(ae.error.apply(ae.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){ae.error(t)}};function se(e,t){ye(!0,e,t)}function oe(e,t){ye(!1,e,t)}function le(e,t){return"1"===Se(e,t)}function ce(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||r,n=t.navigator||{},a=!1;return H.each([n.doNotTrack,n.msDoNotTrack,t.doNotTrack],(function(e){H.includes([!0,1,"1","yes"],e)&&(a=!0)})),a}(t))return F.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var n="0"===Se(e,t);return n&&F.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),n}function ue(e){return ge(e,(function(e){return this.get_config(e)}))}function pe(e){return ge(e,(function(e){return this._get_config(e)}))}function de(e){return ge(e,(function(e){return this._get_config(e)}))}function he(e,t){fe(t=t||{}).remove(me(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function fe(e){return"localStorage"===(e=e||{}).persistenceType?H.localStorage:H.cookie}function me(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function Se(e,t){return fe(t).get(me(e,t))}function ye(e,t,n){H.isString(t)&&t.length?(fe(n=n||{}).set(me(t,n),e?1:0,H.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&e&&n.track(n.trackEventName||"$opt_in",n.trackProperties,{send_immediately:!0})):F.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function ge(e,t){return function(){var n=!1;try{var r=t.call(this,"token"),a=t.call(this,"ignore_dnt"),i=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),o=t.call(this,"window");r&&(n=ce(r,{ignoreDnt:a,persistenceType:i,persistencePrefix:s,window:o}))}catch(e){F.error("Unexpected error when checking tracking opt-out status: "+e)}if(!n)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"==typeof l&&l(0)}}var ve={set_action:function(e,t){var n={},r={};return H.isObject(e)?H.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n.$set=r,n},unset_action:function(e){var t={},n=[];return H.isArray(e)||(e=[e]),H.each(e,(function(e){this._is_reserved_property(e)||n.push(e)}),this),t.$unset=n,t},set_once_action:function(e,t){var n={},r={};return H.isObject(e)?H.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n.$set_once=r,n},union_action:function(e,t){var n={},r={};return H.isObject(e)?H.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=H.isArray(e)?e:[e])}),this):r[e]=H.isArray(t)?t:[t],n.$union=r,n},append_action:function(e,t){var n={},r={};return H.isObject(e)?H.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n.$append=r,n},remove_action:function(e,t){var n={},r={};return H.isObject(e)?H.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n.$remove=r,n},delete_action:function(){var e={$delete:""};return e}},_e=function(){};H.extend(_e.prototype,ve),_e.prototype._init=function(e,t,n){this._mixpanel=e,this._group_key=t,this._group_id=n},_e.prototype.set=de((function(e,t,n){var r=this.set_action(e,t);return H.isObject(e)&&(n=t),this._send_request(r,n)})),_e.prototype.set_once=de((function(e,t,n){var r=this.set_once_action(e,t);return H.isObject(e)&&(n=t),this._send_request(r,n)})),_e.prototype.unset=de((function(e,t){var n=this.unset_action(e);return this._send_request(n,t)})),_e.prototype.union=de((function(e,t,n){H.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)})),_e.prototype.delete=de((function(e){var t=this.delete_action();return this._send_request(t,e)})),_e.prototype.remove=de((function(e,t,n){var r=this.remove_action(e,t);return this._send_request(r,n)})),_e.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var n=H.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:n,endpoint:this._get_config("api_host")+"/groups/",batcher:this._mixpanel.request_batchers.groups},t)},_e.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},_e.prototype._get_config=function(e){return this._mixpanel.get_config(e)},_e.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},_e.prototype.remove=_e.prototype.remove,_e.prototype.set=_e.prototype.set,_e.prototype.set_once=_e.prototype.set_once,_e.prototype.union=_e.prototype.union,_e.prototype.unset=_e.prototype.unset,_e.prototype.toString=_e.prototype.toString;var be=function(){};H.extend(be.prototype,ve),be.prototype._init=function(e){this._mixpanel=e},be.prototype.set=pe((function(e,t,n){var r=this.set_action(e,t);return H.isObject(e)&&(n=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r.$set=H.extend({},H.info.people_properties(),this._mixpanel.persistence.get_referrer_info(),r.$set),this._send_request(r,n)})),be.prototype.set_once=pe((function(e,t,n){var r=this.set_once_action(e,t);return H.isObject(e)&&(n=t),this._send_request(r,n)})),be.prototype.unset=pe((function(e,t){var n=this.unset_action(e);return this._send_request(n,t)})),be.prototype.increment=pe((function(e,t,n){var r={},a={};return H.isObject(e)?(H.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void F.error("Invalid increment value passed to mixpanel.people.increment - must be a number");a[t]=e}}),this),n=t):(H.isUndefined(t)&&(t=1),a[e]=t),r.$add=a,this._send_request(r,n)})),be.prototype.append=pe((function(e,t,n){H.isObject(e)&&(n=t);var r=this.append_action(e,t);return this._send_request(r,n)})),be.prototype.remove=pe((function(e,t,n){H.isObject(e)&&(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)})),be.prototype.union=pe((function(e,t,n){H.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)})),be.prototype.track_charge=pe((function(e,t,n){if(H.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",H.extend({$amount:e},t),n);F.error("Invalid value passed to mixpanel.people.track_charge - must be a number")})),be.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},be.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}F.error("mixpanel.people.delete_user() requires you to call identify() first")},be.prototype.toString=function(){return this._mixpanel.toString()+".people"},be.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),a=this._mixpanel.get_property("$had_persisted_distinct_id");n&&(e.$device_id=n),r&&(e.$user_id=r),a&&(e.$had_persisted_distinct_id=a);var i=H.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:i,endpoint:this._get_config("api_host")+"/engage/",batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),H.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),H.truncate(i,255))},be.prototype._get_config=function(e){return this._mixpanel.get_config(e)},be.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},be.prototype._enqueue=function(e){"$set"in e?this._mixpanel.persistence._add_to_people_queue("$set",e):"$set_once"in e?this._mixpanel.persistence._add_to_people_queue("$set_once",e):"$unset"in e?this._mixpanel.persistence._add_to_people_queue("$unset",e):"$add"in e?this._mixpanel.persistence._add_to_people_queue("$add",e):"$append"in e?this._mixpanel.persistence._add_to_people_queue("$append",e):"$remove"in e?this._mixpanel.persistence._add_to_people_queue("$remove",e):"$union"in e?this._mixpanel.persistence._add_to_people_queue("$union",e):F.error("Invalid call to _enqueue():",e)},be.prototype._flush_one_queue=function(e,t,n,r){var a=this,i=H.extend({},this._mixpanel.persistence._get_queue(e)),s=i;H.isUndefined(i)||!H.isObject(i)||H.isEmptyObject(i)||(a._mixpanel.persistence._pop_from_people_queue(e,i),r&&(s=r(i)),t.call(a,s,(function(t,r){0===t&&a._mixpanel.persistence._add_to_people_queue(e,i),H.isUndefined(n)||n(t,r)})))},be.prototype._flush=function(e,t,n,r,a,i,s){var o=this,l=this._mixpanel.persistence._get_queue("$append"),c=this._mixpanel.persistence._get_queue("$remove");if(this._flush_one_queue("$set",this.set,e),this._flush_one_queue("$set_once",this.set_once,r),this._flush_one_queue("$unset",this.unset,i,(function(e){return H.keys(e)})),this._flush_one_queue("$add",this.increment,t),this._flush_one_queue("$union",this.union,a),!H.isUndefined(l)&&H.isArray(l)&&l.length){for(var u,p=function(e,t){0===e&&o._mixpanel.persistence._add_to_people_queue("$append",u),H.isUndefined(n)||n(e,t)},d=l.length-1;d>=0;d--)u=l.pop(),H.isEmptyObject(u)||o.append(u,p);o._mixpanel.persistence.save()}if(!H.isUndefined(c)&&H.isArray(c)&&c.length){for(var h,f=function(e,t){0===e&&o._mixpanel.persistence._add_to_people_queue("$remove",h),H.isUndefined(s)||s(e,t)},m=c.length-1;m>=0;m--)h=c.pop(),H.isEmptyObject(h)||o.remove(h,f);o._mixpanel.persistence.save()}},be.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},be.prototype.set=be.prototype.set,be.prototype.set_once=be.prototype.set_once,be.prototype.unset=be.prototype.unset,be.prototype.increment=be.prototype.increment,be.prototype.append=be.prototype.append,be.prototype.remove=be.prototype.remove,be.prototype.union=be.prototype.union,be.prototype.track_charge=be.prototype.track_charge,be.prototype.clear_charges=be.prototype.clear_charges,be.prototype.delete_user=be.prototype.delete_user,be.prototype.toString=be.prototype.toString;var Pe,we,Ee=["__mps","__mpso","__mpus","__mpa","__mpap","__mpr","__mpu","$people_distinct_id","__alias","__timers"],ke=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(F.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&H.localStorage.is_supported()?this.storage=H.localStorage:this.storage=H.cookie,this.load(),this.update_config(e),this.upgrade(e),this.save()};ke.prototype.properties=function(){var e={};return H.each(this.props,(function(t,n){H.include(Ee,n)||(e[n]=t)})),e},ke.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=H.extend({},e))}},ke.prototype.upgrade=function(e){var t,n,r=e.upgrade;r&&(t="mp_super_properties","string"==typeof r&&(t=r),n=this.storage.parse(t),this.storage.remove(t),this.storage.remove(t,!0),n&&(this.props=H.extend(this.props,n.all,n.events))),e.cookie_name||"mixpanel"===e.name||(t="mp_"+e.token+"_"+e.name,(n=this.storage.parse(t))&&(this.storage.remove(t),this.storage.remove(t,!0),this.register_once(n))),this.storage===H.localStorage&&(n=H.cookie.parse(this.name),H.cookie.remove(this.name),H.cookie.remove(this.name,!0),n&&this.register_once(n))},ke.prototype.save=function(){this.disabled||this.storage.set(this.name,H.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},ke.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},ke.prototype.clear=function(){this.remove(),this.props={}},ke.prototype.register_once=function(e,t,n){return!!H.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===n?this.default_expiry:n,H.each(e,(function(e,n){this.props.hasOwnProperty(n)&&this.props[n]!==t||(this.props[n]=e)}),this),this.save(),!0)},ke.prototype.register=function(e,t){return!!H.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,H.extend(this.props,e),this.save(),!0)},ke.prototype.unregister=function(e){e in this.props&&(delete this.props[e],this.save())},ke.prototype.update_campaign_params=function(){this.campaign_params_saved||(this.register_once(H.info.campaignParams()),this.campaign_params_saved=!0)},ke.prototype.update_search_keyword=function(e){this.register(H.info.searchInfo(e))},ke.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:H.info.referringDomain(e)||"$direct"},"")},ke.prototype.get_referrer_info=function(){return H.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},ke.prototype.safe_merge=function(e){return H.each(this.props,(function(t,n){n in e||(e[n]=t)})),e},ke.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},ke.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},ke.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},ke.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},ke.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},ke.prototype.get_cross_subdomain=function(){return this.cross_subdomain},ke.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},ke.prototype._add_to_people_queue=function(e,t){var n=this._get_queue_key(e),r=t[e],a=this._get_or_create_queue("$set"),i=this._get_or_create_queue("$set_once"),s=this._get_or_create_queue("$unset"),o=this._get_or_create_queue("$add"),l=this._get_or_create_queue("$union"),c=this._get_or_create_queue("$remove",[]),u=this._get_or_create_queue("$append",[]);"__mps"===n?(H.extend(a,r),this._pop_from_people_queue("$add",r),this._pop_from_people_queue("$union",r),this._pop_from_people_queue("$unset",r)):"__mpso"===n?(H.each(r,(function(e,t){t in i||(i[t]=e)})),this._pop_from_people_queue("$unset",r)):"__mpus"===n?H.each(r,(function(e){H.each([a,i,o,l],(function(t){e in t&&delete t[e]})),H.each(u,(function(t){e in t&&delete t[e]})),s[e]=!0})):"__mpa"===n?(H.each(r,(function(e,t){t in a?a[t]+=e:(t in o||(o[t]=0),o[t]+=e)}),this),this._pop_from_people_queue("$unset",r)):"__mpu"===n?(H.each(r,(function(e,t){H.isArray(e)&&(t in l||(l[t]=[]),l[t]=l[t].concat(e))})),this._pop_from_people_queue("$unset",r)):"__mpr"===n?(c.push(r),this._pop_from_people_queue("$append",r)):"__mpap"===n&&(u.push(r),this._pop_from_people_queue("$unset",r)),F.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),F.log(t),this.save()},ke.prototype._pop_from_people_queue=function(e,t){var n=this._get_queue(e);H.isUndefined(n)||(H.each(t,(function(t,r){"$append"===e||"$remove"===e?H.each(n,(function(e){e[r]===t&&delete e[r]})):delete n[r]}),this),this.save())},ke.prototype._get_queue_key=function(e){return"$set"===e?"__mps":"$set_once"===e?"__mpso":"$unset"===e?"__mpus":"$add"===e?"__mpa":"$append"===e?"__mpap":"$remove"===e?"__mpr":"$union"===e?"__mpu":void F.error("Invalid queue:",e)},ke.prototype._get_queue=function(e){return this.props[this._get_queue_key(e)]},ke.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=H.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)},ke.prototype.set_event_timer=function(e,t){var n=this.props.__timers||{};n[e]=t,this.props.__timers=n,this.save()},ke.prototype.remove_event_timer=function(e){var t=(this.props.__timers||{})[e];return H.isUndefined(t)||(delete this.props.__timers[e],this.save()),t};var Te=function(e){return e},Ce=function(){},Ie=r.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Ae=!Ie&&-1===I.indexOf("MSIE")&&-1===I.indexOf("Mozilla"),Oe=null;E.sendBeacon&&(Oe=function(){return E.sendBeacon.apply(E,arguments)});var xe={api_host:"https://api-js.mixpanel.com",api_method:"POST",api_transport:"XHR",api_payload_format:"base64",app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Ce,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Ce,store_google:!0,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{}},Ne=!1,Re=function(){},De=function(e,t,n){var r,i="mixpanel"===n?we:we[n];if(i&&0===Pe)r=i;else{if(i&&!H.isArray(i))return void F.error("You have already initialized "+n);r=new Re}return r._cached_groups={},r._init(e,t,n),r.people=new be,r.people._init(r),a.DEBUG=a.DEBUG||r.get_config("debug"),!H.isUndefined(i)&&H.isArray(i)&&(r._execute_array.call(r.people,i.people),r._execute_array(i)),r};Re.prototype.init=function(e,t,n){if(H.isUndefined(n))this.report_error("You must name your new library: init(token, config, name)");else{if("mixpanel"!==n){var r=De(e,t,n);return we[n]=r,r._loaded(),r}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},Re.prototype._init=function(e,t,n){t=t||{},this.__loaded=!0,this.config={};var a={};"api_payload_format"in t||(t.api_host||xe.api_host).match(/\.mixpanel\.com$/)&&(a.api_payload_format="json");if(this.set_config(H.extend({},xe,a,t,{name:n,token:e,callback_fn:("mixpanel"===n?n:"mixpanel."+n)+"._jsc"})),this._jsc=Ce,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(H.localStorage.is_supported(!0)&&Ie){if(this.init_batchers(),Oe&&r.addEventListener){var i=H.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);r.addEventListener("pagehide",(function(e){e.persisted&&i()})),r.addEventListener("visibilitychange",(function(){"hidden"===k.visibilityState&&i()}))}}else this._batch_requests=!1,F.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support");this.persistence=this.cookie=new ke(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=H.UUID();this.get_distinct_id()||this.register_once({distinct_id:s,$device_id:s},"")},Re.prototype._loaded=function(){this.get_config("loaded")(this),this._set_default_superprops()},Re.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(k.referrer),this.get_config("store_google")&&this.persistence.update_campaign_params(),this.get_config("save_referrer")&&this.persistence.update_referrer_info(k.referrer)},Re.prototype._dom_loaded=function(){H.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||H.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},Re.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Ne)return this.__dom_loaded_queue.push([e,t]),!1;var n=(new e).init(this);return n.track.apply(n,t)},Re.prototype._prepare_callback=function(e,t){if(H.isUndefined(e))return null;if(Ie){return function(n){e(n,t)}}var n=this._jsc,r=""+Math.floor(1e8*Math.random()),a=this.get_config("callback_fn")+"["+r+"]";return n[r]=function(a){delete n[r],e(a,t)},a},Re.prototype._send_request=function(e,t,n,r){var a=!0;if(Ae)return this.__request_queue.push(arguments),a;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;r||!H.isFunction(n)&&"string"!=typeof n||(r=n,n=null),n=H.extend(i,n||{}),Ie||(n.method="GET");var o="POST"===n.method,l=Oe&&o&&"sendbeacon"===n.transport.toLowerCase(),c=n.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),Ie||(r?t.callback=r:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),o&&(s="data="+encodeURIComponent(t.data),delete t.data),e+="?"+H.HTTPBuildQuery(t);var u=this;if("img"in t){var p=k.createElement("img");p.src=e,k.body.appendChild(p)}else if(l){try{a=Oe(e,s)}catch(e){u.report_error(e),a=!1}try{r&&r(a?1:0)}catch(e){u.report_error(e)}}else if(Ie)try{var d=new XMLHttpRequest;d.open(n.method,e,!0);var h=this.get_config("xhr_headers");if(o&&(h["Content-Type"]="application/x-www-form-urlencoded"),H.each(h,(function(e,t){d.setRequestHeader(t,e)})),n.timeout_ms&&void 0!==d.timeout){d.timeout=n.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(r)if(c){var t;try{t=H.JSONDecode(d.responseText)}catch(e){if(u.report_error(e),!n.ignore_json_errors)return;t=d.responseText}r(t)}else r(Number(d.responseText))}else e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,u.report_error(e),r&&r(c?{status:0,error:e,xhr_req:d}:0)},d.send(s)}catch(e){u.report_error(e),a=!1}else{var m=k.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var S=k.getElementsByTagName("script")[0];S.parentNode.insertBefore(m,S)}return a},Re.prototype._execute_array=function(e){var t,n=[],r=[],a=[];H.each(e,(function(e){e&&(t=e[0],H.isArray(t)?a.push(e):"function"==typeof e?e.call(this):H.isArray(e)&&"alias"===t?n.push(e):H.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?a.push(e):r.push(e))}),this);var i=function(e,t){H.each(e,(function(e){if(H.isArray(e[0])){var n=t;H.each(e,(function(e){n=n[e[0]].apply(n,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};i(n,this),i(r,this),i(a,this)},Re.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Re.prototype.init_batchers=function(){var e=this.get_config("token");if(!this.are_batchers_initialized()){var t=H.bind((function(t){return new ie("__mpq_"+e+t.queue_suffix,{libConfig:this.config,sendRequestFunc:H.bind((function(e,n,r){this._send_request(this.get_config("api_host")+t.endpoint,this._encode_data_for_request(e),n,this._prepare_callback(r,e))}),this),beforeSendHook:H.bind((function(e){return this._run_hook("before_send_"+t.type,e)}),this),errorReporter:this.get_config("error_reporter"),stopAllBatchingFunc:H.bind(this.stop_batch_senders,this)})}),this);this.request_batchers={events:t({type:"events",endpoint:"/track/",queue_suffix:"_ev"}),people:t({type:"people",endpoint:"/engage/",queue_suffix:"_pp"}),groups:t({type:"groups",endpoint:"/groups/",queue_suffix:"_gr"})}}this.get_config("batch_autostart")&&this.start_batch_senders()},Re.prototype.start_batch_senders=function(){this.are_batchers_initialized()&&(this._batch_requests=!0,H.each(this.request_batchers,(function(e){e.start()})))},Re.prototype.stop_batch_senders=function(){this._batch_requests=!1,H.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},Re.prototype.push=function(e){this._execute_array([e])},Re.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Re.prototype._encode_data_for_request=function(e){var t=H.JSONEncode(e);return"base64"===this.get_config("api_payload_format")&&(t=H.base64Encode(t)),{data:t}},Re.prototype._track_or_batch=function(e,t){var n=H.truncate(e.data,255),r=e.endpoint,a=e.batcher,i=e.should_send_immediately,s=e.send_request_options||{};t=t||Ce;var o=!0,l=H.bind((function(){return s.skip_hooks||(n=this._run_hook("before_send_"+e.type,n)),n?(F.log("MIXPANEL REQUEST:"),F.log(n),this._send_request(r,this._encode_data_for_request(n),s,this._prepare_callback(t,n))):null}),this);return this._batch_requests&&!i?a.enqueue(n,(function(e){e?t(1,n):l()})):o=l(),o&&n},Re.prototype.track=ue((function(e,t,n,r){r||"function"!=typeof n||(r=n,n=null);var a=(n=n||{}).transport;a&&(n.transport=a);var i=n.send_immediately;if("function"!=typeof r&&(r=Ce),H.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=t||{}).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!H.isUndefined(s)){var o=(new Date).getTime()-s;t.$duration=parseFloat((o/1e3).toFixed(3))}this._set_default_superprops(),t=H.extend({},H.info.properties(),this.persistence.properties(),this.unpersisted_superprops,t);var l=this.get_config("property_blacklist");H.isArray(l)?H.each(l,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+l);var c={event:e,properties:t};return this._track_or_batch({type:"events",data:c,endpoint:this.get_config("api_host")+"/track/",batcher:this.request_batchers.events,should_send_immediately:i,send_request_options:n},r)}r(0)}})),Re.prototype.set_group=ue((function(e,t,n){H.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)})),Re.prototype.add_group=ue((function(e,t,n){var r=this.get_property(e);if(void 0===r){var a={};a[e]=[t],this.register(a)}else-1===r.indexOf(t)&&(r.push(t),this.register(a));return this.people.union(e,t,n)})),Re.prototype.remove_group=ue((function(e,t,n){var r=this.get_property(e);if(void 0!==r){var a=r.indexOf(t);a>-1&&(r.splice(a,1),this.register({group_key:r})),0===r.length&&this.unregister(e)}return this.people.remove(e,t,n)})),Re.prototype.track_with_groups=ue((function(e,t,n,r){var a=H.extend({},t||{});return H.each(n,(function(e,t){null!=e&&(a[t]=e)})),this.track(e,a,r)})),Re.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Re.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Re.prototype.get_group=function(e,t){var n=this._create_map_key(e,t),r=this._cached_groups[n];return void 0!==r&&r._group_key===e&&r._group_id===t||((r=new _e)._init(this,e,t),this._cached_groups[n]=r),r},Re.prototype.track_pageview=function(e){H.isUndefined(e)&&(e=k.location.href),this.track("mp_page_view",H.info.pageviewInfo(e))},Re.prototype.track_links=function(){return this._track_dom.call(this,X,arguments)},Re.prototype.track_forms=function(){return this._track_dom.call(this,Q,arguments)},Re.prototype.time_event=function(e){H.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var He={persistent:!0},Fe=function(e){var t;return t=H.isObject(e)?e:H.isUndefined(e)?{}:{days:e},H.extend({},He,t)};Re.prototype.register=function(e,t){var n=Fe(t);n.persistent?this.persistence.register(e,n.days):H.extend(this.unpersisted_superprops,e)},Re.prototype.register_once=function(e,t,n){var r=Fe(n);r.persistent?this.persistence.register_once(e,t,r.days):(void 0===t&&(t="None"),H.each(e,(function(e,n){this.unpersisted_superprops.hasOwnProperty(n)&&this.unpersisted_superprops[n]!==t||(this.unpersisted_superprops[n]=e)}),this))},Re.prototype.unregister=function(e,t){(t=Fe(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},Re.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)},Re.prototype.identify=function(e,t,n,r,a,i,s,o){var l=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var c=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==l&&e!==this.get_property("__alias")&&(this.unregister("__alias"),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,n,r,a,i,s,o),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})},Re.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=H.UUID();this.register_once({distinct_id:e,$device_id:e},"")},Re.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Re.prototype.alias=function(e,t){if(e===this.get_property("$people_distinct_id"))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var n=this;return H.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single("__alias",e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){n.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},Re.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Re.prototype.set_config=function(e){H.isObject(e)&&(H.extend(this.config,e),e.batch_size&&H.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),a.DEBUG=a.DEBUG||this.get_config("debug"))},Re.prototype.get_config=function(e){return this.config[e]},Re.prototype._run_hook=function(e){var t=(this.config.hooks[e]||Te).apply(this,_.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},Re.prototype.get_property=function(e){return this.persistence.props[e]},Re.prototype.toString=function(){var e=this.get_config("name");return"mixpanel"!==e&&(e="mixpanel."+e),e},Re.prototype._event_is_disabled=function(e){return H.isBlockedUA(I)||this._flags.disable_all_events||H.include(this.__disabled_events,e)},Re.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&H.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!H.cookie.get("mp_optout")||(H.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Re.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t&&H.each(this.request_batchers,(function(e){e.clear()}))},Re.prototype._gdpr_call_func=function(e,t){return t=H.extend({track:H.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),H.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},Re.prototype.opt_in_tracking=function(e){e=H.extend({enable_persistence:!0},e),this._gdpr_call_func(se,e),this._gdpr_update_persistence(e)},Re.prototype.opt_out_tracking=function(e){(e=H.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(oe,e),this._gdpr_update_persistence(e)},Re.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(le,e)},Re.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(ce,e)},Re.prototype.clear_opt_in_out_tracking=function(e){e=H.extend({enable_persistence:!0},e),this._gdpr_call_func(he,e),this._gdpr_update_persistence(e)},Re.prototype.report_error=function(e,t){F.error.apply(F.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){F.error(t)}},Re.prototype.init=Re.prototype.init,Re.prototype.reset=Re.prototype.reset,Re.prototype.disable=Re.prototype.disable,Re.prototype.time_event=Re.prototype.time_event,Re.prototype.track=Re.prototype.track,Re.prototype.track_links=Re.prototype.track_links,Re.prototype.track_forms=Re.prototype.track_forms,Re.prototype.track_pageview=Re.prototype.track_pageview,Re.prototype.register=Re.prototype.register,Re.prototype.register_once=Re.prototype.register_once,Re.prototype.unregister=Re.prototype.unregister,Re.prototype.identify=Re.prototype.identify,Re.prototype.alias=Re.prototype.alias,Re.prototype.name_tag=Re.prototype.name_tag,Re.prototype.set_config=Re.prototype.set_config,Re.prototype.get_config=Re.prototype.get_config,Re.prototype.get_property=Re.prototype.get_property,Re.prototype.get_distinct_id=Re.prototype.get_distinct_id,Re.prototype.toString=Re.prototype.toString,Re.prototype.opt_out_tracking=Re.prototype.opt_out_tracking,Re.prototype.opt_in_tracking=Re.prototype.opt_in_tracking,Re.prototype.has_opted_out_tracking=Re.prototype.has_opted_out_tracking,Re.prototype.has_opted_in_tracking=Re.prototype.has_opted_in_tracking,Re.prototype.clear_opt_in_out_tracking=Re.prototype.clear_opt_in_out_tracking,Re.prototype.get_group=Re.prototype.get_group,Re.prototype.set_group=Re.prototype.set_group,Re.prototype.add_group=Re.prototype.add_group,Re.prototype.remove_group=Re.prototype.remove_group,Re.prototype.track_with_groups=Re.prototype.track_with_groups,Re.prototype.start_batch_senders=Re.prototype.start_batch_senders,Re.prototype.stop_batch_senders=Re.prototype.stop_batch_senders,ke.prototype.properties=ke.prototype.properties,ke.prototype.update_search_keyword=ke.prototype.update_search_keyword,ke.prototype.update_referrer_info=ke.prototype.update_referrer_info,ke.prototype.get_cross_subdomain=ke.prototype.get_cross_subdomain,ke.prototype.clear=ke.prototype.clear;var Ge={},Ue=function(){we.init=function(e,t,n){if(n)return we[n]||(we[n]=Ge[n]=De(e,t,n),we[n]._loaded()),we[n];var a=we;Ge.mixpanel?a=Ge.mixpanel:e&&((a=De(e,t,"mixpanel"))._loaded(),Ge.mixpanel=a),we=a,1===Pe&&(r.mixpanel=we),H.each(Ge,(function(e,t){"mixpanel"!==t&&(we[t]=e)})),we._=H}};var Le=(Pe=0,we=new Re,Ue(),we.init(),function(){function e(){e.done||(e.done=!0,Ne=!0,Ae=!1,H.each(Ge,(function(e){e._dom_loaded()})))}if(k.addEventListener)"complete"===k.readyState?e():k.addEventListener("DOMContentLoaded",e,!1);else if(k.attachEvent){k.attachEvent("onreadystatechange",e);var t=!1;try{t=null===r.frameElement}catch(e){}k.documentElement.doScroll&&t&&function t(){try{k.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}H.register_event(r,"load",e,!0)}(),we);e.exports=Le},function(e,t){e.exports=require("net")},function(e,t,n){var r=n(85);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?r(e,void 0,t):[]}},function(e,t,n){var r=n(47),a=n(34),i=n(85),s=n(48),o=a((function(e){return i(r(e,1,s,!0))}));e.exports=o},function(e,t,n){var r=n(344),a=n(16);e.exports=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return a(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:i,maxWait:t,trailing:s})}},function(e,t){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,a=[];++t<n;){var i=e[t];i&&(a[r++]=i)}return a}},function(e,t,n){var r=n(77),a=n(173);e.exports=function(e,t){return e&&r(e,a(t))}},function(e,t,n){(function(e){var r; /*! * Platform.js <https://mths.be/platform> * Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/> * Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/> * Available under MIT license <https://mths.be/mit> */(function(){"use strict";var a={function:!0,object:!0},i=a[typeof window]&&window||this,s=a[typeof t]&&t,o=a[typeof e]&&e&&!e.nodeType&&e,l=s&&o&&"object"==typeof global&&global;!l||l.global!==l&&l.window!==l&&l.self!==l||(i=l);var c=Math.pow(2,53)-1,u=/\bOpera/,p=Object.prototype,d=p.hasOwnProperty,h=p.toString;function f(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function m(e){return e=_(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:f(e)}function S(e,t){for(var n in e)d.call(e,n)&&t(e[n],n,e)}function y(e){return null==e?f(e):h.call(e).slice(8,-1)}function g(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function v(e,t){var n=null;return function(e,t){var n=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=c)for(;++n<r;)t(e[n],n,e);else S(e,t)}(e,(function(r,a){n=t(n,r,a,e)})),n}function _(e){return String(e).replace(/^ +| +$/g,"")}var b=function e(t){var n=i,r=t&&"object"==typeof t&&"String"!=y(t);r&&(n=t,t=null);var a=n.navigator||{},s=a.userAgent||"";t||(t=s);var o,l,c,p,d,f=r?!!a.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(h.toString()),b=r?"Object":"ScriptBridgingProxyObject",P=r?"Object":"Environment",w=r&&n.java?"JavaPackage":y(n.java),E=r?"Object":"RuntimeObject",k=/\bJava/.test(w)&&n.java,T=k&&y(n.environment)==P,C=k?"a":"α",I=k?"b":"β",A=n.document||{},O=n.operamini||n.opera,x=u.test(x=r&&O?O["[[Class]]"]:y(O))?x:O=null,N=t,R=[],D=null,H=t==s,F=H&&O&&"function"==typeof O.version&&O.version(),G=v([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],(function(e,n){return e||RegExp("\\b"+(n.pattern||g(n))+"\\b","i").exec(t)&&(n.label||n)})),U=function(e){return v(e,(function(e,n){return e||RegExp("\\b"+(n.pattern||g(n))+"\\b","i").exec(t)&&(n.label||n)}))}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),L=B([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),j=function(e){return v(e,(function(e,n,r){return e||(n[L]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(L)]||RegExp("\\b"+g(r)+"(?:\\b|\\w*\\d)","i").exec(t))&&r}))}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),M=function(e){return v(e,(function(e,n){var r=n.pattern||g(n);return!e&&(e=RegExp("\\b"+r+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=function(e,t,n){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])&&(e="Windows "+r),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),e=m(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(e,r,n.label||n)),e}))}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function B(e){return v(e,(function(e,n){var r=n.pattern||g(n);return!e&&(e=RegExp("\\b"+r+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+r+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+r+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(n.label&&!RegExp(r,"i").test(n.label)?n.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),n=n.label||n,e=m(e[0].replace(RegExp(r,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),e}))}if(G&&(G=[G]),j&&!L&&(L=B([j])),(o=/\bGoogle TV\b/.exec(L))&&(L=o[0]),/\bSimulator\b/i.test(t)&&(L=(L?L+" ":"")+"Simulator"),"Opera Mini"==U&&/\bOPiOS\b/.test(t)&&R.push("running in Turbo/Uncompressed mode"),"IE"==U&&/\blike iPhone OS\b/.test(t)?(j=(o=e(t.replace(/like iPhone OS/,""))).manufacturer,L=o.product):/^iP/.test(L)?(U||(U="Safari"),M="iOS"+((o=/ OS ([\d_]+)/i.exec(t))?" "+o[1].replace(/_/g,"."):"")):"Konqueror"!=U||/buntu/i.test(M)?j&&"Google"!=j&&(/Chrome/.test(U)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(L))||/\bAndroid\b/.test(M)&&/^Chrome/.test(U)&&/\bVersion\//i.test(t)?(U="Android Browser",M=/\bAndroid\b/.test(M)?M:"Android"):"Silk"==U?(/\bMobi/i.test(t)||(M="Android",R.unshift("desktop mode")),/Accelerated *= *true/i.test(t)&&R.unshift("accelerated")):"PaleMoon"==U&&(o=/\bFirefox\/([\d.]+)\b/.exec(t))?R.push("identifying as Firefox "+o[1]):"Firefox"==U&&(o=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(M||(M="Firefox OS"),L||(L=o[1])):!U||(o=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(U))?(U&&!L&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(o+"/")+8))&&(U=null),(o=L||j||M)&&(L||j||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(M))&&(U=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(M)?M:o)+" Browser")):"Electron"==U&&(o=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&R.push("Chromium "+o):M="Kubuntu",F||(F=v(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",g(U),"(?:Firefox|Minefield|NetFront)"],(function(e,n){return e||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null}))),(o=("iCab"==G&&parseFloat(F)>3?"WebKit":/\bOpera\b/.test(U)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(G)&&"WebKit"||!G&&/\bMSIE\b/i.test(t)&&("Mac OS"==M?"Tasman":"Trident")||"WebKit"==G&&/\bPlayStation\b(?! Vita\b)/i.test(U)&&"NetFront")&&(G=[o]),"IE"==U&&(o=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(U+=" Mobile",M="Windows Phone "+(/\+$/.test(o)?o:o+".x"),R.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(U="IE Mobile",M="Windows Phone 8.x",R.unshift("desktop mode"),F||(F=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=U&&"Trident"==G&&(o=/\brv:([\d.]+)/.exec(t))&&(U&&R.push("identifying as "+U+(F?" "+F:"")),U="IE",F=o[1]),H){if(p="global",d=null!=(c=n)?typeof c[p]:"number",/^(?:boolean|number|string|undefined)$/.test(d)||"object"==d&&!c[p])y(o=n.runtime)==b?(U="Adobe AIR",M=o.flash.system.Capabilities.os):y(o=n.phantom)==E?(U="PhantomJS",F=(o=o.version||null)&&o.major+"."+o.minor+"."+o.patch):"number"==typeof A.documentMode&&(o=/\bTrident\/(\d+)/i.exec(t))?(F=[F,A.documentMode],(o=+o[1]+4)!=F[1]&&(R.push("IE "+F[1]+" mode"),G&&(G[1]=""),F[1]=o),F="IE"==U?String(F[1].toFixed(1)):F[0]):"number"==typeof A.documentMode&&/^(?:Chrome|Firefox)\b/.test(U)&&(R.push("masking as "+U+" "+F),U="IE",F="11.0",G=["Trident"],M="Windows");else if(k&&(N=(o=k.lang.System).getProperty("os.arch"),M=M||o.getProperty("os.name")+" "+o.getProperty("os.version")),T){try{F=n.require("ringo/engine").version.join("."),U="RingoJS"}catch(e){(o=n.system)&&o.global.system==n.system&&(U="Narwhal",M||(M=o[0].os||null))}U||(U="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(o=n.process)&&("object"==typeof o.versions&&("string"==typeof o.versions.electron?(R.push("Node "+o.versions.node),U="Electron",F=o.versions.electron):"string"==typeof o.versions.nw&&(R.push("Chromium "+F,"Node "+o.versions.node),U="NW.js",F=o.versions.nw)),U||(U="Node.js",N=o.arch,M=o.platform,F=(F=/[\d.]+/.exec(o.version))?F[0]:null));M=M&&m(M)}if(F&&(o=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(F)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(H&&a.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(D=/b/i.test(o)?"beta":"alpha",F=F.replace(RegExp(o+"\\+?$"),"")+("beta"==D?I:C)+(/\d+\+?/.exec(o)||"")),"Fennec"==U||"Firefox"==U&&/\b(?:Android|Firefox OS)\b/.test(M))U="Firefox Mobile";else if("Maxthon"==U&&F)F=F.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(L))"Xbox 360"==L&&(M=null),"Xbox 360"==L&&/\bIEMobile\b/.test(t)&&R.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(U)&&(!U||L||/Browser|Mobi/.test(U))||"Windows CE"!=M&&!/Mobi/i.test(t))if("IE"==U&&H)try{null===n.external&&R.unshift("platform preview")}catch(e){R.unshift("embedded")}else(/\bBlackBerry\b/.test(L)||/\bBB10\b/.test(t))&&(o=(RegExp(L.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||F)?(M=((o=[o,/BB10/.test(t)])[1]?(L=null,j="BlackBerry"):"Device Software")+" "+o[0],F=null):this!=S&&"Wii"!=L&&(H&&O||/Opera/.test(U)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==U&&/\bOS X (?:\d+\.){2,}/.test(M)||"IE"==U&&(M&&!/^Win/.test(M)&&F>5.5||/\bWindows XP\b/.test(M)&&F>8||8==F&&!/\bTrident\b/.test(t)))&&!u.test(o=e.call(S,t.replace(u,"")+";"))&&o.name&&(o="ing as "+o.name+((o=o.version)?" "+o:""),u.test(U)?(/\bIE\b/.test(o)&&"Mac OS"==M&&(M=null),o="identify"+o):(o="mask"+o,U=x?m(x.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(o)&&(M=null),H||(F=null)),G=["Presto"],R.push(o));else U+=" Mobile";(o=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(o=[parseFloat(o.replace(/\.(\d)$/,".0$1")),o],"Safari"==U&&"+"==o[1].slice(-1)?(U="WebKit Nightly",D="alpha",F=o[1].slice(0,-1)):F!=o[1]&&F!=(o[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(F=null),o[1]=(/\bChrome\/([\d.]+)/i.exec(t)||0)[1],537.36==o[0]&&537.36==o[2]&&parseFloat(o[1])>=28&&"WebKit"==G&&(G=["Blink"]),H&&(f||o[1])?(G&&(G[1]="like Chrome"),o=o[1]||((o=o[0])<530?1:o<532?2:o<532.05?3:o<533?4:o<534.03?5:o<534.07?6:o<534.1?7:o<534.13?8:o<534.16?9:o<534.24?10:o<534.3?11:o<535.01?12:o<535.02?"13+":o<535.07?15:o<535.11?16:o<535.19?17:o<536.05?18:o<536.1?19:o<537.01?20:o<537.11?"21+":o<537.13?23:o<537.18?24:o<537.24?25:o<537.36?26:"Blink"!=G?"27":"28")):(G&&(G[1]="like Safari"),o=(o=o[0])<400?1:o<500?2:o<526?3:o<533?4:o<534?"4+":o<535?5:o<537?6:o<538?7:o<601?8:"8"),G&&(G[1]+=" "+(o+="number"==typeof o?".x":/[.+]/.test(o)?"":"+")),"Safari"==U&&(!F||parseInt(F)>45)&&(F=o)),"Opera"==U&&(o=/\bzbov|zvav$/.exec(M))?(U+=" ",R.unshift("desktop mode"),"zvav"==o?(U+="Mini",F=null):U+="Mobile",M=M.replace(RegExp(" *"+o+"$"),"")):"Safari"==U&&/\bChrome\b/.exec(G&&G[1])&&(R.unshift("desktop mode"),U="Chrome Mobile",F=null,/\bOS X\b/.test(M)?(j="Apple",M="iOS 4.3+"):M=null),F&&0==F.indexOf(o=/[\d.]+$/.exec(M))&&t.indexOf("/"+o+"-")>-1&&(M=_(M.replace(o,""))),G&&!/\b(?:Avant|Nook)\b/.test(U)&&(/Browser|Lunascape|Maxthon/.test(U)||"Safari"!=U&&/^iOS/.test(M)&&/\bSafari\b/.test(G[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(U)&&G[1])&&(o=G[G.length-1])&&R.push(o),R.length&&(R=["("+R.join("; ")+")"]),j&&L&&L.indexOf(j)<0&&R.push("on "+j),L&&R.push((/^on /.test(R[R.length-1])?"":"on ")+L),M&&(o=/ ([\d.+]+)$/.exec(M),l=o&&"/"==M.charAt(M.length-o[0].length-1),M={architecture:32,family:o&&!l?M.replace(o[0],""):M,version:o?o[1]:null,toString:function(){var e=this.version;return this.family+(e&&!l?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(o=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(N))&&!/\bi686\b/i.test(N)?(M&&(M.architecture=64,M.family=M.family.replace(RegExp(" *"+o),"")),U&&(/\bWOW64\b/i.test(t)||H&&/\w(?:86|32)$/.test(a.cpuClass||a.platform)&&!/\bWin64; x64\b/i.test(t))&&R.unshift("32-bit")):M&&/^OS X/.test(M.family)&&"Chrome"==U&&parseFloat(F)>=39&&(M.architecture=64),t||(t=null);var K={};return K.description=t,K.layout=G&&G[0],K.manufacturer=j,K.name=U,K.prerelease=D,K.product=L,K.ua=t,K.version=U&&F,K.os=M||{architecture:null,family:null,version:null,toString:function(){return"null"}},K.parse=e,K.toString=function(){return this.description||""},K.version&&R.unshift(F),K.name&&R.unshift(U),M&&U&&(M!=String(M).split(" ")[0]||M!=U.split(" ")[0]&&!L)&&R.push(L?"("+M+")":"on "+M),R.length&&(K.description=R.join(" ")),K}();i.platform=b,void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}).call(this)}).call(this,n(78)(e))},function(e,t){e.exports=function(e){return null===e}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){var r=n(44),a=n(12),i=n(177),s=n(9);e.exports=function(e,t){return(s(e)?r:i)(e,a(t,3))}},function(e,t,n){var r=n(178),a=n(17);e.exports=function(e){return e&&e.length?r(e,a):0}},function(e,t,n){var r=n(179),a=n(9);e.exports=function(e,t,n,i){return null==e?[]:(a(t)||(t=null==t?[]:[t]),a(n=i?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},function(e,t,n){var r=n(12),a=n(357);e.exports=function(e,t){return e&&e.length?a(e,r(t,2)):[]}},function(e,t,n){var r=n(87),a=n(47),i=n(34),s=n(48),o=n(23),l=i((function(e,t){var n=o(t);return s(n)&&(n=void 0),s(e)?r(e,a(t,1,s,!0),void 0,n):[]}));e.exports=l},function(e,t,n){var r=n(47),a=n(179),i=n(34),s=n(117),o=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&s(e,t[0],t[1])?t=[]:n>2&&s(t[0],t[1],t[2])&&(t=[t[0]]),a(e,r(t,1),[])}));e.exports=o},function(e,t,n){var r=n(113);e.exports=function(e){return r(e,4)}},function(e,t,n){var r=n(143),a=n(59),i=n(54),s=n(9),o=n(25),l=n(55),c=n(58),u=n(79),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(o(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=a(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},function(e,t,n){var r=n(362)((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));e.exports=r},function(e,t,n){var r=n(46),a=n(77),i=n(12);e.exports=function(e,t){var n={};return t=i(t,3),a(e,(function(e,a,i){r(n,t(e,a,i),e)})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=t.io=t.Manager=t.protocol=void 0;const r=n(371),a=n(182),i=n(189);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});const s=n(88)("socket.io-client");e.exports=t=l;const o=t.managers={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const n=r.url(e,t.path),i=n.source,l=n.id,c=n.path,u=o[l]&&c in o[l].nsps;let p;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(s("ignoring socket cache for %s",i),p=new a.Manager(i,t)):(o[l]||(s("new io instance for %s",i),o[l]=new a.Manager(i,t)),p=o[l]),n.query&&!t.query&&(t.query=n.queryKey),p.socket(n.path,t)}t.io=l;var c=n(121);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return c.protocol}}),t.connect=l;var u=n(182);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return u.Manager}}),t.default=l},function(e,t,n){var r;r=function(){return function(){"use strict";var e={382:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Centrifuge=void 0;var r=o(n(187)),a=o(n(471)),i=n(147),s=n(853);function o(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="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 c(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)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var a=h(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(h,e);var t,r,o,d=p(h);function h(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(n=d.call(this))._url=e,n._websocket=null,n._sockjs=null,n._isSockjs=!1,n._binary=!1,n._methodType=null,n._pushType=null,n._encoder=null,n._decoder=null,n._status="disconnected",n._reconnect=!0,n._reconnecting=!1,n._transport=null,n._transportName=null,n._transportClosed=!0,n._messageId=0,n._clientID=null,n._refreshRequired=!1,n._subs={},n._serverSubs={},n._lastSeq={},n._lastGen={},n._lastOffset={},n._lastEpoch={},n._messages=[],n._isBatching=!1,n._isSubscribeBatching=!1,n._privateChannels={},n._numRefreshFailed=0,n._refreshTimeout=null,n._pingTimeout=null,n._pongTimeout=null,n._subRefreshTimeouts={},n._retries=0,n._callbacks={},n._latency=null,n._latencyStart=null,n._connectData=null,n._token=null,n._xhrID=0,n._xhrs={},n._dispatchPromise=Promise.resolve(),n._config={debug:!1,name:"",version:"",websocket:null,sockjs:null,minRetry:1e3,maxRetry:2e4,timeout:5e3,ping:!0,pingInterval:25e3,pongWaitTimeout:5e3,privateChannelPrefix:"$",onTransportClose:null,sockjsServer:null,sockjsTransports:["websocket","xdr-streaming","xhr-streaming","eventsource","iframe-eventsource","iframe-htmlfile","xdr-polling","xhr-polling","iframe-xhr-polling","jsonp-polling"],refreshEndpoint:"/centrifuge/refresh",refreshHeaders:{},refreshParams:{},refreshData:{},refreshAttempts:null,refreshInterval:1e3,onRefreshFailed:null,onRefresh:null,subscribeEndpoint:"/centrifuge/subscribe",subscribeHeaders:{},subscribeParams:{},subRefreshInterval:1e3,onPrivateSubscribe:null},n._configure(t),n}return t=h,(r=[{key:"setToken",value:function(e){this._token=e}},{key:"setConnectData",value:function(e){this._connectData=e}},{key:"setRefreshHeaders",value:function(e){this._config.refreshHeaders=e}},{key:"setRefreshParams",value:function(e){this._config.refreshParams=e}},{key:"setRefreshData",value:function(e){this._config.refreshData=e}},{key:"setSubscribeHeaders",value:function(e){this._config.subscribeHeaders=e}},{key:"setSubscribeParams",value:function(e){this._config.subscribeParams=e}},{key:"_ajax",value:function(e,t,r,a,i){var s=this,o="";this._debug("sending AJAX request to",e,"with data",JSON.stringify(a));var l=n.g.XMLHttpRequest?new n.g.XMLHttpRequest:new n.g.ActiveXObject("Microsoft.XMLHTTP");for(var c in t)t.hasOwnProperty(c)&&(o.length>0&&(o+="&"),o+=encodeURIComponent(c)+"="+encodeURIComponent(t[c]));for(var u in o.length>0&&(o="?"+o),l.open("POST",e+o,!0),"withCredentials"in l&&(l.withCredentials=!0),l.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.setRequestHeader("Content-Type","application/json"),r)r.hasOwnProperty(u)&&l.setRequestHeader(u,r[u]);return l.onreadystatechange=function(){if(4===l.readyState)if(200===l.status){var e,t=!1;try{e=JSON.parse(l.responseText),t=!0}catch(e){i({error:"Invalid JSON. Data was: "+l.responseText,status:200,data:null})}t&&i({data:e,status:200})}else s._log("wrong status code in AJAX response",l.status),i({status:l.status,data:null})},setTimeout((function(){return l.send(JSON.stringify(a))}),20),l}},{key:"_log",value:function(){(0,s.log)("info",arguments)}},{key:"_debug",value:function(){!0===this._config.debug&&(0,s.log)("debug",arguments)}},{key:"_websocketSupported",value:function(){return null!==this._config.websocket||!("function"!=typeof WebSocket&&"object"!==("undefined"==typeof WebSocket?"undefined":l(WebSocket)))}},{key:"_setFormat",value:function(e){if(!this._formatOverride(e)){if("protobuf"===e)throw new Error("not implemented by JSON only Centrifuge client – use client with Protobuf");this._binary=!1,this._methodType=i.JsonMethodType,this._pushType=i.JsonPushType,this._encoder=new i.JsonEncoder,this._decoder=new i.JsonDecoder}}},{key:"_formatOverride",value:function(e){return!1}},{key:"_configure",value:function(e){if(!("Promise"in n.g))throw new Error("Promise polyfill required");if((0,s.extend)(this._config,e||{}),this._debug("centrifuge config",this._config),!this._url)throw new Error("url required");if((0,s.startsWith)(this._url,"ws")&&this._url.indexOf("format=protobuf")>-1?this._setFormat("protobuf"):this._setFormat("json"),(0,s.startsWith)(this._url,"http"))if(this._debug("client will try to connect to SockJS endpoint"),null!==this._config.sockjs)this._debug("SockJS explicitly provided in options"),this._sockjs=this._config.sockjs;else{if(void 0===n.g.SockJS)throw new Error("SockJS not found, use ws:// in url or include SockJS");this._debug("use globally defined SockJS"),this._sockjs=n.g.SockJS}else this._debug("client will connect to websocket endpoint")}},{key:"_setStatus",value:function(e){this._status!==e&&(this._debug("Status",this._status,"->",e),this._status=e)}},{key:"_isDisconnected",value:function(){return"disconnected"===this._status}},{key:"_isConnecting",value:function(){return"connecting"===this._status}},{key:"_isConnected",value:function(){return"connected"===this._status}},{key:"_nextMessageId",value:function(){return++this._messageId}},{key:"_resetRetry",value:function(){this._debug("reset retries count to 0"),this._retries=0}},{key:"_getRetryInterval",value:function(){var e=(0,s.backoff)(this._retries,this._config.minRetry,this._config.maxRetry);return this._retries+=1,e}},{key:"_abortInflightXHRs",value:function(){for(var e in this._xhrs){try{this._xhrs[e].abort()}catch(e){this._debug("error aborting xhr",e)}delete this._xhrs[e]}}},{key:"_clearConnectedState",value:function(e){for(var t in this._clientID=null,this._stopPing(),this._callbacks)if(this._callbacks.hasOwnProperty(t)){var n=this._callbacks[t];clearTimeout(n.timeout);var r=n.errback;if(!r)continue;r({error:this._createErrorObject("disconnected")})}for(var a in this._callbacks={},this._subs)if(this._subs.hasOwnProperty(a)){var i=this._subs[a];e?(i._isSuccess()&&(i._triggerUnsubscribe(),i._recover=!0),i._shouldResubscribe()&&i._setSubscribing()):i._setUnsubscribed()}for(var s in this._abortInflightXHRs(),null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),this._subRefreshTimeouts)this._subRefreshTimeouts.hasOwnProperty(s)&&this._subRefreshTimeouts[s]&&this._clearSubRefreshTimeout(s);this._subRefreshTimeouts={},this._reconnect||(this._subs={})}},{key:"_isTransportOpen",value:function(){return this._isSockjs?this._transport&&this._transport.transport&&this._transport.transport.readyState===this._transport.transport.OPEN:this._transport&&this._transport.readyState===this._transport.OPEN}},{key:"_transportSend",value:function(e){if(!e.length)return!0;if(!this._isTransportOpen()){for(var t in e){var n=t.id;if(n in this._callbacks){var r=this._callbacks[n];clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n],(0,r.errback)({error:this._createErrorObject("connection closed",0)})}}return!1}return this._transport.send(this._encoder.encodeCommands(e)),!0}},{key:"_setupTransport",value:function(){var e=this;if(this._isSockjs=!1,null!==this._sockjs){var t={transports:this._config.sockjsTransports};null!==this._config.sockjsServer&&(t.server=this._config.sockjsServer),this._isSockjs=!0,this._transport=new this._sockjs(this._url,null,t)}else{if(!this._websocketSupported())return void this._debug("No Websocket support and no SockJS configured, can not connect");null!==this._config.websocket?this._websocket=this._config.websocket:this._websocket=WebSocket,this._transport=new this._websocket(this._url),!0===this._binary&&(this._transport.binaryType="arraybuffer")}this._transport.onopen=function(){e._transportClosed=!1,e._isSockjs?(e._transportName="sockjs-"+e._transport.transport,e._transport.onheartbeat=function(){return e._restartPing()}):e._transportName="websocket";var t={};(e._token||e._connectData||e._config.name||e._config.version)&&(t.params={}),e._token&&(t.params.token=e._token),e._connectData&&(t.params.data=e._connectData),e._config.name&&(t.params.name=e._config.name),e._config.version&&(t.params.version=e._config.version);var n={},r=!1;for(var a in e._serverSubs)if(e._serverSubs.hasOwnProperty(a)&&e._serverSubs[a].recoverable){r=!0;var i={recover:!0};e._serverSubs[a].seq||e._serverSubs[a].gen?(e._serverSubs[a].seq&&(i.seq=e._serverSubs[a].seq),e._serverSubs[a].gen&&(i.gen=e._serverSubs[a].gen)):e._serverSubs[a].offset&&(i.offset=e._serverSubs[a].offset),e._serverSubs[a].epoch&&(i.epoch=e._serverSubs[a].epoch),n[a]=i}r&&(t.params||(t.params={}),t.params.subs=n),e._latencyStart=new Date,e._call(t).then((function(t){e._connectResponse(e._decoder.decodeCommandResult(e._methodType.CONNECT,t.result),r),t.next&&t.next()}),(function(t){109===t.error.code&&(e._refreshRequired=!0),e._disconnect("connect error",!0),t.next&&t.next()}))},this._transport.onerror=function(t){e._debug("transport level error",t)},this._transport.onclose=function(t){e._transportClosed=!0;var n="connection closed",r=!0;if(t&&"reason"in t&&t.reason)try{var a=JSON.parse(t.reason);e._debug("reason is an advice object",a),n=a.reason,r=a.reconnect}catch(r){n=t.reason,e._debug("reason is a plain string",n)}if(null!==e._config.onTransportClose&&e._config.onTransportClose({event:t,reason:n,reconnect:r}),e._disconnect(n,r),!0===e._reconnect){e._reconnecting=!0;var i=e._getRetryInterval();e._debug("reconnect after "+i+" milliseconds"),setTimeout((function(){!0===e._reconnect&&(e._refreshRequired?e._refresh():e._connect())}),i)}},this._transport.onmessage=function(t){e._dataReceived(t.data)}}},{key:"rpc",value:function(e){return this._rpc("",e)}},{key:"namedRPC",value:function(e,t){return this._rpc(e,t)}},{key:"_rpc",value:function(e,t){var n={data:t};""!==e&&(n.method=e);var r={method:this._methodType.RPC,params:n};return this._methodCall(r,(function(e){return e}))}},{key:"send",value:function(e){var t={method:this._methodType.SEND,params:{data:e}};return this.isConnected()&&this._transportSend([t])?Promise.resolve({}):Promise.reject(this._createErrorObject("connection closed",0))}},{key:"_getHistoryParams",value:function(e,t){var n={channel:e};return void 0!==t&&(t.since&&(n.use_since=!0,t.since.offset&&(n.offset=t.since.offset),t.since.epoch&&(n.epoch=t.since.epoch)),void 0!==t.limit&&(n.use_limit=!0,n.limit=t.limit)),n}},{key:"_methodCall",value:function(e,t){var n=this;return this.isConnected()?new Promise((function(r,a){n._call(e).then((function(a){r(t(n._decoder.decodeCommandResult(e.method,a.result))),a.next&&a.next()}),(function(e){a(e.error),e.next&&e.next()}))})):Promise.reject(this._createErrorObject("connection closed",0))}},{key:"publish",value:function(e,t){var n={method:this._methodType.PUBLISH,params:{channel:e,data:t}};return this._methodCall(n,(function(){return{}}))}},{key:"history",value:function(e,t){var n=this._getHistoryParams(e,t),r={method:this._methodType.HISTORY,params:n};return this._methodCall(r,(function(e){return{publications:e.publications,epoch:e.epoch||"",offset:e.offset||0}}))}},{key:"presence",value:function(e){var t={method:this._methodType.PRESENCE,params:{channel:e}};return this._methodCall(t,(function(e){return{presence:e.presence}}))}},{key:"presenceStats",value:function(e){var t={method:this._methodType.PRESENCE_STATS,params:{channel:e}};return this._methodCall(t,(function(e){return{num_users:e.num_users,num_clients:e.num_clients}}))}},{key:"_dataReceived",value:function(e){var t=this,n=this._decoder.decodeReplies(e);this._dispatchPromise=this._dispatchPromise.then((function(){var e;t._dispatchPromise=new Promise((function(t){e=t})),t._dispatchSynchronized(n,e)})),this._restartPing()}},{key:"_dispatchSynchronized",value:function(e,t){var n=this,r=Promise.resolve(),a=function(t){e.hasOwnProperty(t)&&(r=r.then((function(){return n._dispatchReply(e[t])})))};for(var i in e)a(i);r=r.then((function(){t()}))}},{key:"_dispatchReply",value:function(e){var t,n=new Promise((function(e){t=e}));if(null==e)return this._debug("dispatch: got undefined or null reply"),t(),n;var r=e.id;return r&&r>0?this._handleReply(e,t):this._handlePush(e.result,t),n}},{key:"_call",value:function(e){var t=this;return new Promise((function(n,r){var a=t._addMessage(e);t._registerCall(a,n,r)}))}},{key:"_connect",value:function(){this.isConnected()?this._debug("connect called when already connected"):"connecting"!==this._status&&(this._debug("start connecting"),this._setStatus("connecting"),this._clientID=null,this._reconnect=!0,this._setupTransport())}},{key:"_disconnect",value:function(e,t){var n=t||!1;if(!1===n&&(this._reconnect=!1),this._isDisconnected())n||this._clearConnectedState(n);else{if(this._clearConnectedState(n),this._debug("disconnected:",e,t),this._setStatus("disconnected"),this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),!1===this._reconnecting){for(var r in this._serverSubs)this._serverSubs.hasOwnProperty(r)&&this.emit("unsubscribe",{channel:r});this.emit("disconnect",{reason:e,reconnect:n})}!1===n&&(this._subs={},this._serverSubs={}),this._transportClosed||this._transport.close()}}},{key:"_refreshFailed",value:function(){this._numRefreshFailed=0,this._isDisconnected()||this._disconnect("refresh failed",!1),null!==this._config.onRefreshFailed&&this._config.onRefreshFailed()}},{key:"_refresh",value:function(){var e=this;if(this._debug("refresh token"),0===this._config.refreshAttempts)return this._debug("refresh attempts set to 0, do not send refresh request at all"),void this._refreshFailed();null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null);var t=this._clientID,n=this._newXHRID(),r=function(r){if(n in e._xhrs&&delete e._xhrs[n],e._clientID===t)if(r.error||200!==r.status){if(r.error?e._debug("error refreshing connection token",r.error):e._debug("error refreshing connection token: wrong status code",r.status),e._numRefreshFailed++,null!==e._refreshTimeout&&(clearTimeout(e._refreshTimeout),e._refreshTimeout=null),null!==e._config.refreshAttempts&&e._numRefreshFailed>=e._config.refreshAttempts)return void e._refreshFailed();var a=Math.round(1e3*Math.random()*Math.max(e._numRefreshFailed,20)),i=e._config.refreshInterval+a;e._refreshTimeout=setTimeout((function(){return e._refresh()}),i)}else if(e._numRefreshFailed=0,e._token=r.data.token,e._token)if(e._isDisconnected()&&e._reconnect)e._debug("token refreshed, connect from scratch"),e._connect();else{e._debug("send refreshed token");var s={method:e._methodType.REFRESH,params:{token:e._token}};e._call(s).then((function(t){e._refreshResponse(e._decoder.decodeCommandResult(e._methodType.REFRESH,t.result)),t.next&&t.next()}),(function(t){e._refreshError(t.error),t.next&&t.next()}))}else e._refreshFailed()};if(null!==this._config.onRefresh)this._config.onRefresh({},r);else{var a=this._ajax(this._config.refreshEndpoint,this._config.refreshParams,this._config.refreshHeaders,this._config.refreshData,r);this._xhrs[n]=a}}},{key:"_refreshError",value:function(e){var t=this;this._debug("refresh error",e),this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null);var n=this._config.refreshInterval+Math.round(1e3*Math.random());this._refreshTimeout=setTimeout((function(){return t._refresh()}),n)}},{key:"_refreshResponse",value:function(e){var t=this;this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),e.expires&&(this._clientID=e.client,this._refreshTimeout=setTimeout((function(){return t._refresh()}),this._getTTLMilliseconds(e.ttl)))}},{key:"_newXHRID",value:function(){return this._xhrID++,this._xhrID}},{key:"_subRefresh",value:function(e){var t=this;if(this._debug("refresh subscription token for channel",e),void 0!==this._subRefreshTimeouts[e]){this._clearSubRefreshTimeout(e);var n=this._clientID,r=this._newXHRID(),a=function(a){if(r in t._xhrs&&delete t._xhrs[r],!a.error&&200===a.status&&t._clientID===n){var i={};if(a.data.channels)for(var s in a.data.channels){var o=a.data.channels[s];o.channel&&(i[o.channel]=o.token)}var l=i[e];if(l){var c={method:t._methodType.SUB_REFRESH,params:{channel:e,token:l}};null!==t._getSub(e)&&t._call(c).then((function(n){t._subRefreshResponse(e,t._decoder.decodeCommandResult(t._methodType.SUB_REFRESH,n.result)),n.next&&n.next()}),(function(n){t._subRefreshError(e,n.error),n.next&&n.next()}))}}},i={client:this._clientID,channels:[e]};if(null!==this._config.onPrivateSubscribe)this._config.onPrivateSubscribe({data:i},a);else{var s=this._ajax(this._config.subscribeEndpoint,this._config.subscribeParams,this._config.subscribeHeaders,i,a);this._xhrs[r]=s}}}},{key:"_clearSubRefreshTimeout",value:function(e){void 0!==this._subRefreshTimeouts[e]&&(clearTimeout(this._subRefreshTimeouts[e]),delete this._subRefreshTimeouts[e])}},{key:"_subRefreshError",value:function(e,t){var n=this;if(this._debug("subscription refresh error",e,t),this._clearSubRefreshTimeout(e),null!==this._getSub(e)){var r=Math.round(1e3*Math.random()),a=setTimeout((function(){return n._subRefresh(e)}),this._config.subRefreshInterval+r);this._subRefreshTimeouts[e]=a}}},{key:"_subRefreshResponse",value:function(e,t){var n=this;if(this._debug("subscription refresh success",e),this._clearSubRefreshTimeout(e),null!==this._getSub(e)&&!0===t.expires){var r=setTimeout((function(){return n._subRefresh(e)}),this._getTTLMilliseconds(t.ttl));this._subRefreshTimeouts[e]=r}}},{key:"_subscribe",value:function(e,t){var n=this;this._debug("subscribing on",e.channel);var r=e.channel;if(r in this._subs||(this._subs[r]=e),this.isConnected()){e._setSubscribing(t);var a={method:this._methodType.SUBSCRIBE,params:{channel:r}};if((0,s.startsWith)(r,this._config.privateChannelPrefix))this._isSubscribeBatching?this._privateChannels[r]=!0:(this.startSubscribeBatching(),this._subscribe(e),this.stopSubscribeBatching());else{var i=e._needRecover();if(!0===i){a.params.recover=!0;var o=this._getLastSeq(r),l=this._getLastGen(r);if(o||l)o&&(a.params.seq=o),l&&(a.params.gen=l);else{var c=this._getLastOffset(r);c&&(a.params.offset=c)}var u=this._getLastEpoch(r);u&&(a.params.epoch=u)}this._call(a).then((function(e){n._subscribeResponse(r,i,n._decoder.decodeCommandResult(n._methodType.SUBSCRIBE,e.result)),e.next&&e.next()}),(function(e){n._subscribeError(r,e.error),e.next&&e.next()}))}}else e._setNew()}},{key:"_unsubscribe",value:function(e){delete this._subs[e.channel],delete this._lastOffset[e.channel],delete this._lastSeq[e.channel],delete this._lastGen[e.channel],this.isConnected()&&this._addMessage({method:this._methodType.UNSUBSCRIBE,params:{channel:e.channel}})}},{key:"_getTTLMilliseconds",value:function(e){return Math.min(1e3*e,2147483647)}},{key:"getSub",value:function(e){return this._getSub(e)}},{key:"_getSub",value:function(e){var t=this._subs[e];return t||null}},{key:"_isServerSub",value:function(e){return void 0!==this._serverSubs[e]}},{key:"_connectResponse",value:function(e,t){var n=this,r=this._reconnecting;if(this._reconnecting=!1,this._resetRetry(),this._refreshRequired=!1,!this.isConnected()){for(var a in null!==this._latencyStart&&(this._latency=(new Date).getTime()-this._latencyStart.getTime(),this._latencyStart=null),this._clientID=e.client,this._setStatus("connected"),this._refreshTimeout&&clearTimeout(this._refreshTimeout),e.expires&&(this._refreshTimeout=setTimeout((function(){return n._refresh()}),this._getTTLMilliseconds(e.ttl))),this.startBatching(),this.startSubscribeBatching(),this._subs)if(this._subs.hasOwnProperty(a)){var i=this._subs[a];i._shouldResubscribe()&&this._subscribe(i,r)}this.stopSubscribeBatching(),this.stopBatching(),this._startPing();var s={client:e.client,transport:this._transportName,latency:this._latency};e.data&&(s.data=e.data),this.emit("connect",s),e.subs&&this._processServerSubs(e.subs)}}},{key:"_processServerSubs",value:function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t],r={channel:t,isResubscribe:void 0!==this._serverSubs[t]};r=this._expandSubscribeContext(r,n),this.emit("subscribe",r)}for(var a in e)if(e.hasOwnProperty(a)){var i=e[a];if(i.recovered){var s=i.publications;if(s&&s.length>0)for(var o in s.length>1&&(!s[0].offset||s[0].offset>s[1].offset)&&(s=s.reverse()),s)s.hasOwnProperty(o)&&this._handlePublication(a,s[o])}this._serverSubs[a]={seq:i.seq,gen:i.gen,offset:i.offset,epoch:i.epoch,recoverable:i.recoverable}}}},{key:"_stopPing",value:function(){null!==this._pongTimeout&&(clearTimeout(this._pongTimeout),this._pongTimeout=null),null!==this._pingTimeout&&(clearTimeout(this._pingTimeout),this._pingTimeout=null)}},{key:"_startPing",value:function(){var e=this;!0!==this._config.ping||this._config.pingInterval<=0||this.isConnected()&&(this._pingTimeout=setTimeout((function(){e.isConnected()?(e.ping(),e._pongTimeout=setTimeout((function(){e._disconnect("no ping",!0)}),e._config.pongWaitTimeout)):e._stopPing()}),this._config.pingInterval))}},{key:"_restartPing",value:function(){this._stopPing(),this._startPing()}},{key:"_subscribeError",value:function(e,t){var n=this._getSub(e);n&&n._isSubscribing()&&(0!==t.code||"timeout"!==t.message?n._setSubscribeError(t):this._disconnect("timeout",!0))}},{key:"_expandSubscribeContext",value:function(e,t){var n=!1;"recovered"in t&&(n=t.recovered),e.recovered=n;var r=!1;"positioned"in t&&(r=t.positioned);var a="";"epoch"in t&&(a=t.epoch);var i=0;return"offset"in t&&(i=t.offset),r&&(e.streamPosition={offset:i,epoch:a}),t.data&&(e.data=t.data),e}},{key:"_subscribeResponse",value:function(e,t,n){var r=this,a=this._getSub(e);if(a&&a._isSubscribing()){a._setSubscribeSuccess(n);var i=n.publications;if(i&&i.length>0)for(var s in i.length>=2&&!i[0].offset&&!i[1].offset&&(i=i.reverse()),i)i.hasOwnProperty(s)&&this._handlePublication(e,i[s]);if(!n.recoverable||t&&n.recovered||(this._lastSeq[e]=n.seq||0,this._lastGen[e]=n.gen||0,this._lastOffset[e]=n.offset||0),this._lastEpoch[e]=n.epoch||"",n.recoverable&&(a._recoverable=!0),!0===n.expires){var o=setTimeout((function(){return r._subRefresh(e)}),this._getTTLMilliseconds(n.ttl));this._subRefreshTimeouts[e]=o}}}},{key:"_handleReply",value:function(e,t){var n=e.id,r=e.result;if(n in this._callbacks){var a=this._callbacks[n];if(clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n],(0,s.errorExists)(e)){var i=a.errback;if(!i)return void t();i({error:e.error,next:t})}else{var o=a.callback;if(!o)return;o({result:r,next:t})}}else t()}},{key:"_handleJoin",value:function(e,t){var n={info:t.info},r=this._getSub(e);r?r.emit("join",n):this._isServerSub(e)&&(n.channel=e,this.emit("join",n))}},{key:"_handleLeave",value:function(e,t){var n={info:t.info},r=this._getSub(e);r?r.emit("leave",n):this._isServerSub(e)&&(n.channel=e,this.emit("leave",n))}},{key:"_handleUnsub",value:function(e,t){var n={},r=this._getSub(e);r?(r.unsubscribe(),!0===t.resubscribe&&r.subscribe()):this._isServerSub(e)&&(delete this._serverSubs[e],n.channel=e,this.emit("unsubscribe",n))}},{key:"_handleSub",value:function(e,t){this._serverSubs[e]={seq:t.seq,gen:t.gen,offset:t.offset,epoch:t.epoch,recoverable:t.recoverable};var n={channel:e,isResubscribe:!1};n=this._expandSubscribeContext(n,t),this.emit("subscribe",n)}},{key:"_handlePublication",value:function(e,t){var n=this._getSub(e),r={data:t.data,seq:t.seq,gen:t.gen,offset:t.offset};t.info&&(r.info=t.info),n?(void 0!==t.seq&&(this._lastSeq[e]=t.seq),void 0!==t.gen&&(this._lastGen[e]=t.gen),void 0!==t.offset&&(this._lastOffset[e]=t.offset),n.emit("publish",r)):this._isServerSub(e)&&(void 0!==t.seq&&(this._serverSubs[e].seq=t.seq),void 0!==t.gen&&(this._serverSubs[e].gen=t.gen),void 0!==t.offset&&(this._serverSubs[e].offset=t.offset),r.channel=e,this.emit("publish",r))}},{key:"_handleMessage",value:function(e){this.emit("message",e.data)}},{key:"_handlePush",value:function(e,t){var n=this._decoder.decodePush(e),r=0;"type"in n&&(r=n.type);var a=n.channel;if(r===this._pushType.PUBLICATION){var i=this._decoder.decodePushData(this._pushType.PUBLICATION,n.data);this._handlePublication(a,i)}else if(r===this._pushType.MESSAGE){var s=this._decoder.decodePushData(this._pushType.MESSAGE,n.data);this._handleMessage(s)}else if(r===this._pushType.JOIN){var o=this._decoder.decodePushData(this._pushType.JOIN,n.data);this._handleJoin(a,o)}else if(r===this._pushType.LEAVE){var l=this._decoder.decodePushData(this._pushType.LEAVE,n.data);this._handleLeave(a,l)}else if(r===this._pushType.UNSUB){var c=this._decoder.decodePushData(this._pushType.UNSUB,n.data);this._handleUnsub(a,c)}else if(r===this._pushType.SUB){var u=this._decoder.decodePushData(this._pushType.SUB,n.data);this._handleSub(a,u)}t()}},{key:"_flush",value:function(){var e=this._messages.slice(0);this._messages=[],this._transportSend(e)}},{key:"_ping",value:function(){var e=this,t={method:this._methodType.PING};this._call(t).then((function(t){e._pingResponse(e._decoder.decodeCommandResult(e._methodType.PING,t.result)),t.next&&t.next()}),(function(t){e._debug("ping error",t.error),t.next&&t.next()}))}},{key:"_pingResponse",value:function(e){this.isConnected()&&(this._stopPing(),this._startPing())}},{key:"_getLastSeq",value:function(e){var t=this._lastSeq[e];return t||0}},{key:"_getLastOffset",value:function(e){var t=this._lastOffset[e];return t||0}},{key:"_getLastGen",value:function(e){var t=this._lastGen[e];return t||0}},{key:"_getLastEpoch",value:function(e){var t=this._lastEpoch[e];return t||""}},{key:"_createErrorObject",value:function(e,t){return{message:e,code:t||0}}},{key:"_registerCall",value:function(e,t,n){var r=this;this._callbacks[e]={callback:t,errback:n,timeout:null},this._callbacks[e].timeout=setTimeout((function(){delete r._callbacks[e],(0,s.isFunction)(n)&&n({error:r._createErrorObject("timeout")})}),this._config.timeout)}},{key:"_addMessage",value:function(e){var t=this._nextMessageId();return e.id=t,!0===this._isBatching?this._messages.push(e):this._transportSend([e]),t}},{key:"isConnected",value:function(){return this._isConnected()}},{key:"connect",value:function(){this._connect()}},{key:"disconnect",value:function(){this._disconnect("client",!1)}},{key:"ping",value:function(){return this._ping()}},{key:"startBatching",value:function(){this._isBatching=!0}},{key:"stopBatching",value:function(){this._isBatching=!1,this._flush()}},{key:"startSubscribeBatching",value:function(){this._isSubscribeBatching=!0}},{key:"stopSubscribeBatching",value:function(){var e=this;this._isSubscribeBatching=!1;var t=this._privateChannels;this._privateChannels={};var n=[];for(var r in t)if(t.hasOwnProperty(r)){if(!this._getSub(r))continue;n.push(r)}if(0!==n.length){var a={client:this._clientID,channels:n},i=this._clientID,s=this._newXHRID(),o=function(t){if(s in e._xhrs&&delete e._xhrs[s],e._clientID===i)if(t.error||200!==t.status){for(var r in e._debug("authorization request failed"),n)if(n.hasOwnProperty(r)){var a=n[r];e._subscribeError(a,e._createErrorObject("authorization request failed"))}}else{var o={};if(t.data.channels)for(var l in t.data.channels){var c=t.data.channels[l];c.channel&&(o[c.channel]=c.token)}var u=!1;for(var p in e._isBatching||(e.startBatching(),u=!0),n)!n.hasOwnProperty(p)||function(){var t=n[p],r=o[t];if(!r)return e._subscribeError(t,e._createErrorObject("permission denied",103)),"continue";var a={method:e._methodType.SUBSCRIBE,params:{channel:t,token:r}},i=e._getSub(t);if(null===i)return"continue";var s=i._needRecover();if(!0===s){a.params.recover=!0;var l=e._getLastSeq(t),c=e._getLastGen(t);if(l||c)l&&(a.params.seq=l),c&&(a.params.gen=c);else{var u=e._getLastOffset(t);u&&(a.params.offset=u)}var d=e._getLastEpoch(t);d&&(a.params.epoch=d)}e._call(a).then((function(n){e._subscribeResponse(t,s,e._decoder.decodeCommandResult(e._methodType.SUBSCRIBE,n.result)),n.next&&n.next()}),(function(n){e._subscribeError(t,n.error),n.next&&n.next()}))}();u&&e.stopBatching()}};if(null!==this._config.onPrivateSubscribe)this._config.onPrivateSubscribe({data:a},o);else{var l=this._ajax(this._config.subscribeEndpoint,this._config.subscribeParams,this._config.subscribeHeaders,a,o);this._xhrs[s]=l}}else this._debug("no private channels found, no need to make request")}},{key:"subscribe",value:function(e,t){var n=this._getSub(e);if(null!==n)return n._setEvents(t),n._isUnsubscribed()&&n.subscribe(),n;var r=new a.default(this,e,t);return this._subs[e]=r,r.subscribe(),r}}])&&c(t.prototype,r),o&&c(t,o),h}(r.default);t.Centrifuge=f},579:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(382).Centrifuge;t.default=r,e.exports=t.default},147:function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.JsonDecoder=t.JsonEncoder=t.JsonPushType=t.JsonMethodType=void 0,t.JsonMethodType={CONNECT:0,SUBSCRIBE:1,UNSUBSCRIBE:2,PUBLISH:3,PRESENCE:4,PRESENCE_STATS:5,HISTORY:6,PING:7,SEND:8,RPC:9,REFRESH:10,SUB_REFRESH:11},t.JsonPushType={PUBLICATION:0,JOIN:1,LEAVE:2,UNSUB:3,MESSAGE:4,SUB:5};var i=function(){function e(){n(this,e)}return a(e,[{key:"encodeCommands",value:function(e){return e.map((function(e){return JSON.stringify(e)})).join("\n")}}]),e}();t.JsonEncoder=i;var s=function(){function e(){n(this,e)}return a(e,[{key:"decodeReplies",value:function(e){return e.split("\n").filter((function(e){return""!==e})).map((function(e){return JSON.parse(e)}))}},{key:"decodeCommandResult",value:function(e,t){return t}},{key:"decodePush",value:function(e){return e}},{key:"decodePushData",value:function(e,t){return t}}]),e}();t.JsonDecoder=s},471:function(e,t,n){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.default=void 0;var a,i=(a=n(187))&&a.__esModule?a:{default:a},s=n(853);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)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var a=p(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(i,e);var t,n,r,a=c(i);function i(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(r=a.call(this)).channel=t,r._centrifuge=e,r._status=0,r._error=null,r._isResubscribe=!1,r._ready=!1,r._subscriptionPromise=null,r._noResubscribe=!1,r._recoverable=!1,r._recover=!1,r._setEvents(n),r._initializePromise(),r._promises={},r._promiseId=0,r.on("error",(function(e){this._centrifuge._debug("subscription error",e)})),r}return t=i,(n=[{key:"_nextPromiseId",value:function(){return++this._promiseId}},{key:"_initializePromise",value:function(){var e=this;this._ready=!1,this._subscriptionPromise=new Promise((function(t,n){e._resolve=function(n){e._ready=!0,t(n)},e._reject=function(t){e._ready=!0,n(t)}})).then((function(){}),(function(){}))}},{key:"_needRecover",value:function(){return!0===this._recoverable&&!0===this._recover}},{key:"_setEvents",value:function(e){if(e)if((0,s.isFunction)(e))this.on("publish",e);else if(Object.prototype.toString.call(e)===Object.prototype.toString.call({}))for(var t=["publish","join","leave","unsubscribe","subscribe","error"],n=0,r=t.length;n<r;n++){var a=t[n];a in e&&this.on(a,e[a])}}},{key:"_isNew",value:function(){return 0===this._status}},{key:"_isUnsubscribed",value:function(){return 4===this._status}},{key:"_isSubscribing",value:function(){return 1===this._status}},{key:"_isReady",value:function(){return 2===this._status||3===this._status}},{key:"_isSuccess",value:function(){return 2===this._status}},{key:"_isError",value:function(){return 3===this._status}},{key:"_setNew",value:function(){this._status=0}},{key:"_setSubscribing",value:function(e){this._isResubscribe=e||!1,!0===this._ready&&this._initializePromise(),this._status=1}},{key:"_setSubscribeSuccess",value:function(e){if(2!==this._status){this._status=2;var t=this._getSubscribeSuccessContext(e);for(var n in this._recover=!1,this.emit("subscribe",t),this._resolve(t),this._promises)clearTimeout(this._promises[n].timeout),this._promises[n].resolve(),delete this._promises[n]}}},{key:"_setSubscribeError",value:function(e){if(3!==this._status){this._status=3,this._error=e;var t=this._getSubscribeErrorContext();for(var n in this.emit("error",t),this._reject(t),this._promises)clearTimeout(this._promises[n].timeout),this._promises[n].reject(e),delete this._promises[n]}}},{key:"_triggerUnsubscribe",value:function(){this.emit("unsubscribe",{channel:this.channel})}},{key:"_setUnsubscribed",value:function(e){if(this._centrifuge._clearSubRefreshTimeout(this.channel),4!==this._status){var t=2===this._status;this._status=4,!0===e&&(this._recover=!1,this._noResubscribe=!0,delete this._centrifuge._lastSeq[this.channel],delete this._centrifuge._lastGen[this.channel],delete this._centrifuge._lastEpoch[this.channel]),t&&this._triggerUnsubscribe()}}},{key:"_shouldResubscribe",value:function(){return!this._noResubscribe}},{key:"_getSubscribeSuccessContext",value:function(e){var t={channel:this.channel,isResubscribe:this._isResubscribe};return e&&(t=this._centrifuge._expandSubscribeContext(t,e)),t}},{key:"_getSubscribeErrorContext",value:function(){var e=this._error;return e.channel=this.channel,e.isResubscribe=this._isResubscribe,e}},{key:"ready",value:function(e,t){this._ready&&(this._isSuccess()?e(this._getSubscribeSuccessContext()):t(this._getSubscribeErrorContext()))}},{key:"subscribe",value:function(){2!==this._status&&(this._noResubscribe=!1,this._centrifuge._subscribe(this))}},{key:"unsubscribe",value:function(){this._setUnsubscribed(!0),this._centrifuge._unsubscribe(this)}},{key:"_methodCall",value:function(){var e=this;return this._isSuccess()?Promise.resolve():this._isError()?Promise.reject(this._error):new Promise((function(t,n){var r=setTimeout((function(){n({code:0,message:"timeout"})}),e._centrifuge._config.timeout);e._promises[e._nextPromiseId()]={timeout:r,resolve:t,reject:n}}))}},{key:"publish",value:function(e){var t=this;return this._methodCall().then((function(){return t._centrifuge.publish(t.channel,e)}))}},{key:"presence",value:function(){var e=this;return this._methodCall().then((function(){return e._centrifuge.presence(e.channel)}))}},{key:"presenceStats",value:function(){var e=this;return this._methodCall().then((function(){return e._centrifuge.presenceStats(e.channel)}))}},{key:"history",value:function(e){var t=this;return this._methodCall().then((function(){return t._centrifuge.history(t.channel,e)}))}}])&&o(t.prototype,n),r&&o(t,r),i}(i.default);t.default=d,e.exports=t.default},853:function(e,t,n){function r(e){return null!=e&&"function"==typeof e}Object.defineProperty(t,"__esModule",{value:!0}),t.startsWith=function(e,t){return 0===e.lastIndexOf(t,0)},t.isFunction=r,t.log=function(e,t){if(n.g.console){var a=n.g.console[e];r(a)&&a.apply(n.g.console,t)}},t.backoff=function(e,t,n){var r=.5*Math.random(),a=Math.min(n,t*Math.pow(2,e+1));return Math.floor((1-r)*a)},t.errorExists=function(e){return"error"in e&&null!==e.error},t.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}},187:function(e){var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function a(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,a),r(n)},e.once("error",i)),e.once(t,a)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function o(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var a,i,s,c;if(o(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(a=l(e))>0&&s.length>a&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=u.bind(r);return a.listener=n,r.wrapFn=a,a}function d(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(a):f(a,a.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var a="error"===e,i=this._events;if(void 0!==i)a=a&&void 0===i.error;else if(!a)return!1;if(a){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=f(l,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return o(t),this.on(e,p(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return o(t),this.prependListener(e,p(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,a,i,s;if(o(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,a),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var a,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(a=i[r])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}return n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n(579)}()},e.exports=r()},function(e,t,n){var r=n(46),a=n(174),i=Object.prototype.hasOwnProperty,s=a((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=s},function(e,t,n){var r=n(44),a=n(12),i=n(175),s=n(114);e.exports=function(e,t){if(null==e)return{};var n=r(s(e),(function(e){return[e]}));return t=a(t),i(e,n,(function(e,n){return t(e,n[0])}))}},function(e,t,n){var r=n(392)();e.exports=r},function(e,t,n){var r=n(395);e.exports=function(e){return r(2,e)}},function(e,t){e.exports=require("crypto")},function(e,t,n){var r=n(112),a=n(118);e.exports=function(e,t,n){return e&&e.length?(t=n||void 0===t?1:a(t),r(e,0,t<0?0:t)):[]}},function(e,t,n){"use strict";t.__esModule=!0;var r,a=n(397),i=(r=a)&&r.__esModule?r:{default:r};t.default=(0,i.default)("local")},function(e,t,n){var r=n(403),a=n(404),i=n(12);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),a):void 0}},function(e,t,n){var r=n(12),a=n(178);e.exports=function(e,t){return e&&e.length?a(e,r(t,2)):0}},function(e,t,n){var r=n(405),a=n(154);e.exports=function(e,t){return null!=e&&a(e,t,r)}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=require("fs")},function(e,t,n){var r=n(87),a=n(47),i=n(34),s=n(48),o=i((function(e,t){return s(e)?r(e,a(t,1,s,!0)):[]}));e.exports=o},function(e,t){var n=/^(?:([-+]{1}) ?)?(?:([A-Z]{3}) ?)?(?:([^\d ]+?) ?)?(((?:\d{1,3}([,. ’'\u00A0\u202F]))*?\d{1,})(([,.])\d{1,2})?)(?: ?([^\d]+?))??(?: ?([A-Z]{3}))?$/,r=/^\d{1,3}([,. ’'\u00A0\u202F]\d{3})*$/,a=/^\d{1,2}(,\d{2})*(,\d{3})?$/;e.exports=function(e){if(!e||!e.match)return null;var t=(e=e.trim()).match(n);if(!t)return null;var i=t[6]||"",s=t[8]||"";if(i===s&&s)return null;var o="-"===t[1]?"-"+t[5]:t[5];if(i&&!t[5].match(r)&&!t[5].match(a))return null;var l=t[4];if(!l)return null;i&&(l=l.replace(RegExp("\\"+i,"g"),"")),s&&(l=l.replace(s,"."));var c="-"===t[1]?-1*l:+l;return"number"!=typeof c||isNaN(c)?null:{raw:e,value:c,integer:o||"",decimals:t[7]||"",currency:t[2]||t[10]||"",symbol:t[3]||t[9]||"",decimalSeparator:s,groupSeparator:i,sign:t[1]||""}}},,function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};if(Object.defineProperty(t,"__esModule",{value:!0}),"browser"===process.type)throw new Error('"@electron/remote" cannot be required in the browser process. Instead require("@electron/remote/main").');a(n(237),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFunctionWithReturnValue=t.getGlobal=t.getCurrentWebContents=t.getCurrentWindow=t.getBuiltin=void 0;const r=n(238),a=n(239),i=n(7),s=n(240),o=n(132),l=new r.CallbacksRegistry,c=new Map,u=new FinalizationRegistry(e=>{const t=c.get(e);void 0!==t&&void 0===t.deref()&&(c.delete(e),i.ipcRenderer.send("REMOTE_BROWSER_DEREFERENCE",h,e,0))}),p=new WeakMap,d=new WeakSet;const h=process.contextId||function(){const e=o.getElectronBinding("v8_util");if(e)return e.getHiddenValue(global,"contextId");throw new Error("Electron >=v13.0.0-beta.6 required to support sandboxed renderers")}();process.on("exit",()=>{i.ipcRenderer.send("REMOTE_BROWSER_CONTEXT_RELEASE",h)});const f=Symbol("is-remote-proxy");function m(e,t=new Set){const n=e=>{if(t.has(e))return{type:"value",value:null};if(e&&e.constructor&&"NativeImage"===e.constructor.name)return{type:"nativeimage",value:a.serialize(e)};if(Array.isArray(e)){t.add(e);const n={type:"array",value:m(e,t)};return t.delete(e),n}if(e instanceof Buffer)return{type:"buffer",value:e};if(a.isSerializableObject(e))return{type:"value",value:e};if("object"==typeof e){if(a.isPromise(e))return{type:"promise",then:n((function(t,n){e.then(t,n)}))};if(p.has(e))return{type:"remote-object",id:p.get(e)};const r={type:"object",name:e.constructor?e.constructor.name:"",members:[]};t.add(e);for(const t in e)r.members.push({name:t,value:n(e[t])});return t.delete(e),r}return"function"==typeof e&&d.has(e)?{type:"function-with-return-value",value:n(e())}:"function"==typeof e?{type:"function",id:l.add(e),location:l.getLocation(e),length:e.length}:{type:"value",value:e}};return e.map(n)}function S(e,t,n,r){if(Array.isArray(r))for(const a of r){if(Object.prototype.hasOwnProperty.call(t,a.name))continue;const r={enumerable:a.enumerable};if("method"===a.type){const t=function(...e){let r;r=this&&this.constructor===t?"REMOTE_BROWSER_MEMBER_CONSTRUCTOR":"REMOTE_BROWSER_MEMBER_CALL";return g(i.ipcRenderer.sendSync(r,h,n,a.name,m(e)))};let s=y(t,n,a.name);r.get=()=>(s.ref=e,s),r.set=e=>(s=e,e),r.configurable=!0}else"get"===a.type&&(r.get=()=>g(i.ipcRenderer.sendSync("REMOTE_BROWSER_MEMBER_GET",h,n,a.name)),a.writable&&(r.set=e=>{const t=m([e]),r=i.ipcRenderer.sendSync("REMOTE_BROWSER_MEMBER_SET",h,n,a.name,t);return null!=r&&g(r),e}));Object.defineProperty(t,a.name,r)}}function y(e,t,n){let r=!1;const a=()=>{if(r)return;r=!0;const a=i.ipcRenderer.sendSync("REMOTE_BROWSER_MEMBER_GET",h,t,n);S(e,e,a.id,a.members)};return new Proxy(e,{set:(e,t,n)=>("ref"!==t&&a(),e[t]=n,!0),get:(e,t)=>{if(t===f)return!0;Object.prototype.hasOwnProperty.call(e,t)||a();const n=e[t];return"toString"===t&&"function"==typeof n?n.bind(e):n},ownKeys:e=>(a(),Object.getOwnPropertyNames(e)),getOwnPropertyDescriptor:(e,t)=>{const n=Object.getOwnPropertyDescriptor(e,t);return n||(a(),Object.getOwnPropertyDescriptor(e,t))}})}function g(e){if("value"===e.type)return e.value;if("array"===e.type)return e.members.map(e=>g(e));if("nativeimage"===e.type)return a.deserialize(e.value);if("buffer"===e.type)return Buffer.from(e.value.buffer,e.value.byteOffset,e.value.byteLength);if("promise"===e.type)return Promise.resolve({then:g(e.then)});if("error"===e.type)return v(e);if("exception"===e.type)throw"error"===e.value.type?v(e.value):new Error("Unexpected value type in exception: "+e.value.type);{let t;if("id"in e){const t=function(e){const t=c.get(e);if(void 0!==t){const e=t.deref();if(void 0!==e)return e}}(e.id);if(void 0!==t)return t}if("function"===e.type){const n=function(...t){let r;r=this&&this.constructor===n?"REMOTE_BROWSER_CONSTRUCTOR":"REMOTE_BROWSER_FUNCTION_CALL";return g(i.ipcRenderer.sendSync(r,h,e.id,m(t)))};t=n}else t={};return S(t,t,e.id,e.members),function e(t,n,r,a){if(null===a)return;const i={};S(t,i,r,a.members),e(t,i,r,a.proto),Object.setPrototypeOf(n,i)}(t,t,e.id,e.proto),t.constructor&&t.constructor[f]&&Object.defineProperty(t.constructor,"name",{value:e.name}),p.set(t,e.id),function(e,t){const n=new WeakRef(t);c.set(e,n),u.register(t,e)}(e.id,t),t}}function v(e){const t=e.value;for(const{name:n,value:r}of e.members)t[n]=g(r);return t}function _(e,t){i.ipcRenderer.on(e,(n,r,a,...s)=>{0===n.senderId?r===h?t(a,...s):i.ipcRenderer.send("REMOTE_BROWSER_WRONG_CONTEXT_ERROR",h,r,a):console.error(`Message ${e} sent by unexpected WebContents (${n.senderId})`)})}const b=process.argv.includes("--enable-api-filtering-logging");function P(){const e={stack:void 0};return b&&Error.captureStackTrace(e,P),e.stack}_("REMOTE_RENDERER_CALLBACK",(e,t)=>{l.apply(e,g(t))}),_("REMOTE_RENDERER_RELEASE_CALLBACK",e=>{l.remove(e)}),t.require=e=>g(i.ipcRenderer.sendSync("REMOTE_BROWSER_REQUIRE",h,e,P())),t.getBuiltin=function(e){return g(i.ipcRenderer.sendSync("REMOTE_BROWSER_GET_BUILTIN",h,e,P()))},t.getCurrentWindow=function(){return g(i.ipcRenderer.sendSync("REMOTE_BROWSER_GET_CURRENT_WINDOW",h,P()))},t.getCurrentWebContents=function(){return g(i.ipcRenderer.sendSync("REMOTE_BROWSER_GET_CURRENT_WEB_CONTENTS",h,P()))},t.getGlobal=function(e){return g(i.ipcRenderer.sendSync("REMOTE_BROWSER_GET_GLOBAL",h,e,P()))},Object.defineProperty(t,"process",{enumerable:!0,get:()=>t.getGlobal("process")}),t.createFunctionWithReturnValue=function(e){const t=()=>e;return d.add(t),t};s.browserModuleNames.forEach(e=>{Object.defineProperty(t,e,{enumerable:!0,get:()=>t.getBuiltin(e)})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallbacksRegistry=void 0;t.CallbacksRegistry=class{constructor(){this.nextId=0,this.callbacks={},this.callbackIds=new WeakMap,this.locationInfo=new WeakMap}add(e){let t=this.callbackIds.get(e);if(null!=t)return t;t=this.nextId+=1,this.callbacks[t]=e,this.callbackIds.set(e,t);const n=/at (.*)/gi,r=(new Error).stack;if(!r)return t;let a,i;for(;null!==(i=n.exec(r));){const e=i[1];if(e.includes("(native)"))continue;if(e.includes("(<anonymous>)"))continue;if(e.includes("callbacks-registry.js"))continue;if(e.includes("remote.js"))continue;if(e.includes("@electron/remote/dist"))continue;const t=/([^/^)]*)\)?$/gi.exec(e);t&&(a=t[1]);break}return this.locationInfo.set(e,a),t}get(e){return this.callbacks[e]||function(){}}getLocation(e){return this.locationInfo.get(e)}apply(e,...t){return this.get(e).apply(global,...t)}remove(e){const t=this.callbacks[e];t&&(this.callbackIds.delete(t),delete this.callbacks[e])}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserialize=t.serialize=t.isSerializableObject=t.isPromise=void 0;const r=n(7);t.isPromise=function(e){return e&&e.then&&e.then instanceof Function&&e.constructor&&e.constructor.reject&&e.constructor.reject instanceof Function&&e.constructor.resolve&&e.constructor.resolve instanceof Function};const a=[Boolean,Number,String,Date,Error,RegExp,ArrayBuffer];function i(e){return null===e||ArrayBuffer.isView(e)||a.some(t=>e instanceof t)}t.isSerializableObject=i;const s=function(e,t){const n=Object.entries(e).map(([e,n])=>[e,t(n)]);return Object.fromEntries(n)};t.serialize=function e(t){return t&&t.constructor&&"NativeImage"===t.constructor.name?function(e){const t=[],n=e.getScaleFactors();if(1===n.length){const r=n[0],a=e.getSize(r),i=e.toBitmap({scaleFactor:r});t.push({scaleFactor:r,size:a,buffer:i})}else for(const r of n){const n=e.getSize(r),a=e.toDataURL({scaleFactor:r});t.push({scaleFactor:r,size:n,dataURL:a})}return{__ELECTRON_SERIALIZED_NativeImage__:!0,representations:t}}(t):Array.isArray(t)?t.map(e):i(t)?t:t instanceof Object?s(t,e):t},t.deserialize=function e(t){return t&&t.__ELECTRON_SERIALIZED_NativeImage__?function(e){const t=r.nativeImage.createEmpty();if(1===e.representations.length){const{buffer:n,size:r,scaleFactor:a}=e.representations[0],{width:i,height:s}=r;t.addRepresentation({buffer:n,scaleFactor:a,width:i,height:s})}else for(const n of e.representations){const{dataURL:e,size:r,scaleFactor:a}=n,{width:i,height:s}=r;t.addRepresentation({dataURL:e,scaleFactor:a,width:i,height:s})}return t}(t):Array.isArray(t)?t.map(e):i(t)?t:t instanceof Object?s(t,e):t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserModuleNames=t.commonModuleNames=void 0;const r=n(132);t.commonModuleNames=["clipboard","nativeImage","shell"],t.browserModuleNames=["app","autoUpdater","BaseWindow","BrowserView","BrowserWindow","contentTracing","crashReporter","dialog","globalShortcut","ipcMain","inAppPurchase","Menu","MenuItem","nativeTheme","net","netLog","MessageChannelMain","Notification","powerMonitor","powerSaveBlocker","protocol","safeStorage","screen","session","ShareMenu","systemPreferences","TopLevelWindow","TouchBar","Tray","View","webContents","WebContentsView","webFrameMain"].concat(t.commonModuleNames);const a=r.getElectronBinding("features");a&&!a.isDesktopCapturerEnabled()||t.browserModuleNames.push("desktopCapturer"),a&&!a.isViewApiEnabled()||t.browserModuleNames.push("ImageView")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.forwardToMainWithParams=void 0;var r,a=n(7),i=(r=n(133))&&r.__esModule?r:{default:r};var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return function(t){return function(n){var r=e.blacklist,s=void 0===r?[]:r;return(0,i.default)(n)?n.meta&&"local"===n.meta.scope||s.some((function(e){return e.test(n.type)}))?t(n):void a.ipcRenderer.send("redux-action",n):t(n)}}}};t.forwardToMainWithParams=s;var o=s({blacklist:[/^@@/,/^redux-form/]});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFSA=i,t.isError=function(e){return i(e)&&!0===e.error};var r=n(65),a=n(122);function i(e){return r(e)&&a(e.type)&&Object.keys(e).every(s)}function s(e){return["type","payload","error","meta"].indexOf(e)>-1}},function(e,t,n){var r=n(40),a=Object.prototype,i=a.hasOwnProperty,s=a.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch(e){}var a=s.call(e);return r&&(t?e[o]=n:delete e[o]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(246)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var a=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))})),e.splice(i,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,a=+new Date,i=a-(n||a);e.diff=i,e.prev=n,e.curr=a,n=a;for(var s=new Array(arguments.length),o=0;o<s.length;o++)s[o]=arguments[o];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var l=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;l++;var a=t.formatters[r];if("function"==typeof a){var i=s[l];n=a.call(e,i),s.splice(l,1),l--}return n})),t.formatArgs.call(e,s);var c=r.log||t.log||console.log.bind(console);c.apply(e,s)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=a,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function a(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(n=0;n<a;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(247),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t){var n=1e3,r=6e4,a=60*r,i=24*a;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var o,l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===l&&!1===isNaN(e))return t.long?s(o=e,i,"day")||s(o,a,"hour")||s(o,r,"minute")||s(o,n,"second")||o+" ms":function(e){if(e>=i)return Math.round(e/i)+"d";if(e>=a)return Math.round(e/a)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=n(7),i=(r=n(133))&&r.__esModule?r:{default:r};function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o=function(){return function(e){return function(t){if(!(0,i.default)(t))return e(t);if(t.meta&&"local"===t.meta.scope)return e(t);var n=s({},t,{meta:s({},t.meta,{scope:"local"})});return a.webContents.getAllWebContents().forEach((function(e){e.send("redux-action",n)})),e(t)}}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(250)),a=n(136),i=s(n(137));function s(e){return e&&e.__esModule?e:{default:e}}var o=function(e){return function(e){return function(t){if(t.type===a.ALIASED){(0,r.default)(t.meta&&t.meta.trigger,"No trigger defined");var n=i.default.get(t.meta.trigger);(0,r.default)(n,"Trigger alias ".concat(t.meta.trigger," not found"));var s=t.payload||[];t=n.apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(s))}return e(t)}}};t.default=o},function(e,t){e.exports=require("assert")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return i.default.set(e,t),function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{type:a.ALIASED,payload:n,meta:{trigger:e}}}};var r,a=n(136),i=(r=n(137))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){global.getReduxState=function(){return JSON.stringify(e.getState())},r.ipcMain.on("redux-action",(function(t,n){e.dispatch(n)}))};var r=n(7)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){r.ipcRenderer.on("redux-action",(function(t,n){e.dispatch(n)}))};var r=n(7)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=r.remote.getGlobal("getReduxState");if(!e)throw new Error("Could not find reduxState global in main process, did you forget to call replayActionMain?");return JSON.parse(e())};var r=n(7)},function(e,t,n){var r=n(76);e.exports=function(e,t){var n=[];return r(e,(function(e,r,a){t(e,r,a)&&n.push(e)})),n}},function(e,t){e.exports=function(e){return function(t,n,r){for(var a=-1,i=Object(t),s=r(t),o=s.length;o--;){var l=s[e?o:++a];if(!1===n(i[l],l,i))break}return t}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(28),a=n(21);e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(28),a=n(100),i=n(21),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!s[r(e)]}},function(e,t,n){var r=n(135)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(25);e.exports=function(e,t){return function(n,a){if(null==n)return n;if(!r(n))return e(n,a);for(var i=n.length,s=t?i:-1,o=Object(n);(t?s--:++s<i)&&!1!==a(o[s],s,o););return n}}},function(e,t,n){var r=n(263),a=n(300),i=n(152);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(80),a=n(105);e.exports=function(e,t,n,i){var s=n.length,o=s,l=!i;if(null==e)return!o;for(e=Object(e);s--;){var c=n[s];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<o;){var u=(c=n[s])[0],p=e[u],d=c[1];if(l&&c[2]){if(void 0===p&&!(u in e))return!1}else{var h=new r;if(i)var f=i(p,d,u,e,t,h);if(!(void 0===f?a(d,p,3,i,h):f))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(82),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(82);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(82);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(82);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},function(e,t,n){var r=n(81);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(81),a=n(103),i=n(104);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!a||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(102),a=n(275),i=n(16),s=n(144),o=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,d=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(r(e)?d:o).test(s(e))}},function(e,t,n){var r,a=n(276),i=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(20)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(279),a=n(81),i=n(103);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||a),string:new r}}},function(e,t,n){var r=n(280),a=n(281),i=n(282),s=n(283),o=n(284);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=s,l.prototype.set=o,e.exports=l},function(e,t,n){var r=n(83);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(83),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(83),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},function(e,t,n){var r=n(83);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(84);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(84);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(84);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(84);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},function(e,t,n){var r=n(80),a=n(145),i=n(294),s=n(296),o=n(59),l=n(9),c=n(55),u=n(79),p="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,f,m){var S=l(e),y=l(t),g=S?"[object Array]":o(e),v=y?"[object Array]":o(t),_=(g="[object Arguments]"==g?p:g)==p,b=(v="[object Arguments]"==v?p:v)==p,P=g==v;if(P&&c(e)){if(!c(t))return!1;S=!0,_=!1}if(P&&!_)return m||(m=new r),S||u(e)?a(e,t,n,h,f,m):i(e,t,g,n,h,f,m);if(!(1&n)){var w=_&&d.call(e,"__wrapped__"),E=b&&d.call(t,"__wrapped__");if(w||E){var k=w?e.value():e,T=E?t.value():t;return m||(m=new r),f(k,T,n,h,m)}}return!!P&&(m||(m=new r),s(e,t,n,h,f,m))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(40),a=n(146),i=n(41),s=n(145),o=n(295),l=n(108),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,p,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=o;case"[object Set]":var f=1&r;if(h||(h=l),e.size!=t.size&&!f)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var S=s(h(e),h(t),r,c,p,d);return d.delete(e),S;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(147),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,s,o){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var p=u;p--;){var d=c[p];if(!(l?d in t:a.call(t,d)))return!1}var h=o.get(e),f=o.get(t);if(h&&f)return h==t&&f==e;var m=!0;o.set(e,t),o.set(t,e);for(var S=l;++p<u;){var y=e[d=c[p]],g=t[d];if(i)var v=l?i(g,y,d,t,e,o):i(y,g,d,e,t,o);if(!(void 0===v?y===g||s(y,g,n,i,o):v)){m=!1;break}S||(S="constructor"==d)}if(m&&!S){var _=e.constructor,b=t.constructor;_==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(m=!1)}return o.delete(e),o.delete(t),m}},function(e,t,n){var r=n(33)(n(20),"DataView");e.exports=r},function(e,t,n){var r=n(33)(n(20),"Promise");e.exports=r},function(e,t,n){var r=n(33)(n(20),"WeakMap");e.exports=r},function(e,t,n){var r=n(151),a=n(32);e.exports=function(e){for(var t=a(e),n=t.length;n--;){var i=t[n],s=e[i];t[n]=[i,s,r(s)]}return t}},function(e,t,n){var r=n(105),a=n(123),i=n(153),s=n(111),o=n(151),l=n(152),c=n(45);e.exports=function(e,t){return s(e)&&o(t)?l(c(e),t):function(n){var s=a(n,e);return void 0===s&&s===t?i(n,e):r(t,s,3)}}},function(e,t,n){var r=n(303),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,n,r,a){t.push(r?a.replace(i,"$1"):n||e)})),t}));e.exports=s},function(e,t,n){var r=n(304);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(104);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var s=e.apply(this,r);return n.cache=i.set(a,s)||i,s};return n.cache=new(a.Cache||r),n}a.Cache=r,e.exports=a},function(e,t,n){var r=n(40),a=n(44),i=n(9),s=n(43),o=r?r.prototype:void 0,l=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return a(t,e)+"";if(s(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(308),a=n(309),i=n(111),s=n(45);e.exports=function(e){return i(e)?r(s(e)):a(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(60);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(311),a=n(155),i=n(312),s=n(61);e.exports=function(e){return function(t){t=s(t);var n=a(t)?i(t):void 0,o=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return o[e]()+l}}},function(e,t,n){var r=n(112);e.exports=function(e,t,n){var a=e.length;return n=void 0===n?a:n,!t&&n>=a?e:r(e,t,n)}},function(e,t,n){var r=n(313),a=n(155),i=n(314);e.exports=function(e){return a(e)?i(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+a+")"+"?",c="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[i,s,o].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),u="(?:"+[i+r+"?",r,s,o,n].join("|")+")",p=RegExp(a+"(?="+a+")|"+u+c,"g");e.exports=function(e){return e.match(p)||[]}},function(e,t,n){var r=n(157),a=n(316),i=n(317);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,a,n)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(150),a=n(90),i=n(108),s=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:a;e.exports=s},function(e,t){var n;t=e.exports=$,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.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 r=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],i=t.src=[],s=0,o=s++;i[o]="0|[1-9]\\d*";var l=s++;i[l]="[0-9]+";var c=s++;i[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var u=s++;i[u]="("+i[o]+")\\.("+i[o]+")\\.("+i[o]+")";var p=s++;i[p]="("+i[l]+")\\.("+i[l]+")\\.("+i[l]+")";var d=s++;i[d]="(?:"+i[o]+"|"+i[c]+")";var h=s++;i[h]="(?:"+i[l]+"|"+i[c]+")";var f=s++;i[f]="(?:-("+i[d]+"(?:\\."+i[d]+")*))";var m=s++;i[m]="(?:-?("+i[h]+"(?:\\."+i[h]+")*))";var S=s++;i[S]="[0-9A-Za-z-]+";var y=s++;i[y]="(?:\\+("+i[S]+"(?:\\."+i[S]+")*))";var g=s++,v="v?"+i[u]+i[f]+"?"+i[y]+"?";i[g]="^"+v+"$";var _="[v=\\s]*"+i[p]+i[m]+"?"+i[y]+"?",b=s++;i[b]="^"+_+"$";var P=s++;i[P]="((?:<|>)?=?)";var w=s++;i[w]=i[l]+"|x|X|\\*";var E=s++;i[E]=i[o]+"|x|X|\\*";var k=s++;i[k]="[v=\\s]*("+i[E]+")(?:\\.("+i[E]+")(?:\\.("+i[E]+")(?:"+i[f]+")?"+i[y]+"?)?)?";var T=s++;i[T]="[v=\\s]*("+i[w]+")(?:\\.("+i[w]+")(?:\\.("+i[w]+")(?:"+i[m]+")?"+i[y]+"?)?)?";var C=s++;i[C]="^"+i[P]+"\\s*"+i[k]+"$";var I=s++;i[I]="^"+i[P]+"\\s*"+i[T]+"$";var A=s++;i[A]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var O=s++;i[O]="(?:~>?)";var x=s++;i[x]="(\\s*)"+i[O]+"\\s+",a[x]=new RegExp(i[x],"g");var N=s++;i[N]="^"+i[O]+i[k]+"$";var R=s++;i[R]="^"+i[O]+i[T]+"$";var D=s++;i[D]="(?:\\^)";var H=s++;i[H]="(\\s*)"+i[D]+"\\s+",a[H]=new RegExp(i[H],"g");var F=s++;i[F]="^"+i[D]+i[k]+"$";var G=s++;i[G]="^"+i[D]+i[T]+"$";var U=s++;i[U]="^"+i[P]+"\\s*("+_+")$|^$";var L=s++;i[L]="^"+i[P]+"\\s*("+v+")$|^$";var j=s++;i[j]="(\\s*)"+i[P]+"\\s*("+_+"|"+i[k]+")",a[j]=new RegExp(i[j],"g");var M=s++;i[M]="^\\s*("+i[k]+")\\s+-\\s+("+i[k]+")\\s*$";var B=s++;i[B]="^\\s*("+i[T]+")\\s+-\\s+("+i[T]+")\\s*$";var K=s++;i[K]="(<|>)?=?\\s*\\*";for(var q=0;q<35;q++)n(q,i[q]),a[q]||(a[q]=new RegExp(i[q]));function V(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?a[b]:a[g]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?a[b]:a[g]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=V,t.valid=function(e,t){var n=V(e,t);return n?n.version:null},t.clean=function(e,t){var n=V(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=$,$.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},$.prototype.toString=function(){return this.version},$.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof $||(e=new $(e,this.options)),this.compareMain(e)||this.comparePre(e)},$.prototype.compareMain=function(e){return e instanceof $||(e=new $(e,this.options)),z(this.major,e.major)||z(this.minor,e.minor)||z(this.patch,e.patch)},$.prototype.comparePre=function(e){if(e instanceof $||(e=new $(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 r=this.prerelease[t],a=e.prerelease[t];if(n("prerelease compare",t,r,a),void 0===r&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===r)return-1;if(r!==a)return z(r,a)}while(++t)},$.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 $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Y(e,t))return null;var n=V(e),r=V(t),a="";if(n.prerelease.length||r.prerelease.length){a="pre";var i="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return a+s;return i},t.compareIdentifiers=z;var W=/^[0-9]+$/;function z(e,t){var n=W.test(e),r=W.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function J(e,t,n){return new $(e,n).compare(new $(t,n))}function X(e,t,n){return J(e,t,n)>0}function Q(e,t,n){return J(e,t,n)<0}function Y(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(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 Y(e,n,r);case"!=":return Z(e,n,r);case">":return X(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ae?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=X,t.lt=Q,t.eq=Y,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ae={};function ie(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ie)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ie(e.raw,t);if(e instanceof re)return new ie(e.value,t);if(!(this instanceof ie))return new ie(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 se(e){return!e||"x"===e.toLowerCase()||"*"===e}function oe(e,t,n,r,a,i,s,o,l,c,u,p,d){return((t=se(n)?"":se(r)?">="+n+".0.0":se(a)?">="+n+"."+r+".0":">="+t)+" "+(o=se(l)?"":se(c)?"<"+(+l+1)+".0.0":se(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+o)).trim()}function le(e,t,r){for(var a=0;a<e.length;a++)if(!e[a].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(a=0;a<e.length;a++)if(n(e[a].semver),e[a].semver!==ae&&e[a].semver.prerelease.length>0){var i=e[a].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new ie(t,n)}catch(e){return!1}return t.test(e)}function ue(e,t,n,r){var a,i,s,o,l;switch(e=new $(e,r),t=new ie(t,r),n){case">":a=X,i=te,s=Q,o=">",l=">=";break;case"<":a=Q,i=ee,s=X,o="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],p=null,d=null;if(u.forEach((function(e){e.semver===ae&&(e=new re(">=0.0.0")),p=p||e,d=d||e,a(e.semver,p.semver,r)?p=e:s(e.semver,d.semver,r)&&(d=e)})),p.operator===o||p.operator===l)return!1;if((!d.operator||d.operator===o)&&i(e,d.semver))return!1;if(d.operator===l&&s(e,d.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?a[U]:a[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ae},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ae||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ie(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new ie(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),a=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||a||i&&s||o||l},t.Range=ie,ie.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ie.prototype.toString=function(){return this.range},ie.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?a[B]:a[M];e=e.replace(r,oe),n("hyphen replace",e),e=e.replace(a[j],"$1$2$3"),n("comparator trim",e,a[j]),e=(e=(e=e.replace(a[x],"$1~")).replace(a[H],"$1^")).split(/\s+/).join(" ");var i=t?a[U]:a[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?a[G]:a[F];return e.replace(r,(function(t,r,a,i,s){var o;return n("caret",e,t,r,a,i,s),se(r)?o="":se(a)?o=">="+r+".0.0 <"+(+r+1)+".0.0":se(i)?o="0"===r?">="+r+"."+a+".0 <"+r+"."+(+a+1)+".0":">="+r+"."+a+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),o="0"===r?"0"===a?">="+r+"."+a+"."+i+"-"+s+" <"+r+"."+a+"."+(+i+1):">="+r+"."+a+"."+i+"-"+s+" <"+r+"."+(+a+1)+".0":">="+r+"."+a+"."+i+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),o="0"===r?"0"===a?">="+r+"."+a+"."+i+" <"+r+"."+a+"."+(+i+1):">="+r+"."+a+"."+i+" <"+r+"."+(+a+1)+".0":">="+r+"."+a+"."+i+" <"+(+r+1)+".0.0"),n("caret return",o),o}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?a[R]:a[N];return e.replace(r,(function(t,r,a,i,s){var o;return n("tilde",e,t,r,a,i,s),se(r)?o="":se(a)?o=">="+r+".0.0 <"+(+r+1)+".0.0":se(i)?o=">="+r+"."+a+".0 <"+r+"."+(+a+1)+".0":s?(n("replaceTilde pr",s),o=">="+r+"."+a+"."+i+"-"+s+" <"+r+"."+(+a+1)+".0"):o=">="+r+"."+a+"."+i+" <"+r+"."+(+a+1)+".0",n("tilde return",o),o}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?a[I]:a[C];return e.replace(r,(function(t,r,a,i,s,o){n("xRange",e,t,r,a,i,s,o);var l=se(a),c=l||se(i),u=c||se(s);return"="===r&&u&&(r=""),l?t=">"===r||"<"===r?"<0.0.0":"*":r&&u?(c&&(i=0),s=0,">"===r?(r=">=",c?(a=+a+1,i=0,s=0):(i=+i+1,s=0)):"<="===r&&(r="<",c?a=+a+1:i=+i+1),t=r+a+"."+i+"."+s):c?t=">="+a+".0.0 <"+(+a+1)+".0.0":u&&(t=">="+a+"."+i+".0 <"+a+"."+(+i+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(a[K],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(i)}))),s=s.map((function(e){return new re(e,this.options)}),this)},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new ie(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ie.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t<this.set.length;t++)if(le(this.set[t],e,this.options))return!0;return!1},t.satisfies=ce,t.maxSatisfying=function(e,t,n){var r=null,a=null;try{var i=new ie(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==a.compare(e)||(a=new $(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,a=null;try{var i=new ie(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==a.compare(e)||(a=new $(r=e,n)))})),r},t.minVersion=function(e,t){e=new ie(e,t);var n=new $("0.0.0");if(e.test(n))return n;if(n=new $("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 $(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!X(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 ie(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return ue(e,t,"<",n)},t.gtr=function(e,t,n){return ue(e,t,">",n)},t.outside=ue,t.prerelease=function(e,t){var n=V(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new ie(e,n),t=new ie(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(a[A]);if(null==t)return null;return V(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},function(e,t,n){"use strict";const r=1===parseInt(process.env.ELECTRON_IS_DEV,10),a="ELECTRON_IS_DEV"in process.env;e.exports=a?r:process.defaultApp||/node_modules[\\/]electron[\\/]/.test(process.execPath)},function(e,t,n){var r=n(40),a=n(54),i=n(9),s=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||a(e)||!!(s&&e&&e[s])}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(324),a=n(159),i=n(17),s=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=s},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var a=n(),i=16-(a-r);if(r=a,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(29),a=n(32);e.exports=function(e,t){return e&&r(t,a(t),e)}},function(e,t,n){var r=n(29),a=n(49);e.exports=function(e,t){return e&&r(t,a(t),e)}},function(e,t,n){var r=n(16),a=n(58),i=n(329),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=a(e),n=[];for(var o in e)("constructor"!=o||!t&&s.call(e,o))&&n.push(o);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(29),a=n(110);e.exports=function(e,t){return r(e,a(e),t)}},function(e,t,n){var r=n(29),a=n(165);e.exports=function(e,t){return r(e,a(e),t)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(115),a=n(334),i=n(335),s=n(336),o=n(166);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return a(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(e,n);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Set]":return new l;case"[object Symbol]":return s(e)}}},function(e,t,n){var r=n(115);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(40),a=r?r.prototype:void 0,i=a?a.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(16),a=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(339),a=n(57),i=n(101),s=i&&i.isMap,o=s?a(s):r;e.exports=o},function(e,t,n){var r=n(59),a=n(21);e.exports=function(e){return a(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(341),a=n(57),i=n(101),s=i&&i.isSet,o=s?a(s):r;e.exports=o},function(e,t,n){var r=n(59),a=n(21);e.exports=function(e){return a(e)&&"[object Set]"==r(e)}},function(e,t,n){var r=n(60),a=n(112);e.exports=function(e,t){return t.length<2?e:r(e,a(t,0,-1))}},function(e,t,n){var r=n(65);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){var r=n(16),a=n(345),i=n(170),s=Math.max,o=Math.min;e.exports=function(e,t,n){var l,c,u,p,d,h,f=0,m=!1,S=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=l,r=c;return l=c=void 0,f=t,p=e.apply(r,n)}function v(e){return f=e,d=setTimeout(b,t),m?g(e):p}function _(e){var n=e-h;return void 0===h||n>=t||n<0||S&&e-f>=u}function b(){var e=a();if(_(e))return P(e);d=setTimeout(b,function(e){var n=t-(e-h);return S?o(n,u-(e-f)):n}(e))}function P(e){return d=void 0,y&&l?g(e):(l=c=void 0,p)}function w(){var e=a(),n=_(e);if(l=arguments,c=this,h=e,n){if(void 0===d)return v(h);if(S)return clearTimeout(d),d=setTimeout(b,t),g(h)}return void 0===d&&(d=setTimeout(b,t)),p}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(S="maxWait"in n)?s(i(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==d&&clearTimeout(d),f=0,l=h=c=d=void 0},w.flush=function(){return void 0===d?p:P(a())},w}},function(e,t,n){var r=n(20);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(347),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(80),a=n(171),i=n(141),s=n(349),o=n(16),l=n(49),c=n(172);e.exports=function e(t,n,u,p,d){t!==n&&i(n,(function(i,l){if(d||(d=new r),o(i))s(t,n,l,u,e,p,d);else{var h=p?p(c(t,l),i,l+"",t,n,d):void 0;void 0===h&&(h=i),a(t,l,h)}}),l)}},function(e,t,n){var r=n(171),a=n(163),i=n(166),s=n(164),o=n(167),l=n(54),c=n(9),u=n(48),p=n(55),d=n(102),h=n(16),f=n(65),m=n(79),S=n(172),y=n(350);e.exports=function(e,t,n,g,v,_,b){var P=S(e,n),w=S(t,n),E=b.get(w);if(E)r(e,n,E);else{var k=_?_(P,w,n+"",e,t,b):void 0,T=void 0===k;if(T){var C=c(w),I=!C&&p(w),A=!C&&!I&&m(w);k=w,C||I||A?c(P)?k=P:u(P)?k=s(P):I?(T=!1,k=a(w,!0)):A?(T=!1,k=i(w,!0)):k=[]:f(w)||l(w)?(k=P,l(P)?k=y(P):h(P)&&!d(P)||(k=o(w))):T=!1}T&&(b.set(w,k),v(k,w,g,_,b),b.delete(w)),r(e,n,k)}}},function(e,t,n){var r=n(29),a=n(49);e.exports=function(e){return r(e,a(e))}},function(e,t){e.exports=function(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a<i;){var s=e[a];t(r,s,n(s),e)}return r}},function(e,t,n){var r=n(76);e.exports=function(e,t,n,a){return r(e,(function(e,r,i){t(a,e,n(e),i)})),a}},function(e,t,n){var r=n(175),a=n(153);e.exports=function(e,t){return r(e,t,(function(t,n){return a(e,n)}))}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(356);e.exports=function(e,t,n){for(var a=-1,i=e.criteria,s=t.criteria,o=i.length,l=n.length;++a<o;){var c=r(i[a],s[a]);if(c)return a>=l?c:c*("desc"==n[a]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(43);e.exports=function(e,t){if(e!==t){var n=void 0!==e,a=null===e,i=e==e,s=r(e),o=void 0!==t,l=null===t,c=t==t,u=r(t);if(!l&&!u&&!s&&e>t||s&&o&&c&&!l&&!u||a&&o&&c||!n&&c||!i)return 1;if(!a&&!s&&!u&&e<t||u&&n&&i&&!a&&!s||l&&n&&i||!o&&i||!c)return-1}return 0}},function(e,t,n){var r=n(41);e.exports=function(e,t){for(var n=-1,a=e.length,i=0,s=[];++n<a;){var o=e[n],l=t?t(o):o;if(!n||!r(l,c)){var c=l;s[i++]=0===o?0:o}}return s}},function(e,t,n){var r=n(162),a=n(76),i=n(173),s=n(9);e.exports=function(e,t){return(s(e)?r:a)(e,i(t))}},function(e,t,n){var r=n(12),a=n(25),i=n(32);e.exports=function(e){return function(t,n,s){var o=Object(t);if(!a(t)){var l=r(n,3);t=i(t),n=function(e){return l(o[e],e,o)}}var c=e(t,n,s);return c>-1?o[l?t[c]:c]:void 0}}},function(e,t,n){var r=n(157),a=n(12),i=n(118),s=Math.max;e.exports=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var l=null==n?0:i(n);return l<0&&(l=s(o+l,0)),r(e,a(t,3),l)}},function(e,t,n){var r=n(29),a=n(116),i=n(49),s=a((function(e,t){r(t,i(t),e)}));e.exports=s},function(e,t,n){var r=n(363),a=n(364),i=n(367),s=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(a(t).replace(s,"")),e,"")}}},function(e,t){e.exports=function(e,t,n,r){var a=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++a]);++a<i;)n=t(n,e[a],a,e);return n}},function(e,t,n){var r=n(365),a=n(61),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=a(e))&&e.replace(i,r).replace(s,"")}},function(e,t,n){var r=n(366)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(368),a=n(369),i=n(61),s=n(370);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?a(e)?s(e):r(e):e.match(t)||[]}},function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},function(e,t){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},function(e,t){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+n+"]",a="\\d+",i="[\\u2700-\\u27bf]",s="[a-z\\xdf-\\xf6\\xf8-\\xff]",o="[^\\ud800-\\udfff"+n+a+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="[A-Z\\xc0-\\xd6\\xd8-\\xde]",p="(?:"+s+"|"+o+")",d="(?:"+u+"|"+o+")",h="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",f="[\\ufe0e\\ufe0f]?"+h+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",l,c].join("|")+")[\\ufe0e\\ufe0f]?"+h+")*"),m="(?:"+[i,l,c].join("|")+")"+f,S=RegExp([u+"?"+s+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[r,u,"$"].join("|")+")",d+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[r,u+p,"$"].join("|")+")",u+"?"+p+"+(?:['’](?:d|ll|m|re|s|t|ve))?",u+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a,m].join("|"),"g");e.exports=function(e){return e.match(S)||[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.url=void 0;const r=n(181),a=n(88)("socket.io-client:url");t.url=function(e,t="",n){let i=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(a("protocol-less url %s",e),e=void 0!==n?n.protocol+"//"+e:"https://"+e),a("parse %s",e),i=r(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const s=-1!==i.host.indexOf(":")?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+s+":"+i.port+t,i.href=i.protocol+"://"+s+(n&&n.port===i.port?"":":"+i.port),i}},function(e,t,n){e.exports=function(e){function t(e){let n,a=null;function i(...e){if(!i.enabled)return;const r=i,a=Number(new Date),s=a-(n||a);r.diff=s,r.prev=n,r.curr=a,n=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,a)=>{if("%%"===n)return"%";o++;const i=t.formatters[a];if("function"==typeof i){const t=e[o];n=i.call(r,t),e.splice(o,1),o--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=r,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?t.enabled(e):a,set:e=>{a=e}}),"function"==typeof t.init&&t.init(i),i}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(n=0;n<a;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(373),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},function(e,t){var n=1e3,r=6e4,a=60*r,i=24*a;function s(e,t,n,r){var a=t>=1.5*n;return Math.round(e/n)+" "+r+(a?"s":"")}e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===o&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return s(e,t,i,"day");if(t>=a)return s(e,t,a,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=a)return Math.round(e/a)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){const r=n(375);e.exports=(e,t)=>new r(e,t),e.exports.Socket=r,e.exports.protocol=r.protocol,e.exports.Transport=n(119),e.exports.transports=n(183),e.exports.parser=n(62)},function(e,t,n){const r=n(183),a=n(63),i=n(64)("engine.io-client:socket"),s=n(62),o=n(181),l=n(120);class c extends a{constructor(e,t={}){super(),e&&"object"==typeof e&&(t=e,e=null),e?(e=o(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=o(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,jsonp:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{}},t),this.opts.path=this.opts.path.replace(/\/$/,"")+"/","string"==typeof this.opts.query&&(this.opts.query=l.decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close")},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){i('creating transport "%s"',e);const t=function(e){const t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.opts.query);t.EIO=s.protocol,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return i("options: %j",n),new r[e](n)}open(){let e;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){const e=this;return void setTimeout((function(){e.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return i("error while creating transport: %s",e),this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){i("setting transport %s",e.name);const t=this;this.transport&&(i("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))}probe(e){i('probing transport "%s"',e);let t=this.createTransport(e,{probe:1}),n=!1;const r=this;function a(){if(r.onlyBinaryUpgrades){const e=!this.supportsBinary&&r.transport.supportsBinary;n=n||e}n||(i('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(a){if(!n)if("pong"===a.type&&"probe"===a.data){if(i('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;c.priorWebsocketSuccess="websocket"===t.name,i('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(i("changing transport and sending upgrade packet"),d(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())}))}else{i('probe transport "%s" failed',e);const n=new Error("probe error");n.transport=t.name,r.emit("upgradeError",n)}})))}function s(){n||(n=!0,d(),t.close(),t=null)}function o(n){const a=new Error("probe error: "+n);a.transport=t.name,s(),i('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",a)}function l(){o("transport closed")}function u(){o("socket closed")}function p(e){t&&e.name!==t.name&&(i('"%s" works - aborting "%s"',e.name,t.name),s())}function d(){t.removeListener("open",a),t.removeListener("error",o),t.removeListener("close",l),r.removeListener("close",u),r.removeListener("upgrading",p)}c.priorWebsocketSuccess=!1,t.once("open",a),t.once("error",o),t.once("close",l),this.once("close",u),this.once("upgrading",p),t.open()}onOpen(){if(i("socket open"),this.readyState="open",c.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause){i("starting upgrade probes");let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(i('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emit("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else i('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){clearTimeout(this.pingTimeoutTimer),this.pingTimeoutTimer=setTimeout(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()}flush(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(i("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const a={type:e,data:t,options:n};this.emit("packetCreate",a),this.writeBuffer.push(a),r&&this.once("flush",r),this.flush()}close(){const e=this;function t(){e.onClose("forced close"),i("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function r(){e.once("upgrade",n),e.once("upgradeError",n)}return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():t()})):this.upgrading?r():t()),this}onError(e){i("socket error %j",e),c.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)}onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){i('socket close with reason: "%s"',e);const n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emit("close",e,t),n.writeBuffer=[],n.prevBufferLen=0}}filterUpgrades(e){const t=[];let n=0;const r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}c.priorWebsocketSuccess=!1,c.protocol=s.protocol,e.exports=c},function(e,t){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},function(e,t,n){const r=n(184),a=n(185),i=n(63),{pick:s}=n(188),o=n(89),l=n(64)("engine.io-client:polling-xhr");function c(){}const u=null!=new r({xdomain:!1}).responseType;class p extends i{constructor(e,t){super(),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.create()}create(){const e=s(this.opts,"agent","enablesXDR","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new r(e),n=this;try{l("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&t.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout((function(){n.onError("number"==typeof t.status?t.status:0)}),0))},l("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout((function(){n.onError(e)}),0)}"undefined"!=typeof document&&(this.index=p.requestsCount++,p.requests[this.index]=this)}onSuccess(){this.emit("success"),this.cleanup()}onData(e){this.emit("data",e),this.onSuccess()}onError(e){this.emit("error",e),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=c:this.xhr.onreadystatechange=c,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete p.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&this.onData(e)}hasXDR(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR}abort(){this.cleanup()}}if(p.requestsCount=0,p.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",d);else if("function"==typeof addEventListener){addEventListener("onpagehide"in o?"pagehide":"unload",d,!1)}function d(){for(let e in p.requests)p.requests.hasOwnProperty(e)&&p.requests[e].abort()}e.exports=class extends a{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=u&&!t}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new p(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e}),r=this;n.on("success",t),n.on("error",(function(e){r.onError("xhr post error",e)}))}doPoll(){l("xhr poll");const e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e}},e.exports.Request=p},function(e,t,n){const{PACKET_TYPES:r}=n(186),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),i="function"==typeof ArrayBuffer,s=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+e)},n.readAsDataURL(e)};e.exports=({type:e,data:t},n,o)=>{return a&&t instanceof Blob?n?o(t):s(t,o):i&&(t instanceof ArrayBuffer||(l=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer))?n?o(t instanceof ArrayBuffer?t:t.buffer):s(new Blob([t]),o):o(r[e]+(t||""));var l}},function(e,t,n){const{PACKET_TYPES_REVERSE:r,ERROR_PACKET:a}=n(186);let i;"function"==typeof ArrayBuffer&&(i=n(380));const s=(e,t)=>{if(i){const n=i.decode(e);return o(n,t)}return{base64:!0,data:e}},o=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}};e.exports=(e,t)=>{if("string"!=typeof e)return{type:"message",data:o(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:s(e.substring(1),t)};return r[n]?e.length>1?{type:r[n],data:e.substring(1)}:{type:r[n]}:a}},function(e,t){!function(e){"use strict";t.encode=function(t){var n,r=new Uint8Array(t),a=r.length,i="";for(n=0;n<a;n+=3)i+=e[r[n]>>2],i+=e[(3&r[n])<<4|r[n+1]>>4],i+=e[(15&r[n+1])<<2|r[n+2]>>6],i+=e[63&r[n+2]];return a%3==2?i=i.substring(0,i.length-1)+"=":a%3==1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(t){var n,r,a,i,s,o=.75*t.length,l=t.length,c=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var u=new ArrayBuffer(o),p=new Uint8Array(u);for(n=0;n<l;n+=4)r=e.indexOf(t[n]),a=e.indexOf(t[n+1]),i=e.indexOf(t[n+2]),s=e.indexOf(t[n+3]),p[c++]=r<<2|a>>4,p[c++]=(15&a)<<4|i>>2,p[c++]=(3&i)<<6|63&s;return u}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},function(e,t,n){e.exports=function(e){function t(e){let n,a=null;function i(...e){if(!i.enabled)return;const r=i,a=Number(new Date),s=a-(n||a);r.diff=s,r.prev=n,r.curr=a,n=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,a)=>{if("%%"===n)return"%";o++;const i=t.formatters[a];if("function"==typeof i){const t=e[o];n=i.call(r,t),e.splice(o,1),o--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=r,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?t.enabled(e):a,set:e=>{a=e}}),"function"==typeof t.init&&t.init(i),i}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(n=0;n<a;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(382),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},function(e,t){var n=1e3,r=6e4,a=60*r,i=24*a;function s(e,t,n,r){var a=t>=1.5*n;return Math.round(e/n)+" "+r+(a?"s":"")}e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===o&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return s(e,t,i,"day");if(t>=a)return s(e,t,a,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=a)return Math.round(e/a)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){const r=n(185),a=n(89),i=/\n/g,s=/\\n/g;let o;e.exports=class extends r{constructor(e){super(e),this.query=this.query||{},o||(o=a.___eio=a.___eio||[]),this.index=o.length;const t=this;o.push((function(e){t.onData(e)})),this.query.j=this.index}get supportsBinary(){return!1}doClose(){this.script&&(this.script.onerror=()=>{},this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),super.doClose()}doPoll(){const e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};const n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t;"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){const e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)}),100)}doWrite(e,t){const n=this;let r;if(!this.form){const e=document.createElement("form"),t=document.createElement("textarea"),n=this.iframeId="eio_iframe_"+this.index;e.className="socketio",e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.target=n,e.method="POST",e.setAttribute("accept-charset","utf-8"),t.name="d",e.appendChild(t),document.body.appendChild(e),this.form=e,this.area=t}function a(){o(),t()}function o(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{const e='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(e)}catch(e){r=document.createElement("iframe"),r.name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),o(),e=e.replace(s,"\\\n"),this.area.value=e.replace(i,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&a()}:this.iframe.onload=a}}},function(e,t,n){const r=n(119),a=n(62),i=n(120),s=n(187),{pick:o}=n(188),{WebSocket:l,usingBrowserWebSocket:c,defaultBinaryType:u}=n(385),p=n(64)("engine.io-client:websocket"),d="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class h extends r{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=d?{}:o(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=c&&!d?t?new l(e,t):new l(e):new l(e,t,n)}catch(e){return this.emit("error",e)}this.ws.binaryType=this.socket.binaryType||u,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){const t=this;this.writable=!1;let n=e.length,r=0;const i=n;for(;r<i;r++)!function(e){a.encodePacket(e,t.supportsBinary,(function(r){const a={};if(!c&&(e.options&&(a.compress=e.options.compress),t.opts.perMessageDeflate)){("string"==typeof r?Buffer.byteLength(r):r.length)<t.opts.perMessageDeflate.threshold&&(a.compress=!1)}try{c?t.ws.send(r):t.ws.send(r,a)}catch(e){p("websocket closed before onclose event")}--n||s()}))}(e[r]);function s(){t.emit("flush"),setTimeout((function(){t.writable=!0,t.emit("drain")}),0)}}onClose(){r.prototype.onClose.call(this)}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let n="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=s()),this.supportsBinary||(e.b64=1),e=i.encode(e),e.length&&(e="?"+e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+e}check(){return!(!l||"__initialize"in l&&this.name===h.prototype.name)}}e.exports=h},function(e,t,n){const r=n(89);e.exports={WebSocket:r.WebSocket||r.MozWebSocket,usingBrowserWebSocket:!0,defaultBinaryType:"arraybuffer"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const r=n(190);t.deconstructPacket=function(e){const t=[],n=e.data,a=e;return a.data=function e(t,n){if(!t)return t;if(r.isBinary(t)){const e={_placeholder:!0,num:n.length};return n.push(t),e}if(Array.isArray(t)){const r=new Array(t.length);for(let a=0;a<t.length;a++)r[a]=e(t[a],n);return r}if("object"==typeof t&&!(t instanceof Date)){const r={};for(const a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r}return t}(n,t),a.attachments=t.length,{packet:a,buffers:t}},t.reconstructPacket=function(e,t){return e.data=function e(t,n){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<n.length)return n[t.num];throw new Error("illegal attachments")}if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=e(t[r],n);else if("object"==typeof t)for(const r in t)t.hasOwnProperty(r)&&(t[r]=e(t[r],n));return t}(e.data,t),e.attachments=void 0,e}},function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r))}),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(388)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,t,n){e.exports=function(e){function t(e){let n,a=null;function i(...e){if(!i.enabled)return;const r=i,a=Number(new Date),s=a-(n||a);r.diff=s,r.prev=n,r.curr=a,n=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,a)=>{if("%%"===n)return"%";o++;const i=t.formatters[a];if("function"==typeof i){const t=e[o];n=i.call(r,t),e.splice(o,1),o--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=r,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?t.enabled(e):a,set:e=>{a=e}}),"function"==typeof t.init&&t.init(i),i}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(n=0;n<a;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(389),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},function(e,t){var n=1e3,r=6e4,a=60*r,i=24*a;function s(e,t,n,r){var a=t>=1.5*n;return Math.round(e/n)+" "+r+(a?"s":"")}e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===o&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return s(e,t,i,"day");if(t>=a)return s(e,t,a,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=a)return Math.round(e/a)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=391},function(e,t,n){var r=n(393),a=n(117),i=n(180);e.exports=function(e){return function(t,n,s){return s&&"number"!=typeof s&&a(t,n,s)&&(n=s=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),s=void 0===s?t<n?1:-1:i(s),r(t,n,s,e)}}},function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,a,i){for(var s=-1,o=r(n((t-e)/(a||1)),0),l=Array(o);o--;)l[i?o:++s]=e,e+=a;return l}},function(e,t,n){"use strict"; /** @license React v16.14.0 * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(193),a="function"==typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,s=a?Symbol.for("react.portal"):60106,o=a?Symbol.for("react.fragment"):60107,l=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,u=a?Symbol.for("react.provider"):60109,p=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.forward_ref"):60112,h=a?Symbol.for("react.suspense"):60113,f=a?Symbol.for("react.memo"):60115,m=a?Symbol.for("react.lazy"):60116,S="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function _(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}function b(){}function P(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=_.prototype;var w=P.prototype=new b;w.constructor=P,r(w,_.prototype),w.isPureReactComponent=!0;var E={current:null},k=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,a={},s=null,o=null;if(null!=t)for(r in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(s=""+t.key),t)k.call(t,r)&&!T.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:i,type:e,key:s,ref:o,props:a,_owner:E.current}}function I(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var A=/\/+/g,O=[];function x(e,t,n,r){if(O.length){var a=O.pop();return a.result=e,a.keyPrefix=t,a.func=n,a.context=r,a.count=0,a}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>O.length&&O.push(e)}function R(e,t,n){return null==e?0:function e(t,n,r,a){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var l=!1;if(null===t)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case s:l=!0}}if(l)return r(a,t,""===n?"."+D(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+D(o=t[c],c);l+=e(o,u,r,a)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=S&&t[S]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),c=0;!(o=t.next()).done;)l+=e(o=o.value,u=n+D(o,c++),r,a);else if("object"===o)throw r=""+t,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function H(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?G(e,r,n,(function(e){return e})):null!=e&&(I(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+n)),r.push(e))}function G(e,t,n,r,a){var i="";null!=n&&(i=(""+n).replace(A,"$&/")+"/"),R(e,F,t=x(t,i,r,a)),N(t)}var U={current:null};function L(){var e=U.current;if(null===e)throw Error(y(321));return e}var j={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return G(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,H,t=x(null,null,t,n)),N(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return G(e,t,null,(function(e){return e})),t},only:function(e){if(!I(e))throw Error(y(143));return e}},t.Component=_,t.Fragment=o,t.Profiler=c,t.PureComponent=P,t.StrictMode=l,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null==e)throw Error(y(267,e));var a=r({},e.props),s=e.key,o=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,l=E.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)k.call(t,u)&&!T.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){c=Array(u);for(var p=0;p<u;p++)c[p]=arguments[p+2];a.children=c}return{$$typeof:i,type:e.type,key:s,ref:o,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=I,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return L().useCallback(e,t)},t.useContext=function(e,t){return L().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return L().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return L().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return L().useLayoutEffect(e,t)},t.useMemo=function(e,t){return L().useMemo(e,t)},t.useReducer=function(e,t,n){return L().useReducer(e,t,n)},t.useRef=function(e){return L().useRef(e)},t.useState=function(e){return L().useState(e)},t.version="16.14.0"},function(e,t,n){var r=n(118);e.exports=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=r(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},function(e,t,n){var r,a,i=n(138),s=n(139),o=0,l=0;e.exports=function(e,t,n){var c=t&&n||0,u=t||[],p=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:a;if(null==p||null==d){var h=i();null==p&&(p=r=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==d&&(d=a=16383&(h[6]<<8|h[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,S=f-o+(m-l)/1e4;if(S<0&&void 0===e.clockseq&&(d=d+1&16383),(S<0||f>o)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=f,l=m,a=d;var y=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;u[c++]=y>>>24&255,u[c++]=y>>>16&255,u[c++]=y>>>8&255,u[c++]=255&y;var g=f/4294967296*1e4&268435455;u[c++]=g>>>8&255,u[c++]=255&g,u[c++]=g>>>24&15|16,u[c++]=g>>>16&255,u[c++]=d>>>8|128,u[c++]=255&d;for(var v=0;v<6;++v)u[c+v]=p[v];return t||s(u)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e);return{getItem:function(e){return new Promise((function(n,r){n(t.getItem(e))}))},setItem:function(e,n){return new Promise((function(r,a){r(t.setItem(e,n))}))},removeItem:function(e){return new Promise((function(n,r){n(t.removeItem(e))}))}}};var r,a=n(398),i=(r=a)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";t.__esModule=!0;var 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};function a(){}t.default=function(e){var t=e+"Storage";return function(e){if("object"!==("undefined"==typeof self?"undefined":r(self))||!(e in self))return!1;try{var t=self[e],n="redux-persist "+e+" test";t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch(e){return!1}return!0}(t)?self[t]:i};var i={getItem:a,setItem:a,removeItem:a}},function(e,t,n){"use strict"; /** @license React v16.14.0 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(0),a=n(193),i=n(400);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(s(227));function o(e,t,n,r,a,i,s,o,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var l=!1,c=null,u=!1,p=null,d={onError:function(e){l=!0,c=e}};function h(e,t,n,r,a,i,s,u,p){l=!1,c=null,o.apply(d,arguments)}var f=null,m=null,S=null;function y(e,t,n){var r=e.type||"unknown-event";e.currentTarget=S(n),function(e,t,n,r,a,i,o,d,f){if(h.apply(this,arguments),l){if(!l)throw Error(s(198));var m=c;l=!1,c=null,u||(u=!0,p=m)}}(r,t,void 0,e),e.currentTarget=null}var g=null,v={};function _(){if(g)for(var e in v){var t=v[e],n=g.indexOf(e);if(!(-1<n))throw Error(s(96,e));if(!P[n]){if(!t.extractEvents)throw Error(s(97,e));for(var r in P[n]=t,n=t.eventTypes){var a=void 0,i=n[r],o=t,l=r;if(w.hasOwnProperty(l))throw Error(s(99,l));w[l]=i;var c=i.phasedRegistrationNames;if(c){for(a in c)c.hasOwnProperty(a)&&b(c[a],o,l);a=!0}else i.registrationName?(b(i.registrationName,o,l),a=!0):a=!1;if(!a)throw Error(s(98,r,e))}}}}function b(e,t,n){if(E[e])throw Error(s(100,e));E[e]=t,k[e]=t.eventTypes[n].dependencies}var P=[],w={},E={},k={};function T(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!v.hasOwnProperty(t)||v[t]!==r){if(v[t])throw Error(s(102,t));v[t]=r,n=!0}}n&&_()}var C=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),I=null,A=null,O=null;function x(e){if(e=m(e)){if("function"!=typeof I)throw Error(s(280));var t=e.stateNode;t&&(t=f(t),I(e.stateNode,e.type,t))}}function N(e){A?O?O.push(e):O=[e]:A=e}function R(){if(A){var e=A,t=O;if(O=A=null,x(e),t)for(e=0;e<t.length;e++)x(t[e])}}function D(e,t){return e(t)}function H(e,t,n,r,a){return e(t,n,r,a)}function F(){}var G=D,U=!1,L=!1;function j(){null===A&&null===O||(F(),R())}function M(e,t,n){if(L)return e(t,n);L=!0;try{return G(e,t,n)}finally{L=!1,j()}}var B=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,K=Object.prototype.hasOwnProperty,q={},V={};function $(e,t,n,r,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){W[e]=new $(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];W[t]=new $(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){W[e]=new $(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){W[e]=new $(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){W[e]=new $(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){W[e]=new $(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){W[e]=new $(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){W[e]=new $(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){W[e]=new $(e,5,!1,e.toLowerCase(),null,!1)}));var z=/[\-:]([a-z])/g;function J(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(z,J);W[t]=new $(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(z,J);W[t]=new $(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(z,J);W[t]=new $(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){W[e]=new $(e,1,!1,e.toLowerCase(),null,!1)})),W.xlinkHref=new $("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){W[e]=new $(e,1,!1,e.toLowerCase(),null,!0)}));var X=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Q(e,t,n,r){var a=W.hasOwnProperty(t)?W[t]:null;(null!==a?0===a.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!K.call(V,e)||!K.call(q,e)&&(B.test(e)?V[e]=!0:(q[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var Y=/^(.*)[\\\/]/,Z="function"==typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,re=Z?Symbol.for("react.strict_mode"):60108,ae=Z?Symbol.for("react.profiler"):60114,ie=Z?Symbol.for("react.provider"):60109,se=Z?Symbol.for("react.context"):60110,oe=Z?Symbol.for("react.concurrent_mode"):60111,le=Z?Symbol.for("react.forward_ref"):60112,ce=Z?Symbol.for("react.suspense"):60113,ue=Z?Symbol.for("react.suspense_list"):60120,pe=Z?Symbol.for("react.memo"):60115,de=Z?Symbol.for("react.lazy"):60116,he=Z?Symbol.for("react.block"):60121,fe="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=fe&&e[fe]||e["@@iterator"])?e:null}function Se(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ae:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case se:return"Context.Consumer";case ie:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case pe:return Se(e.type);case he:return Se(e.render);case de:if(e=1===e._status?e._result:null)return Se(e)}return null}function ye(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,a=e._debugSource,i=Se(e.type);n=null,r&&(n=Se(r.type)),r=i,i="",a?i=" (at "+a.fileName.replace(Y,"")+":"+a.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ge(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ve(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function _e(e){e._valueTracker||(e._valueTracker=function(e){var t=ve(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function be(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ve(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Pe(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function we(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ge(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ee(e,t){null!=(t=t.checked)&&Q(e,"checked",t,!1)}function ke(e,t){Ee(e,t);var n=ge(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ce(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ce(e,t.type,ge(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ce(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ie(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ae(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ge(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ge(n)}}function Ne(e,t){var n=ge(t.value),r=ge(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var De="http://www.w3.org/1999/xhtml",He="http://www.w3.org/2000/svg";function Fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ge(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ue,Le=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==He||"innerHTML"in e)e.innerHTML=t;else{for((Ue=Ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function je(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Me(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Be={animationend:Me("Animation","AnimationEnd"),animationiteration:Me("Animation","AnimationIteration"),animationstart:Me("Animation","AnimationStart"),transitionend:Me("Transition","TransitionEnd")},Ke={},qe={};function Ve(e){if(Ke[e])return Ke[e];if(!Be[e])return e;var t,n=Be[e];for(t in n)if(n.hasOwnProperty(t)&&t in qe)return Ke[e]=n[t];return e}C&&(qe=document.createElement("div").style,"AnimationEvent"in window||(delete Be.animationend.animation,delete Be.animationiteration.animation,delete Be.animationstart.animation),"TransitionEvent"in window||delete Be.transitionend.transition);var $e=Ve("animationend"),We=Ve("animationiteration"),ze=Ve("animationstart"),Je=Ve("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qe=new("function"==typeof WeakMap?WeakMap:Map);function Ye(e){var t=Qe.get(e);return void 0===t&&(t=new Map,Qe.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Ze(e)!==e)throw Error(s(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return tt(a),e;if(i===r)return tt(a),t;i=i.sibling}throw Error(s(188))}if(n.return!==r.return)n=a,r=i;else{for(var o=!1,l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(s(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function at(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function st(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)y(e,t[r],n[r]);else t&&y(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ot(e){if(null!==e&&(it=rt(it,e)),e=it,it=null,e){if(at(e,st),it)throw Error(s(95));if(u)throw e=p,u=!1,p=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!C)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ut=[];function pt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ut.length&&ut.push(e)}function dt(e,t,n,r){if(ut.length){var a=ut.pop();return a.topLevelType=e,a.eventSystemFlags=r,a.nativeEvent=t,a.targetInst=n,a}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Cn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var a=lt(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,s=e.eventSystemFlags;0===n&&(s|=64);for(var o=null,l=0;l<P.length;l++){var c=P[l];c&&(c=c.extractEvents(r,t,i,a,s))&&(o=rt(o,c))}ot(o)}}function ft(e,t,n){if(!n.has(e)){switch(e){case"scroll":zt(t,"scroll",!0);break;case"focus":case"blur":zt(t,"focus",!0),zt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&zt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&Wt(e,t)}n.set(e,null)}}var mt,St,yt,gt=!1,vt=[],_t=null,bt=null,Pt=null,wt=new Map,Et=new Map,kt=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ct="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function It(e,t,n,r,a){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:a,container:r}}function At(e,t){switch(e){case"focus":case"blur":_t=null;break;case"dragenter":case"dragleave":bt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":wt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Et.delete(t.pointerId)}}function Ot(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e=It(t,n,r,a,i),null!==t&&(null!==(t=In(t))&&St(t)),e):(e.eventSystemFlags|=r,e)}function xt(e){var t=Cn(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=In(t);return null!==n&&St(n),e.blockedOn=t,!1}return!0}function Rt(e,t,n){Nt(e)&&n.delete(t)}function Dt(){for(gt=!1;0<vt.length;){var e=vt[0];if(null!==e.blockedOn){null!==(e=In(e.blockedOn))&&mt(e);break}var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:vt.shift()}null!==_t&&Nt(_t)&&(_t=null),null!==bt&&Nt(bt)&&(bt=null),null!==Pt&&Nt(Pt)&&(Pt=null),wt.forEach(Rt),Et.forEach(Rt)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,gt||(gt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Dt)))}function Ft(e){function t(t){return Ht(t,e)}if(0<vt.length){Ht(vt[0],e);for(var n=1;n<vt.length;n++){var r=vt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&Ht(_t,e),null!==bt&&Ht(bt,e),null!==Pt&&Ht(Pt,e),wt.forEach(t),Et.forEach(t),n=0;n<kt.length;n++)(r=kt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<kt.length&&null===(n=kt[0]).blockedOn;)xt(n),null===n.blockedOn&&kt.shift()}var Gt={},Ut=new Map,Lt=new Map,jt=["abort","abort",$e,"animationEnd",We,"animationIteration",ze,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Je,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1],i="on"+(a[0].toUpperCase()+a.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Lt.set(r,t),Ut.set(r,i),Gt[a]=i}}Mt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(jt,2);for(var Bt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Kt=0;Kt<Bt.length;Kt++)Lt.set(Bt[Kt],0);var qt=i.unstable_UserBlockingPriority,Vt=i.unstable_runWithPriority,$t=!0;function Wt(e,t){zt(t,e,!1)}function zt(e,t,n){var r=Lt.get(t);switch(void 0===r?2:r){case 0:r=Jt.bind(null,t,1,e);break;case 1:r=Xt.bind(null,t,1,e);break;default:r=Qt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Jt(e,t,n,r){U||F();var a=Qt,i=U;U=!0;try{H(a,e,t,n,r)}finally{(U=i)||j()}}function Xt(e,t,n,r){Vt(qt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){if($t)if(0<vt.length&&-1<Tt.indexOf(e))e=It(null,e,t,n,r),vt.push(e);else{var a=Yt(e,t,n,r);if(null===a)At(e,r);else if(-1<Tt.indexOf(e))e=It(a,e,t,n,r),vt.push(e);else if(!function(e,t,n,r,a){switch(t){case"focus":return _t=Ot(_t,e,t,n,r,a),!0;case"dragenter":return bt=Ot(bt,e,t,n,r,a),!0;case"mouseover":return Pt=Ot(Pt,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return wt.set(i,Ot(wt.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Et.set(i,Ot(Et.get(i)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r)){At(e,r),e=dt(e,r,null,t);try{M(ht,e)}finally{pt(e)}}}}function Yt(e,t,n,r){if(null!==(n=Cn(n=lt(r)))){var a=Ze(n);if(null===a)n=null;else{var i=a.tag;if(13===i){if(null!==(n=et(a)))return n;n=null}else if(3===i){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}e=dt(e,r,n,t);try{M(ht,e)}finally{pt(e)}return null}var Zt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var rn=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62,""))}}function sn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var on=De;function ln(e,t){var n=Ye(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=k[t];for(var r=0;r<t.length;r++)ft(t[r],e,n)}function cn(){}function un(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function pn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=pn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pn(r)}}function hn(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn=null,Sn=null;function yn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function gn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var vn="function"==typeof setTimeout?setTimeout:void 0,_n="function"==typeof clearTimeout?clearTimeout:void 0;function bn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Pn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var wn=Math.random().toString(36).slice(2),En="__reactInternalInstance$"+wn,kn="__reactEventHandlers$"+wn,Tn="__reactContainere$"+wn;function Cn(e){var t=e[En];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tn]||n[En]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Pn(e);null!==e;){if(n=e[En])return n;e=Pn(e)}return t}n=(e=n).parentNode}return null}function In(e){return!(e=e[En]||e[Tn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function An(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function On(e){return e[kn]||null}function xn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Nn(e,t){var n=e.stateNode;if(!n)return null;var r=f(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}function Rn(e,t,n){(t=Nn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Dn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=xn(t);for(t=n.length;0<t--;)Rn(n[t],"captured",e);for(t=0;t<n.length;t++)Rn(n[t],"bubbled",e)}}function Hn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Nn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Fn(e){e&&e.dispatchConfig.registrationName&&Hn(e._targetInst,null,e)}function Gn(e){at(e,Dn)}var Un=null,Ln=null,jn=null;function Mn(){if(jn)return jn;var e,t,n=Ln,r=n.length,a="value"in Un?Un.value:Un.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===a[i-t];t++);return jn=a.slice(e,1<t?1-t:void 0)}function Bn(){return!0}function Kn(){return!1}function qn(e,t,n,r){for(var a in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(a)&&((t=e[a])?this[a]=t(n):"target"===a?this.target=r:this[a]=n[a]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Bn:Kn,this.isPropagationStopped=Kn,this}function Vn(e,t,n,r){if(this.eventPool.length){var a=this.eventPool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)}function $n(e){if(!(e instanceof this))throw Error(s(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Wn(e){e.eventPool=[],e.getPooled=Vn,e.release=$n}a(qn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Bn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Bn)},persist:function(){this.isPersistent=Bn},isPersistent:Kn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Kn,this._dispatchInstances=this._dispatchListeners=null}}),qn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},qn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return a(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=a({},r.Interface,e),n.extend=r.extend,Wn(n),n},Wn(qn);var zn=qn.extend({data:null}),Jn=qn.extend({data:null}),Xn=[9,13,27,32],Qn=C&&"CompositionEvent"in window,Yn=null;C&&"documentMode"in document&&(Yn=document.documentMode);var Zn=C&&"TextEvent"in window&&!Yn,er=C&&(!Qn||Yn&&8<Yn&&11>=Yn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ar(e,t){switch(e){case"keyup":return-1!==Xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ir(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var sr=!1;var or={eventTypes:nr,extractEvents:function(e,t,n,r){var a;if(Qn)e:{switch(e){case"compositionstart":var i=nr.compositionStart;break e;case"compositionend":i=nr.compositionEnd;break e;case"compositionupdate":i=nr.compositionUpdate;break e}i=void 0}else sr?ar(e,n)&&(i=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=nr.compositionStart);return i?(er&&"ko"!==n.locale&&(sr||i!==nr.compositionStart?i===nr.compositionEnd&&sr&&(a=Mn()):(Ln="value"in(Un=r)?Un.value:Un.textContent,sr=!0)),i=zn.getPooled(i,t,n,r),a?i.data=a:null!==(a=ir(n))&&(i.data=a),Gn(i),a=i):a=null,(e=Zn?function(e,t){switch(e){case"compositionend":return ir(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(sr)return"compositionend"===e||!Qn&&ar(e,t)?(e=Mn(),jn=Ln=Un=null,sr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Jn.getPooled(nr.beforeInput,t,n,r)).data=e,Gn(t)):t=null,null===a?t:null===t?a:[a,t]}},lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lr[e.type]:"textarea"===t}var ur={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function pr(e,t,n){return(e=qn.getPooled(ur.change,e,t,n)).type="change",N(n),Gn(e),e}var dr=null,hr=null;function fr(e){ot(e)}function mr(e){if(be(An(e)))return e}function Sr(e,t){if("change"===e)return t}var yr=!1;function gr(){dr&&(dr.detachEvent("onpropertychange",vr),hr=dr=null)}function vr(e){if("value"===e.propertyName&&mr(hr))if(e=pr(hr,e,lt(e)),U)ot(e);else{U=!0;try{D(fr,e)}finally{U=!1,j()}}}function _r(e,t,n){"focus"===e?(gr(),hr=n,(dr=t).attachEvent("onpropertychange",vr)):"blur"===e&&gr()}function br(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mr(hr)}function Pr(e,t){if("click"===e)return mr(t)}function wr(e,t){if("input"===e||"change"===e)return mr(t)}C&&(yr=ct("input")&&(!document.documentMode||9<document.documentMode));var Er={eventTypes:ur,_isInputEventSupported:yr,extractEvents:function(e,t,n,r){var a=t?An(t):window,i=a.nodeName&&a.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===a.type)var s=Sr;else if(cr(a))if(yr)s=wr;else{s=br;var o=_r}else(i=a.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(s=Pr);if(s&&(s=s(e,t)))return pr(s,n,r);o&&o(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&Ce(a,"number",a.value)}},kr=qn.extend({view:null,detail:null}),Tr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Tr[e])&&!!t[e]}function Ir(){return Cr}var Ar=0,Or=0,xr=!1,Nr=!1,Rr=kr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ir,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ar;return Ar=e.screenX,xr?"mousemove"===e.type?e.screenX-t:0:(xr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Or;return Or=e.screenY,Nr?"mousemove"===e.type?e.screenY-t:0:(Nr=!0,0)}}),Dr=Rr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Hr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Fr={eventTypes:Hr,extractEvents:function(e,t,n,r,a){var i="mouseover"===e||"pointerover"===e,s="mouseout"===e||"pointerout"===e;if(i&&0==(32&a)&&(n.relatedTarget||n.fromElement)||!s&&!i)return null;(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,s)?(s=t,null!==(t=(t=n.relatedTarget||n.toElement)?Cn(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):s=null;if(s===t)return null;if("mouseout"===e||"mouseover"===e)var o=Rr,l=Hr.mouseLeave,c=Hr.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(o=Dr,l=Hr.pointerLeave,c=Hr.pointerEnter,u="pointer");if(e=null==s?i:An(s),i=null==t?i:An(t),(l=o.getPooled(l,s,n,r)).type=u+"leave",l.target=e,l.relatedTarget=i,(n=o.getPooled(c,t,n,r)).type=u+"enter",n.target=i,n.relatedTarget=e,u=t,(r=s)&&u)e:{for(c=u,s=0,e=o=r;e;e=xn(e))s++;for(e=0,t=c;t;t=xn(t))e++;for(;0<s-e;)o=xn(o),s--;for(;0<e-s;)c=xn(c),e--;for(;s--;){if(o===c||o===c.alternate)break e;o=xn(o),c=xn(c)}o=null}else o=null;for(c=o,o=[];r&&r!==c&&(null===(s=r.alternate)||s!==c);)o.push(r),r=xn(r);for(r=[];u&&u!==c&&(null===(s=u.alternate)||s!==c);)r.push(u),u=xn(u);for(u=0;u<o.length;u++)Hn(o[u],"bubbled",l);for(u=r.length;0<u--;)Hn(r[u],"captured",n);return 0==(64&a)?[l]:[l,n]}};var Gr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ur=Object.prototype.hasOwnProperty;function Lr(e,t){if(Gr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Ur.call(t,n[r])||!Gr(e[n[r]],t[n[r]]))return!1;return!0}var jr=C&&"documentMode"in document&&11>=document.documentMode,Mr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Br=null,Kr=null,qr=null,Vr=!1;function $r(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Vr||null==Br||Br!==un(n)?null:("selectionStart"in(n=Br)&&fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},qr&&Lr(qr,n)?null:(qr=n,(e=qn.getPooled(Mr.select,Kr,e,t)).type="select",e.target=Br,Gn(e),e))}var Wr={eventTypes:Mr,extractEvents:function(e,t,n,r,a,i){if(!(i=!(a=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{a=Ye(a),i=k.onSelect;for(var s=0;s<i.length;s++)if(!a.has(i[s])){a=!1;break e}a=!0}i=!a}if(i)return null;switch(a=t?An(t):window,e){case"focus":(cr(a)||"true"===a.contentEditable)&&(Br=a,Kr=t,qr=null);break;case"blur":qr=Kr=Br=null;break;case"mousedown":Vr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vr=!1,$r(n,r);case"selectionchange":if(jr)break;case"keydown":case"keyup":return $r(n,r)}return null}},zr=qn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jr=qn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xr=kr.extend({relatedTarget:null});function Qr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Yr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ea=kr.extend({key:function(e){if(e.key){var t=Yr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Qr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Zr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ir,charCode:function(e){return"keypress"===e.type?Qr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Qr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ta=Rr.extend({dataTransfer:null}),na=kr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ir}),ra=qn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),aa=Rr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ia={eventTypes:Gt,extractEvents:function(e,t,n,r){var a=Ut.get(e);if(!a)return null;switch(e){case"keypress":if(0===Qr(n))return null;case"keydown":case"keyup":e=ea;break;case"blur":case"focus":e=Xr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Rr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ta;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=na;break;case $e:case We:case ze:e=zr;break;case Je:e=ra;break;case"scroll":e=kr;break;case"wheel":e=aa;break;case"copy":case"cut":case"paste":e=Jr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Dr;break;default:e=qn}return Gn(t=e.getPooled(a,t,n,r)),t}};if(g)throw Error(s(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_(),f=On,m=In,S=An,T({SimpleEventPlugin:ia,EnterLeaveEventPlugin:Fr,ChangeEventPlugin:Er,SelectEventPlugin:Wr,BeforeInputEventPlugin:or});var sa=[],oa=-1;function la(e){0>oa||(e.current=sa[oa],sa[oa]=null,oa--)}function ca(e,t){oa++,sa[oa]=e.current,e.current=t}var ua={},pa={current:ua},da={current:!1},ha=ua;function fa(e,t){var n=e.type.contextTypes;if(!n)return ua;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ma(e){return null!=(e=e.childContextTypes)}function Sa(){la(da),la(pa)}function ya(e,t,n){if(pa.current!==ua)throw Error(s(168));ca(pa,t),ca(da,n)}function ga(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(s(108,Se(t)||"Unknown",i));return a({},n,{},r)}function va(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ua,ha=pa.current,ca(pa,e),ca(da,da.current),!0}function _a(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=ga(e,t,ha),r.__reactInternalMemoizedMergedChildContext=e,la(da),la(pa),ca(pa,e)):la(da),ca(da,n)}var ba=i.unstable_runWithPriority,Pa=i.unstable_scheduleCallback,wa=i.unstable_cancelCallback,Ea=i.unstable_requestPaint,ka=i.unstable_now,Ta=i.unstable_getCurrentPriorityLevel,Ca=i.unstable_ImmediatePriority,Ia=i.unstable_UserBlockingPriority,Aa=i.unstable_NormalPriority,Oa=i.unstable_LowPriority,xa=i.unstable_IdlePriority,Na={},Ra=i.unstable_shouldYield,Da=void 0!==Ea?Ea:function(){},Ha=null,Fa=null,Ga=!1,Ua=ka(),La=1e4>Ua?ka:function(){return ka()-Ua};function ja(){switch(Ta()){case Ca:return 99;case Ia:return 98;case Aa:return 97;case Oa:return 96;case xa:return 95;default:throw Error(s(332))}}function Ma(e){switch(e){case 99:return Ca;case 98:return Ia;case 97:return Aa;case 96:return Oa;case 95:return xa;default:throw Error(s(332))}}function Ba(e,t){return e=Ma(e),ba(e,t)}function Ka(e,t,n){return e=Ma(e),Pa(e,t,n)}function qa(e){return null===Ha?(Ha=[e],Fa=Pa(Ca,$a)):Ha.push(e),Na}function Va(){if(null!==Fa){var e=Fa;Fa=null,wa(e)}$a()}function $a(){if(!Ga&&null!==Ha){Ga=!0;var e=0;try{var t=Ha;Ba(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ha=null}catch(t){throw null!==Ha&&(Ha=Ha.slice(e+1)),Pa(Ca,Va),t}finally{Ga=!1}}}function Wa(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function za(e,t){if(e&&e.defaultProps)for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Ja={current:null},Xa=null,Qa=null,Ya=null;function Za(){Ya=Qa=Xa=null}function ei(e){var t=Ja.current;la(Ja),e.type._context._currentValue=t}function ti(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ni(e,t){Xa=e,Ya=Qa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(As=!0),e.firstContext=null)}function ri(e,t){if(Ya!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ya=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qa){if(null===Xa)throw Error(s(308));Qa=t,Xa.dependencies={expirationTime:0,firstContext:t,responders:null}}else Qa=Qa.next=t;return e._currentValue}var ai=!1;function ii(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function si(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function oi(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function li(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ci(e,t){var n=e.alternate;null!==n&&si(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function ui(e,t,n,r){var i=e.updateQueue;ai=!1;var s=i.baseQueue,o=i.shared.pending;if(null!==o){if(null!==s){var l=s.next;s.next=o.next,o.next=l}s=o,i.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=o))}if(null!==s){l=s.next;var c=i.baseState,u=0,p=null,d=null,h=null;if(null!==l)for(var f=l;;){if((o=f.expirationTime)<r){var m={expirationTime:f.expirationTime,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null};null===h?(d=h=m,p=c):h=h.next=m,o>u&&(u=o)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null}),il(o,f.suspenseConfig);e:{var S=e,y=f;switch(o=t,m=n,y.tag){case 1:if("function"==typeof(S=y.payload)){c=S.call(m,c,o);break e}c=S;break e;case 3:S.effectTag=-4097&S.effectTag|64;case 0:if(null==(o="function"==typeof(S=y.payload)?S.call(m,c,o):S))break e;c=a({},c,o);break e;case 2:ai=!0}}null!==f.callback&&(e.effectTag|=32,null===(o=i.effects)?i.effects=[f]:o.push(f))}if(null===(f=f.next)||f===l){if(null===(o=i.shared.pending))break;f=s.next=o.next,o.next=l,i.baseQueue=s=o,i.shared.pending=null}}null===h?p=c:h.next=d,i.baseState=p,i.baseQueue=h,sl(u),e.expirationTime=u,e.memoizedState=c}}function pi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=a,a=n,"function"!=typeof r)throw Error(s(191,r));r.call(a)}}}var di=X.ReactCurrentBatchConfig,hi=(new r.Component).refs;function fi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var mi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=$o(),a=di.suspense;(a=oi(r=Wo(r,e,a),a)).payload=t,null!=n&&(a.callback=n),li(e,a),zo(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=$o(),a=di.suspense;(a=oi(r=Wo(r,e,a),a)).tag=1,a.payload=t,null!=n&&(a.callback=n),li(e,a),zo(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=$o(),r=di.suspense;(r=oi(n=Wo(n,e,r),r)).tag=2,null!=t&&(r.callback=t),li(e,r),zo(e,n)}};function Si(e,t,n,r,a,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!Lr(n,r)||!Lr(a,i))}function yi(e,t,n){var r=!1,a=ua,i=t.contextType;return"object"==typeof i&&null!==i?i=ri(i):(a=ma(t)?ha:pa.current,i=(r=null!=(r=t.contextTypes))?fa(e,a):ua),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=mi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function gi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&mi.enqueueReplaceState(t,t.state,null)}function vi(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=hi,ii(e);var i=t.contextType;"object"==typeof i&&null!==i?a.context=ri(i):(i=ma(t)?ha:pa.current,a.context=fa(e,i)),ui(e,n,a,r),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(fi(e,t,i,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&mi.enqueueReplaceState(a,a.state,null),ui(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var _i=Array.isArray;function bi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=r.refs;t===hi&&(t=r.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Pi(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function wi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Tl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function o(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Al(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=bi(e,t,n),r.return=e,r):((r=Cl(n.type,n.key,n.props,null,e.mode,r)).ref=bi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ol(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function p(e,t,n,r,i){return null===t||7!==t.tag?((t=Il(n,e.mode,r,i)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Al(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Cl(t.type,t.key,t.props,null,e.mode,n)).ref=bi(e,null,t),n.return=e,n;case te:return(t=Ol(t,e.mode,n)).return=e,t}if(_i(t)||me(t))return(t=Il(t,e.mode,n,null)).return=e,t;Pi(e,t)}return null}function h(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===a?n.type===ne?p(e,t,n.props.children,r,a):c(e,t,n,r):null;case te:return n.key===a?u(e,t,n,r):null}if(_i(n)||me(n))return null!==a?null:p(e,t,n,r,null);Pi(e,n)}return null}function f(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?p(t,e,r.props.children,a,r.key):c(t,e,r,a);case te:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(_i(r)||me(r))return p(t,e=e.get(n)||null,r,a,null);Pi(t,r)}return null}function m(a,s,o,l){for(var c=null,u=null,p=s,m=s=0,S=null;null!==p&&m<o.length;m++){p.index>m?(S=p,p=null):S=p.sibling;var y=h(a,p,o[m],l);if(null===y){null===p&&(p=S);break}e&&p&&null===y.alternate&&t(a,p),s=i(y,s,m),null===u?c=y:u.sibling=y,u=y,p=S}if(m===o.length)return n(a,p),c;if(null===p){for(;m<o.length;m++)null!==(p=d(a,o[m],l))&&(s=i(p,s,m),null===u?c=p:u.sibling=p,u=p);return c}for(p=r(a,p);m<o.length;m++)null!==(S=f(p,a,m,o[m],l))&&(e&&null!==S.alternate&&p.delete(null===S.key?m:S.key),s=i(S,s,m),null===u?c=S:u.sibling=S,u=S);return e&&p.forEach((function(e){return t(a,e)})),c}function S(a,o,l,c){var u=me(l);if("function"!=typeof u)throw Error(s(150));if(null==(l=u.call(l)))throw Error(s(151));for(var p=u=null,m=o,S=o=0,y=null,g=l.next();null!==m&&!g.done;S++,g=l.next()){m.index>S?(y=m,m=null):y=m.sibling;var v=h(a,m,g.value,c);if(null===v){null===m&&(m=y);break}e&&m&&null===v.alternate&&t(a,m),o=i(v,o,S),null===p?u=v:p.sibling=v,p=v,m=y}if(g.done)return n(a,m),u;if(null===m){for(;!g.done;S++,g=l.next())null!==(g=d(a,g.value,c))&&(o=i(g,o,S),null===p?u=g:p.sibling=g,p=g);return u}for(m=r(a,m);!g.done;S++,g=l.next())null!==(g=f(m,a,S,g.value,c))&&(e&&null!==g.alternate&&m.delete(null===g.key?S:g.key),o=i(g,o,S),null===p?u=g:p.sibling=g,p=g);return e&&m.forEach((function(e){return t(a,e)})),u}return function(e,r,i,l){var c="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case ee:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){switch(c.tag){case 7:if(i.type===ne){n(e,c.sibling),(r=a(c,i.props.children)).return=e,e=r;break e}break;default:if(c.elementType===i.type){n(e,c.sibling),(r=a(c,i.props)).ref=bi(e,c,i),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}i.type===ne?((r=Il(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Cl(i.type,i.key,i.props,null,e.mode,l)).ref=bi(e,r,i),l.return=e,e=l)}return o(e);case te:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=a(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ol(i,e.mode,l)).return=e,e=r}return o(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,i)).return=e,e=r):(n(e,r),(r=Al(i,e.mode,l)).return=e,e=r),o(e);if(_i(i))return m(e,r,i,l);if(me(i))return S(e,r,i,l);if(u&&Pi(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(s(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Ei=wi(!0),ki=wi(!1),Ti={},Ci={current:Ti},Ii={current:Ti},Ai={current:Ti};function Oi(e){if(e===Ti)throw Error(s(174));return e}function xi(e,t){switch(ca(Ai,t),ca(Ii,e),ca(Ci,Ti),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ge(null,"");break;default:t=Ge(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}la(Ci),ca(Ci,t)}function Ni(){la(Ci),la(Ii),la(Ai)}function Ri(e){Oi(Ai.current);var t=Oi(Ci.current),n=Ge(t,e.type);t!==n&&(ca(Ii,e),ca(Ci,n))}function Di(e){Ii.current===e&&(la(Ci),la(Ii))}var Hi={current:0};function Fi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Gi(e,t){return{responder:e,props:t}}var Ui=X.ReactCurrentDispatcher,Li=X.ReactCurrentBatchConfig,ji=0,Mi=null,Bi=null,Ki=null,qi=!1;function Vi(){throw Error(s(321))}function $i(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gr(e[n],t[n]))return!1;return!0}function Wi(e,t,n,r,a,i){if(ji=i,Mi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Ui.current=null===e||null===e.memoizedState?Ss:ys,e=n(r,a),t.expirationTime===ji){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(s(301));i+=1,Ki=Bi=null,t.updateQueue=null,Ui.current=gs,e=n(r,a)}while(t.expirationTime===ji)}if(Ui.current=ms,t=null!==Bi&&null!==Bi.next,ji=0,Ki=Bi=Mi=null,qi=!1,t)throw Error(s(300));return e}function zi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?Mi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function Ji(){if(null===Bi){var e=Mi.alternate;e=null!==e?e.memoizedState:null}else e=Bi.next;var t=null===Ki?Mi.memoizedState:Ki.next;if(null!==t)Ki=t,Bi=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Bi=e).memoizedState,baseState:Bi.baseState,baseQueue:Bi.baseQueue,queue:Bi.queue,next:null},null===Ki?Mi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function Xi(e,t){return"function"==typeof t?t(e):t}function Qi(e){var t=Ji(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=Bi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var o=a.next;a.next=i.next,i.next=o}r.baseQueue=a=i,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var l=o=i=null,c=a;do{var u=c.expirationTime;if(u<ji){var p={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(o=l=p,i=r):l=l.next=p,u>Mi.expirationTime&&(Mi.expirationTime=u,sl(u))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),il(u,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==a);null===l?i=r:l.next=o,Gr(r,t.memoizedState)||(As=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Yi(e){var t=Ji(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var o=a=a.next;do{i=e(i,o.action),o=o.next}while(o!==a);Gr(i,t.memoizedState)||(As=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Zi(e){var t=zi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:e}).dispatch=fs.bind(null,Mi,e),[t.memoizedState,e]}function es(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Mi.updateQueue)?(t={lastEffect:null},Mi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ts(){return Ji().memoizedState}function ns(e,t,n,r){var a=zi();Mi.effectTag|=e,a.memoizedState=es(1|t,n,void 0,void 0===r?null:r)}function rs(e,t,n,r){var a=Ji();r=void 0===r?null:r;var i=void 0;if(null!==Bi){var s=Bi.memoizedState;if(i=s.destroy,null!==r&&$i(r,s.deps))return void es(t,n,i,r)}Mi.effectTag|=e,a.memoizedState=es(1|t,n,i,r)}function as(e,t){return ns(516,4,e,t)}function is(e,t){return rs(516,4,e,t)}function ss(e,t){return rs(4,2,e,t)}function os(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ls(e,t,n){return n=null!=n?n.concat([e]):null,rs(4,2,os.bind(null,t,e),n)}function cs(){}function us(e,t){return zi().memoizedState=[e,void 0===t?null:t],e}function ps(e,t){var n=Ji();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&$i(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ds(e,t){var n=Ji();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&$i(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hs(e,t,n){var r=ja();Ba(98>r?98:r,(function(){e(!0)})),Ba(97<r?97:r,(function(){var r=Li.suspense;Li.suspense=void 0===t?null:t;try{e(!1),n()}finally{Li.suspense=r}}))}function fs(e,t,n){var r=$o(),a=di.suspense;a={expirationTime:r=Wo(r,e,a),suspenseConfig:a,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?a.next=a:(a.next=i.next,i.next=a),t.pending=a,i=e.alternate,e===Mi||null!==i&&i===Mi)qi=!0,a.expirationTime=ji,Mi.expirationTime=ji;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,o=i(s,n);if(a.eagerReducer=i,a.eagerState=o,Gr(o,s))return}catch(e){}zo(e,r)}}var ms={readContext:ri,useCallback:Vi,useContext:Vi,useEffect:Vi,useImperativeHandle:Vi,useLayoutEffect:Vi,useMemo:Vi,useReducer:Vi,useRef:Vi,useState:Vi,useDebugValue:Vi,useResponder:Vi,useDeferredValue:Vi,useTransition:Vi},Ss={readContext:ri,useCallback:us,useContext:ri,useEffect:as,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ns(4,2,os.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4,2,e,t)},useMemo:function(e,t){var n=zi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=fs.bind(null,Mi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},zi().memoizedState=e},useState:Zi,useDebugValue:cs,useResponder:Gi,useDeferredValue:function(e,t){var n=Zi(e),r=n[0],a=n[1];return as((function(){var n=Li.suspense;Li.suspense=void 0===t?null:t;try{a(e)}finally{Li.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Zi(!1),n=t[0];return t=t[1],[us(hs.bind(null,t,e),[t,e]),n]}},ys={readContext:ri,useCallback:ps,useContext:ri,useEffect:is,useImperativeHandle:ls,useLayoutEffect:ss,useMemo:ds,useReducer:Qi,useRef:ts,useState:function(){return Qi(Xi)},useDebugValue:cs,useResponder:Gi,useDeferredValue:function(e,t){var n=Qi(Xi),r=n[0],a=n[1];return is((function(){var n=Li.suspense;Li.suspense=void 0===t?null:t;try{a(e)}finally{Li.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Qi(Xi),n=t[0];return t=t[1],[ps(hs.bind(null,t,e),[t,e]),n]}},gs={readContext:ri,useCallback:ps,useContext:ri,useEffect:is,useImperativeHandle:ls,useLayoutEffect:ss,useMemo:ds,useReducer:Yi,useRef:ts,useState:function(){return Yi(Xi)},useDebugValue:cs,useResponder:Gi,useDeferredValue:function(e,t){var n=Yi(Xi),r=n[0],a=n[1];return is((function(){var n=Li.suspense;Li.suspense=void 0===t?null:t;try{a(e)}finally{Li.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Yi(Xi),n=t[0];return t=t[1],[ps(hs.bind(null,t,e),[t,e]),n]}},vs=null,_s=null,bs=!1;function Ps(e,t){var n=El(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ws(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Es(e){if(bs){var t=_s;if(t){var n=t;if(!ws(e,t)){if(!(t=bn(n.nextSibling))||!ws(e,t))return e.effectTag=-1025&e.effectTag|2,bs=!1,void(vs=e);Ps(vs,n)}vs=e,_s=bn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,bs=!1,vs=e}}function ks(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;vs=e}function Ts(e){if(e!==vs)return!1;if(!bs)return ks(e),bs=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!gn(t,e.memoizedProps))for(t=_s;t;)Ps(e,t),t=bn(t.nextSibling);if(ks(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){_s=bn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}_s=null}}else _s=vs?bn(e.stateNode.nextSibling):null;return!0}function Cs(){_s=vs=null,bs=!1}var Is=X.ReactCurrentOwner,As=!1;function Os(e,t,n,r){t.child=null===e?ki(t,null,n,r):Ei(t,e.child,n,r)}function xs(e,t,n,r,a){n=n.render;var i=t.ref;return ni(t,a),r=Wi(e,t,n,r,i,a),null===e||As?(t.effectTag|=1,Os(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Ws(e,t,a))}function Ns(e,t,n,r,a,i){if(null===e){var s=n.type;return"function"!=typeof s||kl(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Cl(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Rs(e,t,s,r,a,i))}return s=e.child,a<i&&(a=s.memoizedProps,(n=null!==(n=n.compare)?n:Lr)(a,r)&&e.ref===t.ref)?Ws(e,t,i):(t.effectTag|=1,(e=Tl(s,r)).ref=t.ref,e.return=t,t.child=e)}function Rs(e,t,n,r,a,i){return null!==e&&Lr(e.memoizedProps,r)&&e.ref===t.ref&&(As=!1,a<i)?(t.expirationTime=e.expirationTime,Ws(e,t,i)):Hs(e,t,n,r,i)}function Ds(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Hs(e,t,n,r,a){var i=ma(n)?ha:pa.current;return i=fa(t,i),ni(t,a),n=Wi(e,t,n,r,i,a),null===e||As?(t.effectTag|=1,Os(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Ws(e,t,a))}function Fs(e,t,n,r,a){if(ma(n)){var i=!0;va(t)}else i=!1;if(ni(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),yi(t,n,r),vi(t,n,r,a),r=!0;else if(null===e){var s=t.stateNode,o=t.memoizedProps;s.props=o;var l=s.context,c=n.contextType;"object"==typeof c&&null!==c?c=ri(c):c=fa(t,c=ma(n)?ha:pa.current);var u=n.getDerivedStateFromProps,p="function"==typeof u||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(o!==r||l!==c)&&gi(t,s,r,c),ai=!1;var d=t.memoizedState;s.state=d,ui(t,r,s,a),l=t.memoizedState,o!==r||d!==l||da.current||ai?("function"==typeof u&&(fi(t,n,u,r),l=t.memoizedState),(o=ai||Si(t,n,o,r,d,l,c))?(p||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.effectTag|=4)):("function"==typeof s.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=o):("function"==typeof s.componentDidMount&&(t.effectTag|=4),r=!1)}else s=t.stateNode,si(e,t),o=t.memoizedProps,s.props=t.type===t.elementType?o:za(t.type,o),l=s.context,"object"==typeof(c=n.contextType)&&null!==c?c=ri(c):c=fa(t,c=ma(n)?ha:pa.current),(p="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(o!==r||l!==c)&&gi(t,s,r,c),ai=!1,l=t.memoizedState,s.state=l,ui(t,r,s,a),d=t.memoizedState,o!==r||l!==d||da.current||ai?("function"==typeof u&&(fi(t,n,u,r),d=t.memoizedState),(u=ai||Si(t,n,o,r,l,d,c))?(p||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,d,c),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,d,c)),"function"==typeof s.componentDidUpdate&&(t.effectTag|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof s.componentDidUpdate||o===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||o===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),s.props=r,s.state=d,s.context=c,r=u):("function"!=typeof s.componentDidUpdate||o===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||o===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Gs(e,t,n,r,i,a)}function Gs(e,t,n,r,a,i){Ds(e,t);var s=0!=(64&t.effectTag);if(!r&&!s)return a&&_a(t,n,!1),Ws(e,t,i);r=t.stateNode,Is.current=t;var o=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&s?(t.child=Ei(t,e.child,null,i),t.child=Ei(t,null,o,i)):Os(e,t,o,i),t.memoizedState=r.state,a&&_a(t,n,!0),t.child}function Us(e){var t=e.stateNode;t.pendingContext?ya(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ya(0,t.context,!1),xi(e,t.containerInfo)}var Ls,js,Ms,Bs={dehydrated:null,retryTime:0};function Ks(e,t,n){var r,a=t.mode,i=t.pendingProps,s=Hi.current,o=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&s)&&(null===e||null!==e.memoizedState)),r?(o=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(s|=1),ca(Hi,1&s),null===e){if(void 0!==i.fallback&&Es(t),o){if(o=i.fallback,(i=Il(null,a,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Il(o,a,n,null)).return=t,i.sibling=n,t.memoizedState=Bs,t.child=i,n}return a=i.children,t.memoizedState=null,t.child=ki(t,null,a,n)}if(null!==e.memoizedState){if(a=(e=e.child).sibling,o){if(i=i.fallback,(n=Tl(e,e.pendingProps)).return=t,0==(2&t.mode)&&(o=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=o;null!==o;)o.return=n,o=o.sibling;return(a=Tl(a,i)).return=t,n.sibling=a,n.childExpirationTime=0,t.memoizedState=Bs,t.child=n,a}return n=Ei(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,o){if(o=i.fallback,(i=Il(null,a,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Il(o,a,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Bs,t.child=i,n}return t.memoizedState=null,t.child=Ei(t,e,i.children,n)}function qs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ti(e.return,t)}function Vs(e,t,n,r,a,i){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:a,lastEffect:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailExpiration=0,s.tailMode=a,s.lastEffect=i)}function $s(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(Os(e,t,r.children,n),0!=(2&(r=Hi.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&qs(e,n);else if(19===e.tag)qs(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ca(Hi,r),0==(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Fi(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Vs(t,!1,a,n,i,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Fi(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Vs(t,!0,n,null,i,t.lastEffect);break;case"together":Vs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ws(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&sl(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Tl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function zs(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Js(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ma(t.type)&&Sa(),null;case 3:return Ni(),la(da),la(pa),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ts(t)||(t.effectTag|=4),null;case 5:Di(t),n=Oi(Ai.current);var i=t.type;if(null!==e&&null!=t.stateNode)js(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(s(166));return null}if(e=Oi(Ci.current),Ts(t)){r=t.stateNode,i=t.type;var o=t.memoizedProps;switch(r[En]=t,r[kn]=o,i){case"iframe":case"object":case"embed":Wt("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)Wt(Xe[e],r);break;case"source":Wt("error",r);break;case"img":case"image":case"link":Wt("error",r),Wt("load",r);break;case"form":Wt("reset",r),Wt("submit",r);break;case"details":Wt("toggle",r);break;case"input":we(r,o),Wt("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Wt("invalid",r),ln(n,"onChange");break;case"textarea":xe(r,o),Wt("invalid",r),ln(n,"onChange")}for(var l in an(i,o),e=null,o)if(o.hasOwnProperty(l)){var c=o[l];"children"===l?"string"==typeof c?r.textContent!==c&&(e=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(e=["children",""+c]):E.hasOwnProperty(l)&&null!=c&&ln(n,l)}switch(i){case"input":_e(r),Te(r,o,!0);break;case"textarea":_e(r),Re(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===on&&(e=Fe(i)),e===on?"script"===i?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(i,{is:r.is}):(e=l.createElement(i),"select"===i&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,i),e[En]=t,e[kn]=r,Ls(e,t),t.stateNode=e,l=sn(i,r),i){case"iframe":case"object":case"embed":Wt("load",e),c=r;break;case"video":case"audio":for(c=0;c<Xe.length;c++)Wt(Xe[c],e);c=r;break;case"source":Wt("error",e),c=r;break;case"img":case"image":case"link":Wt("error",e),Wt("load",e),c=r;break;case"form":Wt("reset",e),Wt("submit",e),c=r;break;case"details":Wt("toggle",e),c=r;break;case"input":we(e,r),c=Pe(e,r),Wt("invalid",e),ln(n,"onChange");break;case"option":c=Ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=a({},r,{value:void 0}),Wt("invalid",e),ln(n,"onChange");break;case"textarea":xe(e,r),c=Oe(e,r),Wt("invalid",e),ln(n,"onChange");break;default:c=r}an(i,c);var u=c;for(o in u)if(u.hasOwnProperty(o)){var p=u[o];"style"===o?nn(e,p):"dangerouslySetInnerHTML"===o?null!=(p=p?p.__html:void 0)&&Le(e,p):"children"===o?"string"==typeof p?("textarea"!==i||""!==p)&&je(e,p):"number"==typeof p&&je(e,""+p):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(E.hasOwnProperty(o)?null!=p&&ln(n,o):null!=p&&Q(e,o,p,l))}switch(i){case"input":_e(e),Te(e,r,!1);break;case"textarea":_e(e),Re(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ge(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ae(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=cn)}yn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ms(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));n=Oi(Ai.current),Oi(Ci.current),Ts(t)?(n=t.stateNode,r=t.memoizedProps,n[En]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[En]=t,t.stateNode=n)}return null;case 13:return la(Hi),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ts(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(o=t.firstEffect)?(t.firstEffect=i,i.nextEffect=o):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Hi.current)?Co===_o&&(Co=bo):(Co!==_o&&Co!==bo||(Co=Po),0!==No&&null!==Eo&&(Rl(Eo,To),Dl(Eo,No)))),(n||r)&&(t.effectTag|=4),null);case 4:return Ni(),null;case 10:return ei(t),null;case 17:return ma(t.type)&&Sa(),null;case 19:if(la(Hi),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(o=r.rendering)){if(i)zs(r,!1);else if(Co!==_o||null!==e&&0!=(64&e.effectTag))for(o=t.child;null!==o;){if(null!==(e=Fi(o))){for(t.effectTag|=64,zs(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)o=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=o,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,o=e.dependencies,i.dependencies=null===o?null:{expirationTime:o.expirationTime,firstContext:o.firstContext,responders:o.responders}),r=r.sibling;return ca(Hi,1&Hi.current|2),t.child}o=o.sibling}}else{if(!i)if(null!==(e=Fi(o))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),zs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*La()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,zs(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(n=r.last)?n.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=La()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=La(),n.sibling=null,t=Hi.current,ca(Hi,i?1&t|2:1&t),n):null}throw Error(s(156,t.tag))}function Xs(e){switch(e.tag){case 1:ma(e.type)&&Sa();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ni(),la(da),la(pa),0!=(64&(t=e.effectTag)))throw Error(s(285));return e.effectTag=-4097&t|64,e;case 5:return Di(e),null;case 13:return la(Hi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return la(Hi),null;case 4:return Ni(),null;case 10:return ei(e),null;default:return null}}function Qs(e,t){return{value:e,source:t,stack:ye(t)}}Ls=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},js=function(e,t,n,r,i){var s=e.memoizedProps;if(s!==r){var o,l,c=t.stateNode;switch(Oi(Ci.current),e=null,n){case"input":s=Pe(c,s),r=Pe(c,r),e=[];break;case"option":s=Ie(c,s),r=Ie(c,r),e=[];break;case"select":s=a({},s,{value:void 0}),r=a({},r,{value:void 0}),e=[];break;case"textarea":s=Oe(c,s),r=Oe(c,r),e=[];break;default:"function"!=typeof s.onClick&&"function"==typeof r.onClick&&(c.onclick=cn)}for(o in an(n,r),n=null,s)if(!r.hasOwnProperty(o)&&s.hasOwnProperty(o)&&null!=s[o])if("style"===o)for(l in c=s[o])c.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==o&&"children"!==o&&"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(E.hasOwnProperty(o)?e||(e=[]):(e=e||[]).push(o,null));for(o in r){var u=r[o];if(c=null!=s?s[o]:void 0,r.hasOwnProperty(o)&&u!==c&&(null!=u||null!=c))if("style"===o)if(c){for(l in c)!c.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&c[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(e||(e=[]),e.push(o,n)),n=u;else"dangerouslySetInnerHTML"===o?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(o,u)):"children"===o?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(o,""+u):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&(E.hasOwnProperty(o)?(null!=u&&ln(i,o),e||c===u||(e=[])):(e=e||[]).push(o,u))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Ms=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Ys="function"==typeof WeakSet?WeakSet:Set;function Zs(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ye(n)),null!==n&&Se(n.type),t=t.value,null!==e&&1===e.tag&&Se(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function eo(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){gl(e,t)}else t.current=null}function to(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:za(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(s(163))}function no(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function ro(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ao(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void ro(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:za(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&pi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}pi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&yn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ft(n)))));case 19:case 17:case 20:case 21:return}throw Error(s(163))}function io(e,t,n){switch("function"==typeof Pl&&Pl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Ba(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var a=t;try{n()}catch(e){gl(a,e)}}e=e.next}while(e!==r)}))}break;case 1:eo(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){gl(e,t)}}(t,n);break;case 5:eo(t);break;case 4:co(e,t,n)}}function so(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&so(t)}function oo(e){return 5===e.tag||3===e.tag||4===e.tag}function lo(e){e:{for(var t=e.return;null!==t;){if(oo(t)){var n=t;break e}t=t.return}throw Error(s(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(s(161))}16&n.effectTag&&(je(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||oo(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var a=t.tag,i=5===a||6===a;if(i)t=i?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=cn));else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var a=t.tag,i=5===a||6===a;if(i)t=i?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function co(e,t,n){for(var r,a,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(s(160));switch(r=o.stateNode,o.tag){case 5:a=!1;break e;case 3:case 4:r=r.containerInfo,a=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var l=e,c=i,u=n,p=c;;)if(io(l,p,u),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===c)break e;for(;null===p.sibling;){if(null===p.return||p.return===c)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}a?(l=r,c=i.stateNode,8===l.nodeType?l.parentNode.removeChild(c):l.removeChild(c)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,a=!0,i.child.return=i,i=i.child;continue}}else if(io(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function uo(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void no(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,a=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[kn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ee(n,r),sn(e,a),t=sn(e,r),a=0;a<i.length;a+=2){var o=i[a],l=i[a+1];"style"===o?nn(n,l):"dangerouslySetInnerHTML"===o?Le(n,l):"children"===o?je(n,l):Q(n,o,l,t)}switch(e){case"input":ke(n,r);break;case"textarea":Ne(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ae(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ae(n,!!r.multiple,r.defaultValue,!0):Ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Ft(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Do=La()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,a=null!=(a=e.memoizedProps.style)&&a.hasOwnProperty("display")?a.display:null,i.style.display=tn("display",a));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void po(t);case 19:return void po(t);case 17:return}throw Error(s(163))}function po(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach((function(t){var r=_l.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var ho="function"==typeof WeakMap?WeakMap:Map;function fo(e,t,n){(n=oi(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fo||(Fo=!0,Go=r),Zs(e,t)},n}function mo(e,t,n){(n=oi(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return Zs(e,t),r(a)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Uo?Uo=new Set([this]):Uo.add(this),Zs(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var So,yo=Math.ceil,go=X.ReactCurrentDispatcher,vo=X.ReactCurrentOwner,_o=0,bo=3,Po=4,wo=0,Eo=null,ko=null,To=0,Co=_o,Io=null,Ao=1073741823,Oo=1073741823,xo=null,No=0,Ro=!1,Do=0,Ho=null,Fo=!1,Go=null,Uo=null,Lo=!1,jo=null,Mo=90,Bo=null,Ko=0,qo=null,Vo=0;function $o(){return 0!=(48&wo)?1073741821-(La()/10|0):0!==Vo?Vo:Vo=1073741821-(La()/10|0)}function Wo(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=ja();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&wo))return To;if(null!==n)e=Wa(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Wa(e,150,100);break;case 97:case 96:e=Wa(e,5e3,250);break;case 95:e=2;break;default:throw Error(s(326))}return null!==Eo&&e===To&&--e,e}function zo(e,t){if(50<Ko)throw Ko=0,qo=null,Error(s(185));if(null!==(e=Jo(e,t))){var n=ja();1073741823===t?0!=(8&wo)&&0==(48&wo)?Zo(e):(Qo(e),0===wo&&Va()):Qo(e),0==(4&wo)||98!==n&&99!==n||(null===Bo?Bo=new Map([[e,t]]):(void 0===(n=Bo.get(e))||n>t)&&Bo.set(e,t))}}function Jo(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,a=null;if(null===r&&3===e.tag)a=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){a=r.stateNode;break}r=r.return}return null!==a&&(Eo===a&&(sl(t),Co===Po&&Rl(a,To)),Dl(a,t)),a}function Xo(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Nl(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Qo(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=qa(Zo.bind(null,e));else{var t=Xo(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=$o();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var a=e.callbackPriority;if(e.callbackExpirationTime===t&&a>=r)return;n!==Na&&wa(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?qa(Zo.bind(null,e)):Ka(r,Yo.bind(null,e),{timeout:10*(1073741821-t)-La()}),e.callbackNode=t}}}function Yo(e,t){if(Vo=0,t)return Hl(e,t=$o()),Qo(e),null;var n=Xo(e);if(0!==n){if(t=e.callbackNode,0!=(48&wo))throw Error(s(327));if(ml(),e===Eo&&n===To||nl(e,n),null!==ko){var r=wo;wo|=16;for(var a=al();;)try{ll();break}catch(t){rl(e,t)}if(Za(),wo=r,go.current=a,1===Co)throw t=Io,nl(e,n),Rl(e,n),Qo(e),t;if(null===ko)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Co,Eo=null,r){case _o:case 1:throw Error(s(345));case 2:Hl(e,2<n?2:n);break;case bo:if(Rl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pl(a)),1073741823===Ao&&10<(a=Do+500-La())){if(Ro){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,nl(e,n);break}}if(0!==(i=Xo(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=vn(dl.bind(null,e),a);break}dl(e);break;case Po:if(Rl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pl(a)),Ro&&(0===(a=e.lastPingedTime)||a>=n)){e.lastPingedTime=n,nl(e,n);break}if(0!==(a=Xo(e))&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Oo?r=10*(1073741821-Oo)-La():1073741823===Ao?r=0:(r=10*(1073741821-Ao)-5e3,0>(r=(a=La())-r)&&(r=0),(n=10*(1073741821-n)-a)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yo(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=vn(dl.bind(null,e),r);break}dl(e);break;case 5:if(1073741823!==Ao&&null!==xo){i=Ao;var o=xo;if(0>=(r=0|o.busyMinDurationMs)?r=0:(a=0|o.busyDelayMs,r=(i=La()-(10*(1073741821-i)-(0|o.timeoutMs||5e3)))<=a?0:a+r-i),10<r){Rl(e,n),e.timeoutHandle=vn(dl.bind(null,e),r);break}}dl(e);break;default:throw Error(s(329))}if(Qo(e),e.callbackNode===t)return Yo.bind(null,e)}}return null}function Zo(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&wo))throw Error(s(327));if(ml(),e===Eo&&t===To||nl(e,t),null!==ko){var n=wo;wo|=16;for(var r=al();;)try{ol();break}catch(t){rl(e,t)}if(Za(),wo=n,go.current=r,1===Co)throw n=Io,nl(e,t),Rl(e,t),Qo(e),n;if(null!==ko)throw Error(s(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Eo=null,dl(e),Qo(e)}return null}function el(e,t){var n=wo;wo|=1;try{return e(t)}finally{0===(wo=n)&&Va()}}function tl(e,t){var n=wo;wo&=-2,wo|=8;try{return e(t)}finally{0===(wo=n)&&Va()}}function nl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,_n(n)),null!==ko)for(n=ko.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&Sa();break;case 3:Ni(),la(da),la(pa);break;case 5:Di(r);break;case 4:Ni();break;case 13:case 19:la(Hi);break;case 10:ei(r)}n=n.return}Eo=e,ko=Tl(e.current,null),To=t,Co=_o,Io=null,Oo=Ao=1073741823,xo=null,No=0,Ro=!1}function rl(e,t){for(;;){try{if(Za(),Ui.current=ms,qi)for(var n=Mi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(ji=0,Ki=Bi=Mi=null,qi=!1,null===ko||null===ko.return)return Co=1,Io=t,ko=null;e:{var a=e,i=ko.return,s=ko,o=t;if(t=To,s.effectTag|=2048,s.firstEffect=s.lastEffect=null,null!==o&&"object"==typeof o&&"function"==typeof o.then){var l=o;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.expirationTime=c.expirationTime):(s.updateQueue=null,s.memoizedState=null)}var u=0!=(1&Hi.current),p=i;do{var d;if(d=13===p.tag){var h=p.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var f=p.memoizedProps;d=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!u)}}if(d){var m=p.updateQueue;if(null===m){var S=new Set;S.add(l),p.updateQueue=S}else m.add(l);if(0==(2&p.mode)){if(p.effectTag|=64,s.effectTag&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=oi(1073741823,null);y.tag=2,li(s,y)}s.expirationTime=1073741823;break e}o=void 0,s=t;var g=a.pingCache;if(null===g?(g=a.pingCache=new ho,o=new Set,g.set(l,o)):void 0===(o=g.get(l))&&(o=new Set,g.set(l,o)),!o.has(s)){o.add(s);var v=vl.bind(null,a,l,s);l.then(v,v)}p.effectTag|=4096,p.expirationTime=t;break e}p=p.return}while(null!==p);o=Error((Se(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ye(s))}5!==Co&&(Co=2),o=Qs(o,s),p=i;do{switch(p.tag){case 3:l=o,p.effectTag|=4096,p.expirationTime=t,ci(p,fo(p,l,t));break e;case 1:l=o;var _=p.type,b=p.stateNode;if(0==(64&p.effectTag)&&("function"==typeof _.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Uo||!Uo.has(b)))){p.effectTag|=4096,p.expirationTime=t,ci(p,mo(p,l,t));break e}}p=p.return}while(null!==p)}ko=ul(ko)}catch(e){t=e;continue}break}}function al(){var e=go.current;return go.current=ms,null===e?ms:e}function il(e,t){e<Ao&&2<e&&(Ao=e),null!==t&&e<Oo&&2<e&&(Oo=e,xo=t)}function sl(e){e>No&&(No=e)}function ol(){for(;null!==ko;)ko=cl(ko)}function ll(){for(;null!==ko&&!Ra();)ko=cl(ko)}function cl(e){var t=So(e.alternate,e,To);return e.memoizedProps=e.pendingProps,null===t&&(t=ul(e)),vo.current=null,t}function ul(e){ko=e;do{var t=ko.alternate;if(e=ko.return,0==(2048&ko.effectTag)){if(t=Js(t,ko,To),1===To||1!==ko.childExpirationTime){for(var n=0,r=ko.child;null!==r;){var a=r.expirationTime,i=r.childExpirationTime;a>n&&(n=a),i>n&&(n=i),r=r.sibling}ko.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=ko.firstEffect),null!==ko.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=ko.firstEffect),e.lastEffect=ko.lastEffect),1<ko.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=ko:e.firstEffect=ko,e.lastEffect=ko))}else{if(null!==(t=Xs(ko)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=ko.sibling))return t;ko=e}while(null!==ko);return Co===_o&&(Co=5),null}function pl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function dl(e){var t=ja();return Ba(99,hl.bind(null,e,t)),null}function hl(e,t){do{ml()}while(null!==jo);if(0!=(48&wo))throw Error(s(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=pl(n);if(e.firstPendingTime=a,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Eo&&(ko=Eo=null,To=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,a=n.firstEffect):a=n:a=n.firstEffect,null!==a){var i=wo;wo|=32,vo.current=null,mn=$t;var o=hn();if(fn(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{var c=(l=(l=o.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(c&&0!==c.rangeCount){l=c.anchorNode;var u=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{l.nodeType,p.nodeType}catch(e){l=null;break e}var d=0,h=-1,f=-1,m=0,S=0,y=o,g=null;t:for(;;){for(var v;y!==l||0!==u&&3!==y.nodeType||(h=d+u),y!==p||0!==c&&3!==y.nodeType||(f=d+c),3===y.nodeType&&(d+=y.nodeValue.length),null!==(v=y.firstChild);)g=y,y=v;for(;;){if(y===o)break t;if(g===l&&++m===u&&(h=d),g===p&&++S===c&&(f=d),null!==(v=y.nextSibling))break;g=(y=g).parentNode}y=v}l=-1===h||-1===f?null:{start:h,end:f}}else l=null}l=l||{start:0,end:0}}else l=null;Sn={activeElementDetached:null,focusedElem:o,selectionRange:l},$t=!1,Ho=a;do{try{fl()}catch(e){if(null===Ho)throw Error(s(330));gl(Ho,e),Ho=Ho.nextEffect}}while(null!==Ho);Ho=a;do{try{for(o=e,l=t;null!==Ho;){var _=Ho.effectTag;if(16&_&&je(Ho.stateNode,""),128&_){var b=Ho.alternate;if(null!==b){var P=b.ref;null!==P&&("function"==typeof P?P(null):P.current=null)}}switch(1038&_){case 2:lo(Ho),Ho.effectTag&=-3;break;case 6:lo(Ho),Ho.effectTag&=-3,uo(Ho.alternate,Ho);break;case 1024:Ho.effectTag&=-1025;break;case 1028:Ho.effectTag&=-1025,uo(Ho.alternate,Ho);break;case 4:uo(Ho.alternate,Ho);break;case 8:co(o,u=Ho,l),so(u)}Ho=Ho.nextEffect}}catch(e){if(null===Ho)throw Error(s(330));gl(Ho,e),Ho=Ho.nextEffect}}while(null!==Ho);if(P=Sn,b=hn(),_=P.focusedElem,l=P.selectionRange,b!==_&&_&&_.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(_.ownerDocument.documentElement,_)){null!==l&&fn(_)&&(b=l.start,void 0===(P=l.end)&&(P=b),"selectionStart"in _?(_.selectionStart=b,_.selectionEnd=Math.min(P,_.value.length)):(P=(b=_.ownerDocument||document)&&b.defaultView||window).getSelection&&(P=P.getSelection(),u=_.textContent.length,o=Math.min(l.start,u),l=void 0===l.end?o:Math.min(l.end,u),!P.extend&&o>l&&(u=l,l=o,o=u),u=dn(_,o),p=dn(_,l),u&&p&&(1!==P.rangeCount||P.anchorNode!==u.node||P.anchorOffset!==u.offset||P.focusNode!==p.node||P.focusOffset!==p.offset)&&((b=b.createRange()).setStart(u.node,u.offset),P.removeAllRanges(),o>l?(P.addRange(b),P.extend(p.node,p.offset)):(b.setEnd(p.node,p.offset),P.addRange(b))))),b=[];for(P=_;P=P.parentNode;)1===P.nodeType&&b.push({element:P,left:P.scrollLeft,top:P.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_<b.length;_++)(P=b[_]).element.scrollLeft=P.left,P.element.scrollTop=P.top}$t=!!mn,Sn=mn=null,e.current=n,Ho=a;do{try{for(_=e;null!==Ho;){var w=Ho.effectTag;if(36&w&&ao(_,Ho.alternate,Ho),128&w){b=void 0;var E=Ho.ref;if(null!==E){var k=Ho.stateNode;switch(Ho.tag){case 5:b=k;break;default:b=k}"function"==typeof E?E(b):E.current=b}}Ho=Ho.nextEffect}}catch(e){if(null===Ho)throw Error(s(330));gl(Ho,e),Ho=Ho.nextEffect}}while(null!==Ho);Ho=null,Da(),wo=i}else e.current=n;if(Lo)Lo=!1,jo=e,Mo=t;else for(Ho=a;null!==Ho;)t=Ho.nextEffect,Ho.nextEffect=null,Ho=t;if(0===(t=e.firstPendingTime)&&(Uo=null),1073741823===t?e===qo?Ko++:(Ko=0,qo=e):Ko=0,"function"==typeof bl&&bl(n.stateNode,r),Qo(e),Fo)throw Fo=!1,e=Go,Go=null,e;return 0!=(8&wo)||Va(),null}function fl(){for(;null!==Ho;){var e=Ho.effectTag;0!=(256&e)&&to(Ho.alternate,Ho),0==(512&e)||Lo||(Lo=!0,Ka(97,(function(){return ml(),null}))),Ho=Ho.nextEffect}}function ml(){if(90!==Mo){var e=97<Mo?97:Mo;return Mo=90,Ba(e,Sl)}}function Sl(){if(null===jo)return!1;var e=jo;if(jo=null,0!=(48&wo))throw Error(s(331));var t=wo;for(wo|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:no(5,n),ro(5,n)}}catch(t){if(null===e)throw Error(s(330));gl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return wo=t,Va(),!0}function yl(e,t,n){li(e,t=fo(e,t=Qs(n,t),1073741823)),null!==(e=Jo(e,1073741823))&&Qo(e)}function gl(e,t){if(3===e.tag)yl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){yl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Uo||!Uo.has(r))){li(n,e=mo(n,e=Qs(t,e),1073741823)),null!==(n=Jo(n,1073741823))&&Qo(n);break}}n=n.return}}function vl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Eo===e&&To===n?Co===Po||Co===bo&&1073741823===Ao&&La()-Do<500?nl(e,To):Ro=!0:Nl(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Qo(e)))}function _l(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Wo(t=$o(),e,null)),null!==(e=Jo(e,t))&&Qo(e)}So=function(e,t,n){var r=t.expirationTime;if(null!==e){var a=t.pendingProps;if(e.memoizedProps!==a||da.current)As=!0;else{if(r<n){switch(As=!1,t.tag){case 3:Us(t),Cs();break;case 5:if(Ri(t),4&t.mode&&1!==n&&a.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:ma(t.type)&&va(t);break;case 4:xi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,a=t.type._context,ca(Ja,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ks(e,t,n):(ca(Hi,1&Hi.current),null!==(t=Ws(e,t,n))?t.sibling:null);ca(Hi,1&Hi.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return $s(e,t,n);t.effectTag|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null),ca(Hi,Hi.current),!r)return null}return Ws(e,t,n)}As=!1}}else As=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=fa(t,pa.current),ni(t,n),a=Wi(null,t,r,e,a,n),t.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ma(r)){var i=!0;va(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,ii(t);var o=r.getDerivedStateFromProps;"function"==typeof o&&fi(t,r,o,e),a.updater=mi,t.stateNode=a,a._reactInternalFiber=t,vi(t,r,e,n),t=Gs(null,t,r,!0,i,n)}else t.tag=0,Os(null,t,a,n),t=t.child;return t;case 16:e:{if(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a),1!==a._status)throw a._result;switch(a=a._result,t.type=a,i=t.tag=function(e){if("function"==typeof e)return kl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===pe)return 14}return 2}(a),e=za(a,e),i){case 0:t=Hs(null,t,a,e,n);break e;case 1:t=Fs(null,t,a,e,n);break e;case 11:t=xs(null,t,a,e,n);break e;case 14:t=Ns(null,t,a,za(a.type,e),r,n);break e}throw Error(s(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Hs(e,t,r,a=t.elementType===r?a:za(r,a),n);case 1:return r=t.type,a=t.pendingProps,Fs(e,t,r,a=t.elementType===r?a:za(r,a),n);case 3:if(Us(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,si(e,t),ui(t,r,null,n),(r=t.memoizedState.element)===a)Cs(),t=Ws(e,t,n);else{if((a=t.stateNode.hydrate)&&(_s=bn(t.stateNode.containerInfo.firstChild),vs=t,a=bs=!0),a)for(n=ki(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Os(e,t,r,n),Cs();t=t.child}return t;case 5:return Ri(t),null===e&&Es(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,o=a.children,gn(r,a)?o=null:null!==i&&gn(r,i)&&(t.effectTag|=16),Ds(e,t),4&t.mode&&1!==n&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Os(e,t,o,n),t=t.child),t;case 6:return null===e&&Es(t),null;case 13:return Ks(e,t,n);case 4:return xi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ei(t,null,r,n):Os(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,xs(e,t,r,a=t.elementType===r?a:za(r,a),n);case 7:return Os(e,t,t.pendingProps,n),t.child;case 8:case 12:return Os(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value;var l=t.type._context;if(ca(Ja,l._currentValue),l._currentValue=i,null!==o)if(l=o.value,0===(i=Gr(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(o.children===a.children&&!da.current){t=Ws(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){o=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===l.tag&&((u=oi(n,null)).tag=2,li(l,u)),l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n),ti(l.return,n),c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else o=10===l.tag&&l.type===t.type?null:l.child;if(null!==o)o.return=l;else for(o=l;null!==o;){if(o===t){o=null;break}if(null!==(l=o.sibling)){l.return=o.return,o=l;break}o=o.return}l=o}Os(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(i=t.pendingProps).children,ni(t,n),r=r(a=ri(a,i.unstable_observedBits)),t.effectTag|=1,Os(e,t,r,n),t.child;case 14:return i=za(a=t.type,t.pendingProps),Ns(e,t,a,i=za(a.type,i),r,n);case 15:return Rs(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:za(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,ma(r)?(e=!0,va(t)):e=!1,ni(t,n),yi(t,r,a),vi(t,r,a,n),Gs(null,t,r,!0,e,n);case 19:return $s(e,t,n)}throw Error(s(156,t.tag))};var bl=null,Pl=null;function wl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function El(e,t,n,r){return new wl(e,t,n,r)}function kl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tl(e,t){var n=e.alternate;return null===n?((n=El(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Cl(e,t,n,r,a,i){var o=2;if(r=e,"function"==typeof e)kl(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case ne:return Il(n.children,a,i,t);case oe:o=8,a|=7;break;case re:o=8,a|=1;break;case ae:return(e=El(12,n,t,8|a)).elementType=ae,e.type=ae,e.expirationTime=i,e;case ce:return(e=El(13,n,t,a)).type=ce,e.elementType=ce,e.expirationTime=i,e;case ue:return(e=El(19,n,t,a)).elementType=ue,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:o=10;break e;case se:o=9;break e;case le:o=11;break e;case pe:o=14;break e;case de:o=16,r=null;break e;case he:o=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=El(o,n,t,a)).elementType=e,t.type=r,t.expirationTime=i,t}function Il(e,t,n,r){return(e=El(7,e,r,t)).expirationTime=n,e}function Al(e,t,n){return(e=El(6,e,null,t)).expirationTime=n,e}function Ol(e,t,n){return(t=El(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Nl(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Rl(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Dl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Hl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Fl(e,t,n,r){var a=t.current,i=$o(),o=di.suspense;i=Wo(i,a,o);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ma(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var c=n.type;if(ma(c)){n=ga(n,c,l);break e}}n=l}else n=ua;return null===t.context?t.context=n:t.pendingContext=n,(t=oi(i,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),li(a,t),zo(a,i),i}function Gl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ul(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Ll(e,t){Ul(e,t),(e=e.alternate)&&Ul(e,t)}function jl(e,t,n){var r=new xl(e,t,n=null!=n&&!0===n.hydrate),a=El(3,null,null,2===t?7:1===t?3:0);r.current=a,a.stateNode=r,ii(a),e[Tn]=r.current,n&&0!==t&&function(e,t){var n=Ye(t);Tt.forEach((function(e){ft(e,t,n)})),Ct.forEach((function(e){ft(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Ml(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Bl(e,t,n,r,a){var i=n._reactRootContainer;if(i){var s=i._internalRoot;if("function"==typeof a){var o=a;a=function(){var e=Gl(s);o.call(e)}}Fl(t,s,e,a)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new jl(e,0,t?{hydrate:!0}:void 0)}(n,r),s=i._internalRoot,"function"==typeof a){var l=a;a=function(){var e=Gl(s);l.call(e)}}tl((function(){Fl(t,s,e,a)}))}return Gl(s)}function Kl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function ql(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ml(t))throw Error(s(200));return Kl(e,t,null,n)}jl.prototype.render=function(e){Fl(e,this._internalRoot,null,null)},jl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Fl(null,e,null,(function(){t[Tn]=null}))},mt=function(e){if(13===e.tag){var t=Wa($o(),150,100);zo(e,t),Ll(e,t)}},St=function(e){13===e.tag&&(zo(e,3),Ll(e,3))},yt=function(e){if(13===e.tag){var t=$o();zo(e,t=Wo(t,e,null)),Ll(e,t)}},I=function(e,t,n){switch(t){case"input":if(ke(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=On(r);if(!a)throw Error(s(90));be(r),ke(r,a)}}}break;case"textarea":Ne(e,n);break;case"select":null!=(t=n.value)&&Ae(e,!!n.multiple,t,!1)}},D=el,H=function(e,t,n,r,a){var i=wo;wo|=4;try{return Ba(98,e.bind(null,t,n,r,a))}finally{0===(wo=i)&&Va()}},F=function(){0==(49&wo)&&(function(){if(null!==Bo){var e=Bo;Bo=null,e.forEach((function(e,t){Hl(t,e),Qo(t)})),Va()}}(),ml())},G=function(e,t){var n=wo;wo|=2;try{return e(t)}finally{0===(wo=n)&&Va()}};var Vl,$l,Wl={Events:[In,An,On,T,w,Gn,function(e){at(e,Fn)},N,R,Qt,ot,ml,{current:!1}]};$l=(Vl={findFiberByHostInstance:Cn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);bl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Pl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(a({},Vl,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return $l?$l(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wl,t.createPortal=ql,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&wo))throw Error(s(187));var n=wo;wo|=1;try{return Ba(99,e.bind(null,t))}finally{wo=n,Va()}},t.hydrate=function(e,t,n){if(!Ml(t))throw Error(s(200));return Bl(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ml(t))throw Error(s(200));return Bl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ml(e))throw Error(s(40));return!!e._reactRootContainer&&(tl((function(){Bl(null,null,e,!1,(function(){e._reactRootContainer=null,e[Tn]=null}))})),!0)},t.unstable_batchedUpdates=el,t.unstable_createPortal=function(e,t){return ql(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ml(n))throw Error(s(200));if(null==e||void 0===e._reactInternalFiber)throw Error(s(38));return Bl(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(401)},function(e,t,n){"use strict"; /** @license React v0.19.1 * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r,a,i,s,o;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,u=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(u,0),e}},p=Date.now();t.unstable_now=function(){return Date.now()-p},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(u,0))},a=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},s=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,h=window.Date,f=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var S=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof S&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var y=h.now();t.unstable_now=function(){return h.now()-y}}var g=!1,v=null,_=-1,b=5,P=0;s=function(){return t.unstable_now()>=P},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();P=e+b;try{v(!0,e)?E.postMessage(null):(g=!1,v=null)}catch(e){throw E.postMessage(null),e}}else g=!1},r=function(e){v=e,g||(g=!0,E.postMessage(null))},a=function(e,n){_=f((function(){e(t.unstable_now())}),n)},i=function(){m(_),_=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<I(a,t)))break e;e[r]=t,e[n]=a,n=r}}function T(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var i=2*(r+1)-1,s=e[i],o=i+1,l=e[o];if(void 0!==s&&0>I(s,n))void 0!==l&&0>I(l,s)?(e[r]=l,e[o]=n,r=o):(e[r]=s,e[i]=n,r=i);else{if(!(void 0!==l&&0>I(l,n)))break e;e[r]=l,e[o]=n,r=o}}}return t}return null}function I(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var A=[],O=[],x=1,N=null,R=3,D=!1,H=!1,F=!1;function G(e){for(var t=T(O);null!==t;){if(null===t.callback)C(O);else{if(!(t.startTime<=e))break;C(O),t.sortIndex=t.expirationTime,k(A,t)}t=T(O)}}function U(e){if(F=!1,G(e),!H)if(null!==T(A))H=!0,r(L);else{var t=T(O);null!==t&&a(U,t.startTime-e)}}function L(e,n){H=!1,F&&(F=!1,i()),D=!0;var r=R;try{for(G(n),N=T(A);null!==N&&(!(N.expirationTime>n)||e&&!s());){var o=N.callback;if(null!==o){N.callback=null,R=N.priorityLevel;var l=o(N.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?N.callback=l:N===T(A)&&C(A),G(n)}else C(A);N=T(A)}if(null!==N)var c=!0;else{var u=T(O);null!==u&&a(U,u.startTime-n),c=!1}return c}finally{N=null,R=r,D=!1}}function j(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var M=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){H||D||(H=!0,r(L))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return T(A)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,s){var o=t.unstable_now();if("object"==typeof s&&null!==s){var l=s.delay;l="number"==typeof l&&0<l?o+l:o,s="number"==typeof s.timeout?s.timeout:j(e)}else s=j(e),l=o;return e={id:x++,callback:n,priorityLevel:e,startTime:l,expirationTime:s=l+s,sortIndex:-1},l>o?(e.sortIndex=l,k(O,e),null===T(A)&&e===T(O)&&(F?i():F=!0,a(U,l-o))):(e.sortIndex=s,k(A,e),H||D||(H=!0,r(L))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();G(e);var n=T(A);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<N.expirationTime||s()},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},function(e,t,n){var r=n(168),a=n(56),i=Array.prototype.splice;e.exports=function(e,t){for(var n=e?t.length:0,s=n-1;n--;){var o=t[n];if(n==s||o!==l){var l=o;a(o)?i.call(e,o,1):r(e,o)}}return e}},function(e,t,n){var r=n(43);e.exports=function(e,t,n){for(var a=-1,i=e.length;++a<i;){var s=e[a],o=t(s);if(null!=o&&(void 0===l?o==o&&!r(o):n(o,l)))var l=o,c=s}return c}},function(e,t){e.exports=function(e,t){return e>t}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t){e.exports=require("@termius/windows-iap-bridge")},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"FunctionToString",(function(){return zc})),n.d(r,"InboundFilters",(function(){return _u}));var a={};n.r(a),n.d(a,"GlobalHandlers",(function(){return Tp})),n.d(a,"TryCatch",(function(){return Ip})),n.d(a,"Breadcrumbs",(function(){return Op})),n.d(a,"LinkedErrors",(function(){return xp})),n.d(a,"UserAgent",(function(){return Rp}));var i={};n.r(i),n.d(i,"Severity",(function(){return yu})),n.d(i,"Status",(function(){return qp})),n.d(i,"addGlobalEventProcessor",(function(){return tu})),n.d(i,"addBreadcrumb",(function(){return lp})),n.d(i,"captureException",(function(){return ap})),n.d(i,"captureEvent",(function(){return sp})),n.d(i,"captureMessage",(function(){return ip})),n.d(i,"configureScope",(function(){return op})),n.d(i,"getHubFromCarrier",(function(){return mu})),n.d(i,"getCurrentHub",(function(){return hu})),n.d(i,"Hub",(function(){return uu})),n.d(i,"Scope",(function(){return Zc})),n.d(i,"setContext",(function(){return cp})),n.d(i,"setExtra",(function(){return dp})),n.d(i,"setExtras",(function(){return up})),n.d(i,"setTag",(function(){return hp})),n.d(i,"setTags",(function(){return pp})),n.d(i,"setUser",(function(){return fp})),n.d(i,"withScope",(function(){return mp})),n.d(i,"RendererBackend",(function(){return ud})),n.d(i,"RendererClient",(function(){return pd})),n.d(i,"init",(function(){return dd})),n.d(i,"showReportDialog",(function(){return hd})),n.d(i,"captureMinidump",(function(){return fd})),n.d(i,"flush",(function(){return md})),n.d(i,"close",(function(){return Sd}));var s=n(22),o=n.n(s),l=n(35),c=n.n(l),u=n(10),p=n(7),d=n(125);function h(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function f(e){return!!e&&!!e[ae]}function m(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===se}(e)||Array.isArray(e)||!!e[re]||!!(null===(t=e.constructor)||void 0===t?void 0:t[re])||P(e)||w(e))}function S(e,t,n){void 0===n&&(n=!1),0===y(e)?(n?Object.keys:oe)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function y(e){var t=e[ae];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:P(e)?2:w(e)?3:0}function g(e,t){return 2===y(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function v(e,t){return 2===y(e)?e.get(t):e[t]}function _(e,t,n){var r=y(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function b(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function P(e){return Z&&e instanceof Map}function w(e){return ee&&e instanceof Set}function E(e){return e.o||e.t}function k(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=le(e);delete t[ae];for(var n=oe(t),r=0;r<n.length;r++){var a=n[r],i=t[a];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function T(e,t){return void 0===t&&(t=!1),I(e)||f(e)||!m(e)||(y(e)>1&&(e.set=e.add=e.clear=e.delete=C),Object.freeze(e),t&&S(e,(function(e,t){return T(t,!0)}),!0)),e}function C(){h(2)}function I(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function A(e){var t=ce[e];return t||h(18,e),t}function O(e,t){ce[e]||(ce[e]=t)}function x(){return Q}function N(e,t){t&&(A("Patches"),e.u=[],e.s=[],e.v=t)}function R(e){D(e),e.p.forEach(F),e.p=null}function D(e){e===Q&&(Q=e.l)}function H(e){return Q={p:[],l:Q,h:e,m:!0,_:0}}function F(e){var t=e[ae];0===t.i||1===t.i?t.j():t.g=!0}function G(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||A("ES5").S(t,e,r),r?(n[ae].P&&(R(t),h(4)),m(e)&&(e=U(t,e),t.l||j(t,e)),t.u&&A("Patches").M(n[ae].t,e,t.u,t.s)):e=U(t,n,[]),R(t),t.u&&t.v(t.u,t.s),e!==ne?e:void 0}function U(e,t,n){if(I(t))return t;var r=t[ae];if(!r)return S(t,(function(a,i){return L(e,r,t,a,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return j(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var a=4===r.i||5===r.i?r.o=k(r.k):r.o,i=a,s=!1;3===r.i&&(i=new Set(a),a.clear(),s=!0),S(i,(function(t,i){return L(e,r,a,t,i,n,s)})),j(e,a,!1),n&&e.u&&A("Patches").N(r,n,e.u,e.s)}return r.o}function L(e,t,n,r,a,i,s){if(f(a)){var o=U(e,a,i&&t&&3!==t.i&&!g(t.R,r)?i.concat(r):void 0);if(_(n,r,o),!f(o))return;e.m=!1}else s&&n.add(a);if(m(a)&&!I(a)){if(!e.h.D&&e._<1)return;U(e,a),t&&t.A.l||j(e,a)}}function j(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&T(t,n)}function M(e,t){var n=e[ae];return(n?E(n):e)[t]}function B(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function K(e){e.P||(e.P=!0,e.l&&K(e.l))}function q(e){e.o||(e.o=k(e.t))}function V(e,t,n){var r=P(t)?A("MapSet").F(t,n):w(t)?A("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:x(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},a=r,i=ue;n&&(a=[r],i=pe);var s=Proxy.revocable(a,i),o=s.revoke,l=s.proxy;return r.k=l,r.j=o,l}(t,n):A("ES5").J(t,n);return(n?n.A:x()).p.push(r),r}function $(e){return f(e)||h(22,e),function e(t){if(!m(t))return t;var n,r=t[ae],a=y(t);if(r){if(!r.P&&(r.i<4||!A("ES5").K(r)))return r.t;r.I=!0,n=W(t,a),r.I=!1}else n=W(t,a);return S(n,(function(t,a){r&&v(r.t,t)===a||_(n,t,e(a))})),3===a?new Set(n):n}(e)}function W(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return k(e)}function z(){function e(e,t){var n=a[e];return n?n.enumerable=t:a[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[ae];return ue.get(t,e)},set:function(t){var n=this[ae];ue.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var a=e[t][ae];if(!a.P)switch(a.i){case 5:r(a)&&K(a);break;case 4:n(a)&&K(a)}}}function n(e){for(var t=e.t,n=e.k,r=oe(n),a=r.length-1;a>=0;a--){var i=r[a];if(i!==ae){var s=t[i];if(void 0===s&&!g(t,i))return!0;var o=n[i],l=o&&o[ae];if(l?l.t!==s:!b(o,s))return!0}}var c=!!t[ae];return r.length!==oe(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var a={};O("ES5",{J:function(t,n){var r=Array.isArray(t),a=function(t,n){if(t){for(var r=Array(n.length),a=0;a<n.length;a++)Object.defineProperty(r,""+a,e(a,!0));return r}var i=le(n);delete i[ae];for(var s=oe(i),o=0;o<s.length;o++){var l=s[o];i[l]=e(l,t||!!i[l].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:x(),P:!1,I:!1,R:{},l:n,t:t,k:a,o:null,g:!1,C:!1};return Object.defineProperty(a,ae,{value:i,writable:!0}),a},S:function(e,n,a){a?f(n)&&n[ae].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[ae];if(n){var a=n.t,i=n.k,s=n.R,o=n.i;if(4===o)S(i,(function(t){t!==ae&&(void 0!==a[t]||g(a,t)?s[t]||e(i[t]):(s[t]=!0,K(n)))})),S(a,(function(e){void 0!==i[e]||g(i,e)||(s[e]=!1,K(n))}));else if(5===o){if(r(n)&&(K(n),s.length=!0),i.length<a.length)for(var l=i.length;l<a.length;l++)s[l]=!1;else for(var c=a.length;c<i.length;c++)s[c]=!0;for(var u=Math.min(i.length,a.length),p=0;p<u;p++)i.hasOwnProperty(p)||(s[p]=!0),void 0===s[p]&&e(i[p])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}function J(){function e(e,t){function n(){this.constructor=e}a(e,t),e.prototype=(n.prototype=t.prototype,new n)}function t(e){e.o||(e.R=new Map,e.o=new Map(e.t))}function n(e){e.o||(e.o=new Set,e.t.forEach((function(t){if(m(t)){var n=V(e.A.h,t,e);e.p.set(t,n),e.o.add(n)}else e.o.add(t)})))}function r(e){e.g&&h(3,JSON.stringify(E(e)))}var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},i=function(){function n(e,t){return this[ae]={i:2,l:t,A:t?t.A:x(),P:!1,I:!1,o:void 0,R:void 0,t:e,k:this,C:!1,g:!1},this}e(n,Map);var a=n.prototype;return Object.defineProperty(a,"size",{get:function(){return E(this[ae]).size}}),a.has=function(e){return E(this[ae]).has(e)},a.set=function(e,n){var a=this[ae];return r(a),E(a).has(e)&&E(a).get(e)===n||(t(a),K(a),a.R.set(e,!0),a.o.set(e,n),a.R.set(e,!0)),this},a.delete=function(e){if(!this.has(e))return!1;var n=this[ae];return r(n),t(n),K(n),n.t.has(e)?n.R.set(e,!1):n.R.delete(e),n.o.delete(e),!0},a.clear=function(){var e=this[ae];r(e),E(e).size&&(t(e),K(e),e.R=new Map,S(e.t,(function(t){e.R.set(t,!1)})),e.o.clear())},a.forEach=function(e,t){var n=this;E(this[ae]).forEach((function(r,a){e.call(t,n.get(a),a,n)}))},a.get=function(e){var n=this[ae];r(n);var a=E(n).get(e);if(n.I||!m(a))return a;if(a!==n.t.get(e))return a;var i=V(n.A.h,a,n);return t(n),n.o.set(e,i),i},a.keys=function(){return E(this[ae]).keys()},a.values=function(){var e,t=this,n=this.keys();return(e={})[ie]=function(){return t.values()},e.next=function(){var e=n.next();return e.done?e:{done:!1,value:t.get(e.value)}},e},a.entries=function(){var e,t=this,n=this.keys();return(e={})[ie]=function(){return t.entries()},e.next=function(){var e=n.next();if(e.done)return e;var r=t.get(e.value);return{done:!1,value:[e.value,r]}},e},a[ie]=function(){return this.entries()},n}(),s=function(){function t(e,t){return this[ae]={i:3,l:t,A:t?t.A:x(),P:!1,I:!1,o:void 0,t:e,k:this,p:new Map,g:!1,C:!1},this}e(t,Set);var a=t.prototype;return Object.defineProperty(a,"size",{get:function(){return E(this[ae]).size}}),a.has=function(e){var t=this[ae];return r(t),t.o?!!t.o.has(e)||!(!t.p.has(e)||!t.o.has(t.p.get(e))):t.t.has(e)},a.add=function(e){var t=this[ae];return r(t),this.has(e)||(n(t),K(t),t.o.add(e)),this},a.delete=function(e){if(!this.has(e))return!1;var t=this[ae];return r(t),n(t),K(t),t.o.delete(e)||!!t.p.has(e)&&t.o.delete(t.p.get(e))},a.clear=function(){var e=this[ae];r(e),E(e).size&&(n(e),K(e),e.o.clear())},a.values=function(){var e=this[ae];return r(e),n(e),e.o.values()},a.entries=function(){var e=this[ae];return r(e),n(e),e.o.entries()},a.keys=function(){return this.values()},a[ie]=function(){return this.values()},a.forEach=function(e,t){for(var n=this.values(),r=n.next();!r.done;)e.call(t,r.value,r.value,this),r=n.next()},t}();O("MapSet",{F:function(e,t){return new i(e,t)},T:function(e,t){return new s(e,t)}})}var X,Q,Y="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Z="undefined"!=typeof Map,ee="undefined"!=typeof Set,te="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ne=Y?Symbol.for("immer-nothing"):((X={})["immer-nothing"]=!0,X),re=Y?Symbol.for("immer-draftable"):"__$immer_draftable",ae=Y?Symbol.for("immer-state"):"__$immer_state",ie="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",se=""+Object.prototype.constructor,oe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,le=Object.getOwnPropertyDescriptors||function(e){var t={};return oe(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},ce={},ue={get:function(e,t){if(t===ae)return e;var n=E(e);if(!g(n,t))return function(e,t,n){var r,a=B(t,n);return a?"value"in a?a.value:null===(r=a.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!m(r)?r:r===M(e.t,t)?(q(e),e.o[t]=V(e.A.h,r,e)):r},has:function(e,t){return t in E(e)},ownKeys:function(e){return Reflect.ownKeys(E(e))},set:function(e,t,n){var r=B(E(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var a=M(E(e),t),i=null==a?void 0:a[ae];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(b(n,a)&&(void 0!==n||g(e.t,t)))return!0;q(e),K(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==M(e.t,t)||t in e.t?(e.R[t]=!1,q(e),K(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=E(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){h(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){h(12)}},pe={};S(ue,(function(e,t){pe[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),pe.deleteProperty=function(e,t){return pe.set.call(this,e,t,void 0)},pe.set=function(e,t,n){return ue.set.call(this,e[0],t,n,e[0])};var de=new(function(){function e(e){var t=this;this.O=te,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,s=Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(s))}))}}var s;if("function"!=typeof n&&h(6),void 0!==r&&"function"!=typeof r&&h(7),m(e)){var o=H(t),l=V(t,e,void 0),c=!0;try{s=n(l),c=!1}finally{c?R(o):D(o)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(e){return N(o,r),G(e,o)}),(function(e){throw R(o),e})):(N(o,r),G(s,o))}if(!e||"object"!=typeof e){if(void 0===(s=n(e))&&(s=e),s===ne&&(s=void 0),t.D&&T(s,!0),r){var u=[],p=[];A("Patches").M(e,s,u,p),r(u,p)}return s}h(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(a))}))};var r,a,i=t.produce(e,n,(function(e,t){r=e,a=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,a]})):[i,r,a]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){m(e)||h(8),f(e)&&(e=$(e));var t=H(this),n=V(this,e,void 0);return n[ae].C=!0,D(t),n},t.finishDraft=function(e,t){var n=(e&&e[ae]).A;return N(n,t),G(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!te&&h(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var a=A("Patches").$;return f(e)?a(e,t):this.produce(e,(function(e){return a(e,t)}))},e}()),he=de.produce,fe=(de.produceWithPatches.bind(de),de.setAutoFreeze.bind(de),de.setUseProxies.bind(de),de.applyPatches.bind(de),de.createDraft.bind(de),de.finishDraft.bind(de),he),me=n(90),Se=n.n(me),ye="object"==typeof global&&global&&global.Object===Object&&global,ge="object"==typeof self&&self&&self.Object===Object&&self,ve=(ye||ge||Function("return this")()).Symbol,_e=Object.prototype,be=_e.hasOwnProperty,Pe=_e.toString,we=ve?ve.toStringTag:void 0;var Ee=function(e){var t=be.call(e,we),n=e[we];try{e[we]=void 0;var r=!0}catch(e){}var a=Pe.call(e);return r&&(t?e[we]=n:delete e[we]),a},ke=Object.prototype.toString;var Te=function(e){return ke.call(e)},Ce=ve?ve.toStringTag:void 0;var Ie=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ce&&Ce in Object(e)?Ee(e):Te(e)};var Ae=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var Oe=function(e){return null!=e&&"object"==typeof e},xe=Function.prototype,Ne=Object.prototype,Re=xe.toString,De=Ne.hasOwnProperty,He=Re.call(Object);var Fe=function(e){if(!Oe(e)||"[object Object]"!=Ie(e))return!1;var t=Ae(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==He},Ge=n(50),Ue="@@redux/INIT";function Le(e,t,n){var r;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(Le)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var a=e,i=t,s=[],o=s,l=!1;function c(){o===s&&(o=s.slice())}function u(){return i}function p(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return c(),o.push(e),function(){if(t){t=!1,c();var n=o.indexOf(e);o.splice(n,1)}}}function d(e){if(!Fe(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,i=a(i,e)}finally{l=!1}for(var t=s=o,n=0;n<t.length;n++){(0,t[n])()}return e}return d({type:Ue}),(r={dispatch:d,subscribe:p,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");a=e,d({type:Ue})}})[Ge.a]=function(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[Ge.a]=function(){return this},e},r}function je(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Be="persist/REHYDRATE",Ke="persist/REGISTER",qe="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},Ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function $e(e,t,n,r){r.debug;var a=Ve({},n);return e&&"object"===(void 0===e?"undefined":qe(e))&&Object.keys(e).forEach((function(r){"_persist"!==r&&t[r]===n[r]&&(a[r]=e[r])})),a}function We(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],a=e.throttle||0,i=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key,s=e.storage,o=!1===e.serialize?function(e){return e}:ze,l={},c={},u=[],p=null,d=null;function h(){if(0===u.length)return p&&clearInterval(p),void(p=null);var e=u.shift(),t=r.reduce((function(t,n){return n.in(t,e,l)}),l[e]);if(void 0!==t)try{c[e]=o(t)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete c[e];0===u.length&&(Object.keys(c).forEach((function(e){void 0===l[e]&&delete c[e]})),d=s.setItem(i,o(c)).catch(f))}function f(e){0}return{update:function(e){Object.keys(e).forEach((function(r){(function(e){return(!n||-1!==n.indexOf(e)||"_persist"===e)&&(!t||-1===t.indexOf(e))})(r)&&l[r]!==e[r]&&-1===u.indexOf(r)&&u.push(r)})),Object.keys(l).forEach((function(t){void 0===e[t]&&u.push(t)})),null===p&&(p=setInterval(h,a)),l=e},flush:function(){for(;0!==u.length;)h();return d||Promise.resolve()}}}function ze(e){return JSON.stringify(e)}function Je(e){var t=e.transforms||[],n=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key,r=e.storage,a=(e.debug,!1===e.serialize?function(e){return e}:Xe);return r.getItem(n).then((function(e){if(e)try{var n={},r=a(e);return Object.keys(r).forEach((function(e){n[e]=t.reduceRight((function(t,n){return n.out(t,e,r)}),a(r[e]))})),n}catch(e){throw e}}))}function Xe(e){return JSON.parse(e)}function Qe(e){0}var Ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Ze(e,t){var n=void 0!==e.version?e.version:-1,r=(e.debug,void 0===e.stateReconciler?$e:e.stateReconciler),a=e.getStoredState||Je,i=void 0!==e.timeout?e.timeout:5e3,s=null,o=!1,l=!0,c=function(e){return e._persist.rehydrated&&s&&!l&&s.update(e),e};return function(u,p){var d=u||{},h=d._persist,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(d,["_persist"]);if("persist/PERSIST"===p.type){var m=!1,S=function(t,n){m||(p.rehydrate(e.key,t,n),m=!0)};if(i&&setTimeout((function(){!m&&S(void 0,new Error('redux-persist: persist timed out for persist key "'+e.key+'"'))}),i),l=!1,s||(s=We(e)),h)return u;if("function"!=typeof p.rehydrate||"function"!=typeof p.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return p.register(e.key),a(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){S(e)}),(function(e){S(void 0,e)}))}),(function(e){S(void 0,e)})),Ye({},t(f,p),{_persist:{version:n,rehydrated:!1}})}if("persist/PURGE"===p.type)return o=!0,p.result(function(e){var t=e.storage,n=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key;return t.removeItem(n,Qe)}(e)),Ye({},t(f,p),{_persist:h});if("persist/FLUSH"===p.type)return p.result(s&&s.flush()),Ye({},t(f,p),{_persist:h});if("persist/PAUSE"===p.type)l=!0;else if(p.type===Be){if(o)return Ye({},f,{_persist:Ye({},h,{rehydrated:!0})});if(p.key===e.key){var y=t(f,p),g=p.payload,v=!1!==r&&void 0!==g?r(g,u,y,e):y,_=Ye({},v,{_persist:Ye({},h,{rehydrated:!0})});return c(_)}}if(!h)return t(u,p);var b=t(f,p);return b===f?u:(b._persist=h,c(b))}}"function"==typeof Symbol&&Symbol.iterator,Object.assign;var et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function tt(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var nt={registry:[],bootstrapped:!1},rt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nt,t=arguments[1];switch(t.type){case Ke:return et({},e,{registry:[].concat(tt(e.registry),[t.key])});case Be:var n=e.registry.indexOf(t.key),r=[].concat(tt(e.registry));return r.splice(n,1),et({},e,{registry:r,bootstrapped:0===r.length});default:return e}};function at(e,t){(t||{}).debug;return function(t,n){if(!t)return Promise.resolve(void 0);var r=t._persist&&void 0!==t._persist.version?t._persist.version:-1;if(r===n)return Promise.resolve(t);if(r>n)return Promise.resolve(t);var a=Object.keys(e).map((function(e){return parseInt(e)})).filter((function(e){return n>=e&&e>r})).sort((function(e,t){return e-t}));try{var i=a.reduce((function(t,n){return e[n](t)}),t);return Promise.resolve(i)}catch(e){return Promise.reject(e)}}}function it(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.whitelist||null,a=n.blacklist||null;function i(e){return!(!r||-1!==r.indexOf(e))||!(!a||-1===a.indexOf(e))}return{in:function(t,n,r){return!i(n)&&e?e(t,n,r):t},out:function(e,n,r){return!i(n)&&t?t(e,n,r):e}}}var st=function(e){return"@@redux-saga/"+e},ot=st("CANCEL_PROMISE"),lt=st("CHANNEL_END"),ct=st("IO"),ut=st("MATCH"),pt=st("MULTICAST"),dt=st("SAGA_ACTION"),ht=st("SELF_CANCELLATION"),ft=st("TASK"),mt=st("TASK_CANCEL"),St=st("TERMINATE"),yt=st("LOCATION");function gt(){return(gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var vt=function(e){return null==e},_t=function(e){return null!=e},bt=function(e){return"function"==typeof e},Pt=function(e){return"string"==typeof e},wt=Array.isArray,Et=function(e){return e&&bt(e.then)},kt=function(e){return e&&bt(e.next)&&bt(e.throw)},Tt=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};var Ct=function(e){return function(){return e}}(!0),It=function(){};var At=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var Ot=function(e,t){gt(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function xt(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function Nt(e){var t=!1;return function(){t||(t=!0,e())}}var Rt=function(e){throw e},Dt=function(e){return{value:e,done:!0}};function Ht(e,t,n){void 0===t&&(t=Rt),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:Dt,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function Ft(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var Gt=function(e){return Array.apply(null,new Array(e))},Ut=function(e){return function(t){return e(Object.defineProperty(t,dt,{value:!0}))}},Lt=function(e){return e===St},jt=function(e){return e===mt},Mt=function(e){return Lt(e)||jt(e)};function Bt(e,t){var n=Object.keys(e),r=n.length;var a,i=0,s=wt(e)?Gt(r):{},o={};return n.forEach((function(e){var n=function(n,o){a||(o||Mt(n)?(t.cancel(),t(n,o)):(s[e]=n,++i===r&&(a=!0,t(s))))};n.cancel=It,o[e]=n})),t.cancel=function(){a||(a=!0,n.forEach((function(e){return o[e].cancel()})))},o}function Kt(e){return{name:e.name||"anonymous",location:qt(e)}}function qt(e){return e[yt]}var Vt={isEmpty:Ct,put:It,take:It};function $t(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,a=0,i=0,s=function(t){n[a]=t,a=(a+1)%e,r++},o=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},l=function(){for(var e=[];r;)e.push(o());return e};return{isEmpty:function(){return 0==r},put:function(o){var c;if(r<e)s(o);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[a]=o,i=a=(a+1)%e;break;case 4:c=2*e,n=l(),r=n.length,a=n.length,i=0,n.length=c,e=c,s(o)}},take:o,flush:l}}var Wt=function(){return Vt},zt=function(e){return $t(e,4)};var Jt=function(){return Math.random().toString(36).substring(7).split("").join(".")};Jt(),Jt();function Xt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Qt(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}var Yt=Qt,Zt=[],en=0;function tn(e){try{an(),e()}finally{sn()}}function nn(e){Zt.push(e),en||(an(),on())}function rn(e){try{return an(),e()}finally{on()}}function an(){en++}function sn(){en--}function on(){var e;for(sn();!en&&void 0!==(e=Zt.shift());)tn(e)}var ln=function(e){return function(t){return e.some((function(e){return hn(e)(t)}))}},cn=function(e){return function(t){return e(t)}},un=function(e){return function(t){return t.type===String(e)}},pn=function(e){return function(t){return t.type===e}},dn=function(){return Ct};function hn(e){var t="*"===e?dn:Pt(e)?un:wt(e)?ln:function(e){return bt(e)&&e.hasOwnProperty("toString")}(e)?un:bt(e)?cn:Tt(e)?pn:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var fn={type:lt},mn=function(e){return e&&e.type===lt};function Sn(e){void 0===e&&(e=zt());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(fn):e.isEmpty()?(n.push(r),r.cancel=function(){xt(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(fn):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,a=e.length;r<a;r++){(0,e[r])(fn)}}}}}function yn(e,t){void 0===t&&(t=Wt());var n,r=!1,a=Sn(t),i=function(){r||(r=!0,bt(n)&&n(),a.close())};return n=Nt(n=e((function(e){mn(e)?i():a.put(e)}))),r&&n(),{take:a.take,flush:a.flush,close:i}}function gn(){var e,t,n,r,a,i,s=(t=!1,r=n=[],a=function(){r===n&&(r=n.slice())},i=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(fn)}))},(e={})[pt]=!0,e.put=function(e){if(!t)if(mn(e))i();else for(var a=n=r,s=0,o=a.length;s<o;s++){var l=a[s];l[ut](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=dn),t?e(fn):(e[ut]=n,a(),r.push(e),e.cancel=Nt((function(){a(),xt(r,e)})))},e.close=i,e),o=s.put;return s.put=function(e){e[dt]?o(e):nn((function(){o(e)}))},s}function vn(e,t){var n=e[ot];bt(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var _n,bn=0,Pn=function(){return++bn};function wn(e){e.isRunning()&&e.cancel()}var En=((_n={}).TAKE=function(e,t,n){var r=t.channel,a=void 0===r?e.channel:r,i=t.pattern,s=t.maybe,o=function(e){e instanceof Error?n(e,!0):!mn(e)||s?n(e):n(St)};try{a.take(o,_t(i)?hn(i):null)}catch(e){return void n(e,!0)}n.cancel=o.cancel},_n.PUT=function(e,t,n){var r=t.channel,a=t.action,i=t.resolve;nn((function(){var t;try{t=(r?r.put:e.dispatch)(a)}catch(e){return void n(e,!0)}i&&Et(t)?vn(t,n):n(t)}))},_n.ALL=function(e,t,n,r){var a=r.digestEffect,i=bn,s=Object.keys(t);if(0!==s.length){var o=Bt(t,n);s.forEach((function(e){a(t[e],i,o[e],e)}))}else n(wt(t)?[]:{})},_n.RACE=function(e,t,n,r){var a=r.digestEffect,i=bn,s=Object.keys(t),o=wt(t)?Gt(s.length):{},l={},c=!1;s.forEach((function(e){var t=function(t,r){c||(r||Mt(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,o[e]=t,n(o)))};t.cancel=It,l[e]=t})),n.cancel=function(){c||(c=!0,s.forEach((function(e){return l[e].cancel()})))},s.forEach((function(e){c||a(t[e],i,l[e],e)}))},_n.CALL=function(e,t,n,r){var a=t.context,i=t.fn,s=t.args,o=r.task;try{var l=i.apply(a,s);if(Et(l))return void vn(l,n);if(kt(l))return void Nn(e,l,o.context,bn,Kt(i),!1,n);n(l)}catch(e){n(e,!0)}},_n.CPS=function(e,t,n){var r=t.context,a=t.fn,i=t.args;try{var s=function(e,t){vt(e)?n(t):n(e,!0)};a.apply(r,i.concat(s)),s.cancel&&(n.cancel=s.cancel)}catch(e){n(e,!0)}},_n.FORK=function(e,t,n,r){var a=t.context,i=t.fn,s=t.args,o=t.detached,l=r.task,c=function(e){var t=e.context,n=e.fn,r=e.args;try{var a=n.apply(t,r);if(kt(a))return a;var i=!1;return Ht((function(e){return i?{value:e,done:!0}:(i=!0,{value:a,done:!Et(a)})}))}catch(e){return Ht((function(){throw e}))}}({context:a,fn:i,args:s}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Kt(t)}(c,i);rn((function(){var t=Nn(e,c,l.context,bn,u,o,void 0);o?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},_n.JOIN=function(e,t,n,r){var a=r.task,i=function(e,t){if(e.isRunning()){var n={task:a,cb:t};t.cancel=function(){e.isRunning()&&xt(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(wt(t)){if(0===t.length)return void n([]);var s=Bt(t,n);t.forEach((function(e,t){i(e,s[t])}))}else i(t,n)},_n.CANCEL=function(e,t,n,r){var a=r.task;t===ht?wn(a):wt(t)?t.forEach(wn):wn(t),n()},_n.SELECT=function(e,t,n){var r=t.selector,a=t.args;try{n(r.apply(void 0,[e.getState()].concat(a)))}catch(e){n(e,!0)}},_n.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,a=Sn(t.buffer),i=hn(r),s=function t(n){mn(n)||e.channel.take(t,i),a.put(n)},o=a.close;a.close=function(){s.cancel(),o()},e.channel.take(s,i),n(a)},_n.CANCELLED=function(e,t,n,r){n(r.task.isCancelled())},_n.FLUSH=function(e,t,n){t.flush(n)},_n.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},_n.SET_CONTEXT=function(e,t,n,r){var a=r.task;Ot(a.context,t),n()},_n);function kn(e,t){return e+"?"+t}function Tn(e){var t=e.name,n=e.location;return n?t+" "+kn(n.fileName,n.lineNumber):t}var Cn=null,In=[],An=function(){Cn=null,In.length=0},On=function(){var e,t,n=In[0],r=In.slice(1),a=n.crashedEffect?function(e){var t=qt(e);return t?t.code+" "+kn(t.fileName,t.lineNumber):""}(n.crashedEffect):null;return["The above error occurred in task "+Tn(n.meta)+(a?" \n when executing effect "+a:"")].concat(r.map((function(e){return" created by "+Tn(e.meta)})),[(e=In,t=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))}((function(e){return e.cancelledTasks}),e),t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):"")]).join("\n")};function xn(e,t,n,r,a,i,s){var o;void 0===s&&(s=It);var l,c,u=0,p=null,d=[],h=Object.create(n),f=function(e,t,n){var r,a=[],i=!1;function s(e){t(),l(),n(e,!0)}function o(t){a.push(t),t.cont=function(o,l){i||(xt(a,t),t.cont=It,l?s(o):(t===e&&(r=o),a.length||(i=!0,n(r))))}}function l(){i||(i=!0,a.forEach((function(e){e.cont=It,e.cancel()})),a=[])}return o(e),{addTask:o,cancelAll:l,abort:s,getTasks:function(){return a}}}(t,(function(){d.push.apply(d,f.getTasks().map((function(e){return e.meta.name})))}),m);function m(t,n){if(n){if(u=2,(i={meta:a,cancelledTasks:d}).crashedEffect=Cn,In.push(i),S.isRoot){var r=On();An(),e.onError(t,{sagaStack:r})}c=t,p&&p.reject(t)}else t===mt?u=1:1!==u&&(u=3),l=t,p&&p.resolve(t);var i;S.cont(t,n),S.joiners.forEach((function(e){e.cb(t,n)})),S.joiners=null}var S=((o={})[ft]=!0,o.id=r,o.meta=a,o.isRoot=i,o.context=h,o.joiners=[],o.queue=f,o.cancel=function(){0===u&&(u=1,f.cancelAll(),m(mt,!1))},o.cont=s,o.end=m,o.setContext=function(e){Ot(h,e)},o.toPromise=function(){return p||(p=Yt(),2===u?p.reject(c):0!==u&&p.resolve(l)),p.promise},o.isRunning=function(){return 0===u},o.isCancelled=function(){return 1===u||0===u&&1===t.status},o.isAborted=function(){return 2===u},o.result=function(){return l},o.error=function(){return c},o);return S}function Nn(e,t,n,r,a,i,s){var o=e.finalizeRunEffect((function(t,n,r){if(Et(t))vn(t,r);else if(kt(t))Nn(e,t,c.context,n,a,!1,r);else if(t&&t[ct]){(0,En[t.type])(e,t.payload,r,u)}else r(t)}));p.cancel=It;var l={meta:a,cancel:function(){0===l.status&&(l.status=1,p(mt))},status:0},c=xn(e,l,n,r,a,i,s),u={task:c,digestEffect:d};return s&&(s.cancel=c.cancel),p(),c;function p(e,n){try{var a;n?(a=t.throw(e),An()):jt(e)?(l.status=1,p.cancel(),a=bt(t.return)?t.return(mt):{done:!0,value:mt}):a=Lt(e)?bt(t.return)?t.return():{done:!0}:t.next(e),a.done?(1!==l.status&&(l.status=3),l.cont(a.value)):d(a.value,r,p)}catch(e){if(1===l.status)throw e;l.status=2,l.cont(e,!0)}}function d(t,n,r,a){void 0===a&&(a="");var i,s=Pn();function l(n,a){i||(i=!0,r.cancel=It,e.sagaMonitor&&(a?e.sagaMonitor.effectRejected(s,n):e.sagaMonitor.effectResolved(s,n)),a&&function(e){Cn=e}(t),r(n,a))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:s,parentEffectId:n,label:a,effect:t}),l.cancel=It,r.cancel=function(){i||(i=!0,l.cancel(),l.cancel=It,e.sagaMonitor&&e.sagaMonitor.effectCancelled(s))},o(t,s,l)}}function Rn(e,t){var n=e.channel,r=void 0===n?gn():n,a=e.dispatch,i=e.getState,s=e.context,o=void 0===s?{}:s,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,p=void 0===u?Ft:u;for(var d=arguments.length,h=new Array(d>2?d-2:0),f=2;f<d;f++)h[f-2]=arguments[f];var m=t.apply(void 0,h);var S,y=Pn();if(l&&(l.rootSagaStarted=l.rootSagaStarted||It,l.effectTriggered=l.effectTriggered||It,l.effectResolved=l.effectResolved||It,l.effectRejected=l.effectRejected||It,l.effectCancelled=l.effectCancelled||It,l.actionDispatched=l.actionDispatched||It,l.rootSagaStarted({effectId:y,saga:t,args:h})),c){var g=Xt.apply(void 0,c);S=function(e){return function(t,n,r){return g((function(t){return e(t,n,r)}))(t)}}}else S=At;var v={channel:r,dispatch:Ut(a),getState:i,sagaMonitor:l,onError:p,finalizeRunEffect:S};return rn((function(){var e=Nn(v,m,o,y,Kt(t),!0,void 0);return l&&l.effectResolved(y,e),e}))}var Dn=function(e){var t,n=void 0===e?{}:e,r=n.context,a=void 0===r?{}:r,i=n.channel,s=void 0===i?gn():i,o=n.sagaMonitor,l=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=Rn.bind(null,gt({},l,{context:a,channel:s,dispatch:r,getState:n,sagaMonitor:o})),function(e){return function(t){o&&o.actionDispatched&&o.actionDispatched(t);var n=e(t);return s.put(t),n}}}return c.run=function(){return t.apply(void 0,arguments)},c.setContext=function(e){Ot(a,e)},c},Hn=function(e){return"@@redux-saga/"+e},Fn=Hn("CANCEL_PROMISE"),Gn=Hn("IO"),Un=Hn("MULTICAST"),Ln=Hn("SELF_CANCELLATION");function jn(){return(jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Mn=function(e){return null!=e},Bn=function(e){return"function"==typeof e},Kn=function(e){return"string"==typeof e},qn=Array.isArray,Vn=function e(t){return t&&(Kn(t)||Wn(t)||Bn(t)||qn(t)&&t.every(e))},$n=function(e){return e&&Bn(e.take)&&Bn(e.close)},Wn=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};var zn=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return r[Fn]=function(){clearTimeout(n)},r};var Jn=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var Xn=function(e){throw e},Qn=function(e){return{value:e,done:!0}};function Yn(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,a=0,i=0,s=function(t){n[a]=t,a=(a+1)%e,r++},o=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},l=function(){for(var e=[];r;)e.push(o());return e};return{isEmpty:function(){return 0==r},put:function(o){var c;if(r<e)s(o);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[a]=o,i=a=(a+1)%e;break;case 4:c=2*e,n=l(),r=n.length,a=n.length,i=0,n.length=c,e=c,s(o)}},take:o,flush:l}}var Zn=function(e){return Yn(e,3)},er=function(e,t){var n;return(n={})[Gn]=!0,n.combinator=!1,n.type=e,n.payload=t,n},tr=function(e){return er("FORK",jn({},e.payload,{detached:!0}))};function nr(e,t){return void 0===e&&(e="*"),Vn(e)?(Mn(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),er("TAKE",{pattern:e})):$n(n=e)&&n[Un]&&Mn(t)&&Vn(t)?er("TAKE",{channel:e,pattern:t}):$n(e)?(Mn(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),er("TAKE",{channel:e})):void 0;var n}function rr(e,t){return function(e){return null==e}(t)&&(t=e,e=void 0),er("PUT",{channel:e,action:t})}function ar(e){var t=er("RACE",e);return t.combinator=!0,t}function ir(e,t){var n,r=null;return Bn(e)?n=e:(qn(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&Kn(n)&&Bn(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function sr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return er("CALL",ir(e,n))}function or(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return er("FORK",ir(e,n))}function lr(e){return void 0===e&&(e=Ln),er("CANCEL",e)}function cr(e,t){return er("ACTION_CHANNEL",{pattern:e,buffer:t})}var ur=sr.bind(null,zn),pr=function(e){return{done:!0,value:e}},dr={};function hr(e){return $n(e)?"channel":function(e){return Bn(e)&&e.hasOwnProperty("toString")}(e)?String(e):Bn(e)?e.name:String(e)}function fr(e,t,n){var r,a,i,s=t;function o(t,n){if(s===dr)return pr(t);if(n&&!a)throw s=dr,n;r&&r(t);var o=n?e[a](n):e[s]();return s=o.nextState,i=o.effect,r=o.stateUpdater,a=o.errorState,s===dr?pr(t):i}return function(e,t,n){void 0===t&&(t=Xn),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:Qn,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}(o,(function(e){return o(null,e)}),n)}function mr(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i,s={done:!1,value:nr(e)},o=function(e){return{done:!1,value:or.apply(void 0,[t].concat(r,[e]))}},l=function(e){return i=e};return fr({q1:function(){return{nextState:"q2",effect:s,stateUpdater:l}},q2:function(){return{nextState:"q1",effect:o(i)}}},"q1","takeEvery("+hr(e)+", "+t.name+")")}function Sr(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i,s,o={done:!1,value:nr(e)},l=function(e){return{done:!1,value:or.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:lr(e)}},u=function(e){return i=e},p=function(e){return s=e};return fr({q1:function(){return{nextState:"q2",effect:o,stateUpdater:p}},q2:function(){return i?{nextState:"q3",effect:c(i)}:{nextState:"q1",effect:l(s),stateUpdater:u}},q3:function(){return{nextState:"q1",effect:l(s),stateUpdater:u}}},"q1","takeLatest("+hr(e)+", "+t.name+")")}function yr(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i,s={done:!1,value:nr(e)},o=function(e){return{done:!1,value:sr.apply(void 0,[t].concat(r,[e]))}},l=function(e){return i=e};return fr({q1:function(){return{nextState:"q2",effect:s,stateUpdater:l}},q2:function(){return{nextState:"q1",effect:o(i)}}},"q1","takeLeading("+hr(e)+", "+t.name+")")}function gr(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),i=3;i<r;i++)a[i-3]=arguments[i];var s,o,l=function(){return{done:!1,value:nr(o)}},c=function(e){return{done:!1,value:or.apply(void 0,[n].concat(a,[e]))}},u={done:!1,value:ur(e)},p=function(e){return s=e},d=function(e){return o=e},h=!$n(t);return h||d(t),fr({q1:function(){return{nextState:"q2",effect:{done:!1,value:cr(t,Zn(1))},stateUpdater:d}},q2:function(){return{nextState:"q3",effect:l(),stateUpdater:p}},q3:function(){return{nextState:"q4",effect:c(s)}},q4:function(){return{nextState:"q2",effect:u}}},h?"q1":"q2","throttle("+hr(t)+", "+n.name+")")}function vr(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),i=3;i<r;i++)a[i-3]=arguments[i];var s,o,l={done:!1,value:nr(t)},c={done:!1,value:ar({action:nr(t),debounce:ur(e)})},u=function(e){return{done:!1,value:or.apply(void 0,[n].concat(a,[e]))}},p=function(e){return{done:!1,value:e}},d=function(e){return s=e},h=function(e){return o=e};return fr({q1:function(){return{nextState:"q2",effect:l,stateUpdater:d}},q2:function(){return{nextState:"q3",effect:c,stateUpdater:h}},q3:function(){return o.debounce?{nextState:"q1",effect:u(s)}:{nextState:"q2",effect:p(o.action),stateUpdater:d}}},"q1","debounce("+hr(t)+", "+n.name+")")}function*_r(...e){return yield nr(...e)}function*br(...e){return yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return or.apply(void 0,[mr,e,t].concat(r))}(...e)}function*Pr(...e){return yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return or.apply(void 0,[Sr,e,t].concat(r))}(...e)}function*wr(...e){return yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return or.apply(void 0,[yr,e,t].concat(r))}(...e)}function*Er(...e){return yield rr(...e)}function*kr(...e){return yield sr(...e)}function*Tr(...e){return yield or(...e)}function*Cr(...e){return yield function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return tr(or.apply(void 0,[e].concat(n)))}(...e)}function*Ir(...e){return yield lr(...e)}function*Ar(...e){return yield function(e){void 0===e&&(e=Jn);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return er("SELECT",{selector:e,args:n})}(...e)}function*Or(...e){return yield ur(...e)}function*xr(...e){return yield function(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),i=3;i<r;i++)a[i-3]=arguments[i];return or.apply(void 0,[gr,e,t,n].concat(a))}(...e)}function*Nr(...e){return yield function(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),i=3;i<r;i++)a[i-3]=arguments[i];return or.apply(void 0,[vr,e,t,n].concat(a))}(...e)}function*Rr(...e){return yield function(e){var t=er("ALL",e);return t.combinator=!0,t}(...e)}function*Dr(...e){return yield ar(...e)}var Hr=n(196),Fr=n(197);const Gr="UNAUTHORIZED",Ur="FORBIDDEN",Lr="BLOCK_ACCESS";class jr extends Error{constructor({statusText:e,status:t,responseJSON:n}){super(e),this.status=0,this.statusText="",this.name="HttpError",this.status=t,this.statusText=e,this.responseJSON=n}static connectionAborted(){return new jr({status:0,statusText:"error"})}}class Mr extends Error{constructor(){super("We could not verify the SSL certificate."),this.name="SSLVerificationError",this.status=-104}static isInstanceOf(e){return-104===e}}const Br={token:"Token",temp:"TempToken",device:"DeviceToken"};class Kr extends Fr.EventEmitter{constructor({base_url:e,client_version:t,platform:n,api_token:r="",isSSLVerificationFailedCallback:a=(async()=>!1)}){super(),this.base_url=e,this.client_version=t,this.platform=n,this.api_token=r,this.isSSLVerificationFailedCallback=a}getTokenType(e){return Br[e]||Br.token}makeAuthorizationHeader(e=this.api_token,t="device"){return`${this.getTokenType(t)} ${e}`}getDefaultRequestOptions(){return{token:this.api_token,tokenType:"device",options:{method:"GET"},shouldEmitErrorEvents:!0}}getModifiedRequestOptions(e){return{...this.getDefaultRequestOptions(),...e}}getDefaultHeaders(e){return new Headers({...this.generateAuthHeaders(e),"X-DEVICE-APP-VERSION":this.client_version,"X-DEVICE-PLATFORM":this.platform})}makeRequest(e,t){const n=this.getDefaultHeaders(t),r=this.generateUrl(e);return new Request(r,{headers:n,...t.options||{}})}handleFailedRequest(e){switch(e.status){case 401:this.emit(Gr);break;case 403:this.emit(Ur);break;case 490:this.emit(Lr)}}async downloadAsBlob(e,t){return this.http(e,t,Vr)}async http(e,t,n=qr){const r=new jr({status:-1,statusText:""}),a=jr.connectionAborted(),i=new Mr;try{const a=await fetch(e),i=await n(a);if(!a.ok&&t.shouldEmitErrorEvents&&this.handleFailedRequest(a),!a.ok)throw r.message=a.statusText,r.status=a.status,r.statusText=a.statusText,r.responseJSON=i,r;return i}catch(e){if(await this.isSSLVerificationFailedCallback())throw i;throw e instanceof jr?e:a}}generateAuthHeaders(e){return{"content-type":"application/json; charset=utf-8",authorization:this.makeAuthorizationHeader(null==e?void 0:e.token,null==e?void 0:e.tokenType)}}generateUrl(e){return`${this.base_url}${e}`}async get(e,t=this.getDefaultRequestOptions()){const n=this.getModifiedRequestOptions(t),r=this.makeRequest(e,n);return this.http(r,n)}async post(e,t={},n={}){const r=this.getModifiedRequestOptions({...n,options:{method:"POST",body:JSON.stringify(t)}}),a=this.makeRequest(e,r);return this.http(a,r)}async put(e,t,n={}){const r=this.getModifiedRequestOptions({...n,options:{method:"PUT",body:JSON.stringify(t)}}),a=this.makeRequest(e,r);return this.http(a,r)}async patch(e,t,n={}){const r=this.getModifiedRequestOptions({...n,options:{method:"PATCH",body:JSON.stringify(t)}}),a=this.makeRequest(e,r);return this.http(a,r)}async delete(e,t,n={}){const r=this.getModifiedRequestOptions({...n,options:{method:"DELETE",body:JSON.stringify(t)}}),a=this.makeRequest(e,r);return this.http(a,r)}async download(e,t=this.getDefaultRequestOptions()){const n=this.getModifiedRequestOptions(t),r=this.makeRequest(e,n);return this.downloadAsBlob(r,n)}updateApiToken(e){this.api_token=e}withPagination(e,t){return this.withQueryString(e,t)}withQueryString(e,t){const n=new Hr.URLSearchParams;for(const[e,r]of Object.entries(t))n.append(e,r.toString());return`${e}?${n.toString()}`}}async function qr(e){try{return await e.json()}catch(e){return null}}async function Vr(e){try{return await e.blob()}catch(e){return null}}const $r="/api/v4/bulk/account/",Wr="/api/v3/account/profile/",zr="/api/v3/subscription/",Jr="/api/v3/setting/mobile/",Xr="/api/v4/auth/security/token/",Qr="/api/v3/account/billing_info/",Yr="/api/v4/user/email/",Zr="/api/v2/account/email/confirm/",ea="/api/v4/auth/device/password/",ta="/api/v4.1/auth/device/password/",na="/api/v3/password/reset/",ra="/api/v4/auth/device/password/recovery/",aa="/api/v3/user/password/recovery/verification-code/",ia="/api/v4/account/delete/",sa="/api/v4.1/auth/otp/authy/register/",oa="/api/v4.1/auth/otp/totp/register/",la="/api/v4/auth/otp/enable/",ca="/api/v4/auth/otp/disable/",ua="/api/v3/crypto/regenerate/",pa="/api/v4/keyserver/key/encryption/",da="/api/v3/keyserver/key/my/",ha="/api/v3/keyserver/key/team/",fa="/api/v3/user/srp/",ma="/api/v3/user/srp/initial-data/",Sa="/api/v3/auth/device/stale-encryption/",ya="/api/v4/terminal/sync/",ga="/api/v3/terminal/bulk/",va="/api/v3/terminal/history/",_a="/api/v4/terminal/history/bulk/",ba="/api/v3/terminal/history/bulk/clear/",Pa="/api/v3/in-app-messages/",wa=e=>`/api/v4/account/${e}/avatar/`,Ea="/api/v3/user/device/current/",ka="/api/v3.3/auth/device/login/",Ta="/api/v3/auth/device/logout/current/",Ca="/api/v4/team/trial/",Ia="/api/v4.1/team/trial/deactivate/",Aa="/api/v4/team/trial/extend/",Oa="/api/v4/trial/extend/",xa="/api/v3/team/invite/",Na="/api/v3/team/seats/occupied/",Ra="/api/v3/team/member/stale-encryption/",Da="/api/v3/team/member/",Ha="/api/v4/terminal/authorized-keys/",Fa="/api/v3/team/modify/",Ga="/api/v4/team/invite/url/",Ua="/api/v3/auth/device/centrifugo/token/",La="/api/v3/auth/device/centrifugo/subscribe/token/",ja="/centrifugo/connection/websocket",Ma="/api/v3/subscription/microsoft/service_ticket/",Ba="/api/v4/user/productboard/jwt/",Ka="/api/v4.1/nps/survey/",qa="/api/v4.1/auth/sso/firebase/detect_action/",Va="/api/v4.1/auth/sso/domain/check_email/",$a="/api/v4/auth/device/signaling/",Wa="/signaling/configuration/",za="/api/v4.1/team/trial/checkout-page/";class Ja extends Kr{bulkAccount(){return this.get($r)}getUserProfile(){return this.get(Wr)}login(e){return this.post(ka,e,{shouldEmitErrorEvents:!1})}updateDevice(e){return this.put(Ea,e)}logout(){return this.delete(Ta,null,{shouldEmitErrorEvents:!1})}getProductBoardToken(){return this.get(Ba)}getDataSync(e){return e?this.get(this.withQueryString(ya,{last_synced__gte:e.lastSynced})):this.get(ya)}getOnlyPersonalDataSync(e){return e?this.get(this.withQueryString(ga,{last_synced__gte:e.lastSynced})):this.get(ga)}sync(e){return this.post(ya,e)}syncOnlyPersonalData(e){return this.post(ga,e)}regenerateSpecs(){return this.get(ua)}changePassword(e){return this.post(ea,e)}changePasswordWithSecurityToken(e){return this.post(ta,e)}accountRecovery(e){return this.post(ra,e)}changeEmail(e){return this.post(Yr,e)}deleteAccount(e){return this.post(ia,e)}resetPassword(e){return this.post(na,e)}sendVerificationCode(){return this.post(aa)}confirmEmail(){return this.get(Zr)}getSettings(){return this.get(Jr)}updateSettings(e){return this.put(Jr,e)}updateBillingInformation(e){return this.put(Qr,e)}registerUserAuthy(e){return this.post(sa,e)}otpRegisterProviderTotp(){return this.post(oa)}enableTwoFactorAuth(e){return this.post(la,e)}disableTwoFactorAuth(e){return this.post(ca,e)}modifyTeam(e){return this.patch(Fa,e)}getWindowsServiceTicket(){return this.get(Ma)}validateReceipt(e){return this.post(zr,e)}getEncryptionKey(){return this.get(pa)}uploadTeamEncryptionKey(e){return this.post(pa,e)}getKeyPair(){return this.get(da)}setKeyPair(e){return this.post(da,e)}getPublicTeamKeys(){return this.get(ha)}getMemberPublicKey(e){return this.get(this.withQueryString(ha,{user_id:e}))}getCentrifugoToken(){return this.get(Ua)}createTeamTrial(e){return this.post(Ca,e,{shouldEmitErrorEvents:!1})}inviteTeamMember(e){return this.post(xa,e)}getTeamInvitesList(e){return this.get(this.withPagination(xa,e))}getTeamSeatsList(e){return this.get(this.withPagination(Na,e))}getTeamMembersList(e){return this.get(this.withPagination(Da,e))}getTeamMembersStaleEncryptionList(e){return this.get(this.withPagination(Ra,e))}getDataForTeamTrialDeactivation(){return this.get(Ia)}deactivateTeamTrial(e){return this.post(Ia,e)}getSecurityToken(e){return this.post(Xr,e)}getInAppMessages(e){return this.get(this.withPagination(Pa,e))}getStaleEncryptionDevicesList(e){return this.get(this.withPagination(Sa,e))}migrateToSRP(e){return this.post(fa,e)}generateSRPSalt(){return this.post(ma)}sendAppFeedback(e){return this.post(Ka,e)}getHistory(e){return 0===e.limit?this.get(va):this.get(this.withPagination(va,e))}syncHistory(e){return this.post(_a,e)}clearHistory(){return this.delete(ba)}sendPersonalPublicKeyForTeamMultiKey(e){return this.post(Ha,e)}getAuthorizedKeys(){return this.get(Ha)}getUserAvatar(e){return this.download(wa(e))}detectSsoAction(e){return this.post(qa,e,{shouldEmitErrorEvents:!1})}extendTeamTrial(){return this.patch(Aa,{})}getSignalingToken(){return this.get($a)}getSignalingConfiguration(){return this.get(Wa)}generateInvitationLink(){return this.post(Ga)}generateStripeCheckoutUrl(){return this.post(za)}extendProTrial(){return this.post(Oa,{})}queryWhetherUserESSO(e){return this.post(Va,e,{shouldEmitErrorEvents:!1})}initCustomerExperience(){return this.post("/api/v4.2/survey/ces/dialog-interaction/init/")}sendCustomerExperience(e){return this.post("/api/v4.2/survey/ces/dialog-interaction/",e)}getShellAssistAnswer(e){return this.post("/api/v4/terminal/shell-assist/",{prompt:e})}retrieveOnboardingAttributes(){return this.get("/api/v4/marketing/onboarding/")}skipTrialOnboardingInviteStep(e){const{data:t,id:n}=e;return this.put("/api/v4/marketing/onboarding/"+n,t)}}var Xa=function(e,t){return e===t};function Qa(e,t){var n,r,a="object"==typeof t?t:{equalityCheck:t},i=a.equalityCheck,s=void 0===i?Xa:i,o=a.maxSize,l=void 0===o?1:o,c=a.resultEqualityCheck,u=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,a=0;a<r;a++)if(!e(t[a],n[a]))return!1;return!0}}(s),p=1===l?(n=u,{get:function(e){return r&&n(r.key,e)?r.value:"NOT_FOUND"},put:function(e,t){r={key:e,value:t}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}):function(e,t){var n=[];function r(e){var r=n.findIndex((function(n){return t(e,n.key)}));if(r>-1){var a=n[r];return r>0&&(n.splice(r,1),n.unshift(a)),a.value}return"NOT_FOUND"}return{get:r,put:function(t,a){"NOT_FOUND"===r(t)&&(n.unshift({key:t,value:a}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(l,u);function d(){var t=p.get(arguments);if("NOT_FOUND"===t){if(t=e.apply(null,arguments),c){var n=p.getEntries(),r=n.find((function(e){return c(e.value,t)}));r&&(t=r.value)}p.put(arguments,t)}return t}return d.clearCache=function(){return p.clear()},d}function Ya(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function Za(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];var i,s=0,o={memoizeOptions:void 0},l=r.pop();if("object"==typeof l&&(o=l,l=r.pop()),"function"!=typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var c=o,u=c.memoizeOptions,p=void 0===u?n:u,d=Array.isArray(p)?p:[p],h=Ya(r),f=e.apply(void 0,[function(){return s++,l.apply(null,arguments)}].concat(d)),m=e((function(){for(var e=[],t=h.length,n=0;n<t;n++)e.push(h[n].apply(null,arguments));return i=f.apply(null,e)}));return Object.assign(m,{resultFunc:l,memoizedResultFunc:f,dependencies:h,lastResult:function(){return i},recomputations:function(){return s},resetRecomputations:function(){return s=0}}),m};return a}var ei=Za(Qa);function ti(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}"function"==typeof Symbol&&Symbol.observable;var ni=function(){return Math.random().toString(36).substring(7).split("").join(".")},ri={INIT:"@@redux/INIT"+ni(),REPLACE:"@@redux/REPLACE"+ni(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ni()}};function ai(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var a=t[r];0,"function"==typeof e[a]&&(n[a]=e[a])}var i,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:ri.INIT}))throw new Error(ti(12));if(void 0===n(void 0,{type:ri.PROBE_UNKNOWN_ACTION()}))throw new Error(ti(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,a={},o=0;o<s.length;o++){var l=s[o],c=n[l],u=e[l],p=c(u,t);if(void 0===p){t&&t.type;throw new Error(ti(14))}a[l]=p,r=r||p!==u}return(r=r||s.length!==Object.keys(e).length)?a:e}}function ii(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function si(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(a){return"function"==typeof a?a(n,r,e):t(a)}}}}var oi=si();oi.withExtraArgument=si;var li=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ci=function(e,t){var n,r,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(a=s.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){s.label=i[1];break}if(6===i[0]&&s.label<a[1]){s.label=a[1],a=i;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(i);break}a[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}},ui=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},pi=Object.defineProperty,di=Object.defineProperties,hi=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,mi=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable,yi=function(e,t,n){return t in e?pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},gi=function(e,t){for(var n in t||(t={}))mi.call(t,n)&&yi(e,n,t[n]);if(fi)for(var r=0,a=fi(t);r<a.length;r++){n=a[r];Si.call(t,n)&&yi(e,n,t[n])}return e},vi=function(e,t){return di(e,hi(t))},_i=function(e,t,n){return new Promise((function(r,a){var i=function(e){try{o(n.next(e))}catch(e){a(e)}},s=function(e){try{o(n.throw(e))}catch(e){a(e)}},o=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(i,s)};o((n=n.apply(e,t)).next())}))};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;!function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var a=e.apply(this,n)||this;return Object.setPrototypeOf(a,t.prototype),a}li(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,ui([void 0],e[0].concat(this)))):new(t.bind.apply(t,ui([void 0],e.concat(this))))}}(Array);function bi(e){return m(e)?fe(e,(function(){})):e}function Pi(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return gi(gi({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function wi(e){var t,n={},r=[],a={addCase:function(e,t){var r="string"==typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,a},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),a},addDefaultCase:function(e){return t=e,a}};return e(a),[n,r,t]}function Ei(e,t,n,r){void 0===n&&(n=[]);var a,i="function"==typeof t?wi(t):[t,n,r],s=i[0],o=i[1],l=i[2];if("function"==typeof e)a=function(){return bi(e())};else{var c=bi(e);a=function(){return c}}function u(e,t){void 0===e&&(e=a());var n=ui([s[t.type]],o.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[l]),n.reduce((function(e,n){if(n){var r;if(f(e))return void 0===(r=n(e,t))?e:r;if(m(e))return fe(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return u.getInitialState=a,u}function ki(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:bi(e.initialState),a=e.reducers||{},i=Object.keys(a),s={},o={},l={};function c(){var t="function"==typeof e.extraReducers?wi(e.extraReducers):[e.extraReducers],n=t[0],a=void 0===n?{}:n,i=t[1],s=void 0===i?[]:i,l=t[2],c=void 0===l?void 0:l,u=gi(gi({},a),o);return Ei(r,(function(e){for(var t in u)e.addCase(t,u[t]);for(var n=0,r=s;n<r.length;n++){var a=r[n];e.addMatcher(a.matcher,a.reducer)}c&&e.addDefaultCase(c)}))}return i.forEach((function(e){var n,r,i=a[e],c=t+"/"+e;"reducer"in i?(n=i.reducer,r=i.prepare):n=i,s[e]=n,o[c]=n,l[e]=r?Pi(c,r):Pi(c)})),{name:t,reducer:function(e,t){return n||(n=c()),n(e,t)},actions:l,caseReducers:s,getInitialState:function(){return n||(n=c()),n.getInitialState()}}}var Ti=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Ci=["name","message","stack","code"],Ii=function(e,t){this.payload=e,this.meta=t},Ai=function(e,t){this.payload=e,this.meta=t},Oi=function(e){if("object"==typeof e&&null!==e){for(var t={},n=0,r=Ci;n<r.length;n++){var a=r[n];"string"==typeof e[a]&&(t[a]=e[a])}return t}return{message:String(e)}};!function(){function e(e,t,n){var r=Pi(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:vi(gi({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),a=Pi(e+"/pending",(function(e,t,n){return{payload:void 0,meta:vi(gi({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),i=Pi(e+"/rejected",(function(e,t,r,a,i){return{payload:a,error:(n&&n.serializeError||Oi)(e||"Rejected"),meta:vi(gi({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(o,l,c){var u,p=(null==n?void 0:n.idGenerator)?n.idGenerator(e):Ti(),d=new s;function h(e){u=e,d.abort()}var f=function(){return _i(this,null,(function(){var s,f,m,S,y,g;return ci(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),S=null==(s=null==n?void 0:n.condition)?void 0:s.call(n,e,{getState:l,extra:c}),null===(_=S)||"object"!=typeof _||"function"!=typeof _.then?[3,2]:[4,S];case 1:S=v.sent(),v.label=2;case 2:if(!1===S||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return!0,y=new Promise((function(e,t){return d.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:u||"Aborted"})}))})),o(a(p,e,null==(f=null==n?void 0:n.getPendingMeta)?void 0:f.call(n,{requestId:p,arg:e},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(t(e,{dispatch:o,getState:l,extra:c,requestId:p,signal:d.signal,abort:h,rejectWithValue:function(e,t){return new Ii(e,t)},fulfillWithValue:function(e,t){return new Ai(e,t)}})).then((function(t){if(t instanceof Ii)throw t;return t instanceof Ai?r(t.payload,p,e,t.meta):r(t,p,e)}))])];case 3:return m=v.sent(),[3,5];case 4:return g=v.sent(),m=g instanceof Ii?i(null,p,e,g.payload,g.meta):i(g,p,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(m)&&m.meta.condition||o(m),[2,m]}var _}))}))}();return Object.assign(f,{abort:h,requestId:p,arg:e,unwrap:function(){return f.then(xi)}})}}),{pending:a,rejected:i,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}();function xi(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var Ni="listenerMiddleware";Pi(Ni+"/add"),Pi(Ni+"/removeAll"),Pi(Ni+"/remove");"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis);var Ri,Di=function(e){return function(t){setTimeout(t,e)}};"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Di(10);z();var Hi=n(18),Fi=n.n(Hi);function Gi(e){return Pi(e,e=>({payload:e,meta:{requestId:Fi()()}}))}function Ui(e){return Pi(e,(e,t)=>({payload:e,meta:{requestId:t}}))}function Li(e){return{request:Gi(e+"_REQUEST"),success:Ui(e+"_SUCCESS"),failure:Ui(e+"_FAILURE"),toString(){return this.request.toString()}}}function*ji(e,t){const n=function(e,t){return e.request(t)}(e,t);yield*Er(n);const r=yield*function(e,t){return _r(({type:n,meta:r})=>(null==r?void 0:r.requestId)===t&&(n===e.success.toString()||n===e.failure.toString()))}(e,n.meta.requestId);if(e.success.match(r))return r.payload;throw r.payload}function Mi(e,t,n){return new Promise((r,a)=>{e.run((function*(){try{r(yield*ji(t,n))}catch(e){a(e)}}))})}function Bi(e,t,n){if(t instanceof jr){const r={status:t.status,responseJSON:t.responseJSON};return e.failure(r,n.requestId)}return e.failure(t,n.requestId)}function*Ki(e,t,{payload:n,meta:r}){try{const a=yield*kr(t,n);yield*Er(e.success(a,r.requestId))}catch(t){yield*Er(Bi(e,t,r))}}function qi(e,t){return br(e.request,Ki,e,t)}const Vi=Pi("lifecycle/REHYDRATE"),$i=Li("lifecycle/INIT_DATA_BASE");var Wi=n(11),zi=n.n(Wi),Ji=n(74),Xi=n.n(Ji),Qi=n(198),Yi=n.n(Qi),Zi=n(199),es=n.n(Zi);const ts=Li("SYNC"),ns=Li("SYNC_SEQUENTIALLY"),rs=Li("SYNC_ON_PUSH_NOTIFICATION"),as=Pi("INIT_SYNC_OPTIONS"),is=Li("TOGGLE_SYNC_KEYS_AND_IDENTITIES"),ss=Pi("SET_SHARING_ENABLED"),os=Li("ENABLE_SHARING"),ls=Pi("ENABLE_BELL_SOUND"),cs=Pi("DISABLE_BELL_SOUND"),us=Pi("ENABLE_BRIGHTEN_BOLD_TEXT"),ps=Pi("DISABLE_BRIGHTEN_BOLD_TEXT"),ds=Pi("CHANGE_COLOR_SCHEME"),hs=Pi("ENABLE_DETECT_OS"),fs=Pi("DISABLE_DETECT_OS"),ms=Pi("CHANGE_FONT_FAMILY"),Ss=Pi("CHANGE_FONT_SIZE"),ys=Pi("HIDE_TERMINAL_SHARING_LABEL"),gs=Pi("ENABLE_OPTION_IS_META"),vs=Pi("DISABLE_OPTION_IS_META"),_s=Pi("ENABLE_RIGHT_CLICK_TO_PASTE"),bs=Pi("DISABLE_RIGHT_CLICK_TO_PASTE"),Ps=Pi("SET_SCROLLBACK_SIZE"),ws=Pi("CHANGE_TERMINAL_EMULATION_TYPE"),Es=Pi("HIDE_UNAVAILABLE_PRO_FEATURES_STEPS"),ks=Pi("CHANGE_KEYWORDS_HIGHLIGHTING"),Ts=Pi("SET_SHELL_HISTORY_IMPORT_ENABLED"),Cs=Pi("SET_AUTOCOMPLETE_DISABLED_UNTIL_TIMESTAMP"),Is=Pi("SET_LAYOUT"),As=Pi("SET_LOCAL_TERMINAL_PATH"),Os=Pi("ADD_CUSTOM_LOCAL_TERMINAL_PATH"),xs=Pi("REMOVE_CUSTOM_LOCAL_TERMINAL_PATH"),Ns=Pi("CHANGE_THEME"),Rs=Pi("TOGGLE_TERMINAL_SHARING"),Ds=Pi("SETTINGS_OPENED"),Hs=(Pi("OPEN_CREATE_NEW_GROUP_FORM"),Pi("SET_PORT_FORWARDING_WIZARD_ENABLED")),Fs=Pi("DISABLE_COPY_LINK_INFO"),Gs=Pi("SET_QUICK_CONNECT_HIGHLIGHTED"),Us=Pi("SHOW_APP_INTERFACE"),Ls=Pi("SET_CURRENT_CONNECTION_FLOW_STEP_INDEX"),js=Pi("SET_GRACE_PERIOD_UNTIL_DATE");var Ms=n(200),Bs=n.n(Ms);function Ks(e){return"termius-message://ces-survey"===e}function qs({action:e}){return Ks(e)}class Vs{constructor(e){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.is_shared=Boolean(e.is_shared)}}class $s extends Vs{constructor(e){super(e),this.cloudType="aws",this.accessKeyId=e.accessKeyId||"",this.secretAccessKey=e.secretAccessKey||"",this.region=e.region||"",this.ipAddressType=e.ipAddressType||"public",this.serviceType=e.serviceType||"ec2"}isEmpty(){return[this.accessKeyId,this.secretAccessKey,this.region].every(e=>null==e)}isFulfilled(){return[this.accessKeyId,this.secretAccessKey,this.region].every(e=>!!e)}}class Ws extends Vs{constructor(e){super(e),this.cloudType="azure",this.tenant_id=e.tenant_id||"",this.client_id=e.client_id||"",this.client_secret=e.client_secret||""}isEmpty(){return[this.tenant_id,this.client_id,this.client_secret].every(e=>null==e)}isFulfilled(){return[this.tenant_id,this.client_id,this.client_secret].every(e=>!!e)}}class zs extends Vs{constructor(e){super(e),this.cloudType="DigitalOcean",this.token=e.token||""}isEmpty(){return!this.token}isFulfilled(){return!!this.token}}var Js=n(68),Xs=n.n(Js);function Qs(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Ys(e){Qs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Zs(e,t){Qs(2,arguments);var n=Ys(e),r=Ys(t);return n.getTime()-r.getTime()}var eo={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function to(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var no={date:to({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:to({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:to({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ro={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ao(e){return function(t,n){var r,a=n||{};if("formatting"===(a.context?String(a.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=a.width?String(a.width):i;r=e.formattingValues[s]||e.formattingValues[i]}else{var o=e.defaultWidth,l=a.width?String(a.width):e.defaultWidth;r=e.values[l]||e.values[o]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function io(e){return function(t,n){var r=String(t),a=n||{},i=a.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=r.match(s);if(!o)return null;var l,c=o[0],u=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(u)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(u,(function(e){return e.test(c)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(u,(function(e){return e.test(c)})),l=e.valueCallback?e.valueCallback(l):l,{value:l=a.valueCallback?a.valueCallback(l):l,rest:r.slice(c.length)}}}var so,oo={code:"en-US",formatDistance:function(e,t,n){var r;return n=n||{},r="string"==typeof eo[e]?eo[e]:1===t?eo[e].one:eo[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:no,formatRelative:function(e,t,n,r){return ro[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ao({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ao({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:ao({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ao({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ao({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(so={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},a=n.match(so.matchPattern);if(!a)return null;var i=a[0],s=n.match(so.parsePattern);if(!s)return null;var o=so.valueCallback?so.valueCallback(s[0]):s[0];return{value:o=r.valueCallback?r.valueCallback(o):o,rest:n.slice(i.length)}}),era:io({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:io({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:io({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:io({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:io({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function lo(e){return e.getTime()%6e4}function co(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());return t.setSeconds(0,0),6e4*n+(n>0?(6e4+lo(t))%6e4:lo(t))}function uo(e,t){Qs(2,arguments);var n=Ys(e),r=Ys(t),a=n.getTime()-r.getTime();return a<0?-1:a>0?1:a}function po(e,t){Qs(2,arguments);var n=Zs(e,t)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function ho(e){return function(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}({},e)}function fo(e,t,n){Qs(2,arguments);var r=n||{},a=r.locale||oo;if(!a.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var i=uo(e,t);if(isNaN(i))throw new RangeError("Invalid time value");var s,o,l=ho(r);l.addSuffix=Boolean(r.addSuffix),l.comparison=i,i>0?(s=Ys(t),o=Ys(e)):(s=Ys(e),o=Ys(t));var c,u=null==r.roundingMethod?"round":String(r.roundingMethod);if("floor"===u)c=Math.floor;else if("ceil"===u)c=Math.ceil;else{if("round"!==u)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");c=Math.round}var p,d=po(o,s),h=(co(o)-co(s))/1e3,f=c((d-h)/60);if("second"===(p=null==r.unit?f<1?"second":f<60?"minute":f<1440?"hour":f<43200?"day":f<525600?"month":"year":String(r.unit)))return a.formatDistance("xSeconds",d,l);if("minute"===p)return a.formatDistance("xMinutes",f,l);if("hour"===p){var m=c(f/60);return a.formatDistance("xHours",m,l)}if("day"===p){var S=c(f/1440);return a.formatDistance("xDays",S,l)}if("month"===p){var y=c(f/43200);return a.formatDistance("xMonths",y,l)}if("year"===p){var g=c(f/525600);return a.formatDistance("xYears",g,l)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}const mo="YYYY-MM-DDTHH:mm:ss".length;function So(e){return e.length===mo?new Date(e+"Z"):new Date(e)}function yo(e){return e.toISOString().substr(0,mo)}function go(e,t){let n=0,r="",a="";if(e){const i=So(e.until),s=So(t);n=Math.round(function(e,t){Qs(2,arguments);var n=Zs(e,t)/36e5;return n>0?Math.floor(n):Math.ceil(n)}(i,s)/24),r=fo(i,s,{addSuffix:!0,roundingMethod:"floor"}),a=fo(i,s,{addSuffix:!1,roundingMethod:"floor"})}return[n,r,a]}function vo(e,t){return null!=e?null!=t&&e.isPotentialDuplicate(t):null==t}var _o=n(23),bo=n.n(_o);function Po(e){return null!=e}function wo(e,t){return null!=e?t(e):void 0}class Eo{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.label=e.label||"",this.public_key=e.public_key||"",this.storage=e.storage||"",this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null}get type(){return this.isSep()?"Type ECDSA":"Type unknown"}isSep(){return"Secure Enclave"===this.storage}clone(e={}){return new Eo({...this,...e})}}var ko=n(3);function To(e){if(!e)return!1;const t=Object(ko.getKeyTypeFromOpenSSHPrivateKey)(e);return"sk-ec"===t||"sk-ed"===t}function Co(e){if(!e)return"Type unknown";const t=Object(ko.getKeyTypeFromOpenSSHPrivateKey)(e);if(t.startsWith("sk"))return"Type "+t.replace(Io,"$1-sk").replace("ec","ECDSA").replace("ed","ED25519").toUpperCase();const n=e.toLowerCase();return function(e){return Ao(e,["begin rsa","ssh-rsa"])}(n)?"Type RSA":function(e){return Ao(e,["begin dsa","ssh-dss"])}(n)?"Type DSA":function(e){return Ao(e,["begin ec","ecdsa-sha2-nistp"])}(n)?"Type ECDSA":function(e){return Ao(e,["begin openssh","ssh-ed25519"])}(n)?"Type ED25519":"Type unknown"}new Map([["AES-256","aes256"],["AES-128","aes128"],["3DES","des3"],["DES","des"]]);const Io=/sk-(e[cd])/;function Ao(e,t){return t.some(t=>-1!==e.indexOf(t))}class Oo{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.ssh_key_id=e.ssh_key_id,this.updated_at=e.updated_at,this.label=e.label,this.certificate=e.certificate||"",this.is_shared=Boolean(e.is_shared)}prepareForDuplicate(){this.local_id=void 0,this.id=void 0,this.ssh_key_id=void 0}}class xo{constructor(e={}){var t;this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.label=e.label||"",this.passphrase=e.passphrase||"",this.private_key=e.private_key||"",this.public_key=e.public_key||"",this.certificates=(null!==(t=e.certificates)&&void 0!==t?t:[]).map(e=>new Oo(e)),this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null}get type(){return this.certificates.length>0?Co(this.certificates[0].certificate)+" SSH Certificate":Co(this.private_key)}clone(e){return new xo({...this,...e})}prepareForDuplicate(){this.local_id=void 0,this.id=void 0,this.certificates.forEach(e=>e.prepareForDuplicate())}trimPrivateAndPublic(){this.private_key=this.private_key.trim(),this.public_key=this.public_key.trim()}}class No{constructor(e){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.is_visible=e.is_visible,this.label=e.label||"",this.password=e.password||null,this.ssh_key=e.ssh_key?new xo(e.ssh_key):null,this.hardware_key=e.hardware_key?new Eo(e.hardware_key):null,this.username=e.username||null,this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null}isPotentialDuplicate(e){return this.username===e.username}prepareForDuplicate(){return this.local_id=void 0,this.id=void 0,this}isEmpty(){return!1===this.is_visible&&null==this.password&&null==this.ssh_key&&null==this.hardware_key&&null==this.username}get authMethod(){const e=this.ssh_key||this.hardware_key;return this.password&&e?"Auth password and key":this.password?"Auth password":e?"Auth key":"No auth method"}get displayLabel(){return this.label||this.username||""}get lastModifiedAt(){return this.local_updated_at?this.local_updated_at:this.updated_at?So(this.updated_at):void 0}clone(e={}){return new No({...this,...e})}}class Ro{_value(e,t){const{value:n}=this._query(e);return null!=n?n:t}_source(e){return this._query(e).source}_merged(e){return"me"!==this._source(e)}}function Do(e){return null!=e}function Ho(e,t,n){if(e){const t=n(e);if(Do(t))return{value:t,source:"me"}}for(const e of t){const t=n(e);if(Do(t))return{value:t,source:"parent"}}return{value:null,source:"global"}}class Fo extends Ro{constructor(e,t=[]){super(),this.current=e,this.parents=t}_query(e){return function(e,t,n){if(e){const{is_visible:t}=e,r=n(e);if(Do(r))return{value:r,source:"me"};if(t)return{value:null,source:"me"}}for(const e of t){const{is_visible:t}=e,r=n(e);if(Do(r))return{value:r,source:"parent"};if(t)return{value:null,source:"parent"}}return{value:null,source:"global"}}(this.current,this.parents,e)}get id(){return this._value(e=>e.is_visible?e.id:null,null)}get local_id(){return this._value(e=>e.is_visible?e.local_id:null,null)}get updated_at(){return this._value(e=>e.is_visible?e.updated_at:null,null)}get is_visible(){return this._value(e=>e.is_visible,!1)}get label(){if(this.current&&this.current.is_visible)return this.current.label;for(const e of this.parents)if(e.is_visible)return e.label;return""}get password(){return this._value(e=>e.password,"")}get merged_password(){return this._merged(e=>e.password)}get ssh_key(){return this._value(e=>e.ssh_key,null)}get merged_ssh_key(){return this._merged(e=>e.ssh_key)}get hardware_key(){return this._value(e=>e.hardware_key,null)}get merged_hardware_key(){return this._merged(e=>e.hardware_key)}get username(){return this._value(e=>e.username,"")}get usernameSource(){return this._source(e=>e.username)}get merged_username(){return this._merged(e=>e.username)}get is_shared(){return this._value(e=>e.is_shared,!1)}get local_updated_at(){return this._value(e=>e.local_updated_at,null)}isEmpty(){return!this.username&&!this.password&&!this.ssh_key}asIdentity(){return new No({local_id:this.local_id,id:this.id,label:this.label,username:this.username,password:this.password,is_visible:this.is_visible,hardware_key:this.hardware_key,is_shared:this.is_shared,updated_at:this.updated_at,ssh_key:this.ssh_key,local_updated_at:this.local_updated_at})}}class Go extends Ro{constructor(e,t=[]){var n;super(),this.current=e,this.parents=t,this.identity=new Fo(null===(n=this.current)||void 0===n?void 0:n.identity,this.parents.map(({identity:e})=>e).filter(Po))}_query(e){return Ho(this.current,this.parents,e)}get agent_forwarding(){return this._value(e=>e.agent_forwarding,!1)}get agentForwardingSource(){return this._source(e=>e.agent_forwarding)}get charset(){return this._value(e=>e.charset,"UTF-8")}get charsetSource(){return this._source(e=>e.charset)}get mergedCharset(){return this._merged(e=>e.charset)}get color_scheme(){return this._value(e=>e.color_scheme,null)}get colorSchemeSource(){return this._source(e=>e.color_scheme)}get cursor_blink(){return this._value(e=>e.cursor_blink,null)}get env_variables(){return this._value(e=>e.env_variables,[])}get envVariablesSource(){return this._source(e=>e.env_variables)}get font_size(){return this._value(e=>e.font_size,null)}get is_forward_ports(){return this._value(e=>e.is_forward_ports,null)}get keep_alive_packages(){return this._value(e=>e.keep_alive_packages,null)}get mosh_server_command(){return this._value(e=>e.mosh_server_command||null,"mosh-server new -s -l LANG=en_US.UTF-8")}get port(){return this._value(e=>e.port,22)}get portSource(){return this._source(e=>e.port)}get proxy(){return this._value(e=>e.proxy,null)}get proxy_source(){return this._source(e=>e.proxy)}get merged_proxy(){return this._merged(e=>e.proxy)}get startup_snippet(){return this._value(e=>e.startup_snippet,null)}get startupSnippetSource(){return this._source(e=>e.startup_snippet)}get mergedStartupSnippet(){return this._merged(e=>e.startup_snippet)}get strict_host_key_check(){return this._value(e=>e.strict_host_key_check,null)}get timeout(){return this._value(e=>e.timeout,null)}get use_mosh(){return this._value(e=>e.use_mosh,!1)}get useMoshSource(){return this._source(e=>e.use_mosh)}get use_ssh_key(){return this._value(e=>e.use_ssh_key,null)}get host_chain(){return this._value(e=>e.host_chain,null)}get host_chain_source(){return this._source(e=>e.host_chain)}get mergedHostChain(){return this._merged(e=>e.host_chain)}get is_shared(){return this._value(e=>e.is_shared,!1)}}class Uo extends Ro{constructor(e,t=[]){var n;super(),this.current=e,this.parents=t,this.identity=new Fo(null===(n=this.current)||void 0===n?void 0:n.identity,this.parents.map(({identity:e})=>e).filter(Po))}_query(e){return Ho(this.current,this.parents,e)}get charset(){return this._value(e=>e.charset,"UTF-8")}get charsetSource(){return this._source(e=>e.charset)}get mergedCharset(){return this._merged(e=>e.charset)}get color_scheme(){return this._value(e=>e.color_scheme,null)}get colorSchemeSource(){return this._source(e=>e.color_scheme)}get cursor_blink(){return this._value(e=>e.cursor_blink,null)}get font_size(){return this._value(e=>e.font_size,null)}get keep_alive_packages(){return this._value(e=>e.keep_alive_packages,null)}get port(){return this._value(e=>e.port,23)}get portSource(){return this._source(e=>e.port)}get startup_snippet(){return this._value(e=>e.startup_snippet,null)}get mergedStartupSnippet(){return this._merged(e=>e.startup_snippet)}get timeout(){return this._value(e=>e.timeout,1500)}get is_shared(){return this._value(e=>e.is_shared,!1)}}class Lo{constructor(e){this.local_id=e.local_id,this.id=e.id,this.address=e.address||"",this.label=e.label||"",this.os_name=e.os_name||""}get displayLabel(){return this.label||this.address}}class jo{constructor(e){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.is_shared=Boolean(e.is_shared),this.hosts_chain=e.hosts_chain?e.hosts_chain.map(e=>new Lo(e)):[]}prepareForDuplicate(){this.local_id=void 0,this.id=void 0}get displayLabel(){return this.hosts_chain.map(e=>e.displayLabel).join(" -> ")}clone(e={}){return new jo({...this,...e})}}function Mo(e){switch(e){case"http":return 3128;case"socks":return 1080;default:return 0}}class Bo{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.hostname=e.hostname||"",this.identity=e.identity?new No(e.identity):null,this.type=e.type||"http",this.port=null!=e.port?e.port:Mo(this.type),this.is_shared=Boolean(e.is_shared)}prepareForDuplicate(){this.local_id=void 0,this.id=void 0,this.identity&&!this.identity.is_visible&&this.identity.prepareForDuplicate()}get displayLabel(){return`${this.hostname}:${this.port}`}clone(e={}){return new Bo({...this,...e})}}class Ko{constructor(e){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.label=e.label,this.is_shared=Boolean(e.is_shared),this.snippets_count=e.snippets_count}clone(e={}){return new Ko({...this,...e})}}class qo{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.auto_close=null==e.auto_close||e.auto_close,this.label=e.label||"",this.script=e.script||"",this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null,this.package=e.package?new Ko(e.package):null,this.aianalyticsID=e.aianalyticsID}get displayLabel(){var e;return this.label?this.label:null!==(e=function(e,t="\n"){return e.split(t).find(e=>e.trim().length>0)}(this.script))&&void 0!==e?e:""}clone(e={}){return new qo({...this,...e})}prepareForDuplicate(){this.local_id=void 0,this.id=void 0}}class Vo{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.agent_forwarding=e.agent_forwarding,this.charset=e.charset,this.color_scheme=e.color_scheme,this.cursor_blink=e.cursor_blink,this.env_variables=e.env_variables?e.env_variables.slice():null,this.font_size=e.font_size,this.identity=e.identity?new No(e.identity):null,this.is_forward_ports=e.is_forward_ports,this.keep_alive_packages=e.keep_alive_packages,this.mosh_server_command=e.mosh_server_command,this.port=e.port,this.proxy=e.proxy?new Bo(e.proxy):null,this.startup_snippet=e.startup_snippet?new qo(e.startup_snippet):null,this.strict_host_key_check=e.strict_host_key_check,this.timeout=e.timeout,this.use_mosh=e.use_mosh,this.use_ssh_key=e.use_ssh_key,this.host_chain=null!=e.host_chain?new jo(e.host_chain):null,this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null}static parseEnvVariables(e){if(!e)return null;try{const t=JSON.parse(e);return Object.entries(t).map(([e,t])=>({name:e,value:"string"==typeof t?t:""}))}catch(e){return null}}static stringifyEnvVariables(e){const t={};return e&&e.forEach(e=>{t[e.name]=e.value}),JSON.stringify(t)}isPotentialDuplicate(e){return this.port===e.port&&vo(this.identity,e.identity)}prepareForDuplicate(){this.local_id=void 0,this.id=void 0,this.identity&&!this.identity.is_visible&&this.identity.prepareForDuplicate(),this.proxy&&this.proxy.prepareForDuplicate(),this.host_chain&&this.host_chain.prepareForDuplicate()}isEmpty(){return[this.agent_forwarding,this.charset,this.color_scheme,this.cursor_blink,this.env_variables,this.font_size,this.identity,this.is_forward_ports,this.keep_alive_packages,this.mosh_server_command,this.port,this.proxy,this.startup_snippet,this.strict_host_key_check,this.timeout,this.use_mosh,this.use_ssh_key,this.host_chain].every(e=>null==e)}stripEmptyIdentity(){this.identity&&this.identity.isEmpty()&&(this.identity=null)}stripForNonProUsers(){var e,t;this.agent_forwarding=null,this.env_variables=null,this.startup_snippet=null,this.proxy=null,this.host_chain=null,(null===(t=null===(e=this.identity)||void 0===e?void 0:e.ssh_key)||void 0===t?void 0:t.certificates)&&(this.identity.ssh_key.certificates=[])}clone(e={}){return new Vo({...this,...e})}}class $o{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.charset=e.charset,this.color_scheme=e.color_scheme,this.cursor_blink=e.cursor_blink,this.font_size=e.font_size,this.identity=e.identity?new No(e.identity):null,this.keep_alive_packages=e.keep_alive_packages,this.port=e.port,this.startup_snippet=e.startup_snippet?new qo(e.startup_snippet):null,this.timeout=e.timeout,this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null}isPotentialDuplicate(e){return this.port===e.port&&vo(this.identity,e.identity)}prepareForDuplicate(){this.local_id=void 0,this.id=void 0,this.identity&&!this.identity.is_visible&&this.identity.prepareForDuplicate()}isEmpty(){return null==this.charset&&null==this.color_scheme&&null==this.cursor_blink&&null==this.font_size&&null==this.identity&&null==this.keep_alive_packages&&null==this.port&&null==this.startup_snippet&&null==this.timeout}stripEmptyIdentity(){this.identity&&this.identity.isEmpty()&&(this.identity=null)}stripForNonProUsers(){var e,t;this.startup_snippet=null,(null===(t=null===(e=this.identity)||void 0===e?void 0:e.ssh_key)||void 0===t?void 0:t.certificates)&&(this.identity.ssh_key.certificates=[])}clone(e={}){return new $o({...this,...e})}}class Wo{constructor(e={}){var t;this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.label=e.label||"",this.parent_group=e.parent_group?new Wo(e.parent_group):null,this.ssh_config=e.ssh_config?new Vo(e.ssh_config):null,this.cloud_config=e.cloud_config?zo(e.cloud_config):null,this.telnet_config=e.telnet_config?new $o(e.telnet_config):null,this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null,this.sharing_mode=null!==(t=e.sharing_mode)&&void 0!==t?t:null}get displayLabel(){return this.label}get parentGroups(){const{parent_group:e}=this;return e?[e,...e.parentGroups]:[]}get rootGroup(){var e;return null!==(e=bo()(this.parentGroups))&&void 0!==e?e:this}getDefaultProtocolForConnection(){const e=this.hasMergedSshConfig(),t=this.hasMergedTelnetConfig();return e&&t?null:e?this.getMergedSshConfig().use_mosh?"mosh":"ssh":t?"telnet":null}hasMergedSshConfig(){return!!this.ssh_config||!!this.parent_group&&this.parent_group.hasMergedSshConfig()}hasMergedTelnetConfig(){return!!this.telnet_config||!!this.parent_group&&this.parent_group.hasMergedTelnetConfig()}getMergedSshConfig(){var e;return new Go(this.ssh_config,null===(e=this.parent_group)||void 0===e?void 0:e.getSshConfigsRecursively())}getMergedTelnetConfig(){var e;return new Uo(this.telnet_config,null===(e=this.parent_group)||void 0===e?void 0:e.getTelnetConfigsRecursively())}getSshConfigsRecursively(){return[this.ssh_config,...this.parentGroups.map(({ssh_config:e})=>e)].filter(Po)}getTelnetConfigsRecursively(){return[this.telnet_config,...this.parentGroups.map(({telnet_config:e})=>e)].filter(Po)}stripEmptyIdentities(){this.ssh_config&&this.ssh_config.stripEmptyIdentity(),this.telnet_config&&this.telnet_config.stripEmptyIdentity()}stripConfigsForNonProUsers(){this.parent_group&&this.parent_group.stripConfigsForNonProUsers(),this.ssh_config&&this.ssh_config.stripForNonProUsers(),this.telnet_config&&this.telnet_config.stripForNonProUsers(),this.cloud_config&&(this.cloud_config=null)}clone(e={}){return new Wo({...this,...e})}static clone(e,t={}){return new Wo({...e}).clone(t)}}function zo(e){if("aws"===e.cloudType)return new $s(e);if("DigitalOcean"===e.cloudType)return new zs(e);if("azure"===e.cloudType)return new Ws(e);throw new Error("Incorrect cloud config")}class Jo{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.cloud_instance_id=e.cloud_instance_id,this.cloud_instance_type=e.cloud_instance_type,this.updated_at=e.updated_at,this.address=e.address||"",this.backspace=e.backspace||"default",this.group=e.group?new Wo(e.group):null,this.icon=e.icon||"",this.interaction_date=e.interaction_date,this.label=e.label||"",this.os_name=e.os_name||"",this.ssh_config=e.ssh_config?new Vo(e.ssh_config):null,this.telnet_config=e.telnet_config?new $o(e.telnet_config):null,this.tags=Array.isArray(e.tags)?[...e.tags]:[],this.is_shared=Boolean(e.is_shared),this.ip_version=e.ip_version||"AUTO",this.local_updated_at=e.local_updated_at||null,this.connectionPath=Array.isArray(e.connectionPath)?e.connectionPath.map(e=>new Jo(e)):[]}static fromLocalhost(e){return new Jo({address:e.address,ssh_config:{port:e.port,identity:{is_visible:!1,username:e.username,password:e.password}}})}isPotentialDuplicate(e){return this.address===e.address&&this.label===e.label&&vo(this.ssh_config,e.ssh_config)&&vo(this.telnet_config,e.telnet_config)}touch(){this.interaction_date=yo(new Date)}prepareForDuplicate(){this.local_id=void 0,this.id=void 0,this.cloud_instance_id=void 0,this.cloud_instance_type=void 0,this.os_name="",this.ssh_config&&this.ssh_config.prepareForDuplicate(),this.telnet_config&&this.telnet_config.prepareForDuplicate()}get displayLabel(){return this.label||this.address}get actions(){const e=[];return this.ssh_config&&(this.getMergedSshConfig().use_mosh&&e.push("mosh"),e.push("ssh")),this.telnet_config&&e.push("telnet"),e}get firstChain(){return this.connectionPath.length>1?this.connectionPath[0]:null}get description(){const{ssh_config:e,telnet_config:t}=this,n=[...this.actions];e&&e.identity&&e.identity.username&&n.push(e.identity.username),t&&t.identity&&t.identity.username&&n.push(t.identity.username);const r=Xs()(this.tags);return n.concat(r).join(", ")}get parentGroups(){const{group:e}=this;return e?[e,...e.parentGroups]:[]}getMergedSshConfig(){var e;return new Go(this.ssh_config,null===(e=this.group)||void 0===e?void 0:e.getSshConfigsRecursively())}getDefaultProtocolForConnection(){return this.ssh_config&&this.telnet_config?null:this.ssh_config?this.getMergedSshConfig().use_mosh?"mosh":"ssh":this.telnet_config?"telnet":this.group?this.group.getDefaultProtocolForConnection():null}getHostChainCount(){return this.connectionPath.length>1?this.connectionPath.length-1:0}getMergedTelnetConfig(){var e;return new Uo(this.telnet_config,null===(e=this.group)||void 0===e?void 0:e.getTelnetConfigsRecursively())}getMergedConfigFor(e){return"ssh"===e||"mosh"===e?this.getMergedSshConfig():"telnet"===e?this.getMergedTelnetConfig():void 0}stripEmptyIdentities(){this.ssh_config&&this.ssh_config.stripEmptyIdentity(),this.telnet_config&&this.telnet_config.stripEmptyIdentity()}stripConfigsForNonProUsers(){this.group&&this.group.stripConfigsForNonProUsers(),this.ssh_config&&this.ssh_config.stripForNonProUsers(),this.telnet_config&&this.telnet_config.stripForNonProUsers()}clone(e={}){return new Jo({...this,...e})}get rootGroup(){var e;return null===(e=this.group)||void 0===e?void 0:e.rootGroup}static clone(e,t={}){return new Jo({...e}).clone(t)}}function Xo(e,t){return e?t:[]}function Qo(e,t){return e?t:{}}const Yo={no_credentials_sharing:"No credentials",credentials_sharing:"Credentials",multikey:"MultiKey"},Zo="Host",el="Group",tl="Snippet",nl="Package";function rl(e,t=!1){return(null!=e?e:t)?"yes":"no"}function al(e,t){switch(t){case"me":return e?"yes":"no";case"parent":return"inherited";default:return"no"}}function il(e){return e?"yes":"no"}function sl({type:e,host:t,teamStatus:n,sshServer:r,sshServerComment:a,failureReason:i,errorCode:s,connectionOrigin:o,history:l,connectionID:c,acquisitionChannel:u,cloudIntegration:p,fido2BasedKey:d=!1,sepkey:h=!1}){var f;const m={hostsInChain:0,isSharedEntity:"no",snippet:"no",proxy:"no",mosh:"no",environmentVariables:"no",port:"no",charset:"no",username:"no",theme:"no",agentForwarding:"disabled",credentials:[],parentGroup:"None",hostChain:"no",connectionID:c,cloudIntegration:p};if(e&&(m.type=e),m.sshServer=r,m.sshServerComment=a,i&&(m.failureReason=i),s&&(m.connectionErrorCode=s),o&&(m.connectionOrigin=o),null!=l&&(m.history=l),u&&(m.acquisitionChannel=u),m.fido2BasedKey=rl(d),m.sepkey=rl(h),"Local"===m.type||!t)return m.isSharedEntityOwner="no",m.isSharedEntity="no",m;const{isOwner:S,isTeam:y}=n;if(m.isSharedEntityOwner=il(y&&S||!y),m.isSharedEntity=il(t.is_shared),m.addressType=function(e){switch(Bs.a.isIP(e)){case 4:return"IPv4";case 6:return"IPv6";default:return"hostname"}}(t.address),"Telnet"===m.type)return m;const g=new Jo(t);m.hostsInChain=function(e){return e.connectionPath.length>1?e.connectionPath.length-1:0}(g);const v=g.getMergedSshConfig();return m.hostChain=function(e){var t;return al(Boolean(null===(t=e.host_chain)||void 0===t?void 0:t.hosts_chain.length),e.host_chain_source)}(v),m.snippet=al(Boolean(v.startup_snippet),v.startupSnippetSource),m.proxy=al(Boolean(v.proxy),v.proxy_source),m.mosh=al(Boolean(v.use_mosh),v.useMoshSource),m.environmentVariables=al(Boolean(v.env_variables.length),v.envVariablesSource),m.port=al(Boolean(v.port),v.portSource),m.charset=al(Boolean(v.charset),v.charsetSource),m.theme=al(Boolean(v.color_scheme),v.colorSchemeSource),m.agentForwarding=function(e,t){const n=al(e,t);return"yes"===n?"enabled":"no"===n?"disabled":"inherited"}(Boolean(v.agent_forwarding),v.agentForwardingSource),m.username=function(e){const{identity:t}=e;return t.is_visible?"no":al(Boolean(t.username),t.usernameSource)}(v),m.credentials=function(e){const{identity:t}=e;if(t.is_visible)return[t.merged_username?"Inherited Identity":"Identity"];const n=[];return t.password&&n.push(t.merged_password?"Inherited Password":"Password"),t.ssh_key&&(t.ssh_key.certificates[0]?n.push(t.merged_ssh_key?"Inherited SSH Certificate":"SSH Certificate"):n.push(t.merged_ssh_key?"Inherited SSH Key":"SSH Key")),n}(v),m.parentGroup=function(e){return e.group?e.group.parent_group?"Nested":"Root":"None"}(g),(null===(f=g.rootGroup)||void 0===f?void 0:f.sharing_mode)&&(m.credentialsSharingMode=Yo[g.rootGroup.sharing_mode]),m}const ol={type:void 0,hostChain:void 0,agentForwarding:void 0,addressType:void 0,isSharedEntityOwner:void 0,isLocationTrackingEnabled:void 0,sepkey:void 0,connectionOrigin:void 0,connectionID:void 0,credentialsSharingMode:void 0},ll=e=>(({failureReason:e,history:t,acquisitionChannel:n,fido2BasedKey:r,sepkey:a,cloudIntegration:i,...s})=>({...ol,history:null!=t?t:0,acquisitionChannel:n,fido2BasedKey:r,sepkey:a,cloudIntegration:i,...s}))(sl(e)),cl=e=>(({failureReason:e,history:t,fido2BasedKey:n,sepkey:r,cloudIntegration:a,...i})=>({...ol,fido2BasedKey:n,sepkey:r,cloudIntegration:a,...i}))(sl(e)),ul=e=>(({history:e,failureReason:t,connectionID:n,fido2BasedKey:r,sepkey:a,cloudIntegration:i,sshServer:s,sshServerComment:o,...l})=>({...ol,connectionErrorCode:void 0,failureReason:null!=t?t:"Unknown Error",connectionID:n,fido2BasedKey:r,sepkey:a,cloudIntegration:i,sshserver:s,sshserverComment:o,...l}))(sl(e));function pl(e){switch(e){case"App Store":return"Mac App Store";case"Windows Store":return"Microsoft Store";case"Snapcraft":return"Snapcraft";case"Debian Package":return"Debian Package";default:return"Website"}}function dl(e){switch(e){case"portForwarding":return"Port Forwarding";case"keychain":return"Keychain";case"snippets":return"Snippets";case"knownHosts":return"Known Hosts";default:return"Hosts"}}function hl(e){return"termius-message://migrate-to-new-crypto"===e?"NewEncryption":Ks(e)?"Customer Experience Survey":"termius-message://kex"===e?"Confirm Access":null}const fl=({hasSharedData:e,hasInvitedMembers:t,hasJoinedMembers:n,hasGrantedAccess:r})=>({hasSharedData:rl(e),hasInvitedMembers:rl(t),hasJoinedMembers:rl(n),hasGrantedAccess:rl(r)}),ml=e=>{let t=0;for(const[n,r]of Object.entries(e))t+=r;return{selectedItems:[...Xo(Boolean(e.groups),[el]),...Xo(Boolean(e.hosts),[Zo]),...Xo(Boolean(e.snippets),[tl]),...Xo(Boolean(e.snippetsPackages),[nl])],numberOfSelectedItems:t}},Sl=e=>{const t=e.toLowerCase();return t.includes("aws")?"AWS":t.includes("azure")?"Azure":"Digital Ocean"},yl=e=>{const{cloud_instance_type:t}=null!=e?e:{};return null==t?null:Sl(t)},gl=e=>{if(e instanceof $s)return"lightsail"===e.serviceType?"Amazon Lightsail":"Amazon EC2";if(e instanceof Ws)return"Azure VMs";if(e instanceof zs)return"DigitalOcean Droplets";throw new Error("An unknown cloud config: "+(null==e?void 0:e.cloudType))},vl=e=>e instanceof $s?e.ipAddressType:"public";function _l(e){const t=[];return e.ssh_key&&t.push("SSH key"),e.hardware_key&&t.push("Hardware key"),e.password&&t.push("Password"),0===t.length&&e.username&&t.push("Username-only"),e.is_visible&&t.push("Identity"),t}function bl(e){throw new Error("Switch is not exhaustive")}const Pl=Li("UPDATE_USER"),wl=Pi("SET_USER"),El=Li("SECURITY_TOKEN"),kl=Li("ENABLE_2FA"),Tl=Li("DISABLE_2FA"),Cl=Li("MODIFY_TEAM"),Il=Li("OTP_REGISTER_PROVIDER_AUTHY"),Al=Li("OTP_REGISTER_PROVIDER_TOTP"),Ol=Li("CREATE_TEAM_TRIAL"),xl=Li("UPDATE_BILLING_INFORMATION"),Nl=Li("INVITE_TEAM_MEMBER"),Rl=Li("SIGN_UP_FREE"),Dl=Li("SIGNUP_TRIAL"),Hl=Li("LOGIN"),Fl=Pi("LOGGED_IN"),Gl=Pi("SIGNED_IN"),Ul=Li("LOGOUT"),Ll=Li("CHANGE_USERNAME"),jl=Li("DELETE_ACCOUNT"),Ml=Li("CHANGE_PASSWORD"),Bl=Li("RECOVER_ACCOUNT"),Kl=Li("RESET_PASSWORD"),ql=Li("SEND_VERIFICATION_CODE"),Vl=Li("CONFIRM_EMAIL"),$l=Li("CLEAN_DATABASE"),Wl=Li("REMOVE_LOCAL_DATA"),zl=Li("GET_TEAM_SEATS_LIST"),Jl=Li("GET_TEAM_MEMBERS_LIST"),Xl=Li("GET_TEAM_INVITES_LIST"),Ql=Pi("TEAM_UPDATED"),Yl=Li("GET_TEAM_MEMBER_STALE_ENCRYPTION_LIST"),Zl=Li("GET_STALE_ENCRYPTION_DEVICES_LIST"),ec=Li("GET_ONLY_SHARED_ENTITIES"),tc=Li("DEACTIVATE_TEAM_TRIAL"),nc=Li("MIGRATE_TO_NEW_CRYPTO_SYSTEM"),rc=Li("RESET_PASSWORD_AND_MIGRATE_TO_NEW_CRYPTO_SYSTEM"),ac=Li("REQUEST_UNSYNCED_PERSONAL_DATA"),ic=Li("REQUEST_IS_USER_HAS_ACCESS_TO_SHARED_DATA"),sc=Li("DETECT_SSO_ACTION"),oc=Li("SSO_SIGNUP_TRIAL"),lc=Li("GENERATE_INVITATION_LINK"),cc=Li("KEY_EXCHANGE_WITH_MEMBER"),uc=Li("SIGN_UP_IN_TEAM_TRIAL_ONBOARDING"),pc=Li("CREATE_TEAM_IN_TEAM_TRIAL_ONBOARDING"),dc=Li("QUERY_WHETHER_USER_ENTERPRISE_SSO"),hc=Li("CREATE_TEAM_IN_UNIFY_TRIAL_EXTEND"),{reducer:fc,actions:mc,getInitialState:Sc}=ki({name:"customerExperience",reducers:{setCESVisibility(e,{payload:t}){e.isCESVisible=t},userInteractedWithSurvey(e,{payload:t}){e.interactionData=t,"dismissed"===t.action&&(e.dismissCount+=1)},removeInteractionData(e){e.interactionData=null},initWasPerformed(e){e.initWasPerformed=!0},keyEventHasHappened(e){e.keyEventHasHappened=!0}},extraReducers:e=>{e.addCase(Ul.success,e=>{e.isCESVisible=!1,e.interactionData=null,e.initWasPerformed=!1,e.keyEventHasHappened=!1})},initialState:{isCESVisible:!1,interactionData:null,initWasPerformed:!1,keyEventHasHappened:!1,dismissCount:0}}),{setCESVisibility:yc,userInteractedWithSurvey:gc,removeInteractionData:vc,initWasPerformed:_c,keyEventHasHappened:bc}=mc;var Pc=fc;const wc=Pi("HANDLE_SHOW_DIALOG"),Ec=Li("SHOW_DIALOG"),kc=Pi("UPDATE_DIALOG_PROPS"),Tc=Pi("DIALOG_OPENED"),Cc=Pi("CLOSE_DIALOG"),Ic=Pi("DESTROY_DIALOG");class Ac extends Error{constructor(){super(...arguments),this.name="FailedToFetchUser"}}class Oc extends Error{constructor(){super(...arguments),this.name="UserIsNotProError"}}var xc=Oc;const Nc=Pi("MARK_AS_READ"),Rc=Pi("ADD_LOCAL_IN_APP_MESSAGE"),Dc=Pi("REMOVE_LOCAL_IN_APP_MESSAGE"),Hc=Pi("REMOVE_UPDATE_IN_APP_MESSAGE"),Fc=Pi("MARK_ALL_AS_READ"),Gc=(Pi("CLEAR_ALL_IN_APP_MESSAGES"),Pi("IN_APP_MESSAGE_DETAILS_PRESSED")),Uc=Pi("IN_APP_MESSAGE_LIST_SCREEN_OPENED"),Lc=Pi("GET_IN_APP_MESSAGES_ON_PUSH_NOTIFICATION"),jc=Li("GET_IN_APP_MESSAGES"),Mc=Li("INIT_IN_APP_MESSAGES"),Bc=Li("UPDATE_IN_APP_MESSAGES"),Kc=Pi("SHOW_FULL_SCREEN_IN_APP_MESSAGES"),qc=Li("REMOVE_IN_APP_MESSAGES");var Vc,$c,Wc=n(1),zc=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Vc=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return Vc.apply(n,e)}},e.id="FunctionToString",e}(),Jc=n(6),Xc=n(408);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}($c||($c={}));var Qc=function(){function e(e){var t=this;this._state=$c.PENDING,this._handlers=[],this._resolve=function(e){t._setResult($c.RESOLVED,e)},this._reject=function(e){t._setResult($c.REJECTED,e)},this._setResult=function(e,n){t._state===$c.PENDING&&(Object(Jc.m)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==$c.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===$c.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===$c.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var a=t.length,i=[];t.forEach((function(t,s){e.resolve(t).then((function(e){i[s]=e,0===(a-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,a){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void a(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void a(e)}else a(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var a,i;return n.then((function(e){i=!1,a=e,t&&t()}),(function(e){i=!0,a=e,t&&t()})).then((function(){i?r(a):e(a)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),Yc=n(14),Zc=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Object(Wc.d)(t._breadcrumbs),n._tags=Object(Wc.a)({},t._tags),n._extra=Object(Wc.a)({},t._extra),n._contexts=Object(Wc.a)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Object(Wc.d)(t._eventProcessors)),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.setTags=function(e){return this._tags=Object(Wc.a)(Object(Wc.a)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Object(Wc.a)(Object(Wc.a)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Object(Wc.a)(Object(Wc.a)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Object(Wc.a)(Object(Wc.a)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=Object(Wc.a)(Object(Wc.a)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,a=this.getSpan();return(null===(e=a)||void 0===e?void 0:e.transaction)?null===(t=a)||void 0===t?void 0:t.transaction:(null===(r=null===(n=a)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?a.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Object(Wc.a)(Object(Wc.a)({},this._tags),t._tags),this._extra=Object(Wc.a)(Object(Wc.a)({},this._extra),t._extra),this._contexts=Object(Wc.a)(Object(Wc.a)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):Object(Jc.h)(t)&&(t=t,this._tags=Object(Wc.a)(Object(Wc.a)({},this._tags),t.tags),this._extra=Object(Wc.a)(Object(Wc.a)({},this._extra),t.extra),this._contexts=Object(Wc.a)(Object(Wc.a)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=Object(Wc.a)({timestamp:Object(Xc.a)()},e);return this._breadcrumbs=void 0!==t&&t>=0?Object(Wc.d)(this._breadcrumbs,[n]).slice(-t):Object(Wc.d)(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=Object(Wc.a)(Object(Wc.a)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Object(Wc.a)(Object(Wc.a)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Object(Wc.a)(Object(Wc.a)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Object(Wc.a)(Object(Wc.a)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=Object(Wc.a)({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=Object(Wc.a)({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Object(Wc.d)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(Object(Wc.d)(eu(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var a=this;return void 0===r&&(r=0),new Qc((function(i,s){var o=e[r];if(null===t||"function"!=typeof o)i(t);else{var l=o(Object(Wc.a)({},t),n);Object(Jc.m)(l)?l.then((function(t){return a._notifyEventProcessors(e,t,n,r+1).then(i)})).then(null,s):a._notifyEventProcessors(e,l,n,r+1).then(i).then(null,s)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function eu(){var e=Object(Yc.e)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function tu(e){eu().push(e)}var nu=Object(Yc.e)(),ru="Sentry Logger ",au=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(Yc.c)((function(){nu.console.log(ru+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(Yc.c)((function(){nu.console.warn(ru+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(Yc.c)((function(){nu.console.error(ru+"[Error]: "+e.join(" "))}))},e}();nu.__SENTRY__=nu.__SENTRY__||{};var iu,su=nu.__SENTRY__.logger||(nu.__SENTRY__.logger=new au),ou=n(69);!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(iu||(iu={}));var lu=n(15),cu=function(){function e(e){this.errors=0,this.sid=Object(Yc.j)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=iu.Ok,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:Object(Yc.j)()),e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),"number"==typeof e.duration?this.duration=e.duration:this.duration=this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===iu.Ok?this.update({status:iu.Exited}):this.update()},e.prototype.toJSON=function(){return Object(lu.a)({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:Object(lu.a)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),uu=function(){function e(e,t,n){void 0===t&&(t=new Zc),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=Zc.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=Object(Yc.j)(),r=t;if(!t){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(e){a=e}r={originalException:e,syntheticException:a}}return this._invokeClient("captureException",e,Object(Wc.a)(Object(Wc.a)({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=Object(Yc.j)(),a=n;if(!n){var i=void 0;try{throw new Error(e)}catch(e){i=e}a={originalException:e,syntheticException:i}}return this._invokeClient("captureMessage",e,t,Object(Wc.a)(Object(Wc.a)({},a),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(Yc.j)();return this._invokeClient("captureEvent",e,Object(Wc.a)(Object(Wc.a)({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,a=n.client;if(r&&a){var i=a.getOptions&&a.getOptions()||{},s=i.beforeBreadcrumb,o=void 0===s?null:s,l=i.maxBreadcrumbs,c=void 0===l?100:l;if(!(c<=0)){var u=Object(Xc.a)(),p=Object(Wc.a)({timestamp:u},e),d=o?Object(Yc.c)((function(){return o(p,t)})):p;null!==d&&r.addBreadcrumb(d,Math.min(c,100))}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=du(this);try{e(this)}finally{du(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return su.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.startSession=function(e){this.endSession();var t=this.getStackTop(),n=t.scope,r=t.client,a=r&&r.getOptions()||{},i=a.release,s=a.environment,o=new cu(Object(Wc.a)(Object(Wc.a)({release:i,environment:s},n&&{user:n.getUser()}),e));return n&&n.setSession(o),o},e.prototype.endSession=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&(r.close(),n&&n.captureSession&&n.captureSession(r),t.setSession())}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var a=this.getStackTop(),i=a.scope,s=a.client;s&&s[e]&&(t=s)[e].apply(t,Object(Wc.d)(n,[i]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=pu(),a=r.__SENTRY__;if(a&&a.extensions&&"function"==typeof a.extensions[e])return a.extensions[e].apply(this,t);su.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function pu(){var e=Object(Yc.e)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function du(e){var t=pu(),n=mu(t);return Su(t,e),n}function hu(){var e=pu();return fu(e)&&!mu(e).isOlderThan(3)||Su(e,new uu),Object(ou.b)()?function(e){try{var t=(r=pu().__SENTRY__)&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!t)return mu(e);if(!fu(t)||mu(t).isOlderThan(3)){var n=mu(e).getStackTop();Su(t,new uu(n.client,Zc.clone(n.scope)))}return mu(t)}catch(t){return mu(e)}var r}(e):mu(e)}function fu(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function mu(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new uu),e.__SENTRY__.hub}function Su(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}var yu,gu=n(36),vu=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],_u=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){tu((function(t){var n=hu();if(!n)return t;var r=n.getIntegration(e);if(r){var a=n.getClient(),i=a?a.getOptions():{},s=r._mergeOptions(i);if(r._shouldDropEvent(t,s))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(su.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(Yc.d)(e)),!0):this._isIgnoredError(e,t)?(su.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(Yc.d)(e)),!0):this._isDeniedUrl(e,t)?(su.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Object(Yc.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(su.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Object(Yc.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return Object(gu.a)(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return Object(gu.a)(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return Object(gu.a)(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:Object(Wc.d)(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:Object(Wc.d)(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:Object(Wc.d)(this._options.ignoreErrors||[],e.ignoreErrors||[],vu),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,a=t.value,i=void 0===a?"":a;return[""+i,r+": "+i]}catch(t){return su.error("Cannot extract message for event "+Object(Yc.d)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){return su.error("Cannot extract url for event "+Object(Yc.d)(e)),null}},e.id="InboundFilters",e}();!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(yu||(yu={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(yu||(yu={}));var bu=n(92);function Pu(){if(!("fetch"in Object(Yc.e)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function wu(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Eu(){if(!Pu())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var ku,Tu=Object(Yc.e)(),Cu={},Iu={};function Au(e){if(!Iu[e])switch(Iu[e]=!0,e){case"console":!function(){if(!("console"in Tu))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in Tu.console&&Object(lu.c)(Tu.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];xu("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,Tu.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in Tu))return;Tu.document.addEventListener("click",Gu("click",xu.bind(null,"dom")),!1),Tu.document.addEventListener("keypress",Uu(xu.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(e){var t=Tu[e]&&Tu[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(Object(lu.c)(t,"addEventListener",(function(e){return function(t,n,r){return n&&n.handleEvent?("click"===t&&Object(lu.c)(n,"handleEvent",(function(e){return function(t){return Gu("click",xu.bind(null,"dom"))(t),e.call(this,t)}})),"keypress"===t&&Object(lu.c)(n,"handleEvent",(function(e){return function(t){return Uu(xu.bind(null,"dom"))(t),e.call(this,t)}}))):("click"===t&&Gu("click",xu.bind(null,"dom"),!0)(this),"keypress"===t&&Uu(xu.bind(null,"dom"))(this)),e.call(this,t,n,r)}})),Object(lu.c)(t,"removeEventListener",(function(e){return function(t,n,r){try{e.call(this,t,n.__sentry_wrapped__,r)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Tu))return;var e=[],t=[],n=XMLHttpRequest.prototype;Object(lu.c)(n,"open",(function(n){return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var i=this,s=r[1];i.__sentry_xhr__={method:Object(Jc.k)(r[0])?r[0].toUpperCase():r[0],url:r[1]},Object(Jc.k)(s)&&"POST"===i.__sentry_xhr__.method&&s.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var o=function(){if(4===i.readyState){try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(e){}try{var n=e.indexOf(i);if(-1!==n){e.splice(n);var a=t.splice(n)[0];i.__sentry_xhr__&&void 0!==a[0]&&(i.__sentry_xhr__.body=a[0])}}catch(e){}xu("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?Object(lu.c)(i,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o(),e.apply(i,t)}})):i.addEventListener("readystatechange",o),n.apply(i,r)}})),Object(lu.c)(n,"send",(function(n){return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return e.push(this),t.push(r),xu("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}();break;case"fetch":!function(){if(!function(){if(!Pu())return!1;var e=Object(Yc.e)();if(wu(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=wu(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){su.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}())return;Object(lu.c)(Tu,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Nu(t),url:Ru(t)},startTimestamp:Date.now()};return xu("fetch",Object(Wc.a)({},r)),e.apply(Tu,t).then((function(e){return xu("fetch",Object(Wc.a)(Object(Wc.a)({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw xu("fetch",Object(Wc.a)(Object(Wc.a)({},r),{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!function(){var e=Object(Yc.e)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}())return;var e=Tu.onpopstate;function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var a=ku,i=String(r);ku=i,xu("history",{from:a,to:i})}return e.apply(this,t)}}Tu.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Tu.location.href,a=ku;if(ku=r,xu("history",{from:a,to:r}),e)return e.apply(this,t)},Object(lu.c)(Tu.history,"pushState",t),Object(lu.c)(Tu.history,"replaceState",t)}();break;case"error":Lu=Tu.onerror,Tu.onerror=function(e,t,n,r,a){return xu("error",{column:r,error:a,line:n,msg:e,url:t}),!!Lu&&Lu.apply(this,arguments)};break;case"unhandledrejection":ju=Tu.onunhandledrejection,Tu.onunhandledrejection=function(e){return xu("unhandledrejection",e),!ju||ju.apply(this,arguments)};break;default:su.warn("unknown instrumentation type:",e)}}function Ou(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(Cu[e.type]=Cu[e.type]||[],Cu[e.type].push(e.callback),Au(e.type))}function xu(e,t){var n,r;if(e&&Cu[e])try{for(var a=Object(Wc.e)(Cu[e]||[]),i=a.next();!i.done;i=a.next()){var s=i.value;try{s(t)}catch(t){su.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(bu.a)(s)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}function Nu(e){return void 0===e&&(e=[]),"Request"in Tu&&Object(Jc.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Ru(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Tu&&Object(Jc.g)(e[0],Request)?e[0].url:String(e[0])}var Du,Hu,Fu=0;function Gu(e,t,n){return void 0===n&&(n=!1),function(r){Du=void 0,r&&Hu!==r&&(Hu=r,Fu&&clearTimeout(Fu),n?Fu=setTimeout((function(){t({event:r,name:e})})):t({event:r,name:e}))}}function Uu(e){return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)&&(Du||Gu("input",e)(t),clearTimeout(Du),Du=setTimeout((function(){Du=void 0}),1e3))}}var Lu=null;var ju=null;var Mu=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Bu=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Ku=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,qu=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Vu=/\((\S*)(?::(\d+))(?::(\d+))\)/,$u=/Minified React error #\d+;/i;function Wu(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:$u.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,a=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=n.split("\n"),s=[],o=0;o<i.length;o+=2){var l=null;(t=r.exec(i[o]))?l={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=a.exec(i[o]))&&(l={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),l&&(!l.func&&l.line&&(l.func="?"),s.push(l))}if(!s.length)return null;return{message:Ju(e),name:e.name,stack:s}}(e))return zu(t,n)}catch(e){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,r,a=[],i=e.stack.split("\n"),s=0;s<i.length;++s){if(n=Mu.exec(i[s])){var o=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=Vu.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),r={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],func:n[1]||"?",args:o?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=Ku.exec(i[s]))r={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=Bu.exec(i[s])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=qu.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==s||n[5]||void 0===e.columnNumber||(a[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func="?"),a.push(r)}if(!a.length)return null;return{message:Ju(e),name:e.name,stack:a}}(e))return zu(t,n)}catch(e){}return{message:Ju(e),name:e&&e.name,stack:[],failed:!0}}function zu(e,t){try{return Object(Wc.a)(Object(Wc.a)({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function Ju(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Xu(e){var t=Yu(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Qu(e){return{exception:{values:[Xu(e)]}}}function Yu(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}function Zu(e,t,n){var r=tp(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return Object(Yc.a)(r,{handled:!0,type:"generic"}),r.level=yu.Error,n&&n.event_id&&(r.event_id=n.event_id),Qc.resolve(r)}function ep(e,t,n,r){void 0===n&&(n=yu.Info);var a=np(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),Qc.resolve(a)}function tp(e,t,n){var r;if(void 0===n&&(n={}),Object(Jc.e)(e)&&e.error)return r=Qu(Wu(e=e.error));if(Object(Jc.a)(e)||Object(Jc.b)(e)){var a=e,i=a.name||(Object(Jc.a)(a)?"DOMError":"DOMException"),s=a.message?i+": "+a.message:i;return r=np(s,t,n),Object(Yc.b)(r,s),"code"in a&&(r.tags=Object(Wc.a)(Object(Wc.a)({},r.tags),{"DOMException.code":""+a.code})),r}return Object(Jc.d)(e)?r=Qu(Wu(e)):Object(Jc.h)(e)||Object(Jc.f)(e)?(r=function(e,t,n){var r={exception:{values:[{type:Object(Jc.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(lu.b)(e)}]},extra:{__serialized__:Object(lu.e)(e)}};if(t){var a=Yu(Wu(t).stack);r.stacktrace={frames:a}}return r}(e,t,n.rejection),Object(Yc.a)(r,{synthetic:!0}),r):(r=np(e,t,n),Object(Yc.b)(r,""+e,void 0),Object(Yc.a)(r,{synthetic:!0}),r)}function np(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var a=Yu(Wu(t).stack);r.stacktrace={frames:a}}return r}function rp(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=hu();if(r&&r[e])return r[e].apply(r,Object(Wc.d)(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function ap(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return rp("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function ip(e,t){var n;try{throw new Error(e)}catch(e){n=e}var r="string"!=typeof t?{captureContext:t}:void 0;return rp("captureMessage",e,"string"==typeof t?t:void 0,Object(Wc.a)({originalException:e,syntheticException:n},r))}function sp(e){return rp("captureEvent",e)}function op(e){rp("configureScope",e)}function lp(e){rp("addBreadcrumb",e)}function cp(e,t){rp("setContext",e,t)}function up(e){rp("setExtras",e)}function pp(e){rp("setTags",e)}function dp(e,t){rp("setExtra",e,t)}function hp(e,t){rp("setTag",e,t)}function fp(e){rp("setUser",e)}function mp(e){rp("withScope",e)}var Sp=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e});var yp=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,Sp(r,n.prototype),r}return Object(Wc.b)(t,e),t}(Error),gp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,vp=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,a=t.pass,i=t.port,s=t.projectId;return t.protocol+"://"+t.user+(e&&a?":"+a:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+s},e.prototype._fromString=function(e){var t=gp.exec(e);if(!t)throw new yp("Invalid Dsn");var n=Object(Wc.c)(t.slice(1),6),r=n[0],a=n[1],i=n[2],s=void 0===i?"":i,o=n[3],l=n[4],c=void 0===l?"":l,u="",p=n[5],d=p.split("/");if(d.length>1&&(u=d.slice(0,-1).join("/"),p=d.pop()),p){var h=p.match(/^\d+/);h&&(p=h[0])}this._fromComponents({host:o,pass:s,path:u,projectId:p,port:c,protocol:r,user:a})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new yp("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new yp("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new yp("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new yp("Invalid Dsn: Invalid port "+this.port)},e}(),_p=function(){function e(e){this.dsn=e,this._dsnObject=new vp(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getBaseApiEndpoint=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var a in r.push("dsn="+t.toString()),e)if("user"===a){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(a)+"="+encodeURIComponent(e[a]));return r.length?n+"?"+r.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e={sentry_key:this._dsnObject.user,sentry_version:"7"};return Object(lu.f)(e)},e}(),bp=0;function Pp(){return bp>0}function wp(){bp+=1,setTimeout((function(){bp-=1}))}function Ep(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var a=r.map((function(e){return Ep(e,t)}));return e.handleEvent?e.handleEvent.apply(this,a):e.apply(this,a)}catch(e){throw wp(),mp((function(n){n.addEventProcessor((function(e){var n=Object(Wc.a)({},e);return t.mechanism&&(Object(Yc.b)(n,void 0,void 0),Object(Yc.a)(n,t.mechanism)),n.extra=Object(Wc.a)(Object(Wc.a)({},n.extra),{arguments:r}),n})),ap(e)})),e}};try{for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}function kp(e){if(void 0===e&&(e={}),e.eventId)if(e.dsn){var t=document.createElement("script");t.async=!0,t.src=new _p(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else su.error("Missing dsn option in showReportDialog call");else su.error("Missing eventId option in showReportDialog call")}var Tp=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=Object(Wc.a)({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(su.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(su.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Ou({callback:function(n){var r=n.error,a=hu(),i=a.getIntegration(e),s=r&&!0===r.__sentry_own_request__;if(i&&!Pp()&&!s){var o=a.getClient(),l=Object(Jc.i)(r)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(tp(r,void 0,{attachStacktrace:o&&o.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);Object(Yc.a)(l,{handled:!1,type:"onerror"}),a.captureEvent(l,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Ou({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var a=hu(),i=a.getIntegration(e),s=r&&!0===r.__sentry_own_request__;if(!i||Pp()||s)return!0;var o=a.getClient(),l=Object(Jc.i)(r)?t._eventFromIncompleteRejection(r):tp(r,void 0,{attachStacktrace:o&&o.getOptions().attachStacktrace,rejection:!0});l.level=yu.Error,Object(Yc.a)(l,{handled:!1,type:"onunhandledrejection"}),a.captureEvent(l,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var a,i=Object(Jc.e)(e)?e.message:e;if(Object(Jc.k)(i)){var s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(a=s[1],i=s[2])}var o={exception:{values:[{type:a||"Error",value:i}]}};return this._enhanceEventWithInitialFrame(o,t,n,r)},e.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var a=isNaN(parseInt(r,10))?void 0:r,i=isNaN(parseInt(n,10))?void 0:n,s=Object(Jc.k)(t)&&t.length>0?t:Object(Yc.f)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:a,filename:s,function:"?",in_app:!0,lineno:i}),e},e.id="GlobalHandlers",e}(),Cp=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Ip=function(){function e(t){this.name=e.id,this._options=Object(Wc.a)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=Object(Yc.e)();(this._options.setTimeout&&Object(lu.c)(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Object(lu.c)(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Object(lu.c)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Object(lu.c)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Cp).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=Ep(r,{mechanism:{data:{function:Object(bu.a)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,Ep(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(bu.a)(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=Object(Yc.e)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(lu.c)(n,"addEventListener",(function(t){return function(n,r,a){try{"function"==typeof r.handleEvent&&(r.handleEvent=Ep(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(bu.a)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,Ep(r,{mechanism:{data:{function:"addEventListener",handler:Object(bu.a)(r),target:e},handled:!0,type:"instrument"}}),a)}})),Object(lu.c)(n,"removeEventListener",(function(e){return function(t,n,r){var a,i=n;try{var s=null===(a=i)||void 0===a?void 0:a.__sentry_wrapped__;s&&e.call(this,t,s,r)}catch(e){}return e.call(this,t,i,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,a=["onload","onerror","onprogress","onreadystatechange"];return a.forEach((function(e){e in r&&"function"==typeof r[e]&&Object(lu.c)(r,e,(function(t){var n={mechanism:{data:{function:e,handler:Object(bu.a)(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=Object(bu.a)(t.__sentry_original__)),Ep(t,n)}))})),e.apply(this,t)}},e.id="TryCatch",e}(),Ap=n(126),Op=function(){function e(t){this.name=e.id,this._options=Object(Wc.a)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&hu().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Object(Yc.d)(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Ou({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,Object(Wc.d)(t))},type:"console"}),this._options.dom&&Ou({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,Object(Wc.d)(t))},type:"dom"}),this._options.xhr&&Ou({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,Object(Wc.d)(t))},type:"xhr"}),this._options.fetch&&Ou({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,Object(Wc.d)(t))},type:"fetch"}),this._options.history&&Ou({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,Object(Wc.d)(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:yu.fromString(e.level),message:Object(gu.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(gu.b)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}hu().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Object(Ap.a)(e.event.target):Object(Ap.a)(e.event)}catch(e){t="<unknown>"}0!==t.length&&hu().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,a=t.status_code,i=t.body;hu().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:a},type:"http"},{xhr:e.xhr,input:i})}else;},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?hu().addBreadcrumb({category:"fetch",data:e.fetchData,level:yu.Error,type:"http"},{data:e.error,input:e.args}):hu().addBreadcrumb({category:"fetch",data:Object(Wc.a)(Object(Wc.a)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=Object(Yc.e)(),n=e.from,r=e.to,a=Object(Yc.i)(t.location.href),i=Object(Yc.i)(n),s=Object(Yc.i)(r);i.path||(i=a),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),a.protocol===i.protocol&&a.host===i.host&&(n=i.relative),hu().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}(),xp=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){tu((function(t,n){var r=hu().getIntegration(e);return r?r._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Object(Jc.g)(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=Object(Wc.d)(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Object(Jc.g)(e[t],Error)||n.length+1>=this._limit)return n;var r=Xu(Wu(e[t]));return this._walkErrorTree(e[t],t,Object(Wc.d)([r],n))},e.id="LinkedErrors",e}(),Np=Object(Yc.e)(),Rp=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){tu((function(t){var n,r,a;if(hu().getIntegration(e)){if(!Np.navigator&&!Np.location&&!Np.document)return t;var i=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(r=Np.location)||void 0===r?void 0:r.href),s=(Np.document||{}).referrer,o=(Np.navigator||{}).userAgent,l=Object(Wc.a)(Object(Wc.a)(Object(Wc.a)({},null===(a=t.request)||void 0===a?void 0:a.headers),s&&{Referer:s}),o&&{"User-Agent":o}),c=Object(Wc.a)(Object(Wc.a)({},i&&{url:i}),{headers:l});return Object(Wc.a)(Object(Wc.a)({},t),{request:c})}return t}))},e.id="UserAgent",e}(),Dp={},Hp=Object(Yc.e)();Hp.Sentry&&Hp.Sentry.Integrations&&(Dp=Hp.Sentry.Integrations);var Fp=Object(Wc.a)(Object(Wc.a)(Object(Wc.a)({},Dp),r),a),Gp=function(e,t){return(Gp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */function Up(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Gp(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Lp=function(){return(Lp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function jp(e,t,n,r){return new(n||(n=Promise))((function(a,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function o(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((r=r.apply(e,t||[])).next())}))}function Mp(e,t){var n,r,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(a=s.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){s.label=i[1];break}if(6===i[0]&&s.label<a[1]){s.label=a[1],a=i;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(i);break}a[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}}Object.create;function Bp(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s}function Kp(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Bp(arguments[t]));return e}var qp;Object.create;function Vp(e,t){!0===t.debug&&su.enable();var n=hu(),r=new e(t);n.bindClient(r)}!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(qp||(qp={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(qp||(qp={}));var $p=[];function Wp(e){var t={};return function(e){var t=e.defaultIntegrations&&Object(Wc.d)(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var a=n.map((function(e){return e.name})),i=[];t.forEach((function(e){-1===a.indexOf(e.name)&&-1===i.indexOf(e.name)&&(r.push(e),i.push(e.name))})),n.forEach((function(e){-1===i.indexOf(e.name)&&(r.push(e),i.push(e.name))}))}else"function"==typeof n?(r=n(t),r=Array.isArray(r)?r:[r]):r=Object(Wc.d)(t);var s=r.map((function(e){return e.name}));return-1!==s.indexOf("Debug")&&r.push.apply(r,Object(Wc.d)(r.splice(s.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===$p.indexOf(e.name)&&(e.setupOnce(tu,hu),$p.push(e.name),su.log("Integration installed: "+e.name))}(e)})),t}var zp=function(){function e(e,t){this._integrations={},this._processing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new vp(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this,a=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){a=e}))),a},e.prototype.captureMessage=function(e,t,n,r){var a=this,i=n&&n.event_id,s=Object(Jc.i)(e)?this._getBackend().eventFromMessage(""+e,t,n):this._getBackend().eventFromException(e,n);return this._process(s.then((function(e){return a._captureEvent(e,n,r)})).then((function(e){i=e}))),i},e.prototype.captureEvent=function(e,t,n){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r},e.prototype.captureSession=function(e){e.release?this._sendSession(e):su.warn("Discarded session because of missing release")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return t._getBackend().getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=Wp(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return su.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,a,i=!1,s=!1,o=t.exception&&t.exception.values;if(o){s=!0;try{for(var l=Object(Wc.e)(o),c=l.next();!c.done;c=l.next()){var u=c.value.mechanism;if(u&&!1===u.handled){i=!0;break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}var p=t.user;if(!e.userAgent){var d=t.request?t.request.headers:{};for(var h in d)if("user-agent"===h.toLowerCase()){a=d[h];break}}e.update(Object(Wc.a)(Object(Wc.a)({},i&&{status:iu.Crashed}),{user:p,userAgent:a,errors:e.errors+Number(s||i)}))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientProcessing=function(e){var t=this;return new Qc((function(n){var r=0,a=setInterval((function(){0==t._processing?(clearInterval(a),n(!0)):(r+=1,e&&r>=e&&(clearInterval(a),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,a=this.getOptions().normalizeDepth,i=void 0===a?3:a,s=Object(Wc.a)(Object(Wc.a)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:Object(Yc.j)()),timestamp:e.timestamp||Object(Xc.a)()});this._applyClientOptions(s),this._applyIntegrationsMetadata(s);var o=t;n&&n.captureContext&&(o=Zc.clone(o).update(n.captureContext));var l=Qc.resolve(s);return o&&(l=o.applyToEvent(s,n)),l.then((function(e){return"number"==typeof i&&i>0?r._normalizeEvent(e,i):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=Object(Wc.a)(Object(Wc.a)(Object(Wc.a)(Object(Wc.a)(Object(Wc.a)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Object(Wc.a)(Object(Wc.a)({},e),e.data&&{data:Object(lu.d)(e.data,t)})}))}),e.user&&{user:Object(lu.d)(e.user,t)}),e.contexts&&{contexts:Object(lu.d)(e.contexts,t)}),e.extra&&{extra:Object(lu.d)(e.extra,t)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,a=t.dist,i=t.maxValueLength,s=void 0===i?250:i;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==a&&(e.dist=a),e.message&&(e.message=Object(gu.d)(e.message,s));var o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=Object(gu.d)(o.value,s));var l=e.request;l&&l.url&&(l.url=Object(gu.d)(l.url,s))},e.prototype._applyIntegrationsMetadata=function(e){var t=e.sdk,n=Object.keys(this._integrations);t&&n.length>0&&(t.integrations=n)},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){su.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,a=this.getOptions(),i=a.beforeSend,s=a.sampleRate;if(!this._isEnabled())return Qc.reject(new yp("SDK not enabled, will not send event."));var o="transaction"===e.type;return!o&&"number"==typeof s&&Math.random()>s?Qc.reject(new yp("This event has been sampled, will not send event.")):this._prepareEvent(e,n,t).then((function(e){if(null===e)throw new yp("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||o||!i)return e;var n=i(e,t);if(void 0===n)throw new yp("`beforeSend` method has to return `null` or a valid event.");return Object(Jc.m)(n)?n.then((function(e){return e}),(function(e){throw new yp("beforeSend rejected with "+e)})):n})).then((function(e){if(null===e)throw new yp("`beforeSend` returned `null`, will not send event.");var t=n&&n.getSession&&n.getSession();return!o&&t&&r._updateSessionFromEvent(t,e),r._sendEvent(e),e})).then(null,(function(e){if(e instanceof yp)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new yp("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._processing+=1,e.then((function(e){return t._processing-=1,e}),(function(e){return t._processing-=1,e}))},e}(),Jp=function(){function e(){}return e.prototype.sendEvent=function(e){return Qc.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:qp.Skipped})},e.prototype.close=function(e){return Qc.resolve(!0)},e}(),Xp=function(){function e(e){this._options=e,this._options.dsn||su.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new yp("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new yp("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){su.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){su.error("Error while sending session: "+e)})):su.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new Jp},e}();function Qp(e,t){return{body:JSON.stringify({sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(e),type:"session",url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function Yp(e,t){var n="transaction"===e.type,r={body:JSON.stringify(e),type:e.type||"event",url:n?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(n){var a=JSON.stringify({event_id:e.event_id,sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:e.type})+"\n"+r.body;r.body=a}return r}var Zp=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):Qc.reject(new yp("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new Qc((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);Qc.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),ed=function(){function e(e){this.options=e,this._buffer=new Zp(30),this._rateLimits={},this._api=new _p(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new yp("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,a=e.resolve,i=e.reject,s=qp.fromHttpCode(n.status);this._handleRateLimit(r)&&su.warn("Too many requests, backing off till: "+this._disabledUntil(t)),s!==qp.Success?i(n):a({status:s})},e.prototype._disabledUntil=function(e){return this._rateLimits[e]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,a,i=Date.now(),s=e["x-sentry-rate-limits"],o=e["retry-after"];if(s){try{for(var l=Object(Wc.e)(s.trim().split(",")),c=l.next();!c.done;c=l.next()){var u=c.value.split(":",2),p=parseInt(u[0],10),d=1e3*(isNaN(p)?60:p);try{for(var h=(r=void 0,Object(Wc.e)(u[1].split(";"))),f=h.next();!f.done;f=h.next()){var m=f.value;this._rateLimits[m||"all"]=new Date(i+d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return!0}return!!o&&(this._rateLimits.all=new Date(i+Object(Yc.g)(i,o)),!0)},e}(),td=Object(Yc.e)(),nd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Wc.b)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(Yp(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(Qp(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:Eu()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(new Qc((function(t,a){td.fetch(e.url,r).then((function(r){var i={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:i,resolve:t,reject:a})})).catch(a)})))},t}(ed),rd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Wc.b)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(Yp(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(Qp(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429}):this._buffer.add(new Qc((function(t,r){var a=new XMLHttpRequest;for(var i in a.onreadystatechange=function(){if(4===a.readyState){var i={"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:a,headers:i,resolve:t,reject:r})}},a.open("POST",e.url),n.options.headers)n.options.headers.hasOwnProperty(i)&&a.setRequestHeader(i,n.options.headers[i]);a.send(e.body)})))},t}(ed),ad=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Wc.b)(t,e),t.prototype.eventFromException=function(e,t){return Zu(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=yu.Info),ep(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=Object(Wc.a)(Object(Wc.a)({},this._options.transportOptions),{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):Pu()?new nd(t):new rd(t)},t}(Xp),id="sentry.javascript.browser",sd=(function(e){function t(t){return void 0===t&&(t={}),e.call(this,ad,t)||this}Object(Wc.b)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),Object(Yc.e)().document&&(this._isEnabled()?kp(Object(Wc.a)(Object(Wc.a)({},e),{dsn:e.dsn||this.getDsn()})):su.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",t.sdk=Object(Wc.a)(Object(Wc.a)({},t.sdk),{name:id,packages:Object(Wc.d)(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.27.6"}]),version:"5.27.6"}),e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(Op);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)}}(zp),[new r.InboundFilters,new r.FunctionToString,new Ip,new Op,new Tp,new xp,new Rp]);function od(){var e=n(7);if(e&&e.app){var t=e.app;return t.name||t.getName()}if(!e||!e.remote)throw new yp("The Electron `remote` module was not available to get appName. Please ensure you pass `appName` to Sentry options");var r=e.remote.app;return r.name||r.getName()}function ld(){var e=Object(Yc.h)(process.versions.electron);return{major:e.major||0,minor:e.minor||0,patch:e.patch||0}}function cd(e,t){return Object(lu.g)(e,t,50)}var ud=function(e){function t(t){var r=this;!1===t.enableJavaScript&&(t.enabled=!1),r=e.call(this,t)||this;var a=function(){try{return n(7)}catch(e){}}();return a?(r._isNativeEnabled()&&r._installNativeHandler(a.crashReporter),r._hookIPC(a.ipcRenderer,a.contextBridge),r._pingMainProcess()):null==window.__SENTRY_IPC__&&console.warn('contextIsolation is enabled but IPC has not been exposed. Did you call "init" in the preload script?'),r._setupScopeListener(),r}return Up(t,e),t.prototype.eventFromException=function(e,t){return Zu(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return ep(this._options,e,t,n)},t.prototype.sendEvent=function(e){var t;null===(t=window.__SENTRY_IPC__)||void 0===t||t.sendEvent(e)},t.prototype._hookIPC=function(e,t){var n={sendScope:function(t){return e.send("sentry-electron.scope",JSON.stringify(t,cd))},sendEvent:function(t){return null==t.breadcrumbs&&delete t.breadcrumbs,e.send("sentry-electron.event",JSON.stringify(t,cd))},pingMain:function(t){e.once("sentry-electron.ping",(function(){t()})),e.send("sentry-electron.ping")}};if(window.__SENTRY_IPC__=n,t)try{t.exposeInMainWorld("__SENTRY_IPC__",n)}catch(e){}},t.prototype._setupScopeListener=function(){var e=hu().getScope();e&&e.addScopeListener((function(t){var n;null===(n=window.__SENTRY_IPC__)||void 0===n||n.sendScope(t),e.clearBreadcrumbs()}))},t.prototype._isNativeEnabled=function(){return"darwin"!==process.platform&&(!process.mas&&!1!==this._options.enableNative)},t.prototype._installNativeHandler=function(e){ld().major<9&&e.start({companyName:"",ignoreSystemCrashHandler:!0,productName:this._options.appName||od(),submitURL:"",uploadToServer:!1})},t.prototype._pingMainProcess=function(){setTimeout((function(){var e,t=setTimeout((function(){console.warn("Could not connect to Sentry main process. Did you call init?")}),500);null===(e=window.__SENTRY_IPC__)||void 0===e||e.pingMain((function(){return clearTimeout(t)}))}),500)},t}(Xp),pd=function(e){function t(t){return e.call(this,ud,t)||this}return Up(t,e),t.prototype.captureMinidump=function(){su.warn("captureMinidump is a noop on the renderer")},t.prototype.showReportDialog=function(e){void 0===e&&(e={}),e.eventId||(e.eventId=hu().lastEventId()),kp(e)},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",t.sdk=Lp(Lp({},t.sdk),{name:id,packages:Kp(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.27.6"}]),version:"5.27.6"}),e.prototype._prepareEvent.call(this,t,n,r)},t}(zp);function dd(e){void 0===e.defaultIntegrations&&(e.defaultIntegrations=sd),Vp(pd,e)}function hd(e){void 0===e&&(e={}),hu().getClient().showReportDialog(e)}function fd(e,t){void 0===t&&(t={}),function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];rp.apply(void 0,Object(Wc.d)(["_invokeClient",e],t))}("captureMinidump",e,t)}function md(e){return jp(this,void 0,void 0,(function(){var t;return Mp(this,(function(n){return(t=hu().getClient())?[2,t.flush(e)]:[2,Promise.reject(!1)]}))}))}function Sd(e){return jp(this,void 0,void 0,(function(){var t;return Mp(this,(function(n){return(t=hu().getClient())?[2,t.close(e)]:[2,Promise.reject(!1)]}))}))} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var yd=function(){return(yd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function gd(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var vd="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,_d=Object.keys,bd=Array.isArray;function Pd(e,t){return"object"!=typeof t||_d(t).forEach((function(n){e[n]=t[n]})),e}"undefined"==typeof Promise||vd.Promise||(vd.Promise=Promise);var wd=Object.getPrototypeOf,Ed={}.hasOwnProperty;function kd(e,t){return Ed.call(e,t)}function Td(e,t){"function"==typeof t&&(t=t(wd(e))),("undefined"==typeof Reflect?_d:Reflect.ownKeys)(t).forEach((function(n){Id(e,n,t[n])}))}var Cd=Object.defineProperty;function Id(e,t,n,r){Cd(e,t,Pd(n&&kd(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function Ad(e){return{from:function(t){return e.prototype=Object.create(t.prototype),Id(e.prototype,"constructor",e),{extend:Td.bind(null,e.prototype)}}}}var Od=Object.getOwnPropertyDescriptor;function xd(e,t){var n;return Od(e,t)||(n=wd(e))&&xd(n,t)}var Nd=[].slice;function Rd(e,t,n){return Nd.call(e,t,n)}function Dd(e,t){return t(e)}function Hd(e){if(!e)throw new Error("Assertion Failed")}function Fd(e){vd.setImmediate?setImmediate(e):setTimeout(e,0)}function Gd(e,t){return e.reduce((function(e,n,r){var a=t(n,r);return a&&(e[a[0]]=a[1]),e}),{})}function Ud(e,t){if(kd(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,a=t.length;r<a;++r){var i=Ud(e,t[r]);n.push(i)}return n}var s=t.indexOf(".");if(-1!==s){var o=e[t.substr(0,s)];return void 0===o?void 0:Ud(o,t.substr(s+1))}}function Ld(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){Hd("string"!=typeof n&&"length"in n);for(var r=0,a=t.length;r<a;++r)Ld(e,t[r],n[r])}else{var i=t.indexOf(".");if(-1!==i){var s=t.substr(0,i),o=t.substr(i+1);if(""===o)void 0===n?bd(e)&&!isNaN(parseInt(s))?e.splice(s,1):delete e[s]:e[s]=n;else{var l=e[s];l&&kd(e,s)||(l=e[s]={}),Ld(l,o,n)}}else void 0===n?bd(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function jd(e){var t={};for(var n in e)kd(e,n)&&(t[n]=e[n]);return t}var Md=[].concat;function Bd(e){return Md.apply([],e)}var Kd="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Bd([8,16,32,64].map((function(e){return["Int","Uint","Float"].map((function(t){return t+e+"Array"}))})))).filter((function(e){return vd[e]})),qd=Kd.map((function(e){return vd[e]}));Gd(Kd,(function(e){return[e,!0]}));var Vd=null;function $d(e){Vd="undefined"!=typeof WeakMap&&new WeakMap;var t=function e(t){if(!t||"object"!=typeof t)return t;var n=Vd&&Vd.get(t);if(n)return n;if(bd(t)){n=[],Vd&&Vd.set(t,n);for(var r=0,a=t.length;r<a;++r)n.push(e(t[r]))}else if(qd.indexOf(t.constructor)>=0)n=t;else{var i=wd(t);for(var s in n=i===Object.prototype?{}:Object.create(i),Vd&&Vd.set(t,n),t)kd(t,s)&&(n[s]=e(t[s]))}return n}(e);return Vd=null,t}var Wd={}.toString;function zd(e){return Wd.call(e).slice(8,-1)}var Jd="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",Xd="symbol"==typeof Jd?function(e){var t;return null!=e&&(t=e[Jd])&&t.apply(e)}:function(){return null},Qd={};function Yd(e){var t,n,r,a;if(1===arguments.length){if(bd(e))return e.slice();if(this===Qd&&"string"==typeof e)return[e];if(a=Xd(e)){for(n=[];!(r=a.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var Zd="undefined"!=typeof Symbol?function(e){return"AsyncFunction"===e[Symbol.toStringTag]}:function(){return!1},eh="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function th(e,t){eh=e,nh=t}var nh=function(){return!0},rh=!new Error("").stack;function ah(){if(rh)try{throw ah.arguments,new Error}catch(e){return e}return new Error}function ih(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(nh).map((function(e){return"\n"+e})).join("")):""}var sh=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],oh=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(sh),lh={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function ch(e,t){this._e=ah(),this.name=e,this.message=t}function uh(e,t){return e+". Errors: "+Object.keys(t).map((function(e){return t[e].toString()})).filter((function(e,t,n){return n.indexOf(e)===t})).join("\n")}function ph(e,t,n,r){this._e=ah(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=uh(e,t)}function dh(e,t){this._e=ah(),this.name="BulkError",this.failures=Object.keys(t).map((function(e){return t[e]})),this.failuresByPos=t,this.message=uh(e,t)}Ad(ch).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+ih(this._e,2))}},toString:function(){return this.name+": "+this.message}}),Ad(ph).from(ch),Ad(dh).from(ch);var hh=oh.reduce((function(e,t){return e[t]=t+"Error",e}),{}),fh=ch,mh=oh.reduce((function(e,t){var n=t+"Error";function r(e,r){this._e=ah(),this.name=n,e?"string"==typeof e?(this.message=e+(r?"\n "+r:""),this.inner=r||null):"object"==typeof e&&(this.message=e.name+" "+e.message,this.inner=e):(this.message=lh[t]||n,this.inner=null)}return Ad(r).from(fh),e[t]=r,e}),{});mh.Syntax=SyntaxError,mh.Type=TypeError,mh.Range=RangeError;var Sh=sh.reduce((function(e,t){return e[t+"Error"]=mh[t],e}),{});var yh=oh.reduce((function(e,t){return-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=mh[t]),e}),{});function gh(){}function vh(e){return e}function _h(e,t){return null==e||e===vh?t:function(n){return t(e(n))}}function bh(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function Ph(e,t){return e===gh?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,a=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?bh(r,this.onsuccess):r),a&&(this.onerror=this.onerror?bh(a,this.onerror):a),void 0!==i?i:n}}function wh(e,t){return e===gh?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?bh(n,this.onsuccess):n),r&&(this.onerror=this.onerror?bh(r,this.onerror):r)}}function Eh(e,t){return e===gh?t:function(n){var r=e.apply(this,arguments);Pd(n,r);var a=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var s=t.apply(this,arguments);return a&&(this.onsuccess=this.onsuccess?bh(a,this.onsuccess):a),i&&(this.onerror=this.onerror?bh(i,this.onerror):i),void 0===r?void 0===s?void 0:s:Pd(r,s)}}function kh(e,t){return e===gh?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function Th(e,t){return e===gh?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,a=arguments.length,i=new Array(a);a--;)i[a]=arguments[a];return n.then((function(){return t.apply(r,i)}))}return t.apply(this,arguments)}}yh.ModifyError=ph,yh.DexieError=ch,yh.BulkError=dh;var Ch={},Ih="undefined"==typeof Promise?[]:function(){var e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,wd(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,wd(t),e]}(),Ah=Ih[0],Oh=Ih[1],xh=Ih[2],Nh=Oh&&Oh.then,Rh=Ah&&Ah.constructor,Dh=!!xh,Hh=!1,Fh=xh?function(){xh.then(af)}:vd.setImmediate?setImmediate.bind(null,af):vd.MutationObserver?function(){var e=document.createElement("div");new MutationObserver((function(){af(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(af,0)},Gh=function(e,t){$h.push([e,t]),Lh&&(Fh(),Lh=!1)},Uh=!0,Lh=!0,jh=[],Mh=[],Bh=null,Kh=vh,qh={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Af,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((function(e){try{Af(e[0],e[1])}catch(e){}}))}},Vh=qh,$h=[],Wh=0,zh=[];function Jh(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=gh,this._lib=!1;var t=this._PSD=Vh;if(eh&&(this._stackHolder=ah(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==Ch)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Zh(this,this._value))}this._state=null,this._value=null,++t.ref,Yh(this,e)}var Xh={get:function(){var e=Vh,t=mf;function n(n,r){var a=this,i=!e.global&&(e!==Vh||t!==mf),s=i&&!vf(),o=new Jh((function(t,o){tf(a,new Qh(Cf(n,e,i,s),Cf(r,e,i,s),t,o,e))}));return eh&&rf(o,this),o}return n.prototype=Ch,n},set:function(e){Id(this,"then",e&&e.prototype===Ch?Xh:{get:function(){return e},set:Xh.set})}};function Qh(e,t,n,r,a){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=a}function Yh(e,t){try{t((function(t){if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&sf();t&&"function"==typeof t.then?Yh(e,(function(e,n){t instanceof Jh?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,ef(e)),n&&of()}}),Zh.bind(null,e))}catch(t){Zh(e,t)}}function Zh(e,t){if(Mh.push(t),null===e._state){var n=e._lib&&sf();t=Kh(t),e._state=!1,e._value=t,eh&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,n)}catch(e){t&&t(e)}}((function(){var n=xd(t,"stack");t._promise=e,Id(t,"stack",{get:function(){return Hh?n&&(n.get?n.get.apply(t):n.value):e.stack}})})),function(e){jh.some((function(t){return t._value===e._value}))||jh.push(e)}(e),ef(e),n&&of()}}function ef(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)tf(e,t[n]);var a=e._PSD;--a.ref||a.finalize(),0===Wh&&(++Wh,Gh((function(){0==--Wh&&lf()}),[]))}function tf(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++Wh,Gh(nf,[n,e,t])}else e._listeners.push(t)}function nf(e,t,n){try{Bh=t;var r,a=t._value;t._state?r=e(a):(Mh.length&&(Mh=[]),r=e(a),-1===Mh.indexOf(a)&&function(e){var t=jh.length;for(;t;)if(jh[--t]._value===e._value)return void jh.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{Bh=null,0==--Wh&&lf(),--n.psd.ref||n.psd.finalize()}}function rf(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function af(){sf()&&of()}function sf(){var e=Uh;return Uh=!1,Lh=!1,e}function of(){var e,t,n;do{for(;$h.length>0;)for(e=$h,$h=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}}while($h.length>0);Uh=!0,Lh=!0}function lf(){var e=jh;jh=[],e.forEach((function(e){e._PSD.onunhandled.call(null,e._value,e)}));for(var t=zh.slice(0),n=t.length;n;)t[--n]()}function cf(e){return new Jh(Ch,!1,e)}function uf(e,t){var n=Vh;return function(){var r=sf(),a=Vh;try{return wf(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{wf(a,!1),r&&of()}}}Td(Jh.prototype,{then:Xh,_then:function(e,t){tf(this,new Qh(null,null,e,t,Vh))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,(function(e){return e instanceof t?n(e):cf(e)})):this.then(null,(function(e){return e&&e.name===t?n(e):cf(e)}))},finally:function(e){return this.then((function(t){return e(),t}),(function(t){return e(),cf(t)}))},stack:{get:function(){if(this._stack)return this._stack;try{Hh=!0;var e=function e(t,n,r){if(n.length===r)return n;var a="";if(!1===t._state){var i,s,o=t._value;null!=o?(i=o.name||"Error",s=o.message||o,a=ih(o,0)):(i=o,s=""),n.push(i+(s?": "+s:"")+a)}eh&&((a=ih(t._stackHolder,2))&&-1===n.indexOf(a)&&n.push(a),t._prev&&e(t._prev,n,r));return n}(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{Hh=!1}}},timeout:function(e,t){var n=this;return e<1/0?new Jh((function(r,a){var i=setTimeout((function(){return a(new mh.Timeout(t))}),e);n.then(r,a).finally(clearTimeout.bind(null,i))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&Id(Jh.prototype,Symbol.toStringTag,"Dexie.Promise"),qh.env=Ef(),Td(Jh,{all:function(){var e=Yd.apply(null,arguments).map(_f);return new Jh((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach((function(a,i){return Jh.resolve(a).then((function(n){e[i]=n,--r||t(e)}),n)}))}))},resolve:function(e){if(e instanceof Jh)return e;if(e&&"function"==typeof e.then)return new Jh((function(t,n){e.then(t,n)}));var t=new Jh(Ch,!0,e);return rf(t,Bh),t},reject:cf,race:function(){var e=Yd.apply(null,arguments).map(_f);return new Jh((function(t,n){e.map((function(e){return Jh.resolve(e).then(t,n)}))}))},PSD:{get:function(){return Vh},set:function(e){return Vh=e}},totalEchoes:{get:function(){return mf}},newPSD:yf,usePSD:kf,scheduler:{get:function(){return Gh},set:function(e){Gh=e}},rejectionMapper:{get:function(){return Kh},set:function(e){Kh=e}},follow:function(e,t){return new Jh((function(n,r){return yf((function(t,n){var r=Vh;r.unhandleds=[],r.onunhandled=n,r.finalize=bh((function(){var e=this;!function(e){zh.push((function t(){e(),zh.splice(zh.indexOf(t),1)})),++Wh,Gh((function(){0==--Wh&&lf()}),[])}((function(){0===e.unhandleds.length?t():n(e.unhandleds[0])}))}),r.finalize),e()}),t,n,r)}))}}),Rh&&(Rh.allSettled&&Id(Jh,"allSettled",(function(){var e=Yd.apply(null,arguments).map(_f);return new Jh((function(t){0===e.length&&t([]);var n=e.length,r=new Array(n);e.forEach((function(e,a){return Jh.resolve(e).then((function(e){return r[a]={status:"fulfilled",value:e}}),(function(e){return r[a]={status:"rejected",reason:e}})).then((function(){return--n||t(r)}))}))}))})),Rh.any&&"undefined"!=typeof AggregateError&&Id(Jh,"any",(function(){var e=Yd.apply(null,arguments).map(_f);return new Jh((function(t,n){0===e.length&&n(new AggregateError([]));var r=e.length,a=new Array(r);e.forEach((function(e,i){return Jh.resolve(e).then((function(e){return t(e)}),(function(e){a[i]=e,--r||n(new AggregateError(a))}))}))}))})));var pf={awaits:0,echoes:0,id:0},df=0,hf=[],ff=0,mf=0,Sf=0;function yf(e,t,n,r){var a=Vh,i=Object.create(a);i.parent=a,i.ref=0,i.global=!1,i.id=++Sf;var s=qh.env;i.env=Dh?{Promise:Jh,PromiseProp:{value:Jh,configurable:!0,writable:!0},all:Jh.all,race:Jh.race,allSettled:Jh.allSettled,any:Jh.any,resolve:Jh.resolve,reject:Jh.reject,nthen:If(s.nthen,i),gthen:If(s.gthen,i)}:{},t&&Pd(i,t),++a.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var o=kf(i,e,n,r);return 0===i.ref&&i.finalize(),o}function gf(){return pf.id||(pf.id=++df),++pf.awaits,pf.echoes+=100,pf.id}function vf(){return!!pf.awaits&&(0==--pf.awaits&&(pf.id=0),pf.echoes=100*pf.awaits,!0)}function _f(e){return pf.echoes&&e&&e.constructor===Rh?(gf(),e.then((function(e){return vf(),e}),(function(e){return vf(),Of(e)}))):e}function bf(e){++mf,pf.echoes&&0!=--pf.echoes||(pf.echoes=pf.id=0),hf.push(Vh),wf(e,!0)}function Pf(){var e=hf[hf.length-1];hf.pop(),wf(e,!1)}function wf(e,t){var n=Vh;if((t?!pf.echoes||ff++&&e===Vh:!ff||--ff&&e===Vh)||Tf(t?bf.bind(null,e):Pf),e!==Vh&&(Vh=e,n===qh&&(qh.env=Ef()),Dh)){var r=qh.env.Promise,a=e.env;Oh.then=a.nthen,r.prototype.then=a.gthen,(n.global||e.global)&&(Object.defineProperty(vd,"Promise",a.PromiseProp),r.all=a.all,r.race=a.race,r.resolve=a.resolve,r.reject=a.reject,a.allSettled&&(r.allSettled=a.allSettled),a.any&&(r.any=a.any))}}function Ef(){var e=vd.Promise;return Dh?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(vd,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Oh.then,gthen:e.prototype.then}:{}}function kf(e,t,n,r,a){var i=Vh;try{return wf(e,!0),t(n,r,a)}finally{wf(i,!1)}}function Tf(e){Nh.call(Ah,e)}function Cf(e,t,n,r){return"function"!=typeof e?e:function(){var a=Vh;n&&gf(),wf(t,!0);try{return e.apply(this,arguments)}finally{wf(a,!1),r&&Tf(vf)}}}function If(e,t){return function(n,r){return e.call(this,Cf(n,t),Cf(r,t))}}-1===(""+Nh).indexOf("[native code]")&&(gf=vf=gh);function Af(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,a={promise:t,reason:e};if(vd.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),Pd(r,a)):vd.CustomEvent&&Pd(r=new CustomEvent("unhandledrejection",{detail:a}),a),r&&vd.dispatchEvent&&(dispatchEvent(r),!vd.PromiseRejectionEvent&&vd.onunhandledrejection))try{vd.onunhandledrejection(r)}catch(e){}eh&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: "+(e.stack||e))}catch(e){}}var Of=Jh.reject;var xf=String.fromCharCode(65535),Nf="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",Rf=[],Df="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Hf=Df,Ff=Df,Gf=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)};function Uf(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var Lf={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function jf(e){return"string"!=typeof e||/\./.test(e)?function(e){return e}:function(t){return void 0===t[e]&&e in t&&delete(t=$d(t))[e],t}}var Mf=function(){function e(){}return e.prototype._trans=function(e,t,n){var r=this._tx||Vh.trans,a=this.name;function i(e,n,r){if(!r.schema[a])throw new mh.NotFound("Table "+a+" not part of transaction");return t(r.idbtrans,r)}var s=sf();try{return r&&r.db===this.db?r===Vh.trans?r._promise(e,i,n):yf((function(){return r._promise(e,i,n)}),{trans:r,transless:Vh.transless||Vh}):function e(t,n,r,a){if(t.idbdb&&(t._state.openComplete||Vh.letThrough||t._vip)){var i=t._createTransaction(n,r,t._dbSchema);try{i.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===hh.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then((function(){return e(t,n,r,a)}))):Of(i)}return i._promise(n,(function(e,t){return yf((function(){return Vh.trans=i,a(e,t,i)}))})).then((function(e){return i._completion.then((function(){return e}))}))}if(t._state.openComplete)return Of(new mh.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return Of(new mh.DatabaseClosed);t.open().catch(gh)}return t._state.dbReadyPromise.then((function(){return e(t,n,r,a)}))}(this.db,e,[this.name],i)}finally{s&&of()}},e.prototype.get=function(e,t){var n=this;return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",(function(t){return n.core.get({trans:t,key:e}).then((function(e){return n.hook.reading.fire(e)}))})).then(t)},e.prototype.where=function(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(bd(e))return new this.db.WhereClause(this,"["+e.join("+")+"]");var t=_d(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter((function(e){return e.compound&&t.every((function(t){return e.keyPath.indexOf(t)>=0}))&&e.keyPath.every((function(e){return t.indexOf(e)>=0}))}))[0];if(n&&this.db._maxKey!==xf)return this.where(n.name).equals(n.keyPath.map((function(t){return e[t]})));!n&&eh&&console.warn("The query "+JSON.stringify(e)+" on "+this.name+" would benefit of a compound index ["+t.join("+")+"]");var r=this.schema.idxByName,a=this.db._deps.indexedDB;function i(e,t){try{return 0===a.cmp(e,t)}catch(e){return!1}}var s=t.reduce((function(t,n){var a=t[0],s=t[1],o=r[n],l=e[n];return[a||o,a||!o?Uf(s,o&&o.multi?function(e){var t=Ud(e,n);return bd(t)&&t.some((function(e){return i(l,e)}))}:function(e){return i(l,Ud(e,n))}):s]}),[null,null]),o=s[0],l=s[1];return o?this.where(o.name).equals(e[o.keyPath]).filter(l):n?this.filter(l):this.where(t).equals("")},e.prototype.filter=function(e){return this.toCollection().and(e)},e.prototype.count=function(e){return this.toCollection().count(e)},e.prototype.offset=function(e){return this.toCollection().offset(e)},e.prototype.limit=function(e){return this.toCollection().limit(e)},e.prototype.each=function(e){return this.toCollection().each(e)},e.prototype.toArray=function(e){return this.toCollection().toArray(e)},e.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},e.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,bd(e)?"["+e.join("+")+"]":e))},e.prototype.reverse=function(){return this.toCollection().reverse()},e.prototype.mapToClass=function(e){this.schema.mappedClass=e;var t=function(t){if(!t)return t;var n=Object.create(e.prototype);for(var r in t)if(kd(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e},e.prototype.defineClass=function(){return this.mapToClass((function(e){Pd(this,e)}))},e.prototype.add=function(e,t){var n=this,r=this.schema.primKey,a=r.auto,i=r.keyPath,s=e;return i&&a&&(s=jf(i)(e)),this._trans("readwrite",(function(e){return n.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[s]})})).then((function(e){return e.numFailures?Jh.reject(e.failures[0]):e.lastResult})).then((function(t){if(i)try{Ld(e,i,t)}catch(e){}return t}))},e.prototype.update=function(e,t){if("object"!=typeof e||bd(e))return this.where(":id").equals(e).modify(t);var n=Ud(e,this.schema.primKey.keyPath);if(void 0===n)return Of(new mh.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?_d(t).forEach((function(n){Ld(e,n,t[n])})):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)},e.prototype.put=function(e,t){var n=this,r=this.schema.primKey,a=r.auto,i=r.keyPath,s=e;return i&&a&&(s=jf(i)(e)),this._trans("readwrite",(function(e){return n.core.mutate({trans:e,type:"put",values:[s],keys:null!=t?[t]:null})})).then((function(e){return e.numFailures?Jh.reject(e.failures[0]):e.lastResult})).then((function(t){if(i)try{Ld(e,i,t)}catch(e){}return t}))},e.prototype.delete=function(e){var t=this;return this._trans("readwrite",(function(n){return t.core.mutate({trans:n,type:"delete",keys:[e]})})).then((function(e){return e.numFailures?Jh.reject(e.failures[0]):void 0}))},e.prototype.clear=function(){var e=this;return this._trans("readwrite",(function(t){return e.core.mutate({trans:t,type:"deleteRange",range:Lf})})).then((function(e){return e.numFailures?Jh.reject(e.failures[0]):void 0}))},e.prototype.bulkGet=function(e){var t=this;return this._trans("readonly",(function(n){return t.core.getMany({keys:e,trans:n}).then((function(e){return e.map((function(e){return t.hook.reading.fire(e)}))}))}))},e.prototype.bulkAdd=function(e,t,n){var r=this,a=Array.isArray(t)?t:void 0,i=(n=n||(a?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(function(t){var n=r.schema.primKey,s=n.auto,o=n.keyPath;if(o&&a)throw new mh.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(a&&a.length!==e.length)throw new mh.InvalidArgument("Arguments objects and keys must have the same length");var l=e.length,c=o&&s?e.map(jf(o)):e;return r.core.mutate({trans:t,type:"add",keys:a,values:c,wantResults:i}).then((function(e){var t=e.numFailures,n=e.results,a=e.lastResult,s=e.failures;if(0===t)return i?n:a;throw new dh(r.name+".bulkAdd(): "+t+" of "+l+" operations failed",s)}))}))},e.prototype.bulkPut=function(e,t,n){var r=this,a=Array.isArray(t)?t:void 0,i=(n=n||(a?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(function(t){var n=r.schema.primKey,s=n.auto,o=n.keyPath;if(o&&a)throw new mh.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(a&&a.length!==e.length)throw new mh.InvalidArgument("Arguments objects and keys must have the same length");var l=e.length,c=o&&s?e.map(jf(o)):e;return r.core.mutate({trans:t,type:"put",keys:a,values:c,wantResults:i}).then((function(e){var t=e.numFailures,n=e.results,a=e.lastResult,s=e.failures;if(0===t)return i?n:a;throw new dh(r.name+".bulkPut(): "+t+" of "+l+" operations failed",s)}))}))},e.prototype.bulkDelete=function(e){var t=this,n=e.length;return this._trans("readwrite",(function(n){return t.core.mutate({trans:n,type:"delete",keys:e})})).then((function(e){var r=e.numFailures,a=e.lastResult,i=e.failures;if(0===r)return a;throw new dh(t.name+".bulkDelete(): "+r+" of "+n+" operations failed",i)}))},e}();function Bf(e){var t={},n=function(n,r){if(r){for(var a=arguments.length,i=new Array(a-1);--a;)i[a-1]=arguments[a];return t[n].subscribe.apply(null,i),e}if("string"==typeof n)return t[n]};n.addEventType=i;for(var r=1,a=arguments.length;r<a;++r)i(arguments[r]);return n;function i(e,r,a){if("object"==typeof e)return s(e);r||(r=kh),a||(a=gh);var i={subscribers:[],fire:a,subscribe:function(e){-1===i.subscribers.indexOf(e)&&(i.subscribers.push(e),i.fire=r(i.fire,e))},unsubscribe:function(e){i.subscribers=i.subscribers.filter((function(t){return t!==e})),i.fire=i.subscribers.reduce(r,a)}};return t[e]=n[e]=i,i}function s(e){_d(e).forEach((function(t){var n=e[t];if(bd(n))i(t,e[t][0],e[t][1]);else{if("asap"!==n)throw new mh.InvalidArgument("Invalid event config");var r=i(t,vh,(function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];r.subscribers.forEach((function(e){Fd((function(){e.apply(null,t)}))}))}))}}))}}function Kf(e,t){return Ad(t).from({prototype:e}),t}function qf(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Vf(e,t){e.filter=Uf(e.filter,t)}function $f(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return Uf(r(),t())}:t,e.justLimit=n&&!r}function Wf(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(!n)throw new mh.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function zf(e,t,n){var r=Wf(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function Jf(e,t,n,r){var a=e.replayFilter?Uf(e.filter,e.replayFilter()):e.filter;if(e.or){var i={},s=function(e,n,r){if(!a||a(n,r,(function(e){return n.stop(e)}),(function(e){return n.fail(e)}))){var s=n.primaryKey,o=""+s;"[object ArrayBuffer]"===o&&(o=""+new Uint8Array(s)),kd(i,o)||(i[o]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(s,n),Xf(zf(e,r,n),e.algorithm,s,!e.keysOnly&&e.valueMapper)])}return Xf(zf(e,r,n),Uf(e.algorithm,a),t,!e.keysOnly&&e.valueMapper)}function Xf(e,t,n,r){var a=uf(r?function(e,t,a){return n(r(e),t,a)}:n);return e.then((function(e){if(e)return e.start((function(){var n=function(){return e.continue()};t&&!t(e,(function(e){return n=e}),(function(t){e.stop(t),n=gh}),(function(t){e.fail(t),n=gh}))||a(e.value,e,(function(e){return n=e})),n()}))}))}function Qf(e,t){try{var n=Yf(e),r=Yf(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){for(var n=e.length,r=t.length,a=n<r?n:r,i=0;i<a;++i)if(e[i]!==t[i])return e[i]<t[i]?-1:1;return n===r?0:n<r?-1:1}(Zf(e),Zf(t));case"Array":return function(e,t){for(var n=e.length,r=t.length,a=n<r?n:r,i=0;i<a;++i){var s=Qf(e[i],t[i]);if(0!==s)return s}return n===r?0:n<r?-1:1}(e,t)}}catch(e){}return NaN}function Yf(e){var t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";var n=zd(e);return"ArrayBuffer"===n?"binary":n}function Zf(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var em=function(){function e(){}return e.prototype._read=function(e,t){var n=this._ctx;return n.error?n.table._trans(null,Of.bind(null,n.error)):n.table._trans("readonly",e).then(t)},e.prototype._write=function(e){var t=this._ctx;return t.error?t.table._trans(null,Of.bind(null,t.error)):t.table._trans("readwrite",e,"locked")},e.prototype._addAlgorithm=function(e){var t=this._ctx;t.algorithm=Uf(t.algorithm,e)},e.prototype._iterate=function(e,t){return Jf(this._ctx,e,t,this._ctx.table.core)},e.prototype.clone=function(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&Pd(n,e),t._ctx=n,t},e.prototype.raw=function(){return this._ctx.valueMapper=null,this},e.prototype.each=function(e){var t=this._ctx;return this._read((function(n){return Jf(t,e,n,t.table.core)}))},e.prototype.count=function(e){var t=this;return this._read((function(e){var n=t._ctx,r=n.table.core;if(qf(n,!0))return r.count({trans:e,query:{index:Wf(n,r.schema),range:n.range}}).then((function(e){return Math.min(e,n.limit)}));var a=0;return Jf(n,(function(){return++a,!1}),e,r).then((function(){return a}))})).then(e)},e.prototype.sortBy=function(e,t){var n=e.split(".").reverse(),r=n[0],a=n.length-1;function i(e,t){return t?i(e[n[t]],t-1):e[r]}var s="next"===this._ctx.dir?1:-1;function o(e,t){var n=i(e,a),r=i(t,a);return n<r?-s:n>r?s:0}return this.toArray((function(e){return e.sort(o)})).then(t)},e.prototype.toArray=function(e){var t=this;return this._read((function(e){var n=t._ctx;if("next"===n.dir&&qf(n,!0)&&n.limit>0){var r=n.valueMapper,a=Wf(n,n.table.core.schema);return n.table.core.query({trans:e,limit:n.limit,values:!0,query:{index:a,range:n.range}}).then((function(e){var t=e.result;return r?t.map(r):t}))}var i=[];return Jf(n,(function(e){return i.push(e)}),e,n.table.core).then((function(){return i}))}),e)},e.prototype.offset=function(e){var t=this._ctx;return e<=0||(t.offset+=e,qf(t)?$f(t,(function(){var t=e;return function(e,n){return 0===t||(1===t?(--t,!1):(n((function(){e.advance(t),t=0})),!1))}})):$f(t,(function(){var t=e;return function(){return--t<0}}))),this},e.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),$f(this._ctx,(function(){var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this},e.prototype.until=function(e,t){return Vf(this._ctx,(function(n,r,a){return!e(n.value)||(r(a),t)})),this},e.prototype.first=function(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)},e.prototype.last=function(e){return this.reverse().first(e)},e.prototype.filter=function(e){var t,n;return Vf(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=Uf(t.isMatch,n),this},e.prototype.and=function(e){return this.filter(e)},e.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},e.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},e.prototype.desc=function(){return this.reverse()},e.prototype.eachKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))},e.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},e.prototype.eachPrimaryKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))},e.prototype.keys=function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)},e.prototype.primaryKeys=function(e){var t=this._ctx;if("next"===t.dir&&qf(t,!0)&&t.limit>0)return this._read((function(e){var n=Wf(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((function(e){return e.result})).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)},e.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},e.prototype.firstKey=function(e){return this.limit(1).keys((function(e){return e[0]})).then(e)},e.prototype.lastKey=function(e){return this.reverse().firstKey(e)},e.prototype.distinct=function(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return Vf(this._ctx,(function(e){var t=e.primaryKey.toString(),r=kd(n,t);return n[t]=!0,!r})),this},e.prototype.modify=function(e){var t=this,n=this._ctx;return this._write((function(r){var a;if("function"==typeof e)a=e;else{var i=_d(e),s=i.length;a=function(t){for(var n=!1,r=0;r<s;++r){var a=i[r],o=e[a];Ud(t,a)!==o&&(Ld(t,a,o),n=!0)}return n}}var o=n.table.core,l=o.schema.primaryKey,c=l.outbound,u=l.extractKey,p=t.db._options.modifyChunkSize||200,d=[],h=0,f=[],m=function(e,t){var n=t.failures,r=t.numFailures;h+=e-r;for(var a=0,i=_d(n);a<i.length;a++){var s=i[a];d.push(n[s])}};return t.clone().primaryKeys().then((function(t){var i=function(s){var l=Math.min(p,t.length-s);return o.getMany({trans:r,keys:t.slice(s,s+l),cache:"immutable"}).then((function(d){for(var h=[],f=[],S=c?[]:null,y=[],g=0;g<l;++g){var v=d[g],_={value:$d(v),primKey:t[s+g]};!1!==a.call(_,_.value,_)&&(null==_.value?y.push(t[s+g]):c||0===Qf(u(v),u(_.value))?(f.push(_.value),c&&S.push(t[s+g])):(y.push(t[s+g]),h.push(_.value)))}var b=qf(n)&&n.limit===1/0&&("function"!=typeof e||e===tm)&&{index:n.index,range:n.range};return Promise.resolve(h.length>0&&o.mutate({trans:r,type:"add",values:h}).then((function(e){for(var t in e.failures)y.splice(parseInt(t),1);m(h.length,e)}))).then((function(){return(f.length>0||b&&"object"==typeof e)&&o.mutate({trans:r,type:"put",keys:S,values:f,criteria:b,changeSpec:"function"!=typeof e&&e}).then((function(e){return m(f.length,e)}))})).then((function(){return(y.length>0||b&&e===tm)&&o.mutate({trans:r,type:"delete",keys:y,criteria:b}).then((function(e){return m(y.length,e)}))})).then((function(){return t.length>s+l&&i(s+p)}))}))};return i(0).then((function(){if(d.length>0)throw new ph("Error modifying one or more objects",d,h,f);return t.length}))}))}))},e.prototype.delete=function(){var e=this._ctx,t=e.range;return qf(e)&&(e.isPrimKey&&!Ff||3===t.type)?this._write((function(n){var r=e.table.core.schema.primaryKey,a=t;return e.table.core.count({trans:n,query:{index:r,range:a}}).then((function(t){return e.table.core.mutate({trans:n,type:"deleteRange",range:a}).then((function(e){var n=e.failures;e.lastResult,e.results;var r=e.numFailures;if(r)throw new ph("Could not delete some values",Object.keys(n).map((function(e){return n[e]})),t-r);return t-r}))}))})):this.modify(tm)},e}(),tm=function(e,t){return t.value=null};function nm(e,t){return e<t?-1:e===t?0:1}function rm(e,t){return e>t?-1:e===t?0:1}function am(e,t,n){var r=e instanceof um?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function im(e){return new e.Collection(e,(function(){return cm("")})).limit(0)}function sm(e,t,n,r,a,i){for(var s=Math.min(e.length,r.length),o=-1,l=0;l<s;++l){var c=t[l];if(c!==r[l])return a(e[l],n[l])<0?e.substr(0,l)+n[l]+n.substr(l+1):a(e[l],r[l])<0?e.substr(0,l)+r[l]+n.substr(l+1):o>=0?e.substr(0,o)+t[o]+n.substr(o+1):null;a(e[l],c)<0&&(o=l)}return s<r.length&&"next"===i?e+n.substr(e.length):s<e.length&&"prev"===i?e.substr(0,n.length):o<0?null:e.substr(0,o)+r[o]+n.substr(o+1)}function om(e,t,n,r){var a,i,s,o,l,c,u,p=n.length;if(!n.every((function(e){return"string"==typeof e})))return am(e,"String expected.");function d(e){a=function(e){return"next"===e?function(e){return e.toUpperCase()}:function(e){return e.toLowerCase()}}(e),i=function(e){return"next"===e?function(e){return e.toLowerCase()}:function(e){return e.toUpperCase()}}(e),s="next"===e?nm:rm;var t=n.map((function(e){return{lower:i(e),upper:a(e)}})).sort((function(e,t){return s(e.lower,t.lower)}));o=t.map((function(e){return e.upper})),l=t.map((function(e){return e.lower})),c=e,u="next"===e?"":r}d("next");var h=new e.Collection(e,(function(){return lm(o[0],l[p-1]+r)}));h._ondirectionchange=function(e){d(e)};var f=0;return h._addAlgorithm((function(e,n,r){var a=e.key;if("string"!=typeof a)return!1;var d=i(a);if(t(d,l,f))return!0;for(var h=null,m=f;m<p;++m){var S=sm(a,d,o[m],l[m],s,c);null===S&&null===h?f=m+1:(null===h||s(h,S)>0)&&(h=S)}return n(null!==h?function(){e.continue(h+u)}:r),!1})),h}function lm(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function cm(e){return{type:1,lower:e,upper:e}}var um=function(){function e(){}return Object.defineProperty(e.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),e.prototype.between=function(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?im(this):new this.Collection(this,(function(){return lm(e,t,!n,!r)}))}catch(e){return am(this,Nf)}},e.prototype.equals=function(e){return null==e?am(this,Nf):new this.Collection(this,(function(){return cm(e)}))},e.prototype.above=function(e){return null==e?am(this,Nf):new this.Collection(this,(function(){return lm(e,void 0,!0)}))},e.prototype.aboveOrEqual=function(e){return null==e?am(this,Nf):new this.Collection(this,(function(){return lm(e,void 0,!1)}))},e.prototype.below=function(e){return null==e?am(this,Nf):new this.Collection(this,(function(){return lm(void 0,e,!1,!0)}))},e.prototype.belowOrEqual=function(e){return null==e?am(this,Nf):new this.Collection(this,(function(){return lm(void 0,e)}))},e.prototype.startsWith=function(e){return"string"!=typeof e?am(this,"String expected."):this.between(e,e+xf,!0,!0)},e.prototype.startsWithIgnoreCase=function(e){return""===e?this.startsWith(e):om(this,(function(e,t){return 0===e.indexOf(t[0])}),[e],xf)},e.prototype.equalsIgnoreCase=function(e){return om(this,(function(e,t){return e===t[0]}),[e],"")},e.prototype.anyOfIgnoreCase=function(){var e=Yd.apply(Qd,arguments);return 0===e.length?im(this):om(this,(function(e,t){return-1!==t.indexOf(e)}),e,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var e=Yd.apply(Qd,arguments);return 0===e.length?im(this):om(this,(function(e,t){return t.some((function(t){return 0===e.indexOf(t)}))}),e,xf)},e.prototype.anyOf=function(){var e=this,t=Yd.apply(Qd,arguments),n=this._cmp;try{t.sort(n)}catch(e){return am(this,Nf)}if(0===t.length)return im(this);var r=new this.Collection(this,(function(){return lm(t[0],t[t.length-1])}));r._ondirectionchange=function(r){n="next"===r?e._ascending:e._descending,t.sort(n)};var a=0;return r._addAlgorithm((function(e,r,i){for(var s=e.key;n(s,t[a])>0;)if(++a===t.length)return r(i),!1;return 0===n(s,t[a])||(r((function(){e.continue(t[a])})),!1)})),r},e.prototype.notEqual=function(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var e=Yd.apply(Qd,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return am(this,Nf)}var t=e.reduce((function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]}),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},e.prototype.inAnyRange=function(e,t){var n=this,r=this._cmp,a=this._ascending,i=this._descending,s=this._min,o=this._max;if(0===e.length)return im(this);if(!e.every((function(e){return void 0!==e[0]&&void 0!==e[1]&&a(e[0],e[1])<=0})))return am(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",mh.InvalidArgument);var l=!t||!1!==t.includeLowers,c=t&&!0===t.includeUppers;var u,p=a;function d(e,t){return p(e[0],t[0])}try{(u=e.reduce((function(e,t){for(var n=0,a=e.length;n<a;++n){var i=e[n];if(r(t[0],i[1])<0&&r(t[1],i[0])>0){i[0]=s(i[0],t[0]),i[1]=o(i[1],t[1]);break}}return n===a&&e.push(t),e}),[])).sort(d)}catch(e){return am(this,Nf)}var h=0,f=c?function(e){return a(e,u[h][1])>0}:function(e){return a(e,u[h][1])>=0},m=l?function(e){return i(e,u[h][0])>0}:function(e){return i(e,u[h][0])>=0};var S=f,y=new this.Collection(this,(function(){return lm(u[0][0],u[u.length-1][1],!l,!c)}));return y._ondirectionchange=function(e){"next"===e?(S=f,p=a):(S=m,p=i),u.sort(d)},y._addAlgorithm((function(e,t,r){for(var i=e.key;S(i);)if(++h===u.length)return t(r),!1;return!!function(e){return!f(e)&&!m(e)}(i)||(0===n._cmp(i,u[h][1])||0===n._cmp(i,u[h][0])||t((function(){p===a?e.continue(u[h][0]):e.continue(u[h][1])})),!1)})),y},e.prototype.startsWithAnyOf=function(){var e=Yd.apply(Qd,arguments);return e.every((function(e){return"string"==typeof e}))?0===e.length?im(this):this.inAnyRange(e.map((function(e){return[e,e+xf]}))):am(this,"startsWithAnyOf() only works with strings")},e}();function pm(e){return uf((function(t){return dm(t),e(t.target.error),!1}))}function dm(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var hm=Bf(null,"storagemutated"),fm=function(){function e(){}return e.prototype._lock=function(){return Hd(!Vh.global),++this._reculock,1!==this._reculock||Vh.global||(Vh.lockOwnerFor=this),this},e.prototype._unlock=function(){if(Hd(!Vh.global),0==--this._reculock)for(Vh.global||(Vh.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{kf(e[1],e[0])}catch(e){}}return this},e.prototype._locked=function(){return this._reculock&&Vh.lockOwnerFor!==this},e.prototype.create=function(e){var t=this;if(!this.mode)return this;var n=this.db.idbdb,r=this.db._state.dbOpenError;if(Hd(!this.idbtrans),!e&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new mh.DatabaseClosed(r);case"MissingAPIError":throw new mh.MissingAPI(r.message,r);default:throw new mh.OpenFailed(r)}if(!this.active)throw new mh.TransactionInactive;return Hd(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):n.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=uf((function(n){dm(n),t._reject(e.error)})),e.onabort=uf((function(n){dm(n),t.active&&t._reject(new mh.Abort(e.error)),t.active=!1,t.on("abort").fire(n)})),e.oncomplete=uf((function(){t.active=!1,t._resolve(),"mutatedParts"in e&&hm.storagemutated.fire(e.mutatedParts)})),this},e.prototype._promise=function(e,t,n){var r=this;if("readwrite"===e&&"readwrite"!==this.mode)return Of(new mh.ReadOnly("Transaction is readonly"));if(!this.active)return Of(new mh.TransactionInactive);if(this._locked())return new Jh((function(a,i){r._blockedFuncs.push([function(){r._promise(e,t,n).then(a,i)},Vh])}));if(n)return yf((function(){var e=new Jh((function(e,n){r._lock();var a=t(e,n,r);a&&a.then&&a.then(e,n)}));return e.finally((function(){return r._unlock()})),e._lib=!0,e}));var a=new Jh((function(e,n){var a=t(e,n,r);a&&a.then&&a.then(e,n)}));return a._lib=!0,a},e.prototype._root=function(){return this.parent?this.parent._root():this},e.prototype.waitFor=function(e){var t=this._root(),n=Jh.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((function(){return n}));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var a=t._waitingFor;return new Jh((function(e,r){n.then((function(n){return t._waitingQueue.push(uf(e.bind(null,n)))}),(function(e){return t._waitingQueue.push(uf(r.bind(null,e)))})).finally((function(){t._waitingFor===a&&(t._waitingFor=null)}))}))},e.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new mh.Abort))},e.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(kd(t,e))return t[e];var n=this.schema[e];if(!n)throw new mh.NotFound("Table "+e+" not part of transaction");var r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r},e}();function mm(e,t,n,r,a,i,s){return{name:e,keyPath:t,unique:n,multi:r,auto:a,compound:i,src:(n&&!s?"&":"")+(r?"*":"")+(a?"++":"")+Sm(t)}}function Sm(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function ym(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:Gd(n,(function(e){return[e.name,e]}))}}var gm=function(e){try{return e.only([[]]),gm=function(){return[[]]},[[]]}catch(e){return gm=function(){return xf},xf}};function vm(e){return null==e?function(){}:"string"==typeof e?function(e){return 1===e.split(".").length?function(t){return t[e]}:function(t){return Ud(t,e)}}(e):function(t){return Ud(t,e)}}function _m(e){return[].slice.call(e)}var bm=0;function Pm(e){return null==e?":id":"string"==typeof e?e:"["+e.join("+")+"]"}function wm(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");var n=e.lower,r=e.upper,a=e.lowerOpen,i=e.upperOpen;return void 0===n?void 0===r?null:t.upperBound(r,!!i):void 0===r?t.lowerBound(n,!!a):t.bound(n,r,!!a,!!i)}var a=function(e,t){var n=_m(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((function(e){return t.objectStore(e)})).map((function(e){var t=e.keyPath,n=e.autoIncrement,r=bd(t),a=null==t,i={},s={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:a,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:vm(t)},indexes:_m(e.indexNames).map((function(t){return e.index(t)})).map((function(e){var t=e.name,n=e.unique,r=e.multiEntry,a=e.keyPath,s={name:t,compound:bd(a),keyPath:a,unique:n,multiEntry:r,extractKey:vm(a)};return i[Pm(a)]=s,s})),getIndexByKeyPath:function(e){return i[Pm(e)]}};return i[":id"]=s.primaryKey,null!=t&&(i[Pm(t)]=s.primaryKey),s}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),i=a.schema,s=a.hasGetAll,o=i.tables.map((function(e){return function(e){var t=e.name;return{name:t,schema:e,mutate:function(e){var n=e.trans,a=e.type,i=e.keys,s=e.values,o=e.range;return new Promise((function(e,l){e=uf(e);var c=n.objectStore(t),u=null==c.keyPath,p="put"===a||"add"===a;if(!p&&"delete"!==a&&"deleteRange"!==a)throw new Error("Invalid operation type: "+a);var d,h=(i||s||{length:1}).length;if(i&&s&&i.length!==s.length)throw new Error("Given keys array must have same length as given values array.");if(0===h)return e({numFailures:0,failures:{},results:[],lastResult:void 0});var f=[],m=[],S=0,y=function(e){++S,dm(e)};if("deleteRange"===a){if(4===o.type)return e({numFailures:S,failures:m,results:[],lastResult:void 0});3===o.type?f.push(d=c.clear()):f.push(d=c.delete(r(o)))}else{var g=p?u?[s,i]:[s,null]:[i,null],v=g[0],_=g[1];if(p)for(var b=0;b<h;++b)f.push(d=_&&void 0!==_[b]?c[a](v[b],_[b]):c[a](v[b])),d.onerror=y;else for(b=0;b<h;++b)f.push(d=c[a](v[b])),d.onerror=y}var P=function(t){var n=t.target.result;f.forEach((function(e,t){return null!=e.error&&(m[t]=e.error)})),e({numFailures:S,failures:m,results:"delete"===a?i:f.map((function(e){return e.result})),lastResult:n})};d.onerror=function(e){y(e),P(e)},d.onsuccess=P}))},getMany:function(e){var n=e.trans,r=e.keys;return new Promise((function(e,a){e=uf(e);for(var i,s=n.objectStore(t),o=r.length,l=new Array(o),c=0,u=0,p=function(t){var n=t.target;l[n._pos]=n.result,++u===c&&e(l)},d=pm(a),h=0;h<o;++h){null!=r[h]&&((i=s.get(r[h]))._pos=h,i.onsuccess=p,i.onerror=d,++c)}0===c&&e(l)}))},get:function(e){var n=e.trans,r=e.key;return new Promise((function(e,a){e=uf(e);var i=n.objectStore(t).get(r);i.onsuccess=function(t){return e(t.target.result)},i.onerror=pm(a)}))},query:function(e){return function(n){return new Promise((function(a,i){a=uf(a);var s=n.trans,o=n.values,l=n.limit,c=n.query,u=l===1/0?void 0:l,p=c.index,d=c.range,h=s.objectStore(t),f=p.isPrimaryKey?h:h.index(p.name),m=r(d);if(0===l)return a({result:[]});if(e){var S=o?f.getAll(m,u):f.getAllKeys(m,u);S.onsuccess=function(e){return a({result:e.target.result})},S.onerror=pm(i)}else{var y=0,g=o||!("openKeyCursor"in f)?f.openCursor(m):f.openKeyCursor(m),v=[];g.onsuccess=function(e){var t=g.result;return t?(v.push(o?t.value:t.primaryKey),++y===l?a({result:v}):void t.continue()):a({result:v})},g.onerror=pm(i)}}))}}(s),openCursor:function(e){var n=e.trans,a=e.values,i=e.query,s=e.reverse,o=e.unique;return new Promise((function(e,l){e=uf(e);var c=i.index,u=i.range,p=n.objectStore(t),d=c.isPrimaryKey?p:p.index(c.name),h=s?o?"prevunique":"prev":o?"nextunique":"next",f=a||!("openKeyCursor"in d)?d.openCursor(r(u),h):d.openKeyCursor(r(u),h);f.onerror=pm(l),f.onsuccess=uf((function(t){var r=f.result;if(r){r.___id=++bm,r.done=!1;var a=r.continue.bind(r),i=r.continuePrimaryKey;i&&(i=i.bind(r));var s=r.advance.bind(r),o=function(){throw new Error("Cursor not stopped")};r.trans=n,r.stop=r.continue=r.continuePrimaryKey=r.advance=function(){throw new Error("Cursor not started")},r.fail=uf(l),r.next=function(){var e=this,t=1;return this.start((function(){return t--?e.continue():e.stop()})).then((function(){return e}))},r.start=function(e){var t=new Promise((function(e,t){e=uf(e),f.onerror=pm(t),r.fail=t,r.stop=function(t){r.stop=r.continue=r.continuePrimaryKey=r.advance=o,e(t)}})),n=function(){if(f.result)try{e()}catch(e){r.fail(e)}else r.done=!0,r.start=function(){throw new Error("Cursor behind last entry")},r.stop()};return f.onsuccess=uf((function(e){f.onsuccess=n,n()})),r.continue=a,r.continuePrimaryKey=i,r.advance=s,n(),t},e(r)}else e(null)}),l)}))},count:function(e){var n=e.query,a=e.trans,i=n.index,s=n.range;return new Promise((function(e,n){var o=a.objectStore(t),l=i.isPrimaryKey?o:o.index(i.name),c=r(s),u=c?l.count(c):l.count();u.onsuccess=uf((function(t){return e(t.target.result)})),u.onerror=pm(n)}))}}}(e)})),l={};return o.forEach((function(e){return l[e.name]=e})),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(e){if(!l[e])throw new Error("Table '"+e+"' not found");return l[e]},MIN_KEY:-1/0,MAX_KEY:gm(t),schema:i}}function Em(e,t,n,r){var a=n.IDBKeyRange;return n.indexedDB,{dbcore:function(e,t){return t.reduce((function(e,t){var n=t.create;return yd(yd({},e),n(e))}),e)}(wm(t,a,r),e.dbcore)}}function km(e,t){var n=e._novip,r=t.db,a=Em(n._middlewares,r,n._deps,t);n.core=a.dbcore,n.tables.forEach((function(e){var t=e.name;n.core.schema.tables.some((function(e){return e.name===t}))&&(e.core=n.core.table(t),n[t]instanceof n.Table&&(n[t].core=e.core))}))}function Tm(e,t,n,r){var a=e._novip;n.forEach((function(e){var n=r[e];t.forEach((function(t){var r=xd(t,e);(!r||"value"in r&&void 0===r.value)&&(t===a.Transaction.prototype||t instanceof a.Transaction?Id(t,e,{get:function(){return this.table(e)},set:function(t){Cd(this,e,{value:t,writable:!0,configurable:!0,enumerable:!0})}}):t[e]=new a.Table(e,n))}))}))}function Cm(e,t){var n=e._novip;t.forEach((function(e){for(var t in e)e[t]instanceof n.Table&&delete e[t]}))}function Im(e,t){return e._cfg.version-t._cfg.version}function Am(e,t,n,r){var a=e._dbSchema,i=e._createTransaction("readwrite",e._storeNames,a);i.create(n),i._completion.catch(r);var s=i._reject.bind(i),o=Vh.transless||Vh;yf((function(){Vh.trans=i,Vh.transless=o,0===t?(_d(a).forEach((function(e){xm(n,e,a[e].primKey,a[e].indexes)})),km(e,n),Jh.follow((function(){return e.on.populate.fire(i)})).catch(s)):function(e,t,n,r){var a=e._novip,i=[],s=a._versions,o=a._dbSchema=Rm(a,a.idbdb,r),l=!1;function c(){return i.length?Jh.resolve(i.shift()(n.idbtrans)).then(c):Jh.resolve()}return s.filter((function(e){return e._cfg.version>=t})).forEach((function(e){i.push((function(){var i=o,s=e._cfg.dbschema;Dm(a,i,r),Dm(a,s,r),o=a._dbSchema=s;var c=Om(i,s);c.add.forEach((function(e){xm(r,e[0],e[1].primKey,e[1].indexes)})),c.change.forEach((function(e){if(e.recreate)throw new mh.Upgrade("Not yet support for changing primary key");var t=r.objectStore(e.name);e.add.forEach((function(e){return Nm(t,e)})),e.change.forEach((function(e){t.deleteIndex(e.name),Nm(t,e)})),e.del.forEach((function(e){return t.deleteIndex(e)}))}));var u=e._cfg.contentUpgrade;if(u&&e._cfg.version>t){km(a,r),n._memoizedTables={},l=!0;var p=jd(s);c.del.forEach((function(e){p[e]=i[e]})),Cm(a,[a.Transaction.prototype]),Tm(a,[a.Transaction.prototype],_d(p),p),n.schema=p;var d,h=Zd(u);h&&gf();var f=Jh.follow((function(){if((d=u(n))&&h){var e=vf.bind(null,null);d.then(e,e)}}));return d&&"function"==typeof d.then?Jh.resolve(d):f.then((function(){return d}))}})),i.push((function(t){l&&Hf||function(e,t){[].slice.call(t.db.objectStoreNames).forEach((function(n){return null==e[n]&&t.db.deleteObjectStore(n)}))}(e._cfg.dbschema,t);Cm(a,[a.Transaction.prototype]),Tm(a,[a.Transaction.prototype],a._storeNames,a._dbSchema),n.schema=a._dbSchema}))})),c().then((function(){var e,t;t=r,_d(e=o).forEach((function(n){t.db.objectStoreNames.contains(n)||xm(t,n,e[n].primKey,e[n].indexes)}))}))}(e,t,i,n).catch(s)}))}function Om(e,t){var n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){var a=e[n],i=t[n];if(a){var s={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(a.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||a.primKey.auto!==i.primKey.auto&&!Df)s.recreate=!0,r.change.push(s);else{var o=a.idxByName,l=i.idxByName,c=void 0;for(c in o)l[c]||s.del.push(c);for(c in l){var u=o[c],p=l[c];u?u.src!==p.src&&s.change.push(p):s.add.push(p)}(s.del.length>0||s.add.length>0||s.change.length>0)&&r.change.push(s)}}else r.add.push([n,i])}return r}function xm(e,t,n,r){var a=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((function(e){return Nm(a,e)})),a}function Nm(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function Rm(e,t,n){var r={};return Rd(t.objectStoreNames,0).forEach((function(e){for(var t=n.objectStore(e),a=t.keyPath,i=mm(Sm(a),a||"",!1,!1,!!t.autoIncrement,a&&"string"!=typeof a,!0),s=[],o=0;o<t.indexNames.length;++o){var l=t.index(t.indexNames[o]);a=l.keyPath;var c=mm(l.name,a,!!l.unique,!!l.multiEntry,!1,a&&"string"!=typeof a,!1);s.push(c)}r[e]=ym(e,i,s)})),r}function Dm(e,t,n){for(var r=e._novip,a=n.db.objectStoreNames,i=0;i<a.length;++i){var s=a[i],o=n.objectStore(s);r._hasGetAll="getAll"in o;for(var l=0;l<o.indexNames.length;++l){var c=o.indexNames[l],u=o.index(c).keyPath,p="string"==typeof u?u:"["+Rd(u).join("+")+"]";if(t[s]){var d=t[s].idxByName[p];d&&(d.name=c,delete t[s].idxByName[p],t[s].idxByName[c]=d)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&vd.WorkerGlobalScope&&vd instanceof vd.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(r._hasGetAll=!1)}var Hm=function(){function e(){}return e.prototype._parseStoresSpec=function(e,t){_d(e).forEach((function(n){if(null!==e[n]){var r=e[n].split(",").map((function(e,t){var n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return mm(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),bd(r),0===t)})),a=r.shift();if(a.multi)throw new mh.Schema("Primary key cannot be multi-valued");r.forEach((function(e){if(e.auto)throw new mh.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new mh.Schema("Index must have a name and cannot be an empty string")})),t[n]=ym(n,a,r)}}))},e.prototype.stores=function(e){var t=this.db;this._cfg.storesSource=this._cfg.storesSource?Pd(this._cfg.storesSource,e):e;var n=t._versions,r={},a={};return n.forEach((function(e){Pd(r,e._cfg.storesSource),a=e._cfg.dbschema={},e._parseStoresSpec(r,a)})),t._dbSchema=a,Cm(t,[t._allTables,t,t.Transaction.prototype]),Tm(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],_d(a),a),t._storeNames=_d(a),this},e.prototype.upgrade=function(e){return this._cfg.contentUpgrade=Th(this._cfg.contentUpgrade||gh,e),this},e}();function Fm(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new oS("__dbnames",{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function Gm(e){return e&&"function"==typeof e.databases}function Um(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Gm(n)&&"__dbnames"!==t&&Fm(n,r).delete(t).catch(gh)}function Lm(e){return yf((function(){return Vh.letThrough=!0,e()}))}function jm(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var n=function(){return indexedDB.databases().finally(t)};e=setInterval(n,100),n()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function Mm(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((function(){return t.dbOpenError?Of(t.dbOpenError):e}));eh&&(t.openCanceller._stackHolder=ah()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller;function a(){if(t.openCanceller!==r)throw new mh.DatabaseClosed("db.open() was cancelled")}var i=t.dbReadyResolve,s=null,o=!1;return Jh.race([r,("undefined"==typeof navigator?Jh.resolve():jm()).then((function(){return new Jh((function(r,i){if(a(),!n)throw new mh.MissingAPI;var l=e.name,c=t.autoSchema?n.open(l):n.open(l,Math.round(10*e.verno));if(!c)throw new mh.MissingAPI;c.onerror=pm(i),c.onblocked=uf(e._fireOnBlocked),c.onupgradeneeded=uf((function(r){if(s=c.transaction,t.autoSchema&&!e._options.allowEmptyDB){c.onerror=dm,s.abort(),c.result.close();var a=n.deleteDatabase(l);a.onsuccess=a.onerror=uf((function(){i(new mh.NoSuchDatabase("Database "+l+" doesnt exist"))}))}else{s.onerror=pm(i);var u=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;o=u<1,e._novip.idbdb=c.result,Am(e,u/10,s,i)}}),i),c.onsuccess=uf((function(){s=null;var n,a=e._novip.idbdb=c.result,i=Rd(a.objectStoreNames);if(i.length>0)try{var u=a.transaction(1===(n=i).length?n[0]:n,"readonly");t.autoSchema?function(e,t,n){var r=e._novip;r.verno=t.version/10;var a=r._dbSchema=Rm(0,t,n);r._storeNames=Rd(t.objectStoreNames,0),Tm(r,[r._allTables],_d(a),a)}(e,a,u):(Dm(e,e._dbSchema,u),function(e,t){var n=Om(Rm(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((function(e){return e.add.length||e.change.length})))}(e,u)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),km(e,u)}catch(e){}Rf.push(e),a.onversionchange=uf((function(n){t.vcFired=!0,e.on("versionchange").fire(n)})),a.onclose=uf((function(t){e.on("close").fire(t)})),o&&function(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Gm(n)&&"__dbnames"!==t&&Fm(n,r).put({name:t}).catch(gh)}(e._deps,l),r()}),i)}))}))]).then((function(){return a(),t.onReadyBeingFired=[],Jh.resolve(Lm((function(){return e.on.ready.fire(e.vip)}))).then((function n(){if(t.onReadyBeingFired.length>0){var r=t.onReadyBeingFired.reduce(Th,gh);return t.onReadyBeingFired=[],Jh.resolve(Lm((function(){return r(e.vip)}))).then(n)}}))})).finally((function(){t.onReadyBeingFired=null,t.isBeingOpened=!1})).then((function(){return e})).catch((function(n){t.dbOpenError=n;try{s&&s.abort()}catch(e){}return r===t.openCanceller&&e._close(),Of(n)})).finally((function(){t.openComplete=!0,i()}))}function Bm(e){var t=function(t){return e.next(t)},n=a(t),r=a((function(t){return e.throw(t)}));function a(e){return function(t){var a=e(t),i=a.value;return a.done?i:i&&"function"==typeof i.then?i.then(n,r):bd(i)?Promise.all(i).then(n,r):n(i)}}return a(t)()}function Km(e,t,n){var r=arguments.length;if(r<2)throw new mh.InvalidArgument("Too few arguments");for(var a=new Array(r-1);--r;)a[r-1]=arguments[r];n=a.pop();var i=Bd(a);return[e,i,n]}function qm(e,t,n,r,a){return Jh.resolve().then((function(){var i=Vh.transless||Vh,s=e._createTransaction(t,n,e._dbSchema,r),o={trans:s,transless:i};if(r)s.idbtrans=r.idbtrans;else try{s.create(),e._state.PR1398_maxLoop=3}catch(r){return r.name===hh.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((function(){return qm(e,t,n,null,a)}))):Of(r)}var l,c=Zd(a);c&&gf();var u=Jh.follow((function(){if(l=a.call(s,s))if(c){var e=vf.bind(null,null);l.then(e,e)}else"function"==typeof l.next&&"function"==typeof l.throw&&(l=Bm(l))}),o);return(l&&"function"==typeof l.then?Jh.resolve(l).then((function(e){return s.active?e:Of(new mh.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):u.then((function(){return l}))).then((function(e){return r&&s._resolve(),s._completion.then((function(){return e}))})).catch((function(e){return s._reject(e),Of(e)}))}))}function Vm(e,t,n){for(var r=bd(e)?e.slice():[e],a=0;a<n;++a)r.push(t);return r}var $m={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return yd(yd({},e),{table:function(t){var n=e.table(t),r=n.schema,a={},i=[];function s(e,t,n){var r=Pm(e),o=a[r]=a[r]||[],l=null==e?0:"string"==typeof e?1:e.length,c=t>0,u=yd(yd({},n),{isVirtual:c,keyTail:t,keyLength:l,extractKey:vm(e),unique:!c&&n.unique});(o.push(u),u.isPrimaryKey||i.push(u),l>1)&&s(2===l?e[0]:e.slice(0,l-1),t+1,n);return o.sort((function(e,t){return e.keyTail-t.keyTail})),u}var o=s(r.primaryKey.keyPath,0,r.primaryKey);a[":id"]=[o];for(var l=0,c=r.indexes;l<c.length;l++){var u=c[l];s(u.keyPath,0,u)}function p(t,n){return{type:1===t.type?2:t.type,lower:Vm(t.lower,t.lowerOpen?e.MAX_KEY:e.MIN_KEY,n),lowerOpen:!0,upper:Vm(t.upper,t.upperOpen?e.MIN_KEY:e.MAX_KEY,n),upperOpen:!0}}function d(e){var t=e.query.index;return t.isVirtual?yd(yd({},e),{query:{index:t,range:p(e.query.range,t.keyTail)}}):e}return yd(yd({},n),{schema:yd(yd({},r),{primaryKey:o,indexes:i,getIndexByKeyPath:function(e){var t=a[Pm(e)];return t&&t[0]}}),count:function(e){return n.count(d(e))},query:function(e){return n.query(d(e))},openCursor:function(t){var r=t.query.index,a=r.keyTail,i=r.isVirtual,s=r.keyLength;if(!i)return n.openCursor(t);return n.openCursor(d(t)).then((function(n){return n&&function(n){return Object.create(n,{continue:{value:function(r){null!=r?n.continue(Vm(r,t.reverse?e.MAX_KEY:e.MIN_KEY,a)):t.unique?n.continue(n.key.slice(0,s).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,a)):n.continue()}},continuePrimaryKey:{value:function(t,r){n.continuePrimaryKey(Vm(t,e.MAX_KEY,a),r)}},primaryKey:{get:function(){return n.primaryKey}},key:{get:function(){var e=n.key;return 1===s?e[0]:e.slice(0,s)}},value:{get:function(){return n.value}}})}(n)}))}})}})}};function Wm(e,t,n,r){return n=n||{},r=r||"",_d(e).forEach((function(a){if(kd(t,a)){var i=e[a],s=t[a];if("object"==typeof i&&"object"==typeof s&&i&&s){var o=zd(i);o!==zd(s)?n[r+a]=t[a]:"Object"===o?Wm(i,s,n,r+a+"."):i!==s&&(n[r+a]=t[a])}else i!==s&&(n[r+a]=t[a])}else n[r+a]=void 0})),_d(t).forEach((function(a){kd(e,a)||(n[r+a]=t[a])})),n}var zm={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return yd(yd({},e),{table:function(t){var n=e.table(t),r=n.schema.primaryKey;return yd(yd({},n),{mutate:function(e){var a=Vh.trans,i=a.table(t).hook,s=i.deleting,o=i.creating,l=i.updating;switch(e.type){case"add":if(o.fire===gh)break;return a._promise("readwrite",(function(){return c(e)}),!0);case"put":if(o.fire===gh&&l.fire===gh)break;return a._promise("readwrite",(function(){return c(e)}),!0);case"delete":if(s.fire===gh)break;return a._promise("readwrite",(function(){return c(e)}),!0);case"deleteRange":if(s.fire===gh)break;return a._promise("readwrite",(function(){return function(e){return function e(t,a,i){return n.query({trans:t,values:!1,query:{index:r,range:a},limit:i}).then((function(n){var r=n.result;return c({type:"delete",keys:r,trans:t}).then((function(n){return n.numFailures>0?Promise.reject(n.failures[0]):r.length<i?{failures:[],numFailures:0,lastResult:void 0}:e(t,yd(yd({},a),{lower:r[r.length-1],lowerOpen:!0}),i)}))}))}(e.trans,e.range,1e4)}(e)}),!0)}return n.mutate(e);function c(e){var t=Vh.trans,a=e.keys||function(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}(r,e);if(!a)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?yd(yd({},e),{keys:a}):yd({},e)).type&&(e.values=gd([],e.values,!0)),e.keys&&(e.keys=gd([],e.keys,!0)),function(e,t,n){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}(n,e,a).then((function(i){var c=a.map((function(n,a){var c=i[a],u={onerror:null,onsuccess:null};if("delete"===e.type)s.fire.call(u,n,c,t);else if("add"===e.type||void 0===c){var p=o.fire.call(u,n,e.values[a],t);null==n&&null!=p&&(n=p,e.keys[a]=n,r.outbound||Ld(e.values[a],r.keyPath,n))}else{var d=Wm(c,e.values[a]),h=l.fire.call(u,d,n,c,t);if(h){var f=e.values[a];Object.keys(h).forEach((function(e){kd(f,e)?f[e]=h[e]:Ld(f,e,h[e])}))}}return u}));return n.mutate(e).then((function(t){for(var n=t.failures,r=t.results,s=t.numFailures,o=t.lastResult,l=0;l<a.length;++l){var u=r?r[l]:a[l],p=c[l];null==u?p.onerror&&p.onerror(n[l]):p.onsuccess&&p.onsuccess("put"===e.type&&i[l]?e.values[l]:u)}return{failures:n,results:r,numFailures:s,lastResult:o}})).catch((function(e){return c.forEach((function(t){return t.onerror&&t.onerror(e)})),Promise.reject(e)}))}))}}})}})}};function Jm(e,t,n){try{if(!t)return null;if(t.keys.length<e.length)return null;for(var r=[],a=0,i=0;a<t.keys.length&&i<e.length;++a)0===Qf(t.keys[a],e[i])&&(r.push(n?$d(t.values[a]):t.values[a]),++i);return r.length===e.length?r:null}catch(e){return null}}var Xm,Qm={stack:"dbcore",level:-1,create:function(e){return{table:function(t){var n=e.table(t);return yd(yd({},n),{getMany:function(e){if(!e.cache)return n.getMany(e);var t=Jm(e.keys,e.trans._cache,"clone"===e.cache);return t?Jh.resolve(t):n.getMany(e).then((function(t){return e.trans._cache={keys:e.keys,values:"clone"===e.cache?$d(t):t},t}))},mutate:function(e){return"add"!==e.type&&(e.trans._cache=null),n.mutate(e)}})}}}};function Ym(e){return!("from"in e)}var Zm=function(e,t){if(!this){var n=new Zm;return e&&"d"in e&&Pd(n,e),n}Pd(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function eS(e,t,n){var r=Qf(t,n);if(!isNaN(r)){if(r>0)throw RangeError();if(Ym(e))return Pd(e,{from:t,to:n,d:1});var a=e.l,i=e.r;if(Qf(n,e.from)<0)return a?eS(a,t,n):e.l={from:t,to:n,d:1,l:null,r:null},rS(e);if(Qf(t,e.to)>0)return i?eS(i,t,n):e.r={from:t,to:n,d:1,l:null,r:null},rS(e);Qf(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),Qf(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);var s=!e.r;a&&!e.l&&tS(e,a),i&&s&&tS(e,i)}}function tS(e,t){Ym(t)||function e(t,n){var r=n.from,a=n.to,i=n.l,s=n.r;eS(t,r,a),i&&e(t,i),s&&e(t,s)}(e,t)}function nS(e){var t=Ym(e)?null:{s:0,n:e};return{next:function(e){for(var n=arguments.length>0;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&Qf(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||Qf(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function rS(e){var t,n,r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),a=r>1?"r":r<-1?"l":"";if(a){var i="r"===a?"l":"r",s=yd({},e),o=e[a];e.from=o.from,e.to=o.to,e[a]=o[a],s[a]=o[i],e[i]=s,s.d=aS(s)}e.d=aS(e)}function aS(e){var t=e.r,n=e.l;return(t?n?Math.max(t.d,n.d):t.d:n?n.d:0)+1}Td(Zm.prototype,((Xm={add:function(e){return tS(this,e),this},addKey:function(e){return eS(this,e,e),this},addKeys:function(e){var t=this;return e.forEach((function(e){return eS(t,e,e)})),this}})[Jd]=function(){return nS(this)},Xm));var iS={stack:"dbcore",level:0,create:function(e){var t=e.schema.name,n=new Zm(e.MIN_KEY,e.MAX_KEY);return yd(yd({},e),{table:function(r){var a=e.table(r),i=a.schema,s=i.primaryKey,o=s.extractKey,l=s.outbound,c=yd(yd({},a),{mutate:function(e){var s=e.trans,o=s.mutatedParts||(s.mutatedParts={}),l=function(e){var n="idb://"+t+"/"+r+"/"+e;return o[n]||(o[n]=new Zm)},c=l(""),u=l(":dels"),p=e.type,d="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[],h=d[0],f=d[1],m=e.trans._cache;return a.mutate(e).then((function(e){if(bd(h)){"delete"!==p&&(h=e.results),c.addKeys(h);var t=Jm(h,m);t||"add"===p||u.addKeys(h),(t||f)&&function(e,t,n,r){t.indexes.forEach((function(t){var a=e(t.name||"");function i(e){return null!=e?t.extractKey(e):null}var s=function(e){return t.multiEntry&&bd(e)?e.forEach((function(e){return a.addKey(e)})):a.addKey(e)};(n||r).forEach((function(e,t){var a=n&&i(n[t]),o=r&&i(r[t]);0!==Qf(a,o)&&(null!=a&&s(a),null!=o&&s(o))}))}))}(l,i,t,f)}else if(h){var r={from:h.lower,to:h.upper};u.add(r),c.add(r)}else c.add(n),u.add(n),i.indexes.forEach((function(e){return l(e.name).add(n)}));return e}))}}),u=function(t){var n,r,a=t.query,i=a.index,s=a.range;return[i,new Zm(null!==(n=s.lower)&&void 0!==n?n:e.MIN_KEY,null!==(r=s.upper)&&void 0!==r?r:e.MAX_KEY)]},p={get:function(e){return[s,new Zm(e.key)]},getMany:function(e){return[s,(new Zm).addKeys(e.keys)]},count:u,query:u,openCursor:u};return _d(p).forEach((function(e){c[e]=function(i){var s=Vh.subscr;if(s){var c=function(e){var n="idb://"+t+"/"+r+"/"+e;return s[n]||(s[n]=new Zm)},u=c(""),d=c(":dels"),h=p[e](i),f=h[0],m=h[1];if(c(f.name||"").add(m),!f.isPrimaryKey){if("count"!==e){var S="query"===e&&l&&i.values&&a.query(yd(yd({},i),{values:!1}));return a[e].apply(this,arguments).then((function(t){if("query"===e){if(l&&i.values)return S.then((function(e){var n=e.result;return u.addKeys(n),t}));var n=i.values?t.result.map(o):t.result;i.values?u.addKeys(n):d.addKeys(n)}else if("openCursor"===e){var r=t,a=i.values;return r&&Object.create(r,{key:{get:function(){return d.addKey(r.primaryKey),r.key}},primaryKey:{get:function(){var e=r.primaryKey;return d.addKey(e),e}},value:{get:function(){return a&&u.addKey(r.primaryKey),r.value}}})}return t}))}d.add(n)}}return a[e].apply(this,arguments)}})),c}})}};var sS,oS=function(){function e(t,n){var r=this;this._middlewares={},this.verno=0;var a=e.dependencies;this._options=n=yd({addons:e.addons,autoOpen:!0,indexedDB:a.indexedDB,IDBKeyRange:a.IDBKeyRange},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var i=n.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var s,o={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:gh,dbReadyPromise:null,cancelOpen:gh,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};o.dbReadyPromise=new Jh((function(e){o.dbReadyResolve=e})),o.openCanceller=new Jh((function(e,t){o.cancelOpen=t})),this._state=o,this.name=t,this.on=Bf(this,"populate","blocked","versionchange","close",{ready:[Th,gh]}),this.on.ready.subscribe=Dd(this.on.ready.subscribe,(function(t){return function(n,a){e.vip((function(){var e=r._state;if(e.openComplete)e.dbOpenError||Jh.resolve().then(n),a&&t(n);else if(e.onReadyBeingFired)e.onReadyBeingFired.push(n),a&&t(n);else{t(n);var i=r;a||t((function e(){i.on.ready.unsubscribe(n),i.on.ready.unsubscribe(e)}))}}))}})),this.Collection=(s=this,Kf(em.prototype,(function(e,t){this.db=s;var n=Lf,r=null;if(t)try{n=t()}catch(e){r=e}var a=e._ctx,i=a.table,o=i.hook.reading.fire;this._ctx={table:i,index:a.index,isPrimKey:!a.index||i.schema.primKey.keyPath&&a.index===i.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:a.or,valueMapper:o!==vh?o:null}}))),this.Table=function(e){return Kf(Mf.prototype,(function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:Bf(null,{creating:[Ph,gh],reading:[_h,vh],updating:[Eh,gh],deleting:[wh,gh]})}))}(this),this.Transaction=function(e){return Kf(fm.prototype,(function(t,n,r,a,i){var s=this;this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=a,this.idbtrans=null,this.on=Bf(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Jh((function(e,t){s._resolve=e,s._reject=t})),this._completion.then((function(){s.active=!1,s.on.complete.fire()}),(function(e){var t=s.active;return s.active=!1,s.on.error.fire(e),s.parent?s.parent._reject(e):t&&s.idbtrans&&s.idbtrans.abort(),Of(e)}))}))}(this),this.Version=function(e){return Kf(Hm.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return Kf(um.prototype,(function(t,n,r){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r};var a=e._deps.indexedDB;if(!a)throw new mh.MissingAPI;this._cmp=this._ascending=a.cmp.bind(a),this._descending=function(e,t){return a.cmp(t,e)},this._max=function(e,t){return a.cmp(e,t)>0?e:t},this._min=function(e,t){return a.cmp(e,t)<0?e:t},this._IDBKeyRange=e._deps.IDBKeyRange}))}(this),this.on("versionchange",(function(e){e.newVersion>0?console.warn("Another connection wants to upgrade database '"+r.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+r.name+"'. Closing db now to resume the delete request."),r.close()})),this.on("blocked",(function(e){!e.newVersion||e.newVersion<e.oldVersion?console.warn("Dexie.delete('"+r.name+"') was blocked"):console.warn("Upgrade '"+r.name+"' blocked by other connection holding version "+e.oldVersion/10)})),this._maxKey=gm(n.IDBKeyRange),this._createTransaction=function(e,t,n,a){return new r.Transaction(e,t,n,r._options.chromeTransactionDurability,a)},this._fireOnBlocked=function(e){r.on("blocked").fire(e),Rf.filter((function(e){return e.name===r.name&&e!==r&&!e._state.vcFired})).map((function(t){return t.on("versionchange").fire(e)}))},this.use($m),this.use(zm),this.use(iS),this.use(Qm),this.vip=Object.create(this,{_vip:{value:!0}}),i.forEach((function(e){return e(r)}))}return e.prototype.version=function(e){if(isNaN(e)||e<.1)throw new mh.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new mh.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);var t=this._versions,n=t.filter((function(t){return t._cfg.version===e}))[0];return n||(n=new this.Version(e),t.push(n),t.sort(Im),n.stores({}),this._state.autoSchema=!1,n)},e.prototype._whenReady=function(e){var t=this;return this.idbdb&&(this._state.openComplete||Vh.letThrough||this._vip)?e():new Jh((function(e,n){if(t._state.openComplete)return n(new mh.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return void n(new mh.DatabaseClosed);t.open().catch(gh)}t._state.dbReadyPromise.then(e,n)})).then(e)},e.prototype.use=function(e){var t=e.stack,n=e.create,r=e.level,a=e.name;a&&this.unuse({stack:t,name:a});var i=this._middlewares[t]||(this._middlewares[t]=[]);return i.push({stack:t,create:n,level:null==r?10:r,name:a}),i.sort((function(e,t){return e.level-t.level})),this},e.prototype.unuse=function(e){var t=e.stack,n=e.name,r=e.create;return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter((function(e){return r?e.create!==r:!!n&&e.name!==n}))),this},e.prototype.open=function(){return Mm(this)},e.prototype._close=function(){var e=this._state,t=Rf.indexOf(this);if(t>=0&&Rf.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new Jh((function(t){e.dbReadyResolve=t})),e.openCanceller=new Jh((function(t,n){e.cancelOpen=n}))},e.prototype.close=function(){this._close();var e=this._state;this._options.autoOpen=!1,e.dbOpenError=new mh.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)},e.prototype.delete=function(){var e=this,t=arguments.length>0,n=this._state;return new Jh((function(r,a){var i=function(){e.close();var t=e._deps.indexedDB.deleteDatabase(e.name);t.onsuccess=uf((function(){Um(e._deps,e.name),r()})),t.onerror=pm(a),t.onblocked=e._fireOnBlocked};if(t)throw new mh.InvalidArgument("Arguments not allowed in db.delete()");n.isBeingOpened?n.dbReadyPromise.then(i):i()}))},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return null!==this.idbdb},e.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name},e.prototype.hasFailed=function(){return null!==this._state.dbOpenError},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,"tables",{get:function(){var e=this;return _d(this._allTables).map((function(t){return e._allTables[t]}))},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var e=Km.apply(this,arguments);return this._transaction.apply(this,e)},e.prototype._transaction=function(e,t,n){var r=this,a=Vh.trans;a&&a.db===this&&-1===e.indexOf("!")||(a=null);var i,s,o=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(s=t.map((function(e){var t=e instanceof r.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||"readonly"===e)i="readonly";else{if("rw"!=e&&"readwrite"!=e)throw new mh.InvalidArgument("Invalid transaction mode: "+e);i="readwrite"}if(a){if("readonly"===a.mode&&"readwrite"===i){if(!o)throw new mh.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");a=null}a&&s.forEach((function(e){if(a&&-1===a.storeNames.indexOf(e)){if(!o)throw new mh.SubTransaction("Table "+e+" not included in parent transaction.");a=null}})),o&&a&&!a.active&&(a=null)}}catch(e){return a?a._promise(null,(function(t,n){n(e)})):Of(e)}var l=qm.bind(null,this,i,s,a,n);return a?a._promise(i,l,"lock"):Vh.trans?kf(Vh.transless,(function(){return r._whenReady(l)})):this._whenReady(l)},e.prototype.table=function(e){if(!kd(this._allTables,e))throw new mh.InvalidTable("Table "+e+" does not exist");return this._allTables[e]},e}(),lS="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",cS=function(){function e(e){this._subscribe=e}return e.prototype.subscribe=function(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})},e.prototype[lS]=function(){return this},e}();function uS(e,t){return _d(t).forEach((function(n){tS(e[n]||(e[n]=new Zm),t[n])})),e}try{sS={indexedDB:vd.indexedDB||vd.mozIndexedDB||vd.webkitIndexedDB||vd.msIndexedDB,IDBKeyRange:vd.IDBKeyRange||vd.webkitIDBKeyRange}}catch(e){sS={indexedDB:null,IDBKeyRange:null}}var pS=oS;function dS(e){var t=hS;try{hS=!0,hm.storagemutated.fire(e)}finally{hS=t}}Td(pS,yd(yd({},yh),{delete:function(e){return new pS(e,{addons:[]}).delete()},exists:function(e){return new pS(e,{addons:[]}).open().then((function(e){return e.close(),!0})).catch("NoSuchDatabaseError",(function(){return!1}))},getDatabaseNames:function(e){try{return function(e){var t=e.indexedDB,n=e.IDBKeyRange;return Gm(t)?Promise.resolve(t.databases()).then((function(e){return e.map((function(e){return e.name})).filter((function(e){return"__dbnames"!==e}))})):Fm(t,n).toCollection().primaryKeys()}(pS.dependencies).then(e)}catch(e){return Of(new mh.MissingAPI)}},defineClass:function(){return function(e){Pd(this,e)}},ignoreTransaction:function(e){return Vh.trans?kf(Vh.transless,e):e()},vip:Lm,async:function(e){return function(){try{var t=Bm(e.apply(this,arguments));return t&&"function"==typeof t.then?t:Jh.resolve(t)}catch(e){return Of(e)}}},spawn:function(e,t,n){try{var r=Bm(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:Jh.resolve(r)}catch(e){return Of(e)}},currentTransaction:{get:function(){return Vh.trans||null}},waitFor:function(e,t){var n=Jh.resolve("function"==typeof e?pS.ignoreTransaction(e):e).timeout(t||6e4);return Vh.trans?Vh.trans.waitFor(n):n},Promise:Jh,debug:{get:function(){return eh},set:function(e){th(e,"dexie"===e?function(){return!0}:Gf)}},derive:Ad,extend:Pd,props:Td,override:Dd,Events:Bf,on:hm,liveQuery:function(e){return new cS((function(t){var n=Zd(e);var r=!1,a={},i={},s={get closed(){return r},unsubscribe:function(){r=!0,hm.storagemutated.unsubscribe(u)}};t.start&&t.start(s);var o=!1,l=!1;function c(){return _d(i).some((function(e){return a[e]&&function(e,t){var n=nS(t),r=n.next();if(r.done)return!1;for(var a=r.value,i=nS(e),s=i.next(a.from),o=s.value;!r.done&&!s.done;){if(Qf(o.from,a.to)<=0&&Qf(o.to,a.from)>=0)return!0;Qf(a.from,o.from)<0?a=(r=n.next(o.from)).value:o=(s=i.next(a.from)).value}return!1}(a[e],i[e])}))}var u=function(e){uS(a,e),c()&&p()},p=function(){if(!o&&!r){a={};var d={},h=function(t){n&&gf();var r=function(){return yf(e,{subscr:t,trans:null})},a=Vh.trans?kf(Vh.transless,r):r();return n&&a.then(vf,vf),a}(d);l||(hm("storagemutated",u),l=!0),o=!0,Promise.resolve(h).then((function(e){o=!1,r||(c()?p():(a={},i=d,t.next&&t.next(e)))}),(function(e){o=!1,t.error&&t.error(e),s.unsubscribe()}))}};return p(),s}))},extendObservabilitySet:uS,getByKeyPath:Ud,setByKeyPath:Ld,delByKeyPath:function(e,t){"string"==typeof t?Ld(e,t,void 0):"length"in t&&[].map.call(t,(function(t){Ld(e,t,void 0)}))},shallowClone:jd,deepClone:$d,getObjectDiff:Wm,cmp:Qf,asap:Fd,minKey:-1/0,addons:[],connections:Rf,errnames:hh,dependencies:sS,semVer:"3.2.2",version:"3.2.2".split(".").map((function(e){return parseInt(e)})).reduce((function(e,t,n){return e+t/Math.pow(10,2*n)}))})),pS.maxKey=gm(pS.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(hm("storagemutated",(function(e){var t;hS||(Df?(t=document.createEvent("CustomEvent")).initCustomEvent("x-storagemutated-1",!0,!0,e):t=new CustomEvent("x-storagemutated-1",{detail:e}),hS=!0,dispatchEvent(t),hS=!1)})),addEventListener("x-storagemutated-1",(function(e){var t=e.detail;hS||dS(t)})));var hS=!1;if("undefined"!=typeof BroadcastChannel){var fS=new BroadcastChannel("x-storagemutated-1");hm("storagemutated",(function(e){hS||fS.postMessage(e)})),fS.onmessage=function(e){e.data&&dS(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){hm("storagemutated",(function(e){try{hS||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&gd([],self.clients.matchAll({includeUncontrolled:!0}),!0).forEach((function(t){return t.postMessage({type:"x-storagemutated-1",changedParts:e})})))}catch(e){}})),"undefined"!=typeof addEventListener&&addEventListener("storage",(function(e){if("x-storagemutated-1"===e.key){var t=JSON.parse(e.newValue);t&&dS(t.changedParts)}}));var mS=self.document&&navigator.serviceWorker;mS&&mS.addEventListener("message",(function(e){var t=e.data;t&&"x-storagemutated-1"===t.type&&dS(t.changedParts)}))}Jh.rejectionMapper=function(e,t){if(!e||e instanceof ch||e instanceof TypeError||e instanceof SyntaxError||!e.name||!Sh[e.name])return e;var n=new Sh[e.name](t||e.message,e);return"stack"in e&&Id(n,"stack",{get:function(){return this.inner.stack}}),n},th(eh,Gf);class SS extends Error{constructor(){super(...arguments),this.name="SafeToLogError"}}var yS=n(91),gS=n(13),vS=n.n(gS);class _S extends Error{constructor(e,t){super(`${e}, error: ${function(e){if(null==e||"object"!=typeof e)return"";const t=e instanceof SS||e instanceof TypeError?bS:PS;return Object(yS.inspect)(vS()(e,t))}(t)}`),t instanceof Error?(this.name=t.name,this.stack=t.stack):this.name=function(e){const t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&null!=e&&"object"==typeof e)return"Object, "+e.constructor.name;return t}(t)}}const bS=e=>e,PS=(e,t)=>"string"!=typeof e||("code"===t||"syscall"===t)?"object"==typeof e?"[Object]":e:"[String]";dd({dsn:"https://55af16af94074b88844cd7e16f535fa5@o76327.ingest.sentry.io/193727",environment:"production",release:void 0,enableNative:!0,maxBreadcrumbs:100,defaultIntegrations:[new Fp.GlobalHandlers({onerror:!1,onunhandledrejection:!1}),new Fp.Breadcrumbs({console:!1,dom:!1,fetch:!0,history:!1,sentry:!1,xhr:!1})],beforeSend:(e,t)=>e,beforeBreadcrumb:e=>function(e){return"http"===e.type&&"fetch"===e.category}(e)?function(e){var t,n;return null!==(n=null===(t=e.data)||void 0===t?void 0:t.url.startsWith("https://api.termius.com"))&&void 0!==n&&n}(e)?(function(e){const{data:t}=e;null!=t&&(t.url=`${(n=new URL(t.url)).origin}${n.pathname}`);var n}(e),e):null:e});const wS=function(e){switch(e){case"browser":return"main";case"renderer":return window.location.pathname.includes("background-process")?"background":"ui";case"worker":return"worker";default:return"unknown"}}(process.type);lp({level:yu.Info,category:wS,message:"Sentry has initialized"});var ES,kS,TS={...(ES=i,kS=wS,{exception:(e,t,n)=>{(function(e){const t=e instanceof oS.BulkError||e instanceof oS.InvalidStateError||e instanceof oS.ConstraintError||e instanceof oS.AbortError;return e instanceof SS||e instanceof TypeError||e instanceof RangeError||t})(t)&&function(e){return"object"==typeof e&&null!=e&&"message"in e}(t)&&"string"==typeof t.message&&""!==t.message&&(e=`${e}:\n${t.message}`);const r=new _S(e,t);ES.captureException(r,n),ES.addBreadcrumb({level:ES.Severity.Error,category:kS,message:`${r.name}: ${r.message}`})},info:(e,t)=>{ES.addBreadcrumb({level:ES.Severity.Info,category:kS,message:e,data:t})},setUser:e=>{ES.configureScope(t=>t.setUser(e))}}),withEncryptionLogin(e,t,n){let r={hasValue:!1};return mp(a=>{a.setExtra("collection",t),a.setExtra("encryption_login",e),r={hasValue:!0,value:n()}}),r.hasValue||(r={hasValue:!0,value:n()}),r.value},getUserId:()=>new Promise(e=>op(t=>{var n,r;e(null!==(r=null===(n=t.getUser())||void 0===n?void 0:n.id)&&void 0!==r?r:"")}))};const CS=(...e)=>localStorage.getItem(...e),IS=(...e)=>JSON.parse(CS(...e)||"null"),AS=(...e)=>localStorage.setItem(...e),OS=(e,t)=>AS(e,JSON.stringify(t)),xS=(...e)=>localStorage.removeItem(...e),NS=e=>{const t=IS(e);return xS(e),t};function RS(e,t=22){return null==t||22===t?""+e:`[${e}]:${t}`}const DS=()=>{var e;return null!==(e=IS("experiments"))&&void 0!==e?e:[]},HS=e=>OS("experiments",e);var FS={getTabsPanelSize:()=>IS("initial_resize_left_size"),setTabsPanelSize:e=>OS("initial_resize_left_size",e),takeColorScheme:()=>NS("settings"),takeFontSize:()=>NS("settings_font_size"),takeFontFamily:()=>(e=>{const t=CS(e);return xS(e),t})("settings_font_family"),setAllKnownHosts:e=>OS("hosts_keys",e),getAllKnownHosts:()=>IS("hosts_keys"),clearKnownHosts:()=>xS("hosts_keys"),userJustSawSuggestionToTryPremium:()=>OS("the_date_user_saw_suggestion_to_try_premium",new Date),didUserSeeSuggestionToTryPremium:()=>null!=IS("the_date_user_saw_suggestion_to_try_premium")||!0===IS("free_plan_started")&&(OS("the_date_user_saw_suggestion_to_try_premium",new Date(0)),xS("free_plan_started"),!0),setDeprecatedWelcomeScreenOpenedEventSend:()=>OS("welcome_screen_open_event_send",!0),isDeprecatedWelcomeScreenOpenedEventSend:()=>!!CS("welcome_screen_open_event_send"),setDeprecatedLocalhost:e=>OS("localhost",e),getDeprecatedLocalhost:()=>IS("localhost"),removeDeprecatedLocalhost:()=>xS("localhost"),getDeprecatedHostHashForUser(e,t){const n=this.getAllKnownHosts();return null==n?null:n[RS(e,t)]},removeDeprecatedHostHashItem(e){const t=this.getAllKnownHosts();delete t[e],this.setAllKnownHosts(t)},removeDeprecatedHostHashForUser(e,t){return this.removeDeprecatedHostHashItem(RS(e,t))},getKeepAliveInterval:()=>CS("keep_alive_interval"),setKeepAliveInterval:e=>AS("keep_alive_interval",e),removeKeepAliveInterval:()=>xS("keep_alive_interval"),wasDeprecatedCopyPasteDialogShown:()=>!!IS("copy_paste_dialog_was_shown"),setDeprecatedCopyPasteDialogWasShown:()=>OS("copy_paste_dialog_was_shown",!0),takeDarkMode:()=>NS("dark_mode"),wasDeprecatedSubscriptionExpired:()=>!!IS("subscription_expired_notification"),setDeprecatedSubscriptionExpired:()=>OS("subscription_expired_notification",!0),removeDeprecatedSubscriptionExpired:()=>xS("subscription_expired_notification"),getDeprecatedLastSyncVersion:()=>IS("last_sync_version"),setDeprecatedLastSyncVersion:e=>OS("last_sync_version",e),setDeprecatedEncryptionSchema:e=>AS("encryptionSchema",e),getLocalKey:()=>IS("localKey"),setLocalKey:e=>OS("localKey",e),getLocalKeyIsReady:()=>!!IS("local_key_is_ready"),setLocalKeyIsReady:()=>OS("local_key_is_ready",!0),removeLocalKeyIsReady:()=>xS("local_key_is_ready"),getLocalKeyVault:()=>IS("local_key_vault"),setLocalKeyVault:e=>OS("local_key_vault",e),removeLocalKeyVault:()=>xS("local_key_vault"),getCredential:e=>IS(e),setCredential:(e,t)=>OS(e,t),removeCredential:e=>xS(e),getMigrationLog:()=>IS("migrationLog"),setMigrationLog:e=>OS("migrationLog",e),getDeprecatedEnableSharingDialogWasShown:()=>!!IS("enable_sharing_dialog_was_shown"),setDeprecatedEnableSharingDialogWasShown:()=>OS("enable_sharing_dialog_was_shown",!0),getDeprecatedIsUnsharedLocalTeamTrialData:()=>!!IS("is_unshared_local_team_trial_data"),setDeprecatedIsUnsharedLocalTeamTrialData:e=>OS("is_unshared_local_team_trial_data",e),wasDeprecatedNewWindowHintShown:()=>!!IS("new_window_hint_was_shown"),newDeprecatedWindowHintWasShown:()=>OS("new_window_hint_was_shown",!0),wasDeprecatedSnippetsPanelShortcutHintShown:()=>!!IS("snippets_panel_shortcut_hint_was_shown"),snippetsDeprecatedPanelShortcutHintWasShown:()=>OS("snippets_panel_shortcut_hint_was_shown",!0),getDeprecatedBellDotType:()=>IS("bell_dot_type"),setDeprecatedBellDotType:e=>OS("bell_dot_type",e),getDeprecatedCustomBackendApiUrl:()=>IS("custom_backend_api_url"),setDeprecatedCustomBackendApiUrl:e=>OS("custom_backend_api_url",e),resetDeprecatedCustomBackendApiUrl:()=>xS("custom_backend_api_url"),getDeprecatedWasTeamTrialInPreferencesOpened:()=>IS("was_team_trial_in_preferences_opened"),setDeprecatedWasTeamTrialInPreferencesOpened:()=>OS("was_team_trial_in_preferences_opened",!0),getDeprecatedForceToShowTeamTrialPromotions:()=>IS("force_show_team_trial_promotions"),setDeprecatedForceToShowTeamTrialPromotions:e=>OS("force_show_team_trial_promotions",e),didDeprecatedUserSentAcquisitionChannel:()=>IS("user_init_connection"),setDeprecatedUserSentAcquisitionChannel:()=>OS("user_init_connection",!0),getDeprecatedDeviceHasSepSupport:()=>IS("device_has_sep_support"),setDeprecatedDeviceHasSepSupport:e=>OS("device_has_sep_support",e)};const GS=Pi("REQUEST_MONTHLY_PREMIUM"),US=Pi("REQUEST_YEARLY_PREMIUM"),LS=Pi("REQUEST_RESTORE_PREMIUM"),jS=Pi("PURCHASE_STARTED"),MS=Pi("PURCHASE_FAILED"),BS=Pi("PURCHASE_SUCCESS"),KS=Pi("RESTORE_FAILED"),qS=Pi("RESTORE_SUCCESS"),VS=Li("UPDATE_PRICES"),$S=Pi("REMOVE_IS_LOADING"),WS=Pi("RETRY_PURCHASE"),zS=Pi("USER_CANCEL_PURCHASE"),JS=Li("REDIRECT_TO_STRIPE_CHECKOUT");class XS{constructor(e){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.created_at=e.updated_at,this.address=e.address||"",this.connected_at=e.connected_at,this.errorMsg=e.errorMsg||"",this.host=null!=e.host?new Jo(e.host):null,this.label=e.label||"",this.password=e.password||"",this.port=e.port||0,this.ssh_key=null!=e.ssh_key?new xo(e.ssh_key):null,this.startup_snippet=null!=e.startup_snippet?new qo(e.startup_snippet):null,this.username=e.username||"",this.active=e.active,this.protocol=e.protocol,this.session_log_data=e.session_log_data}static createFromConnection(e,t){const{host:n,errorMsg:r,protocol:a,sessionLogData:i}=e,{address:s,label:o}=n,l="telnet"===a?n.getMergedTelnetConfig():n.getMergedSshConfig(),{startup_snippet:c,port:u,identity:p}=l,{ssh_key:d,username:h,password:f}=p;return new XS({address:s,connected_at:t,errorMsg:r||"",host:n,label:o,password:f,port:u,ssh_key:d,startup_snippet:c,username:h,active:!0,protocol:a,session_log_data:i})}}var QS=n(4),YS=n.n(QS);const ZS=process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432"),ey=`${process.env.windir}\\${ZS?"Sysnative":"System32"}`,ty=ey+"\\WindowsPowerShell\\v1.0\\powershell.exe",ny=YS.a.windows()?ty:process.env.SHELL||"",ry=Pi("TEAM_PLAN_TAB_OPENED"),ay=Pi("TRIAL_STARTED"),iy=Pi("TRIAL_DISMISSED"),sy=Pi("WELCOME_SCREEN_OPENED"),oy=Pi("NEW_HOST_BUTTON_PRESSED"),ly=Pi("NEW_HOST_CREATED"),cy=Pi("HOST_DELETED"),uy=Pi("NEW_IDENTITY_BUTTON_PRESSED"),py=Pi("NEW_IDENTITY_SET_UP"),dy=Pi("NEW_SNIPPET_BUTTON_PRESSED"),hy=Pi("NEW_SNIPPET_CREATED"),fy=Pi("SNIPPET_EDITED"),my=Pi("SNIPPET_DELETED"),Sy=Pi("SNIPPET_EXECUTED"),yy=Pi("MAGIC_BUTTON_PRESSED"),gy=Pi("APP_OPENED"),vy=Pi("LEARN_MORE_ABOUT_TEAM_BUTTON_PRESSED"),_y=Pi("TEAM_PROMOTION_DISMISSED"),by=Pi("FEATURE_DESCRIPTION_SCREEN_OPENED"),Py=Pi("NEW_PORT_FORWARDING_RULE_BUTTON_PRESSED"),wy=Pi("NEW_PORT_FORWARDING_RULE_CREATED"),Ey=Pi("ONBOARDING_IMPORT_SCREEN_DISMISSED"),ky=Pi("IMPORT_STARTED"),Ty=Pi("IMPORT_BUTTON_PRESSED"),Cy=Pi("IMPORT_FAILED"),Iy=Pi("IMPORT_COMPLETED"),Ay=Pi("TEAM_PRIVATE_KEY_GENERATED"),Oy=Pi("TEAM_PRIVATE_KEY_ADOPTED"),xy=Pi("PERSONAL_KEY_SET_GENERATED"),Ny=Pi("PASSWORD_CHECKED_WITH_HIBP"),Ry=Pi("SET_TEAM_ID"),Dy=Pi("CRITICAL_ERROR_RESOLUTION_STARTED"),Hy=Pi("MENU_BANNER_DISMISSED"),Fy=Pi("TERMINAL_SEARCH_EXECUTED"),Gy=Pi("NEW_GROUP_CREATED"),Uy=Pi("GROUP_DELETED"),Ly=Pi("NEW_GROUP_BUTTON_PRESSED"),jy=Pi("MULTIPLE_CONNECTIONS_INITIATED"),My=Pi("CONNECTION_INITIATED"),By=Pi("CONNECTION_DETAILS_REQUESTED"),Ky=Pi("CONNECTION_ESTABLISHED"),qy=Pi("CONNECTION_CLOSED"),Vy=Pi("CONNECTION_FAILED"),$y=Pi("EXEC_CHANNEL_OPEN_FAILED"),Wy=Pi("APP_STARTED"),zy=Pi("SHARED_BUTTON_PRESSED"),Jy=Pi("CREATE_TEAM_WIZARD_VIEW_OPENED"),Xy=Pi("NEW_MAIN_WINDOW_OPENED"),Qy=Pi("PROMOTION_SHOWN"),Yy=Pi("PROMOTION_PRESSED"),Zy=Pi("PROMOTION_DISMISSED"),eg=Pi("HISTORY_ITEM_DELETED"),tg=Pi("SESSION_LOG_OPENED"),ng=Pi("ENCRYPTION_MIGRATION_WIZARD_VIEW_OPENED"),rg=Pi("TEAM_SCREEN_OPENED"),ag=Pi("HELP_BUTTON_PRESSED"),ig=Pi("REMIND_TEAM_OWNER_BUTTON_PRESSED"),sg=Pi("TEAM_TRIAL_EXPIRED_BUTTON_PRESSED"),og=Pi("DEEP_LINK_HANDLED"),lg=Pi("NOTIFICATION_RECEIVED"),cg=Pi("NOTIFICATION_SNOOZED"),ug=Pi("CONFIRM_ACCESS_BUTTON_PRESSED"),pg=Pi("CUSTOMER_EXPERIENCE_SURVEY_SHOWN"),dg=Pi("HINT_DISPLAYED"),hg=Pi("HINT_CLOSED"),fg=Pi("SNIPPETS_PANEL_OPENED"),mg=Pi("SWITCH_TO_TEAM_SCREEN_OPENED"),Sg=Pi("ACCOUNT_SET_UP_COMPLETED_SCREEN_OPENED"),yg=Pi("SET_YOUR_DEFAULT_CREDENTIALS_SCREEN_OPENED"),gg=Pi("NEW_IDENTITY_CREATED"),vg=Pi("DOWNLOAD_BUTTON_PRESSED"),_g=Pi("TEAM_SIDE_ONBOARDING_PRESSED"),bg=Pi("TEAM_SIDE_ONBOARDING_SHOWN"),Pg=Pi("TEAM_SIDE_ONBOARDING_CLOSED"),wg=Pi("SNIPPET_SHARING_CANCELED"),Eg=Pi("MULTIPLE_ITEMS_SELECTED"),kg=Pi("PREFERENCES_BUTTON_PRESSED"),Tg=Pi("EDIT_ENTITY_SCREEN_OPENED"),Cg=Pi("AUTHORIZED_KEYS_DOWNLOADED"),Ig=Pi("CREATE_MULTIKEY_EXPORT_SCRIPT_BUTTON_PRESSED"),Ag=Pi("MULTIKEY_UPDATED"),Og=Pi("SSH_KEY_FOR_MULTIKEY_GENERATED"),xg=Pi("MULTIKEY_CHOSEN"),Ng=Pi("ENTITIES_DRAG_AND_DROP_STARTED"),Rg=Pi("ENTITIES_DRAG_AND_DROP_COMPLETED"),Dg=Pi("MFA_INSTALL_AUTHY_SCREEN_OPENED"),Hg=Pi("MFA_CONFIGURE_SCREEN_OPENED"),Fg=Pi("MFA_PHONE_NUMBER_SCREEN_OPENED"),Gg=Pi("MFA_TOKEN_SCREEN_OPENED"),Ug=Pi("MFA_CONFIRM_PASSWORD_SCREEN_OPENED"),Lg=Pi("MFA_CHOOSE_PROVIDER_SCREEN_OPENED"),jg=Pi("MFA_COPY_CODE_SCREEN_OPENED"),Mg=Pi("MFA_CODE_COPIED"),Bg=Pi("MFA_PROVIDER_CHOSEN"),Kg=Pi("WHOS_IS_TERMIUS_SCREEN_OPENED"),qg=Pi("PRESENCE_ICON_PRESSED"),Vg=Pi("SET_PASSPHRASE_SCREEN_OPENED"),$g=Pi("ENTER_PASSPHRASE_SCREEN_OPENED"),Wg=Pi("PASSPHRASE_INFO_SCREEN_OPENED"),zg=Pi("SHARE_TERMINAL_BUTTON_PRESSED"),Jg=Pi("TERMINAL_SESSION_SHARING_STARTED"),Xg=Pi("TERMINAL_SESSION_SHARING_FAILED"),Qg=Pi("TERMINAL_SESSION_SHARING_STOPPED"),Yg=Pi("TERMINAL_SHARING_PERMISSIONS_CHANGED"),Zg=Pi("SHARED_TERMINAL_VIEWER_JOINED"),ev=Pi("SHARED_TERMINAL_VIEWER_LEFT"),tv=Pi("TEAM_TRIAL_EXTENSION_REJECTED_SCREEN_OPENED"),nv=Pi("SEND_CHOOSE_PLAN_SCREEN_OPENED"),rv=Pi("TEAM_TRIAL_EXTENDED_SCREEN_OPENED"),av=Pi("TEAM_TRIAL_EXPIRED_SCREEN_OPENED"),iv=Pi("INVITE_SCREEN_OPENED"),sv=Pi("INVITE_BUTTON_PRESSED"),ov=Pi("CONTEXT_MENU_OPENED"),lv=Pi("SFTP_FILE_OPENED"),cv=Pi("SFTP_UPLOAD_FILE_BUTTON_PRESSED"),uv=Pi("SFTP_DISCARD_FILE_BUTTON_PRESSED"),pv=Pi("SFTP_MODIFIED_FILES_BAR_SHOWN"),dv=Pi("SFTP_FILE_TYPE_ASSOCIATED"),hv=Pi("CREATE_ACCOUNT_SCREEN_OPENED"),fv=Pi("TEAM_TRIAL_FUNNEL_STARTED"),mv=Pi("NEW_KEY_BUTTON_PRESSED"),Sv=Pi("NEW_KEY_OPTION_SELECTED"),yv=Pi("NEW_CERTIFICATE_BUTTON_PRESSED"),gv=Pi("KEYCHAIN_ITEM_CREATED"),vv=Pi("KEYCHAIN_ITEM_DELETED"),_v=Li("RESTART_BUTTON_PRESSED"),bv=Pi("CHANGELOG_BUTTON_PRESSED"),Pv=Pi("CREDENTIALS_SHARING_OPTION_CHOSEN"),wv=Pi("CREDENTIALS_SHARING_SCREEN_OPENED"),Ev=Pi("LEARN_MORE_ABOUT_MULTIKEY_BUTTON_PRESSED"),kv=Pi("MULTIKEY_PROMO_SCREEN_SHOWN"),Tv=Pi("ROOT_GROUP_SHARED"),Cv=Pi("TAB_CONTEXT_MENU_OPENED"),Iv=Pi("NEW_HARDWARE_KEY_CREATED"),Av=Pi("AUTOCOMPLETE"),Ov=Pi("SERIAL_CONNECTION_SCREEN_OPENED"),xv=Pi("SERIAL_CONNECTION_PROMO_SCREEN_OPENED"),Nv=Pi("COPY_INVITATION_LINK_BUTTON_PRESSED"),Rv=Pi("CLOUD_CREDENTIALS_CHECKED"),Dv=Pi("CLOUD_SYNC_ACTIVATED"),Hv=Pi("SYNC_NOW_BUTTON_PRESSED"),Fv=Pi("CLOUD_SYNC_COMPLETED"),Gv=Pi("CLOUD_SYNC_FAILED"),Uv=Pi("TEAM_PRIVATE_KEY_ENCRYPTED"),Lv=Pi("TERMINAL_THEME_CHANGED"),jv=Pi("APPEARENCE_PANEL_OPENED"),Mv=Pi("SAVE_APPEARENCE_BUTTON_PRESSED"),Bv=Pi("RESET_APPEARENCE_BUTTON_PRESSED"),Kv=Pi("TERMINAL_FONT_CHANGED"),qv=Pi("BROADCAST_INPUT_TOGGLED"),Vv=Pi("AUTOCOMPLETE_SETTING_CHANGED"),$v=Pi("AUTOCOMPLETE_SETTINGS_OPENED"),Wv=Pi("TEAM_TRIAL_STARTED_FAILED"),zv=Pi("ENTITY_SELECTED"),Jv=Pi("EXPORT_KEY_BUTTON_PRESSED"),Xv=Pi("EXPORT_KEY_STOPPED"),Qv=Pi("KEY_EXPORT_SUCCEEDED"),Yv=Pi("EDIT_HOST_CHAIN_SCREEN_OPENED"),Zv=Pi("BUY_NOW_BUTTON_PRESSED"),e_=Pi("TEAM_TRIAL_EXTENSION_OFFER_SCREEN_OPENED"),t_=Pi("COPY_PUBLIC_KEY_BUTTON_PRESSED"),n_=Pi("DOWNLOAD_TEMPLATE_BUTTON_PRESSED"),r_=Pi("GROUP_SETTINGS_OPENED"),a_=Pi("HISTORY_DETAILS_SCREEN_OPENED"),i_=Pi("DOWNGRADE_TO_HOBBY_BUTTON_PRESSED"),s_=Pi("PRO_TRIAL_EXTENSION_OFFER_SCREEN_OPENED"),o_=Pi("PRO_TRIAL_EXTENDED_SCREEN_OPENED"),l_=Pi("EXTEND_PRO_TRIAL_BUTTON_PRESSED"),c_=Pi("NEW_SNIPPET_PACKAGE_BUTTON_PRESSED"),u_=Pi("SNIPPETS_SCREEN_OPENED"),p_=Pi("SNIPPET_PACKAGE_CREATED"),d_=Pi("SNIPPET_PACKAGE_DELETED"),h_=Pi("PORT_FORWARDING_FORM_TYPE_CHANGED"),f_=Pi("CREATE_PORT_FORWARDING_WIZARD_VIEW_OPENED"),m_=Pi("PORT_FORWARDING_SCREEN_OPENED"),S_=Pi("ENTERPRISE_SSO_BUTTON_PRESSED"),y_=Pi("USER_LOGIN_FAILED"),g_=Pi("LOGIN_SCREEN_OPENED"),v_=Pi("FIDO2_KEYGEN_OPTIONS_SUBMITTED"),__=Pi("FIDO2_PIN_CODE_REQUESTED"),b_=Pi("FIDO2_SSH_KEYS_SELECTED"),P_=Pi("FIDO2_KEY_GENERATION_CONFIRMED"),w_=Pi("FIDO2_DEVICE_SELECTED"),E_=Pi("SPLIT_VIEW_TAB_CREATED"),k_=Pi("SPLIT_VIEW_TAB_UPDATED"),T_=Pi("SPLIT_VIEW_BUTTON_PRESSED"),C_=Pi("COPY_HOST_DETAILS_LINK_BUTTON_PRESSED"),I_=Pi("DUPLICATE_BUTTON_PRESSED"),A_=Pi("SSH_KEY_DRAGGED_AND_DROPPED"),O_=Pi("SETUP_CLOUD_SYNC_BUTTON_PRESSED"),x_=Pi("CRYPTO_ERROR_OCCURRED"),N_={shown:Pi("ENABLE_SHARING_DIALOG_SHOWN"),submitted:Pi("ENABLE_SHARING_DIALOG_SUBMITTED"),postponed:Pi("ENABLE_SHARING_DIALOG_POSTPONED"),caughtError:Pi("ENABLE_SHARING_DIALOG_CAUGHT_ERROR"),succeeded:Pi("ENABLE_SHARING_DIALOG_SUCCEEDED")},R_=Pi("UPGRADE_TO_PRO_FUNNEL_STARTED"),D_=Pi("PRO_PLAN_SCREEN_OPENED"),H_=Pi("SELECT_ENTITY_SCREEN_OPENED"),F_=Pi("IDENTITY_SETTINGS_SCREEN_OPENED"),G_=Pi("IDENTITY_AUTOCOMPLETE_ITEM_PRESSED"),U_=Pi("IDENTITY_AUTOCOMPLETE_SHOWN"),L_=Pi("KEYWORD_HIGHLIGHTING_SETTING_CHANGED"),j_=Pi("KEYWORD_HIGHLIGHTING_CUSTOMIZATION_BUTTON_PRESSED"),M_=Pi("KEYWORD_HIGHLIGHTING_COLOR_ITEM_PRESSED"),B_=Pi("IMPORT_FIDO2KEY_BUTTON_PRESSED"),K_=Pi("ADVANCED_SETTINGS_BUTTON_PRESSED"),q_=Pi("DO_IT_LATER_BUTTON_PRESSED"),V_=Pi("REQUEST_INPUT_ACCESS_PRESSED"),$_=Pi("INPUT_PERMISSIONS_REQUESTED"),W_=Pi("TERMINAL_SHARING_STATUS_DIALOG_SHOWN"),z_=Pi("COPY_THE_LINK_BUTTON_PRESSED"),J_=Pi("COLLABORATION_CONTEXT_MENU_OPENED"),X_=Pi("COLLABORATION_CONTEXT_MENU_ITEM_PRESSED"),Q_=Pi("WELCOME_SETUP_STARTED"),Y_=Pi("WELCOME_SETUP_STEP_SKIPPED"),Z_=Pi("TOOLS_SETUP_SCREEN_OPENED"),eb=Pi("APPEARANCE_SETUP_SCREEN_OPENED"),tb=Pi("APPEARANCE_PICKED"),nb=Pi("PLATFORM_SETUP_PICKED"),rb=Pi("IMPORT_SETUP_SCREEN_OPENED"),ab=Pi("PLATFORMS_SETUP_SCREEN_OPENED"),ib=Pi("PROFESSIONAL_TOOLS_SELECTED"),sb=Pi("SAVE_HISTORY_COMMAND_BUTTON_PRESSED"),ob=Pi("COMMANDS_HISTORY_PANEL_OPENED"),lb=Pi("TRIAL_ONBOARDING_STARTED"),cb=Pi("TRIAL_ONBOARDING_BUTTON_PRESSED"),ub=Pi("COPY_DOWNLOAD_LINK_BUTTON_PRESSED"),pb=Pi("TRIAL_ONBOARDING_STEP_COMPLETED"),db=Pi("TRIAL_ONBOARDING_MINIMIZED"),hb=Pi("TOOLBAR_CHEVRON_BUTTON_PRESSED"),fb=Pi("SUBSCRIPTION_GRACE_PERIOD_NOTIFICATION_SHOWN"),mb=Pi("SUBSCRIPTION_GRACE_PERIOD_NOTIFICATION_SNOOZED"),Sb=Pi("BULK_DATA_SHARING_SCREEN_OPENED"),yb=Pi("BULK_SHARING_COMPLETED"),gb=Pi("TEAM_DEACTIVATION_SCREEN_OPENED"),vb=Pi("SUBSCRIPTION_EXPIRED_SCREEN_OPENED"),_b=Pi("EXTEND_TEAM_TRIAL_BUTTON_PRESSED"),bb=Pi("UPGRADE_BUTTON_PRESSED"),Pb=Pi("SESSION_AUTH_METHOD_CHANGED");function wb(e){switch(e){case"ssh":return"SSH";case"telnet":return"Telnet";case"mosh":return"Mosh";case"local":return"Local";case"stream":return"LiveTerminal";case"serial":return"Serial";default:return null}}class Eb{constructor({dispatch:e,type:t,host:n,userType:r,teamStatus:a,connectionID:i,getSessionLogSize:s}){var o,l,c,u,p;this.sendEventWithSafeDelayBetweenEventsToAvoidCollision=e=>{const t=this._next_safe_sent_event_date-Date.now();if(t<=0)return e(),void(this._next_safe_sent_event_date=new Date(Date.now()+1e3));setTimeout(()=>{e()},t),this._next_safe_sent_event_date=new Date(this._next_safe_sent_event_date.getTime()+1e3)},this._connectionInitiated=e=>{this._connected=!1;const t=FS.didDeprecatedUserSentAcquisitionChannel()||null==e?void 0:e.acquisitionChannel;FS.setDeprecatedUserSentAcquisitionChannel(),this.dispatch(My({...this.properties,...e,acquisitionChannel:t,cloudIntegration:yl(this.properties.host)}))},this.connectionInitiated=e=>this.sendEventWithSafeDelayBetweenEventsToAvoidCollision(()=>this._connectionInitiated(e)),this._connectionDetailsRequested=e=>{this.dispatch(By({requestedConnectionProperty:e.property,connectionID:this.properties.connectionID,cloudIntegration:yl(this.properties.host),sessionAuthMethod:e.authMethod}))},this.connectionDetailsRequested=e=>{this.sendEventWithSafeDelayBetweenEventsToAvoidCollision(()=>this._connectionDetailsRequested(e))},this._connectionFailed=e=>{this._connected||(this._connected=!0,this.dispatch(Vy({...this.properties,...e,cloudIntegration:yl(this.properties.host)})))},this.connectionFailed=e=>this.sendEventWithSafeDelayBetweenEventsToAvoidCollision(()=>this._connectionFailed(e)),this._connectionEstablished=e=>{this._connected=!0,this.dispatch(Ky({...this.properties,...e,cloudIntegration:yl(this.properties.host)}))},this.connectionEstablished=e=>this.sendEventWithSafeDelayBetweenEventsToAvoidCollision(()=>this._connectionEstablished(e)),this._connectionClosed=async e=>{var t;this.dispatch(qy({...e,sessionLogSize:await(null===(t=this.getSessionLogSize)||void 0===t?void 0:t.call(this))}))},this.connectionClosed=e=>this.sendEventWithSafeDelayBetweenEventsToAvoidCollision(()=>this._connectionClosed(e)),this.dispatch=e;const d=n?new Jo(n):null;this.properties={host:d,type:t,teamStatus:a,userType:r,connectionID:i,fido2BasedKey:To(null===(c=null===(l=null===(o=null==d?void 0:d.ssh_config)||void 0===o?void 0:o.identity)||void 0===l?void 0:l.ssh_key)||void 0===c?void 0:c.private_key),sepkey:null!=(null===(p=null===(u=null==d?void 0:d.ssh_config)||void 0===u?void 0:u.identity)||void 0===p?void 0:p.hardware_key)},this._connected=!1,this._next_safe_sent_event_date=new Date,this.getSessionLogSize=s}}class kb{constructor(e){var t,n,r,a,i,s,o;this.id=null!==(t=e.id)&&void 0!==t?t:Fi()(),this.host=new Jo(e.host||void 0),this.chainedHostOverrides=e.chainedHostOverrides,this.protocol=e.protocol||this._getMergedProtocol(),this.keepaliveInterval=e.keepaliveInterval,this.errorMsg=e.errorMsg,this.connectedAt=e.connectedAt,this.shellPath=e.shellPath||ny,this.sshKnownHosts=e.sshKnownHosts||[],this.stream=e.stream,this.featureSet=null!==(n=e.featureSet)&&void 0!==n?n:[],this.sessionLogData=null!==(r=e.sessionLogData)&&void 0!==r?r:void 0,this.sessionLogAnalytics=null!==(a=e.sessionLogAnalytics)&&void 0!==a?a:void 0,this.serialOptions=e.serialOptions,this.delegate=null!==(i=e.delegate)&&void 0!==i?i:{onDisconnect(){},onClosed:Object(yS.deprecate)(e=>{},"onClose callback is deprecated. Use onDisconnect or onError"),onError(e,t,n,r){},hostVerifier(e,t,n,r,a,i){i(!0)},requestKeyboardInteractive(e,t,n,r,a,i){},requestSignature(e,t,n,r){},async askUserNecessaryFields(){throw new Error("not implemented")},requestPassphrase(){},handleHostChainConnection(){},onLogMessage(e){},requestSKPresence(e){},updateSKPresence(e){},requestPIN(){},onHostOSDetected(e){},requestChooseKey(){},requestAuthMethod(){},requestDiscoverableSKKeys(){}},this.abortController=e.abortController||new AbortController,this.quick=e.quick||!1,this.saveAsHost=null!==(s=e.saveAsHost)&&void 0!==s&&s,this.analyticsHelper=e.analyticsHelper,this.isDetectOSEnabled=null!==(o=e.isDetectOSEnabled)&&void 0!==o&&o}abort(){return this.abortController.abort()}initAnalyticsHelper(e){const{type:t=wb(this.protocol)}=e;this.analyticsHelper=new Eb({...e,type:t,host:this.host,connectionID:this.id})}get signal(){return this.abortController.signal}get displayLabel(){var e,t,n;if("local"===this.protocol)return"Local Terminal";if("serial"===this.protocol)return(null===(e=this.serialOptions)||void 0===e?void 0:e.path)||"Serial";if("stream"===this.protocol)return null!==(n=null===(t=this.stream)||void 0===t?void 0:t.title)&&void 0!==n?n:"Stream";const{label:r,address:a}=this.host;if(r)return r;const i=this._getConfig();if(i){const{identity:e,port:t}=i,{username:n}=e,{protocol:r}=this;if(n)return"telnet"===r&&23===t||"telnet"!==r&&22===t?a:`${n}@[${a}]:${t}`}return a}get colorScheme(){var e;if("stream"===this.protocol)return(null===(e=this.stream)||void 0===e?void 0:e.color_scheme)||null;const t=this._getConfig();return t&&t.color_scheme||null}get startupSnippet(){const e=this._getConfig();return e&&e.startup_snippet||null}get port(){var e;return null===(e=this._getConfig())||void 0===e?void 0:e.port}get username(){var e;return null===(e=this._getConfig())||void 0===e?void 0:e.identity.username}isHostMissingNecessaryFields(){return null!=(e=this.protocol)&&["ssh","mosh","telnet"].includes(e)&&!this.host.address||function(e){return null!=e&&["ssh","mosh"].includes(e)}(this.protocol)&&!this.username;var e}clone(e){return new kb({...this,...e})}_getMergedProtocol(){return this.host.getDefaultProtocolForConnection()}_getConfig(){const{protocol:e,host:t}=this;switch(e){case"telnet":return t.getMergedTelnetConfig();case"ssh":case"mosh":return t.getMergedSshConfig();default:return null}}toTransferableObject(){return{...this,abortController:null,delegate:null,analyticsHelper:null,sessionLogAnalytics:null}}}Error;class Tb extends Wo{constructor(e={}){super(e),this.children_groups=[],this.children_hosts=[],this.children_groups=e.children_groups||[],this.children_hosts=e.children_hosts||[]}clone(e={}){return new Tb({...this,...e})}}class Cb{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.marker=e.marker||"",this.hostnames=e.hostnames||"",this.key=e.key||"",this.comment=e.comment||""}toOpenSshFormat(){return`${this.hostnames} ${this.key}`}isEqual(e){return this.hostnames===e.hostnames&&this.marker===e.marker&&this.key===e.key&&this.comment===e.comment}}class Ib{constructor(e){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.bound_address=e.bound_address||"127.0.0.1",this.host=new Jo(e.host),this.hostname=e.hostname||"",this.label=e.label||"",this.local_port=e.local_port,this.pf_type=e.pf_type,this.remote_port=e.remote_port,this.status=e.status||"disconnected",this.local_updated_at=e.local_updated_at||null}get rule(){const e=`From ${this.host.displayLabel}:${this.local_port}`;switch(this.pf_type){case"Dynamic Rule":return e;case"Local Rule":case"Remote Rule":return`${e} to ${this.hostname}:${this.remote_port}`;default:return"Unknown port forwarding type"}}get displayLabel(){return this.label||this.rule}get pfRuleType(){switch(this.pf_type){case"Dynamic Rule":return"dynamic";case"Local Rule":return"local";case"Remote Rule":return"remote";default:return"local"}}get isValid(){var e,t,n;return(null===(e=this.pf_type)||void 0===e?void 0:e.toLowerCase().includes("dynamic"))?Boolean((null===(t=this.host)||void 0===t?void 0:t.local_id)&&(this.local_port||0===this.local_port)):Boolean((null===(n=this.host)||void 0===n?void 0:n.local_id)&&this.hostname&&(this.local_port||0===this.local_port)&&(this.remote_port||0===this.remote_port))}clone(e={}){return new Ib({...this,...e})}}class Ab{constructor(e){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.host=null!=e.host?new Jo(e.host):null,this.latest_used_protocol=e.latest_used_protocol||null,this.latest_used_identity=e.latest_used_identity?new No(e.latest_used_identity):null}}class Ob{constructor(e={}){this.id=e.id,this.local_id=e.local_id,this.username=e.username||"",this.updated_at=e.updated_at,this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null}clone(e={}){return new Ob({...this,...e})}}class xb{constructor(e={}){var t;this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.script=e.script||"",this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null,this.rating=null!==(t=e.rating)&&void 0!==t?t:1}clone(e={}){return new xb({...this,...e})}}var Nb=n(201),Rb=n.n(Nb);var Db=n(202),Hb=n.n(Db);function Fb({local_id:e},t){if(null==e)return[];const n=t.find(t=>t.local_id===e);if(null==n)return[];const r=[];let a=[n],i=[];const s=e=>{r.push(e),i=Hb()(i,function({local_id:e},t){return null!=e?t.filter(t=>{var n;return(null===(n=t.parent_group)||void 0===n?void 0:n.local_id)===e}):[]}(e,t))};for(;0!==a.length;)a.forEach(s),a=i,i=[];return r}function Gb(e,t){const n=new Set(e.map(e=>e.local_id));return t.filter(({group:e})=>null!=(null==e?void 0:e.local_id)&&n.has(e.local_id))}function Ub(e,t){return e.map(e=>new t(e))}function Lb(e,t){return ei(e,e=>Ub(e,t))}const jb=Lb(e=>e.entities.snippets,qo),Mb=Lb(e=>e.entities.snippetsPackages,Ko),Bb=Lb(e=>e.entities.hardwareKeys,Eo),Kb=(Lb(e=>Bb(e).filter(e=>e.isSep()),Eo),Lb(e=>e.entities.sshKeys,xo),Lb(e=>e.entities.visibleIdentities,No),Lb(e=>e.entities.portForwardingRules,Ib),Lb(e=>e.entities.knownHosts,Cb)),qb=(ei(Kb,e=>e.map(e=>e.toOpenSshFormat())),Lb(e=>e.entities.histories,XS)),Vb=Lb(e=>e.entities.hostLatestActivities,Ab),$b=(e,t)=>null!=t&&Vb(e).find(e=>{var n;return(null===(n=e.host)||void 0===n?void 0:n.local_id)===t})||null,Wb=Lb(e=>e.entities.hosts,Jo),zb=e=>e.entities.hosts.length,Jb=(ei(Wb,e=>t=>t&&e.find(e=>e.local_id===t)||null),(e,t)=>e.filter(e=>{var n,r,a,i,s,o,l;return t.local_id&&((null===(r=null===(n=e.ssh_config)||void 0===n?void 0:n.identity)||void 0===r?void 0:r.local_id)===t.local_id||(null===(s=null===(i=null===(a=e.ssh_config)||void 0===a?void 0:a.proxy)||void 0===i?void 0:i.identity)||void 0===s?void 0:s.local_id)===t.local_id||(null===(l=null===(o=e.telnet_config)||void 0===o?void 0:o.identity)||void 0===l?void 0:l.local_id)===t.local_id)})),Xb=(e,t)=>{const n=Wb(e);return Jb(n,t)},Qb=(e,t)=>{const n=Yb(e);return Jb(n,t)},Yb=ei(e=>e.entities.groups,Wb,(e,t)=>{const n=Ub(e,Wo);return n.map(e=>{const r=new Tb(e),a=Fb(e,n);return r.children_groups=a,r.children_hosts=Gb(a,t),r})});ei((e,t=null)=>Yb(e),(e,t=null)=>t,Zb),ei(Yb,e=>t=>Zb(e,t));function Zb(e,t){return t&&e.find(e=>e.local_id===t)||null}const eP=e=>Yb(e).filter(e=>e.is_shared)||[],tP=e=>Wb(e).filter(e=>e.is_shared)||[],nP=e=>jb(e).filter(e=>e.is_shared)||[],rP=e=>Mb(e).filter(e=>e.is_shared)||[],aP=e=>!!(eP(e).length||nP(e).length||rP