You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 lines
5.4 MiB

This file contains invisible Unicode characters!

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

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

/*! For license information please see vendors~init.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],[function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(4),r=n.n(o);r.a.methodFactory=function(e,t,n){return function(...t){return"error"===e||"warn"===e||"trace"===e||"info"===e?console[e](...t):console.log(...t)}};const i=r.a.getLogger("matrix");i.setLevel(r.a.levels.DEBUG)},function(e,t,n){"use strict";n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"u",(function(){return s})),n.d(t,"j",(function(){return c})),n.d(t,"t",(function(){return l})),n.d(t,"B",(function(){return u})),n.d(t,"l",(function(){return d})),n.d(t,"k",(function(){return h})),n.d(t,"y",(function(){return p})),n.d(t,"q",(function(){return m})),n.d(t,"p",(function(){return g})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return _})),n.d(t,"b",(function(){return b})),n.d(t,"i",(function(){return v})),n.d(t,"o",(function(){return E})),n.d(t,"v",(function(){return y})),n.d(t,"s",(function(){return S})),n.d(t,"z",(function(){return T})),n.d(t,"h",(function(){return C})),n.d(t,"n",(function(){return x})),n.d(t,"g",(function(){return O})),n.d(t,"A",(function(){return k})),n.d(t,"r",(function(){return R})),n.d(t,"d",(function(){return A})),n.d(t,"w",(function(){return I})),n.d(t,"x",(function(){return D})),n.d(t,"m",(function(){return F}));var o=n(26),r=n.n(o);function i(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.substring(1)}function a(e,t){for(const n in t)t.hasOwnProperty(n)&&(e=e.replace(n,encodeURIComponent(t[n])));return e}function s(e,t){const n=new Array(e.length);for(let o=0;o<e.length;o++)n[o]=t(e[o]);return n}function c(e,t){const n=[];for(let o=0;o<e.length;o++)t(e[o],o,e)&&n.push(e[o]);return n}function l(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(n);return t}function u(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function d(e,t){for(let n=0;n<e.length;n++)t(e[n],n)}function h(e,t,n){let o;if(n){for(o=e.length-1;o>=0;o--)if(t(e[o],o,e))return e[o]}else for(o=0;o<e.length;o++)if(t(e[o],o,e))return e[o]}function p(e,t,n){let o,r;if(n){for(o=e.length-1;o>=0;o--)if(t(e[o],o,e))return r=e[o],e.splice(o,1),r}else for(o=0;o<e.length;o++)if(t(e[o],o,e))return r=e[o],e.splice(o,1),r;return!1}function m(e){return"[object Function]"===Object.prototype.toString.call(e)}function g(e){return Array.isArray?Array.isArray(e):Boolean(e&&e.constructor===Array)}function f(e,t){for(let n=0;n<t.length;n++)if(!e.hasOwnProperty(t[n]))throw new Error("Missing required key: "+t[n])}function _(e){return JSON.parse(JSON.stringify(e))}function b(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("number"==typeof e&&isNaN(e)&&isNaN(t))return!0;if(null===e||null===t)return e===t;if(!(e instanceof Object))return!1;if(e.constructor!==t.constructor||e.prototype!==t.prototype)return!1;if(e instanceof RegExp||e instanceof Date)return e.toString()===t.toString();if(e instanceof Array){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!b(e[n],t[n]))return!1}else{let n;for(n in t)if(t.hasOwnProperty(n)!==e.hasOwnProperty(n))return!1;for(n in t){if(t.hasOwnProperty(n)!==e.hasOwnProperty(n))return!1;if(!b(e[n],t[n]))return!1}}return!0}function v(...e){const t=e[0]||{};for(let n=1;n<e.length;n++){const o=e[n];if(o)for(const e in o)t[e]=o[e]}return t}function E(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function y(e,t,...n){try{t.call(e,...n)}catch(o){const r=new t(...n);Object.assign(e,r)}}function S(e){return"number"==typeof e&&isFinite(e)}function T(e){return"string"==typeof e?r()(e.normalize("NFD").replace(w,"")):""}const w=/[\u2000-\u200F\u202A-\u202F\u0300-\u036f\uFEFF\s]/g;function C(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x(e,t){t="boolean"!=typeof t||t;let n=C(e);return n=n.replace(/\\\*/g,".*"),n=n.replace(/\?/g,"."),t&&(n=n.replace(/\\\[(!|)(.*)\\]/g,(function(e,t,n,o,r){return"["+(t?"^":"")+n.replace(/\\-/,"-")+"]"}))),n}function O(e){return e&&e.endsWith("/")?e.substr(0,e.length-1):e}function k(e,t){return new Promise(n=>{setTimeout(n,e,t)})}function R(e){return null==e}function A(){let e,t;const n=new Promise((n,o)=>{e=n,t=o});return{resolve:e,reject:t,promise:n}}async function I(e,t){for(const n of await e)await t(await n)}function D(e){return new Promise(t=>t(e()))}let N;function F(){return N}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(36);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var r=n(37);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var i=n(38);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}));var a=n(9);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}));var s=n(39);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}));var c=n(40);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}));var l=n(41);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})}));var u=n(42);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})}));var d=n(18);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})}));var h=n(43);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})}));var p=n(44);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})}));var m=n(45);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}})}));var g=n(10);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}})}));var f=n(7);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})}));var _=n(8);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}})}));var b=n(46);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}})}));var v=n(47);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})}));var E=n(48);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}})}));var y=n(49);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})}));var S=n(50);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}})}));var T=n(51);Object.keys(T).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return T[e]}})}));var w=n(52);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}})}));var C=n(53);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}})}));var x=n(11);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}})}));var O=n(54);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}})}));var k=n(55);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}})}));var R=n(56);Object.keys(R).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return R[e]}})}));var A=n(19);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}})}));var I=n(57);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return I[e]}})}));var D=n(58);Object.keys(D).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return D[e]}})}));var N=n(59);Object.keys(N).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return N[e]}})}));var F=n(60);Object.keys(F).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return F[e]}})}));var M=n(12);Object.keys(M).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return M[e]}})}));var P=n(21);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}})}));var L=n(22);Object.keys(L).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return L[e]}})}));var U=n(23);Object.keys(U).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return U[e]}})}));var B=n(61);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}})}));var j=n(62);Object.keys(j).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return j[e]}})}));var G=n(20);Object.keys(G).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return G[e]}})}));var q=n(63);Object.keys(q).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return q[e]}})}))},function(e,t,n){var o,r;!function(i,a){"use strict";void 0===(r="function"==typeof(o=function(){var e=function(){},t="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function o(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function r(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function i(n){return"debug"===n&&(n="log"),"undefined"!=typeof console&&("trace"===n&&t?r:void 0!==console[n]?o(console,n):void 0!==console.log?o(console,"log"):e)}function a(t,o){for(var r=0;r<n.length;r++){var i=n[r];this[i]=r<t?e:this.methodFactory(i,t,o)}this.log=this.debug}function s(e,t,n){return function(){"undefined"!=typeof console&&(a.call(this,t,n),this[e].apply(this,arguments))}}function c(e,t,n){return i(e)||s.apply(this,arguments)}function l(e,t,o){var r,i=this,s="loglevel";function l(){var e;if("undefined"!=typeof window&&s){try{e=window.localStorage[s]}catch(e){}if(void 0===e)try{var t=window.document.cookie,n=t.indexOf(encodeURIComponent(s)+"=");-1!==n&&(e=/^([^;]+)/.exec(t.slice(n))[1])}catch(e){}return void 0===i.levels[e]&&(e=void 0),e}}"string"==typeof e?s+=":"+e:"symbol"==typeof e&&(s=void 0),i.name=e,i.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},i.methodFactory=o||c,i.getLevel=function(){return r},i.setLevel=function(t,o){if("string"==typeof t&&void 0!==i.levels[t.toUpperCase()]&&(t=i.levels[t.toUpperCase()]),!("number"==typeof t&&t>=0&&t<=i.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(r=t,!1!==o&&function(e){var t=(n[e]||"silent").toUpperCase();if("undefined"!=typeof window&&s){try{return void(window.localStorage[s]=t)}catch(e){}try{window.document.cookie=encodeURIComponent(s)+"="+t+";"}catch(e){}}}(t),a.call(i,t,e),"undefined"==typeof console&&t<i.levels.SILENT)return"No console available for logging"},i.setDefaultLevel=function(e){l()||i.setLevel(e,!1)},i.enableAll=function(e){i.setLevel(i.levels.TRACE,e)},i.disableAll=function(e){i.setLevel(i.levels.SILENT,e)};var u=l();null==u&&(u=null==t?"WARN":t),i.setLevel(u,!1)}var u=new l,d={};u.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=d[e];return t||(t=d[e]=new l(e,u.getLevel(),u.methodFactory)),t};var h="undefined"!=typeof window?window.log:void 0;return u.noConflict=function(){return"undefined"!=typeof window&&window.log===u&&(window.log=h),u},u.getLoggers=function(){return d},u.default=u,u})?o.call(t,n,t,e):o)||(e.exports=r)}()},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var o,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};o=r&&"function"==typeof r.ownKeys?r.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 s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,o){function r(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,r),o(n)},e.once("error",i)),e.once(t,r)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,o){var r,i,a,s;if(l(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),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=o?[n,a]:[a,n]:o?a.unshift(n):a.push(n),(r=u(e))>0&&a.length>r&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function h(){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 o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=h.bind(o);return r.listener=n,o.wrapFn=r,r}function m(e,t,n){var o=e._events;if(void 0===o)return[];var r=o[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]: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}(r):f(r,r.length)}function g(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),o=0;o<t;++o)n[o]=e[o];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},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+".");c=e}}),s.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},s.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},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,r=this._events;if(void 0!==r)o=o&&void 0===r.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=r[e];if(void 0===c)return!1;if("function"==typeof c)i(c,this,t);else{var l=c.length,u=f(c,l);for(n=0;n<l;++n)i(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,o,r,i,a;if(l(t),void 0===(o=this._events))return this;if(void 0===(n=o[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,r=i;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(o[e]=n[0]),void 0!==o.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,o;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 r,i=Object.keys(n);for(o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);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(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.invertedDirection=function(e){if(e===o.ToWidget)return o.FromWidget;if(e===o.FromWidget)return o.ToWidget;throw new Error("Invalid direction")},t.WidgetApiDirection=void 0,t.WidgetApiDirection=o,function(e){e.ToWidget="toWidget",e.FromWidget="fromWidget"}(o||(t.WidgetApiDirection=o={}))},function(e,t,n){"use strict";var o,r;Object.defineProperty(t,"__esModule",{value:!0}),t.CurrentApiVersions=t.UnstableApiVersion=t.MatrixApiVersion=void 0,t.MatrixApiVersion=o,function(e){e.Prerelease1="0.0.1",e.Prerelease2="0.0.2"}(o||(t.MatrixApiVersion=o={})),t.UnstableApiVersion=r,function(e){e.MSC2762="org.matrix.msc2762",e.MSC2871="org.matrix.msc2871"}(r||(t.UnstableApiVersion=r={}));var i=[o.Prerelease1,o.Prerelease2,r.MSC2762,r.MSC2871];t.CurrentApiVersions=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostmessageTransport=void 0;var o=n(6),r=n(3);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(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,o=m(e);if(t){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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)}(n,e);var t=d(n);function n(e,o,r,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(a=t.call(this)).sendDirection=e,a.initialWidgetId=o,a.transportWindow=r,a.inboundWindow=i,g(p(a),"strictOriginCheck",void 0),g(p(a),"targetOrigin",void 0),g(p(a),"timeoutSeconds",10),g(p(a),"_ready",!1),g(p(a),"_widgetId",null),g(p(a),"outboundRequests",new Map),g(p(a),"isStopped",!1),a._widgetId=o,a}return l(n,[{key:"ready",get:function(){return this._ready}},{key:"widgetId",get:function(){return this._widgetId||null}}]),l(n,[{key:"sendInternal",value:function(e){var t=this.targetOrigin||"*";console.log("[PostmessageTransport] Sending object to ".concat(t,": "),e),this.transportWindow.postMessage(e,t)}},{key:"reply",value:function(e,t){return this.sendInternal(s(s({},e),{},{response:t}))}},{key:"send",value:function(e,t){return this.sendComplete(e,t).then((function(e){return e.response}))}},{key:"sendComplete",value:function(e,t){var n=this;if(!this.ready||!this.widgetId)return Promise.reject(new Error("Not ready or unknown widget ID"));var o={api:this.sendDirection,widgetId:this.widgetId,requestId:this.nextRequestId,action:e,data:t};return e===r.WidgetApiToWidgetAction.UpdateVisibility&&(o.visible=t.visible),new Promise((function(e,t){var r=setTimeout((function(){var e=n.outboundRequests.get(o.requestId);e&&(n.outboundRequests.delete(o.requestId),e.reject(new Error("Request timed out")))}),1e3*(n.timeoutSeconds||1));n.outboundRequests.set(o.requestId,{request:o,resolve:function(t){return e(t)},reject:t,timerId:r}),n.sendInternal(o)}))}},{key:"start",value:function(){var e=this;this.inboundWindow.addEventListener("message",(function(t){e.handleMessage(t)})),this._ready=!0}},{key:"stop",value:function(){this._ready=!1,this.isStopped=!0}},{key:"handleMessage",value:function(e){if(!this.isStopped&&e.data&&(!this.strictOriginCheck||e.origin===window.origin)){var t=e.data;if(t.action&&t.requestId&&t.widgetId)if(t.response){if(t.api!==this.sendDirection)return;this.handleResponse(t)}else{var n=t;if(n.api!==(0,r.invertedDirection)(this.sendDirection))return;this.handleRequest(n)}}}},{key:"handleRequest",value:function(e){if(this.widgetId){if(this.widgetId!==e.widgetId)return}else this._widgetId=e.widgetId;this.emit("message",new CustomEvent("message",{detail:e}))}},{key:"handleResponse",value:function(e){if(e.widgetId===this.widgetId){var t=this.outboundRequests.get(e.requestId);if(t)if(this.outboundRequests.delete(e.requestId),clearTimeout(t.timerId),(0,r.isErrorResponse)(e.response)){var n=e.response;t.reject(new Error(n.error.message))}else t.resolve(e)}}},{key:"nextRequestId",get:function(){for(var e="widgetapi-".concat(Date.now()),t=0,n=e;this.outboundRequests.has(n);)n="".concat(e,"-").concat(t++);return this.outboundRequests.set(n,null),n}}]),n}(o.EventEmitter);t.PostmessageTransport=f},function(e,t,n){"use strict";var o,r;Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetApiFromWidgetAction=t.WidgetApiToWidgetAction=void 0,t.WidgetApiToWidgetAction=o,function(e){e.SupportedApiVersions="supported_api_versions",e.Capabilities="capabilities",e.NotifyCapabilities="notify_capabilities",e.TakeScreenshot="screenshot",e.UpdateVisibility="visibility",e.OpenIDCredentials="openid_credentials",e.WidgetConfig="widget_config",e.CloseModalWidget="close_modal",e.ButtonClicked="button_clicked",e.SendEvent="send_event"}(o||(t.WidgetApiToWidgetAction=o={})),t.WidgetApiFromWidgetAction=r,function(e){e.SupportedApiVersions="supported_api_versions",e.ContentLoaded="content_loaded",e.SendSticker="m.sticker",e.UpdateAlwaysOnScreen="set_always_on_screen",e.GetOpenIDCredentials="get_openid",e.CloseModalWidget="close_modal",e.OpenModalWidget="open_modal",e.SetModalButtonEnabled="set_button_enabled",e.SendEvent="send_event"}(r||(t.WidgetApiFromWidgetAction=r={}))},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.OpenIDRequestState=void 0,t.OpenIDRequestState=o,function(e){e.Allowed="allowed",e.Blocked="blocked",e.PendingUserConfirmation="request"}(o||(t.OpenIDRequestState=o={}))},function(e,t,n){"use strict";function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a;Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetEventCapability=t.EventDirection=void 0,t.EventDirection=a,function(e){e.Send="send",e.Receive="receive"}(a||(t.EventDirection=a={}));var s=function(){function e(t,n,o,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.direction=t,this.eventType=n,this.isState=o,this.keyStr=r,this.raw=i}var t,n,r;return t=e,r=[{key:"forStateEvent",value:function(t,n,o){n=n.replace(/#/g,"\\#"),o=null!=o?"#".concat(o):"";var r="org.matrix.msc2762.".concat(t,".state_event:").concat(n).concat(o);return e.findEventCapabilities([r])[0]}},{key:"forRoomEvent",value:function(t,n){var o="org.matrix.msc2762.".concat(t,".event:").concat(n);return e.findEventCapabilities([o])[0]}},{key:"forRoomMessageEvent",value:function(t,n){n=null==n?"":n;var o="org.matrix.msc2762.".concat(t,".event:m.room.message#").concat(n);return e.findEventCapabilities([o])[0]}},{key:"findEventCapabilities",value:function(t){var n,r=[],i=o(t);try{for(i.s();!(n=i.n()).done;){var s=n.value,c=null,l=void 0,u=!1;if(s.startsWith("org.matrix.msc2762.send.")?s.startsWith("org.matrix.msc2762.send.event:")?(c=a.Send,l=s.substring("org.matrix.msc2762.send.event:".length)):s.startsWith("org.matrix.msc2762.send.state_event:")&&(c=a.Send,u=!0,l=s.substring("org.matrix.msc2762.send.state_event:".length)):s.startsWith("org.matrix.msc2762.receive.")&&(s.startsWith("org.matrix.msc2762.receive.event:")?(c=a.Receive,l=s.substring("org.matrix.msc2762.receive.event:".length)):s.startsWith("org.matrix.msc2762.receive.state_event:")&&(c=a.Receive,u=!0,l=s.substring("org.matrix.msc2762.receive.state_event:".length))),null!==c){var d=l.startsWith("m.room.message#")||u,h=null;if(l.includes("#")&&d){var p=l.split("#"),m=p.findIndex((function(e){return!e.endsWith("\\")}));l=p.slice(0,m+1).map((function(e){return e.endsWith("\\")?e.substring(0,e.length-1):e})).join("#"),h=p.slice(m+1).join("#")}r.push(new e(c,l,u,h,s))}}}catch(e){i.e(e)}finally{i.f()}return r}}],(n=[{key:"matchesAsStateEvent",value:function(e,t){return!!this.isState&&this.eventType===e&&(null===this.keyStr||this.keyStr===t)}},{key:"matchesAsRoomEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return!this.isState&&this.eventType===e&&("m.room.message"!==this.eventType||null===this.keyStr||this.keyStr===t)}}])&&i(t.prototype,n),r&&i(t,r),e}();t.WidgetEventCapability=s},function(e,t,n){"use strict";let o;n.d(t,"a",(function(){return o})),function(e){e.ClientReady="im.vector.ready",e.HangupCall="im.vector.hangup",e.OpenIntegrationManager="integration_manager_open",e.ViewRoom="io.element.view_room"}(o||(o={}))},,,function(e,t,n){var o,r,i;r=[],void 0===(i="function"==typeof(o=function(){var e=XMLHttpRequest;if(!e)throw new Error("missing XMLHttpRequest");function t(i,a){if("function"!=typeof a)throw new Error("Bad callback given: "+a);if(!i)throw new Error("No options given");var s=i.onResponse;if((i="string"==typeof i?{uri:i}:JSON.parse(JSON.stringify(i))).onResponse=s,i.verbose&&(t.log=function(){var e,t,n={},i=["trace","debug","info","warn","error"];for(t=0;t<i.length;t++)n[e=i[t]]=o,"undefined"!=typeof console&&console&&console[e]&&(n[e]=r(console,e));return n}()),i.url&&(i.uri=i.url,delete i.url),!i.uri&&""!==i.uri)throw new Error("options.uri is a required argument");if("string"!=typeof i.uri)throw new Error("options.uri must be a string");for(var c=["proxy","_redirectsFollowed","maxRedirects","followRedirect"],l=0;l<c.length;l++)if(i[c[l]])throw new Error("options."+c[l]+" is not supported");if(i.callback=a,i.method=i.method||"GET",i.headers=i.headers||{},i.body=i.body||null,i.timeout=i.timeout||t.DEFAULT_TIMEOUT,i.headers.host)throw new Error("Options.headers.host is not supported");i.json&&(i.headers.accept=i.headers.accept||"application/json","GET"!==i.method&&(i.headers["content-type"]="application/json"),"boolean"!=typeof i.json?i.body=JSON.stringify(i.json):"string"!=typeof i.body&&(i.body=JSON.stringify(i.body)));var u=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")};if(i.qs){var d="string"==typeof i.qs?i.qs:u(i.qs);-1!==i.uri.indexOf("?")?i.uri=i.uri+"&"+d:i.uri=i.uri+"?"+d}if(i.form){if("string"==typeof i.form)throw"form name unsupported";if("POST"===i.method){var h=(i.encoding||"application/x-www-form-urlencoded").toLowerCase();switch(i.headers["content-type"]=h,h){case"application/x-www-form-urlencoded":i.body=u(i.form).replace(/%20/g,"+");break;case"multipart/form-data":var p=function(e){var t={};t.boundry="-------------------------------"+Math.floor(1e9*Math.random());var n=[];for(var o in e)e.hasOwnProperty(o)&&n.push("--"+t.boundry+'\nContent-Disposition: form-data; name="'+o+'"\n\n'+e[o]+"\n");return n.push("--"+t.boundry+"--"),t.body=n.join(""),t.length=t.body.length,t.type="multipart/form-data; boundary="+t.boundry,t}(i.form);i.body=p.body,i.headers["content-type"]=p.type;break;default:throw new Error("unsupported encoding:"+h)}}}return i.onResponse=i.onResponse||o,!0===i.onResponse&&(i.onResponse=a,i.callback=o),!i.headers.authorization&&i.auth&&(i.headers.authorization="Basic "+function(e){var t,n,o,r,i,a,s,c,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,d=0,h="",p=[];if(!e)return e;do{t=e.charCodeAt(u++),n=e.charCodeAt(u++),o=e.charCodeAt(u++),r=(c=t<<16|n<<8|o)>>18&63,i=c>>12&63,a=c>>6&63,s=63&c,p[d++]=l.charAt(r)+l.charAt(i)+l.charAt(a)+l.charAt(s)}while(u<e.length);switch(h=p.join(""),e.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"="}return h}(i.auth.username+":"+i.auth.password)),function(o){var r=new e,i=!1,a=function(e){var t,n=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/;try{t=location.href}catch(e){(t=document.createElement("a")).href="",t=t.href}var o=n.exec(t.toLowerCase())||[],r=n.exec(e.toLowerCase());return!(!r||r[1]==o[1]&&r[2]==o[2]&&(r[3]||("http:"===r[1]?80:443))==(o[3]||("http:"===o[1]?80:443)))}(o.uri),s="withCredentials"in r;if(n+=1,r.seq_id=n,r.id=n+": "+o.method+" "+o.uri,r._id=r.id,a&&!s){var c=new Error("Browser does not support cross-origin request: "+o.uri);return c.cors="unsupported",o.callback(c,r)}r.timeoutTimer=setTimeout((function(){i=!0;var e=new Error("ETIMEDOUT");return e.code="ETIMEDOUT",e.duration=o.timeout,t.log.error("Timeout",{id:r._id,milliseconds:o.timeout}),o.callback(e,r)}),o.timeout);var l={response:!1,loading:!1,end:!1};return r.onreadystatechange=function(n){if(i)return t.log.debug("Ignoring timed out state change",{state:r.readyState,id:r.id});if(t.log.debug("State change",{state:r.readyState,id:r.id,timed_out:i}),r.readyState===e.OPENED)for(var a in t.log.debug("Request started",{id:r.id}),o.headers)r.setRequestHeader(a,o.headers[a]);else r.readyState===e.HEADERS_RECEIVED?u():r.readyState===e.LOADING?(u(),d()):r.readyState===e.DONE&&(u(),d(),function(){if(l.end)return;if(l.end=!0,t.log.debug("Request done",{id:r.id}),r.body=r.responseText,o.json)try{r.body=JSON.parse(r.responseText)}catch(e){return o.callback(e,r)}o.callback(null,r,r.body)}())},r.open(o.method,o.uri,!0),a&&(r.withCredentials=!!o.withCredentials),r.send(o.body),r;function u(){if(!l.response){if(l.response=!0,t.log.debug("Got response",{id:r.id,status:r.status}),clearTimeout(r.timeoutTimer),r.statusCode=r.status,a&&0==r.statusCode){var e=new Error("CORS request rejected: "+o.uri);return e.cors="rejected",l.loading=!0,l.end=!0,o.callback(e,r)}o.onResponse(null,r)}}function d(){l.loading||(l.loading=!0,t.log.debug("Response body loading",{id:r.id}))}}(i)}t.log={trace:o,debug:o,info:o,warn:o,error:o};var n=0;function o(){}function r(e,t){return function(n,o){return"object"==typeof o&&(n+=" "+JSON.stringify(o)),e[t].call(e,n)}}return t.withCredentials=!1,t.DEFAULT_TIMEOUT=18e4,t.defaults=function(e,n){var o=function(t){return function(n,o){for(var r in n="string"==typeof n?{uri:n}:JSON.parse(JSON.stringify(n)),e)void 0===n[r]&&(n[r]=e[r]);return t(n,o)}},r=o(t);return r.get=o(t.get),r.post=o(t.post),r.put=o(t.put),r.head=o(t.head),r},["get","put","post","head"].forEach((function(e){var n=e.toUpperCase();t[e.toLowerCase()]=function(e){"string"==typeof e?e={method:n,uri:e}:(e=JSON.parse(JSON.stringify(e))).method=n;var o=[e].concat(Array.prototype.slice.apply(arguments,[1]));return t.apply(this,o)}})),t.couch=function(e,n){return"string"==typeof e&&(e={uri:e}),e.json=!0,e.body&&(e.json=e.body),delete e.body,n=n||o,t(e,(function(e,t,o){if(e)return n(e,t,o);if((t.statusCode<200||t.statusCode>299)&&o.error){for(var r in e=new Error("CouchDB error: "+(o.error.reason||o.error.error)),o)e[r]=o[r];return n(e,t,o)}return n(e,t,o)}))},t})?o.apply(t,r):o)||(e.exports=i)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(0),r=n(1);class i{constructor(e){(e=e||{}).maxTimelineEntries=e.maxTimelineEntries||50,this.opts=e,this.accountData={},this.inviteRooms={},this.joinRooms={},this.nextBatch=null,this.groups={invite:{},join:{},leave:{}}}accumulate(e,t){this._accumulateRooms(e,t),this._accumulateGroups(e),this._accumulateAccountData(e),this.nextBatch=e.next_batch}_accumulateAccountData(e){e.account_data&&e.account_data.events&&e.account_data.events.forEach(e=>{this.accountData[e.type]=e})}_accumulateRooms(e,t){e.rooms&&(e.rooms.invite&&Object.keys(e.rooms.invite).forEach(n=>{this._accumulateRoom(n,"invite",e.rooms.invite[n],t)}),e.rooms.join&&Object.keys(e.rooms.join).forEach(n=>{this._accumulateRoom(n,"join",e.rooms.join[n],t)}),e.rooms.leave&&Object.keys(e.rooms.leave).forEach(n=>{this._accumulateRoom(n,"leave",e.rooms.leave[n],t)}))}_accumulateRoom(e,t,n,r){switch(t){case"invite":this._accumulateInviteState(e,n);break;case"join":this.inviteRooms[e]&&delete this.inviteRooms[e],this._accumulateJoinState(e,n,r);break;case"leave":this.inviteRooms[e]?delete this.inviteRooms[e]:delete this.joinRooms[e];break;default:o.a.error("Unknown cateogory: ",t)}}_accumulateInviteState(e,t){if(!t.invite_state||!t.invite_state.events)return;if(!this.inviteRooms[e])return void(this.inviteRooms[e]={invite_state:t.invite_state});const n=this.inviteRooms[e];t.invite_state.events.forEach(e=>{let t=!1;for(let o=0;o<n.invite_state.events.length;o++){const r=n.invite_state.events[o];r.type===e.type&&r.state_key==e.state_key&&(n.invite_state.events[o]=e,t=!0)}t||n.invite_state.events.push(e)})}_accumulateJoinState(e,t,n){this.joinRooms[e]||(this.joinRooms[e]={_currentState:Object.create(null),_timeline:[],_accountData:Object.create(null),_unreadNotifications:{},_summary:{},_readReceipts:{}});const o=this.joinRooms[e];if(t.account_data&&t.account_data.events&&t.account_data.events.forEach(e=>{o._accountData[e.type]=e}),t.unread_notifications&&(o._unreadNotifications=t.unread_notifications),t.summary){const e="m.heroes",n="m.invited_member_count",r="m.joined_member_count",i=o._summary,a=t.summary;i[e]=a[e]||i[e],i[r]=a[r]||i[r],i[n]=a[n]||i[n]}if(t.ephemeral&&t.ephemeral.events&&t.ephemeral.events.forEach(e=>{"m.receipt"===e.type&&e.content&&Object.keys(e.content).forEach(t=>{e.content[t]["m.read"]&&Object.keys(e.content[t]["m.read"]).forEach(n=>{o._readReceipts[n]={data:e.content[t]["m.read"][n],eventId:t}})})}),t.timeline&&t.timeline.limited&&(o._timeline=[]),t.state&&t.state.events&&t.state.events.forEach(e=>{a(o._currentState,e)}),t.timeline&&t.timeline.events&&t.timeline.events.forEach((e,r)=>{let i;if(a(o._currentState,e),n)i=e;else{i=Object.assign({},e),void 0!==i.unsigned&&(i.unsigned=Object.assign({},i.unsigned));const t=e.unsigned?e.unsigned.age:e.age;void 0!==t&&(i._localTs=Date.now()-t)}o._timeline.push({event:i,token:0===r?t.timeline.prev_batch:null})}),o._timeline.length>this.opts.maxTimelineEntries){for(let e=o._timeline.length-this.opts.maxTimelineEntries;e<o._timeline.length;e++)if(o._timeline[e].token){o._timeline=o._timeline.slice(e,o._timeline.length);break}}}_accumulateGroups(e){e.groups&&(e.groups.invite&&Object.keys(e.groups.invite).forEach(t=>{this._accumulateGroup(t,"invite",e.groups.invite[t])}),e.groups.join&&Object.keys(e.groups.join).forEach(t=>{this._accumulateGroup(t,"join",e.groups.join[t])}),e.groups.leave&&Object.keys(e.groups.leave).forEach(t=>{this._accumulateGroup(t,"leave",e.groups.leave[t])}))}_accumulateGroup(e,t,n){for(const t of["invite","join","leave"])delete this.groups[t][e];this.groups[t][e]=n}getJSON(e){const t={join:{},invite:{},leave:{}};Object.keys(this.inviteRooms).forEach(e=>{t.invite[e]=this.inviteRooms[e]}),Object.keys(this.joinRooms).forEach(n=>{const o=this.joinRooms[n],i={ephemeral:{events:[]},account_data:{events:[]},state:{events:[]},timeline:{events:[],prev_batch:null},unread_notifications:o._unreadNotifications,summary:o._summary};Object.keys(o._accountData).forEach(e=>{i.account_data.events.push(o._accountData[e])});const s={type:"m.receipt",room_id:n,content:{}};Object.keys(o._readReceipts).forEach(e=>{const t=o._readReceipts[e];s.content[t.eventId]||(s.content[t.eventId]={"m.read":{}}),s.content[t.eventId]["m.read"][e]=t.data}),Object.keys(s.content).length>0&&i.ephemeral.events.push(s),o._timeline.forEach(t=>{if(!i.timeline.prev_batch){if(!t.token)return;i.timeline.prev_batch=t.token}let n;!e&&t.event._localTs?(n=Object.assign({},t.event),void 0!==n.unsigned&&(n.unsigned=Object.assign({},n.unsigned)),delete n._localTs,n.unsigned=n.unsigned||{},n.unsigned.age=Date.now()-t.event._localTs):n=t.event,i.timeline.events.push(n)});const c=Object.create(null);for(let e=i.timeline.events.length-1;e>=0;e--){const t=i.timeline.events[e];if(null===t.state_key||void 0===t.state_key)continue;const n=Object(r.c)(t);n.unsigned&&(n.unsigned.prev_content&&(n.content=n.unsigned.prev_content),n.unsigned.prev_sender&&(n.sender=n.unsigned.prev_sender)),a(c,n)}Object.keys(o._currentState).forEach(e=>{Object.keys(o._currentState[e]).forEach(t=>{let n=o._currentState[e][t];c[e]&&c[e][t]&&(n=c[e][t]),i.state.events.push(n)})}),t.join[n]=i});const n=[];return Object.keys(this.accountData).forEach(e=>{n.push(this.accountData[e])}),{nextBatch:this.nextBatch,roomsData:t,groupsData:this.groups,accountData:n}}getNextBatchToken(){return this.nextBatch}}function a(e,t){null!==t.state_key&&void 0!==t.state_key&&t.type&&(e[t.type]||(e[t.type]=Object.create(null)),e[t.type][t.state_key]=t)}},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.MatrixWidgetType=void 0,t.MatrixWidgetType=o,function(e){e.Custom="m.custom",e.JitsiMeet="m.jitsi",e.Stickerpicker="m.stickerpicker"}(o||(t.MatrixWidgetType=o={}))},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.BuiltInModalButtonID=void 0,t.BuiltInModalButtonID=o,function(e){e.Close="m.close"}(o||(t.BuiltInModalButtonID=o={}))},function(e,t,n){"use strict";function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleObservable=void 0;var a=function(){function e(t){var n,o,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=[],(o="listeners")in(n=this)?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,t&&this.listeners.push(t)}var t,n,r;return t=e,(n=[{key:"onUpdate",value:function(e){this.listeners.push(e)}},{key:"update",value:function(e){var t,n=o(this.listeners);try{for(n.s();!(t=n.n()).done;)(0,t.value)(e)}catch(e){n.e(e)}finally{n.f()}}},{key:"close",value:function(){this.listeners=[]}}])&&i(t.prototype,n),r&&i(t,r),e}();t.SimpleObservable=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidUrl=function(e){if(!e)return!1;try{var t=new URL(e);return"http"===t.protocol||"https"===t.protocol}catch(e){if(e instanceof TypeError)return!1;throw e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertPresent=function(e,t){if(!e[t])throw new Error("".concat(t," is required"))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Widget=void 0;var o=n(22),r=n(3);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definition=t,!this.definition)throw new Error("Definition is required");(0,o.assertPresent)(t,"id"),(0,o.assertPresent)(t,"creatorUserId"),(0,o.assertPresent)(t,"type"),(0,o.assertPresent)(t,"url")}var t,n,a;return t=e,(n=[{key:"getCompleteUrl",value:function(e){return(0,r.runTemplate)(this.templateUrl,this.definition,e)}},{key:"creatorUserId",get:function(){return this.definition.creatorUserId}},{key:"type",get:function(){return this.definition.type}},{key:"id",get:function(){return this.definition.id}},{key:"name",get:function(){return this.definition.name||null}},{key:"title",get:function(){return this.rawData.title||null}},{key:"templateUrl",get:function(){return this.definition.url}},{key:"origin",get:function(){return new URL(this.templateUrl).origin}},{key:"waitForIframeLoad",get:function(){return!1!==this.definition.waitForIframeLoad&&(this.definition.waitForIframeLoad,!0)}},{key:"rawData",get:function(){return this.definition.data||{}}}])&&i(t.prototype,n),a&&i(t,a),e}();t.Widget=a},function(e,t,n){"use strict";function o(e,t){return new Promise((n,o)=>{let r=!0;const i=e.open(t);i.onupgradeneeded=()=>{r=!1},i.onblocked=()=>o(),i.onsuccess=()=>{i.result.close(),r||e.deleteDatabase(t),n(r)},i.onerror=e=>o(e.target.error)})}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(17),r=n(1),i=n(24),a=n(0);function s(e,t,n){const o=e.openCursor(t);return new Promise((e,t)=>{const r=[];o.onerror=e=>{t(new Error("Query failed: "+e.target.errorCode))},o.onsuccess=t=>{const o=t.target.result;o?(r.push(n(o)),o.continue()):e(r)}})}function c(e){return new Promise((t,n)=>{e.oncomplete=function(e){t(e)},e.onerror=function(e){n(e.target.error)}})}function l(e){return new Promise((t,n)=>{e.onsuccess=function(e){t(e)},e.onerror=function(e){n(e.target.error)}})}function u(e){return l(e).then(e=>e.target.result)}function d(e,t){this.indexedDB=e,this._dbName="matrix-js-sdk:"+(t||"default"),this.db=null,this._disconnected=!0,this._syncAccumulator=new o.a,this._isNewlyCreated=!1}d.exists=function(e,t){return t="matrix-js-sdk:"+(t||"default"),i.a(e,t)},d.prototype={connect:function(){if(!this._disconnected)return a.a.log("LocalIndexedDBStoreBackend.connect: already connected or connecting"),Promise.resolve();this._disconnected=!1,a.a.log("LocalIndexedDBStoreBackend.connect: connecting...");const e=this.indexedDB.open(this._dbName,3);return e.onupgradeneeded=e=>{const t=e.target.result,n=e.oldVersion;a.a.log("LocalIndexedDBStoreBackend.connect: upgrading from "+n),n<1&&(this._isNewlyCreated=!0,function(e){e.createObjectStore("users",{keyPath:["userId"]}),e.createObjectStore("accountData",{keyPath:["type"]}),e.createObjectStore("sync",{keyPath:["clobber"]})}(t)),n<2&&function(e){e.createObjectStore("oob_membership_events",{keyPath:["room_id","state_key"]}).createIndex("room","room_id")}(t),n<3&&function(e){e.createObjectStore("client_options",{keyPath:["clobber"]})}(t)},e.onblocked=()=>{a.a.log("can't yet open LocalIndexedDBStoreBackend because it is open elsewhere")},a.a.log("LocalIndexedDBStoreBackend.connect: awaiting connection..."),l(e).then(e=>(a.a.log("LocalIndexedDBStoreBackend.connect: connected"),this.db=e.target.result,this.db.onversionchange=()=>{this.db.close()},this._init()))},isNewlyCreated:function(){return Promise.resolve(this._isNewlyCreated)},_init:function(){return Promise.all([this._loadAccountData(),this._loadSyncData()]).then(([e,t])=>{a.a.log("LocalIndexedDBStoreBackend: loaded initial data"),this._syncAccumulator.accumulate({next_batch:t.nextBatch,rooms:t.roomsData,groups:t.groupsData,account_data:{events:e}},!0)})},getOutOfBandMembers:function(e){return new Promise((t,n)=>{const o=this.db.transaction(["oob_membership_events"],"readonly").objectStore("oob_membership_events").index("room"),r=IDBKeyRange.only(e),i=o.openCursor(r),a=[];let s=!1;i.onsuccess=e=>{const n=e.target.result;if(!n)return a.length||s?t(a):t(null);const o=n.value;o.oob_written?s=!0:a.push(o),n.continue()},i.onerror=e=>{n(e)}}).then(t=>(a.a.log("LL: got "+(t&&t.length)+` membershipEvents from storage for room ${e} ...`),t))},setOutOfBandMembers:async function(e,t){a.a.log("LL: backend about to store "+t.length+" members for "+e);const n=this.db.transaction(["oob_membership_events"],"readwrite"),o=n.objectStore("oob_membership_events");t.forEach(e=>{o.put(e)});const r={room_id:e,oob_written:!0,state_key:0};o.put(r),await c(n),a.a.log(`LL: backend done storing for ${e}!`)},clearOutOfBandMembers:async function(e){const t=this.db.transaction(["oob_membership_events"],"readonly").objectStore("oob_membership_events").index("room"),n=IDBKeyRange.only(e),o=u(t.openKeyCursor(n,"next")).then(e=>e&&e.primaryKey[1]),r=u(t.openKeyCursor(n,"prev")).then(e=>e&&e.primaryKey[1]),[i,s]=await Promise.all([o,r]),c=this.db.transaction(["oob_membership_events"],"readwrite").objectStore("oob_membership_events"),l=IDBKeyRange.bound([e,i],[e,s]);var d;a.a.log(`LL: Deleting all users + marker in storage for room ${e}, with key range:`,[e,i],[e,s]),await(d=c.delete(l),new Promise((e,t)=>{d.onsuccess=()=>e(d),d.onerror=e=>t(e)}))},clearDatabase:function(){return new Promise((e,t)=>{a.a.log("Removing indexeddb instance: "+this._dbName);const n=this.indexedDB.deleteDatabase(this._dbName);n.onblocked=()=>{a.a.log("can't yet delete indexeddb "+this._dbName+" because it is open elsewhere")},n.onerror=t=>{a.a.warn("unable to delete js-sdk store indexeddb: "+t.target.error),e()},n.onsuccess=()=>{a.a.log("Removed indexeddb instance: "+this._dbName),e()}})},getSavedSync:function(e){void 0===e&&(e=!0);const t=this._syncAccumulator.getJSON();return t.nextBatch?e?Promise.resolve(r.c(t)):Promise.resolve(t):Promise.resolve(null)},getNextBatchToken:function(){return Promise.resolve(this._syncAccumulator.getNextBatchToken())},setSyncData:function(e){return Promise.resolve().then(()=>{this._syncAccumulator.accumulate(e)})},syncToDatabase:function(e){const t=this._syncAccumulator.getJSON(!0);return Promise.all([this._persistUserPresenceEvents(e),this._persistAccountData(t.accountData),this._persistSyncData(t.nextBatch,t.roomsData,t.groupsData)])},_persistSyncData:function(e,t,n){return a.a.log("Persisting sync data up to ",e),r.x(()=>{const o=this.db.transaction(["sync"],"readwrite");return o.objectStore("sync").put({clobber:"-",nextBatch:e,roomsData:t,groupsData:n}),c(o)})},_persistAccountData:function(e){return r.x(()=>{const t=this.db.transaction(["accountData"],"readwrite"),n=t.objectStore("accountData");for(let t=0;t<e.length;t++)n.put(e[t]);return c(t)})},_persistUserPresenceEvents:function(e){return r.x(()=>{const t=this.db.transaction(["users"],"readwrite"),n=t.objectStore("users");for(const t of e)n.put({userId:t[0],event:t[1]});return c(t)})},getUserPresenceEvents:function(){return r.x(()=>s(this.db.transaction(["users"],"readonly").objectStore("users"),void 0,e=>[e.value.userId,e.value.event]))},_loadAccountData:function(){return a.a.log("LocalIndexedDBStoreBackend: loading account data..."),r.x(()=>s(this.db.transaction(["accountData"],"readonly").objectStore("accountData"),void 0,e=>e.value).then(e=>(a.a.log("LocalIndexedDBStoreBackend: loaded account data"),e)))},_loadSyncData:function(){return a.a.log("LocalIndexedDBStoreBackend: loading sync data..."),r.x(()=>s(this.db.transaction(["sync"],"readonly").objectStore("sync"),void 0,e=>e.value).then(e=>(a.a.log("LocalIndexedDBStoreBackend: loaded sync data"),e.length>1&&a.a.warn("loadSyncData: More than 1 sync row found."),e.length>0?e[0]:{})))},getClientOptions:function(){return Promise.resolve().then(()=>s(this.db.transaction(["client_options"],"readonly").objectStore("client_options"),void 0,e=>{if(e.value&&e.value&&e.value.options)return e.value.options}).then(e=>e[0]))},storeClientOptions:async function(e){const t=this.db.transaction(["client_options"],"readwrite");t.objectStore("client_options").put({clobber:"-",options:e}),await c(t)}}},function(e,t,n){"use strict";var o=n(33);var r=RegExp(Object.keys(o).map((function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")})).join("|"),"g");function i(e){return o[e]}e.exports=function(e){return e.replace(r,i)}},,,,,function(e,t,n){"use strict";(function(e){var o=n(34),r=n(35),i=n(32);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,t,n)}function l(e,t,n,o){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,o){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=h(e,t);return e}(e,t,n,o):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=0|m(t,n),r=(e=s(e,o)).write(t,n);r!==o&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(o=t.length)!=o?s(e,0):h(e,t);if("Buffer"===t.type&&i(t.data))return h(e,t.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var o=0;o<n;o+=1)e[o]=255&t[o];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(o)return j(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function f(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function _(e,t,n,o,r){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=c.from(t,o)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,o,r);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,o,r);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,o,r){var i,a=1,s=e.length,c=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var u=-1;for(i=n;i<s;i++)if(l(e,i)===l(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===c)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){for(var d=!0,h=0;h<c;h++)if(l(e,i+h)!==l(t,h)){d=!1;break}if(d)return i}return-1}function v(e,t,n,o){n=Number(n)||0;var r=e.length-n;o?(o=Number(o))>r&&(o=r):o=r;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var a=0;a<o;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function E(e,t,n,o){return q(j(t,e.length-n),e,n,o)}function y(e,t,n,o){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function S(e,t,n,o){return y(e,t,n,o)}function T(e,t,n,o){return q(G(t),e,n,o)}function w(e,t,n,o){return q(function(e,t){for(var n,o,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),o=n>>8,r=n%256,i.push(r),i.push(o);return i}(t,e.length-n),e,n,o)}function C(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function x(e,t,n){n=Math.min(e.length,n);for(var o=[],r=t;r<n;){var i,a,s,c,l=e[r],u=null,d=l>239?4:l>223?3:l>191?2:1;if(r+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(i=e[r+1]))&&(c=(31&l)<<6|63&i)>127&&(u=c);break;case 3:i=e[r+1],a=e[r+2],128==(192&i)&&128==(192&a)&&(c=(15&l)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[r+1],a=e[r+2],s=e[r+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,o.push(u>>>10&1023|55296),u=56320|1023&u),o.push(u),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=4096));return n}(o)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,o){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof o?s(e,t).fill(n,o):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,o=t.length,r=0,i=Math.min(n,o);r<i;++r)if(e[r]!==t[r]){n=e[r],o=t[r];break}return n<o?-1:o<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=c.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,r),r+=a.length}return o},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?x(this,0,e):g.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,o,r){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===r&&(r=this.length),t<0||n>e.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&t>=n)return 0;if(o>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(r>>>=0)-(o>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(o,r),u=e.slice(t,n),d=0;d<s;++d)if(l[d]!==u[d]){i=l[d],a=u[d];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return _(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return _(this,e,t,n,!1)},c.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return y(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;r<n;++r)o+=String.fromCharCode(127&e[r]);return o}function k(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;r<n;++r)o+=String.fromCharCode(e[r]);return o}function R(e,t,n){var o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var r="",i=t;i<n;++i)r+=B(e[i]);return r}function A(e,t,n){for(var o=e.slice(t,n),r="",i=0;i<o.length;i+=2)r+=String.fromCharCode(o[i]+256*o[i+1]);return r}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,o,r,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<i)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function N(e,t,n,o){t<0&&(t=65535+t+1);for(var r=0,i=Math.min(e.length-n,2);r<i;++r)e[n+r]=(t&255<<8*(o?r:1-r))>>>8*(o?r:1-r)}function F(e,t,n,o){t<0&&(t=4294967295+t+1);for(var r=0,i=Math.min(e.length-n,4);r<i;++r)e[n+r]=t>>>8*(o?r:3-r)&255}function M(e,t,n,o,r,i){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,n,o,i){return i||M(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function L(e,t,n,o,i){return i||M(e,0,n,8),r.write(e,t,n,o,52,8),n+8}c.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var r=t-e;n=new c(r,void 0);for(var i=0;i<r;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var o=this[e],r=1,i=0;++i<t&&(r*=256);)o+=this[e+i]*r;return o},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var o=this[e+--t],r=1;t>0&&(r*=256);)o+=this[e+--t]*r;return o},c.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var o=this[e],r=1,i=0;++i<t&&(r*=256);)o+=this[e+i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var o=t,r=1,i=this[e+--o];o>0&&(r*=256);)i+=this[e+--o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,o){(e=+e,t|=0,n|=0,o)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[t]=255&e;++i<n&&(r*=256);)this[t+i]=e/r&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,o){(e=+e,t|=0,n|=0,o)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,i=1;for(this[t+r]=255&e;--r>=0&&(i*=256);)this[t+r]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return P(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return P(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var r,i=o-n;if(this===e&&n<t&&t<o)for(r=i-1;r>=0;--r)e[r+t]=this[r+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<i;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:j(new c(e,o).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var n;t=t||1/0;for(var o=e.length,r=null,i=[],a=0;a<o;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function G(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,o){for(var r=0;r<o&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(5))},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e){e.exports=JSON.parse('{"0":"O","1":"l","֭":"֖","֮":"֘","֨":"֙","֤":"֚","᪴":"ۛ","⃛":"ۛ","ؙ":"̓","ࣳ":"̓","̓":"̓","̕":"̓","ُ":"̓","ٝ":"̔","֜":"́","֝":"́","ؘ":"́","݇":"́","́":"́","॔":"́","َ":"́","̀":"̀","॓":"̀","̌":"̆","꙼":"̆","٘":"̆","ٚ":"̆","ͮ":"̆","ۨ":"̆̇","̐":"̆̇","ँ":"̆̇","ঁ":"̆̇","ઁ":"̆̇","ଁ":"̆̇","ఀ":"̆̇","ಁ":"̆̇","ഁ":"̆̇","𑒿":"̆̇","᳐":"̂","̑":"̂","ٛ":"̂","߮":"̂","꛰":"̂","֯":"̊","۟":"̊","៓":"̊","゚":"̊","ْ":"̊","ஂ":"̊","ံ":"̊","ំ":"̊","𑌀":"̊","ํ":"̊","ໍ":"̊","ͦ":"̊","ⷪ":"̊","࣫":"̈","߳":"̈","ً":"̋","ࣰ":"̋","͂":"̃","ٓ":"̃","ׄ":"̇","۬":"̇","݀":"̇","࣪":"̇","݁":"̇","͘":"̇","ֹ":"̇","ֺ":"̇","ׂ":"̇","ׁ":"̇","߭":"̇","ं":"̇","ਂ":"̇","ં":"̇","்":"̇","̷":"̸","᪷":"̨","̢":"̨","ͅ":"̨","᳒":"̄","̅":"̄","ٙ":"̄","߫":"̄","꛱":"̄","᳚":"̎","ٗ":"̒","͗":"͐","ࣿ":"͐","ࣸ":"͐","ऀ":"͒","᳭":"̖","᳜":"̩","ٖ":"̩","᳕":"̫","͇":"̳","ࣹ":"͔","ࣺ":"͕","゛":"゙","゜":"゚","̶":"̵","〬":"̉","ׅ":"̣","࣭":"̣","᳝":"̣","ִ":"̣","ٜ":"̣","़":"̣","়":"̣","਼":"̣","઼":"̣","଼":"̣","𑇊":"̣","𑓃":"̣","𐨺":"̣","࣮":"̤","᳞":"̤","༷":"̥","〭":"̥","̧":"̦","̡":"̦","̹":"̦","᳙":"̭","᳘":"̮","॒":"̱","̠":"̱","ࣱ":"ٌ","ࣨ":"ٌ","ࣥ":"ٌ","ﱞ":"ﹲّ","ࣲ":"ٍ","ﱟ":"ﹴّ","ﳲ":"ﹷّ","ﱠ":"ﹶّ","ﳳ":"ﹹّ","ﱡ":"ﹸّ","ؚ":"ِ","̗":"ِ","ﳴ":"ﹻّ","ﱢ":"ﹺّ","ﱣ":"ﹼٰ","ٟ":"ٕ","̍":"ٰ","݂":"ܼ","ਃ":"ঃ","ః":"ঃ","ಃ":"ঃ","ഃ":"ঃ","ඃ":"ঃ","း":"ঃ","𑓁":"ঃ","់":"่","່":"่","້":"้","໊":"๊","໋":"๋","꙯":"⃩","\\u2028":" ","\\u2029":" ","":" "," ":" ","":" ","":" ","":" ","":" ","":" ","":" ","":" ","":" ","":" ","":" "," ":" ","":" ","":" ","ߺ":"_","":"_","":"_","":"_","":"-","":"-","":"-","":"-","":"-","۔":"-","":"-","˗":"-","":"-","":"-","":"-","⨩":"-̓","⸚":"-̈","﬩":"-̇","∸":"-̇","⨪":"-̣","꓾":"-.","":"〜","؍":",","٫":",","":",","¸":",","":",","⸲":"،","٬":"،",";":";","⸵":"؛","":":","":":","":":","։":":","܃":":","܄":":","":":","":":","":":","":":","":":","׃":":","˸":":","":":","":":","ː":":","":":","⩴":"::=","⧴":":→","":"!","ǃ":"!","":"!","‼":"!!","⁉":"!?","ʔ":"?","Ɂ":"?","":"?","":"?","":"?","⁈":"?!","⁇":"??","⸮":"؟","𝅭":".","":".","܁":".","܂":".","":".","𐩐":".","٠":".","۰":".","":".","ꓻ":".,","‥":"..","ꓺ":"..","…":"...","꛴":"꛳꛳","・":"·","・":"·","᛫":"·","·":"·","⸱":"·","𐄁":"·","•":"·","‧":"·","∙":"·","⋅":"·","ꞏ":"·","ᐧ":"·","⋯":"···","ⵈ":"···","ᑄ":"·<","⋗":"·>","ᐷ":"·>","ᑀ":"·>","ᔯ":"·4","ᑾ":"·b","ᒀ":"·ḃ","ᑺ":"·d","ᒘ":"·J","ᒶ":"·L","ᑶ":"·P","ᑗ":"·U","ᐺ":"·V","ᐼ":"·Ʌ","ᒮ":"·Γ","ᐎ":"·Δ","ᑙ":"·Ո","ᐌ":"·ᐁ","ᐐ":"·ᐄ","ᐒ":"·ᐅ","ᐔ":"·ᐆ","ᐗ":"·ᐊ","ᐙ":"·ᐋ","ᐾ":"·ᐲ","ᑂ":"·ᐴ","ᑆ":"·ᐹ","ᑛ":"·ᑏ","ᑔ":"·ᑐ","ᑝ":"·ᑐ","ᑟ":"·ᑑ","ᑡ":"·ᑕ","ᑣ":"·ᑖ","ᑴ":"·ᑫ","ᑸ":"·ᑮ","ᑼ":"·ᑰ","ᒒ":"·ᒉ","ᒔ":"·ᒋ","ᒖ":"·ᒌ","ᒚ":"·ᒎ","ᒜ":"·ᒐ","ᒞ":"·ᒑ","ᒬ":"·ᒣ","ᒰ":"·ᒦ","ᒲ":"·ᒧ","ᒴ":"·ᒨ","ᒸ":"·ᒫ","ᓉ":"·ᓀ","ᣆ":"·ᓂ","ᣈ":"·ᓃ","ᣊ":"·ᓄ","ᣌ":"·ᓅ","ᓋ":"·ᓇ","ᓍ":"·ᓈ","ᓜ":"·ᓓ","ᓞ":"·ᓕ","ᓠ":"·ᓖ","ᓢ":"·ᓗ","ᓤ":"·ᓘ","ᓦ":"·ᓚ","ᓨ":"·ᓛ","ᓶ":"·ᓭ","ᓸ":"·ᓯ","ᓺ":"·ᓰ","ᓼ":"·ᓱ","ᓾ":"·ᓲ","ᔀ":"·ᓴ","ᔂ":"·ᓵ","ᔗ":"·ᔐ","ᔙ":"·ᔑ","ᔛ":"·ᔒ","ᔝ":"·ᔓ","ᔟ":"·ᔔ","ᔡ":"·ᔕ","ᔣ":"·ᔖ","ᔱ":"·ᔨ","ᔳ":"·ᔩ","ᔵ":"·ᔪ","ᔷ":"·ᔫ","ᔹ":"·ᔭ","ᔻ":"·ᔮ","ᣎ":"·ᕃ","ᣏ":"·ᕆ","ᣐ":"·ᕇ","ᣑ":"·ᕈ","ᣒ":"·ᕉ","ᣓ":"·ᕋ","ᕎ":"·ᕌ","ᕛ":"·ᕚ","ᕨ":"·ᕧ","ᢳ":"·ᢱ","ᢶ":"·ᢴ","ᢹ":"·ᢸ","ᣂ":"·ᣀ","꠰":"।","॥":"।।","᰼":"᰻᰻","။":"၊၊","᪩":"᪨᪨","᪫":"᪪᪨","᭟":"᭞᭞","𐩗":"𐩖𐩖","𑑌":"𑑋𑑋","𑙂":"𑙁𑙁","𑱂":"𑱁𑱁","᱿":"᱾᱾","՝":"\'","":"\'","":"\'","":"\'","":"\'","":"\'","":"\'","՚":"\'","׳":"\'","`":"\'","":"\'","":"\'","´":"\'","΄":"\'","":"\'","":"\'","᾿":"\'","":"\'","ʹ":"\'","ʹ":"\'","ˈ":"\'","ˊ":"\'","ˋ":"\'","˴":"\'","ʻ":"\'","ʽ":"\'","ʼ":"\'","ʾ":"\'","":"\'","י":"\'","ߴ":"\'","ߵ":"\'","":"\'","":"\'","𖽑":"\'","𖽒":"\'","᳓":"\'\'","\\"":"\'\'","":"\'\'","“":"\'\'","”":"\'\'","‟":"\'\'","″":"\'\'","‶":"\'\'","〃":"\'\'","״":"\'\'","˝":"\'\'","ʺ":"\'\'","˶":"\'\'","ˮ":"\'\'","ײ":"\'\'","‴":"\'\'\'","‷":"\'\'\'","⁗":"\'\'\'\'","Ɓ":"\'B","Ɗ":"\'D","ʼn":"\'n","Ƥ":"\'P","Ƭ":"\'T","Ƴ":"\'Y","":"(","":"(","":"(","":"(","":"(","⸨":"((","㈠":"(ー)","⑵":"(2)","⒇":"(2O)","⑶":"(3)","⑷":"(4)","⑸":"(5)","⑹":"(6)","⑺":"(7)","⑻":"(8)","⑼":"(9)","⒜":"(a)","🄐":"(A)","⒝":"(b)","🄑":"(B)","⒞":"(c)","🄒":"(C)","⒟":"(d)","🄓":"(D)","⒠":"(e)","🄔":"(E)","⒡":"(f)","🄕":"(F)","⒢":"(g)","🄖":"(G)","⒣":"(h)","🄗":"(H)","⒤":"(i)","⒥":"(j)","🄙":"(J)","⒦":"(k)","🄚":"(K)","⑴":"(l)","🄘":"(l)","⒧":"(l)","🄛":"(L)","⑿":"(l2)","⒀":"(l3)","⒁":"(l4)","⒂":"(l5)","⒃":"(l6)","⒄":"(l7)","⒅":"(l8)","⒆":"(l9)","⑾":"(ll)","⑽":"(lO)","🄜":"(M)","⒩":"(n)","🄝":"(N)","⒪":"(o)","🄞":"(O)","⒫":"(p)","🄟":"(P)","⒬":"(q)","🄠":"(Q)","⒭":"(r)","🄡":"(R)","⒨":"(rn)","⒮":"(s)","🄢":"(S)","🄪":"(S)","⒯":"(t)","🄣":"(T)","⒰":"(u)","🄤":"(U)","⒱":"(v)","🄥":"(V)","⒲":"(w)","🄦":"(W)","⒳":"(x)","🄧":"(X)","⒴":"(y)","🄨":"(Y)","⒵":"(z)","🄩":"(Z)","㈀":"(ᄀ)","㈎":"(가)","㈁":"(ᄂ)","㈏":"(나)","㈂":"(ᄃ)","㈐":"(다)","㈃":"(ᄅ)","㈑":"(라)","㈄":"(ᄆ)","㈒":"(마)","㈅":"(ᄇ)","㈓":"(바)","㈆":"(ᄉ)","㈔":"(사)","㈇":"(ᄋ)","㈕":"(아)","㈝":"(오전)","㈞":"(오후)","㈈":"(ᄌ)","㈖":"(자)","㈜":"(주)","㈉":"(ᄎ)","㈗":"(차)","㈊":"(ᄏ)","㈘":"(카)","㈋":"(ᄐ)","㈙":"(타)","㈌":"(ᄑ)","㈚":"(파)","㈍":"(ᄒ)","㈛":"(하)","㈦":"(七)","㈢":"(三)","🉁":"(三)","㈨":"(九)","㈡":"(二)","🉂":"(二)","㈤":"(五)","㈹":"(代)","㈽":"(企)","㉁":"(休)","㈧":"(八)","㈥":"(六)","㈸":"(労)","🉇":"(勝)","㈩":"(十)","㈿":"(協)","㈴":"(名)","㈺":"(呼)","㈣":"(四)","㈯":"(土)","㈻":"(学)","🉃":"(安)","🉅":"(打)","🉈":"(敗)","㈰":"(日)","㈪":"(月)","㈲":"(有)","㈭":"(木)","🉀":"(本)","㈱":"(株)","㈬":"(水)","㈫":"(火)","🉄":"(点)","㈵":"(特)","🉆":"(盗)","㈼":"(監)","㈳":"(社)","㈷":"(祝)","㉀":"(祭)","㉂":"(自)","㉃":"(至)","㈶":"(財)","㈾":"(資)","㈮":"(金)","":")","":")","":")","":")","﴿":")","⸩":"))","":"{","𝄔":"{","":"}","〚":"⟦","〛":"⟧","⟨":"❬","〈":"❬","〈":"❬","㇛":"❬","く":"❬","𡿨":"❬","⟩":"❭","〉":"❭","〉":"❭","":"︿","⸿":"¶","":"*","٭":"*","":"*","𐌟":"*","":"/","":"/","":"/","":"/","":"/","":"/","":"/","𝈺":"/","":"/","":"/","":"/","":"/","丿":"/","":"/","⧶":"/̄","⫽":"//","⫻":"///","":"\\\\","":"\\\\","":"\\\\","":"\\\\","":"\\\\","":"\\\\","𝈏":"\\\\","𝈻":"\\\\","":"\\\\","":"\\\\","":"\\\\","⳹":"\\\\\\\\","⑊":"\\\\\\\\","⟈":"\\\\ᑕ","":"&","૰":"॰","𑂻":"॰","𑇇":"॰","⚬":"॰","𑇛":"꣼","៙":"๏","៕":"๚","៚":"๛","༌":"་","༎":"།།","˄":"^","ˆ":"^","꙾":"ˇ","˘":"ˇ","‾":"ˉ","﹉":"ˉ","﹊":"ˉ","﹋":"ˉ","﹌":"ˉ","¯":"ˉ"," ̄":"ˉ","▔":"ˉ","ъ":"ˉb","ꙑ":"ˉbi","͵":"ˏ","˻":"˪","꜖":"˪","꜔":"˫","。":"˳","⸰":"°","˚":"°","∘":"°","○":"°","◦":"°","⍜":"°̲","⍤":"°̈","℃":"°C","℉":"°F","௵":"௳","༛":"༚༚","༟":"༚༝","࿎":"༝༚","༞":"༝༝","Ⓒ":"©","Ⓡ":"®","Ⓟ":"℗","𝈛":"⅄","⯬":"↞","⯭":"↟","⯮":"↠","⯯":"↡","↵":"↲","⥥":"⇃⇂","⥯":"⇃ᛚ","𝛛":"∂","𝜕":"∂","𝝏":"∂","𝞉":"∂","𝟃":"∂","𞣌":"∂","𞣍":"∂̵","ð":"∂̵","⌀":"∅","𝛁":"∇","𝛻":"∇","𝜵":"∇","𝝯":"∇","𝞩":"∇","𑢨":"∇","⍢":"∇̈","⍫":"∇̴","█":"∎","■":"∎","⨿":"∐","":"+","":"+","𐊛":"+","⨣":"+̂","⨢":"+̊","⨤":"+̃","∔":"+̇","⨥":"+̣","⨦":"+̰","⨧":"+₂","➗":"÷","":"<","":"<","˂":"<","𝈶":"<","":"<","":"<","⋖":"<·","Ⲵ":"<·","ᑅ":"<·","≪":"<<","⋘":"<<<","":"=","":"=","":"=","":"=","≚":"=̆","≙":"=̂","≗":"=̊","≐":"=̇","≑":"=̣̇","⩮":"=⃰","⩵":"==","⩶":"===","≞":"=ͫ","":">","":">","˃":">","𝈷":">","":">","𖼿":">","ᑁ":">·","⪥":"><","≫":">>","⨠":">>","⋙":">>>","":"~","˜":"~","":"~","":"~","⍨":"~̈","⸞":"~̇","⩪":"~̇","⸟":"~̣","𞣈":"∠","⋀":"∧","∯":"∮∮","∰":"∮∮∮","⸫":"∴","⸪":"∵","⸬":"∷","𑇞":"≈","♎":"≏","🝞":"≏","≣":"≡","⨃":"⊍","⨄":"⊎","𝈸":"⊏","𝈹":"⊐","⨅":"⊓","⨆":"⊔","⨂":"⊗","⍟":"⊛","🝱":"⊠","🝕":"⊡","◁":"⊲","▷":"⊳","⍣":"⋆̈","︴":"⌇","◠":"⌒","⨽":"⌙","⌥":"⌤","⧇":"⌻","◎":"⌾","⦾":"⌾","⧅":"⍂","⦰":"⍉","⏃":"⍋","⏂":"⍎","⏁":"⍕","⏆":"⍭","☸":"⎈","︵":"⏜","︶":"⏝","︷":"⏞","︸":"⏟","︹":"⏠","︺":"⏡","▱":"⏥","⏼":"⏻","︱":"│","":"│","┃":"│","┏":"┌","┣":"├","▐":"▌","▗":"▖","▝":"▘","☐":"□","■":"▪","▸":"▶","►":"▶","⳩":"☧","🜊":"☩","🌒":"☽","🌙":"☽","⏾":"☾","🌘":"☾","⧙":"⦚","🜺":"⧟","⨾":"⨟","𐆠":"⳨","♩":"𝅘𝅥","♪":"𝅘𝅥𝅮","⓪":"🄍","↺":"🄎","˙":"ॱ","ൎ":"ॱ","":"ー","—":"ー","―":"ー","─":"ー","━":"ー","㇐":"ー","ꟷ":"ー","ᅳ":"ー","ㅡ":"ー","一":"ー","⼀":"ー","ᆖ":"ーー","ힹ":"ーᅡ","ힺ":"ーᅥ","ힻ":"ーᅥ丨","ힼ":"ーᅩ","ᆕ":"ーᅮ","ᅴ":"ー丨","ㅢ":"ー丨","ᆗ":"ー丨ᅮ","🄏":"$⃠","₤":"£","〒":"₸","〶":"₸","᭜":"᭐","꧆":"꧐","𑓑":"১","೧":"౧","ၥ":"၁","①":"➀","⑩":"➉","⏨":"₁₀","𝟐":"2","𝟚":"2","𝟤":"2","𝟮":"2","𝟸":"2","🯲":"2","":"2","Ƨ":"2","Ϩ":"2","":"2","":"2","":"2","ꧏ":"٢","۲":"٢","૨":"२","𑓒":"২","೨":"౨","②":"➁","ƻ":"2̵","🄃":"2,","⒉":"2.","㏵":"22日","㍮":"22点","㏶":"23日","㍯":"23点","㏷":"24日","㍰":"24点","㏸":"25日","㏹":"26日","㏺":"27日","㏻":"28日","㏼":"29日","㏴":"2l日","㍭":"2l点","⒛":"2O.","㏳":"2O日","㍬":"2O点","෩":"෨ා","෯":"෨ී","㏡":"2日","㋁":"2月","㍚":"2点","𝈆":"3","𝟑":"3","𝟛":"3","𝟥":"3","𝟯":"3","𝟹":"3","🯳":"3","":"3","Ȝ":"3","Ʒ":"3","":"3","":"3","З":"3","Ӡ":"3","𖼻":"3","𑣊":"3","۳":"٣","𞣉":"٣","૩":"३","③":"➂","Ҙ":"3̦","🄄":"3,","⒊":"3.","㏾":"3l日","㏽":"3O日","㏢":"3日","㋂":"3月","㍛":"3点","𝟒":"4","𝟜":"4","𝟦":"4","𝟰":"4","𝟺":"4","🯴":"4","":"4","𑢯":"4","۴":"٤","૪":"४","④":"➃","🄅":"4,","⒋":"4.","ᔰ":"4·","㏣":"4日","㋃":"4月","㍜":"4点","𝟓":"5","𝟝":"5","𝟧":"5","𝟱":"5","𝟻":"5","🯵":"5","Ƽ":"5","𑢻":"5","⑤":"➄","🄆":"5,","⒌":"5.","㏤":"5日","㋄":"5月","㍝":"5点","𝟔":"6","𝟞":"6","𝟨":"6","𝟲":"6","𝟼":"6","🯶":"6","":"6","б":"6","":"6","𑣕":"6","۶":"٦","𑓖":"৬","⑥":"➅","🄇":"6,","⒍":"6.","㏥":"6日","㋅":"6月","㍞":"6点","𝈒":"7","𝟕":"7","𝟟":"7","𝟩":"7","𝟳":"7","𝟽":"7","🯷":"7","𐓒":"7","𑣆":"7","⑦":"➆","🄈":"7,","⒎":"7.","㏦":"7日","㋆":"7月","㍟":"7点","":"8","":"8","":"8","𞣋":"8","𝟖":"8","𝟠":"8","𝟪":"8","𝟴":"8","𝟾":"8","🯸":"8","ȣ":"8","Ȣ":"8","𐌚":"8","૮":"८","⑧":"➇","🄉":"8,","⒏":"8.","㏧":"8日","㋇":"8月","㍠":"8点","":"9","":"9","":"9","":"9","𝟗":"9","𝟡":"9","𝟫":"9","𝟵":"9","𝟿":"9","🯹":"9","":"9","":"9","𑣌":"9","𑢬":"9","𑣖":"9","१":"٩","𑣤":"٩","۹":"٩","೯":"౯","⑨":"➈","🄊":"9,","⒐":"9.","㏨":"9日","㋈":"9月","㍡":"9点","":"a","":"a","𝐚":"a","𝑎":"a","𝒂":"a","𝒶":"a","𝓪":"a","𝔞":"a","𝕒":"a","𝖆":"a","𝖺":"a","𝗮":"a","𝘢":"a","𝙖":"a","𝚊":"a","ɑ":"a","α":"a","𝛂":"a","𝛼":"a","𝜶":"a","𝝰":"a","𝞪":"a","а":"a","ⷶ":"ͣ","":"A","𝐀":"A","𝐴":"A","𝑨":"A","𝒜":"A","𝓐":"A","𝔄":"A","𝔸":"A","𝕬":"A","𝖠":"A","𝗔":"A","𝘈":"A","𝘼":"A","𝙰":"A","Α":"A","𝚨":"A","𝛢":"A","𝜜":"A","𝝖":"A","𝞐":"A","А":"A","":"A","":"A","":"A","𖽀":"A","𐊠":"A","⍶":"a̲","ǎ":"ă","Ǎ":"Ă","ȧ":"å","Ȧ":"Å","ẚ":"ả","℀":"a/c","℁":"a/s","ꜳ":"aa","Ꜳ":"AA","æ":"ae","ӕ":"ae","Æ":"AE","Ӕ":"AE","ꜵ":"ao","Ꜵ":"AO","🜇":"AR","ꜷ":"au","Ꜷ":"AU","ꜹ":"av","ꜻ":"av","Ꜹ":"AV","Ꜻ":"AV","ꜽ":"ay","Ꜽ":"AY","ꭺ":"ᴀ","∀":"Ɐ","𝈗":"Ɐ","ᗄ":"Ɐ","ꓯ":"Ɐ","𐐟":"Ɒ","𝐛":"b","𝑏":"b","𝒃":"b","𝒷":"b","𝓫":"b","𝔟":"b","𝕓":"b","𝖇":"b","𝖻":"b","𝗯":"b","𝘣":"b","𝙗":"b","𝚋":"b","Ƅ":"b","Ь":"b","":"b","":"b","":"b","":"B","":"B","𝐁":"B","𝐵":"B","𝑩":"B","𝓑":"B","𝔅":"B","𝔹":"B","𝕭":"B","𝖡":"B","𝗕":"B","𝘉":"B","𝘽":"B","𝙱":"B","":"B","Β":"B","𝚩":"B","𝛣":"B","𝜝":"B","𝝗":"B","𝞑":"B","В":"B","":"B","":"B","":"B","𐊂":"B","𐊡":"B","𐌁":"B","ɓ":"b̔","ᑳ":"ḃ","ƃ":"b̄","Ƃ":"b̄","Б":"b̄","ƀ":"b̵","ҍ":"b̵","Ҍ":"b̵","ѣ":"b̵","Ѣ":"b̵","ᑿ":"b·","ᒁ":"ḃ·","ᒈ":"b\'","Ы":"bl","в":"ʙ","ᏼ":"ʙ","":"c","":"c","𝐜":"c","𝑐":"c","𝒄":"c","𝒸":"c","𝓬":"c","𝔠":"c","𝕔":"c","𝖈":"c","𝖼":"c","𝗰":"c","𝘤":"c","𝙘":"c","𝚌":"c","":"c","ϲ":"c","":"c","с":"c","":"c","𐐽":"c","ⷭ":"ͨ","🝌":"C","𑣲":"C","𑣩":"C","":"C","":"C","":"C","":"C","𝐂":"C","𝐶":"C","𝑪":"C","𝒞":"C","𝓒":"C","𝕮":"C","𝖢":"C","𝗖":"C","𝘊":"C","𝘾":"C","𝙲":"C","Ϲ":"C","":"C","С":"C","":"C","":"C","𐊢":"C","𐌂":"C","𐐕":"C","𐔜":"C","¢":"c̸","ȼ":"c̸","₡":"C⃫","🅮":"C⃠","ç":"c̦","ҫ":"c̦","Ç":"C̦","Ҫ":"C̦","Ƈ":"C\'","℅":"c/o","℆":"c/u","🅭":"㏄\\t⃝","⋴":"ꞓ","ɛ":"ꞓ","ε":"ꞓ","ϵ":"ꞓ","𝛆":"ꞓ","𝛜":"ꞓ","𝜀":"ꞓ","𝜖":"ꞓ","𝜺":"ꞓ","𝝐":"ꞓ","𝝴":"ꞓ","𝞊":"ꞓ","𝞮":"ꞓ","𝟄":"ꞓ","ⲉ":"ꞓ","є":"ꞓ","ԑ":"ꞓ","ꮛ":"ꞓ","𑣎":"ꞓ","𐐩":"ꞓ","€":"Ꞓ","Ⲉ":"Ꞓ","Є":"Ꞓ","⍷":"ꞓ̲","ͽ":"ꜿ","Ͽ":"Ꜿ","":"d","":"d","𝐝":"d","𝑑":"d","𝒅":"d","𝒹":"d","𝓭":"d","𝔡":"d","𝕕":"d","𝖉":"d","𝖽":"d","𝗱":"d","𝘥":"d","𝙙":"d","𝚍":"d","ԁ":"d","":"d","":"d","":"d","":"D","":"D","𝐃":"D","𝐷":"D","𝑫":"D","𝒟":"D","𝓓":"D","𝔇":"D","𝔻":"D","𝕯":"D","𝖣":"D","𝗗":"D","𝘋":"D","𝘿":"D","𝙳":"D","":"D","":"D","":"D","":"D","ɗ":"d̔","ɖ":"d̨","ƌ":"d̄","đ":"d̵","Đ":"D̵","Ð":"D̵","Ɖ":"D̵","₫":"ḏ̵","ꝺ":"Ꝺ","ᑻ":"d·","ᒇ":"d\'","ʤ":"dȝ","dz":"dz","ʣ":"dz","Dz":"Dz","DZ":"DZ","dž":"dž","Dž":"Dž","DŽ":"DŽ","ʥ":"dʑ","ꭰ":"ᴅ","⸹":"ẟ","δ":"ẟ","𝛅":"ẟ","𝛿":"ẟ","𝜹":"ẟ","𝝳":"ẟ","𝞭":"ẟ","ծ":"ẟ","ᕷ":"ẟ","":"e","":"e","":"e","":"e","𝐞":"e","𝑒":"e","𝒆":"e","𝓮":"e","𝔢":"e","𝕖":"e","𝖊":"e","𝖾":"e","𝗲":"e","𝘦":"e","𝙚":"e","𝚎":"e","":"e","е":"e","ҽ":"e","ⷷ":"ͤ","":"E","":"E","":"E","𝐄":"E","𝐸":"E","𝑬":"E","𝓔":"E","𝔈":"E","𝔼":"E","𝕰":"E","𝖤":"E","𝗘":"E","𝘌":"E","𝙀":"E","𝙴":"E","Ε":"E","𝚬":"E","𝛦":"E","𝜠":"E","𝝚":"E","𝞔":"E","Е":"E","":"E","":"E","":"E","𑢦":"E","𑢮":"E","𐊆":"E","ě":"ĕ","Ě":"Ĕ","ɇ":"e̸","Ɇ":"E̸","ҿ":"ę","ꭼ":"ᴇ","ə":"ǝ","ә":"ǝ","∃":"Ǝ","ⴺ":"Ǝ","ꓱ":"Ǝ","ɚ":"ǝ˞","ᴔ":"ǝo","ꭁ":"ǝo̸","ꭂ":"ǝo̵","Ә":"Ə","𝈡":"Ɛ","ℇ":"Ɛ","Ԑ":"Ɛ","Ꮛ":"Ɛ","𖼭":"Ɛ","𐐁":"Ɛ","ᶟ":"ᵋ","ᴈ":"ɜ","з":"ɜ","ҙ":"ɜ̦","𐑂":"ɞ","ꞝ":"ʚ","𐐪":"ʚ","𝐟":"f","𝑓":"f","𝒇":"f","𝒻":"f","𝓯":"f","𝔣":"f","𝕗":"f","𝖋":"f","𝖿":"f","𝗳":"f","𝘧":"f","𝙛":"f","𝚏":"f","":"f","":"f","ſ":"f","":"f","ք":"f","𝈓":"F","":"F","𝐅":"F","𝐹":"F","𝑭":"F","𝓕":"F","𝔉":"F","𝔽":"F","𝕱":"F","𝖥":"F","𝗙":"F","𝘍":"F","𝙁":"F","𝙵":"F","":"F","Ϝ":"F","𝟊":"F","":"F","":"F","𑣂":"F","𑢢":"F","𐊇":"F","𐊥":"F","𐔥":"F","ƒ":"f̦","Ƒ":"F̦","ᵮ":"f̴","℻":"FAX","ff":"ff","ffi":"ffi","ffl":"ffl","fi":"fi","fl":"fl","ʩ":"fŋ","ᖵ":"Ⅎ","ꓞ":"Ⅎ","𝈰":"ꟻ","ᖷ":"ꟻ","":"g","":"g","𝐠":"g","𝑔":"g","𝒈":"g","𝓰":"g","𝔤":"g","𝕘":"g","𝖌":"g","𝗀":"g","𝗴":"g","𝘨":"g","𝙜":"g","𝚐":"g","ɡ":"g","":"g","ƍ":"g","ց":"g","𝐆":"G","𝐺":"G","𝑮":"G","𝒢":"G","𝓖":"G","𝔊":"G","𝔾":"G","𝕲":"G","𝖦":"G","𝗚":"G","𝘎":"G","𝙂":"G","𝙶":"G","Ԍ":"G","":"G","":"G","":"G","ᶢ":"ᵍ","ɠ":"g̔","ǧ":"ğ","Ǧ":"Ğ","ǵ":"ģ","ǥ":"g̵","Ǥ":"G̵","Ɠ":"G\'","ԍ":"ɢ","ꮐ":"ɢ","ᏻ":"ɢ","":"h","":"h","𝐡":"h","𝒉":"h","𝒽":"h","𝓱":"h","𝔥":"h","𝕙":"h","𝖍":"h","𝗁":"h","𝗵":"h","𝘩":"h","𝙝":"h","𝚑":"h","һ":"h","հ":"h","":"h","":"H","":"H","":"H","":"H","𝐇":"H","𝐻":"H","𝑯":"H","𝓗":"H","𝕳":"H","𝖧":"H","𝗛":"H","𝘏":"H","𝙃":"H","𝙷":"H","Η":"H","𝚮":"H","𝛨":"H","𝜢":"H","𝝜":"H","𝞖":"H","":"H","Н":"H","":"H","":"H","":"H","𐋏":"H","ᵸ":"ᴴ","ɦ":"h̔","ꚕ":"h̔","Ᏺ":"h̔","Ⱨ":"H̩","Ң":"H̩","ħ":"h̵","ℏ":"h̵","ћ":"h̵","Ħ":"H̵","Ӊ":"H̦","Ӈ":"H̦","н":"ʜ","ꮋ":"ʜ","ң":"ʜ̩","ӊ":"ʜ̦","ӈ":"ʜ̦","Ԋ":"Ƕ","ꮀ":"ⱶ","Ͱ":"Ⱶ","Ꭸ":"Ⱶ","Ꮀ":"Ⱶ","ꚱ":"Ⱶ","ꞕ":"ꜧ","˛":"i","":"i","":"i","":"i","":"i","":"i","𝐢":"i","𝑖":"i","𝒊":"i","𝒾":"i","𝓲":"i","𝔦":"i","𝕚":"i","𝖎":"i","𝗂":"i","𝗶":"i","𝘪":"i","𝙞":"i","𝚒":"i","ı":"i","𝚤":"i","ɪ":"i","ɩ":"i","ι":"i","":"i","ͺ":"i","𝛊":"i","𝜄":"i","𝜾":"i","𝝸":"i","𝞲":"i","і":"i","":"i","ӏ":"i","":"i","":"i","𑣃":"i","ⓛ":"Ⓘ","⍸":"i̲","ǐ":"ĭ","Ǐ":"Ĭ","ɨ":"i̵","ᵻ":"i̵","ᵼ":"i̵","ⅱ":"ii","ⅲ":"iii","ij":"ij","ⅳ":"iv","ⅸ":"ix","":"j","":"j","𝐣":"j","𝑗":"j","𝒋":"j","𝒿":"j","𝓳":"j","𝔧":"j","𝕛":"j","𝖏":"j","𝗃":"j","𝗷":"j","𝘫":"j","𝙟":"j","𝚓":"j","ϳ":"j","ј":"j","":"J","𝐉":"J","𝐽":"J","𝑱":"J","𝒥":"J","𝓙":"J","𝔍":"J","𝕁":"J","𝕵":"J","𝖩":"J","𝗝":"J","𝘑":"J","𝙅":"J","𝙹":"J","":"J","Ϳ":"J","Ј":"J","":"J","":"J","":"J","ɉ":"j̵","Ɉ":"J̵","ᒙ":"J·","𝚥":"ȷ","յ":"ȷ","ꭻ":"ᴊ","𝐤":"k","𝑘":"k","𝒌":"k","𝓀":"k","𝓴":"k","𝔨":"k","𝕜":"k","𝖐":"k","𝗄":"k","𝗸":"k","𝘬":"k","𝙠":"k","𝚔":"k","":"K","":"K","𝐊":"K","𝐾":"K","𝑲":"K","𝒦":"K","𝓚":"K","𝔎":"K","𝕂":"K","𝕶":"K","𝖪":"K","𝗞":"K","𝘒":"K","𝙆":"K","𝙺":"K","Κ":"K","𝚱":"K","𝛫":"K","𝜥":"K","𝝟":"K","𝞙":"K","":"K","К":"K","":"K","":"K","":"K","𐔘":"K","ƙ":"k̔","Ⱪ":"K̩","Қ":"K̩","₭":"K̵","Ꝁ":"K̵","Ҟ":"K̵","Ƙ":"K\'","׀":"l","|":"l","":"l","":"l","":"l","١":"l","۱":"l","𐌠":"l","𞣇":"l","𝟏":"l","𝟙":"l","𝟣":"l","𝟭":"l","𝟷":"l","🯱":"l","I":"l","":"l","":"l","":"l","":"l","𝐈":"l","𝐼":"l","𝑰":"l","𝓘":"l","𝕀":"l","𝕴":"l","𝖨":"l","𝗜":"l","𝘐":"l","𝙄":"l","𝙸":"l","Ɩ":"l","":"l","":"l","":"l","𝐥":"l","𝑙":"l","𝒍":"l","𝓁":"l","𝓵":"l","𝔩":"l","𝕝":"l","𝖑":"l","𝗅":"l","𝗹":"l","𝘭":"l","𝙡":"l","𝚕":"l","ǀ":"l","Ι":"l","𝚰":"l","𝛪":"l","𝜤":"l","𝝞":"l","𝞘":"l","":"l","І":"l","Ӏ":"l","ו":"l","ן":"l","ا":"l","𞸀":"l","𞺀":"l","":"l","":"l","ߊ":"l","":"l","":"l","":"l","𖼨":"l","𐊊":"l","𐌉":"l","𝈪":"L","":"L","":"L","𝐋":"L","𝐿":"L","𝑳":"L","𝓛":"L","𝔏":"L","𝕃":"L","𝕷":"L","𝖫":"L","𝗟":"L","𝘓":"L","𝙇":"L","𝙻":"L","":"L","":"L","":"L","":"L","𖼖":"L","𑢣":"L","𑢲":"L","𐐛":"L","𐔦":"L","ﴼ":"l̋","ﴽ":"l̋","ł":"l̸","Ł":"L̸","ɭ":"l̨","Ɨ":"l̵","ƚ":"l̵","ɫ":"l̴","إ":"lٕ","ﺈ":"lٕ","ﺇ":"lٕ","ٳ":"lٕ","ŀ":"l·","Ŀ":"l·","ᒷ":"l·","🄂":"l,","⒈":"l.","ױ":"l\'","⒓":"l2.","㏫":"l2日","㋋":"l2月","㍤":"l2点","⒔":"l3.","㏬":"l3日","㍥":"l3点","⒕":"l4.","㏭":"l4日","㍦":"l4点","⒖":"l5.","㏮":"l5日","㍧":"l5点","⒗":"l6.","㏯":"l6日","㍨":"l6点","⒘":"l7.","㏰":"l7日","㍩":"l7点","⒙":"l8.","㏱":"l8日","㍪":"l8点","⒚":"l9.","㏲":"l9日","㍫":"l9点","lj":"lj","IJ":"lJ","Lj":"Lj","LJ":"LJ","‖":"ll","∥":"ll","Ⅱ":"ll","ǁ":"ll","װ":"ll","𐆙":"l̵l̵","⒒":"ll.","Ⅲ":"lll","𐆘":"l̵l̵S̵","㏪":"ll日","㋊":"ll月","㍣":"ll点","Ю":"lO","⒑":"lO.","㏩":"lO日","㋉":"lO月","㍢":"lO点","ʪ":"ls","₶":"lt","Ⅳ":"lV","Ⅸ":"lX","ɮ":"lȝ","ʫ":"lz","أ":"lٴ","ﺄ":"lٴ","ﺃ":"lٴ","ٲ":"lٴ","ٵ":"lٴ","ﷳ":"lكبر","ﷲ":"lللّٰo","㏠":"l日","㋀":"l月","㍙":"l点","ⳑ":"ʟ","ꮮ":"ʟ","𐑃":"ʟ","":"M","":"M","":"M","𝐌":"M","𝑀":"M","𝑴":"M","𝓜":"M","𝔐":"M","𝕄":"M","𝕸":"M","𝖬":"M","𝗠":"M","𝘔":"M","𝙈":"M","𝙼":"M","Μ":"M","𝚳":"M","𝛭":"M","𝜧":"M","𝝡":"M","𝞛":"M","Ϻ":"M","":"M","М":"M","":"M","":"M","":"M","":"M","𐊰":"M","𐌑":"M","Ӎ":"M̦","🝫":"MB","ⷨ":"ᷟ","𝐧":"n","𝑛":"n","𝒏":"n","𝓃":"n","𝓷":"n","𝔫":"n","𝕟":"n","𝖓":"n","𝗇":"n","𝗻":"n","𝘯":"n","𝙣":"n","𝚗":"n","ո":"n","ռ":"n","":"N","":"N","𝐍":"N","𝑁":"N","𝑵":"N","𝒩":"N","𝓝":"N","𝔑":"N","𝕹":"N","𝖭":"N","𝗡":"N","𝘕":"N","𝙉":"N","𝙽":"N","Ν":"N","𝚴":"N","𝛮":"N","𝜨":"N","𝝢":"N","𝞜":"N","":"N","":"N","𐔓":"N","𐆎":"N̊","ɳ":"n̨","ƞ":"n̩","η":"n̩","𝛈":"n̩","𝜂":"n̩","𝜼":"n̩","𝝶":"n̩","𝞰":"n̩","Ɲ":"N̦","ᵰ":"n̴","nj":"nj","Nj":"Nj","NJ":"NJ","№":"No","ͷ":"ᴎ","и":"ᴎ","𐑍":"ᴎ","ņ":"ɲ","":"o","":"o","":"o","":"o","":"o","":"o","":"o","":"o","":"o","":"o","":"o","":"o","":"o","":"o","٥":"o","۵":"o","":"o","":"o","𝐨":"o","𝑜":"o","𝒐":"o","𝓸":"o","𝔬":"o","𝕠":"o","𝖔":"o","𝗈":"o","𝗼":"o","𝘰":"o","𝙤":"o","𝚘":"o","":"o","":"o","":"o","ο":"o","𝛐":"o","𝜊":"o","𝝄":"o","𝝾":"o","𝞸":"o","σ":"o","𝛔":"o","𝜎":"o","𝝈":"o","𝞂":"o","𝞼":"o","":"o","о":"o","":"o","օ":"o","ס":"o","ه":"o","𞸤":"o","𞹤":"o","𞺄":"o","":"o","":"o","":"o","":"o","ھ":"o","":"o","":"o","":"o","":"o","ہ":"o","":"o","":"o","":"o","":"o","ە":"o","":"o","":"o","𐓪":"o","𑣈":"o","𑣗":"o","𐐬":"o","߀":"O","":"O","":"O","":"O","𑓐":"O","𑣠":"O","𝟎":"O","𝟘":"O","𝟢":"O","𝟬":"O","𝟶":"O","🯰":"O","":"O","𝐎":"O","𝑂":"O","𝑶":"O","𝒪":"O","𝓞":"O","𝔒":"O","𝕆":"O","𝕺":"O","𝖮":"O","𝗢":"O","𝘖":"O","𝙊":"O","𝙾":"O","Ο":"O","𝚶":"O","𝛰":"O","𝜪":"O","𝝤":"O","𝞞":"O","":"O","О":"O","Օ":"O","":"O","":"O","":"O","𐓂":"O","":"O","𑢵":"O","𐊒":"O","𐊫":"O","𐐄":"O","𐔖":"O","⁰":"º","ᵒ":"º","ǒ":"ŏ","Ǒ":"Ŏ","ۿ":"ô","Ő":"Ö","ø":"o̸","ꬾ":"o̸","Ø":"O̸","ⵁ":"O̸","Ǿ":"Ó̸","ɵ":"o̵","ꝋ":"o̵","ө":"o̵","ѳ":"o̵","ꮎ":"o̵","ꮻ":"o̵","⊖":"O̵","⊝":"O̵","⍬":"O̵","𝈚":"O̵","🜔":"O̵","Ɵ":"O̵","Ꝋ":"O̵","θ":"O̵","ϑ":"O̵","𝛉":"O̵","𝛝":"O̵","𝜃":"O̵","𝜗":"O̵","𝜽":"O̵","𝝑":"O̵","𝝷":"O̵","𝞋":"O̵","𝞱":"O̵","𝟅":"O̵","Θ":"O̵","ϴ":"O̵","𝚯":"O̵","𝚹":"O̵","𝛩":"O̵","𝛳":"O̵","𝜣":"O̵","𝜭":"O̵","𝝝":"O̵","𝝧":"O̵","𝞗":"O̵","𝞡":"O̵","Ө":"O̵","Ѳ":"O̵","ⴱ":"O̵","Ꮎ":"O̵","Ꮻ":"O̵","ꭴ":"ơ","ﳙ":"oٰ","🄁":"O,","🄀":"O.","ơ":"o\'","Ơ":"O\'","Ꭴ":"O\'","%":"º/₀","٪":"º/₀","⁒":"º/₀","‰":"º/₀₀","؉":"º/₀₀","‱":"º/₀₀₀","؊":"º/₀₀₀","œ":"oe","Œ":"OE","ɶ":"oᴇ","∞":"oo","ꝏ":"oo","ꚙ":"oo","Ꝏ":"OO","Ꚙ":"OO","ﳗ":"oج","ﱑ":"oج","ﳘ":"oم","ﱒ":"oم","ﶓ":"oمج","ﶔ":"oمم","ﱓ":"oى","ﱔ":"oى","ൟ":"oരo","တ":"oာ","㍘":"O点","ↄ":"ɔ","ᴐ":"ɔ","ͻ":"ɔ","𐑋":"ɔ","Ↄ":"Ɔ","Ͻ":"Ɔ","ꓛ":"Ɔ","𐐣":"Ɔ","ꬿ":"ɔ̸","ꭢ":"ɔe","𐐿":"ɷ","":"p","":"p","𝐩":"p","𝑝":"p","𝒑":"p","𝓅":"p","𝓹":"p","𝔭":"p","𝕡":"p","𝖕":"p","𝗉":"p","𝗽":"p","𝘱":"p","𝙥":"p","𝚙":"p","ρ":"p","ϱ":"p","𝛒":"p","𝛠":"p","𝜌":"p","𝜚":"p","𝝆":"p","𝝔":"p","𝞀":"p","𝞎":"p","𝞺":"p","𝟈":"p","":"p","р":"p","":"P","":"P","𝐏":"P","𝑃":"P","𝑷":"P","𝒫":"P","𝓟":"P","𝔓":"P","𝕻":"P","𝖯":"P","𝗣":"P","𝘗":"P","𝙋":"P","𝙿":"P","Ρ":"P","𝚸":"P","𝛲":"P","𝜬":"P","𝝦":"P","𝞠":"P","":"P","Р":"P","":"P","":"P","":"P","𐊕":"P","ƥ":"p̔","ᵽ":"p̵","ᑷ":"p·","ᒆ":"P\'","ᴩ":"ᴘ","ꮲ":"ᴘ","φ":"ɸ","ϕ":"ɸ","𝛗":"ɸ","𝛟":"ɸ","𝜑":"ɸ","𝜙":"ɸ","𝝋":"ɸ","𝝓":"ɸ","𝞅":"ɸ","𝞍":"ɸ","𝞿":"ɸ","𝟇":"ɸ","ⲫ":"ɸ","ф":"ɸ","𝐪":"q","𝑞":"q","𝒒":"q","𝓆":"q","𝓺":"q","𝔮":"q","𝕢":"q","𝖖":"q","𝗊":"q","𝗾":"q","𝘲":"q","𝙦":"q","𝚚":"q","ԛ":"q","գ":"q","զ":"q","":"Q","𝐐":"Q","𝑄":"Q","𝑸":"Q","𝒬":"Q","𝓠":"Q","𝔔":"Q","𝕼":"Q","𝖰":"Q","𝗤":"Q","𝘘":"Q","𝙌":"Q","𝚀":"Q","":"Q","ʠ":"q̔","🜀":"QE","ᶐ":"ɋ","ᴋ":"ĸ","κ":"ĸ","ϰ":"ĸ","𝛋":"ĸ","𝛞":"ĸ","𝜅":"ĸ","𝜘":"ĸ","𝜿":"ĸ","𝝒":"ĸ","𝝹":"ĸ","𝞌":"ĸ","𝞳":"ĸ","𝟆":"ĸ","ⲕ":"ĸ","к":"ĸ","ꮶ":"ĸ","қ":"ĸ̩","ҟ":"ĸ̵","𝐫":"r","𝑟":"r","𝒓":"r","𝓇":"r","𝓻":"r","𝔯":"r","𝕣":"r","𝖗":"r","𝗋":"r","𝗿":"r","𝘳":"r","𝙧":"r","𝚛":"r","":"r","":"r","":"r","":"r","г":"r","":"r","𝈖":"R","":"R","":"R","":"R","𝐑":"R","𝑅":"R","𝑹":"R","𝓡":"R","𝕽":"R","𝖱":"R","𝗥":"R","𝘙":"R","𝙍":"R","𝚁":"R","Ʀ":"R","":"R","":"R","𐒴":"R","":"R","":"R","𖼵":"R","ɽ":"r̨","ɼ":"r̩","ɍ":"r̵","ғ":"r̵","ᵲ":"r̴","ґ":"r\'","𑣣":"rn","m":"rn","ⅿ":"rn","𝐦":"rn","𝑚":"rn","𝒎":"rn","𝓂":"rn","𝓶":"rn","𝔪":"rn","𝕞":"rn","𝖒":"rn","𝗆":"rn","𝗺":"rn","𝘮":"rn","𝙢":"rn","𝚖":"rn","𑜀":"rn","₥":"rn̸","ɱ":"rn̦","ᵯ":"rn̴","₨":"Rs","ꭱ":"ʀ","ꮢ":"ʀ","я":"ᴙ","ᵳ":"ɾ̴","℩":"ɿ","":"s","𝐬":"s","𝑠":"s","𝒔":"s","𝓈":"s","𝓼":"s","𝔰":"s","𝕤":"s","𝖘":"s","𝗌":"s","𝘀":"s","𝘴":"s","𝙨":"s","𝚜":"s","":"s","ƽ":"s","ѕ":"s","":"s","𑣁":"s","𐑈":"s","":"S","𝐒":"S","𝑆":"S","𝑺":"S","𝒮":"S","𝓢":"S","𝔖":"S","𝕊":"S","𝕾":"S","𝖲":"S","𝗦":"S","𝘚":"S","𝙎":"S","𝚂":"S","Ѕ":"S","Տ":"S","":"S","":"S","":"S","𖼺":"S","𐊖":"S","𐐠":"S","ʂ":"s̨","ᵴ":"s̴","ꞵ":"ß","β":"ß","ϐ":"ß","𝛃":"ß","𝛽":"ß","𝜷":"ß","𝝱":"ß","𝞫":"ß","Ᏸ":"ß","🝜":"sss","st":"st","∫":"ʃ","ꭍ":"ʃ","∑":"Ʃ","⅀":"Ʃ","Σ":"Ʃ","𝚺":"Ʃ","𝛴":"Ʃ","𝜮":"Ʃ","𝝨":"Ʃ","𝞢":"Ʃ","ⵉ":"Ʃ","∬":"ʃʃ","∭":"ʃʃʃ","⨌":"ʃʃʃʃ","𝐭":"t","𝑡":"t","𝒕":"t","𝓉":"t","𝓽":"t","𝔱":"t","𝕥":"t","𝖙":"t","𝗍":"t","𝘁":"t","𝘵":"t","𝙩":"t","𝚝":"t","":"T","":"T","🝨":"T","":"T","𝐓":"T","𝑇":"T","𝑻":"T","𝒯":"T","𝓣":"T","𝔗":"T","𝕋":"T","𝕿":"T","𝖳":"T","𝗧":"T","𝘛":"T","𝙏":"T","𝚃":"T","Τ":"T","𝚻":"T","𝛵":"T","𝜯":"T","𝝩":"T","𝞣":"T","":"T","Т":"T","":"T","":"T","𖼊":"T","𑢼":"T","𐊗":"T","𐊱":"T","𐌕":"T","ƭ":"t̔","⍡":"T̈","Ⱦ":"T̸","Ț":"Ţ","Ʈ":"T̨","Ҭ":"T̩","₮":"T⃫","ŧ":"t̵","Ŧ":"T̵","ᵵ":"t̴","Ⴀ":"Ꞇ","Ꜩ":"T3","ʨ":"tɕ","℡":"TEL","ꝷ":"tf","ʦ":"ts","ʧ":"tʃ","ꜩ":"tȝ","τ":"ᴛ","𝛕":"ᴛ","𝜏":"ᴛ","𝝉":"ᴛ","𝞃":"ᴛ","𝞽":"ᴛ","т":"ᴛ","ꭲ":"ᴛ","ҭ":"ᴛ̩","ţ":"ƫ","ț":"ƫ","Ꮏ":"ƫ","𝐮":"u","𝑢":"u","𝒖":"u","𝓊":"u","𝓾":"u","𝔲":"u","𝕦":"u","𝖚":"u","𝗎":"u","𝘂":"u","𝘶":"u","𝙪":"u","𝚞":"u","":"u","":"u","":"u","":"u","ʋ":"u","υ":"u","𝛖":"u","𝜐":"u","𝝊":"u","𝞄":"u","𝞾":"u","ս":"u","𐓶":"u","𑣘":"u","":"U","":"U","𝐔":"U","𝑈":"U","𝑼":"U","𝒰":"U","𝓤":"U","𝔘":"U","𝕌":"U","𝖀":"U","𝖴":"U","𝗨":"U","𝘜":"U","𝙐":"U","𝚄":"U","Ս":"U","":"U","𐓎":"U","":"U","":"U","𖽂":"U","𑢸":"U","ǔ":"ŭ","Ǔ":"Ŭ","ᵾ":"u̵","ꮜ":"u̵","Ʉ":"U̵","Ꮜ":"U̵","ᑘ":"U·","ᑧ":"U\'","ᵫ":"ue","ꭣ":"uo","ṃ":"ꭑ","պ":"ɰ","ሣ":"ɰ","℧":"Ʊ","ᘮ":"Ʊ","ᘴ":"Ʊ","ᵿ":"ʊ̵","":"v","":"v","":"v","":"v","𝐯":"v","𝑣":"v","𝒗":"v","𝓋":"v","𝓿":"v","𝔳":"v","𝕧":"v","𝖛":"v","𝗏":"v","𝘃":"v","𝘷":"v","𝙫":"v","𝚟":"v","":"v","ν":"v","𝛎":"v","𝜈":"v","𝝂":"v","𝝼":"v","𝞶":"v","ѵ":"v","ט":"v","𑜆":"v","":"v","𑣀":"v","𝈍":"V","٧":"V","۷":"V","":"V","𝐕":"V","𝑉":"V","𝑽":"V","𝒱":"V","𝓥":"V","𝔙":"V","𝕍":"V","𝖁":"V","𝖵":"V","𝗩":"V","𝘝":"V","𝙑":"V","𝚅":"V","Ѵ":"V","":"V","":"V","":"V","":"V","":"V","𖼈":"V","𑢠":"V","𐔝":"V","𐆗":"V̵","ᐻ":"V·","🝬":"VB","ⅵ":"vi","ⅶ":"vii","ⅷ":"viii","Ⅵ":"Vl","Ⅶ":"Vll","Ⅷ":"Vlll","🜈":"Vᷤ","ᴧ":"ʌ","𐓘":"ʌ","٨":"Ʌ","۸":"Ʌ","Λ":"Ʌ","𝚲":"Ʌ","𝛬":"Ʌ","𝜦":"Ʌ","𝝠":"Ʌ","𝞚":"Ʌ","Л":"Ʌ","ⴷ":"Ʌ","𐒰":"Ʌ","ᐱ":"Ʌ","ꛎ":"Ʌ","ꓥ":"Ʌ","𖼽":"Ʌ","𐊍":"Ʌ","Ӆ":"Ʌ̦","ᐽ":"Ʌ·","ɯ":"w","𝐰":"w","𝑤":"w","𝒘":"w","𝓌":"w","𝔀":"w","𝔴":"w","𝕨":"w","𝖜":"w","𝗐":"w","𝘄":"w","𝘸":"w","𝙬":"w","𝚠":"w","":"w","ѡ":"w","ԝ":"w","ա":"w","𑜊":"w","𑜎":"w","𑜏":"w","":"w","𑣯":"W","𑣦":"W","𝐖":"W","𝑊":"W","𝑾":"W","𝒲":"W","𝓦":"W","𝔚":"W","𝕎":"W","𝖂":"W","𝖶":"W","𝗪":"W","𝘞":"W","𝙒":"W","𝚆":"W","Ԝ":"W","":"W","":"W","":"W","ѽ":"w҆҇","𑓅":"ẇ","₩":"W̵","ꝡ":"w̦","ᴍ":"ʍ","м":"ʍ","ꮇ":"ʍ","ӎ":"ʍ̦","":"x","×":"x","":"x","":"x","":"x","":"x","":"x","𝐱":"x","𝑥":"x","𝒙":"x","𝓍":"x","𝔁":"x","𝔵":"x","𝕩":"x","𝖝":"x","𝗑":"x","𝘅":"x","𝘹":"x","𝙭":"x","𝚡":"x","х":"x","":"x","":"x","ⷯ":"ͯ","":"X","":"X","𐌢":"X","𑣬":"X","":"X","":"X","𝐗":"X","𝑋":"X","𝑿":"X","𝒳":"X","𝓧":"X","𝔛":"X","𝕏":"X","𝖃":"X","𝖷":"X","𝗫":"X","𝘟":"X","𝙓":"X","𝚇":"X","":"X","Χ":"X","𝚾":"X","𝛸":"X","𝜲":"X","𝝬":"X","𝞦":"X","":"X","Х":"X","":"X","":"X","":"X","𐊐":"X","𐊴":"X","𐌗":"X","𐔧":"X","⨰":"ẋ","Ҳ":"X̩","𐆖":"X̵","ⅺ":"xi","ⅻ":"xii","Ⅺ":"Xl","Ⅻ":"Xll","ɣ":"y","":"y","":"y","𝐲":"y","𝑦":"y","𝒚":"y","𝓎":"y","𝔂":"y","𝔶":"y","𝕪":"y","𝖞":"y","𝗒":"y","𝘆":"y","𝘺":"y","𝙮":"y","𝚢":"y","ʏ":"y","ỿ":"y","":"y","γ":"y","":"y","𝛄":"y","𝛾":"y","𝜸":"y","𝝲":"y","𝞬":"y","у":"y","ү":"y","":"y","𑣜":"y","":"Y","𝐘":"Y","𝑌":"Y","𝒀":"Y","𝒴":"Y","𝓨":"Y","𝔜":"Y","𝕐":"Y","𝖄":"Y","𝖸":"Y","𝗬":"Y","𝘠":"Y","𝙔":"Y","𝚈":"Y","Υ":"Y","ϒ":"Y","𝚼":"Y","𝛶":"Y","𝜰":"Y","𝝪":"Y","𝞤":"Y","":"Y","У":"Y","Ү":"Y","":"Y","":"Y","":"Y","𖽃":"Y","𑢤":"Y","𐊲":"Y","ƴ":"y̔","ɏ":"y̵","ұ":"y̵","¥":"Y̵","Ɏ":"Y̵","Ұ":"Y̵","ʒ":"ȝ","ꝫ":"ȝ","ⳍ":"ȝ","ӡ":"ȝ","ჳ":"ȝ","𝐳":"z","𝑧":"z","𝒛":"z","𝓏":"z","𝔃":"z","𝔷":"z","𝕫":"z","𝖟":"z","𝗓":"z","𝘇":"z","𝘻":"z","𝙯":"z","𝚣":"z","":"z","":"z","𑣄":"z","𐋵":"Z","𑣥":"Z","":"Z","":"Z","":"Z","𝐙":"Z","𝑍":"Z","𝒁":"Z","𝒵":"Z","𝓩":"Z","𝖅":"Z","𝖹":"Z","𝗭":"Z","𝘡":"Z","𝙕":"Z","𝚉":"Z","Ζ":"Z","𝚭":"Z","𝛧":"Z","𝜡":"Z","𝝛":"Z","𝞕":"Z","":"Z","":"Z","𑢩":"Z","ʐ":"z̨","ƶ":"z̵","Ƶ":"Z̵","ȥ":"z̦","Ȥ":"Z̦","ᵶ":"z̴","ƿ":"þ","ϸ":"þ","Ϸ":"Þ","𐓄":"Þ","⁹":"ꝰ","ᴤ":"ƨ","ϩ":"ƨ","ꙅ":"ƨ","ь":"ƅ","ꮟ":"ƅ","ы":"ƅi","ꭾ":"ɂ","ˤ":"ˁ","ꛍ":"ʡ","⊙":"ʘ","☉":"ʘ","⨀":"ʘ","Ꙩ":"ʘ","ⵙ":"ʘ","𐓃":"ʘ","ℾ":"Γ","𝚪":"Γ","𝛤":"Γ","𝜞":"Γ","𝝘":"Γ","𝞒":"Γ","Ⲅ":"Γ","Г":"Γ","Ꮁ":"Γ","ᒥ":"Γ","𖼇":"Γ","Ғ":"Γ̵","ᒯ":"Γ·","Ґ":"Γ\'","∆":"Δ","△":"Δ","🜂":"Δ","𝚫":"Δ","𝛥":"Δ","𝜟":"Δ","𝝙":"Δ","𝞓":"Δ","Ⲇ":"Δ","ⵠ":"Δ","ᐃ":"Δ","𖼚":"Δ","𐊅":"Δ","𐊣":"Δ","⍙":"Δ̲","ᐏ":"Δ·","ᐬ":"Δᐠ","𝟋":"ϝ","𝛇":"ζ","𝜁":"ζ","𝜻":"ζ","𝝵":"ζ","𝞯":"ζ","ⳤ":"ϗ","𝛌":"λ","𝜆":"λ","𝝀":"λ","𝝺":"λ","𝞴":"λ","Ⲗ":"λ","𐓛":"λ","µ":"μ","𝛍":"μ","𝜇":"μ","𝝁":"μ","𝝻":"μ","𝞵":"μ","𝛏":"ξ","𝜉":"ξ","𝝃":"ξ","𝝽":"ξ","𝞷":"ξ","𝚵":"Ξ","𝛯":"Ξ","𝜩":"Ξ","𝝣":"Ξ","𝞝":"Ξ","ϖ":"π","ℼ":"π","𝛑":"π","𝛡":"π","𝜋":"π","𝜛":"π","𝝅":"π","𝝕":"π","𝝿":"π","𝞏":"π","𝞹":"π","𝟉":"π","ᴨ":"π","п":"π","∏":"Π","ℿ":"Π","𝚷":"Π","𝛱":"Π","𝜫":"Π","𝝥":"Π","𝞟":"Π","Ⲡ":"Π","П":"Π","ꛛ":"Π","𐊭":"Ϙ","𐌒":"Ϙ","ϛ":"ς","𝛓":"ς","𝜍":"ς","𝝇":"ς","𝞁":"ς","𝞻":"ς","𝚽":"Φ","𝛷":"Φ","𝜱":"Φ","𝝫":"Φ","𝞥":"Φ","Ⲫ":"Φ","Ф":"Φ","Փ":"Φ","ቀ":"Φ","ᛰ":"Φ","𐊳":"Φ","ꭓ":"χ","ꭕ":"χ","𝛘":"χ","𝜒":"χ","𝝌":"χ","𝞆":"χ","𝟀":"χ","ⲭ":"χ","𝛙":"ψ","𝜓":"ψ","𝝍":"ψ","𝞇":"ψ","𝟁":"ψ","ѱ":"ψ","𐓹":"ψ","𝚿":"Ψ","𝛹":"Ψ","𝜳":"Ψ","𝝭":"Ψ","𝞧":"Ψ","Ⲯ":"Ψ","Ѱ":"Ψ","𐓑":"Ψ","ᛘ":"Ψ","𐊵":"Ψ","⍵":"ω","ꞷ":"ω","𝛚":"ω","𝜔":"ω","𝝎":"ω","𝞈":"ω","𝟂":"ω","ⲱ":"ω","ꙍ":"ω","Ω":"Ω","𝛀":"Ω","𝛺":"Ω","𝜴":"Ω","𝝮":"Ω","𝞨":"Ω","ᘯ":"Ω","ᘵ":"Ω","𐊶":"Ω","⍹":"ω̲","ώ":"ῴ","☰":"Ⲷ","Ⳝ":"Ϭ","җ":"ж̩","Җ":"Ж̩","𝈋":"И","Ͷ":"И","ꚡ":"И","𐐥":"И","Й":"Ѝ","Ҋ":"Ѝ̦","ѝ":"й","ҋ":"й̦","𐒼":"Ӄ","ᴫ":"л","ӆ":"л̦","ꭠ":"љ","𐓫":"ꙩ","ᷮ":"ⷬ","𐓍":"Ћ","𝈂":"Ӿ","𝈢":"Ѡ","Ꮗ":"Ѡ","ᗯ":"Ѡ","Ѽ":"Ѡ҆҇","ᣭ":"Ѡ·","Ꞷ":"Ꙍ","ӌ":"ҷ","Ӌ":"Ҷ","Ҿ":"Ҽ̨","ⲽ":"ш","Ⲽ":"Ш","Ꙑ":"Ъl","℈":"Э","🜁":"Ꙙ","𖼜":"Ꙙ","ꦒ":"ⰿ","և":"եւ","ኔ":"ձ","ﬔ":"մե","ﬕ":"մի","ﬗ":"մխ","ﬓ":"մն","∩":"Ո","⋂":"Ո","𝉅":"Ո","በ":"Ո","ᑎ":"Ո","ꓵ":"Ո","ᑚ":"Ո·","ᑨ":"Ո\'","ﬖ":"վն","₽":"Ք","˓":"ՙ","ʿ":"ՙ","ℵ":"א","ﬡ":"א","אָ":"אַ","אּ":"אַ","ﭏ":"אל","ℶ":"ב","ℷ":"ג","ℸ":"ד","ﬢ":"ד","ﬣ":"ה","יּ":"יִ","ﬤ":"כ","ﬥ":"ל","ﬦ":"ם","ﬠ":"ע","ﬧ":"ר","שׂ":"שׁ","שּ":"שׁ","שּׂ":"שּׁ","ﬨ":"ת","ﺀ":"ء","۽":"ء͈","ﺂ":"آ","ﺁ":"آ","ﭑ":"ٱ","ﭐ":"ٱ","𞸁":"ب","𞸡":"ب","𞹡":"ب","𞺁":"ب","𞺡":"ب","ﺑ":"ب","ﺒ":"ب","ﺐ":"ب","ﺏ":"ب","ݑ":"بۛ","ࢶ":"بۢ","ࢡ":"بٔ","ﲠ":"بo","ﳢ":"بo","ﲜ":"بج","ﰅ":"بج","ﲝ":"بح","ﰆ":"بح","ﷂ":"بحى","ﲞ":"بخ","ﰇ":"بخ","ﳒ":"بخ","ﱋ":"بخ","ﶞ":"بخى","ﱪ":"بر","ﱫ":"بز","ﲟ":"بم","ﳡ":"بم","ﱬ":"بم","ﰈ":"بم","ﱭ":"بن","ﱮ":"بى","ﰉ":"بى","ﱯ":"بى","ﰊ":"بى","ﭔ":"ٻ","ﭕ":"ٻ","ﭓ":"ٻ","ﭒ":"ٻ","ې":"ٻ","ﯦ":"ٻ","ﯧ":"ٻ","ﯥ":"ٻ","ﯤ":"ٻ","ﭜ":"ڀ","ﭝ":"ڀ","ﭛ":"ڀ","ﭚ":"ڀ","ࢩ":"ݔ","ݧ":"ݔ","⍥":"ة","ö":"ة","ﺔ":"ة","ﺓ":"ة","ۃ":"ة","𞸕":"ت","𞸵":"ت","𞹵":"ت","𞺕":"ت","𞺵":"ت","ﺗ":"ت","ﺘ":"ت","ﺖ":"ت","ﺕ":"ت","ﲥ":"تo","ﳤ":"تo","ﲡ":"تج","ﰋ":"تج","ﵐ":"تجم","ﶠ":"تجى","ﶟ":"تجى","ﲢ":"تح","ﰌ":"تح","ﵒ":"تحج","ﵑ":"تحج","ﵓ":"تحم","ﲣ":"تخ","ﰍ":"تخ","ﵔ":"تخم","ﶢ":"تخى","ﶡ":"تخى","ﱰ":"تر","ﱱ":"تز","ﲤ":"تم","ﳣ":"تم","ﱲ":"تم","ﰎ":"تم","ﵕ":"تمج","ﵖ":"تمح","ﵗ":"تمخ","ﶤ":"تمى","ﶣ":"تمى","ﱳ":"تن","ﱴ":"تى","ﰏ":"تى","ﱵ":"تى","ﰐ":"تى","ﭠ":"ٺ","ﭡ":"ٺ","ﭟ":"ٺ","ﭞ":"ٺ","ﭤ":"ٿ","ﭥ":"ٿ","ﭣ":"ٿ","ﭢ":"ٿ","𞸂":"ج","𞸢":"ج","𞹂":"ج","𞹢":"ج","𞺂":"ج","𞺢":"ج","ﺟ":"ج","ﺠ":"ج","ﺞ":"ج","ﺝ":"ج","ﲧ":"جح","ﰕ":"جح","ﶦ":"جحى","ﶾ":"جحى","ﷻ":"جل جلlلo","ﲨ":"جم","ﰖ":"جم","ﵙ":"جمح","ﵘ":"جمح","ﶧ":"جمى","ﶥ":"جمى","ﴝ":"جى","ﴁ":"جى","ﴞ":"جى","ﴂ":"جى","ﭸ":"ڃ","ﭹ":"ڃ","ﭷ":"ڃ","ﭶ":"ڃ","ﭴ":"ڄ","ﭵ":"ڄ","ﭳ":"ڄ","ﭲ":"ڄ","ﭼ":"چ","ﭽ":"چ","ﭻ":"چ","ﭺ":"چ","ﮀ":"ڇ","ﮁ":"ڇ","ﭿ":"ڇ","ﭾ":"ڇ","𞸇":"ح","𞸧":"ح","𞹇":"ح","𞹧":"ح","𞺇":"ح","𞺧":"ح","ﺣ":"ح","ﺤ":"ح","ﺢ":"ح","ﺡ":"ح","څ":"حۛ","ځ":"حٔ","ݲ":"حٔ","ﲩ":"حج","ﰗ":"حج","ﶿ":"حجى","ﲪ":"حم","ﰘ":"حم","ﵛ":"حمى","ﵚ":"حمى","ﴛ":"حى","ﳿ":"حى","ﴜ":"حى","ﴀ":"حى","𞸗":"خ","𞸷":"خ","𞹗":"خ","𞹷":"خ","𞺗":"خ","𞺷":"خ","ﺧ":"خ","ﺨ":"خ","ﺦ":"خ","ﺥ":"خ","ﲫ":"خج","ﰙ":"خج","ﰚ":"خح","ﲬ":"خم","ﰛ":"خم","ﴟ":"خى","ﴃ":"خى","ﴠ":"خى","ﴄ":"خى","𐋡":"د","𞸃":"د","𞺃":"د","𞺣":"د","ﺪ":"د","ﺩ":"د","ڈ":"دؕ","ﮉ":"دؕ","ﮈ":"دؕ","ڎ":"دۛ","ﮇ":"دۛ","ﮆ":"دۛ","ۮ":"د̂","ࢮ":"د̤̣","𞸘":"ذ","𞺘":"ذ","𞺸":"ذ","ﺬ":"ذ","ﺫ":"ذ","ﱛ":"ذٰ","ڋ":"ڊؕ","ﮅ":"ڌ","ﮄ":"ڌ","ﮃ":"ڍ","ﮂ":"ڍ","𞸓":"ر","𞺓":"ر","𞺳":"ر","ﺮ":"ر","ﺭ":"ر","ڑ":"رؕ","ﮍ":"رؕ","ﮌ":"رؕ","ژ":"رۛ","ﮋ":"رۛ","ﮊ":"رۛ","ڒ":"ر̆","ࢹ":"ر̆̇","ۯ":"ر̂","ݬ":"رٔ","ﱜ":"رٰ","ﷶ":"رسول","﷼":"رىlل","𞸆":"ز","𞺆":"ز","𞺦":"ز","ﺰ":"ز","ﺯ":"ز","ࢲ":"ز̂","ݱ":"ڗؕ","𞸎":"س","𞸮":"س","𞹎":"س","𞹮":"س","𞺎":"س","𞺮":"س","ﺳ":"س","ﺴ":"س","ﺲ":"س","ﺱ":"س","ش":"سۛ","𞸔":"سۛ","𞸴":"سۛ","𞹔":"سۛ","𞹴":"سۛ","𞺔":"سۛ","𞺴":"سۛ","ﺷ":"سۛ","ﺸ":"سۛ","ﺶ":"سۛ","ﺵ":"سۛ","ݾ":"س̂","ﴱ":"سo","ﳨ":"سo","ﴲ":"سۛo","ﳪ":"سۛo","ﲭ":"سج","ﴴ":"سج","ﰜ":"سج","ﴭ":"سۛج","ﴷ":"سۛج","ﴥ":"سۛج","ﴉ":"سۛج","ﵝ":"سجح","ﵞ":"سجى","ﵩ":"سۛجى","ﲮ":"سح","ﴵ":"سح","ﰝ":"سح","ﴮ":"سۛح","ﴸ":"سۛح","ﴦ":"سۛح","ﴊ":"سۛح","ﵜ":"سحج","ﵨ":"سۛحم","ﵧ":"سۛحم","ﶪ":"سۛحى","ﲯ":"سخ","ﴶ":"سخ","ﰞ":"سخ","ﴯ":"سۛخ","ﴹ":"سۛخ","ﴧ":"سۛخ","ﴋ":"سۛخ","ﶨ":"سخى","ﷆ":"سخى","ﴪ":"سر","ﴎ":"سر","ﴩ":"سۛر","ﴍ":"سۛر","ﲰ":"سم","ﳧ":"سم","ﰟ":"سم","ﴰ":"سۛم","ﳩ":"سۛم","ﴨ":"سۛم","ﴌ":"سۛم","ﵡ":"سمج","ﵠ":"سمح","ﵟ":"سمح","ﵫ":"سۛمخ","ﵪ":"سۛمخ","ﵣ":"سمم","ﵢ":"سمم","ﵭ":"سۛمم","ﵬ":"سۛمم","ﴗ":"سى","ﳻ":"سى","ﴘ":"سى","ﳼ":"سى","ﴙ":"سۛى","ﳽ":"سۛى","ﴚ":"سۛى","ﳾ":"سۛى","𐋲":"ص","𞸑":"ص","𞸱":"ص","𞹑":"ص","𞹱":"ص","𞺑":"ص","𞺱":"ص","ﺻ":"ص","ﺼ":"ص","ﺺ":"ص","ﺹ":"ص","ڞ":"صۛ","ࢯ":"ص̤̣","ﲱ":"صح","ﰠ":"صح","ﵥ":"صحح","ﵤ":"صحح","ﶩ":"صحى","ﲲ":"صخ","ﴫ":"صر","ﴏ":"صر","ﷵ":"صلعم","ﷹ":"صلى","ﷰ":"صلى","ﷺ":"صلى lللo علىo وسلم","ﲳ":"صم","ﰡ":"صم","ﷅ":"صمم","ﵦ":"صمم","ﴡ":"صى","ﴅ":"صى","ﴢ":"صى","ﴆ":"صى","𞸙":"ض","𞸹":"ض","𞹙":"ض","𞹹":"ض","𞺙":"ض","𞺹":"ض","ﺿ":"ض","ﻀ":"ض","ﺾ":"ض","ﺽ":"ض","ﲴ":"ضج","ﰢ":"ضج","ﲵ":"ضح","ﰣ":"ضح","ﵮ":"ضحى","ﶫ":"ضحى","ﲶ":"ضخ","ﰤ":"ضخ","ﵰ":"ضخم","ﵯ":"ضخم","ﴬ":"ضر","ﴐ":"ضر","ﲷ":"ضم","ﰥ":"ضم","ﴣ":"ضى","ﴇ":"ضى","ﴤ":"ضى","ﴈ":"ضى","𐋨":"ط","𞸈":"ط","𞹨":"ط","𞺈":"ط","𞺨":"ط","ﻃ":"ط","ﻄ":"ط","ﻂ":"ط","ﻁ":"ط","ڟ":"طۛ","ﲸ":"طح","ﰦ":"طح","ﴳ":"طم","ﴺ":"طم","ﰧ":"طم","ﵲ":"طمح","ﵱ":"طمح","ﵳ":"طمم","ﵴ":"طمى","ﴑ":"طى","ﳵ":"طى","ﴒ":"طى","ﳶ":"طى","𞸚":"ظ","𞹺":"ظ","𞺚":"ظ","𞺺":"ظ","ﻇ":"ظ","ﻈ":"ظ","ﻆ":"ظ","ﻅ":"ظ","ﲹ":"ظم","ﴻ":"ظم","ﰨ":"ظم","؏":"ع","𞸏":"ع","𞸯":"ع","𞹏":"ع","𞹯":"ع","𞺏":"ع","𞺯":"ع","ﻋ":"ع","ﻌ":"ع","ﻊ":"ع","ﻉ":"ع","ﲺ":"عج","ﰩ":"عج","ﷄ":"عجم","ﵵ":"عجم","ﷷ":"علىo","ﲻ":"عم","ﰪ":"عم","ﵷ":"عمم","ﵶ":"عمم","ﵸ":"عمى","ﶶ":"عمى","ﴓ":"عى","ﳷ":"عى","ﴔ":"عى","ﳸ":"عى","𞸛":"غ","𞸻":"غ","𞹛":"غ","𞹻":"غ","𞺛":"غ","𞺻":"غ","ﻏ":"غ","ﻐ":"غ","ﻎ":"غ","ﻍ":"غ","ﲼ":"غج","ﰫ":"غج","ﲽ":"غم","ﰬ":"غم","ﵹ":"غمم","ﵻ":"غمى","ﵺ":"غمى","ﴕ":"غى","ﳹ":"غى","ﴖ":"غى","ﳺ":"غى","𞸐":"ف","𞸰":"ف","𞹰":"ف","𞺐":"ف","𞺰":"ف","ﻓ":"ف","ﻔ":"ف","ﻒ":"ف","ﻑ":"ف","ڧ":"ف","ﲾ":"فج","ﰭ":"فج","ﲿ":"فح","ﰮ":"فح","ﳀ":"فخ","ﰯ":"فخ","ﵽ":"فخم","ﵼ":"فخم","ﳁ":"فم","ﰰ":"فم","ﷁ":"فمى","ﱼ":"فى","ﰱ":"فى","ﱽ":"فى","ﰲ":"فى","𞸞":"ڡ","𞹾":"ڡ","ࢻ":"ڡ","ٯ":"ڡ","𞸟":"ڡ","𞹟":"ڡ","ࢼ":"ڡ","ڤ":"ڡۛ","ﭬ":"ڡۛ","ﭭ":"ڡۛ","ﭫ":"ڡۛ","ﭪ":"ڡۛ","ڨ":"ڡۛ","ࢤ":"ڢۛ","ﭰ":"ڦ","ﭱ":"ڦ","ﭯ":"ڦ","ﭮ":"ڦ","𞸒":"ق","𞸲":"ق","𞹒":"ق","𞹲":"ق","𞺒":"ق","𞺲":"ق","ﻗ":"ق","ﻘ":"ق","ﻖ":"ق","ﻕ":"ق","ﳂ":"قح","ﰳ":"قح","ﷱ":"قلى","ﳃ":"قم","ﰴ":"قم","ﶴ":"قمح","ﵾ":"قمح","ﵿ":"قمم","ﶲ":"قمى","ﱾ":"قى","ﰵ":"قى","ﱿ":"قى","ﰶ":"قى","𞸊":"ك","𞸪":"ك","𞹪":"ك","ﻛ":"ك","ﻜ":"ك","ﻚ":"ك","ﻙ":"ك","ک":"ك","ﮐ":"ك","ﮑ":"ك","ﮏ":"ك","ﮎ":"ك","ڪ":"ك","ڭ":"كۛ","ﯕ":"كۛ","ﯖ":"كۛ","ﯔ":"كۛ","ﯓ":"كۛ","ݣ":"كۛ","ﲀ":"كl","ﰷ":"كl","ﳄ":"كج","ﰸ":"كج","ﳅ":"كح","ﰹ":"كح","ﳆ":"كخ","ﰺ":"كخ","ﳇ":"كل","ﳫ":"كل","ﲁ":"كل","ﰻ":"كل","ﳈ":"كم","ﳬ":"كم","ﲂ":"كم","ﰼ":"كم","ﷃ":"كمم","ﶻ":"كمم","ﶷ":"كمى","ﲃ":"كى","ﰽ":"كى","ﲄ":"كى","ﰾ":"كى","ݢ":"ڬ","ﮔ":"گ","ﮕ":"گ","ﮓ":"گ","ﮒ":"گ","ࢰ":"گ","ڴ":"گۛ","ﮜ":"ڱ","ﮝ":"ڱ","ﮛ":"ڱ","ﮚ":"ڱ","ﮘ":"ڳ","ﮙ":"ڳ","ﮗ":"ڳ","ﮖ":"ڳ","𞸋":"ل","𞸫":"ل","𞹋":"ل","𞺋":"ل","𞺫":"ل","ﻟ":"ل","ﻠ":"ل","ﻞ":"ل","ﻝ":"ل","ڷ":"لۛ","ڵ":"ل̆","ﻼ":"لl","ﻻ":"لl","ﻺ":"لlٕ","ﻹ":"لlٕ","ﻸ":"لlٴ","ﻷ":"لlٴ","ﳍ":"لo","ﻶ":"لآ","ﻵ":"لآ","ﳉ":"لج","ﰿ":"لج","ﶃ":"لجج","ﶄ":"لجج","ﶺ":"لجم","ﶼ":"لجم","ﶬ":"لجى","ﳊ":"لح","ﱀ":"لح","ﶵ":"لحم","ﶀ":"لحم","ﶂ":"لحى","ﶁ":"لحى","ﳋ":"لخ","ﱁ":"لخ","ﶆ":"لخم","ﶅ":"لخم","ﳌ":"لم","ﳭ":"لم","ﲅ":"لم","ﱂ":"لم","ﶈ":"لمح","ﶇ":"لمح","ﶭ":"لمى","ﲆ":"لى","ﱃ":"لى","ﲇ":"لى","ﱄ":"لى","𞸌":"م","𞸬":"م","𞹬":"م","𞺌":"م","𞺬":"م","ﻣ":"م","ﻤ":"م","ﻢ":"م","ﻡ":"م","ࢧ":"مۛ","۾":"م͈","ﲈ":"مl","ﳎ":"مج","ﱅ":"مج","ﶌ":"مجح","ﶒ":"مجخ","ﶍ":"مجم","ﷀ":"مجى","ﳏ":"مح","ﱆ":"مح","ﶉ":"محج","ﶊ":"محم","ﷴ":"محمد","ﶋ":"محى","ﳐ":"مخ","ﱇ":"مخ","ﶎ":"مخج","ﶏ":"مخم","ﶹ":"مخى","ﳑ":"مم","ﲉ":"مم","ﱈ":"مم","ﶱ":"ممى","ﱉ":"مى","ﱊ":"مى","𞸍":"ن","𞸭":"ن","𞹍":"ن","𞹭":"ن","𞺍":"ن","𞺭":"ن","ﻧ":"ن","ﻨ":"ن","ﻦ":"ن","ﻥ":"ن","ݨ":"نؕ","ݩ":"ن̆","ﳖ":"نo","ﳯ":"نo","ﶸ":"نجح","ﶽ":"نجح","ﶘ":"نجم","ﶗ":"نجم","ﶙ":"نجى","ﷇ":"نجى","ﳓ":"نح","ﱌ":"نح","ﶕ":"نحم","ﶖ":"نحى","ﶳ":"نحى","ﳔ":"نخ","ﱍ":"نخ","ﲊ":"نر","ﲋ":"نز","ﳕ":"نم","ﳮ":"نم","ﲌ":"نم","ﱎ":"نم","ﶛ":"نمى","ﶚ":"نمى","ﲍ":"نن","ﲎ":"نى","ﱏ":"نى","ﲏ":"نى","ﱐ":"نى","ۂ":"ۀ","ﮥ":"ۀ","ﮤ":"ۀ","𐋤":"و","𞸅":"و","𞺅":"و","𞺥":"و","ﻮ":"و","ﻭ":"و","ࢱ":"و","ۋ":"وۛ","ﯟ":"وۛ","ﯞ":"وۛ","ۇ":"و̓","ﯘ":"و̓","ﯗ":"و̓","ۆ":"و̆","ﯚ":"و̆","ﯙ":"و̆","ۉ":"و̂","ﯣ":"و̂","ﯢ":"و̂","ۈ":"وٰ","ﯜ":"وٰ","ﯛ":"وٰ","ؤ":"وٴ","ﺆ":"وٴ","ﺅ":"وٴ","ٶ":"وٴ","ٷ":"و̓ٴ","ﯝ":"و̓ٴ","ﷸ":"وسلم","ﯡ":"ۅ","ﯠ":"ۅ","ٮ":"ى","𞸜":"ى","𞹼":"ى","ں":"ى","𞸝":"ى","𞹝":"ى","ﮟ":"ى","ﮞ":"ى","ࢽ":"ى","ﯨ":"ى","ﯩ":"ى","ﻰ":"ى","ﻯ":"ى","ي":"ى","𞸉":"ى","𞸩":"ى","𞹉":"ى","𞹩":"ى","𞺉":"ى","𞺩":"ى","ﻳ":"ى","ﻴ":"ى","ﻲ":"ى","ﻱ":"ى","ی":"ى","ﯾ":"ى","ﯿ":"ى","ﯽ":"ى","ﯼ":"ى","ے":"ى","ﮯ":"ى","ﮮ":"ى","ٹ":"ىؕ","ﭨ":"ىؕ","ﭩ":"ىؕ","ﭧ":"ىؕ","ﭦ":"ىؕ","ڻ":"ىؕ","ﮢ":"ىؕ","ﮣ":"ىؕ","ﮡ":"ىؕ","ﮠ":"ىؕ","پ":"ىۛ","ﭘ":"ىۛ","ﭙ":"ىۛ","ﭗ":"ىۛ","ﭖ":"ىۛ","ث":"ىۛ","𞸖":"ىۛ","𞸶":"ىۛ","𞹶":"ىۛ","𞺖":"ىۛ","𞺶":"ىۛ","ﺛ":"ىۛ","ﺜ":"ىۛ","ﺚ":"ىۛ","ﺙ":"ىۛ","ڽ":"ىۛ","ۑ":"ىۛ","ؿ":"ىۛ","ࢷ":"ىۛۢ","ݖ":"ى̆","ێ":"ى̆","ࢺ":"ى̆̇","ؽ":"ى̂","ࢨ":"ىٔ","ﲐ":"ىٰ","ﱝ":"ىٰ","ﳞ":"ىo","ﳱ":"ىo","ﳦ":"ىۛo","ئ":"ىٴ","ﺋ":"ىٴ","ﺌ":"ىٴ","ﺊ":"ىٴ","ﺉ":"ىٴ","ٸ":"ىٴ","ﯫ":"ىٴl","ﯪ":"ىٴl","ﲛ":"ىٴo","ﳠ":"ىٴo","ﯭ":"ىٴo","ﯬ":"ىٴo","ﯸ":"ىٴٻ","ﯷ":"ىٴٻ","ﯶ":"ىٴٻ","ﲗ":"ىٴج","ﰀ":"ىٴج","ﲘ":"ىٴح","ﰁ":"ىٴح","ﲙ":"ىٴخ","ﱤ":"ىٴر","ﱥ":"ىٴز","ﲚ":"ىٴم","ﳟ":"ىٴم","ﱦ":"ىٴم","ﰂ":"ىٴم","ﱧ":"ىٴن","ﯯ":"ىٴو","ﯮ":"ىٴو","ﯱ":"ىٴو̓","ﯰ":"ىٴو̓","ﯳ":"ىٴو̆","ﯲ":"ىٴو̆","ﯵ":"ىٴوٰ","ﯴ":"ىٴوٰ","ﯻ":"ىٴى","ﯺ":"ىٴى","ﱨ":"ىٴى","ﯹ":"ىٴى","ﰃ":"ىٴى","ﱩ":"ىٴى","ﰄ":"ىٴى","ﳚ":"ىج","ﱕ":"ىج","ﰑ":"ىۛج","ﶯ":"ىجى","ﳛ":"ىح","ﱖ":"ىح","ﶮ":"ىحى","ﳜ":"ىخ","ﱗ":"ىخ","ﲑ":"ىر","ﱶ":"ىۛر","ﲒ":"ىز","ﱷ":"ىۛز","ﳝ":"ىم","ﳰ":"ىم","ﲓ":"ىم","ﱘ":"ىم","ﲦ":"ىۛم","ﳥ":"ىۛم","ﱸ":"ىۛم","ﰒ":"ىۛم","ﶝ":"ىمم","ﶜ":"ىمم","ﶰ":"ىمى","ﲔ":"ىن","ﱹ":"ىۛن","ﲕ":"ىى","ﱙ":"ىى","ﲖ":"ىى","ﱚ":"ىى","ﱺ":"ىۛى","ﰓ":"ىۛى","ﱻ":"ىۛى","ﰔ":"ىۛى","ﮱ":"ۓ","ﮰ":"ۓ","𐊸":"ⵀ","⁞":"ⵂ","⸽":"ⵂ","⦙":"ⵂ","︙":"ⵗ","⁝":"ⵗ","⋮":"ⵗ","Մ":"ሆ","Ռ":"ቡ","Ի":"ኮ","Պ":"ጣ","आ":"अा","ऒ":"अाॆ","ओ":"अाे","औ":"अाै","ऄ":"अॆ","ऑ":"अॉ","ऍ":"एॅ","ऎ":"एॆ","ऐ":"एे","ई":"र्इ","ઽ":"ऽ","𑇜":"ꣻ","𑇋":"ऺ","ુ":"ु","ૂ":"ू","ੋ":"ॆ","੍":"्","્":"्","আ":"অা","ৠ":"ঋৃ","ৡ":"ঋৃ","𑒒":"ঘ","𑒔":"চ","𑒖":"জ","𑒘":"ঞ","𑒙":"ট","𑒛":"ড","𑒪":"ণ","𑒞":"ত","𑒟":"থ","𑒠":"দ","𑒡":"ধ","𑒢":"ন","𑒣":"প","𑒩":"ব","𑒧":"ম","𑒨":"য","𑒫":"র","𑒝":"ল","𑒭":"ষ","𑒮":"স","𑓄":"ঽ","𑒰":"া","𑒱":"ি","𑒹":"ে","𑒼":"ো","𑒾":"ৌ","𑓂":"্","𑒽":"ৗ","ਉ":"ੳੁ","ਊ":"ੳੂ","ਆ":"ਅਾ","ਐ":"ਅੈ","ਔ":"ਅੌ","ਇ":"ੲਿ","ਈ":"ੲੀ","ਏ":"ੲੇ","આ":"અા","ઑ":"અાૅ","ઓ":"અાે","ઔ":"અાૈ","ઍ":"અૅ","એ":"અે","ઐ":"અૈ","ଆ":"ଅା","௮":"அ","ர":"ஈ","ா":"ஈ","௫":"ஈு","௨":"உ","ഉ":"உ","ஊ":"உள","ഊ":"உൗ","௭":"எ","௷":"எவ","ஜ":"ஐ","ജ":"ஐ","௧":"க","௪":"ச","௬":"சு","௲":"சூ","ഺ":"டி","ണ":"ண","௺":"நீ","௴":"மீ","௰":"ய","ഴ":"ழ","ௗ":"ள","ை":"ன","ശ":"ஶ","௸":"ஷ","ി":"ி","ീ":"ி","ொ":"ெஈ","ௌ":"ெள","ோ":"ேஈ","ಅ":"అ","ಆ":"ఆ","ಇ":"ఇ","ౠ":"ఋా","ౡ":"ఌా","ಒ":"ఒ","ఔ":"ఒౌ","ಔ":"ఒౌ","ఓ":"ఒౕ","ಓ":"ఒౕ","ಜ":"జ","ಞ":"ఞ","ఢ":"డ̣","ಣ":"ణ","థ":"ధּ","భ":"బ̣","ಯ":"య","ఠ":"రּ","ಱ":"ఱ","ಲ":"ల","ష":"వ̣","హ":"వా","మ":"వు","ూ":"ుా","ౄ":"ృా","ೡ":"ಌಾ","ഈ":"ഇൗ","ഐ":"എെ","ഓ":"ഒാ","ഔ":"ഒൗ","ൡ":"ഞ","൫":"ദ്ര","൹":"നു","ഌ":"നു","ങ":"നു","൯":"ന്","ൻ":"ന്","൬":"ന്ന","൚":"ന്മ","റ":"ര","൪":"ര്","ർ":"ര്","൮":"വ്ര","൶":"ഹ്മ","ൂ":"ു","ൃ":"ു","ൈ":"െെ","෪":"ජ","෫":"ද","𑐓":"𑐴𑑂𑐒","𑐙":"𑐴𑑂𑐘","𑐤":"𑐴𑑂𑐣","𑐪":"𑐴𑑂𑐩","𑐭":"𑐴𑑂𑐬","𑐯":"𑐴𑑂𑐮","𑗘":"𑖂","𑗙":"𑖂","𑗚":"𑖃","𑗛":"𑖄","𑗜":"𑖲","𑗝":"𑖳","ฃ":"ข","ด":"ค","ต":"ค","ม":"ฆ","ຈ":"จ","ซ":"ช","ฏ":"ฎ","ท":"ฑ","ບ":"บ","ປ":"ป","ຝ":"ฝ","ພ":"พ","ຟ":"ฟ","ฦ":"ภ","ຍ":"ย","។":"ฯ","ๅ":"า","ำ":"̊า","ិ":"ิ","ី":"ี","ឹ":"ึ","ឺ":"ื","ຸ":"ุ","ູ":"ู","แ":"เเ","ໜ":"ຫນ","ໝ":"ຫມ","ຳ":"̊າ","༂":"འུྂཿ","༃":"འུྂ༔","ཪ":"ར","ༀ":"ཨོཾ","ཷ":"ྲཱྀ","ཹ":"ླཱྀ","𑲲":"𑲪","ႁ":"ဂှ","က":"ဂာ","ၰ":"ဃှ","ၦ":"ပှ","ဟ":"ပာ","ၯ":"ပာှ","ၾ":"ၽှ","ဩ":"သြ","ဪ":"သြော်","႞":"ႃ̊","ឣ":"អ","᧐":"ᦞ","᧑":"ᦱ","᪀":"ᩅ","᪐":"ᩅ","꩓":"ꨁ","꩖":"ꨣ","᭒":"ᬍ","᭓":"ᬑ","᭘":"ᬨ","ꦣ":"ꦝ","ᢖ":"ᡜ","ᡕ":"ᠵ","ῶ":"Ꮿ","ᐍ":"ᐁ·","ᐫ":"ᐁᐠ","ᐑ":"ᐄ·","ᐓ":"ᐅ·","ᐭ":"ᐅᐠ","ᐕ":"ᐆ·","ᐘ":"ᐊ·","ᐮ":"ᐊᐠ","ᐚ":"ᐋ·","ᣝ":"ᐞᣟ","ᓑ":"ᐡ","ᕀ":"ᐩ","ᐿ":"ᐲ·","ᑃ":"ᐴ·","⍩":"ᐵ","ᑇ":"ᐹ·","ᑜ":"ᑏ·","⸧":"ᑐ","⊃":"ᑐ","ᑞ":"ᑐ·","ᑩ":"ᑐ\'","⟉":"ᑐ/","⫗":"ᑐᑕ","ᑠ":"ᑑ·","⸦":"ᑕ","⊂":"ᑕ","ᑢ":"ᑕ·","ᑪ":"ᑕ\'","ᑤ":"ᑖ·","ᑵ":"ᑫ·","ᒅ":"ᑫ\'","ᑹ":"ᑮ·","ᑽ":"ᑰ·","ᘃ":"ᒉ","ᒓ":"ᒉ·","ᒕ":"ᒋ·","ᒗ":"ᒌ·","ᒛ":"ᒎ·","ᘂ":"ᒐ","ᒝ":"ᒐ·","ᒟ":"ᒑ·","ᒭ":"ᒣ·","ᒱ":"ᒦ·","ᒳ":"ᒧ·","ᒵ":"ᒨ·","ᒹ":"ᒫ·","ᓊ":"ᓀ·","ᣇ":"ᓂ·","ᣉ":"ᓃ·","ᣋ":"ᓄ·","ᣍ":"ᓅ·","ᓌ":"ᓇ·","ᓎ":"ᓈ·","ᘄ":"ᓓ","ᓝ":"ᓓ·","ᓟ":"ᓕ·","ᓡ":"ᓖ·","ᓣ":"ᓗ·","ᓥ":"ᓘ·","ᘇ":"ᓚ","ᓧ":"ᓚ·","ᓩ":"ᓛ·","ᓷ":"ᓭ·","ᓹ":"ᓯ·","ᓻ":"ᓰ·","ᓽ":"ᓱ·","ᓿ":"ᓲ·","ᔁ":"ᓴ·","ᔃ":"ᓵ·","ᔌ":"ᔋ<","ᔎ":"ᔋb","ᔍ":"ᔋᑕ","ᔏ":"ᔋᒐ","ᔘ":"ᔐ·","ᔚ":"ᔑ·","ᔜ":"ᔒ·","ᔞ":"ᔓ·","ᔠ":"ᔔ·","ᔢ":"ᔕ·","ᔤ":"ᔖ·","ᔲ":"ᔨ·","ᔴ":"ᔩ·","ᔶ":"ᔪ·","ᔸ":"ᔫ·","ᔺ":"ᔭ·","ᔼ":"ᔮ·","ᘢ":"ᕃ","ᣠ":"ᕃ·","ᘣ":"ᕆ","ᘤ":"ᕊ","ᕏ":"ᕌ·","ᖃ":"ᕐb","ᖄ":"ᕐḃ","ᖁ":"ᕐd","ᕿ":"ᕐP","ᙯ":"ᕐᑫ","ᕾ":"ᕐᑬ","ᖀ":"ᕐᑮ","ᖂ":"ᕐᑰ","ᖅ":"ᕐᒃ","ᕜ":"ᕚ·","ᣣ":"ᕞ·","ᣤ":"ᕦ·","ᕩ":"ᕧ·","ᣥ":"ᕫ·","ᣨ":"ᖆ·","ᖑ":"ᖕJ","ᙰ":"ᖕᒉ","ᖎ":"ᖕᒊ","ᖏ":"ᖕᒋ","ᖐ":"ᖕᒌ","ᖒ":"ᖕᒎ","ᖓ":"ᖕᒐ","ᖔ":"ᖕᒑ","ᙳ":"ᖖJ","ᙱ":"ᖖᒋ","ᙲ":"ᖖᒌ","ᙴ":"ᖖᒎ","ᙵ":"ᖖᒐ","ᙶ":"ᖖᒑ","ᣪ":"ᖗ·","ᙷ":"ᖧ·","ᙸ":"ᖨ·","ᙹ":"ᖩ·","ᙺ":"ᖪ·","ᙻ":"ᖫ·","ᙼ":"ᖬ·","ᙽ":"ᖭ·","⪫":"ᗒ","⪪":"ᗕ","ꓷ":"ᗡ","ᣰ":"ᗴ·","ᣲ":"ᘛ·","ᶻ":"ᙆ","ꓭ":"ᙠ","ᶺ":"ᣔ","ᴾ":"ᣖ","ᣜ":"ᣟᐞ","ˡ":"ᣳ","ʳ":"ᣴ","ˢ":"ᣵ","ᣛ":"ᣵ","ꚰ":"ᚹ","ᛡ":"ᚼ","⍿":"ᚽ","ᛂ":"ᚽ","𝈿":"ᛋ","↑":"ᛏ","↿":"ᛐ","⥮":"ᛐ⇂","⥣":"ᛐᛚ","ⵣ":"ᛯ","↾":"ᛚ","⨡":"ᛚ","⋄":"ᛜ","◇":"ᛜ","◊":"ᛜ","♢":"ᛜ","🝔":"ᛜ","𑢷":"ᛜ","𐊔":"ᛜ","⍚":"ᛜ̲","⋈":"ᛞ","⨝":"ᛞ","𐓐":"ᛦ","↕":"ᛨ","𐳼":"𐲂","𐳺":"𐲥","ㄱ":"ᄀ","ᆨ":"ᄀ","ᄁ":"ᄀᄀ","ㄲ":"ᄀᄀ","ᆩ":"ᄀᄀ","ᇺ":"ᄀᄂ","ᅚ":"ᄀᄃ","ᇃ":"ᄀᄅ","ᇻ":"ᄀᄇ","ᆪ":"ᄀᄉ","ㄳ":"ᄀᄉ","ᇄ":"ᄀᄉᄀ","ᇼ":"ᄀᄎ","ᇽ":"ᄀᄏ","ᇾ":"ᄀᄒ","ㄴ":"ᄂ","ᆫ":"ᄂ","ᄓ":"ᄂᄀ","ᇅ":"ᄂᄀ","ᄔ":"ᄂᄂ","ㅥ":"ᄂᄂ","ᇿ":"ᄂᄂ","ᄕ":"ᄂᄃ","ㅦ":"ᄂᄃ","ᇆ":"ᄂᄃ","ퟋ":"ᄂᄅ","ᄖ":"ᄂᄇ","ᅛ":"ᄂᄉ","ᇇ":"ᄂᄉ","ㅧ":"ᄂᄉ","ᅜ":"ᄂᄌ","ᆬ":"ᄂᄌ","ㄵ":"ᄂᄌ","ퟌ":"ᄂᄎ","ᇉ":"ᄂᄐ","ᅝ":"ᄂᄒ","ᆭ":"ᄂᄒ","ㄶ":"ᄂᄒ","ᇈ":"ᄂᅀ","ㅨ":"ᄂᅀ","ㄷ":"ᄃ","ᆮ":"ᄃ","ᄗ":"ᄃᄀ","ᇊ":"ᄃᄀ","ᄄ":"ᄃᄃ","ㄸ":"ᄃᄃ","ퟍ":"ᄃᄃ","ퟎ":"ᄃᄃᄇ","ᅞ":"ᄃᄅ","ᇋ":"ᄃᄅ","ꥠ":"ᄃᄆ","ꥡ":"ᄃᄇ","ퟏ":"ᄃᄇ","ꥢ":"ᄃᄉ","ퟐ":"ᄃᄉ","ퟑ":"ᄃᄉᄀ","ꥣ":"ᄃᄌ","ퟒ":"ᄃᄌ","ퟓ":"ᄃᄎ","ퟔ":"ᄃᄐ","ㄹ":"ᄅ","ᆯ":"ᄅ","ꥤ":"ᄅᄀ","ᆰ":"ᄅᄀ","ㄺ":"ᄅᄀ","ꥥ":"ᄅᄀᄀ","ퟕ":"ᄅᄀᄀ","ᇌ":"ᄅᄀᄉ","ㅩ":"ᄅᄀᄉ","ퟖ":"ᄅᄀᄒ","ᄘ":"ᄅᄂ","ᇍ":"ᄅᄂ","ꥦ":"ᄅᄃ","ᇎ":"ᄅᄃ","ㅪ":"ᄅᄃ","ꥧ":"ᄅᄃᄃ","ᇏ":"ᄅᄃᄒ","ᄙ":"ᄅᄅ","ᇐ":"ᄅᄅ","ퟗ":"ᄅᄅᄏ","ꥨ":"ᄅᄆ","ᆱ":"ᄅᄆ","ㄻ":"ᄅᄆ","ᇑ":"ᄅᄆᄀ","ᇒ":"ᄅᄆᄉ","ퟘ":"ᄅᄆᄒ","ꥩ":"ᄅᄇ","ᆲ":"ᄅᄇ","ㄼ":"ᄅᄇ","ퟙ":"ᄅᄇᄃ","ꥪ":"ᄅᄇᄇ","ᇓ":"ᄅᄇᄉ","ㅫ":"ᄅᄇᄉ","ꥫ":"ᄅᄇᄋ","ᇕ":"ᄅᄇᄋ","ퟚ":"ᄅᄇᄑ","ᇔ":"ᄅᄇᄒ","ꥬ":"ᄅᄉ","ᆳ":"ᄅᄉ","ㄽ":"ᄅᄉ","ᇖ":"ᄅᄉᄉ","ᄛ":"ᄅᄋ","ퟝ":"ᄅᄋ","ꥭ":"ᄅᄌ","ꥮ":"ᄅᄏ","ᇘ":"ᄅᄏ","ᆴ":"ᄅᄐ","ㄾ":"ᄅᄐ","ᆵ":"ᄅᄑ","ㄿ":"ᄅᄑ","ᄚ":"ᄅᄒ","ㅀ":"ᄅᄒ","ᄻ":"ᄅᄒ","ᆶ":"ᄅᄒ","ퟲ":"ᄅᄒ","ᇗ":"ᄅᅀ","ㅬ":"ᄅᅀ","ퟛ":"ᄅᅌ","ᇙ":"ᄅᅙ","ㅭ":"ᄅᅙ","ퟜ":"ᄅᅙᄒ","ㅁ":"ᄆ","ᆷ":"ᄆ","ꥯ":"ᄆᄀ","ᇚ":"ᄆᄀ","ퟞ":"ᄆᄂ","ퟟ":"ᄆᄂᄂ","ꥰ":"ᄆᄃ","ᇛ":"ᄆᄅ","ퟠ":"ᄆᄆ","ᄜ":"ᄆᄇ","ㅮ":"ᄆᄇ","ᇜ":"ᄆᄇ","ퟡ":"ᄆᄇᄉ","ꥱ":"ᄆᄉ","ᇝ":"ᄆᄉ","ㅯ":"ᄆᄉ","ᇞ":"ᄆᄉᄉ","ᄝ":"ᄆᄋ","ㅱ":"ᄆᄋ","ᇢ":"ᄆᄋ","ퟢ":"ᄆᄌ","ᇠ":"ᄆᄎ","ᇡ":"ᄆᄒ","ᇟ":"ᄆᅀ","ㅰ":"ᄆᅀ","ㅂ":"ᄇ","ᆸ":"ᄇ","ᄞ":"ᄇᄀ","ㅲ":"ᄇᄀ","ᄟ":"ᄇᄂ","ᄠ":"ᄇᄃ","ㅳ":"ᄇᄃ","ퟣ":"ᄇᄃ","ᇣ":"ᄇᄅ","ퟤ":"ᄇᄅᄑ","ퟥ":"ᄇᄆ","ᄈ":"ᄇᄇ","ㅃ":"ᄇᄇ","ퟦ":"ᄇᄇ","ᄬ":"ᄇᄇᄋ","ㅹ":"ᄇᄇᄋ","ᄡ":"ᄇᄉ","ㅄ":"ᄇᄉ","ᆹ":"ᄇᄉ","ᄢ":"ᄇᄉᄀ","ㅴ":"ᄇᄉᄀ","ᄣ":"ᄇᄉᄃ","ㅵ":"ᄇᄉᄃ","ퟧ":"ᄇᄉᄃ","ᄤ":"ᄇᄉᄇ","ᄥ":"ᄇᄉᄉ","ᄦ":"ᄇᄉᄌ","ꥲ":"ᄇᄉᄐ","ᄫ":"ᄇᄋ","ㅸ":"ᄇᄋ","ᇦ":"ᄇᄋ","ᄧ":"ᄇᄌ","ㅶ":"ᄇᄌ","ퟨ":"ᄇᄌ","ᄨ":"ᄇᄎ","ퟩ":"ᄇᄎ","ꥳ":"ᄇᄏ","ᄩ":"ᄇᄐ","ㅷ":"ᄇᄐ","ᄪ":"ᄇᄑ","ᇤ":"ᄇᄑ","ꥴ":"ᄇᄒ","ᇥ":"ᄇᄒ","ㅅ":"ᄉ","ᆺ":"ᄉ","ᄭ":"ᄉᄀ","ㅺ":"ᄉᄀ","ᇧ":"ᄉᄀ","ᄮ":"ᄉᄂ","ㅻ":"ᄉᄂ","ᄯ":"ᄉᄃ","ㅼ":"ᄉᄃ","ᇨ":"ᄉᄃ","ᄰ":"ᄉᄅ","ᇩ":"ᄉᄅ","ᄱ":"ᄉᄆ","ퟪ":"ᄉᄆ","ᄲ":"ᄉᄇ","ㅽ":"ᄉᄇ","ᇪ":"ᄉᄇ","ᄳ":"ᄉᄇᄀ","ퟫ":"ᄉᄇᄋ","ᄊ":"ᄉᄉ","ㅆ":"ᄉᄉ","ᆻ":"ᄉᄉ","ퟬ":"ᄉᄉᄀ","ퟭ":"ᄉᄉᄃ","ꥵ":"ᄉᄉᄇ","ᄴ":"ᄉᄉᄉ","ᄵ":"ᄉᄋ","ᄶ":"ᄉᄌ","ㅾ":"ᄉᄌ","ퟯ":"ᄉᄌ","ᄷ":"ᄉᄎ","ퟰ":"ᄉᄎ","ᄸ":"ᄉᄏ","ᄹ":"ᄉᄐ","ퟱ":"ᄉᄐ","ᄺ":"ᄉᄑ","ퟮ":"ᄉᅀ","ㅇ":"ᄋ","ᆼ":"ᄋ","ᅁ":"ᄋᄀ","ᇬ":"ᄋᄀ","ᇭ":"ᄋᄀᄀ","ᅂ":"ᄋᄃ","ꥶ":"ᄋᄅ","ᅃ":"ᄋᄆ","ᅄ":"ᄋᄇ","ᅅ":"ᄋᄉ","ᇱ":"ᄋᄉ","ㆂ":"ᄋᄉ","ᅇ":"ᄋᄋ","ㆀ":"ᄋᄋ","ᇮ":"ᄋᄋ","ᅈ":"ᄋᄌ","ᅉ":"ᄋᄎ","ᇯ":"ᄋᄏ","ᅊ":"ᄋᄐ","ᅋ":"ᄋᄑ","ꥷ":"ᄋᄒ","ᅆ":"ᄋᅀ","ᇲ":"ᄋᅀ","ㆃ":"ᄋᅀ","ㅈ":"ᄌ","ᆽ":"ᄌ","ퟷ":"ᄌᄇ","ퟸ":"ᄌᄇᄇ","ᅍ":"ᄌᄋ","ᄍ":"ᄌᄌ","ㅉ":"ᄌᄌ","ퟹ":"ᄌᄌ","ꥸ":"ᄌᄌᄒ","ㅊ":"ᄎ","ᆾ":"ᄎ","ᅒ":"ᄎᄏ","ᅓ":"ᄎᄒ","ㅋ":"ᄏ","ᆿ":"ᄏ","ㅌ":"ᄐ","ᇀ":"ᄐ","ꥹ":"ᄐᄐ","ㅍ":"ᄑ","ᇁ":"ᄑ","ᅖ":"ᄑᄇ","ᇳ":"ᄑᄇ","ퟺ":"ᄑᄉ","ᅗ":"ᄑᄋ","ㆄ":"ᄑᄋ","ᇴ":"ᄑᄋ","ퟻ":"ᄑᄐ","ꥺ":"ᄑᄒ","ㅎ":"ᄒ","ᇂ":"ᄒ","ᇵ":"ᄒᄂ","ᇶ":"ᄒᄅ","ᇷ":"ᄒᄆ","ᇸ":"ᄒᄇ","ꥻ":"ᄒᄉ","ᅘ":"ᄒᄒ","ㆅ":"ᄒᄒ","ᄽ":"ᄼᄼ","ᄿ":"ᄾᄾ","ㅿ":"ᅀ","ᇫ":"ᅀ","ퟳ":"ᅀᄇ","ퟴ":"ᅀᄇᄋ","ㆁ":"ᅌ","ᇰ":"ᅌ","ퟵ":"ᅌᄆ","ퟶ":"ᅌᄒ","ᅏ":"ᅎᅎ","ᅑ":"ᅐᅐ","ㆆ":"ᅙ","ᇹ":"ᅙ","ꥼ":"ᅙᅙ","":"","ㅏ":"ᅡ","ᆣ":"ᅡー","ᅶ":"ᅡᅩ","ᅷ":"ᅡᅮ","ᅢ":"ᅡ丨","ㅐ":"ᅡ丨","ㅑ":"ᅣ","ᅸ":"ᅣᅩ","ᅹ":"ᅣᅭ","ᆤ":"ᅣᅮ","ᅤ":"ᅣ丨","ㅒ":"ᅣ丨","ㅓ":"ᅥ","ᅼ":"ᅥー","ᅺ":"ᅥᅩ","ᅻ":"ᅥᅮ","ᅦ":"ᅥ丨","ㅔ":"ᅥ丨","ㅕ":"ᅧ","ᆥ":"ᅧᅣ","ᅽ":"ᅧᅩ","ᅾ":"ᅧᅮ","ᅨ":"ᅧ丨","ㅖ":"ᅧ丨","ㅗ":"ᅩ","ᅪ":"ᅩᅡ","ㅘ":"ᅩᅡ","ᅫ":"ᅩᅡ丨","ㅙ":"ᅩᅡ丨","ᆦ":"ᅩᅣ","ᆧ":"ᅩᅣ丨","ᅿ":"ᅩᅥ","ᆀ":"ᅩᅥ丨","ힰ":"ᅩᅧ","ᆁ":"ᅩᅧ丨","ᆂ":"ᅩᅩ","ힱ":"ᅩᅩ丨","ᆃ":"ᅩᅮ","ᅬ":"ᅩ丨","ㅚ":"ᅩ丨","ㅛ":"ᅭ","ힲ":"ᅭᅡ","ힳ":"ᅭᅡ丨","ᆄ":"ᅭᅣ","ㆇ":"ᅭᅣ","ᆆ":"ᅭᅣ","ᆅ":"ᅭᅣ丨","ㆈ":"ᅭᅣ丨","ힴ":"ᅭᅥ","ᆇ":"ᅭᅩ","ᆈ":"ᅭ丨","ㆉ":"ᅭ丨","ㅜ":"ᅮ","ᆉ":"ᅮᅡ","ᆊ":"ᅮᅡ丨","ᅯ":"ᅮᅥ","ㅝ":"ᅮᅥ","ᆋ":"ᅮᅥー","ᅰ":"ᅮᅥ丨","ㅞ":"ᅮᅥ丨","ힵ":"ᅮᅧ","ᆌ":"ᅮᅧ丨","ᆍ":"ᅮᅮ","ᅱ":"ᅮ丨","ㅟ":"ᅮ丨","ힶ":"ᅮ丨丨","ㅠ":"ᅲ","ᆎ":"ᅲᅡ","ힷ":"ᅲᅡ丨","ᆏ":"ᅲᅥ","ᆐ":"ᅲᅥ丨","ᆑ":"ᅲᅧ","ㆊ":"ᅲᅧ","ᆒ":"ᅲᅧ丨","ㆋ":"ᅲᅧ丨","ힸ":"ᅲᅩ","ᆓ":"ᅲᅮ","ᆔ":"ᅲ丨","ㆌ":"ᅲ丨","ㆍ":"ᆞ","ퟅ":"ᆞᅡ","ᆟ":"ᆞᅥ","ퟆ":"ᆞᅥ丨","ᆠ":"ᆞᅮ","ᆢ":"ᆞᆞ","ᆡ":"ᆞ丨","ㆎ":"ᆞ丨","ヘ":"へ","⍁":"〼","⧄":"〼","꒞":"ꁊ","꒬":"ꁐ","꒜":"ꃀ","꒨":"ꄲ","꒿":"ꉙ","꒾":"ꊱ","꒔":"ꋍ","꓀":"ꎫ","꓂":"ꎵ","꒺":"ꎿ","꒰":"ꏂ","꒧":"ꑘ","⊥":"ꓕ","⟂":"ꓕ","𝈜":"ꓕ","Ʇ":"ꓕ","Ꞟ":"ꓤ","⅁":"ꓨ","⅂":"ꓶ","𝈕":"ꓶ","𝈫":"ꓶ","𖼦":"ꓶ","𐐑":"ꓶ","⅃":"𖼀","𑫦":"𑫥𑫯","𑫨":"𑫥𑫥","𑫩":"𑫥𑫥𑫯","𑫪":"𑫥𑫥𑫰","𑫧":"𑫥𑫰","𑫴":"𑫳𑫯","𑫶":"𑫳𑫳","𑫷":"𑫳𑫳𑫯","𑫸":"𑫳𑫳𑫰","𑫵":"𑫳𑫰","𑫬":"𑫫𑫯","𑫭":"𑫫𑫫","𑫮":"𑫫𑫫𑫯","⊕":"𐊨","⨁":"𐊨","🜨":"𐊨","Ꚛ":"𐊨","▽":"𐊼","𝈔":"𐊼","🜄":"𐊼","⧖":"𐋀","ꞛ":"𐐺","Ꞛ":"𐐒","𐒠":"𐒆","𐏑":"𐎂","𐏓":"𐎓","𒀸":"𐎚","☥":"𐦞","𓋹":"𐦞","〹":"卄","不":"不","丽":"丽","並":"並","⎜":"丨","⎟":"丨","⎢":"丨","⎥":"丨","⎪":"丨","⎮":"丨","㇑":"丨","ᅵ":"丨","ㅣ":"丨","⼁":"丨","ᆜ":"丨ー","ᆘ":"丨ᅡ","ᆙ":"丨ᅣ","ힽ":"丨ᅣᅩ","ힾ":"丨ᅣ丨","ힿ":"丨ᅧ","ퟀ":"丨ᅧ丨","ᆚ":"丨ᅩ","ퟁ":"丨ᅩ丨","ퟂ":"丨ᅭ","ᆛ":"丨ᅮ","ퟃ":"丨ᅲ","ᆝ":"丨ᆞ","ퟄ":"丨丨","串":"串","丸":"丸","丹":"丹","乁":"乁","㇠":"乙","⼄":"乙","㇟":"乚","⺃":"乚","㇖":"乛","⺂":"乛","⻲":"亀","亂":"亂","㇚":"亅","⼅":"亅","了":"了","ニ":"二","⼆":"二","𠄢":"𠄢","⼇":"亠","亮":"亮","⼈":"人","イ":"亻","⺅":"亻","什":"什","仌":"仌","令":"令","你":"你","倂":"併","倂":"併","侀":"侀","來":"來","例":"例","侮":"侮","侮":"侮","侻":"侻","便":"便","值":"値","倫":"倫","偺":"偺","備":"備","像":"像","僚":"僚","僧":"僧","僧":"僧","㒞":"㒞","⼉":"儿","兀":"兀","⺎":"兀","充":"充","免":"免","免":"免","兔":"兔","兤":"兤","⼊":"入","內":"內","全":"全","兩":"兩","ハ":"八","⼋":"八","六":"六","具":"具","𠔜":"𠔜","𠔥":"𠔥","冀":"冀","㒹":"㒹","⼌":"冂","再":"再","𠕋":"𠕋","冒":"冒","冕":"冕","㒻":"㒻","最":"最","⼍":"冖","冗":"冗","冤":"冤","⼎":"冫","冬":"冬","况":"况","况":"况","冷":"冷","凉":"凉","凌":"凌","凜":"凜","凞":"凞","⼏":"几","𠘺":"𠘺","凵":"凵","⼐":"凵","⼑":"刀","⺉":"刂","刃":"刃","切":"切","切":"切","列":"列","利":"利","㓟":"㓟","刺":"刺","刻":"刻","剆":"剆","割":"割","剷":"剷","劉":"劉","𠠄":"𠠄","カ":"力","力":"力","⼒":"力","劣":"劣","㔕":"㔕","劳":"劳","勇":"勇","勇":"勇","勉":"勉","勉":"勉","勒":"勒","勞":"勞","勤":"勤","勤":"勤","勵":"勵","⼓":"勹","勺":"勺","勺":"勺","包":"包","匆":"匆","𠣞":"𠣞","⼔":"匕","北":"北","北":"北","⼕":"匚","⼖":"匸","匿":"匿","⼗":"十","〸":"十","〺":"卅","卉":"卉","࿖":"卍","࿕":"卐","卑":"卑","卑":"卑","博":"博","ト":"卜","⼘":"卜","⼙":"卩","⺋":"㔾","即":"即","卵":"卵","卽":"卽","卿":"卿","卿":"卿","卿":"卿","⼚":"厂","𠨬":"𠨬","⼛":"厶","參":"參","⼜":"又","及":"及","叟":"叟","𠭣":"𠭣","ロ":"口","⼝":"口","囗":"口","⼞":"口","句":"句","叫":"叫","叱":"叱","吆":"吆","吏":"吏","吝":"吝","吸":"吸","呂":"呂","呈":"呈","周":"周","咞":"咞","咢":"咢","咽":"咽","䎛":"㖈","哶":"哶","唐":"唐","啓":"啓","啟":"啓","啕":"啕","啣":"啣","善":"善","善":"善","喇":"喇","喙":"喙","喙":"喙","喝":"喝","喝":"喝","喫":"喫","喳":"喳","嗀":"嗀","嗂":"嗂","嗢":"嗢","嘆":"嘆","嘆":"嘆","噑":"噑","噴":"噴","器":"器","囹":"囹","圖":"圖","圗":"圗","⼟":"土","士":"土","⼠":"土","型":"型","城":"城","㦳":"㘽","埴":"埴","堍":"堍","報":"報","堲":"堲","塀":"塀","塚":"塚","塚":"塚","塞":"塞","填":"塡","壿":"墫","墬":"墬","墳":"墳","壘":"壘","壟":"壟","𡓤":"𡓤","壮":"壮","売":"売","壷":"壷","⼡":"夂","夆":"夆","⼢":"夊","タ":"夕","⼣":"夕","多":"多","夢":"夢","⼤":"大","奄":"奄","奈":"奈","契":"契","奔":"奔","奢":"奢","女":"女","⼥":"女","𡚨":"𡚨","𡛪":"𡛪","姘":"姘","姬":"姬","娛":"娛","娧":"娧","婢":"婢","婦":"婦","嬀":"媯","㛮":"㛮","㛼":"㛼","媵":"媵","嬈":"嬈","嬨":"嬨","嬾":"嬾","嬾":"嬾","⼦":"子","⼧":"宀","宅":"宅","𡧈":"𡧈","寃":"寃","寘":"寘","寧":"寧","寧":"寧","寧":"寧","寮":"寮","寳":"寳","𡬘":"𡬘","⼨":"寸","寿":"寿","将":"将","⼩":"小","尢":"尢","⺐":"尢","⼪":"尢","⺏":"尣","㞁":"㞁","⼫":"尸","尿":"尿","屠":"屠","屢":"屢","層":"層","履":"履","屮":"屮","屮":"屮","⼬":"屮","𡴋":"𡴋","⼭":"山","峀":"峀","岍":"岍","𡷤":"𡷤","𡷦":"𡷦","崙":"崙","嵃":"嵃","嵐":"嵐","嵫":"嵫","嵮":"嵮","嵼":"嵼","嶲":"嶲","嶺":"嶺","⼮":"巛","巢":"巢","エ":"工","⼯":"工","⼰":"己","⺒":"巳","㠯":"㠯","巽":"巽","⼱":"巾","帲":"帡","帨":"帨","帽":"帽","幩":"幩","㡢":"㡢","𢆃":"𢆃","⼲":"干","年":"年","𢆟":"𢆟","⺓":"幺","⼳":"幺","⼴":"广","度":"度","㡼":"㡼","庰":"庰","庳":"庳","庶":"庶","廊":"廊","廊":"廊","廉":"廉","廒":"廒","廓":"廓","廙":"廙","廬":"廬","⼵":"廴","廾":"廾","⼶":"廾","𢌱":"𢌱","𢌱":"𢌱","弄":"弄","⼷":"弋","⼸":"弓","弢":"弢","弢":"弢","⼹":"彐","⺔":"彑","当":"当","㣇":"㣇","⼺":"彡","形":"形","彩":"彩","彫":"彫","⼻":"彳","律":"律","㣣":"㣣","徚":"徚","復":"復","徭":"徭","⼼":"心","⺖":"忄","⺗":"㣺","忍":"忍","志":"志","念":"念","忹":"忹","怒":"怒","怜":"怜","恵":"恵","㤜":"㤜","㤺":"㤺","悁":"悁","悔":"悔","悔":"悔","惇":"惇","惘":"惘","惡":"惡","𢛔":"𢛔","愈":"愈","慨":"慨","慄":"慄","慈":"慈","慌":"慌","慌":"慌","慎":"慎","慎":"慎","慠":"慠","慺":"慺","憎":"憎","憎":"憎","憎":"憎","憐":"憐","憤":"憤","憯":"憯","憲":"憲","𢡄":"𢡄","𢡊":"𢡊","懞":"懞","懲":"懲","懲":"懲","懲":"懲","懶":"懶","懶":"懶","戀":"戀","⼽":"戈","成":"成","戛":"戛","戮":"戮","戴":"戴","⼾":"戶","戸":"戶","⼿":"手","⺘":"扌","扝":"扝","抱":"抱","拉":"拉","拏":"拏","拓":"拓","拔":"拔","拼":"拼","拾":"拾","𢬌":"𢬌","挽":"挽","捐":"捐","捨":"捨","捻":"捻","掃":"掃","掠":"掠","掩":"掩","揄":"揄","揤":"揤","摒":"摒","𢯱":"𢯱","搜":"搜","搢":"搢","揅":"揅","摩":"摩","摷":"摷","摾":"摾","㨮":"㨮","搉":"㩁","撚":"撚","撝":"撝","擄":"擄","㩬":"㩬","⽀":"支","⽁":"攴","⺙":"攵","敏":"敏","敏":"敏","敖":"敖","敬":"敬","數":"數","𣀊":"𣀊","⽂":"文","⻫":"斉","⽃":"斗","料":"料","⽄":"斤","⽅":"方","旅":"旅","⽆":"无","⺛":"旡","既":"既","旣":"旣","⽇":"日","易":"易","曶":"㫚","㫤":"㫤","晉":"晉","晩":"晚","晴":"晴","晴":"晴","暑":"暑","暑":"暑","暈":"暈","㬈":"㬈","暜":"暜","暴":"暴","曆":"曆","㬙":"㬙","𣊸":"𣊸","⽈":"曰","更":"更","書":"書","⽉":"月","𣍟":"𣍟","肦":"朌","胐":"朏","胊":"朐","脁":"朓","胶":"㬵","朗":"朗","朗":"朗","朗":"朗","脧":"朘","望":"望","望":"望","幐":"㬺","䐠":"㬻","𣎓":"𣎓","膧":"朣","𣎜":"𣎜","⽊":"木","李":"李","杓":"杓","杖":"杖","杞":"杞","𣏃":"𣏃","柿":"杮","杻":"杻","枅":"枅","林":"林","㭉":"㭉","𣏕":"𣏕","柳":"柳","柺":"柺","栗":"栗","栟":"栟","桒":"桒","𣑭":"𣑭","梁":"梁","梅":"梅","梅":"梅","梎":"梎","梨":"梨","椔":"椔","楂":"楂","㮝":"㮝","㮝":"㮝","槩":"㮣","樧":"榝","榣":"榣","槪":"槪","樂":"樂","樂":"樂","樂":"樂","樓":"樓","𣚣":"𣚣","檨":"檨","櫓":"櫓","櫛":"櫛","欄":"欄","㰘":"㰘","⽋":"欠","次":"次","𣢧":"𣢧","歔":"歔","㱎":"㱎","⽌":"止","⻭":"歯","歲":"歲","歷":"歷","歹":"歹","⽍":"歹","⺞":"歺","殟":"殟","殮":"殮","⽎":"殳","殺":"殺","殺":"殺","殺":"殺","殻":"殻","𣪍":"𣪍","⽏":"毋","⺟":"母","𣫺":"𣫺","⽐":"比","⽑":"毛","⽒":"氏","⺠":"民","⽓":"气","⽔":"水","⺡":"氵","⺢":"氺","汎":"汎","汧":"汧","沈":"沈","沿":"沿","泌":"泌","泍":"泍","泥":"泥","𣲼":"𣲼","洛":"洛","洞":"洞","洴":"洴","派":"派","流":"流","流":"流","流":"流","洖":"洖","浩":"浩","浪":"浪","海":"海","海":"海","浸":"浸","涅":"涅","𣴞":"𣴞","淋":"淋","淚":"淚","淪":"淪","淹":"淹","渚":"渚","港":"港","湮":"湮","潙":"溈","滋":"滋","滋":"滋","溜":"溜","溺":"溺","滇":"滇","滑":"滑","滛":"滛","㴳":"㴳","漏":"漏","漢":"漢","漢":"漢","漣":"漣","𣻑":"𣻑","潮":"潮","𣽞":"𣽞","𣾎":"𣾎","濆":"濆","濫":"濫","濾":"濾","瀛":"瀛","瀞":"瀞","瀞":"瀞","瀹":"瀹","灊":"灊","㶖":"㶖","⽕":"火","⺣":"灬","灰":"灰","灷":"灷","災":"災","炙":"炙","炭":"炭","烈":"烈","烙":"烙","煮":"煮","煮":"煮","𤉣":"𤉣","煅":"煅","煉":"煉","𤋮":"𤋮","熜":"熜","燎":"燎","燐":"燐","𤎫":"𤎫","爐":"爐","爛":"爛","爨":"爨","⽖":"爪","爫":"爫","⺤":"爫","爵":"爵","爵":"爵","⽗":"父","⽘":"爻","⺦":"丬","⽙":"爿","⽚":"片","牐":"牐","⽛":"牙","𤘈":"𤘈","⽜":"牛","牢":"牢","犀":"犀","犕":"犕","⽝":"犬","⺨":"犭","犯":"犯","狀":"狀","𤜵":"𤜵","狼":"狼","猪":"猪","猪":"猪","𤠔":"𤠔","獵":"獵","獺":"獺","⽞":"玄","率":"率","率":"率","⽟":"玉","王":"王","㺬":"㺬","玥":"玥","玲":"玲","㺸":"㺸","㺸":"㺸","珞":"珞","琉":"琉","理":"理","琢":"琢","瑇":"瑇","瑜":"瑜","瑩":"瑩","瑱":"瑱","瑱":"瑱","璅":"璅","璉":"璉","璘":"璘","瓊":"瓊","⽠":"瓜","⽡":"瓦","㼛":"㼛","甆":"甆","⽢":"甘","⽣":"生","甤":"甤","⽤":"用","⽥":"田","画":"画","甾":"甾","𤰶":"𤰶","留":"留","略":"略","異":"異","異":"異","𤲒":"𤲒","⽦":"疋","⽧":"疒","痢":"痢","瘐":"瘐","瘟":"瘟","瘝":"瘝","療":"療","癩":"癩","⽨":"癶","⽩":"白","𤾡":"𤾡","𤾸":"𤾸","⽪":"皮","⽫":"皿","𥁄":"𥁄","㿼":"㿼","益":"益","益":"益","盛":"盛","盧":"盧","䀈":"䀈","⽬":"目","直":"直","直":"直","𥃲":"𥃲","𥃳":"𥃳","省":"省","䀘":"䀘","𥄙":"𥄙","眞":"眞","真":"真","真":"真","𥄳":"𥄳","着":"着","睊":"睊","睊":"睊","鿃":"䀹","䀹":"䀹","䀹":"䀹","晣":"䀿","䁆":"䁆","瞋":"瞋","𥉉":"𥉉","瞧":"瞧","⽭":"矛","⽮":"矢","⽯":"石","䂖":"䂖","𥐝":"𥐝","硏":"研","硎":"硎","硫":"硫","碌":"碌","碌":"碌","碑":"碑","磊":"磊","磌":"磌","磌":"磌","磻":"磻","䃣":"䃣","礪":"礪","⽰":"示","⺭":"礻","礼":"礼","社":"社","祈":"祈","祉":"祉","𥘦":"𥘦","祐":"祐","祖":"祖","祖":"祖","祝":"祝","神":"神","祥":"祥","視":"視","視":"視","祿":"祿","𥚚":"𥚚","禍":"禍","禎":"禎","福":"福","福":"福","𥛅":"𥛅","禮":"禮","⽱":"禸","⽲":"禾","秊":"秊","䄯":"䄯","秫":"秫","稜":"稜","穊":"穊","穀":"穀","穀":"穀","穏":"穏","⽳":"穴","突":"突","𥥼":"𥥼","窱":"窱","立":"立","⽴":"立","⻯":"竜","𥪧":"𥪧","𥪧":"𥪧","竮":"竮","⽵":"竹","笠":"笠","節":"節","節":"節","䈂":"䈂","𥮫":"𥮫","篆":"篆","䈧":"䈧","築":"築","𥲀":"𥲀","𥳐":"𥳐","簾":"簾","籠":"籠","⽶":"米","类":"类","粒":"粒","精":"精","糒":"糒","糖":"糖","糨":"糨","䊠":"䊠","糣":"糣","糧":"糧","⽷":"糸","⺯":"糹","𥾆":"𥾆","紀":"紀","紐":"紐","索":"索","累":"累","絶":"絕","絣":"絣","絛":"絛","綠":"綠","綾":"綾","緇":"緇","練":"練","練":"練","練":"練","縂":"縂","䌁":"䌁","縉":"縉","縷":"縷","繁":"繁","繅":"繅","𦇚":"𦇚","䌴":"䌴","⽸":"缶","𦈨":"𦈨","缾":"缾","𦉇":"𦉇","⽹":"网","⺫":"罒","⺲":"罒","⺱":"罓","䍙":"䍙","署":"署","𦋙":"𦋙","罹":"罹","罺":"罺","羅":"羅","𦌾":"𦌾","⽺":"羊","羕":"羕","羚":"羚","羽":"羽","⽻":"羽","翺":"翺","老":"老","⽼":"老","⺹":"耂","者":"者","者":"者","者":"者","⽽":"而","𦓚":"𦓚","⽾":"耒","𦔣":"𦔣","⽿":"耳","聆":"聆","聠":"聠","𦖨":"𦖨","聯":"聯","聰":"聰","聾":"聾","⾀":"聿","⺺":"肀","⾁":"肉","肋":"肋","肭":"肭","育":"育","䏕":"䏕","䏙":"䏙","腁":"胼","脃":"脃","脾":"脾","䐋":"䐋","朡":"朡","𦞧":"𦞧","𦞵":"𦞵","朦":"䑃","臘":"臘","⾂":"臣","臨":"臨","⾃":"自","臭":"臭","⾄":"至","⾅":"臼","舁":"舁","舁":"舁","舄":"舄","⾆":"舌","舘":"舘","⾇":"舛","⾈":"舟","䑫":"䑫","⾉":"艮","良":"良","⾊":"色","⾋":"艸","艹":"艹","艹":"艹","⺾":"艹","⺿":"艹","⻀":"艹","芋":"芋","芑":"芑","芝":"芝","花":"花","芳":"芳","芽":"芽","若":"若","若":"若","苦":"苦","𦬼":"𦬼","茶":"茶","荒":"荒","荣":"荣","茝":"茝","茣":"茣","莽":"莽","荓":"荓","菉":"菉","菊":"菊","菌":"菌","菜":"菜","菧":"菧","華":"華","菱":"菱","著":"著","著":"著","𦰶":"𦰶","莭":"莭","落":"落","葉":"葉","蔿":"蒍","𦳕":"𦳕","𦵫":"𦵫","蓮":"蓮","蓱":"蓱","蓳":"蓳","蓼":"蓼","蔖":"蔖","䔫":"䔫","蕤":"蕤","𦼬":"𦼬","藍":"藍","䕝":"䕝","𦾱":"𦾱","䕡":"䕡","藺":"藺","蘆":"蘆","䕫":"䕫","蘒":"蘒","蘭":"蘭","𧃒":"𧃒","虁":"蘷","蘿":"蘿","⾌":"虍","⻁":"虎","虐":"虐","虜":"虜","虜":"虜","虧":"虧","虩":"虩","⾍":"虫","蚩":"蚩","蚈":"蚈","蛢":"蛢","蜎":"蜎","蜨":"蜨","蝫":"蝫","蟡":"蟡","蝹":"蝹","蝹":"蝹","螆":"螆","䗗":"䗗","𧏊":"𧏊","螺":"螺","蠁":"蠁","䗹":"䗹","蠟":"蠟","⾎":"血","行":"行","⾏":"行","衠":"衠","衣":"衣","⾐":"衣","⻂":"衤","裂":"裂","𧙧":"𧙧","裏":"裏","裗":"裗","裞":"裞","裡":"裡","裸":"裸","裺":"裺","䘵":"䘵","褐":"褐","襁":"襁","襤":"襤","⾑":"襾","⻄":"西","⻃":"覀","覆":"覆","見":"見","⾒":"見","𧢮":"𧢮","⻅":"见","⾓":"角","⾔":"言","𧥦":"𧥦","詽":"訮","訞":"䚶","䚾":"䚾","䛇":"䛇","誠":"誠","說":"說","說":"說","調":"調","請":"請","諒":"諒","論":"論","諭":"諭","諭":"諭","諸":"諸","諸":"諸","諾":"諾","諾":"諾","謁":"謁","謁":"謁","謹":"謹","謹":"謹","識":"識","讀":"讀","讏":"讆","變":"變","變":"變","⻈":"讠","⾕":"谷","⾖":"豆","豈":"豈","豕":"豕","⾗":"豕","豣":"豜","⾘":"豸","𧲨":"𧲨","⾙":"貝","貫":"貫","賁":"賁","賂":"賂","賈":"賈","賓":"賓","贈":"贈","贈":"贈","贛":"贛","⻉":"贝","⾚":"赤","⾛":"走","起":"起","趆":"赿","𧻓":"𧻓","𧼯":"𧼯","⾜":"足","跋":"跋","趼":"趼","跺":"跥","路":"路","跰":"跰","躛":"躗","⾝":"身","車":"車","⾞":"車","軔":"軔","輧":"軿","輦":"輦","輪":"輪","輸":"輸","輸":"輸","輻":"輻","轢":"轢","⻋":"车","⾟":"辛","辞":"辞","辰":"辰","⾠":"辰","⾡":"辵","辶":"辶","⻌":"辶","⻍":"辶","巡":"巡","連":"連","逸":"逸","逸":"逸","遲":"遲","遼":"遼","𨗒":"𨗒","𨗭":"𨗭","邏":"邏","⾢":"邑","邔":"邔","郎":"郎","郞":"郎","郞":"郎","郱":"郱","都":"都","𨜮":"𨜮","鄑":"鄑","鄛":"鄛","⾣":"酉","酪":"酪","醙":"醙","醴":"醴","⾤":"釆","里":"里","⾥":"里","量":"量","金":"金","⾦":"金","鈴":"鈴","鈸":"鈸","鉶":"鉶","鋗":"鋗","鋘":"鋘","鉼":"鉼","錄":"錄","鍊":"鍊","鎮":"鎭","鏹":"鏹","鐕":"鐕","𨯺":"𨯺","⻐":"钅","⻑":"長","⾧":"長","⻒":"镸","⻓":"长","⾨":"門","開":"開","䦕":"䦕","閭":"閭","閷":"閷","𨵷":"𨵷","⻔":"门","⾩":"阜","⻏":"阝","⻖":"阝","阮":"阮","陋":"陋","降":"降","陵":"陵","陸":"陸","陼":"陼","隆":"隆","隣":"隣","䧦":"䧦","⾪":"隶","隷":"隷","隸":"隷","隸":"隷","⾫":"隹","雃":"雃","離":"離","難":"難","難":"難","⾬":"雨","零":"零","雷":"雷","霣":"霣","𩅅":"𩅅","露":"露","靈":"靈","⾭":"靑","⻘":"青","靖":"靖","靖":"靖","𩇟":"𩇟","⾮":"非","⾯":"面","𩈚":"𩈚","⾰":"革","䩮":"䩮","䩶":"䩶","⾱":"韋","韛":"韛","韠":"韠","⻙":"韦","⾲":"韭","𩐊":"𩐊","⾳":"音","響":"響","響":"響","⾴":"頁","䪲":"䪲","頋":"頋","頋":"頋","頋":"頋","領":"領","頩":"頩","𩒖":"𩒖","頻":"頻","頻":"頻","類":"類","⻚":"页","⾵":"風","𩖶":"𩖶","⻛":"风","⾶":"飛","⻜":"飞","⻝":"食","⾷":"食","⻟":"飠","飢":"飢","飯":"飯","飼":"飼","䬳":"䬳","館":"館","餩":"餩","⻠":"饣","⾸":"首","⾹":"香","馧":"馧","⾺":"馬","駂":"駂","駱":"駱","駾":"駾","驪":"驪","⻢":"马","⾻":"骨","䯎":"䯎","⾼":"高","⾽":"髟","𩬰":"𩬰","鬒":"鬒","鬒":"鬒","⾾":"鬥","⾿":"鬯","⿀":"鬲","⿁":"鬼","⻤":"鬼","⿂":"魚","魯":"魯","鱀":"鱀","鱗":"鱗","⻥":"鱼","⿃":"鳥","鳽":"鳽","䳎":"䳎","鵧":"鵧","䳭":"䳭","𪃎":"𪃎","鶴":"鶴","𪄅":"𪄅","䳸":"䳸","鷺":"鷺","𪈎":"𪈎","鸞":"鸞","鹃":"鹂","⿄":"鹵","鹿":"鹿","⿅":"鹿","𪊑":"𪊑","麗":"麗","麟":"麟","⿆":"麥","⻨":"麦","麻":"麻","⿇":"麻","𪎒":"𪎒","⿈":"黃","⻩":"黄","⿉":"黍","黎":"黎","䵖":"䵖","⿊":"黑","黒":"黑","墨":"墨","黹":"黹","⿋":"黹","⿌":"黽","鼅":"鼅","黾":"黾","⿍":"鼎","鼏":"鼏","⿎":"鼓","鼖":"鼖","⿏":"鼠","鼻":"鼻","⿐":"鼻","齃":"齃","⿑":"齊","⻬":"齐","⿒":"齒","𪘀":"𪘀","⻮":"齿","龍":"龍","⿓":"龍","龎":"龎","⻰":"龙","龜":"龜","龜":"龜","龜":"龜","⿔":"龜","⻳":"龟","⿕":"龠"}')},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i=[],a=0,s=n-r;a<s;a+=16383)i.push(u(e,a,a+16383>s?s:a+16383));1===r?(t=e[n-1],i.push(o[t>>2]+o[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"="));return i.join("")};for(var o=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)o[s]=a[s],r[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var r,i,a=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(o[(i=r)>>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,o,r){var i,a,s=8*r-o-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?r-1:0,h=n?-1:1,p=e[t+d];for(d+=h,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=o;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,o),i-=l}return(p?-1:1)*a*Math.pow(2,i-o)},t.write=function(e,t,n,o,r,i){var a,s,c,l=8*i-r-1,u=(1<<l)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=o?0:i-1,m=o?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+p]=255&s,p+=m,s/=256,r-=8);for(a=a<<r|s,l+=r;l>0;e[n+p]=255&a,p+=m,a/=256,l-=8);e[n+p-m]|=128*g}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetApi=void 0;var o=n(6),r=n(7),i=n(8),a=n(9),s=n(10),c=n(11),l=n(18),u=n(19),d=n(12);function h(e){return(h="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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(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,o=v(e);if(t){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=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&&g(e,t)}(_,e);var t,n,o,h=f(_);function _(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(p(this,_),(e=h.call(this)).clientOrigin=n,E(b(e),"transport",void 0),E(b(e),"capabilitiesFinished",!1),E(b(e),"requestedCapabilities",[]),E(b(e),"approvedCapabilities",void 0),E(b(e),"cachedClientVersions",void 0),!window.parent)throw new Error("No parent window. This widget doesn't appear to be embedded properly.");return e.transport=new a.PostmessageTransport(r.WidgetApiDirection.FromWidget,t,window.parent,window),e.transport.targetOrigin=n,e.transport.on("message",e.handleMessage.bind(b(e))),e}return t=_,(n=[{key:"hasCapability",value:function(e){return Array.isArray(this.approvedCapabilities)?this.approvedCapabilities.includes(e):this.requestedCapabilities.includes(e)}},{key:"requestCapability",value:function(e){if(this.capabilitiesFinished)throw new Error("Capabilities have already been negotiated");this.requestedCapabilities.push(e)}},{key:"requestCapabilities",value:function(e){var t=this;e.forEach((function(e){return t.requestCapability(e)}))}},{key:"requestCapabilityToSendState",value:function(e,t){this.requestCapability(d.WidgetEventCapability.forStateEvent(d.EventDirection.Send,e,t).raw)}},{key:"requestCapabilityToReceiveState",value:function(e,t){this.requestCapability(d.WidgetEventCapability.forStateEvent(d.EventDirection.Receive,e,t).raw)}},{key:"requestCapabilityToSendEvent",value:function(e){this.requestCapability(d.WidgetEventCapability.forRoomEvent(d.EventDirection.Send,e).raw)}},{key:"requestCapabilityToReceiveEvent",value:function(e){this.requestCapability(d.WidgetEventCapability.forRoomEvent(d.EventDirection.Receive,e).raw)}},{key:"requestCapabilityToSendMessage",value:function(e){this.requestCapability(d.WidgetEventCapability.forRoomMessageEvent(d.EventDirection.Send,e).raw)}},{key:"requestCapabilityToReceiveMessage",value:function(e){this.requestCapability(d.WidgetEventCapability.forRoomMessageEvent(d.EventDirection.Receive,e).raw)}},{key:"requestOpenIDConnectToken",value:function(){var e=this;return new Promise((function(t,n){e.transport.sendComplete(s.WidgetApiFromWidgetAction.GetOpenIDCredentials,{}).then((function(o){var r=o.response;r.state===c.OpenIDRequestState.Allowed?t(r):r.state===c.OpenIDRequestState.Blocked?n(new Error("User declined to verify their identity")):r.state===c.OpenIDRequestState.PendingUserConfirmation?e.on("action:".concat(s.WidgetApiToWidgetAction.OpenIDCredentials),(function i(a){a.preventDefault();var l=a.detail;l.data.original_request_id===o.requestId&&(l.data.state===c.OpenIDRequestState.Allowed?(t(l.data),e.transport.reply(l,{})):l.data.state===c.OpenIDRequestState.Blocked?(n(new Error("User declined to verify their identity")),e.transport.reply(l,{})):(n(new Error("Invalid state on reply: "+r.state)),e.transport.reply(l,{error:{message:"Invalid state"}})),e.off("action:".concat(s.WidgetApiToWidgetAction.OpenIDCredentials),i))})):n(new Error("Invalid state: "+r.state))})).catch(n)}))}},{key:"sendContentLoaded",value:function(){return this.transport.send(s.WidgetApiFromWidgetAction.ContentLoaded,{}).then()}},{key:"sendSticker",value:function(e){return this.transport.send(s.WidgetApiFromWidgetAction.SendSticker,e).then()}},{key:"setAlwaysOnScreen",value:function(e){return this.transport.send(s.WidgetApiFromWidgetAction.UpdateAlwaysOnScreen,{value:e}).then((function(e){return e.success}))}},{key:"openModalWidget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:l.MatrixWidgetType.Custom;return this.transport.send(s.WidgetApiFromWidgetAction.OpenModalWidget,{type:r,url:e,name:t,buttons:n,data:o}).then()}},{key:"closeModalWidget",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.transport.send(s.WidgetApiFromWidgetAction.CloseModalWidget,e).then()}},{key:"sendRoomEvent",value:function(e,t){return this.transport.send(s.WidgetApiFromWidgetAction.SendEvent,{type:e,content:t})}},{key:"sendStateEvent",value:function(e,t,n){return this.transport.send(s.WidgetApiFromWidgetAction.SendEvent,{type:e,content:n,state_key:t})}},{key:"setModalButtonEnabled",value:function(e,t){if(e===u.BuiltInModalButtonID.Close)throw new Error("The close button cannot be disabled");return this.transport.send(s.WidgetApiFromWidgetAction.SetModalButtonEnabled,{button:e,enabled:t}).then()}},{key:"start",value:function(){this.transport.start()}},{key:"handleMessage",value:function(e){var t=new CustomEvent("action:".concat(e.detail.action),{detail:e.detail,cancelable:!0});if(this.emit("action:".concat(e.detail.action),t),!t.defaultPrevented)switch(e.detail.action){case s.WidgetApiToWidgetAction.SupportedApiVersions:return this.replyVersions(e.detail);case s.WidgetApiToWidgetAction.Capabilities:return this.handleCapabilities(e.detail);case s.WidgetApiToWidgetAction.UpdateVisibility:case s.WidgetApiToWidgetAction.NotifyCapabilities:return this.transport.reply(e.detail,{});default:return this.transport.reply(e.detail,{error:{message:"Unknown or unsupported action: "+e.detail.action}})}}},{key:"replyVersions",value:function(e){this.transport.reply(e,{supported_versions:i.CurrentApiVersions})}},{key:"getClientVersions",value:function(){var e=this;return Array.isArray(this.cachedClientVersions)?Promise.resolve(this.cachedClientVersions):this.transport.send(s.WidgetApiFromWidgetAction.SupportedApiVersions,{}).then((function(t){return e.cachedClientVersions=t.supported_versions,t.supported_versions})).catch((function(e){return console.warn("non-fatal error getting supported client versions: ",e),[]}))}},{key:"handleCapabilities",value:function(e){var t=this;return this.capabilitiesFinished?this.transport.reply(e,{error:{message:"Capability negotiation already completed"}}):this.getClientVersions().then((function(n){return n.includes(i.UnstableApiVersion.MSC2871)?t.once("action:".concat(s.WidgetApiToWidgetAction.NotifyCapabilities),(function(e){t.approvedCapabilities=e.detail.data.approved,t.emit("ready")})):t.emit("ready"),t.capabilitiesFinished=!0,t.transport.reply(e,{capabilities:t.requestedCapabilities})}))}}])&&m(t.prototype,n),o&&m(t,o),_}(o.EventEmitter);t.WidgetApi=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientWidgetApi=void 0;var o=n(6),r=n(9),i=n(7),a=n(10),s=n(8),c=n(12),l=n(11),u=n(20);function d(e){return(d="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 h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(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,o=v(e);if(t){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=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&&g(e,t)}(h,e);var t,n,o,d=f(h);function h(e,t,n){var o,a;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(a=d.call(this)).widget=e,a.iframe=t,a.driver=n,E(b(a),"transport",void 0),E(b(a),"capabilitiesFinished",!1),E(b(a),"allowedCapabilities",new Set),E(b(a),"allowedEvents",[]),E(b(a),"isStopped",!1),!(null===(o=t)||void 0===o?void 0:o.contentWindow))throw new Error("No iframe supplied");if(!e)throw new Error("Invalid widget");if(!n)throw new Error("Invalid driver");return a.transport=new r.PostmessageTransport(i.WidgetApiDirection.ToWidget,e.id,t.contentWindow,window),a.transport.targetOrigin=e.origin,a.transport.on("message",a.handleMessage.bind(b(a))),e.waitForIframeLoad&&t.addEventListener("load",a.onIframeLoad.bind(b(a))),a.transport.start(),a}return t=h,(n=[{key:"hasCapability",value:function(e){return this.allowedCapabilities.has(e)}},{key:"canSendRoomEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.allowedEvents.some((function(n){return n.matchesAsRoomEvent(e,t)&&n.direction===c.EventDirection.Send}))}},{key:"canSendStateEvent",value:function(e,t){return this.allowedEvents.some((function(n){return n.matchesAsStateEvent(e,t)&&n.direction===c.EventDirection.Send}))}},{key:"canReceiveRoomEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.allowedEvents.some((function(n){return n.matchesAsRoomEvent(e,t)&&n.direction===c.EventDirection.Receive}))}},{key:"canReceiveStateEvent",value:function(e,t){return this.allowedEvents.some((function(n){return n.matchesAsStateEvent(e,t)&&n.direction===c.EventDirection.Receive}))}},{key:"stop",value:function(){this.isStopped=!0,this.transport.stop()}},{key:"onIframeLoad",value:function(e){this.beginCapabilities(),this.iframe.removeEventListener("onload",this.onIframeLoad.bind(this))}},{key:"beginCapabilities",value:function(){var e,t=this;if(this.capabilitiesFinished)throw new Error("Capabilities exchange already completed");this.emit("preparing"),this.transport.send(a.WidgetApiToWidgetAction.Capabilities,{}).then((function(n){return e=n.capabilities,t.driver.validateCapabilities(new Set(n.capabilities))})).then((function(n){console.log("Widget ".concat(t.widget.id," is allowed capabilities:"),Array.from(n)),t.allowedCapabilities=n,t.allowedEvents=c.WidgetEventCapability.findEventCapabilities(n),t.capabilitiesFinished=!0,t.transport.send(a.WidgetApiToWidgetAction.NotifyCapabilities,{requested:e,approved:Array.from(n)}).catch((function(e){console.warn("non-fatal error notifying widget of approved capabilities:",e)})),t.emit("ready")}))}},{key:"handleContentLoadedAction",value:function(e){this.widget.waitForIframeLoad?this.transport.reply(e,{error:{message:"Improper sequence: not expecting load event"}}):(this.transport.reply(e,{}),this.beginCapabilities())}},{key:"replyVersions",value:function(e){this.transport.reply(e,{supported_versions:s.CurrentApiVersions})}},{key:"handleOIDC",value:function(e){var t=this,n=1,o=function(o,r){return r=r||{},n>1?t.transport.send(a.WidgetApiToWidgetAction.OpenIDCredentials,p({state:o,original_request_id:e.requestId},r)):t.transport.reply(e,p({state:o},r))},r=function(r){return console.error("[ClientWidgetApi] Failed to handle OIDC: ",r),n>1?o(l.OpenIDRequestState.Blocked):t.transport.reply(e,{error:{message:r}})},i=new u.SimpleObservable((function(e){return e.state===l.OpenIDRequestState.PendingUserConfirmation&&n>1?(i.close(),r("client provided out-of-phase response to OIDC flow")):e.state===l.OpenIDRequestState.PendingUserConfirmation?(o(e.state),void n++):e.state!==l.OpenIDRequestState.Allowed||e.token?(e.state===l.OpenIDRequestState.Blocked&&(e.token=null),i.close(),o(e.state,e.token)):r("client provided invalid OIDC token for an allowed request")}));this.driver.askOpenID(i)}},{key:"handleSendEvent",value:function(e){var t,n=this;if(!e.data.type)return this.transport.reply(e,{error:{message:"Invalid request - missing event type"}});if(null!==e.data.state_key&&void 0!==e.data.state_key){if(!this.canSendStateEvent(e.data.type,e.data.state_key))return this.transport.reply(e,{error:{message:"Cannot send state events of this type"}});t=this.driver.sendEvent(e.data.type,e.data.content||{},e.data.state_key)}else{var o=e.data.content||{},r=o.msgtype;if(!this.canSendRoomEvent(e.data.type,r))return this.transport.reply(e,{error:{message:"Cannot send room events of this type"}});t=this.driver.sendEvent(e.data.type,o,null)}t.then((function(t){return n.transport.reply(e,{room_id:t.roomId,event_id:t.eventId})})).catch((function(t){return console.error("error sending event: ",t),n.transport.reply(e,{error:{message:"Error sending event"}})}))}},{key:"handleMessage",value:function(e){if(!this.isStopped){var t=new CustomEvent("action:".concat(e.detail.action),{detail:e.detail,cancelable:!0});if(this.emit("action:".concat(e.detail.action),t),!t.defaultPrevented)switch(e.detail.action){case a.WidgetApiFromWidgetAction.ContentLoaded:return this.handleContentLoadedAction(e.detail);case a.WidgetApiFromWidgetAction.SupportedApiVersions:return this.replyVersions(e.detail);case a.WidgetApiFromWidgetAction.SendEvent:return this.handleSendEvent(e.detail);case a.WidgetApiFromWidgetAction.GetOpenIDCredentials:return this.handleOIDC(e.detail);default:return this.transport.reply(e.detail,{error:{message:"Unknown or unsupported action: "+e.detail.action}})}}}},{key:"takeScreenshot",value:function(){return this.transport.send(a.WidgetApiToWidgetAction.TakeScreenshot,{})}},{key:"updateVisibility",value:function(e){return this.transport.send(a.WidgetApiToWidgetAction.UpdateVisibility,{visible:e})}},{key:"sendWidgetConfig",value:function(e){return this.transport.send(a.WidgetApiToWidgetAction.WidgetConfig,e).then()}},{key:"notifyModalWidgetButtonClicked",value:function(e){return this.transport.send(a.WidgetApiToWidgetAction.ButtonClicked,{id:e}).then()}},{key:"notifyModalWidgetClose",value:function(e){return this.transport.send(a.WidgetApiToWidgetAction.CloseModalWidget,e).then()}},{key:"feedEvent",value:function(e){if(void 0!==e.state_key&&null!==e.state_key){if(!this.canReceiveStateEvent(e.type,e.state_key))return Promise.resolve()}else if(!this.canReceiveRoomEvent(e.type,(e.content||{}).msgtype))return Promise.resolve();return this.transport.send(a.WidgetApiToWidgetAction.SendEvent,e).then()}}])&&m(t.prototype,n),o&&m(t,o),h}(o.EventEmitter);t.ClientWidgetApi=y},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isErrorResponse=function(e){if("error"in e){return!!e.error.message}return!1}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoConferenceCapabilities=t.StickerpickerCapabilities=t.MatrixCapabilities=void 0,t.MatrixCapabilities=o,function(e){e.Screenshots="m.capability.screenshot",e.StickerSending="m.sticker",e.AlwaysOnScreen="m.always_on_screen"}(o||(t.MatrixCapabilities=o={}));var r=[o.StickerSending];t.StickerpickerCapabilities=r;var i=[o.AlwaysOnScreen];t.VideoConferenceCapabilities=i},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKind=void 0,t.WidgetKind=o,function(e){e.Room="room",e.Account="account",e.Modal="modal"}(o||(t.WidgetKind=o={}))},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ModalButtonKind=void 0,t.ModalButtonKind=o,function(e){e.Primary="m.primary",e.Secondary="m.secondary",e.Warning="m.warning",e.Danger="m.danger",e.Link="m.link"}(o||(t.ModalButtonKind=o={}))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetParser=void 0;var o=n(23),r=n(21);function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,a=[{key:"parseAccountData",value:function(t){if(!t)return[];for(var n=[],o=0,r=Object.keys(t);o<r.length;o++){var i=r[o],a=t[i];if(a&&("m.widget"===a.type||"im.vector.modular.widgets"===a.type)&&a.sender&&(a.state_key||a.id)===i){var s={content:a.content,sender:a.sender,type:"m.widget",state_key:i,event_id:"$example",room_id:"!example",origin_server_ts:1},c=e.parseRoomWidget(s);c&&n.push(c)}}return n}},{key:"parseWidgetsFromRoomState",value:function(t){if(!t)return[];var n,o=[],r=i(t);try{for(r.s();!(n=r.n()).done;){var a=n.value,s=e.parseRoomWidget(a);s&&o.push(s)}}catch(e){r.e(e)}finally{r.f()}return o}},{key:"parseRoomWidget",value:function(t){if(!t)return null;if("m.widget"!==t.type&&"im.vector.modular.widgets"!==t.type)return null;var n=t.content||{},o={id:t.state_key,creatorUserId:n.creatorUserId||t.sender,name:n.name,type:n.type,url:n.url,waitForIframeLoad:n.waitForIframeLoad,data:n.data};return e.processEstimatedWidget(o)}},{key:"processEstimatedWidget",value:function(e){return e.id&&e.creatorUserId&&e.type&&(0,r.isValidUrl)(e.url)?new o.Widget(e):null}}],(n=null)&&s(t.prototype,n),a&&s(t,a),e}();t.WidgetParser=c},function(e,t,n){"use strict";function o(e){return null==e?"".concat(e):e.toString()}Object.defineProperty(t,"__esModule",{value:!0}),t.runTemplate=function(e,t,n){for(var r=Object.assign({},t.data,{matrix_room_id:n.currentRoomId||"",matrix_user_id:n.currentUserId,matrix_display_name:n.userDisplayName||n.currentUserId,matrix_avatar_url:n.userHttpAvatarUrl||"",matrix_widget_id:t.id}),i=e,a=0,s=Object.keys(r);a<s.length;a++){var c=s[a],l="$".concat(c).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),u=new RegExp(l,"g");i=i.replace(u,encodeURIComponent(o(r[c])))}return i},t.toString=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetDriver=void 0;var o=n(3);function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"validateCapabilities",value:function(e){return Promise.resolve(new Set)}},{key:"sendEvent",value:function(e,t){return Promise.reject(new Error("Failed to override function"))}},{key:"askOpenID",value:function(e){e.update({state:o.OpenIDRequestState.Blocked})}}])&&r(t.prototype,n),i&&r(t,i),e}();t.WidgetDriver=i},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";e.exports=n(807)},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"h",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return f})),n.d(t,"k",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"f",(function(){return E})),n.d(t,"e",(function(){return y})),n.d(t,"g",(function(){return S})),n.d(t,"i",(function(){return T})),n.d(t,"d",(function(){return w})),n.d(t,"j",(function(){return C}));var o=n(16),r=n.n(o),i=n(810),a=n.n(i),s=n(81),c=n.n(s),l=n(88),u=n(104),d=n(1602),h=n(95),p=n(130);function m(e){const t=new Error(e);return t.translatedMessage=f(e),t}function g(e){return e}function f(e,t,n){const o=function(e,t,n){let o=e;if(void 0!==t){const e={};for(const n in t)e[`%\\(${n}\\)s`]=t[n];o=_(o,e)}if(void 0!==n){const e={};for(const t in n)e[`(<${t}>(.*?)<\\/${t}>|<${t}>|<${t}\\s*\\/>)`]=n[t];o=_(o,e)}return o}(function(e,t){let n;t&&"object"==typeof t&&(n=t.count,Object.keys(t).forEach(e=>{void 0===t[e]&&(console.warn("safeCounterpartTranslate called with undefined interpolation name: "+e),t[e]="undefined"),null===t[e]&&(console.warn("safeCounterpartTranslate called with null interpolation name: "+e),t[e]="null")}));let o=a.a.translate(e,t);return void 0===o&&void 0!==n&&(o=a.a.translate(e,Object.assign({},t,{locale:"en"}))),o}(e,Object.assign({interpolate:!1},t)),t,n);return o}function _(e,t){const n=[e];let o=!1;for(const r in t){const i=new RegExp(r,"g");let a=!1;for(let e=0;e<n.length;e++){const s=n[e];if("string"!=typeof s)continue;let c=i.exec(s);if(!c)continue;a=!0;const l=s.substr(0,c.index),u=[];let d;for(;c;){d=c;const e=c.slice(2);let n,a;if(n=t[r]instanceof Function?t[r].apply(null,e):t[r],"object"==typeof n&&(o=!0),"string"==typeof n&&""===n||u.push(n),c=i.exec(s),c){const e=d.index+d[0].length;a=s.substr(e,c.index-e)}else a=s.substr(d.index+d[0].length);a&&u.push(a)}n.splice(e,1,...u),""!==l&&n.splice(e,0,l)}a||"%\\(count\\)s"!==r&&console.log(`Could not find ${i} in ${e}`)}return o?c.a.createElement("span",null,...n):n.join("")}function b(e){Array.isArray(e)||(e=[e]);const t=u.a.get();let n,o;return t&&t.setLanguage(e),x().then(t=>{o=t;for(let t=0;t<e.length;++t)if(o.hasOwnProperty(e[t])){n=e[t];break}return n||(n="en",console.error("Unable to find an appropriate language")),O("i18n/"+o[n].fileName)}).then(e=>{if(a.a.registerTranslations(n,e),a.a.setLocale(n),l.a.setValue("language",null,h.a.DEVICE,n),console.log("set language to "+n),"en"!==n)return O("i18n/"+o.en.fileName)}).then(e=>{e&&a.a.registerTranslations("en",e)})}function v(){return x().then(e=>{const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push({value:n,label:e[n].label});return t})}function E(){return navigator.languages&&navigator.languages.length?navigator.languages:navigator.language?[navigator.language]:[navigator.userLanguage||"en"]}function y(){return E()[0]}function S(e){const t=[],n=T(e),o=n.split("-");return 2===o.length&&o[0]===o[1]?t.push(o[0]):(t.push(n),2===o.length&&t.push(o[0])),t}function T(e){return e.toLowerCase().replace("_","-")}function w(){return a.a.getLocale()}function C(e){const t=w(),n=e.map(T);{const o=n.indexOf(t);if(o>-1)return e[o]}{const o=n.findIndex(e=>e.substr(0,2)===t.substr(0,2));if(o>-1)return e[o]}{const t=n.findIndex(e=>e.startsWith("en"));if(t>-1)return e[t]}return e[0]}function x(){return new Promise((e,t)=>{let n;n="string"==typeof d.a?d.a:"i18n/languages.json",r()({method:"GET",url:n},(n,o,r)=>{n||o.status<200||o.status>=300?t(n):e(JSON.parse(r))})})}async function O(e,t=3){return Object(p.c)(()=>function(e){return new Promise((t,n)=>{r()({method:"GET",url:e},(e,o,r)=>{e||o.status<200||o.status>=300?n(e):t(function(e){const t={};for(const n of Object.keys(e)){const o=n.split("|",2);if(2===o.length){let r=t[o[0]];void 0===r&&(r={},t[o[0]]=r),r[o[1]]=e[n]}else t[n]=e[n]}return t}(JSON.parse(r)))})})}(e),t,t=>(console.log("Failed to load i18n",e),console.error(t),!0))}a.a.setSeparator("|"),a.a.setFallbackLocale("en")},function(e,t,n){e.exports=n(849)()},function(e,t,n){"use strict";n.r(t),n.d(t,"loadSkin",(function(){return r})),n.d(t,"resetSkin",(function(){return i})),n.d(t,"getComponent",(function(){return a}));var o=n(821);function r(e){o.a.load(e)}function i(){o.a.reset()}function a(e){return o.a.getComponent(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return D}));var o=n(82),r=n.n(o),i=n(262),a=n(1),s=n(162),c=n(381),l=n(85),u=n(714),d=n(88),h=n(87);function p(e,t,n){return{action:"MatrixActions.sync",state:t,prevState:n,matrixClient:e}}function m(e,t){return{action:"MatrixActions.accountData",event:t,event_type:t.getType(),event_content:t.getContent()}}function g(e,t,n){return{action:"MatrixActions.Room.accountData",event:t,event_type:t.getType(),event_content:t.getContent(),room:n}}function f(e,t){return{action:"MatrixActions.Room",room:t}}function _(e,t,n){return{action:"MatrixActions.Room.tags",room:n}}function b(e,t,n){return{action:"MatrixActions.Room.receipt",event:t,room:n,matrixClient:e}}function v(e,t,n,o,r,i){return{action:"MatrixActions.Room.timeline",event:t,isLiveEvent:i.liveEvent,isLiveUnfilteredRoomTimelineEvent:n&&i.timeline.getTimelineSet()===n.getUnfilteredTimelineSet()}}function E(e,t,n,o){return{action:"MatrixActions.Room.myMembership",room:t,membership:n,oldMembership:o}}function y(e,t){return{action:"MatrixActions.Event.decrypted",event:t}}var S={_matrixClientListenersStop:[],start(e){this._addMatrixClientListener(e,"sync",p),this._addMatrixClientListener(e,"accountData",m),this._addMatrixClientListener(e,"Room.accountData",g),this._addMatrixClientListener(e,"Room",f),this._addMatrixClientListener(e,"Room.tags",_),this._addMatrixClientListener(e,"Room.receipt",b),this._addMatrixClientListener(e,"Room.timeline",v),this._addMatrixClientListener(e,"Room.myMembership",E),this._addMatrixClientListener(e,"Event.decrypted",y)},_addMatrixClientListener(e,t,n){const o=(...t)=>{const o=n(e,...t);o&&h.a.dispatch(o,!0)};e.on(t,o),this._matrixClientListenersStop.push(()=>{e.removeListener(t,o)})},stop(){this._matrixClientListenersStop.forEach(e=>e())}},T=n(89),w=n(317),C=n(377),x=n(368),O=n(194),k=n(170),R=n(268),A=n(248);class I{constructor(){r()(this,"opts",{initialSyncLimit:20}),r()(this,"matrixClient",null),r()(this,"justRegisteredUserId",void 0),r()(this,"currentClientCreds",void 0)}setIndexedDbWorkerScript(e){u.a.indexedDbWorkerScript=e}get(){return this.matrixClient}unset(){this.matrixClient=null,S.stop()}setJustRegisteredUserId(e){this.justRegisteredUserId=e,e&&window.localStorage.setItem("mx_registration_time",String((new Date).getTime()))}currentUserIsJustRegistered(){return this.matrixClient&&this.matrixClient.credentials.userId===this.justRegisteredUserId}userRegisteredWithinLastHours(e){try{const t=new Date(window.localStorage.getItem("mx_registration_time"));return((new Date).getTime()-t.getTime())/36e5<=e}catch(e){return!1}}replaceUsingCreds(e){this.currentClientCreds=e,this.createClient(e)}async assign(){for(const e of["indexeddb","memory"])try{const e=this.matrixClient.store.startup();console.log("MatrixClientPeg: waiting for MatrixClient store to initialise"),await e;break}catch(t){if("indexeddb"!==e)throw console.error("Failed to start memory store!",t),t;console.error("Error starting matrixclient store - falling back to memory store",t),this.matrixClient.store=new i.a({localStorage:localStorage})}x.f(this.matrixClient);try{!d.a.getValue("lowBandwidth")&&this.matrixClient.initCrypto&&(await this.matrixClient.initCrypto(),this.matrixClient.setCryptoTrustCrossSignedDevices(!d.a.getValue("e2ee.manuallyVerifyAllSessions")),await Object(k.f)(this.matrixClient),x.e(!0))}catch(e){if(e&&"InvalidCryptoStoreError"===e.name){const e=l.getComponent("views.dialogs.CryptoStoreTooNewDialog");T.a.createDialog(e)}console.warn("Unable to initialise e2e",e)}const e=a.c(this.opts);return e.pendingEventOrdering="detached",e.lazyLoadMembers=!0,e.clientWellKnownPollPeriod=7200,S.start(this.matrixClient),C.a.matrixClient=this.matrixClient,e}async start(){const e=await this.assign();console.log("MatrixClientPeg: really starting MatrixClient"),await this.get().startClient(e),console.log("MatrixClientPeg: MatrixClient started")}getCredentials(){return{homeserverUrl:this.matrixClient.baseUrl,identityServerUrl:this.matrixClient.idBaseUrl,userId:this.matrixClient.credentials.userId,deviceId:this.matrixClient.getDeviceId(),accessToken:this.matrixClient.getAccessToken(),guest:this.matrixClient.isGuest()}}getHomeserverName(){const e=/^@.+:(.+)$/.exec(this.matrixClient.credentials.userId);if(null===e||e.length<1)throw new Error("Failed to derive homeserver name from user ID!");return e[1]}createClient(e){const t={baseUrl:e.homeserverUrl,idBaseUrl:e.identityServerUrl,accessToken:e.accessToken,userId:e.userId,deviceId:e.deviceId,pickleKey:e.pickleKey,timelineSupport:!0,forceTURN:!d.a.getValue("webRtcAllowPeerToPeer"),fallbackICEServerAllowed:!!d.a.getValue("fallbackICEServerAllowed"),verificationMethods:[w.d.SAS,R.d,w.d.RECIPROCATE_QR_CODE],unstableClientRelationAggregation:!0,identityServer:new O.a,cryptoCallbacks:{}},n={getDehydrationKey:A.a.getDehydrationKey};Object.assign(t.cryptoCallbacks,k.c,n),this.matrixClient=Object(u.a)(t),this.matrixClient.setMaxListeners(500),this.matrixClient.setGuest(Boolean(e.guest));const o=new c.a(null,{timelineSupport:!0});o.getLiveTimeline().setPaginationToken("",s.a.BACKWARDS),this.matrixClient.setNotifTimelineSet(o)}}window.mxMatrixClientPeg||(window.mxMatrixClientPeg=new I);const D=window.mxMatrixClientPeg},function(e,t,n){"use strict";(function(e){var o=n(826),r=n(386);class i extends o.Dispatcher{dispatch(e,t=!1){e instanceof r.a?e.fn(e=>{this.dispatch(e,t)}):t?super.dispatch(e):setTimeout(super.dispatch.bind(this,e),0)}fire(e,t=!1){this.dispatch({action:e},t)}}const a=new i,s=e;s.mxDispatcher||(s.mxDispatcher=a),t.a=a}).call(this,n(5))},function(e,t,n){"use strict";n.d(t,"a",(function(){return te}));var o=n(82),r=n.n(o),i=n(221),a=n(86),s=n(95);class c extends i.a{constructor(e,t){super(),this.featureNames=e,this.watchers=t}getValue(e,t){if(this.featureNames.includes(e))return this.readFeature(e);if("notificationsEnabled"===e){const e=localStorage.getItem("notifications_enabled");return"string"==typeof e?"true"===e:null}if("notificationBodyEnabled"===e){const e=localStorage.getItem("notifications_body_enabled");return"string"==typeof e?"true"===e:null}if("audioNotificationsEnabled"===e){const e=localStorage.getItem("audio_notifications_enabled");return"string"==typeof e?"true"===e:null}if(["showRightPanelInRoom","showRightPanelInGroup","lastRightPanelPhaseForRoom","lastRightPanelPhaseForGroup"].includes(e)){return JSON.parse(localStorage.getItem("mx_"+e)||"{}").value}return(this.getSettings()||{})[e]}setValue(e,t,n){if(this.featureNames.includes(e))return this.writeFeature(e,n),Promise.resolve();if("notificationsEnabled"===e)return localStorage.setItem("notifications_enabled",n),this.watchers.notifyUpdate(e,null,s.a.DEVICE,n),Promise.resolve();if("notificationBodyEnabled"===e)return localStorage.setItem("notifications_body_enabled",n),this.watchers.notifyUpdate(e,null,s.a.DEVICE,n),Promise.resolve();if("audioNotificationsEnabled"===e)return localStorage.setItem("audio_notifications_enabled",n),this.watchers.notifyUpdate(e,null,s.a.DEVICE,n),Promise.resolve();if(["showRightPanelInRoom","showRightPanelInGroup","lastRightPanelPhaseForRoom","lastRightPanelPhaseForGroup"].includes(e))return localStorage.setItem("mx_"+e,JSON.stringify({value:n})),this.watchers.notifyUpdate(e,null,s.a.DEVICE,n),Promise.resolve();const o=this.getSettings()||{};return o[e]=n,localStorage.setItem("mx_local_settings",JSON.stringify(o)),this.watchers.notifyUpdate(e,null,s.a.DEVICE,n),Promise.resolve()}canSetValue(e,t){return!0}isSupported(){return void 0!==localStorage&&null!==localStorage}watchSetting(e,t,n){this.watchers.watchSetting(e,t,n)}unwatchSetting(e){this.watchers.unwatchSetting(e)}getSettings(){const e=localStorage.getItem("mx_local_settings");return e?JSON.parse(e):null}readFeature(e){if(a.a.get()&&a.a.get().isGuest())return!1;const t=localStorage.getItem("mx_labs_feature_"+e);return"true"===t||"false"!==t&&null}writeFeature(e,t){localStorage.setItem("mx_labs_feature_"+e,""+t),this.watchers.notifyUpdate(e,null,s.a.DEVICE,t)}}class l extends i.a{constructor(e){super(),this.watchers=e}getValue(e,t){if("blacklistUnverifiedDevices"===e){const e=this.read("mx_local_settings");if(e&&e.blacklistUnverifiedDevicesPerRoom)return e.blacklistUnverifiedDevicesPerRoom[t]}const n=this.read(this.getKey(e,t));return n?n.value:null}setValue(e,t,n){if("blacklistUnverifiedDevices"===e){let o=this.read("mx_local_settings");return o||(o={}),o.blacklistUnverifiedDevicesPerRoom||(o.blacklistUnverifiedDevicesPerRoom={}),o.blacklistUnverifiedDevicesPerRoom[t]=n,localStorage.setItem("mx_local_settings",JSON.stringify(o)),this.watchers.notifyUpdate(e,t,s.a.ROOM_DEVICE,n),Promise.resolve()}return null===n?localStorage.removeItem(this.getKey(e,t)):(n=JSON.stringify({value:n}),localStorage.setItem(this.getKey(e,t),n)),this.watchers.notifyUpdate(e,t,s.a.ROOM_DEVICE,n),Promise.resolve()}canSetValue(e,t){return!0}isSupported(){return void 0!==localStorage&&null!==localStorage}read(e){const t=localStorage.getItem(e);return t?JSON.parse(t):null}getKey(e,t){return"mx_setting_"+e+"_"+t}}class u extends i.a{constructor(e,t){super(),this.defaults=e,this.invertedDefaults=t}getValue(e,t){let n=this.defaults[e];return void 0===n&&(n=this.invertedDefaults[e]),n}async setValue(e,t,n){throw new Error("Cannot set values on the default level handler")}canSetValue(e,t){return!1}isSupported(){return!0}}var d=n(377),h=n(145);class p extends d.a{constructor(e){super(),this.watchers=e,r()(this,"onAccountData",(e,t,n)=>{const o=t.roomId;if("org.matrix.room.preview_urls"===e.getType()){let t=e.getContent().disable;t="boolean"!=typeof t?null:!t,this.watchers.notifyUpdate("urlPreviewsEnabled",o,s.a.ROOM_ACCOUNT,t)}else if("org.matrix.room.color_scheme"===e.getType())this.watchers.notifyUpdate("roomColor",o,s.a.ROOM_ACCOUNT,e.getContent());else if("im.vector.web.settings"===e.getType()){const t=n?n.getContent():{},r=Object(h.d)(t,e.getContent());for(const t of r){const n=e.getContent()[t];this.watchers.notifyUpdate(t,o,s.a.ROOM_ACCOUNT,n)}}else"im.vector.setting.allowed_widgets"===e.getType()&&this.watchers.notifyUpdate("allowedWidgets",o,s.a.ROOM_ACCOUNT,e.getContent())})}initMatrixClient(e,t){e&&e.removeListener("Room.accountData",this.onAccountData),t.on("Room.accountData",this.onAccountData)}getValue(e,t){if("urlPreviewsEnabled"===e){const e=this.getSettings(t,"org.matrix.room.preview_urls")||{};return"boolean"!=typeof e.disable?null:!e.disable}if("roomColor"===e)return this.getSettings(t,"org.matrix.room.color_scheme");if("allowedWidgets"===e)return this.getSettings(t,"im.vector.setting.allowed_widgets");return(this.getSettings(t)||{})[e]}setValue(e,t,n){if("urlPreviewsEnabled"===e){const e=this.getSettings(t,"org.matrix.room.preview_urls")||{};return e.disable=!n,a.a.get().setRoomAccountData(t,"org.matrix.room.preview_urls",e)}if("roomColor"===e)return a.a.get().setRoomAccountData(t,"org.matrix.room.color_scheme",n);if("allowedWidgets"===e)return a.a.get().setRoomAccountData(t,"im.vector.setting.allowed_widgets",n);const o=this.getSettings(t)||{};return o[e]=n,a.a.get().setRoomAccountData(t,"im.vector.web.settings",o)}canSetValue(e,t){const n=a.a.get().getRoom(t);return null!=n}isSupported(){const e=a.a.get();return null!=e}getSettings(e,t="im.vector.web.settings"){const n=a.a.get().getRoom(e);if(!n)return null;const o=n.getAccountData(t);return o&&o.getContent()?Object(h.a)(o.getContent()):null}}const m=["im.vector.riot.breadcrumb_rooms","im.vector.setting.breadcrumbs"];class g extends d.a{constructor(e){super(),this.watchers=e,r()(this,"onAccountData",(e,t)=>{if("org.matrix.preview_urls"===e.getType()){let t=e.getContent().disable;t="boolean"!=typeof t?null:!t,this.watchers.notifyUpdate("urlPreviewsEnabled",null,s.a.ACCOUNT,t)}else if("im.vector.web.settings"===e.getType()){const n=t?t.getContent():{},o=Object(h.d)(n,e.getContent());for(const t of o){const n=e.getContent()[t];this.watchers.notifyUpdate(t,null,s.a.ACCOUNT,n)}}else if(m.includes(e.getType()))this.notifyBreadcrumbsUpdate(e);else if("im.vector.setting.integration_provisioning"===e.getType()){const t=e.getContent().enabled;this.watchers.notifyUpdate("integrationProvisioning",null,s.a.ACCOUNT,t)}else if("io.element.recent_emoji"===e.getType()){const t=e.getContent().enabled;this.watchers.notifyUpdate("recent_emoji",null,s.a.ACCOUNT,t)}})}initMatrixClient(e,t){e&&e.removeListener("accountData",this.onAccountData),t.on("accountData",this.onAccountData)}getValue(e,t){if("urlPreviewsEnabled"===e){const e=this.getSettings("org.matrix.preview_urls")||{};return"boolean"!=typeof e.disable?null:!e.disable}if("breadcrumb_rooms"===e){let e=this.getSettings("im.vector.setting.breadcrumbs");return e&&e.recent_rooms||(e=this.getSettings("im.vector.riot.breadcrumb_rooms"),e&&(e.recent_rooms=e.rooms)),e&&e.recent_rooms?e.recent_rooms:[]}if("recent_emoji"===e){const e=this.getSettings("io.element.recent_emoji");return e?e.recent_emoji:null}if("integrationProvisioning"===e){const e=this.getSettings("im.vector.setting.integration_provisioning");return e?e.enabled:null}const n=this.getSettings()||{};let o=n[e];return null==o&&("hideAvatarChanges"!==e&&"hideDisplaynameChanges"!==e||(o=n.hideAvatarDisplaynameChanges)),o}setValue(e,t,n){if("urlPreviewsEnabled"===e){const e=this.getSettings("org.matrix.preview_urls")||{};return e.disable=!n,a.a.get().setAccountData("org.matrix.preview_urls",e)}if("breadcrumb_rooms"===e){let e=this.getSettings("im.vector.setting.breadcrumbs");return e&&e.recent_rooms||(e=this.getSettings("im.vector.riot.breadcrumb_rooms")),e||(e={}),e.recent_rooms=n,a.a.get().setAccountData("im.vector.setting.breadcrumbs",e)}if("recent_emoji"===e){const e=this.getSettings("io.element.recent_emoji")||{};return e.recent_emoji=n,a.a.get().setAccountData("io.element.recent_emoji",e)}if("integrationProvisioning"===e){const e=this.getSettings("im.vector.setting.integration_provisioning")||{};return e.enabled=n,a.a.get().setAccountData("im.vector.setting.integration_provisioning",e)}const o=this.getSettings()||{};return o[e]=n,a.a.get().setAccountData("im.vector.web.settings",o)}canSetValue(e,t){return!0}isSupported(){const e=a.a.get();return null!=e}getSettings(e="im.vector.web.settings"){const t=a.a.get();if(!t)return null;const n=t.getAccountData(e);return n&&n.getContent()?Object(h.a)(n.getContent()):null}notifyBreadcrumbsUpdate(e){let t=[];if("im.vector.riot.breadcrumb_rooms"===e.getType()){const n=this.getSettings("im.vector.setting.breadcrumbs");t=n?n.recent_rooms:e.getContent().rooms}else{if("im.vector.setting.breadcrumbs"!==e.getType())return;t=e.getContent().recent_rooms}this.watchers.notifyUpdate("breadcrumb_rooms",null,s.a.ACCOUNT,t||[])}}class f extends d.a{constructor(e){super(),this.watchers=e,r()(this,"onEvent",(e,t,n)=>{const o=e.getRoomId(),r=this.client.getRoom(o);if(r&&(!r||t===r.currentState))if("org.matrix.room.preview_urls"===e.getType()){let t=e.getContent().disable;t="boolean"!=typeof t?null:!t,this.watchers.notifyUpdate("urlPreviewsEnabled",o,s.a.ROOM,t)}else if("im.vector.web.settings"===e.getType()){const t=n?n.getContent():{},r=Object(h.d)(t,e.getContent());for(const t of r)this.watchers.notifyUpdate(t,o,s.a.ROOM,e.getContent()[t])}})}initMatrixClient(e,t){e&&e.removeListener("RoomState.events",this.onEvent),t.on("RoomState.events",this.onEvent)}getValue(e,t){if("urlPreviewsEnabled"===e){const e=this.getSettings(t,"org.matrix.room.preview_urls")||{};return"boolean"!=typeof e.disable?null:!e.disable}return(this.getSettings(t)||{})[e]}setValue(e,t,n){if("urlPreviewsEnabled"===e){const e=this.getSettings(t,"org.matrix.room.preview_urls")||{};return e.disable=!n,a.a.get().sendStateEvent(t,"org.matrix.room.preview_urls",e)}const o=this.getSettings(t)||{};return o[e]=n,a.a.get().sendStateEvent(t,"im.vector.web.settings",o,"")}canSetValue(e,t){const n=a.a.get(),o=n.getRoom(t);let r="im.vector.web.settings";return"urlPreviewsEnabled"===e&&(r="org.matrix.room.preview_urls"),!!o&&o.currentState.maySendStateEvent(r,n.getUserId())}isSupported(){const e=a.a.get();return null!=e}getSettings(e,t="im.vector.web.settings"){const n=a.a.get().getRoom(e);if(!n)return null;const o=n.currentState.getStateEvents(t,"");return o&&o.getContent()?Object(h.a)(o.getContent()):null}}var _=n(92),b=n(1);class v extends i.a{constructor(e){super(),this.featureNames=e}getValue(e,t){const n=_.a.get()||{};if(this.featureNames.includes(e)){const t=(n.features||{})[e];return Object(b.r)(t)?null:!0===t||!1===t?t:"enable"===t||"disable"!==t&&null}if("theme"===e)return n.default_theme;const o=n.settingDefaults;return!o||Object(b.r)(o[e])?null:o[e]}async setValue(e,t,n){throw new Error("Cannot change settings at the config level")}canSetValue(e,t){return!1}isSupported(){return!0}}var E=n(83),y=n(87),S=n(265),T=n(715),w=n(158);class C extends w.a{onChange(e,t,n){y.a.dispatch({action:"feature_custom_status_changed"})}}var x=n(487);class O extends w.a{constructor(e,t){super(),this.setter=e,this.inverse=t}onChange(e,t,n){this.setter.call(a.a.get(),this.inverse?!n:n)}}var k=n(104);class R extends w.a{onChange(e,t,n){k.a.get().reload()}}var A=n(93);class I extends w.a{constructor(){super()}onChange(e,t,n){y.a.dispatch({action:A.a.UpdateFontSize,size:n})}}class D extends w.a{constructor(){super()}onChange(e,t,n){y.a.dispatch({action:A.a.UpdateSystemFont,useSystemFont:te.getValue("useSystemFont"),font:n})}}class N extends w.a{constructor(){super()}onChange(e,t,n){y.a.dispatch({action:A.a.UpdateSystemFont,useSystemFont:n,font:te.getValue("systemFont")})}}var F=n(118),M=n(98);class P extends w.a{constructor(e,t=!1){super(),this.uiFeatureName=e,this.forcedValue=t}getValueOverride(e,t,n,o){return this.settingDisabled?this.forcedValue:null}get settingDisabled(){return!te.getValue(this.uiFeatureName)}}var L=n(101);class U extends w.a{constructor(e){super(),this.controllers=e}getValueOverride(e,t,n,o){for(const r of this.controllers){const i=r.getValueOverride(e,t,n,o);if(null!=i)return i}return null}onChange(e,t,n){for(const o of this.controllers)o.onChange(e,t,n)}get settingDisabled(){for(const e of this.controllers)if(e.settingDisabled)return!0;return!1}}const B=[s.a.DEVICE,s.a.ROOM_DEVICE,s.a.ROOM_ACCOUNT,s.a.ACCOUNT,s.a.CONFIG],j=[s.a.ROOM_ACCOUNT,s.a.ACCOUNT],G=[s.a.DEVICE,s.a.ROOM_DEVICE,s.a.ROOM_ACCOUNT,s.a.ACCOUNT,s.a.CONFIG,s.a.ROOM],q=[s.a.DEVICE,s.a.ACCOUNT,s.a.CONFIG],H=[s.a.DEVICE,s.a.CONFIG],V=[s.a.DEVICE],z=[s.a.DEVICE,s.a.CONFIG],K=[s.a.CONFIG],W={feature_latex_maths:{isFeature:!0,displayName:Object(E.b)("Render LaTeX maths in messages"),supportedLevels:H,default:!1},feature_communities_v2_prototypes:{isFeature:!0,displayName:Object(E.b)("Communities v2 prototypes. Requires compatible homeserver. Highly experimental - use with caution."),supportedLevels:H,default:!1},feature_new_spinner:{isFeature:!0,displayName:Object(E.b)("New spinner design"),supportedLevels:H,default:!1},feature_pinning:{isFeature:!0,displayName:Object(E.b)("Message Pinning"),supportedLevels:H,default:!1},feature_custom_status:{isFeature:!0,displayName:Object(E.b)("Custom user status messages"),supportedLevels:H,default:!1,controller:new C},feature_custom_tags:{isFeature:!0,displayName:Object(E.b)("Group & filter rooms by custom tags (refresh to apply changes)"),supportedLevels:H,default:!1},feature_state_counters:{isFeature:!0,displayName:Object(E.b)("Render simple counters in room header"),supportedLevels:H,default:!1},feature_many_integration_managers:{isFeature:!0,displayName:Object(E.b)("Multiple integration managers"),supportedLevels:H,default:!1},feature_mjolnir:{isFeature:!0,displayName:Object(E.b)("Try out new ways to ignore people (experimental)"),supportedLevels:H,default:!1},feature_custom_themes:{isFeature:!0,displayName:Object(E.b)("Support adding custom themes"),supportedLevels:H,default:!1},feature_roomlist_preview_reactions_dms:{isFeature:!0,displayName:Object(E.b)("Show message previews for reactions in DMs"),supportedLevels:H,default:!1},feature_roomlist_preview_reactions_all:{isFeature:!0,displayName:Object(E.b)("Show message previews for reactions in all rooms"),supportedLevels:H,default:!1},feature_dehydration:{isFeature:!0,displayName:Object(E.b)("Offline encrypted messaging using dehydrated devices"),supportedLevels:H,default:!1},advancedRoomListLogging:{displayName:Object(E.b)("Enable advanced debugging for the room list"),supportedLevels:V,default:!1},mjolnirRooms:{supportedLevels:[s.a.ACCOUNT],default:[]},mjolnirPersonalRoom:{supportedLevels:[s.a.ACCOUNT],default:null},feature_bridge_state:{isFeature:!0,supportedLevels:H,displayName:Object(E.b)("Show info about bridges in room settings"),default:!1},"RoomList.backgroundImage":{supportedLevels:q,default:null},baseFontSize:{displayName:Object(E.b)("Font size"),supportedLevels:q,default:10,controller:new I},useCustomFontSize:{displayName:Object(E.b)("Use custom size"),supportedLevels:q,default:!1},"MessageComposerInput.suggestEmoji":{supportedLevels:q,displayName:Object(E.b)("Enable Emoji suggestions while typing"),default:!0,invertedSettingName:"MessageComposerInput.dontSuggestEmoji"},"Notifications.alwaysShowBadgeCounts":{supportedLevels:j,default:!1},useCompactLayout:{supportedLevels:V,displayName:Object(E.b)("Use a more compact Modern layout"),default:!1},showRedactions:{supportedLevels:G,displayName:Object(E.b)("Show a placeholder for removed messages"),default:!0,invertedSettingName:"hideRedactions"},showJoinLeaves:{supportedLevels:G,displayName:Object(E.b)("Show join/leave messages (invites/kicks/bans unaffected)"),default:!0,invertedSettingName:"hideJoinLeaves"},showAvatarChanges:{supportedLevels:G,displayName:Object(E.b)("Show avatar changes"),default:!0,invertedSettingName:"hideAvatarChanges"},showDisplaynameChanges:{supportedLevels:G,displayName:Object(E.b)("Show display name changes"),default:!0,invertedSettingName:"hideDisplaynameChanges"},showReadReceipts:{supportedLevels:B,displayName:Object(E.b)("Show read receipts sent by other users"),default:!0,invertedSettingName:"hideReadReceipts"},showTwelveHourTimestamps:{supportedLevels:q,displayName:Object(E.b)("Show timestamps in 12 hour format (e.g. 2:30pm)"),default:!1},alwaysShowTimestamps:{supportedLevels:q,displayName:Object(E.b)("Always show message timestamps"),default:!1},autoplayGifsAndVideos:{supportedLevels:q,displayName:Object(E.b)("Autoplay GIFs and videos"),default:!1},enableSyntaxHighlightLanguageDetection:{supportedLevels:q,displayName:Object(E.b)("Enable automatic language detection for syntax highlighting"),default:!1},"Pill.shouldShowPillAvatar":{supportedLevels:q,displayName:Object(E.b)("Show avatars in user and room mentions"),default:!0,invertedSettingName:"Pill.shouldHidePillAvatar"},"TextualBody.enableBigEmoji":{supportedLevels:q,displayName:Object(E.b)("Enable big emoji in chat"),default:!0,invertedSettingName:"TextualBody.disableBigEmoji"},"MessageComposerInput.isRichTextEnabled":{supportedLevels:q,default:!1},"MessageComposer.showFormatting":{supportedLevels:q,default:!1},sendTypingNotifications:{supportedLevels:q,displayName:Object(E.b)("Send typing notifications"),default:!0,invertedSettingName:"dontSendTypingNotifications"},showTypingNotifications:{supportedLevels:q,displayName:Object(E.b)("Show typing notifications"),default:!0},"MessageComposerInput.ctrlEnterToSend":{supportedLevels:q,displayName:M.b?Object(E.b)("Use Command + Enter to send a message"):Object(E.b)("Use Ctrl + Enter to send a message"),default:!1},"MessageComposerInput.autoReplaceEmoji":{supportedLevels:q,displayName:Object(E.b)("Automatically replace plain text Emoji"),default:!1},"VideoView.flipVideoHorizontally":{supportedLevels:q,displayName:Object(E.b)("Mirror local video feed"),default:!1},"TagPanel.enableTagPanel":{supportedLevels:q,displayName:Object(E.b)("Enable Community Filter Panel"),default:!0,invertedSettingName:"TagPanel.disableTagPanel",controller:new P(L.a.Communities,!0)},theme:{supportedLevels:q,default:"light",controller:new x.a},custom_themes:{supportedLevels:q,default:[]},use_system_theme:{supportedLevels:V,default:!0,displayName:Object(E.b)("Match system theme")},useSystemFont:{supportedLevels:V,default:!1,displayName:Object(E.b)("Use a system font"),controller:new N},systemFont:{supportedLevels:V,default:"",displayName:Object(E.b)("System font name"),controller:new D},webRtcAllowPeerToPeer:{supportedLevels:z,displayName:Object(E.b)("Allow Peer-to-Peer for 1:1 calls"),default:!0,invertedSettingName:"webRtcForceTURN"},webrtc_audiooutput:{supportedLevels:V,default:null},webrtc_audioinput:{supportedLevels:V,default:null},webrtc_videoinput:{supportedLevels:V,default:null},language:{supportedLevels:z,default:"en"},breadcrumb_rooms:{supportedLevels:[s.a.ACCOUNT],default:[]},recent_emoji:{supportedLevels:[s.a.ACCOUNT],default:[]},room_directory_servers:{supportedLevels:[s.a.ACCOUNT],default:[]},integrationProvisioning:{supportedLevels:[s.a.ACCOUNT],default:!0},allowedWidgets:{supportedLevels:[s.a.ROOM_ACCOUNT],default:{}},analyticsOptIn:{supportedLevels:z,displayName:Object(E.b)("Send analytics data"),default:!1},showCookieBar:{supportedLevels:z,default:!0},autocompleteDelay:{supportedLevels:z,default:200},readMarkerInViewThresholdMs:{supportedLevels:z,default:3e3},readMarkerOutOfViewThresholdMs:{supportedLevels:z,default:3e4},blacklistUnverifiedDevices:{supportedLevels:[s.a.ROOM_DEVICE,s.a.DEVICE],supportedLevelsAreOrdered:!0,displayName:{default:Object(E.b)("Never send encrypted messages to unverified sessions from this session"),"room-device":Object(E.b)("Never send encrypted messages to unverified sessions in this room from this session")},default:!1,controller:new P(L.a.AdvancedEncryption)},urlPreviewsEnabled:{supportedLevels:G,displayName:{default:Object(E.b)("Enable inline URL previews by default"),"room-account":Object(E.b)("Enable URL previews for this room (only affects you)"),room:Object(E.b)("Enable URL previews by default for participants in this room")},default:!0,controller:new P(L.a.URLPreviews)},urlPreviewsEnabled_e2ee:{supportedLevels:[s.a.ROOM_DEVICE,s.a.ROOM_ACCOUNT],displayName:{"room-account":Object(E.b)("Enable URL previews for this room (only affects you)")},default:!1,controller:new P(L.a.URLPreviews)},roomColor:{supportedLevels:G,displayName:Object(E.b)("Room Colour"),default:{primary_color:null,secondary_color:null}},notificationsEnabled:{supportedLevels:V,default:!1,controller:new T.b},notificationSound:{supportedLevels:j,default:!1},notificationBodyEnabled:{supportedLevels:V,default:!0,controller:new T.a},audioNotificationsEnabled:{supportedLevels:V,default:!0},enableWidgetScreenshots:{supportedLevels:q,displayName:Object(E.b)("Enable widget screenshots on supported widgets"),default:!1},"PinnedEvents.isOpen":{supportedLevels:[s.a.ROOM_DEVICE],default:!1},promptBeforeInviteUnknownUsers:{supportedLevels:q,displayName:Object(E.b)("Prompt before sending invites to potentially invalid matrix IDs"),default:!0},showDeveloperTools:{supportedLevels:q,displayName:Object(E.b)("Show developer tools"),default:!1},widgetOpenIDPermissions:{supportedLevels:V,default:{allow:[],deny:[]}},"RoomList.orderAlphabetically":{supportedLevels:q,displayName:Object(E.b)("Order rooms by name"),default:!1},"RoomList.orderByImportance":{supportedLevels:q,displayName:Object(E.b)("Show rooms with unread notifications first"),default:!0},breadcrumbs:{supportedLevels:q,displayName:Object(E.b)("Show shortcuts to recently viewed rooms above the room list"),default:!0},showHiddenEventsInTimeline:{displayName:Object(E.b)("Show hidden events in timeline"),supportedLevels:V,default:!1},lowBandwidth:{supportedLevels:z,displayName:Object(E.b)("Low bandwidth mode"),default:!1,controller:new R},fallbackICEServerAllowed:{supportedLevels:V,displayName:Object(E.b)("Allow fallback call assist server turn.matrix.org when your homeserver does not offer one (your IP address would be shared during a call)"),default:null},showImages:{supportedLevels:q,displayName:Object(E.b)("Show previews/thumbnails for images"),default:!0},showRightPanelInRoom:{supportedLevels:V,default:!1},showRightPanelInGroup:{supportedLevels:V,default:!1},lastRightPanelPhaseForRoom:{supportedLevels:V,default:F.b.RoomSummary},lastRightPanelPhaseForGroup:{supportedLevels:V,default:F.b.GroupMemberList},enableEventIndexing:{supportedLevels:V,displayName:Object(E.b)("Enable message search in encrypted rooms"),default:!0},crawlerSleepTime:{supportedLevels:V,displayName:Object(E.b)("How fast should messages be downloaded."),default:3e3},showCallButtonsInComposer:{supportedLevels:z,default:!0,controller:new P(L.a.Voip)},"e2ee.manuallyVerifyAllSessions":{supportedLevels:V,displayName:Object(E.b)("Manually verify all remote sessions"),default:!1,controller:new U([new P(L.a.AdvancedEncryption),new O(S.b.prototype.setCryptoTrustCrossSignedDevices,!0)])},ircDisplayNameWidth:{supportedLevels:[s.a.ROOM_DEVICE,s.a.DEVICE],supportedLevelsAreOrdered:!0,displayName:Object(E.b)("IRC display name width"),default:80},useIRCLayout:{supportedLevels:q,displayName:Object(E.b)("Enable experimental, compact IRC style layout"),default:!1},showChatEffects:{supportedLevels:q,displayName:Object(E.b)("Show chat effects"),default:!0},"Widgets.pinned":{supportedLevels:j,default:{}},"Widgets.leftPanel":{supportedLevels:q,default:null},[L.a.RoomHistorySettings]:{supportedLevels:K,default:!0},[L.a.AdvancedEncryption]:{supportedLevels:K,default:!0},[L.a.URLPreviews]:{supportedLevels:K,default:!0},[L.a.Widgets]:{supportedLevels:K,default:!0},[L.a.Voip]:{supportedLevels:K,default:!0},[L.a.Feedback]:{supportedLevels:K,default:!0},[L.a.Registration]:{supportedLevels:K,default:!0},[L.a.PasswordReset]:{supportedLevels:K,default:!0},[L.a.Deactivate]:{supportedLevels:K,default:!0},[L.a.ShareQRCode]:{supportedLevels:K,default:!0},[L.a.ShareSocial]:{supportedLevels:K,default:!0},[L.a.IdentityServer]:{supportedLevels:K,default:!0,controller:new P(L.a.ThirdPartyID)},[L.a.ThirdPartyID]:{supportedLevels:K,default:!0},[L.a.Flair]:{supportedLevels:K,default:!0,controller:new P(L.a.Communities)},[L.a.Communities]:{supportedLevels:K,default:!0},[L.a.AdvancedSettings]:{supportedLevels:K,default:!0}};class Y extends i.a{constructor(e){super(),this.handler=e,r()(this,"cache",{})}getValue(e,t){const n=t||"UNDEFINED",o=this.cache[e];return o&&o.hasOwnProperty(n)?o[n]:this.handler.getValue(e,t)}setValue(e,t,n){this.cache[e]||(this.cache[e]={});const o=this.cache[e],r=t||"UNDEFINED";o[r]=n;const i=this.handler.setValue(e,t,n);return Promise.resolve(i).finally(()=>{delete o[r]})}canSetValue(e,t){return this.handler.canSetValue(e,t)}isSupported(){return this.handler.isSupported()}}const $=new class{constructor(){r()(this,"watchers",{})}watchSetting(e,t,n){this.watchers[e]||(this.watchers[e]={}),this.watchers[e][t]||(this.watchers[e][t]=[]),this.watchers[e][t].push(n)}unwatchSetting(e){for(const t of Object.keys(this.watchers))for(const n of Object.keys(this.watchers[t])){let o;for(;-1!==(o=this.watchers[t][n].indexOf(e));)this.watchers[t][n].splice(o,1)}}notifyUpdate(e,t,n,o){if(!this.watchers[e])return;const r=this.watchers[e],i=[];null!==t&&r[t]&&i.push(...r[t]),t?r.null&&i.push(...r.null):i.push(...Object.values(r).flat(1));for(const e of i)e(t,n,o)}},Q={},X={},J=[];for(const e of Object.keys(W))Q[e]=W[e].default,W[e].isFeature&&J.push(e),W[e].invertedSettingName&&(X[W[e].invertedSettingName]=!W[e].default);const Z={[s.a.DEVICE]:new c(J,$),[s.a.ROOM_DEVICE]:new l($),[s.a.ROOM_ACCOUNT]:new p($),[s.a.ACCOUNT]:new g($),[s.a.ROOM]:new f($),[s.a.CONFIG]:new v(J),[s.a.DEFAULT]:new u(Q,X)};for(const e of Object.keys(Z))Z[e]=new Y(Z[e]);const ee=[s.a.DEVICE,s.a.ROOM_DEVICE,s.a.ROOM_ACCOUNT,s.a.ACCOUNT,s.a.ROOM,s.a.CONFIG,s.a.DEFAULT];class te{static getFeatureSettingNames(){return Object.keys(W).filter(e=>te.isFeature(e))}static watchSetting(e,t,n){const o=W[e],r=e;if(!o)throw new Error(e+" is not a setting");o.invertedSettingName&&(e=o.invertedSettingName);const i=`${(new Date).getTime()}_${te.watcherCount++}_${e}_${t}`,a=(e,t,o)=>{const i=te.getValue(r);n(r,e,t,o,i)};return te.watchers[i]=a,$.watchSetting(e,t,a),i}static unwatchSetting(e){te.watchers[e]?($.unwatchSetting(te.watchers[e]),delete te.watchers[e]):console.warn("Ending non-existent watcher ID "+e)}static monitorSetting(e,t){t=t||null,this.monitors[e]||(this.monitors[e]={});const n=()=>{this.monitors[e][t]=te.watchSetting(e,t,(e,t,n,o,r)=>{y.a.dispatch({action:"setting_updated",settingName:e,roomId:t,level:n,newValueAtLevel:o,newValue:r})})};if(Object.keys(this.monitors[e]).find(e=>e===t||null===e)){if(null===t){for(const t of Object.keys(this.monitors[e]))te.unwatchSetting(this.monitors[e][t]);this.monitors[e]={},n()}}else n()}static getDisplayName(e,t=s.a.DEFAULT){if(!W[e]||!W[e].displayName)return null;let n=W[e].displayName;return n instanceof Object&&(n=n[t]?n[t]:n.default),Object(E.a)(n)}static isFeature(e){return!!W[e]&&W[e].isFeature}static isEnabled(e){return!!W[e]&&(!W[e].controller||!W[e].controller.settingDisabled)}static getValue(e,t=null,n=!1){if(!W[e])throw new Error("Setting '"+e+"' does not appear to be a setting.");const o=W[e],r=o.supportedLevelsAreOrdered?o.supportedLevels:ee;return te.getValueAt(r[0],e,t,!1,n)}static getValueAt(e,t,n=null,o=!1,r=!1){const i=W[t];if(!i)throw new Error("Setting '"+t+"' does not appear to be a setting.");const a=i.supportedLevelsAreOrdered?i.supportedLevels:ee;a.includes(s.a.DEFAULT)||a.push(s.a.DEFAULT);const c=a.indexOf(e);if(-1===c)throw new Error("Level "+e+" is not prioritized");const l=te.getHandlers(t);if(i.invertedSettingName&&(t=i.invertedSettingName),o){const o=l[e];if(!o)return te.getFinalValue(i,e,n,null,null);const r=o.getValue(t,n);return te.getFinalValue(i,e,n,r,e)}for(let o=c;o<a.length;o++){const s=l[a[o]];if(!s)continue;if(r&&"default"===a[o])continue;const c=s.getValue(t,n);if(null!=c)return te.getFinalValue(i,e,n,c,a[o])}return te.getFinalValue(i,e,n,null,null)}static getDefaultValue(e){if(!W[e])throw new Error("Setting '"+e+"' does not appear to be a setting.");return W[e].default}static getFinalValue(e,t,n,o,r){let i=o;if(e.controller){const a=e.controller.getValueOverride(t,n,o,r);null!=a&&(i=a)}return e.invertedSettingName&&(i=!i),i}static async setValue(e,t,n,o){const r=W[e];if(!r)throw new Error("Setting '"+e+"' does not appear to be a setting.");const i=te.getHandler(e,n);if(!i)throw new Error("Setting "+e+" does not have a handler for "+n);if(r.invertedSettingName&&(e=r.invertedSettingName,o=!o),!i.canSetValue(e,t))throw new Error("User cannot set "+e+" at "+n+" in "+t);await i.setValue(e,t,o);const a=r.controller;a&&a.onChange(n,t,o)}static canSetValue(e,t,n){if(!W[e])throw new Error("Setting '"+e+"' does not appear to be a setting.");if(te.isFeature(e)){const n=te.getValueAt(s.a.CONFIG,e,t,!0,!0);if(!0===n||!1===n)return!1}const o=te.getHandler(e,n);return!!o&&o.canSetValue(e,t)}static isLevelSupported(e){return!!Z[e]&&Z[e].isSupported()}static debugSetting(e,t){console.log("--- DEBUG "+e);const n=W[e];console.log("--- definition: "+(n?JSON.stringify(n):"<NOT_FOUND>")),console.log("--- default level order: "+JSON.stringify(ee)),console.log("--- registered handlers: "+JSON.stringify(Object.keys(Z)));const o=e=>{for(const n of Object.keys(Z)){const o=Z[n];try{const r=o.getValue(e,t);console.log(`--- ${n}@${t||"<no_room>"} = ${JSON.stringify(r)}`)}catch(e){console.log(`--- ${o}@${t||"<no_room>"} THREW ERROR: ${e.message}`),console.error(e)}if(t)try{const t=o.getValue(e,null);console.log(`--- ${n}@<no_room> = ${JSON.stringify(t)}`)}catch(e){console.log(`--- ${o}@<no_room> THREW ERROR: ${e.message}`),console.error(e)}}console.log("--- calculating as returned by SettingsStore"),console.log("--- these might not match if the setting uses a controller - be warned!");try{const n=te.getValue(e,t);console.log(`--- SettingsStore#generic@${t||"<no_room>"} = ${JSON.stringify(n)}`)}catch(e){console.log(`--- SettingsStore#generic@${t||"<no_room>"} THREW ERROR: ${e.message}`),console.error(e)}if(t)try{const t=te.getValue(e,null);console.log("--- SettingsStore#generic@<no_room> = "+JSON.stringify(t))}catch(e){console.log("--- SettingsStore#generic@$<no_room> THREW ERROR: "+e.message),console.error(e)}for(const n of ee){try{const o=te.getValueAt(n,e,t);console.log(`--- SettingsStore#${n}@${t||"<no_room>"} = ${JSON.stringify(o)}`)}catch(e){console.log(`--- SettingsStore#${n}@${t||"<no_room>"} THREW ERROR: ${e.message}`),console.error(e)}if(t)try{const t=te.getValueAt(n,e,null);console.log(`--- SettingsStore#${n}@<no_room> = ${JSON.stringify(t)}`)}catch(e){console.log(`--- SettingsStore#${n}@$<no_room> THREW ERROR: ${e.message}`),console.error(e)}}};o(e),n.invertedSettingName&&(console.log("--- TESTING INVERTED SETTING NAME"),console.log("--- inverted: "+n.invertedSettingName),o(n.invertedSettingName)),console.log("--- END DEBUG")}static getHandler(e,t){const n=te.getHandlers(e);return n[t]?n[t]:null}static getHandlers(e){if(!W[e])return{};const t={};for(const n of W[e].supportedLevels){if(!Z[n])throw new Error("Unexpected level "+n);te.isLevelSupported(n)&&(t[n]=Z[n])}return t.default||(t.default=Z.default),t}}r()(te,"watchers",{}),r()(te,"monitors",{}),r()(te,"watcherCount",1),window.mxSettingsStore=te},function(e,t,n){"use strict";var o=n(94),r=n.n(o),i=n(82),a=n.n(i),s=n(81),c=n.n(s),l=n(135),u=n.n(l),d=n(90),h=n.n(d),p=n(110),m=n(87),g=n(130),f=n(85),_=n(84),b=n.n(_),v=n(83);class E extends c.a.Component{constructor(...e){super(...e),a()(this,"state",{component:null,error:null}),a()(this,"_onWrapperCancelClick",()=>{this.props.onFinished(!1)})}componentDidMount(){this._unmounted=!1,console.log("Starting load of AsyncWrapper for modal"),this.props.prom.then(e=>{if(this._unmounted)return;const t=e.default?e.default:e;this.setState({component:t})}).catch(e=>{console.warn("AsyncWrapper promise failed",e),this.setState({error:e})})}componentWillUnmount(){this._unmounted=!0}render(){if(this.state.component){const e=this.state.component;return c.a.createElement(e,this.props)}if(this.state.error){const e=f.getComponent("views.dialogs.BaseDialog"),t=f.getComponent("views.elements.DialogButtons");return c.a.createElement(e,{onFinished:this.props.onFinished,title:Object(v.a)("Error")},Object(v.a)("Unable to load! Check your network connectivity and try again."),c.a.createElement(t,{primaryButton:Object(v.a)("Dismiss"),onPrimaryButtonClick:this._onWrapperCancelClick,hasCancel:!1}))}{const e=f.getComponent("elements.Spinner");return c.a.createElement(e,null)}}}a()(E,"propTypes",{prom:b.a.object.isRequired});class y{constructor(){a()(this,"counter",0),a()(this,"priorityModal",null),a()(this,"staticModal",null),a()(this,"modals",[]),a()(this,"onBackgroundClick",()=>{const e=this.getCurrentModal();e&&(e.closeReason="backgroundClick",e.close(),e.closeReason=null)})}static getOrCreateContainer(){let e=document.getElementById("mx_Dialog_Container");return e||(e=document.createElement("div"),e.id="mx_Dialog_Container",document.body.appendChild(e)),e}static getOrCreateStaticContainer(){let e=document.getElementById("mx_Dialog_StaticContainer");return e||(e=document.createElement("div"),e.id="mx_Dialog_StaticContainer",document.body.appendChild(e)),e}hasDialogs(){return this.priorityModal||this.staticModal||this.modals.length>0}createTrackedDialog(e,t,...n){return p.a.trackEvent("Modal",e,t),this.createDialog(...n)}appendTrackedDialog(e,t,...n){return p.a.trackEvent("Modal",e,t),this.appendDialog(...n)}createDialog(e,...t){return this.createDialogAsync(Promise.resolve(e),...t)}appendDialog(e,...t){return this.appendDialogAsync(Promise.resolve(e),...t)}createTrackedDialogAsync(e,t,...n){return p.a.trackEvent("Modal",e,t),this.createDialogAsync(...n)}appendTrackedDialogAsync(e,t,...n){return p.a.trackEvent("Modal",e,t),this.appendDialogAsync(...n)}closeCurrentModal(e){const t=this.getCurrentModal();t&&(t.closeReason=e,t.close())}buildModal(e,t,n,o){const i={onFinished:t?t.onFinished:null,onBeforeClose:o.onBeforeClose,beforeClosePromise:null,closeReason:null,className:n,elem:null,close:null},[a,s]=this.getCloseFn(i,t),l=this.counter++;return i.elem=c.a.createElement(E,r()({key:l,prom:e},t,{onFinished:a})),i.close=a,{modal:i,closeDialog:a,onFinishedProm:s}}getCloseFn(e,t){const n=Object(g.b)();return[async(...o)=>{if(e.beforeClosePromise)await e.beforeClosePromise;else if(e.onBeforeClose){e.beforeClosePromise=e.onBeforeClose(e.closeReason);const t=await e.beforeClosePromise;if(e.beforeClosePromise=null,!t)return}n.resolve(o),t&&t.onFinished&&t.onFinished.apply(null,o);const r=this.modals.indexOf(e);r>=0&&this.modals.splice(r,1),this.priorityModal===e&&(this.priorityModal=null,this.modals=[]),this.staticModal===e&&(this.staticModal=null,this.modals=[]),this.reRender()},n.promise]}createDialogAsync(e,t,n,o=!1,r=!1,i={}){const{modal:a,closeDialog:s,onFinishedProm:c}=this.buildModal(e,t,n,i);return o?this.priorityModal=a:r?this.staticModal=a:this.modals.unshift(a),this.reRender(),{close:s,finished:c}}appendDialogAsync(e,t,n){const{modal:o,closeDialog:r,onFinishedProm:i}=this.buildModal(e,t,n,{});return this.modals.push(o),this.reRender(),{close:r,finished:i}}getCurrentModal(){return this.priorityModal?this.priorityModal:this.modals[0]||this.staticModal}reRender(){if(0===this.modals.length&&!this.priorityModal&&!this.staticModal)return m.a.dispatch({action:"aria_unhide_main_app"}),u.a.unmountComponentAtNode(y.getOrCreateContainer()),void u.a.unmountComponentAtNode(y.getOrCreateStaticContainer());if(m.a.dispatch({action:"aria_hide_main_app"}),this.staticModal){const e=h()("mx_Dialog_wrapper mx_Dialog_staticWrapper",this.staticModal.className),t=c.a.createElement("div",{className:e},c.a.createElement("div",{className:"mx_Dialog"},this.staticModal.elem),c.a.createElement("div",{className:"mx_Dialog_background mx_Dialog_staticBackground",onClick:this.onBackgroundClick}));u.a.render(t,y.getOrCreateStaticContainer())}else u.a.unmountComponentAtNode(y.getOrCreateStaticContainer());const e=this.getCurrentModal();if(e!==this.staticModal){const t=h()("mx_Dialog_wrapper",e.className,{mx_Dialog_wrapperWithStaticUnder:this.staticModal}),n=c.a.createElement("div",{className:t},c.a.createElement("div",{className:"mx_Dialog"},e.elem),c.a.createElement("div",{className:"mx_Dialog_background",onClick:this.onBackgroundClick}));u.a.render(n,y.getOrCreateContainer())}else u.a.unmountComponentAtNode(y.getOrCreateContainer())}}window.singletonModalManager||(window.singletonModalManager=new y);t.a=window.singletonModalManager},function(e,t,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=r.apply(null,o);a&&e.push(a)}else if("object"===i)for(var s in o)n.call(o,s)&&o[s]&&e.push(s)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(99),r=n.n(o),i=n(81),a=n.n(i),s=n(98),c=n(90),l=n.n(c);function u(e){let{element:t,onClick:n,children:o,kind:i,disabled:c,inputRef:u,className:d}=e,h=r()(e,["element","onClick","children","kind","disabled","inputRef","className"]);const p=h;return c||(p.onClick=n,p.onKeyDown=e=>{if(e.key===s.a.ENTER)return e.stopPropagation(),e.preventDefault(),n(e);e.key===s.a.SPACE&&(e.stopPropagation(),e.preventDefault())},p.onKeyUp=e=>{if(e.key===s.a.SPACE)return e.stopPropagation(),e.preventDefault(),n(e);e.key===s.a.ENTER&&(e.stopPropagation(),e.preventDefault())}),p.ref=u,p.className=l()("mx_AccessibleButton",d,{mx_AccessibleButton_hasKind:i,["mx_AccessibleButton_kind_"+i]:i,mx_AccessibleButton_disabled:c}),a.a.createElement(t,h,o)}u.defaultProps={element:"div",role:"button",tabIndex:0},u.displayName="AccessibleButton"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(82),r=n.n(o);const i={brand:"Element",integrations_ui_url:"https://scalar.vector.im/",integrations_rest_url:"https://scalar.vector.im/api",bug_report_endpoint_url:null,jitsi:{preferredDomain:"jitsi.riot.im"},desktopBuilds:{available:!0,logo:n(825),url:"https://element.io/get-started"}};class a{static setInstance(e){a.instance=e,window.mxReactSdkConfig=e}static get(){return a.instance||{}}static put(e){const t=Object.keys(i);for(let n=0;n<t.length;++n)void 0===e[t[n]]&&(e[t[n]]=i[t[n]]);a.setInstance(e)}static unset(){a.setInstance({})}static add(e){const t=a.get(),n=Object.assign({},t,e);a.put(n)}}r()(a,"instance",void 0)},function(e,t,n){"use strict";let o;n.d(t,"a",(function(){return o})),function(e){e.ViewUser="view_user",e.ViewUserSettings="view_user_settings",e.ViewRoomDirectory="view_room_directory",e.RecheckTheme="recheck_theme",e.CheckUpdates="check_updates",e.FocusComposer="focus_composer",e.ToggleUserMenu="toggle_user_menu",e.UpdateFontSize="update_font_size",e.UpdateSystemFont="update_system_font",e.ViewRoomDelta="view_room_delta",e.SetRightPanelPhase="set_right_panel_phase",e.ToggleRightPanel="toggle_right_panel",e.AfterRightPanelPhaseChange="after_right_panel_phase_change",e.OpenDialPad="open_dial_pad",e.PstnSupportUpdated="pstn_support_updated"}(o||(o={}))},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";let o;n.d(t,"a",(function(){return o})),function(e){e.DEVICE="device",e.ROOM_DEVICE="room-device",e.ROOM_ACCOUNT="room-account",e.ACCOUNT="account",e.ROOM="room",e.CONFIG="config",e.DEFAULT="default"}(o||(o={}))},function(e,t,n){"use strict";(function(e){var o=n(263),r=n(16),i=n.n(r),a=n(993),s=n.n(a);let c;n.d(t,"a",(function(){return o.AutoDiscovery})),n.d(t,"b",(function(){return o.EventStatus})),n.d(t,"c",(function(){return o.EventTimeline})),n.d(t,"d",(function(){return o.Filter})),n.d(t,"e",(function(){return o.Group})),n.d(t,"f",(function(){return o.IndexedDBCryptoStore})),n.d(t,"g",(function(){return o.IndexedDBStore})),n.d(t,"h",(function(){return o.InteractiveAuth})),n.d(t,"i",(function(){return o.MatrixClient})),n.d(t,"j",(function(){return o.MatrixEvent})),n.d(t,"k",(function(){return o.Room})),n.d(t,"l",(function(){return o.RoomMember})),n.d(t,"m",(function(){return o.SERVICE_TYPES})),n.d(t,"n",(function(){return o.TimelineWindow})),n.d(t,"o",(function(){return o.WebStorageSessionStore})),n.d(t,"p",(function(){return o.createClient})),n.d(t,"r",(function(){return o.setMatrixCallAudioInput})),n.d(t,"s",(function(){return o.setMatrixCallAudioOutput})),n.d(t,"t",(function(){return o.setMatrixCallVideoInput})),o.request((function(e,t){return e.qs=s.a.stringify(e.qs||{},e.qsStringifyOptions),i()(e,t)}));try{c=e.indexedDB}catch(e){}c&&o.setCryptoStoreFactory((function(){return new o.IndexedDBCryptoStore(c,"matrix-js-sdk:crypto")})),t.q=o,e.matrixcs=o}).call(this,n(5))},function(e,t,n){"use strict";var o=n(81);const r=Object(o.createContext)(void 0);r.displayName="MatrixClientContext",t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return a}));const o={HOME:"Home",END:"End",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",BACKSPACE:"Backspace",DELETE:"Delete",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",TAB:"Tab",ESCAPE:"Escape",ENTER:"Enter",ALT:"Alt",CONTROL:"Control",META:"Meta",SHIFT:"Shift",CONTEXT_MENU:"ContextMenu",COMMA:",",PERIOD:".",LESS_THAN:"<",GREATER_THAN:">",BACKTICK:"`",SPACE:" ",SLASH:"/",SQUARE_BRACKET_LEFT:"[",SQUARE_BRACKET_RIGHT:"]",A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z"},r=navigator.platform.toUpperCase().indexOf("MAC")>=0;function i(e){return r?e.metaKey&&!e.altKey&&!e.ctrlKey&&!e.shiftKey:e.ctrlKey&&!e.altKey&&!e.metaKey&&!e.shiftKey}function a(e){return r?e.metaKey&&!e.altKey&&!e.ctrlKey:e.ctrlKey&&!e.altKey&&!e.metaKey}},function(e,t,n){var o=n(823);e.exports=function(e,t){if(null==e)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return O})),n.d(t,"n",(function(){return k})),n.d(t,"k",(function(){return R})),n.d(t,"o",(function(){return A})),n.d(t,"m",(function(){return I})),n.d(t,"l",(function(){return D}));var o=n(94),r=n.n(o),i=n(82),a=n.n(i),s=n(81),c=n.n(s),l=n(135),u=n.n(l),d=n(90),h=n.n(d),p=n(98),m=n(524);n.d(t,"c",(function(){return m.a}));var g=n(525);n.d(t,"d",(function(){return g.a}));var f=n(526);n.d(t,"e",(function(){return f.a}));var _=n(527);n.d(t,"f",(function(){return _.a}));var b=n(528);n.d(t,"g",(function(){return b.a}));var v=n(529);n.d(t,"h",(function(){return v.a}));var E=n(530);n.d(t,"i",(function(){return E.a}));var y=n(531);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,"j",(function(){return y.a}));function w(){let e=document.getElementById("mx_ContextualMenu_Container");return e||(e=document.createElement("div"),e.id="mx_ContextualMenu_Container",document.body.appendChild(e)),e}const C=new Set(["menuitem","menuitemcheckbox","menuitemradio"]);let x;!function(e){e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right",e.None="none"}(x||(x={}));class O extends c.a.PureComponent{constructor(t,n){super(t,n),a()(this,"initialFocus",void 0),a()(this,"collectContextMenuRect",e=>{if(!e)return;let t=e.querySelector('[role^="menuitem"]');t||(t=e.querySelector("[tab-index]")),t&&t.focus(),this.setState({contextMenuElem:e})}),a()(this,"onContextMenu",t=>{if(this.props.onFinished){this.props.onFinished(),t.preventDefault(),t.stopPropagation();const n=t.clientX,o=t.clientY;e(()=>{const e=document.createEvent("MouseEvents");e.initMouseEvent("contextmenu",!0,!0,window,0,0,0,n,o,!1,!1,!1,!1,0,null),document.elementFromPoint(n,o).dispatchEvent(e)})}}),a()(this,"onContextMenuPreventBubbling",e=>{e.stopPropagation()}),a()(this,"onFinished",e=>{e.stopPropagation(),e.preventDefault(),this.props.onFinished&&this.props.onFinished()}),a()(this,"onMoveFocus",(e,t)=>{let n=!1;do{const o=t?e.lastElementChild:e.firstElementChild,r=t?e.previousElementSibling:e.nextElementSibling;n?o?e=o:r?e=r:(n=!1,e=e.parentElement):r?(e=r,n=!0):e=e.parentElement,e&&e.classList.contains("mx_ContextualMenu")&&(e=t?e.lastElementChild:e.firstElementChild,n=!0)}while(e&&!C.has(e.getAttribute("role")));e&&e.focus()}),a()(this,"onMoveFocusHomeEnd",(e,t)=>{let n=e.querySelectorAll('[role^="menuitem"]');n||(n=e.querySelectorAll("[tab-index]")),n&&n.length&&(t?n[0].focus():n[n.length-1].focus())}),a()(this,"onKeyDown",e=>{if(!this.props.managed)return void(e.key===p.a.ESCAPE&&(this.props.onFinished(),e.stopPropagation(),e.preventDefault()));let t=!0;switch(e.key){case p.a.TAB:case p.a.ESCAPE:case p.a.ARROW_LEFT:case p.a.ARROW_RIGHT:this.props.onFinished();break;case p.a.ARROW_UP:this.onMoveFocus(e.target,!0);break;case p.a.ARROW_DOWN:this.onMoveFocus(e.target,!1);break;case p.a.HOME:this.onMoveFocusHomeEnd(this.state.contextMenuElem,!0);break;case p.a.END:this.onMoveFocusHomeEnd(this.state.contextMenuElem,!1);break;default:t=!1}t&&(e.stopPropagation(),e.preventDefault())}),this.state={contextMenuElem:null},this.initialFocus=document.activeElement}componentWillUnmount(){this.initialFocus.focus()}renderMenu(e=this.props.hasBackground){const t={},n=this.props;let o;n.top?t.top=n.top:t.bottom=n.bottom,n.left?(t.left=n.left,o=x.Left):(t.right=n.right,o=x.Right);const r=this.state.contextMenuElem?this.state.contextMenuElem.getBoundingClientRect():null,i={};n.chevronFace&&(o=n.chevronFace);const a=o&&o!==x.None;if(o===x.Top||o===x.Bottom)i.left=n.chevronOffset;else if(void 0!==t.top){const e=t.top;let o=e;if(r){const e=10;o=Math.min(t.top,document.body.clientHeight-r.height+e)}t.top=o,i.top=Math.max(n.chevronOffset,n.chevronOffset+e-o)}let s;a&&(s=c.a.createElement("div",{style:i,className:"mx_ContextualMenu_chevron_"+o}));const l=h()({mx_ContextualMenu:!0,mx_ContextualMenu_left:!a&&t.left,mx_ContextualMenu_right:!a&&t.right,mx_ContextualMenu_top:!a&&t.top,mx_ContextualMenu_bottom:!a&&t.bottom,mx_ContextualMenu_withChevron_left:o===x.Left,mx_ContextualMenu_withChevron_right:o===x.Right,mx_ContextualMenu_withChevron_top:o===x.Top,mx_ContextualMenu_withChevron_bottom:o===x.Bottom}),u={};n.menuWidth&&(u.width=n.menuWidth),n.menuHeight&&(u.height=n.menuHeight),isNaN(Number(n.menuPaddingTop))||(u.paddingTop=n.menuPaddingTop),isNaN(Number(n.menuPaddingLeft))||(u.paddingLeft=n.menuPaddingLeft),isNaN(Number(n.menuPaddingBottom))||(u.paddingBottom=n.menuPaddingBottom),isNaN(Number(n.menuPaddingRight))||(u.paddingRight=n.menuPaddingRight);const d={};let p;return isNaN(Number(n.zIndex))||(u.zIndex=n.zIndex+1,d.zIndex=n.zIndex),e&&(p=c.a.createElement("div",{className:"mx_ContextualMenu_background",style:d,onClick:this.onFinished,onContextMenu:this.onContextMenu})),c.a.createElement("div",{className:"mx_ContextualMenu_wrapper",style:T(T({},t),d),onKeyDown:this.onKeyDown,onContextMenu:this.onContextMenuPreventBubbling},c.a.createElement("div",{className:l,style:u,ref:this.collectContextMenuRect,role:this.props.managed?"menu":void 0},s,n.children),p)}render(){return u.a.createPortal(this.renderMenu(),w())}}a()(O,"defaultProps",{hasBackground:!0,managed:!0});const k=(e,t=12)=>{const n=e.right+window.pageXOffset+3;let o=e.top+e.height/2+window.pageYOffset;return o-=t+8,{left:n,top:o,chevronOffset:t}},R=(e,t=x.None,n=0)=>{const o={chevronFace:t},r=e.right+window.pageXOffset,i=e.bottom+window.pageYOffset,a=e.top+window.pageYOffset;return o.right=window.innerWidth-r,i<window.innerHeight/2?o.top=i+n:o.bottom=window.innerHeight-a+n,o},A=()=>{const e=Object(s.useRef)(null),[t,n]=Object(s.useState)(!1);return[t,e,()=>{n(!0)},()=>{n(!1)},n]};class I extends O{render(){return this.renderMenu(!1)}}function D(e,t){const n=function(...e){u.a.unmountComponentAtNode(w()),t&&t.onFinished&&t.onFinished.apply(null,e)},o=c.a.createElement(I,r()({},t,{onFinished:n,windowResize:n}),c.a.createElement(e,r()({},t,{onFinished:n})));return u.a.render(o,w()),{close:n}}}).call(this,n(149).setImmediate)},function(e,t,n){"use strict";let o;n.d(t,"a",(function(){return o})),function(e){e.AdvancedEncryption="UIFeature.advancedEncryption",e.URLPreviews="UIFeature.urlPreviews",e.Widgets="UIFeature.widgets",e.Voip="UIFeature.voip",e.Feedback="UIFeature.feedback",e.Registration="UIFeature.registration",e.PasswordReset="UIFeature.passwordReset",e.Deactivate="UIFeature.deactivate",e.ShareQRCode="UIFeature.shareQrCode",e.ShareSocial="UIFeature.shareSocial",e.IdentityServer="UIFeature.identityServer",e.ThirdPartyID="UIFeature.thirdPartyId",e.Flair="UIFeature.flair",e.Communities="UIFeature.communities",e.AdvancedSettings="UIFeature.advancedSettings",e.RoomHistorySettings="UIFeature.roomHistorySettings"}(o||(o={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(99),r=n.n(o),i=n(82),a=n.n(i),s=n(81),c=n.n(s),l=n(90),u=n.n(l),d=n(85),h=n(105);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}let g=1;class f extends c.a.PureComponent{constructor(e){super(e),a()(this,"id",void 0),a()(this,"input",void 0),a()(this,"validateOnChange",Object(h.debounce)(()=>{this.validate({focused:!0})},200)),a()(this,"onFocus",e=>{this.setState({focused:!0}),this.props.validateOnFocus&&this.validate({focused:!0}),this.props.onFocus&&this.props.onFocus(e)}),a()(this,"onChange",e=>{this.props.validateOnChange&&this.validateOnChange(),this.props.onChange&&this.props.onChange(e)}),a()(this,"onBlur",e=>{this.setState({focused:!1}),this.props.validateOnBlur&&this.validate({focused:!1}),this.props.onBlur&&this.props.onBlur(e)}),this.state={valid:void 0,feedback:void 0,feedbackVisible:!1,focused:!1},this.id=this.props.id||"mx_Field_"+g++}focus(){this.input.focus()}async validate({focused:e,allowEmpty:t=!0}){if(!this.props.onValidate)return;const n=this.input?this.input.value:null,{valid:o,feedback:r}=await this.props.onValidate({value:n,focused:e,allowEmpty:t});return this.state.focused&&r?this.setState({valid:o,feedback:r,feedbackVisible:!0}):this.setState({valid:o,feedbackVisible:!1}),o}render(){const e=this.props,{element:t,prefixComponent:n,postfixComponent:o,className:i,onValidate:a,children:s,tooltipContent:l,forceValidity:h,tooltipClassName:p,list:g,validateOnBlur:f,validateOnChange:_,validateOnFocus:b}=e,v=r()(e,["element","prefixComponent","postfixComponent","className","onValidate","children","tooltipContent","forceValidity","tooltipClassName","list","validateOnBlur","validateOnChange","validateOnFocus"]);v.placeholder=v.placeholder||v.label,v.id=this.id,v.onFocus=this.onFocus,v.onChange=this.onChange,v.onBlur=this.onBlur;const E=m(m({},v),{},{ref:e=>this.input=e,list:g}),y=c.a.createElement(this.props.element,E,s);let S=null;n&&(S=c.a.createElement("span",{className:"mx_Field_prefix"},n));let T=null;o&&(T=c.a.createElement("span",{className:"mx_Field_postfix"},o));const w=null!=h,C=u()("mx_Field","mx_Field_"+this.props.element,i,{mx_Field_labelAlwaysTopLeft:n,mx_Field_valid:w?h:a&&!0===this.state.valid,mx_Field_invalid:w?!h:a&&!1===this.state.valid}),x=d.getComponent("elements.Tooltip");let O;return(l||this.state.feedback)&&(O=c.a.createElement(x,{tooltipClassName:u()("mx_Field_tooltip",p),visible:this.state.focused&&this.props.forceTooltipVisible||this.state.feedbackVisible,label:l||this.state.feedback,forceOnRight:!0})),c.a.createElement("div",{className:C},S,y,c.a.createElement("label",{htmlFor:this.id},this.props.label),T,O)}}a()(f,"defaultProps",{element:"input",type:"text",validateOnFocus:!0,validateOnBlur:!0,validateOnChange:!0})},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var o=n(99),r=n.n(o),i=n(82),a=n.n(i),s=n(176),c=n(83),l=n(104),u=n(92),d=n(86),h=n(130),p=n(116),m=n(322);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}let _=window.TextEncoder;_||(_=m.TextEncoder);var b;!function(e){e.Landscape="landscape",e.Portrait="portrait"}(b||(b={}));const v=async e=>{const t=(new _).encode(e),n=await window.crypto.subtle.digest("sha-256",t);return[...new Uint8Array(n)].map(e=>e.toString(16).padStart(2,"0")).join("")},E=new Set(["register","login","forgot_password","soft_logout","new","settings","welcome","home","start","directory","start_sso","start_cas","groups","complete_security","post_registration","room","user","group"]);const y=e=>{var t,n;const o=d.a.get(),r=null==o?void 0:o.getRoom(e);return{num_users:null==r?void 0:r.getJoinedMemberCount(),is_encrypted:null==o?void 0:o.isRoomEncrypted(e),is_public:"public"===(null==r||null===(t=r.currentState.getStateEvents("m.room.join_rules",""))||void 0===t||null===(n=t.getContent())||void 0===n?void 0:n.join_rule)}};class S{constructor(){a()(this,"baseUrl",null),a()(this,"appKey",null),a()(this,"userKey",null),a()(this,"anonymous",void 0),a()(this,"appPlatform",void 0),a()(this,"appVersion","unknown"),a()(this,"initTime",S.getTimestamp()),a()(this,"firstPage",!0),a()(this,"heartbeatIntervalId",void 0),a()(this,"activityIntervalId",void 0),a()(this,"trackTime",!0),a()(this,"lastBeat",void 0),a()(this,"storedDuration",0),a()(this,"lastView",void 0),a()(this,"lastViewTime",0),a()(this,"lastViewStoredDuration",0),a()(this,"sessionStarted",!1),a()(this,"heartbeatEnabled",!1),a()(this,"inactivityCounter",0),a()(this,"pendingEvents",[]),a()(this,"lastMsTs",0),a()(this,"getOrientation",()=>window.innerWidth>window.innerHeight?b.Landscape:b.Portrait),a()(this,"reportOrientation",()=>{this.track("[CLY]_orientation",{mode:this.getOrientation()})}),a()(this,"endSession",()=>{this.sessionStarted&&(window.removeEventListener("resize",this.reportOrientation),this.reportViewDuration(),this.request({end_session:1,session_duration:S.getTimestamp()-this.lastBeat})),this.sessionStarted=!1}),a()(this,"onVisibilityChange",()=>{document.hidden?this.stopTime():this.startTime()}),a()(this,"onUserActivity",()=>{this.inactivityCounter>=20&&this.startTime(),this.inactivityCounter=0})}static get instance(){return S.internalInstance}get disabled(){return!this.baseUrl}canEnable(){var e,t;const n=u.a.get();return Boolean("1"!==navigator.doNotTrack&&(null==n||null===(e=n.countly)||void 0===e?void 0:e.url)&&(null==n||null===(t=n.countly)||void 0===t?void 0:t.appKey))}async changeUserKey(e,t=!1){const n=this.userKey;this.userKey=e,n&&t&&await this.request({old_device_id:n})}async enable(e=!0){if(!this.disabled&&this.anonymous===e)return;if(!this.canEnable())return;this.disabled||this.request();const t=u.a.get();this.baseUrl=new URL("/i",t.countly.url),this.appKey=t.countly.appKey,this.anonymous=e,e?await this.changeUserKey(Object(s.a)(64)):await this.changeUserKey(await v(d.a.get().getUserId()),!0);const n=l.a.get();this.appPlatform=n.getHumanReadableName();try{this.appVersion=await n.getAppVersion()}catch(e){console.warn("Failed to get app version, using 'unknown'")}this.heartbeatIntervalId=setInterval(this.heartbeat.bind(this),5e3),this.trackSessions(),this.trackErrors()}async disable(){this.disabled||(await this.track("Opt-Out"),this.endSession(),window.clearInterval(this.heartbeatIntervalId),window.clearTimeout(this.activityIntervalId),this.baseUrl=null,window.removeEventListener("beforeunload",this.endSession),window.removeEventListener("unload",this.endSession),window.removeEventListener("visibilitychange",this.onVisibilityChange),window.removeEventListener("mousemove",this.onUserActivity),window.removeEventListener("click",this.onUserActivity),window.removeEventListener("keydown",this.onUserActivity),window.removeEventListener("scroll",this.onUserActivity))}reportFeedback(e,t){this.track("[CLY]_star_rating",{rating:e,comment:t},null,{},!0)}trackPageChange(e){this.disabled||this.trackPageView()}async trackPageView(){this.reportViewDuration(),await Object(h.d)(0);const e=await async function(e=!0){const t=Object(s.a)(8),{origin:n,hash:o}=window.location;let{pathname:r}=window.location;n.startsWith("file://")&&(r=`/<redacted_${t}>/`);let[i,a,...c]=o.split("/");E.has(a)||(a=`<redacted_${t}>`);for(let n=0;n<c.length;n++)c[n]=e?`<redacted_${t}>`:await v(c[n]);const l=n+r+`${i}/${a}/${c.join("/")}`,u={};let d="$/"+o;switch(a){case"room":{d="view_room";const e=p.a.getRoomId();d+=" "+c[0],u.room_id=c[0],Object.assign(u,y(e));break}}return{name:d,url:l,meta:u}}(this.anonymous),t=e.name;this.lastView=t,this.lastViewTime=S.getTimestamp();const n=f(f({},e.meta),{},{name:t,visit:1,domain:window.location.hostname,view:e.url,segment:this.appPlatform,start:this.firstPage});this.firstPage&&(this.firstPage=!1),this.track("[CLY]_view",n)}static getTimestamp(){return Math.floor((new Date).getTime()/1e3)}getMsTimestamp(){const e=(new Date).getTime();return this.lastMsTs>=e?this.lastMsTs++:this.lastMsTs=e,this.lastMsTs}async recordError(e,t=!1){if(this.disabled||this.anonymous)return;let n="";"object"==typeof e?void 0!==e.stack?n=e.stack:(void 0!==e.name&&(n+=e.name+":"),void 0!==e.message&&(n+=e.message+"\n"),void 0!==e.fileName&&(n+="in "+e.fileName+"\n"),void 0!==e.lineNumber&&(n+="on "+e.lineNumber),void 0!==e.columnNumber&&(n+=":"+e.columnNumber)):n=e+"",n=await(async(e,t,n)=>{const o=[];e.replace(t,(...e)=>(o.push(n(...e)),""));const r=await Promise.all(o);return e.replace(t,()=>r.shift())})(n,/([!@+#]).+?:[\w:.]+/g,async(e,t)=>t+await v(e.substring(1)));const o=this.getMetrics(),r={_resolution:null==o?void 0:o._resolution,_error:n,_app_version:this.appVersion,_run:S.getTimestamp()-this.initTime,_nonfatal:!t,_view:this.lastView};void 0!==navigator.onLine&&(r._online=navigator.onLine),r._background=document.hasFocus(),this.request({crash:JSON.stringify(r)})}trackErrors(){window.onerror=(e,t,n,o,r)=>{if(void 0!==r)this.recordError(r,!1);else{let r="";void 0!==e&&(r+=e+"\n"),void 0!==t&&(r+="at "+t),void 0!==n&&(r+=":"+n),void 0!==o&&(r+=":"+o),r+="\n";try{const e=[];let t=arguments.callee.caller;for(;t;)e.push(t.name),t=t.caller;r+=e.join("\n")}catch(e){}this.recordError(r,!1)}},window.addEventListener("unhandledrejection",e=>{var t;this.recordError(new Error(`Unhandled rejection (reason: ${(null===(t=e.reason)||void 0===t?void 0:t.stack)||e.reason}).`),!0)})}heartbeat(){const e={};if(this.sessionStarted&&this.trackTime){const t=S.getTimestamp();t-this.lastBeat>=60&&(e.session_duration=t-this.lastBeat,this.lastBeat=t)}(this.pendingEvents.length>0||e.session_duration)&&this.request(e)}async request(e={}){const t=f(f({app_key:this.appKey,device_id:this.userKey},this.getTimeParams()),e);if(this.pendingEvents.length>0){const e=10,n=this.pendingEvents.splice(0,e);t.events=JSON.stringify(n)}const n=new URLSearchParams(t);try{await window.fetch(this.baseUrl.toString(),{method:"POST",mode:"no-cors",cache:"no-cache",redirect:"follow",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n})}catch(e){console.error("Analytics error: ",e)}}getTimeParams(){const e=new Date;return{timestamp:this.getMsTimestamp(),hour:e.getHours(),dow:e.getDay()}}queue(e){const{count:t=1}=e,n=r()(e,["count"]),o=f(f(f({},this.getTimeParams()),n),{},{count:t,platform:this.appPlatform,app_version:this.appVersion});this.pendingEvents.push(o),this.pendingEvents.length>1e3&&this.pendingEvents.shift()}startTime(){this.trackTime||(this.trackTime=!0,this.lastBeat=S.getTimestamp()-this.storedDuration,this.lastViewTime=S.getTimestamp()-this.lastViewStoredDuration,this.lastViewStoredDuration=0)}stopTime(){this.trackTime&&(this.trackTime=!1,this.storedDuration=S.getTimestamp()-this.lastBeat,this.lastViewStoredDuration=S.getTimestamp()-this.lastViewTime)}getMetrics(){if(this.anonymous)return;const e={};return e._app_version=this.appVersion,e._ua=navigator.userAgent,screen.width&&screen.height&&(e._resolution=`${screen.width}x${screen.height}`),window.devicePixelRatio&&(e._density=window.devicePixelRatio),e._locale=Object(c.d)(),e}async beginSession(e=!0){if(!this.sessionStarted){this.reportOrientation(),window.addEventListener("resize",this.reportOrientation),this.lastBeat=S.getTimestamp(),this.sessionStarted=!0,this.heartbeatEnabled=e;const t={custom:{home_server:d.a.get()&&d.a.getHomeserverName(),anonymous:this.anonymous}},n={begin_session:1,user_details:JSON.stringify(t)},o=this.getMetrics();o&&(n.metrics=JSON.stringify(o)),await this.request(n)}}reportViewDuration(){this.lastView&&(this.track("[CLY]_view",{name:this.lastView},null,{dur:this.trackTime?S.getTimestamp()-this.lastViewTime:this.lastViewStoredDuration}),this.lastView=null)}trackSessions(){this.beginSession(),this.startTime(),window.addEventListener("beforeunload",this.endSession),window.addEventListener("unload",this.endSession),window.addEventListener("visibilitychange",this.onVisibilityChange),window.addEventListener("mousemove",this.onUserActivity),window.addEventListener("click",this.onUserActivity),window.addEventListener("keydown",this.onUserActivity),window.addEventListener("scroll",this.onUserActivity),this.activityIntervalId=setInterval(()=>{this.inactivityCounter++,this.inactivityCounter>=20&&this.stopTime()},6e4)}trackBeginInvite(e){this.track("begin_invite",{},e)}trackSendInvite(e,t,n){this.track("send_invite",{},t,{dur:S.getTimestamp()-e,sum:n})}async trackRoomCreate(e,t){if(this.disabled)return;let n=S.getTimestamp();const o=d.a.get();o.getRoom(t)||(await new Promise(e=>{const n=r=>{r.roomId===t&&(o.off("Room",n),e())};o.on("Room",n)}),n=S.getTimestamp()),this.track("create_room",{},t,{dur:n-e})}trackRoomJoin(e,t,n){this.track("join_room",{type:n},t,{dur:S.getTimestamp()-e})}async trackSendMessage(e,t,n,o,r,i){if(this.disabled)return;const a=d.a.get().getRoom(n),s=(await t).event_id;let c=S.getTimestamp();a.findEventById(s)||(await new Promise(e=>{const t=n=>{n.getId()===s&&(a.off("Room.localEchoUpdated",t),e())};a.on("Room.localEchoUpdated",t)}),c=S.getTimestamp()),this.track("send_message",{is_edit:o,is_reply:r,msgtype:i.msgtype,format:i.format},n,{dur:c-e})}trackStartCall(e,t=!1,n=!1){this.track("start_call",{is_video:t,is_jitsi:n},e)}trackJoinCall(e,t=!1,n=!1){this.track("join_call",{is_video:t,is_jitsi:n},e)}trackRoomDirectoryBegin(){this.track("room_directory")}trackRoomDirectory(e){this.track("room_directory_done",{},null,{dur:S.getTimestamp()-e})}trackRoomDirectorySearch(e,t){this.track("room_directory_search",{query_length:t.length,query_num_words:t.split(" ").length},null,{sum:e})}async track(e,t,n,o,r=!1){if(this.disabled&&!r)return;let i=t||{};n&&(i=f(f({room_id:await v(n)},y(n)),t)),this.queue(f({key:e,count:1,segmentation:i},o)),this.disabled&&r&&await this.request({device_id:Object(s.a)(64)})}}a()(S,"internalInstance",new S),window.mxCountlyAnalytics=S},function(e,t,n){"use strict";var o=n(82),r=n.n(o);class i{constructor(){r()(this,"platform",null)}get(){return this.platform}set(e){this.platform=e}}window.mxPlatformPeg||(window.mxPlatformPeg=new i),t.a=window.mxPlatformPeg},function(e,t,n){(function(e,o){var r;(function(){var i="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",l="[object Array]",u="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",f="[object Number]",_="[object Object]",b="[object RegExp]",v="[object Set]",E="[object String]",y="[object Symbol]",S="[object WeakMap]",T="[object ArrayBuffer]",w="[object DataView]",C="[object Float32Array]",x="[object Float64Array]",O="[object Int8Array]",k="[object Int16Array]",R="[object Int32Array]",A="[object Uint8Array]",I="[object Uint16Array]",D="[object Uint32Array]",N=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,P=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,U=RegExp(P.source),B=RegExp(L.source),j=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,W=RegExp(K.source),Y=/^\s+|\s+$/g,$=/^\s+/,Q=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,oe=/\w*$/,re=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ce=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,de=/['\n\r\u2028\u2029\\]/g,he="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\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",me="[\\ud800-\\udfff]",ge="["+pe+"]",fe="["+he+"]",_e="\\d+",be="[\\u2700-\\u27bf]",ve="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ee="[^\\ud800-\\udfff"+pe+_e+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ye="\\ud83c[\\udffb-\\udfff]",Se="[^\\ud800-\\udfff]",Te="(?:\\ud83c[\\udde6-\\uddff]){2}",we="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="[A-Z\\xc0-\\xd6\\xd8-\\xde]",xe="(?:"+ve+"|"+Ee+")",Oe="(?:"+Ce+"|"+Ee+")",ke="(?:"+fe+"|"+ye+")"+"?",Re="[\\ufe0e\\ufe0f]?"+ke+("(?:\\u200d(?:"+[Se,Te,we].join("|")+")[\\ufe0e\\ufe0f]?"+ke+")*"),Ae="(?:"+[be,Te,we].join("|")+")"+Re,Ie="(?:"+[Se+fe+"?",fe,Te,we,me].join("|")+")",De=RegExp("[']","g"),Ne=RegExp(fe,"g"),Fe=RegExp(ye+"(?="+ye+")|"+Ie+Re,"g"),Me=RegExp([Ce+"?"+ve+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[ge,Ce,"$"].join("|")+")",Oe+"+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[ge,Ce+xe,"$"].join("|")+")",Ce+"?"+xe+"+(?:['](?:d|ll|m|re|s|t|ve))?",Ce+"+(?:['](?: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_])",_e,Ae].join("|"),"g"),Pe=RegExp("[\\u200d\\ud800-\\udfff"+he+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ue=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Be=-1,je={};je[C]=je[x]=je[O]=je[k]=je[R]=je[A]=je["[object Uint8ClampedArray]"]=je[I]=je[D]=!0,je[c]=je[l]=je[T]=je[u]=je[w]=je[d]=je[h]=je[p]=je[g]=je[f]=je[_]=je[b]=je[v]=je[E]=je[S]=!1;var Ge={};Ge[c]=Ge[l]=Ge[T]=Ge[w]=Ge[u]=Ge[d]=Ge[C]=Ge[x]=Ge[O]=Ge[k]=Ge[R]=Ge[g]=Ge[f]=Ge[_]=Ge[b]=Ge[v]=Ge[E]=Ge[y]=Ge[A]=Ge["[object Uint8ClampedArray]"]=Ge[I]=Ge[D]=!0,Ge[h]=Ge[p]=Ge[S]=!1;var qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,Ve=parseInt,ze="object"==typeof e&&e&&e.Object===Object&&e,Ke="object"==typeof self&&self&&self.Object===Object&&self,We=ze||Ke||Function("return this")(),Ye=t&&!t.nodeType&&t,$e=Ye&&"object"==typeof o&&o&&!o.nodeType&&o,Qe=$e&&$e.exports===Ye,Xe=Qe&&ze.process,Je=function(){try{var e=$e&&$e.require&&$e.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Ze=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,ot=Je&&Je.isSet,rt=Je&&Je.isTypedArray;function it(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 at(e,t,n,o){for(var r=-1,i=null==e?0:e.length;++r<i;){var a=e[r];t(o,a,n(a),e)}return o}function st(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(!t(e[n],n,e))return!1;return!0}function ut(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i}function dt(e,t){return!!(null==e?0:e.length)&&yt(e,t,0)>-1}function ht(e,t,n){for(var o=-1,r=null==e?0:e.length;++o<r;)if(n(t,e[o]))return!0;return!1}function pt(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}function mt(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}function gt(e,t,n,o){var r=-1,i=null==e?0:e.length;for(o&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n}function ft(e,t,n,o){var r=null==e?0:e.length;for(o&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function _t(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}var bt=Ct("length");function vt(e,t,n){var o;return n(e,(function(e,n,r){if(t(e,n,r))return o=n,!1})),o}function Et(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function yt(e,t,n){return t==t?function(e,t,n){var o=n-1,r=e.length;for(;++o<r;)if(e[o]===t)return o;return-1}(e,t,n):Et(e,Tt,n)}function St(e,t,n,o){for(var r=n-1,i=e.length;++r<i;)if(o(e[r],t))return r;return-1}function Tt(e){return e!=e}function wt(e,t){var n=null==e?0:e.length;return n?kt(e,t)/n:NaN}function Ct(e){return function(t){return null==t?void 0:t[e]}}function xt(e){return function(t){return null==e?void 0:e[t]}}function Ot(e,t,n,o,r){return r(e,(function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)})),n}function kt(e,t){for(var n,o=-1,r=e.length;++o<r;){var i=t(e[o]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function Rt(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}function At(e){return function(t){return e(t)}}function It(e,t){return pt(t,(function(t){return e[t]}))}function Dt(e,t){return e.has(t)}function Nt(e,t){for(var n=-1,o=e.length;++n<o&&yt(t,e[n],0)>-1;);return n}function Ft(e,t){for(var n=e.length;n--&&yt(t,e[n],0)>-1;);return n}function Mt(e,t){for(var n=e.length,o=0;n--;)e[n]===t&&++o;return o}var Pt=xt({"À":"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"}),Lt=xt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Ut(e){return"\\"+qe[e]}function Bt(e){return Pe.test(e)}function jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function Gt(e,t){return function(n){return e(t(n))}}function qt(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var s=e[n];s!==t&&s!==a||(e[n]=a,i[r++]=n)}return i}function Ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Vt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function zt(e){return Bt(e)?function(e){var t=Fe.lastIndex=0;for(;Fe.test(e);)++t;return t}(e):bt(e)}function Kt(e){return Bt(e)?function(e){return e.match(Fe)||[]}(e):function(e){return e.split("")}(e)}var Wt=xt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Yt=function e(t){var n,o=(t=null==t?We:Yt.defaults(We.Object(),t,Yt.pick(We,Ue))).Array,r=t.Date,he=t.Error,pe=t.Function,me=t.Math,ge=t.Object,fe=t.RegExp,_e=t.String,be=t.TypeError,ve=o.prototype,Ee=pe.prototype,ye=ge.prototype,Se=t["__core-js_shared__"],Te=Ee.toString,we=ye.hasOwnProperty,Ce=0,xe=(n=/[^.]+$/.exec(Se&&Se.keys&&Se.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Oe=ye.toString,ke=Te.call(ge),Re=We._,Ae=fe("^"+Te.call(we).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ie=Qe?t.Buffer:void 0,Fe=t.Symbol,Pe=t.Uint8Array,qe=Ie?Ie.allocUnsafe:void 0,ze=Gt(ge.getPrototypeOf,ge),Ke=ge.create,Ye=ye.propertyIsEnumerable,$e=ve.splice,Xe=Fe?Fe.isConcatSpreadable:void 0,Je=Fe?Fe.iterator:void 0,bt=Fe?Fe.toStringTag:void 0,xt=function(){try{var e=ei(ge,"defineProperty");return e({},"",{}),e}catch(e){}}(),$t=t.clearTimeout!==We.clearTimeout&&t.clearTimeout,Qt=r&&r.now!==We.Date.now&&r.now,Xt=t.setTimeout!==We.setTimeout&&t.setTimeout,Jt=me.ceil,Zt=me.floor,en=ge.getOwnPropertySymbols,tn=Ie?Ie.isBuffer:void 0,nn=t.isFinite,on=ve.join,rn=Gt(ge.keys,ge),an=me.max,sn=me.min,cn=r.now,ln=t.parseInt,un=me.random,dn=ve.reverse,hn=ei(t,"DataView"),pn=ei(t,"Map"),mn=ei(t,"Promise"),gn=ei(t,"Set"),fn=ei(t,"WeakMap"),_n=ei(ge,"create"),bn=fn&&new fn,vn={},En=Oi(hn),yn=Oi(pn),Sn=Oi(mn),Tn=Oi(gn),wn=Oi(fn),Cn=Fe?Fe.prototype:void 0,xn=Cn?Cn.valueOf:void 0,On=Cn?Cn.toString:void 0;function kn(e){if(Va(e)&&!Na(e)&&!(e instanceof Dn)){if(e instanceof In)return e;if(we.call(e,"__wrapped__"))return ki(e)}return new In(e)}var Rn=function(){function e(){}return function(t){if(!Ha(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function An(){}function In(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Dn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Fn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Mn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Pn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Mn;++t<n;)this.add(e[t])}function Ln(e){var t=this.__data__=new Fn(e);this.size=t.size}function Un(e,t){var n=Na(e),o=!n&&Da(e),r=!n&&!o&&La(e),i=!n&&!o&&!r&&Ja(e),a=n||o||r||i,s=a?Rt(e.length,_e):[],c=s.length;for(var l in e)!t&&!we.call(e,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||si(l,c))||s.push(l);return s}function Bn(e){var t=e.length;return t?e[Lo(0,t-1)]:void 0}function jn(e,t){return wi(br(e),$n(t,0,e.length))}function Gn(e){return wi(br(e))}function qn(e,t,n){(void 0!==n&&!Ra(e[t],n)||void 0===n&&!(t in e))&&Wn(e,t,n)}function Hn(e,t,n){var o=e[t];we.call(e,t)&&Ra(o,n)&&(void 0!==n||t in e)||Wn(e,t,n)}function Vn(e,t){for(var n=e.length;n--;)if(Ra(e[n][0],t))return n;return-1}function zn(e,t,n,o){return eo(e,(function(e,r,i){t(o,e,n(e),i)})),o}function Kn(e,t){return e&&vr(t,Es(t),e)}function Wn(e,t,n){"__proto__"==t&&xt?xt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Yn(e,t){for(var n=-1,r=t.length,i=o(r),a=null==e;++n<r;)i[n]=a?void 0:gs(e,t[n]);return i}function $n(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Qn(e,t,n,o,r,i){var a,s=1&t,l=2&t,h=4&t;if(n&&(a=r?n(e,o,r,i):n(e)),void 0!==a)return a;if(!Ha(e))return e;var S=Na(e);if(S){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&we.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return br(e,a)}else{var N=oi(e),F=N==p||N==m;if(La(e))return hr(e,s);if(N==_||N==c||F&&!r){if(a=l||F?{}:ii(e),!s)return l?function(e,t){return vr(e,ni(e),t)}(e,function(e,t){return e&&vr(t,ys(t),e)}(a,e)):function(e,t){return vr(e,ti(e),t)}(e,Kn(a,e))}else{if(!Ge[N])return r?e:{};a=function(e,t,n){var o=e.constructor;switch(t){case T:return pr(e);case u:case d:return new o(+e);case w:return function(e,t){var n=t?pr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case C:case x:case O:case k:case R:case A:case"[object Uint8ClampedArray]":case I:case D:return mr(e,n);case g:return new o;case f:case E:return new o(e);case b:return function(e){var t=new e.constructor(e.source,oe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return new o;case y:return r=e,xn?ge(xn.call(r)):{}}var r}(e,N,s)}}i||(i=new Ln);var M=i.get(e);if(M)return M;i.set(e,a),$a(e)?e.forEach((function(o){a.add(Qn(o,t,n,o,e,i))})):za(e)&&e.forEach((function(o,r){a.set(r,Qn(o,t,n,r,e,i))}));var P=S?void 0:(h?l?Wr:Kr:l?ys:Es)(e);return st(P||e,(function(o,r){P&&(o=e[r=o]),Hn(a,r,Qn(o,t,n,r,e,i))})),a}function Xn(e,t,n){var o=n.length;if(null==e)return!o;for(e=ge(e);o--;){var r=n[o],i=t[r],a=e[r];if(void 0===a&&!(r in e)||!i(a))return!1}return!0}function Jn(e,t,n){if("function"!=typeof e)throw new be(i);return Ei((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,o){var r=-1,i=dt,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=pt(t,At(n))),o?(i=ht,a=!1):t.length>=200&&(i=Dt,a=!1,t=new Pn(t));e:for(;++r<s;){var u=e[r],d=null==n?u:n(u);if(u=o||0!==u?u:0,a&&d==d){for(var h=l;h--;)if(t[h]===d)continue e;c.push(u)}else i(t,d,o)||c.push(u)}return c}kn.templateSettings={escape:j,evaluate:G,interpolate:q,variable:"",imports:{_:kn}},kn.prototype=An.prototype,kn.prototype.constructor=kn,In.prototype=Rn(An.prototype),In.prototype.constructor=In,Dn.prototype=Rn(An.prototype),Dn.prototype.constructor=Dn,Nn.prototype.clear=function(){this.__data__=_n?_n(null):{},this.size=0},Nn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Nn.prototype.get=function(e){var t=this.__data__;if(_n){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return we.call(t,e)?t[e]:void 0},Nn.prototype.has=function(e){var t=this.__data__;return _n?void 0!==t[e]:we.call(t,e)},Nn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_n&&void 0===t?"__lodash_hash_undefined__":t,this},Fn.prototype.clear=function(){this.__data__=[],this.size=0},Fn.prototype.delete=function(e){var t=this.__data__,n=Vn(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},Fn.prototype.get=function(e){var t=this.__data__,n=Vn(t,e);return n<0?void 0:t[n][1]},Fn.prototype.has=function(e){return Vn(this.__data__,e)>-1},Fn.prototype.set=function(e,t){var n=this.__data__,o=Vn(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},Mn.prototype.clear=function(){this.size=0,this.__data__={hash:new Nn,map:new(pn||Fn),string:new Nn}},Mn.prototype.delete=function(e){var t=Jr(this,e).delete(e);return this.size-=t?1:0,t},Mn.prototype.get=function(e){return Jr(this,e).get(e)},Mn.prototype.has=function(e){return Jr(this,e).has(e)},Mn.prototype.set=function(e,t){var n=Jr(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},Pn.prototype.add=Pn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Pn.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.clear=function(){this.__data__=new Fn,this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ln.prototype.get=function(e){return this.__data__.get(e)},Ln.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Fn){var o=n.__data__;if(!pn||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mn(o)}return n.set(e,t),this.size=n.size,this};var eo=Sr(co),to=Sr(lo,!0);function no(e,t){var n=!0;return eo(e,(function(e,o,r){return n=!!t(e,o,r)})),n}function oo(e,t,n){for(var o=-1,r=e.length;++o<r;){var i=e[o],a=t(i);if(null!=a&&(void 0===s?a==a&&!Xa(a):n(a,s)))var s=a,c=i}return c}function ro(e,t){var n=[];return eo(e,(function(e,o,r){t(e,o,r)&&n.push(e)})),n}function io(e,t,n,o,r){var i=-1,a=e.length;for(n||(n=ai),r||(r=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?io(s,t-1,n,o,r):mt(r,s):o||(r[r.length]=s)}return r}var ao=Tr(),so=Tr(!0);function co(e,t){return e&&ao(e,t,Es)}function lo(e,t){return e&&so(e,t,Es)}function uo(e,t){return ut(t,(function(t){return ja(e[t])}))}function ho(e,t){for(var n=0,o=(t=cr(t,e)).length;null!=e&&n<o;)e=e[xi(t[n++])];return n&&n==o?e:void 0}function po(e,t,n){var o=t(e);return Na(e)?o:mt(o,n(e))}function mo(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bt&&bt in ge(e)?function(e){var t=we.call(e,bt),n=e[bt];try{e[bt]=void 0;var o=!0}catch(e){}var r=Oe.call(e);o&&(t?e[bt]=n:delete e[bt]);return r}(e):function(e){return Oe.call(e)}(e)}function go(e,t){return e>t}function fo(e,t){return null!=e&&we.call(e,t)}function _o(e,t){return null!=e&&t in ge(e)}function bo(e,t,n){for(var r=n?ht:dt,i=e[0].length,a=e.length,s=a,c=o(a),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=pt(d,At(t))),l=sn(d.length,l),c[s]=!n&&(t||i>=120&&d.length>=120)?new Pn(s&&d):void 0}d=e[0];var h=-1,p=c[0];e:for(;++h<i&&u.length<l;){var m=d[h],g=t?t(m):m;if(m=n||0!==m?m:0,!(p?Dt(p,g):r(u,g,n))){for(s=a;--s;){var f=c[s];if(!(f?Dt(f,g):r(e[s],g,n)))continue e}p&&p.push(g),u.push(m)}}return u}function vo(e,t,n){var o=null==(e=fi(e,t=cr(t,e)))?e:e[xi(Bi(t))];return null==o?void 0:it(o,e,n)}function Eo(e){return Va(e)&&mo(e)==c}function yo(e,t,n,o,r){return e===t||(null==e||null==t||!Va(e)&&!Va(t)?e!=e&&t!=t:function(e,t,n,o,r,i){var a=Na(e),s=Na(t),p=a?l:oi(e),m=s?l:oi(t),S=(p=p==c?_:p)==_,C=(m=m==c?_:m)==_,x=p==m;if(x&&La(e)){if(!La(t))return!1;a=!0,S=!1}if(x&&!S)return i||(i=new Ln),a||Ja(e)?Vr(e,t,n,o,r,i):function(e,t,n,o,r,i,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new Pe(e),new Pe(t)));case u:case d:case f:return Ra(+e,+t);case h:return e.name==t.name&&e.message==t.message;case b:case E:return e==t+"";case g:var s=jt;case v:var c=1&o;if(s||(s=Ht),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;o|=2,a.set(e,t);var p=Vr(s(e),s(t),o,r,i,a);return a.delete(e),p;case y:if(xn)return xn.call(e)==xn.call(t)}return!1}(e,t,p,n,o,r,i);if(!(1&n)){var O=S&&we.call(e,"__wrapped__"),k=C&&we.call(t,"__wrapped__");if(O||k){var R=O?e.value():e,A=k?t.value():t;return i||(i=new Ln),r(R,A,n,o,i)}}if(!x)return!1;return i||(i=new Ln),function(e,t,n,o,r,i){var a=1&n,s=Kr(e),c=s.length,l=Kr(t).length;if(c!=l&&!a)return!1;var u=c;for(;u--;){var d=s[u];if(!(a?d in t:we.call(t,d)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var m=!0;i.set(e,t),i.set(t,e);var g=a;for(;++u<c;){d=s[u];var f=e[d],_=t[d];if(o)var b=a?o(_,f,d,t,e,i):o(f,_,d,e,t,i);if(!(void 0===b?f===_||r(f,_,n,o,i):b)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var v=e.constructor,E=t.constructor;v==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof E&&E instanceof E||(m=!1)}return i.delete(e),i.delete(t),m}(e,t,n,o,r,i)}(e,t,n,o,yo,r))}function So(e,t,n,o){var r=n.length,i=r,a=!o;if(null==e)return!i;for(e=ge(e);r--;){var s=n[r];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++r<i;){var c=(s=n[r])[0],l=e[c],u=s[1];if(a&&s[2]){if(void 0===l&&!(c in e))return!1}else{var d=new Ln;if(o)var h=o(l,u,c,e,t,d);if(!(void 0===h?yo(u,l,3,o,d):h))return!1}}return!0}function To(e){return!(!Ha(e)||(t=e,xe&&xe in t))&&(ja(e)?Ae:ae).test(Oi(e));var t}function wo(e){return"function"==typeof e?e:null==e?Ks:"object"==typeof e?Na(e)?Ao(e[0],e[1]):Ro(e):tc(e)}function Co(e){if(!hi(e))return rn(e);var t=[];for(var n in ge(e))we.call(e,n)&&"constructor"!=n&&t.push(n);return t}function xo(e){if(!Ha(e))return function(e){var t=[];if(null!=e)for(var n in ge(e))t.push(n);return t}(e);var t=hi(e),n=[];for(var o in e)("constructor"!=o||!t&&we.call(e,o))&&n.push(o);return n}function Oo(e,t){return e<t}function ko(e,t){var n=-1,r=Ma(e)?o(e.length):[];return eo(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Ro(e){var t=Zr(e);return 1==t.length&&t[0][2]?mi(t[0][0],t[0][1]):function(n){return n===e||So(n,e,t)}}function Ao(e,t){return li(e)&&pi(t)?mi(xi(e),t):function(n){var o=gs(n,e);return void 0===o&&o===t?fs(n,e):yo(t,o,3)}}function Io(e,t,n,o,r){e!==t&&ao(t,(function(i,a){if(r||(r=new Ln),Ha(i))!function(e,t,n,o,r,i,a){var s=bi(e,n),c=bi(t,n),l=a.get(c);if(l)return void qn(e,n,l);var u=i?i(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=Na(c),p=!h&&La(c),m=!h&&!p&&Ja(c);u=c,h||p||m?Na(s)?u=s:Pa(s)?u=br(s):p?(d=!1,u=hr(c,!0)):m?(d=!1,u=mr(c,!0)):u=[]:Wa(c)||Da(c)?(u=s,Da(s)?u=as(s):Ha(s)&&!ja(s)||(u=ii(c))):d=!1}d&&(a.set(c,u),r(u,c,o,i,a),a.delete(c));qn(e,n,u)}(e,t,a,n,Io,o,r);else{var s=o?o(bi(e,a),i,a+"",e,t,r):void 0;void 0===s&&(s=i),qn(e,a,s)}}),ys)}function Do(e,t){var n=e.length;if(n)return si(t+=t<0?n:0,n)?e[t]:void 0}function No(e,t,n){t=t.length?pt(t,(function(e){return Na(e)?function(t){return ho(t,1===e.length?e[0]:e)}:e})):[Ks];var o=-1;return t=pt(t,At(Xr())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(ko(e,(function(e,n,r){return{criteria:pt(t,(function(t){return t(e)})),index:++o,value:e}})),(function(e,t){return function(e,t,n){var o=-1,r=e.criteria,i=t.criteria,a=r.length,s=n.length;for(;++o<a;){var c=gr(r[o],i[o]);if(c){if(o>=s)return c;var l=n[o];return c*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Fo(e,t,n){for(var o=-1,r=t.length,i={};++o<r;){var a=t[o],s=ho(e,a);n(s,a)&&qo(i,cr(a,e),s)}return i}function Mo(e,t,n,o){var r=o?St:yt,i=-1,a=t.length,s=e;for(e===t&&(t=br(t)),n&&(s=pt(e,At(n)));++i<a;)for(var c=0,l=t[i],u=n?n(l):l;(c=r(s,u,c,o))>-1;)s!==e&&$e.call(s,c,1),$e.call(e,c,1);return e}function Po(e,t){for(var n=e?t.length:0,o=n-1;n--;){var r=t[n];if(n==o||r!==i){var i=r;si(r)?$e.call(e,r,1):er(e,r)}}return e}function Lo(e,t){return e+Zt(un()*(t-e+1))}function Uo(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function Bo(e,t){return yi(gi(e,t,Ks),e+"")}function jo(e){return Bn(Rs(e))}function Go(e,t){var n=Rs(e);return wi(n,$n(t,0,n.length))}function qo(e,t,n,o){if(!Ha(e))return e;for(var r=-1,i=(t=cr(t,e)).length,a=i-1,s=e;null!=s&&++r<i;){var c=xi(t[r]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(r!=a){var u=s[c];void 0===(l=o?o(u,c,s):void 0)&&(l=Ha(u)?u:si(t[r+1])?[]:{})}Hn(s,c,l),s=s[c]}return e}var Ho=bn?function(e,t){return bn.set(e,t),e}:Ks,Vo=xt?function(e,t){return xt(e,"toString",{configurable:!0,enumerable:!1,value:Hs(t),writable:!0})}:Ks;function zo(e){return wi(Rs(e))}function Ko(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=o(i);++r<i;)a[r]=e[r+t];return a}function Wo(e,t){var n;return eo(e,(function(e,o,r){return!(n=t(e,o,r))})),!!n}function Yo(e,t,n){var o=0,r=null==e?o:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;o<r;){var i=o+r>>>1,a=e[i];null!==a&&!Xa(a)&&(n?a<=t:a<t)?o=i+1:r=i}return r}return $o(e,t,Ks,n)}function $o(e,t,n,o){var r=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,s=null===t,c=Xa(t),l=void 0===t;r<i;){var u=Zt((r+i)/2),d=n(e[u]),h=void 0!==d,p=null===d,m=d==d,g=Xa(d);if(a)var f=o||m;else f=l?m&&(o||h):s?m&&h&&(o||!p):c?m&&h&&!p&&(o||!g):!p&&!g&&(o?d<=t:d<t);f?r=u+1:i=u}return sn(i,4294967294)}function Qo(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var a=e[n],s=t?t(a):a;if(!n||!Ra(s,c)){var c=s;i[r++]=0===a?0:a}}return i}function Xo(e){return"number"==typeof e?e:Xa(e)?NaN:+e}function Jo(e){if("string"==typeof e)return e;if(Na(e))return pt(e,Jo)+"";if(Xa(e))return On?On.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Zo(e,t,n){var o=-1,r=dt,i=e.length,a=!0,s=[],c=s;if(n)a=!1,r=ht;else if(i>=200){var l=t?null:Ur(e);if(l)return Ht(l);a=!1,r=Dt,c=new Pn}else c=t?[]:s;e:for(;++o<i;){var u=e[o],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),s.push(u)}else r(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function er(e,t){return null==(e=fi(e,t=cr(t,e)))||delete e[xi(Bi(t))]}function tr(e,t,n,o){return qo(e,t,n(ho(e,t)),o)}function nr(e,t,n,o){for(var r=e.length,i=o?r:-1;(o?i--:++i<r)&&t(e[i],i,e););return n?Ko(e,o?0:i,o?i+1:r):Ko(e,o?i+1:0,o?r:i)}function or(e,t){var n=e;return n instanceof Dn&&(n=n.value()),gt(t,(function(e,t){return t.func.apply(t.thisArg,mt([e],t.args))}),n)}function rr(e,t,n){var r=e.length;if(r<2)return r?Zo(e[0]):[];for(var i=-1,a=o(r);++i<r;)for(var s=e[i],c=-1;++c<r;)c!=i&&(a[i]=Zn(a[i]||s,e[c],t,n));return Zo(io(a,1),t,n)}function ir(e,t,n){for(var o=-1,r=e.length,i=t.length,a={};++o<r;){var s=o<i?t[o]:void 0;n(a,e[o],s)}return a}function ar(e){return Pa(e)?e:[]}function sr(e){return"function"==typeof e?e:Ks}function cr(e,t){return Na(e)?e:li(e,t)?[e]:Ci(ss(e))}var lr=Bo;function ur(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:Ko(e,t,n)}var dr=$t||function(e){return We.clearTimeout(e)};function hr(e,t){if(t)return e.slice();var n=e.length,o=qe?qe(n):new e.constructor(n);return e.copy(o),o}function pr(e){var t=new e.constructor(e.byteLength);return new Pe(t).set(new Pe(e)),t}function mr(e,t){var n=t?pr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function gr(e,t){if(e!==t){var n=void 0!==e,o=null===e,r=e==e,i=Xa(e),a=void 0!==t,s=null===t,c=t==t,l=Xa(t);if(!s&&!l&&!i&&e>t||i&&a&&c&&!s&&!l||o&&a&&c||!n&&c||!r)return 1;if(!o&&!i&&!l&&e<t||l&&n&&r&&!o&&!i||s&&n&&r||!a&&r||!c)return-1}return 0}function fr(e,t,n,r){for(var i=-1,a=e.length,s=n.length,c=-1,l=t.length,u=an(a-s,0),d=o(l+u),h=!r;++c<l;)d[c]=t[c];for(;++i<s;)(h||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[c++]=e[i++];return d}function _r(e,t,n,r){for(var i=-1,a=e.length,s=-1,c=n.length,l=-1,u=t.length,d=an(a-c,0),h=o(d+u),p=!r;++i<d;)h[i]=e[i];for(var m=i;++l<u;)h[m+l]=t[l];for(;++s<c;)(p||i<a)&&(h[m+n[s]]=e[i++]);return h}function br(e,t){var n=-1,r=e.length;for(t||(t=o(r));++n<r;)t[n]=e[n];return t}function vr(e,t,n,o){var r=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=o?o(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),r?Wn(n,s,c):Hn(n,s,c)}return n}function Er(e,t){return function(n,o){var r=Na(n)?at:zn,i=t?t():{};return r(n,e,Xr(o,2),i)}}function yr(e){return Bo((function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(r--,i):void 0,a&&ci(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=ge(t);++o<r;){var s=n[o];s&&e(t,s,o,i)}return t}))}function Sr(e,t){return function(n,o){if(null==n)return n;if(!Ma(n))return e(n,o);for(var r=n.length,i=t?r:-1,a=ge(n);(t?i--:++i<r)&&!1!==o(a[i],i,a););return n}}function Tr(e){return function(t,n,o){for(var r=-1,i=ge(t),a=o(t),s=a.length;s--;){var c=a[e?s:++r];if(!1===n(i[c],c,i))break}return t}}function wr(e){return function(t){var n=Bt(t=ss(t))?Kt(t):void 0,o=n?n[0]:t.charAt(0),r=n?ur(n,1).join(""):t.slice(1);return o[e]()+r}}function Cr(e){return function(t){return gt(js(Ds(t).replace(De,"")),e,"")}}function xr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Rn(e.prototype),o=e.apply(n,t);return Ha(o)?o:n}}function Or(e){return function(t,n,o){var r=ge(t);if(!Ma(t)){var i=Xr(n,3);t=Es(t),n=function(e){return i(r[e],e,r)}}var a=e(t,n,o);return a>-1?r[i?t[a]:a]:void 0}}function kr(e){return zr((function(t){var n=t.length,o=n,r=In.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new be(i);if(r&&!s&&"wrapper"==$r(a))var s=new In([],!0)}for(o=s?o:n;++o<n;){var c=$r(a=t[o]),l="wrapper"==c?Yr(a):void 0;s=l&&ui(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[$r(l[0])].apply(s,l[3]):1==a.length&&ui(a)?s[c]():s.thru(a)}return function(){var e=arguments,o=e[0];if(s&&1==e.length&&Na(o))return s.plant(o).value();for(var r=0,i=n?t[r].apply(this,e):o;++r<n;)i=t[r].call(this,i);return i}}))}function Rr(e,t,n,r,i,a,s,c,l,u){var d=128&t,h=1&t,p=2&t,m=24&t,g=512&t,f=p?void 0:xr(e);return function _(){for(var b=arguments.length,v=o(b),E=b;E--;)v[E]=arguments[E];if(m)var y=Qr(_),S=Mt(v,y);if(r&&(v=fr(v,r,i,m)),a&&(v=_r(v,a,s,m)),b-=S,m&&b<u){var T=qt(v,y);return Pr(e,t,Rr,_.placeholder,n,v,T,c,l,u-b)}var w=h?n:this,C=p?w[e]:e;return b=v.length,c?v=_i(v,c):g&&b>1&&v.reverse(),d&&l<b&&(v.length=l),this&&this!==We&&this instanceof _&&(C=f||xr(C)),C.apply(w,v)}}function Ar(e,t){return function(n,o){return function(e,t,n,o){return co(e,(function(e,r,i){t(o,n(e),r,i)})),o}(n,e,t(o),{})}}function Ir(e,t){return function(n,o){var r;if(void 0===n&&void 0===o)return t;if(void 0!==n&&(r=n),void 0!==o){if(void 0===r)return o;"string"==typeof n||"string"==typeof o?(n=Jo(n),o=Jo(o)):(n=Xo(n),o=Xo(o)),r=e(n,o)}return r}}function Dr(e){return zr((function(t){return t=pt(t,At(Xr())),Bo((function(n){var o=this;return e(t,(function(e){return it(e,o,n)}))}))}))}function Nr(e,t){var n=(t=void 0===t?" ":Jo(t)).length;if(n<2)return n?Uo(t,e):t;var o=Uo(t,Jt(e/zt(t)));return Bt(t)?ur(Kt(o),0,e).join(""):o.slice(0,e)}function Fr(e){return function(t,n,r){return r&&"number"!=typeof r&&ci(t,n,r)&&(n=r=void 0),t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n,r){for(var i=-1,a=an(Jt((t-e)/(n||1)),0),s=o(a);a--;)s[r?a:++i]=e,e+=n;return s}(t,n,r=void 0===r?t<n?1:-1:ns(r),e)}}function Mr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=is(t),n=is(n)),e(t,n)}}function Pr(e,t,n,o,r,i,a,s,c,l){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,r,u?i:void 0,u?a:void 0,u?void 0:i,u?void 0:a,s,c,l],h=n.apply(void 0,d);return ui(e)&&vi(h,d),h.placeholder=o,Si(h,e,t)}function Lr(e){var t=me[e];return function(e,n){if(e=is(e),(n=null==n?0:sn(os(n),292))&&nn(e)){var o=(ss(e)+"e").split("e");return+((o=(ss(t(o[0]+"e"+(+o[1]+n)))+"e").split("e"))[0]+"e"+(+o[1]-n))}return t(e)}}var Ur=gn&&1/Ht(new gn([,-0]))[1]==1/0?function(e){return new gn(e)}:Xs;function Br(e){return function(t){var n=oi(t);return n==g?jt(t):n==v?Vt(t):function(e,t){return pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function jr(e,t,n,r,s,c,l,u){var d=2&t;if(!d&&"function"!=typeof e)throw new be(i);var h=r?r.length:0;if(h||(t&=-97,r=s=void 0),l=void 0===l?l:an(os(l),0),u=void 0===u?u:os(u),h-=s?s.length:0,64&t){var p=r,m=s;r=s=void 0}var g=d?void 0:Yr(e),f=[e,t,n,r,s,p,m,c,l,u];if(g&&function(e,t){var n=e[1],o=t[1],r=n|o,i=r<131,s=128==o&&8==n||128==o&&256==n&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!i&&!s)return e;1&o&&(e[2]=t[2],r|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?fr(l,c,t[4]):c,e[4]=l?qt(e[3],a):t[4]}(c=t[5])&&(l=e[5],e[5]=l?_r(l,c,t[6]):c,e[6]=l?qt(e[5],a):t[6]);(c=t[7])&&(e[7]=c);128&o&&(e[8]=null==e[8]?t[8]:sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(f,g),e=f[0],t=f[1],n=f[2],r=f[3],s=f[4],!(u=f[9]=void 0===f[9]?d?0:e.length:an(f[9]-h,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,n){var r=xr(e);return function i(){for(var a=arguments.length,s=o(a),c=a,l=Qr(i);c--;)s[c]=arguments[c];var u=a<3&&s[0]!==l&&s[a-1]!==l?[]:qt(s,l);if((a-=u.length)<n)return Pr(e,t,Rr,i.placeholder,void 0,s,u,void 0,void 0,n-a);var d=this&&this!==We&&this instanceof i?r:e;return it(d,this,s)}}(e,t,u):32!=t&&33!=t||s.length?Rr.apply(void 0,f):function(e,t,n,r){var i=1&t,a=xr(e);return function t(){for(var s=-1,c=arguments.length,l=-1,u=r.length,d=o(u+c),h=this&&this!==We&&this instanceof t?a:e;++l<u;)d[l]=r[l];for(;c--;)d[l++]=arguments[++s];return it(h,i?n:this,d)}}(e,t,n,r);else var _=function(e,t,n){var o=1&t,r=xr(e);return function t(){var i=this&&this!==We&&this instanceof t?r:e;return i.apply(o?n:this,arguments)}}(e,t,n);return Si((g?Ho:vi)(_,f),e,t)}function Gr(e,t,n,o){return void 0===e||Ra(e,ye[n])&&!we.call(o,n)?t:e}function qr(e,t,n,o,r,i){return Ha(e)&&Ha(t)&&(i.set(t,e),Io(e,t,void 0,qr,i),i.delete(t)),e}function Hr(e){return Wa(e)?void 0:e}function Vr(e,t,n,o,r,i){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;var d=-1,h=!0,p=2&n?new Pn:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],g=t[d];if(o)var f=a?o(g,m,d,t,e,i):o(m,g,d,e,t,i);if(void 0!==f){if(f)continue;h=!1;break}if(p){if(!_t(t,(function(e,t){if(!Dt(p,t)&&(m===e||r(m,e,n,o,i)))return p.push(t)}))){h=!1;break}}else if(m!==g&&!r(m,g,n,o,i)){h=!1;break}}return i.delete(e),i.delete(t),h}function zr(e){return yi(gi(e,void 0,Fi),e+"")}function Kr(e){return po(e,Es,ti)}function Wr(e){return po(e,ys,ni)}var Yr=bn?function(e){return bn.get(e)}:Xs;function $r(e){for(var t=e.name+"",n=vn[t],o=we.call(vn,t)?n.length:0;o--;){var r=n[o],i=r.func;if(null==i||i==e)return r.name}return t}function Qr(e){return(we.call(kn,"placeholder")?kn:e).placeholder}function Xr(){var e=kn.iteratee||Ws;return e=e===Ws?wo:e,arguments.length?e(arguments[0],arguments[1]):e}function Jr(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Zr(e){for(var t=Es(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,pi(r)]}return t}function ei(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return To(n)?n:void 0}var ti=en?function(e){return null==e?[]:(e=ge(e),ut(en(e),(function(t){return Ye.call(e,t)})))}:rc,ni=en?function(e){for(var t=[];e;)mt(t,ti(e)),e=ze(e);return t}:rc,oi=mo;function ri(e,t,n){for(var o=-1,r=(t=cr(t,e)).length,i=!1;++o<r;){var a=xi(t[o]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++o!=r?i:!!(r=null==e?0:e.length)&&qa(r)&&si(a,r)&&(Na(e)||Da(e))}function ii(e){return"function"!=typeof e.constructor||hi(e)?{}:Rn(ze(e))}function ai(e){return Na(e)||Da(e)||!!(Xe&&e&&e[Xe])}function si(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ce.test(e))&&e>-1&&e%1==0&&e<t}function ci(e,t,n){if(!Ha(n))return!1;var o=typeof t;return!!("number"==o?Ma(n)&&si(t,n.length):"string"==o&&t in n)&&Ra(n[t],e)}function li(e,t){if(Na(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Xa(e))||(V.test(e)||!H.test(e)||null!=t&&e in ge(t))}function ui(e){var t=$r(e),n=kn[t];if("function"!=typeof n||!(t in Dn.prototype))return!1;if(e===n)return!0;var o=Yr(n);return!!o&&e===o[0]}(hn&&oi(new hn(new ArrayBuffer(1)))!=w||pn&&oi(new pn)!=g||mn&&"[object Promise]"!=oi(mn.resolve())||gn&&oi(new gn)!=v||fn&&oi(new fn)!=S)&&(oi=function(e){var t=mo(e),n=t==_?e.constructor:void 0,o=n?Oi(n):"";if(o)switch(o){case En:return w;case yn:return g;case Sn:return"[object Promise]";case Tn:return v;case wn:return S}return t});var di=Se?ja:ic;function hi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ye)}function pi(e){return e==e&&!Ha(e)}function mi(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in ge(n)))}}function gi(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=an(r.length-t,0),s=o(a);++i<a;)s[i]=r[t+i];i=-1;for(var c=o(t+1);++i<t;)c[i]=r[i];return c[t]=n(s),it(e,this,c)}}function fi(e,t){return t.length<2?e:ho(e,Ko(t,0,-1))}function _i(e,t){for(var n=e.length,o=sn(t.length,n),r=br(e);o--;){var i=t[o];e[o]=si(i,n)?r[i]:void 0}return e}function bi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var vi=Ti(Ho),Ei=Xt||function(e,t){return We.setTimeout(e,t)},yi=Ti(Vo);function Si(e,t,n){var o=t+"";return yi(e,function(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(o,function(e,t){return st(s,(function(n){var o="_."+n[0];t&n[1]&&!dt(e,o)&&e.push(o)})),e.sort()}(function(e){var t=e.match(J);return t?t[1].split(Z):[]}(o),n)))}function Ti(e){var t=0,n=0;return function(){var o=cn(),r=16-(o-n);if(n=o,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function wi(e,t){var n=-1,o=e.length,r=o-1;for(t=void 0===t?o:t;++n<t;){var i=Lo(n,r),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}var Ci=function(e){var t=Ta(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(z,(function(e,n,o,r){t.push(o?r.replace(te,"$1"):n||e)})),t}));function xi(e){if("string"==typeof e||Xa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Oi(e){if(null!=e){try{return Te.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ki(e){if(e instanceof Dn)return e.clone();var t=new In(e.__wrapped__,e.__chain__);return t.__actions__=br(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ri=Bo((function(e,t){return Pa(e)?Zn(e,io(t,1,Pa,!0)):[]})),Ai=Bo((function(e,t){var n=Bi(t);return Pa(n)&&(n=void 0),Pa(e)?Zn(e,io(t,1,Pa,!0),Xr(n,2)):[]})),Ii=Bo((function(e,t){var n=Bi(t);return Pa(n)&&(n=void 0),Pa(e)?Zn(e,io(t,1,Pa,!0),void 0,n):[]}));function Di(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:os(n);return r<0&&(r=an(o+r,0)),Et(e,Xr(t,3),r)}function Ni(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=o-1;return void 0!==n&&(r=os(n),r=n<0?an(o+r,0):sn(r,o-1)),Et(e,Xr(t,3),r,!0)}function Fi(e){return(null==e?0:e.length)?io(e,1):[]}function Mi(e){return e&&e.length?e[0]:void 0}var Pi=Bo((function(e){var t=pt(e,ar);return t.length&&t[0]===e[0]?bo(t):[]})),Li=Bo((function(e){var t=Bi(e),n=pt(e,ar);return t===Bi(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?bo(n,Xr(t,2)):[]})),Ui=Bo((function(e){var t=Bi(e),n=pt(e,ar);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?bo(n,void 0,t):[]}));function Bi(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var ji=Bo(Gi);function Gi(e,t){return e&&e.length&&t&&t.length?Mo(e,t):e}var qi=zr((function(e,t){var n=null==e?0:e.length,o=Yn(e,t);return Po(e,pt(t,(function(e){return si(e,n)?+e:e})).sort(gr)),o}));function Hi(e){return null==e?e:dn.call(e)}var Vi=Bo((function(e){return Zo(io(e,1,Pa,!0))})),zi=Bo((function(e){var t=Bi(e);return Pa(t)&&(t=void 0),Zo(io(e,1,Pa,!0),Xr(t,2))})),Ki=Bo((function(e){var t=Bi(e);return t="function"==typeof t?t:void 0,Zo(io(e,1,Pa,!0),void 0,t)}));function Wi(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if(Pa(e))return t=an(e.length,t),!0})),Rt(t,(function(t){return pt(e,Ct(t))}))}function Yi(e,t){if(!e||!e.length)return[];var n=Wi(e);return null==t?n:pt(n,(function(e){return it(t,void 0,e)}))}var $i=Bo((function(e,t){return Pa(e)?Zn(e,t):[]})),Qi=Bo((function(e){return rr(ut(e,Pa))})),Xi=Bo((function(e){var t=Bi(e);return Pa(t)&&(t=void 0),rr(ut(e,Pa),Xr(t,2))})),Ji=Bo((function(e){var t=Bi(e);return t="function"==typeof t?t:void 0,rr(ut(e,Pa),void 0,t)})),Zi=Bo(Wi);var ea=Bo((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Yi(e,n)}));function ta(e){var t=kn(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var oa=zr((function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,r=function(t){return Yn(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Dn&&si(n)?((o=o.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[r],thisArg:void 0}),new In(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(r)}));var ra=Er((function(e,t,n){we.call(e,n)?++e[n]:Wn(e,n,1)}));var ia=Or(Di),aa=Or(Ni);function sa(e,t){return(Na(e)?st:eo)(e,Xr(t,3))}function ca(e,t){return(Na(e)?ct:to)(e,Xr(t,3))}var la=Er((function(e,t,n){we.call(e,n)?e[n].push(t):Wn(e,n,[t])}));var ua=Bo((function(e,t,n){var r=-1,i="function"==typeof t,a=Ma(e)?o(e.length):[];return eo(e,(function(e){a[++r]=i?it(t,e,n):vo(e,t,n)})),a})),da=Er((function(e,t,n){Wn(e,n,t)}));function ha(e,t){return(Na(e)?pt:ko)(e,Xr(t,3))}var pa=Er((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ma=Bo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ci(e,t[0],t[1])?t=[]:n>2&&ci(t[0],t[1],t[2])&&(t=[t[0]]),No(e,io(t,1),[])})),ga=Qt||function(){return We.Date.now()};function fa(e,t,n){return t=n?void 0:t,jr(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function _a(e,t){var n;if("function"!=typeof t)throw new be(i);return e=os(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Bo((function(e,t,n){var o=1;if(n.length){var r=qt(n,Qr(ba));o|=32}return jr(e,o,t,n,r)})),va=Bo((function(e,t,n){var o=3;if(n.length){var r=qt(n,Qr(va));o|=32}return jr(t,o,e,n,r)}));function Ea(e,t,n){var o,r,a,s,c,l,u=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new be(i);function m(t){var n=o,i=r;return o=r=void 0,u=t,s=e.apply(i,n)}function g(e){return u=e,c=Ei(_,t),d?m(e):s}function f(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-u>=a}function _(){var e=ga();if(f(e))return b(e);c=Ei(_,function(e){var n=t-(e-l);return h?sn(n,a-(e-u)):n}(e))}function b(e){return c=void 0,p&&o?m(e):(o=r=void 0,s)}function v(){var e=ga(),n=f(e);if(o=arguments,r=this,l=e,n){if(void 0===c)return g(l);if(h)return dr(c),c=Ei(_,t),m(l)}return void 0===c&&(c=Ei(_,t)),s}return t=is(t)||0,Ha(n)&&(d=!!n.leading,a=(h="maxWait"in n)?an(is(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==c&&dr(c),u=0,o=l=r=c=void 0},v.flush=function(){return void 0===c?s:b(ga())},v}var ya=Bo((function(e,t){return Jn(e,1,t)})),Sa=Bo((function(e,t,n){return Jn(e,is(t)||0,n)}));function Ta(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new be(i);var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var a=e.apply(this,o);return n.cache=i.set(r,a)||i,a};return n.cache=new(Ta.Cache||Mn),n}function wa(e){if("function"!=typeof e)throw new be(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ta.Cache=Mn;var Ca=lr((function(e,t){var n=(t=1==t.length&&Na(t[0])?pt(t[0],At(Xr())):pt(io(t,1),At(Xr()))).length;return Bo((function(o){for(var r=-1,i=sn(o.length,n);++r<i;)o[r]=t[r].call(this,o[r]);return it(e,this,o)}))})),xa=Bo((function(e,t){return jr(e,32,void 0,t,qt(t,Qr(xa)))})),Oa=Bo((function(e,t){return jr(e,64,void 0,t,qt(t,Qr(Oa)))})),ka=zr((function(e,t){return jr(e,256,void 0,void 0,void 0,t)}));function Ra(e,t){return e===t||e!=e&&t!=t}var Aa=Mr(go),Ia=Mr((function(e,t){return e>=t})),Da=Eo(function(){return arguments}())?Eo:function(e){return Va(e)&&we.call(e,"callee")&&!Ye.call(e,"callee")},Na=o.isArray,Fa=Ze?At(Ze):function(e){return Va(e)&&mo(e)==T};function Ma(e){return null!=e&&qa(e.length)&&!ja(e)}function Pa(e){return Va(e)&&Ma(e)}var La=tn||ic,Ua=et?At(et):function(e){return Va(e)&&mo(e)==d};function Ba(e){if(!Va(e))return!1;var t=mo(e);return t==h||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Wa(e)}function ja(e){if(!Ha(e))return!1;var t=mo(e);return t==p||t==m||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ga(e){return"number"==typeof e&&e==os(e)}function qa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ha(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Va(e){return null!=e&&"object"==typeof e}var za=tt?At(tt):function(e){return Va(e)&&oi(e)==g};function Ka(e){return"number"==typeof e||Va(e)&&mo(e)==f}function Wa(e){if(!Va(e)||mo(e)!=_)return!1;var t=ze(e);if(null===t)return!0;var n=we.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Te.call(n)==ke}var Ya=nt?At(nt):function(e){return Va(e)&&mo(e)==b};var $a=ot?At(ot):function(e){return Va(e)&&oi(e)==v};function Qa(e){return"string"==typeof e||!Na(e)&&Va(e)&&mo(e)==E}function Xa(e){return"symbol"==typeof e||Va(e)&&mo(e)==y}var Ja=rt?At(rt):function(e){return Va(e)&&qa(e.length)&&!!je[mo(e)]};var Za=Mr(Oo),es=Mr((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Ma(e))return Qa(e)?Kt(e):br(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=oi(e);return(t==g?jt:t==v?Ht:Rs)(e)}function ns(e){return e?(e=is(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function os(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function rs(e){return e?$n(os(e),0,4294967295):0}function is(e){if("number"==typeof e)return e;if(Xa(e))return NaN;if(Ha(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ha(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Y,"");var n=ie.test(e);return n||se.test(e)?Ve(e.slice(2),n?2:8):re.test(e)?NaN:+e}function as(e){return vr(e,ys(e))}function ss(e){return null==e?"":Jo(e)}var cs=yr((function(e,t){if(hi(t)||Ma(t))vr(t,Es(t),e);else for(var n in t)we.call(t,n)&&Hn(e,n,t[n])})),ls=yr((function(e,t){vr(t,ys(t),e)})),us=yr((function(e,t,n,o){vr(t,ys(t),e,o)})),ds=yr((function(e,t,n,o){vr(t,Es(t),e,o)})),hs=zr(Yn);var ps=Bo((function(e,t){e=ge(e);var n=-1,o=t.length,r=o>2?t[2]:void 0;for(r&&ci(t[0],t[1],r)&&(o=1);++n<o;)for(var i=t[n],a=ys(i),s=-1,c=a.length;++s<c;){var l=a[s],u=e[l];(void 0===u||Ra(u,ye[l])&&!we.call(e,l))&&(e[l]=i[l])}return e})),ms=Bo((function(e){return e.push(void 0,qr),it(Ts,void 0,e)}));function gs(e,t,n){var o=null==e?void 0:ho(e,t);return void 0===o?n:o}function fs(e,t){return null!=e&&ri(e,t,_o)}var _s=Ar((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Oe.call(t)),e[t]=n}),Hs(Ks)),bs=Ar((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Oe.call(t)),we.call(e,t)?e[t].push(n):e[t]=[n]}),Xr),vs=Bo(vo);function Es(e){return Ma(e)?Un(e):Co(e)}function ys(e){return Ma(e)?Un(e,!0):xo(e)}var Ss=yr((function(e,t,n){Io(e,t,n)})),Ts=yr((function(e,t,n,o){Io(e,t,n,o)})),ws=zr((function(e,t){var n={};if(null==e)return n;var o=!1;t=pt(t,(function(t){return t=cr(t,e),o||(o=t.length>1),t})),vr(e,Wr(e),n),o&&(n=Qn(n,7,Hr));for(var r=t.length;r--;)er(n,t[r]);return n}));var Cs=zr((function(e,t){return null==e?{}:function(e,t){return Fo(e,t,(function(t,n){return fs(e,n)}))}(e,t)}));function xs(e,t){if(null==e)return{};var n=pt(Wr(e),(function(e){return[e]}));return t=Xr(t),Fo(e,n,(function(e,n){return t(e,n[0])}))}var Os=Br(Es),ks=Br(ys);function Rs(e){return null==e?[]:It(e,Es(e))}var As=Cr((function(e,t,n){return t=t.toLowerCase(),e+(n?Is(t):t)}));function Is(e){return Bs(ss(e).toLowerCase())}function Ds(e){return(e=ss(e))&&e.replace(le,Pt).replace(Ne,"")}var Ns=Cr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Fs=Cr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ms=wr("toLowerCase");var Ps=Cr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ls=Cr((function(e,t,n){return e+(n?" ":"")+Bs(t)}));var Us=Cr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bs=wr("toUpperCase");function js(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(Me)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Gs=Bo((function(e,t){try{return it(e,void 0,t)}catch(e){return Ba(e)?e:new he(e)}})),qs=zr((function(e,t){return st(t,(function(t){t=xi(t),Wn(e,t,ba(e[t],e))})),e}));function Hs(e){return function(){return e}}var Vs=kr(),zs=kr(!0);function Ks(e){return e}function Ws(e){return wo("function"==typeof e?e:Qn(e,1))}var Ys=Bo((function(e,t){return function(n){return vo(n,e,t)}})),$s=Bo((function(e,t){return function(n){return vo(e,n,t)}}));function Qs(e,t,n){var o=Es(t),r=uo(t,o);null!=n||Ha(t)&&(r.length||!o.length)||(n=t,t=e,e=this,r=uo(t,Es(t)));var i=!(Ha(n)&&"chain"in n&&!n.chain),a=ja(e);return st(r,(function(n){var o=t[n];e[n]=o,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),r=n.__actions__=br(this.__actions__);return r.push({func:o,args:arguments,thisArg:e}),n.__chain__=t,n}return o.apply(e,mt([this.value()],arguments))})})),e}function Xs(){}var Js=Dr(pt),Zs=Dr(lt),ec=Dr(_t);function tc(e){return li(e)?Ct(xi(e)):function(e){return function(t){return ho(t,e)}}(e)}var nc=Fr(),oc=Fr(!0);function rc(){return[]}function ic(){return!1}var ac=Ir((function(e,t){return e+t}),0),sc=Lr("ceil"),cc=Ir((function(e,t){return e/t}),1),lc=Lr("floor");var uc,dc=Ir((function(e,t){return e*t}),1),hc=Lr("round"),pc=Ir((function(e,t){return e-t}),0);return kn.after=function(e,t){if("function"!=typeof t)throw new be(i);return e=os(e),function(){if(--e<1)return t.apply(this,arguments)}},kn.ary=fa,kn.assign=cs,kn.assignIn=ls,kn.assignInWith=us,kn.assignWith=ds,kn.at=hs,kn.before=_a,kn.bind=ba,kn.bindAll=qs,kn.bindKey=va,kn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Na(e)?e:[e]},kn.chain=ta,kn.chunk=function(e,t,n){t=(n?ci(e,t,n):void 0===t)?1:an(os(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,a=0,s=o(Jt(r/t));i<r;)s[a++]=Ko(e,i,i+=t);return s},kn.compact=function(e){for(var t=-1,n=null==e?0:e.length,o=0,r=[];++t<n;){var i=e[t];i&&(r[o++]=i)}return r},kn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=o(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return mt(Na(n)?br(n):[n],io(t,1))},kn.cond=function(e){var t=null==e?0:e.length,n=Xr();return e=t?pt(e,(function(e){if("function"!=typeof e[1])throw new be(i);return[n(e[0]),e[1]]})):[],Bo((function(n){for(var o=-1;++o<t;){var r=e[o];if(it(r[0],this,n))return it(r[1],this,n)}}))},kn.conforms=function(e){return function(e){var t=Es(e);return function(n){return Xn(n,e,t)}}(Qn(e,1))},kn.constant=Hs,kn.countBy=ra,kn.create=function(e,t){var n=Rn(e);return null==t?n:Kn(n,t)},kn.curry=function e(t,n,o){var r=jr(t,8,void 0,void 0,void 0,void 0,void 0,n=o?void 0:n);return r.placeholder=e.placeholder,r},kn.curryRight=function e(t,n,o){var r=jr(t,16,void 0,void 0,void 0,void 0,void 0,n=o?void 0:n);return r.placeholder=e.placeholder,r},kn.debounce=Ea,kn.defaults=ps,kn.defaultsDeep=ms,kn.defer=ya,kn.delay=Sa,kn.difference=Ri,kn.differenceBy=Ai,kn.differenceWith=Ii,kn.drop=function(e,t,n){var o=null==e?0:e.length;return o?Ko(e,(t=n||void 0===t?1:os(t))<0?0:t,o):[]},kn.dropRight=function(e,t,n){var o=null==e?0:e.length;return o?Ko(e,0,(t=o-(t=n||void 0===t?1:os(t)))<0?0:t):[]},kn.dropRightWhile=function(e,t){return e&&e.length?nr(e,Xr(t,3),!0,!0):[]},kn.dropWhile=function(e,t){return e&&e.length?nr(e,Xr(t,3),!0):[]},kn.fill=function(e,t,n,o){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ci(e,t,n)&&(n=0,o=r),function(e,t,n,o){var r=e.length;for((n=os(n))<0&&(n=-n>r?0:r+n),(o=void 0===o||o>r?r:os(o))<0&&(o+=r),o=n>o?0:rs(o);n<o;)e[n++]=t;return e}(e,t,n,o)):[]},kn.filter=function(e,t){return(Na(e)?ut:ro)(e,Xr(t,3))},kn.flatMap=function(e,t){return io(ha(e,t),1)},kn.flatMapDeep=function(e,t){return io(ha(e,t),1/0)},kn.flatMapDepth=function(e,t,n){return n=void 0===n?1:os(n),io(ha(e,t),n)},kn.flatten=Fi,kn.flattenDeep=function(e){return(null==e?0:e.length)?io(e,1/0):[]},kn.flattenDepth=function(e,t){return(null==e?0:e.length)?io(e,t=void 0===t?1:os(t)):[]},kn.flip=function(e){return jr(e,512)},kn.flow=Vs,kn.flowRight=zs,kn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,o={};++t<n;){var r=e[t];o[r[0]]=r[1]}return o},kn.functions=function(e){return null==e?[]:uo(e,Es(e))},kn.functionsIn=function(e){return null==e?[]:uo(e,ys(e))},kn.groupBy=la,kn.initial=function(e){return(null==e?0:e.length)?Ko(e,0,-1):[]},kn.intersection=Pi,kn.intersectionBy=Li,kn.intersectionWith=Ui,kn.invert=_s,kn.invertBy=bs,kn.invokeMap=ua,kn.iteratee=Ws,kn.keyBy=da,kn.keys=Es,kn.keysIn=ys,kn.map=ha,kn.mapKeys=function(e,t){var n={};return t=Xr(t,3),co(e,(function(e,o,r){Wn(n,t(e,o,r),e)})),n},kn.mapValues=function(e,t){var n={};return t=Xr(t,3),co(e,(function(e,o,r){Wn(n,o,t(e,o,r))})),n},kn.matches=function(e){return Ro(Qn(e,1))},kn.matchesProperty=function(e,t){return Ao(e,Qn(t,1))},kn.memoize=Ta,kn.merge=Ss,kn.mergeWith=Ts,kn.method=Ys,kn.methodOf=$s,kn.mixin=Qs,kn.negate=wa,kn.nthArg=function(e){return e=os(e),Bo((function(t){return Do(t,e)}))},kn.omit=ws,kn.omitBy=function(e,t){return xs(e,wa(Xr(t)))},kn.once=function(e){return _a(2,e)},kn.orderBy=function(e,t,n,o){return null==e?[]:(Na(t)||(t=null==t?[]:[t]),Na(n=o?void 0:n)||(n=null==n?[]:[n]),No(e,t,n))},kn.over=Js,kn.overArgs=Ca,kn.overEvery=Zs,kn.overSome=ec,kn.partial=xa,kn.partialRight=Oa,kn.partition=pa,kn.pick=Cs,kn.pickBy=xs,kn.property=tc,kn.propertyOf=function(e){return function(t){return null==e?void 0:ho(e,t)}},kn.pull=ji,kn.pullAll=Gi,kn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Mo(e,t,Xr(n,2)):e},kn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Mo(e,t,void 0,n):e},kn.pullAt=qi,kn.range=nc,kn.rangeRight=oc,kn.rearg=ka,kn.reject=function(e,t){return(Na(e)?ut:ro)(e,wa(Xr(t,3)))},kn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var o=-1,r=[],i=e.length;for(t=Xr(t,3);++o<i;){var a=e[o];t(a,o,e)&&(n.push(a),r.push(o))}return Po(e,r),n},kn.rest=function(e,t){if("function"!=typeof e)throw new be(i);return Bo(e,t=void 0===t?t:os(t))},kn.reverse=Hi,kn.sampleSize=function(e,t,n){return t=(n?ci(e,t,n):void 0===t)?1:os(t),(Na(e)?jn:Go)(e,t)},kn.set=function(e,t,n){return null==e?e:qo(e,t,n)},kn.setWith=function(e,t,n,o){return o="function"==typeof o?o:void 0,null==e?e:qo(e,t,n,o)},kn.shuffle=function(e){return(Na(e)?Gn:zo)(e)},kn.slice=function(e,t,n){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&ci(e,t,n)?(t=0,n=o):(t=null==t?0:os(t),n=void 0===n?o:os(n)),Ko(e,t,n)):[]},kn.sortBy=ma,kn.sortedUniq=function(e){return e&&e.length?Qo(e):[]},kn.sortedUniqBy=function(e,t){return e&&e.length?Qo(e,Xr(t,2)):[]},kn.split=function(e,t,n){return n&&"number"!=typeof n&&ci(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Ya(t))&&!(t=Jo(t))&&Bt(e)?ur(Kt(e),0,n):e.split(t,n):[]},kn.spread=function(e,t){if("function"!=typeof e)throw new be(i);return t=null==t?0:an(os(t),0),Bo((function(n){var o=n[t],r=ur(n,0,t);return o&&mt(r,o),it(e,this,r)}))},kn.tail=function(e){var t=null==e?0:e.length;return t?Ko(e,1,t):[]},kn.take=function(e,t,n){return e&&e.length?Ko(e,0,(t=n||void 0===t?1:os(t))<0?0:t):[]},kn.takeRight=function(e,t,n){var o=null==e?0:e.length;return o?Ko(e,(t=o-(t=n||void 0===t?1:os(t)))<0?0:t,o):[]},kn.takeRightWhile=function(e,t){return e&&e.length?nr(e,Xr(t,3),!1,!0):[]},kn.takeWhile=function(e,t){return e&&e.length?nr(e,Xr(t,3)):[]},kn.tap=function(e,t){return t(e),e},kn.throttle=function(e,t,n){var o=!0,r=!0;if("function"!=typeof e)throw new be(i);return Ha(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),Ea(e,t,{leading:o,maxWait:t,trailing:r})},kn.thru=na,kn.toArray=ts,kn.toPairs=Os,kn.toPairsIn=ks,kn.toPath=function(e){return Na(e)?pt(e,xi):Xa(e)?[e]:br(Ci(ss(e)))},kn.toPlainObject=as,kn.transform=function(e,t,n){var o=Na(e),r=o||La(e)||Ja(e);if(t=Xr(t,4),null==n){var i=e&&e.constructor;n=r?o?new i:[]:Ha(e)&&ja(i)?Rn(ze(e)):{}}return(r?st:co)(e,(function(e,o,r){return t(n,e,o,r)})),n},kn.unary=function(e){return fa(e,1)},kn.union=Vi,kn.unionBy=zi,kn.unionWith=Ki,kn.uniq=function(e){return e&&e.length?Zo(e):[]},kn.uniqBy=function(e,t){return e&&e.length?Zo(e,Xr(t,2)):[]},kn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Zo(e,void 0,t):[]},kn.unset=function(e,t){return null==e||er(e,t)},kn.unzip=Wi,kn.unzipWith=Yi,kn.update=function(e,t,n){return null==e?e:tr(e,t,sr(n))},kn.updateWith=function(e,t,n,o){return o="function"==typeof o?o:void 0,null==e?e:tr(e,t,sr(n),o)},kn.values=Rs,kn.valuesIn=function(e){return null==e?[]:It(e,ys(e))},kn.without=$i,kn.words=js,kn.wrap=function(e,t){return xa(sr(t),e)},kn.xor=Qi,kn.xorBy=Xi,kn.xorWith=Ji,kn.zip=Zi,kn.zipObject=function(e,t){return ir(e||[],t||[],Hn)},kn.zipObjectDeep=function(e,t){return ir(e||[],t||[],qo)},kn.zipWith=ea,kn.entries=Os,kn.entriesIn=ks,kn.extend=ls,kn.extendWith=us,Qs(kn,kn),kn.add=ac,kn.attempt=Gs,kn.camelCase=As,kn.capitalize=Is,kn.ceil=sc,kn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=is(n))==n?n:0),void 0!==t&&(t=(t=is(t))==t?t:0),$n(is(e),t,n)},kn.clone=function(e){return Qn(e,4)},kn.cloneDeep=function(e){return Qn(e,5)},kn.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},kn.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},kn.conformsTo=function(e,t){return null==t||Xn(e,t,Es(t))},kn.deburr=Ds,kn.defaultTo=function(e,t){return null==e||e!=e?t:e},kn.divide=cc,kn.endsWith=function(e,t,n){e=ss(e),t=Jo(t);var o=e.length,r=n=void 0===n?o:$n(os(n),0,o);return(n-=t.length)>=0&&e.slice(n,r)==t},kn.eq=Ra,kn.escape=function(e){return(e=ss(e))&&B.test(e)?e.replace(L,Lt):e},kn.escapeRegExp=function(e){return(e=ss(e))&&W.test(e)?e.replace(K,"\\$&"):e},kn.every=function(e,t,n){var o=Na(e)?lt:no;return n&&ci(e,t,n)&&(t=void 0),o(e,Xr(t,3))},kn.find=ia,kn.findIndex=Di,kn.findKey=function(e,t){return vt(e,Xr(t,3),co)},kn.findLast=aa,kn.findLastIndex=Ni,kn.findLastKey=function(e,t){return vt(e,Xr(t,3),lo)},kn.floor=lc,kn.forEach=sa,kn.forEachRight=ca,kn.forIn=function(e,t){return null==e?e:ao(e,Xr(t,3),ys)},kn.forInRight=function(e,t){return null==e?e:so(e,Xr(t,3),ys)},kn.forOwn=function(e,t){return e&&co(e,Xr(t,3))},kn.forOwnRight=function(e,t){return e&&lo(e,Xr(t,3))},kn.get=gs,kn.gt=Aa,kn.gte=Ia,kn.has=function(e,t){return null!=e&&ri(e,t,fo)},kn.hasIn=fs,kn.head=Mi,kn.identity=Ks,kn.includes=function(e,t,n,o){e=Ma(e)?e:Rs(e),n=n&&!o?os(n):0;var r=e.length;return n<0&&(n=an(r+n,0)),Qa(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&yt(e,t,n)>-1},kn.indexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:os(n);return r<0&&(r=an(o+r,0)),yt(e,t,r)},kn.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e<an(t,n)}(e=is(e),t,n)},kn.invoke=vs,kn.isArguments=Da,kn.isArray=Na,kn.isArrayBuffer=Fa,kn.isArrayLike=Ma,kn.isArrayLikeObject=Pa,kn.isBoolean=function(e){return!0===e||!1===e||Va(e)&&mo(e)==u},kn.isBuffer=La,kn.isDate=Ua,kn.isElement=function(e){return Va(e)&&1===e.nodeType&&!Wa(e)},kn.isEmpty=function(e){if(null==e)return!0;if(Ma(e)&&(Na(e)||"string"==typeof e||"function"==typeof e.splice||La(e)||Ja(e)||Da(e)))return!e.length;var t=oi(e);if(t==g||t==v)return!e.size;if(hi(e))return!Co(e).length;for(var n in e)if(we.call(e,n))return!1;return!0},kn.isEqual=function(e,t){return yo(e,t)},kn.isEqualWith=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?yo(e,t,void 0,n):!!o},kn.isError=Ba,kn.isFinite=function(e){return"number"==typeof e&&nn(e)},kn.isFunction=ja,kn.isInteger=Ga,kn.isLength=qa,kn.isMap=za,kn.isMatch=function(e,t){return e===t||So(e,t,Zr(t))},kn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,So(e,t,Zr(t),n)},kn.isNaN=function(e){return Ka(e)&&e!=+e},kn.isNative=function(e){if(di(e))throw new he("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return To(e)},kn.isNil=function(e){return null==e},kn.isNull=function(e){return null===e},kn.isNumber=Ka,kn.isObject=Ha,kn.isObjectLike=Va,kn.isPlainObject=Wa,kn.isRegExp=Ya,kn.isSafeInteger=function(e){return Ga(e)&&e>=-9007199254740991&&e<=9007199254740991},kn.isSet=$a,kn.isString=Qa,kn.isSymbol=Xa,kn.isTypedArray=Ja,kn.isUndefined=function(e){return void 0===e},kn.isWeakMap=function(e){return Va(e)&&oi(e)==S},kn.isWeakSet=function(e){return Va(e)&&"[object WeakSet]"==mo(e)},kn.join=function(e,t){return null==e?"":on.call(e,t)},kn.kebabCase=Ns,kn.last=Bi,kn.lastIndexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=o;return void 0!==n&&(r=(r=os(n))<0?an(o+r,0):sn(r,o-1)),t==t?function(e,t,n){for(var o=n+1;o--;)if(e[o]===t)return o;return o}(e,t,r):Et(e,Tt,r,!0)},kn.lowerCase=Fs,kn.lowerFirst=Ms,kn.lt=Za,kn.lte=es,kn.max=function(e){return e&&e.length?oo(e,Ks,go):void 0},kn.maxBy=function(e,t){return e&&e.length?oo(e,Xr(t,2),go):void 0},kn.mean=function(e){return wt(e,Ks)},kn.meanBy=function(e,t){return wt(e,Xr(t,2))},kn.min=function(e){return e&&e.length?oo(e,Ks,Oo):void 0},kn.minBy=function(e,t){return e&&e.length?oo(e,Xr(t,2),Oo):void 0},kn.stubArray=rc,kn.stubFalse=ic,kn.stubObject=function(){return{}},kn.stubString=function(){return""},kn.stubTrue=function(){return!0},kn.multiply=dc,kn.nth=function(e,t){return e&&e.length?Do(e,os(t)):void 0},kn.noConflict=function(){return We._===this&&(We._=Re),this},kn.noop=Xs,kn.now=ga,kn.pad=function(e,t,n){e=ss(e);var o=(t=os(t))?zt(e):0;if(!t||o>=t)return e;var r=(t-o)/2;return Nr(Zt(r),n)+e+Nr(Jt(r),n)},kn.padEnd=function(e,t,n){e=ss(e);var o=(t=os(t))?zt(e):0;return t&&o<t?e+Nr(t-o,n):e},kn.padStart=function(e,t,n){e=ss(e);var o=(t=os(t))?zt(e):0;return t&&o<t?Nr(t-o,n)+e:e},kn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ln(ss(e).replace($,""),t||0)},kn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ci(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ns(e),void 0===t?(t=e,e=0):t=ns(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var r=un();return sn(e+r*(t-e+He("1e-"+((r+"").length-1))),t)}return Lo(e,t)},kn.reduce=function(e,t,n){var o=Na(e)?gt:Ot,r=arguments.length<3;return o(e,Xr(t,4),n,r,eo)},kn.reduceRight=function(e,t,n){var o=Na(e)?ft:Ot,r=arguments.length<3;return o(e,Xr(t,4),n,r,to)},kn.repeat=function(e,t,n){return t=(n?ci(e,t,n):void 0===t)?1:os(t),Uo(ss(e),t)},kn.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},kn.result=function(e,t,n){var o=-1,r=(t=cr(t,e)).length;for(r||(r=1,e=void 0);++o<r;){var i=null==e?void 0:e[xi(t[o])];void 0===i&&(o=r,i=n),e=ja(i)?i.call(e):i}return e},kn.round=hc,kn.runInContext=e,kn.sample=function(e){return(Na(e)?Bn:jo)(e)},kn.size=function(e){if(null==e)return 0;if(Ma(e))return Qa(e)?zt(e):e.length;var t=oi(e);return t==g||t==v?e.size:Co(e).length},kn.snakeCase=Ps,kn.some=function(e,t,n){var o=Na(e)?_t:Wo;return n&&ci(e,t,n)&&(t=void 0),o(e,Xr(t,3))},kn.sortedIndex=function(e,t){return Yo(e,t)},kn.sortedIndexBy=function(e,t,n){return $o(e,t,Xr(n,2))},kn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var o=Yo(e,t);if(o<n&&Ra(e[o],t))return o}return-1},kn.sortedLastIndex=function(e,t){return Yo(e,t,!0)},kn.sortedLastIndexBy=function(e,t,n){return $o(e,t,Xr(n,2),!0)},kn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Yo(e,t,!0)-1;if(Ra(e[n],t))return n}return-1},kn.startCase=Ls,kn.startsWith=function(e,t,n){return e=ss(e),n=null==n?0:$n(os(n),0,e.length),t=Jo(t),e.slice(n,n+t.length)==t},kn.subtract=pc,kn.sum=function(e){return e&&e.length?kt(e,Ks):0},kn.sumBy=function(e,t){return e&&e.length?kt(e,Xr(t,2)):0},kn.template=function(e,t,n){var o=kn.templateSettings;n&&ci(e,t,n)&&(t=void 0),e=ss(e),t=us({},t,o,Gr);var r,i,a=us({},t.imports,o.imports,Gr),s=Es(a),c=It(a,s),l=0,u=t.interpolate||ue,d="__p += '",h=fe((t.escape||ue).source+"|"+u.source+"|"+(u===q?ne:ue).source+"|"+(t.evaluate||ue).source+"|$","g"),p="//# sourceURL="+(we.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Be+"]")+"\n";e.replace(h,(function(t,n,o,a,s,c){return o||(o=a),d+=e.slice(l,c).replace(de,Ut),n&&(r=!0,d+="' +\n__e("+n+") +\n'"),s&&(i=!0,d+="';\n"+s+";\n__p += '"),o&&(d+="' +\n((__t = ("+o+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),d+="';\n";var m=we.call(t,"variable")&&t.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(i?d.replace(N,""):d).replace(F,"$1").replace(M,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Gs((function(){return pe(s,p+"return "+d).apply(void 0,c)}));if(g.source=d,Ba(g))throw g;return g},kn.times=function(e,t){if((e=os(e))<1||e>9007199254740991)return[];var n=4294967295,o=sn(e,4294967295);e-=4294967295;for(var r=Rt(o,t=Xr(t));++n<e;)t(n);return r},kn.toFinite=ns,kn.toInteger=os,kn.toLength=rs,kn.toLower=function(e){return ss(e).toLowerCase()},kn.toNumber=is,kn.toSafeInteger=function(e){return e?$n(os(e),-9007199254740991,9007199254740991):0===e?e:0},kn.toString=ss,kn.toUpper=function(e){return ss(e).toUpperCase()},kn.trim=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(Y,"");if(!e||!(t=Jo(t)))return e;var o=Kt(e),r=Kt(t);return ur(o,Nt(o,r),Ft(o,r)+1).join("")},kn.trimEnd=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(Q,"");if(!e||!(t=Jo(t)))return e;var o=Kt(e);return ur(o,0,Ft(o,Kt(t))+1).join("")},kn.trimStart=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace($,"");if(!e||!(t=Jo(t)))return e;var o=Kt(e);return ur(o,Nt(o,Kt(t))).join("")},kn.truncate=function(e,t){var n=30,o="...";if(Ha(t)){var r="separator"in t?t.separator:r;n="length"in t?os(t.length):n,o="omission"in t?Jo(t.omission):o}var i=(e=ss(e)).length;if(Bt(e)){var a=Kt(e);i=a.length}if(n>=i)return e;var s=n-zt(o);if(s<1)return o;var c=a?ur(a,0,s).join(""):e.slice(0,s);if(void 0===r)return c+o;if(a&&(s+=c.length-s),Ya(r)){if(e.slice(s).search(r)){var l,u=c;for(r.global||(r=fe(r.source,ss(oe.exec(r))+"g")),r.lastIndex=0;l=r.exec(u);)var d=l.index;c=c.slice(0,void 0===d?s:d)}}else if(e.indexOf(Jo(r),s)!=s){var h=c.lastIndexOf(r);h>-1&&(c=c.slice(0,h))}return c+o},kn.unescape=function(e){return(e=ss(e))&&U.test(e)?e.replace(P,Wt):e},kn.uniqueId=function(e){var t=++Ce;return ss(e)+t},kn.upperCase=Us,kn.upperFirst=Bs,kn.each=sa,kn.eachRight=ca,kn.first=Mi,Qs(kn,(uc={},co(kn,(function(e,t){we.call(kn.prototype,t)||(uc[t]=e)})),uc),{chain:!1}),kn.VERSION="4.17.19",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){kn[e].placeholder=kn})),st(["drop","take"],(function(e,t){Dn.prototype[e]=function(n){n=void 0===n?1:an(os(n),0);var o=this.__filtered__&&!t?new Dn(this):this.clone();return o.__filtered__?o.__takeCount__=sn(n,o.__takeCount__):o.__views__.push({size:sn(n,4294967295),type:e+(o.__dir__<0?"Right":"")}),o},Dn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,o=1==n||3==n;Dn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xr(e,3),type:n}),t.__filtered__=t.__filtered__||o,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Dn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Dn.prototype[e]=function(){return this.__filtered__?new Dn(this):this[n](1)}})),Dn.prototype.compact=function(){return this.filter(Ks)},Dn.prototype.find=function(e){return this.filter(e).head()},Dn.prototype.findLast=function(e){return this.reverse().find(e)},Dn.prototype.invokeMap=Bo((function(e,t){return"function"==typeof e?new Dn(this):this.map((function(n){return vo(n,e,t)}))})),Dn.prototype.reject=function(e){return this.filter(wa(Xr(e)))},Dn.prototype.slice=function(e,t){e=os(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Dn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=os(t))<0?n.dropRight(-t):n.take(t-e)),n)},Dn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Dn.prototype.toArray=function(){return this.take(4294967295)},co(Dn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),r=kn[o?"take"+("last"==t?"Right":""):t],i=o||/^find/.test(t);r&&(kn.prototype[t]=function(){var t=this.__wrapped__,a=o?[1]:arguments,s=t instanceof Dn,c=a[0],l=s||Na(t),u=function(e){var t=r.apply(kn,mt([e],a));return o&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var d=this.__chain__,h=!!this.__actions__.length,p=i&&!d,m=s&&!h;if(!i&&l){t=m?t:new Dn(this);var g=e.apply(t,a);return g.__actions__.push({func:na,args:[u],thisArg:void 0}),new In(g,d)}return p&&m?e.apply(this,a):(g=this.thru(u),p?o?g.value()[0]:g.value():g)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ve[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);kn.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var r=this.value();return t.apply(Na(r)?r:[],e)}return this[n]((function(n){return t.apply(Na(n)?n:[],e)}))}})),co(Dn.prototype,(function(e,t){var n=kn[t];if(n){var o=n.name+"";we.call(vn,o)||(vn[o]=[]),vn[o].push({name:t,func:n})}})),vn[Rr(void 0,2).name]=[{name:"wrapper",func:void 0}],Dn.prototype.clone=function(){var e=new Dn(this.__wrapped__);return e.__actions__=br(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=br(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=br(this.__views__),e},Dn.prototype.reverse=function(){if(this.__filtered__){var e=new Dn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Dn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Na(e),o=t<0,r=n?e.length:0,i=function(e,t,n){var o=-1,r=n.length;for(;++o<r;){var i=n[o],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=sn(t,e+a);break;case"takeRight":e=an(e,t-a)}}return{start:e,end:t}}(0,r,this.__views__),a=i.start,s=i.end,c=s-a,l=o?s:a-1,u=this.__iteratees__,d=u.length,h=0,p=sn(c,this.__takeCount__);if(!n||!o&&r==c&&p==c)return or(e,this.__actions__);var m=[];e:for(;c--&&h<p;){for(var g=-1,f=e[l+=t];++g<d;){var _=u[g],b=_.iteratee,v=_.type,E=b(f);if(2==v)f=E;else if(!E){if(1==v)continue e;break e}}m[h++]=f}return m},kn.prototype.at=oa,kn.prototype.chain=function(){return ta(this)},kn.prototype.commit=function(){return new In(this.value(),this.__chain__)},kn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ts(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},kn.prototype.plant=function(e){for(var t,n=this;n instanceof An;){var o=ki(n);o.__index__=0,o.__values__=void 0,t?r.__wrapped__=o:t=o;var r=o;n=n.__wrapped__}return r.__wrapped__=e,t},kn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Dn){var t=e;return this.__actions__.length&&(t=new Dn(this)),(t=t.reverse()).__actions__.push({func:na,args:[Hi],thisArg:void 0}),new In(t,this.__chain__)}return this.thru(Hi)},kn.prototype.toJSON=kn.prototype.valueOf=kn.prototype.value=function(){return or(this.__wrapped__,this.__actions__)},kn.prototype.first=kn.prototype.head,Je&&(kn.prototype[Je]=function(){return this}),kn}();We._=Yt,void 0===(r=function(){return Yt}.call(t,n,t,o))||(o.exports=r)}).call(this)}).call(this,n(5),n(224)(e))},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";var o=n(828),r=n(829);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){r.isString(e)&&(e=v(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),d=["%","/","?",";","#"].concat(u),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},f={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(2);function v(e,t,n){if(e&&r.isObject(e)&&e instanceof i)return e;var o=new i;return o.parse(e,t,n),o}i.prototype.parse=function(e,t,n){if(!r.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var v=e=l.join(s);if(v=v.trim(),!n&&1===e.split("#").length){var E=c.exec(v);if(E)return this.path=v,this.href=v,this.pathname=E[1],E[2]?(this.search=E[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var y=a.exec(v);if(y){var S=(y=y[0]).toLowerCase();this.protocol=S,v=v.substr(y.length)}if(n||y||v.match(/^\/\/[^@\/]+@[^@\/]+/)){var T="//"===v.substr(0,2);!T||y&&f[y]||(v=v.substr(2),this.slashes=!0)}if(!f[y]&&(T||y&&!_[y])){for(var w,C,x=-1,O=0;O<h.length;O++){-1!==(k=v.indexOf(h[O]))&&(-1===x||k<x)&&(x=k)}-1!==(C=-1===x?v.lastIndexOf("@"):v.lastIndexOf("@",x))&&(w=v.slice(0,C),v=v.slice(C+1),this.auth=decodeURIComponent(w)),x=-1;for(O=0;O<d.length;O++){var k;-1!==(k=v.indexOf(d[O]))&&(-1===x||k<x)&&(x=k)}-1===x&&(x=v.length),this.host=v.slice(0,x),v=v.slice(x),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var A=this.hostname.split(/\./),I=(O=0,A.length);O<I;O++){var D=A[O];if(D&&!D.match(p)){for(var N="",F=0,M=D.length;F<M;F++)D.charCodeAt(F)>127?N+="x":N+=D[F];if(!N.match(p)){var P=A.slice(0,O),L=A.slice(O+1),U=D.match(m);U&&(P.push(U[1]),L.unshift(U[2])),L.length&&(v="/"+L.join(".")+v),this.hostname=P.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=o.toASCII(this.hostname));var B=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+B,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!g[S])for(O=0,I=u.length;O<I;O++){var G=u[O];if(-1!==v.indexOf(G)){var q=encodeURIComponent(G);q===G&&(q=escape(G)),v=v.split(G).join(q)}}var H=v.indexOf("#");-1!==H&&(this.hash=v.substr(H),v=v.slice(0,H));var V=v.indexOf("?");if(-1!==V?(this.search=v.substr(V),this.query=v.substr(V+1),t&&(this.query=b.parse(this.query)),v=v.slice(0,V)):t&&(this.search="",this.query={}),v&&(this.pathname=v),_[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var z=this.search||"";this.path=B+z}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",o=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&r.isObject(this.query)&&Object.keys(this.query).length&&(a=b.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||_[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),o&&"#"!==o.charAt(0)&&(o="#"+o),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+o},i.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(r.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,o=Object.keys(this),a=0;a<o.length;a++){var s=o[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),l=0;l<c.length;l++){var u=c[l];"protocol"!==u&&(n[u]=e[u])}return _[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!_[e.protocol]){for(var d=Object.keys(e),h=0;h<d.length;h++){var p=d[h];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||f[e.protocol])n.pathname=e.pathname;else{for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var g=n.pathname||"",b=n.search||"";n.path=g+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),E=e.host||e.pathname&&"/"===e.pathname.charAt(0),y=E||v||n.host&&e.pathname,S=y,T=n.pathname&&n.pathname.split("/")||[],w=(m=e.pathname&&e.pathname.split("/")||[],n.protocol&&!_[n.protocol]);if(w&&(n.hostname="",n.port=null,n.host&&(""===T[0]?T[0]=n.host:T.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host=null),y=y&&(""===m[0]||""===T[0])),E)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,T=m;else if(m.length)T||(T=[]),T.pop(),T=T.concat(m),n.search=e.search,n.query=e.query;else if(!r.isNullOrUndefined(e.search)){if(w)n.hostname=n.host=T.shift(),(R=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=R.shift(),n.host=n.hostname=R.shift());return n.search=e.search,n.query=e.query,r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!T.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=T.slice(-1)[0],x=(n.host||e.host||T.length>1)&&("."===C||".."===C)||""===C,O=0,k=T.length;k>=0;k--)"."===(C=T[k])?T.splice(k,1):".."===C?(T.splice(k,1),O++):O&&(T.splice(k,1),O--);if(!y&&!S)for(;O--;O)T.unshift("..");!y||""===T[0]||T[0]&&"/"===T[0].charAt(0)||T.unshift(""),x&&"/"!==T.join("/").substr(-1)&&T.push("");var R,A=""===T[0]||T[0]&&"/"===T[0].charAt(0);w&&(n.hostname=n.host=A?"":T.length?T.shift():"",(R=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=R.shift(),n.host=n.hostname=R.shift()));return(y=y||n.host&&T.length)&&!A&&T.unshift(""),T.length?n.pathname=T.join("/"):(n.pathname=null,n.path=null),r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"d",(function(){return g})),n.d(t,"g",(function(){return f})),n.d(t,"f",(function(){return _})),n.d(t,"e",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"i",(function(){return E})),n.d(t,"j",(function(){return y})),n.d(t,"b",(function(){return S})),n.d(t,"h",(function(){return w}));var o=n(86),r=n(996),i=n.n(r),a=n(1),s=n(591),c=n(424),l=n(82),u=n.n(l);class d extends c.b{constructor(e){if(super(),u()(this,"_elementUrl",void 0),this._elementUrl=e,!this._elementUrl.startsWith("http:")&&!this._elementUrl.startsWith("https:"))throw new Error("Element prefix URL does not appear to be an HTTP(S) URL")}forEvent(e,t,n){return`${this._elementUrl}/#/room/${e}/${t}${this.encodeServerCandidates(n)}`}forRoom(e,t){return`${this._elementUrl}/#/room/${e}${this.encodeServerCandidates(t)}`}forUser(e){return`${this._elementUrl}/#/user/${e}`}forGroup(e){return`${this._elementUrl}/#/group/${e}`}forEntity(e){if("!"===e[0]||"#"===e[0])return this.forRoom(e);if("@"===e[0])return this.forUser(e);if("+"===e[0])return this.forGroup(e);throw new Error("Unrecognized entity")}isPermalinkHost(e){const t=new URL(this._elementUrl);return e===(t.host||t.hostname)}encodeServerCandidates(e){return e&&0!==e.length?"?via="+e.map(e=>encodeURIComponent(e)).join("&via="):""}parsePermalink(e){if(!e||!e.startsWith(this._elementUrl))throw new Error("Does not appear to be a permalink");const t=e.substring((this._elementUrl+"/#/").length).split("/");if(t.length<2)throw new Error("URL is missing parts");const n=t[0],o=t[1];if("user"===n)return c.a.forUser(o);if("group"===n)return c.a.forGroup(o);if("room"===n){if(2===t.length)return c.a.forRoom(o,[]);const e=(t.length>2?t.slice(2).join("/"):"").split("?"),n=e[0],r=(e.length>1?e[1]:"").split("via=").filter(e=>!!e);return c.a.forEvent(o,n,r)}throw new Error("Unknown entity type in permalink")}}var h=n(425),p=n(92);class m{constructor(e,t=null){if(this._room=e,this._roomId=e?e.roomId:t,this._highestPlUserId=null,this._populationMap=null,this._bannedHostsRegexps=null,this._allowedHostsRegexps=null,this._serverCandidates=null,this._started=!1,!this._roomId)throw new Error("Failed to resolve a roomId for the permalink creator to use");this.onMembership=this.onMembership.bind(this),this.onRoomState=this.onRoomState.bind(this)}load(){this._room&&this._room.currentState?(this._updateAllowedServers(),this._updateHighestPlUser(),this._updatePopulationMap(),this._updateServerCandidates()):console.warn("Tried to load a permalink creator with no room state")}start(){this.load(),this._room.on("RoomMember.membership",this.onMembership),this._room.on("RoomState.events",this.onRoomState),this._started=!0}stop(){this._room.removeListener("RoomMember.membership",this.onMembership),this._room.removeListener("RoomState.events",this.onRoomState),this._started=!1}isStarted(){return this._started}forEvent(e){return T().forEvent(this._roomId,e,this._serverCandidates)}forShareableRoom(){if(this._room){const e=this._room.getCanonicalAlias();if(e)return T().forRoom(e,this._serverCandidates)}return T().forRoom(this._roomId,this._serverCandidates)}forRoom(){return T().forRoom(this._roomId,this._serverCandidates)}onRoomState(e){switch(e.getType()){case"m.room.server_acl":return this._updateAllowedServers(),this._updateHighestPlUser(),this._updatePopulationMap(),void this._updateServerCandidates();case"m.room.power_levels":return this._updateHighestPlUser(),void this._updateServerCandidates()}}onMembership(e,t,n){const o=t.userId,r=t.membership,i=C(o),a="join"!==n&&"join"===r;"join"===n&&"join"!==r?this._populationMap[i]--:a&&this._populationMap[i]++,this._updateHighestPlUser(),this._updateServerCandidates()}_updateHighestPlUser(){const e=this._room.currentState.getStateEvents("m.room.power_levels","");if(e){const t=e.getContent();if(t){const e=t.users;if(e){const t=Object.entries(e).filter(([e])=>{const t=this._room.getMember(e);if(!t||"join"!==t.membership)return!1;const n=C(e);return!k(n)&&!O(n,this._bannedHostsRegexps)&&O(n,this._allowedHostsRegexps)}).reduce((e,t)=>t[1]>e[1]?t:e,[null,0]),[n,o]=t;if(null!==n&&o>=50)return void(this._highestPlUserId=n)}}}this._highestPlUserId=null}_updateAllowedServers(){const e=[];let t=[new RegExp(".*")];if(this._room.currentState){const n=this._room.currentState.getStateEvents("m.room.server_acl","");if(n&&n.getContent()){const o=e=>new RegExp("^"+a.n(e,!1)+"$");(n.getContent().deny||[]).forEach(t=>e.push(o(t)));const r=n.getContent().allow||[];t=[],r.forEach(e=>t.push(o(e)))}}this._bannedHostsRegexps=e,this._allowedHostsRegexps=t}_updatePopulationMap(){const e={};for(const t of this._room.getJoinedMembers()){const n=C(t.userId);e[n]||(e[n]=0),e[n]++}this._populationMap=e}_updateServerCandidates(){let e=[];this._highestPlUserId&&e.push(C(this._highestPlUserId));const t=Object.keys(this._populationMap).sort((e,t)=>this._populationMap[t]-this._populationMap[e]).filter(t=>!e.includes(t)&&!k(t)&&!O(t,this._bannedHostsRegexps)&&O(t,this._allowedHostsRegexps)).slice(0,3-e.length);e=e.concat(t),this._serverCandidates=e}}function g(e){return T().forEntity(e)}function f(e){return T().forUser(e)}function _(e){if(!e)throw new Error("can't permalink a falsey roomId");if("!"!==e[0])return T().forRoom(e,[]);const t=o.a.get().getRoom(e);if(!t)return T().forRoom(e,[]);const n=new m(t);return n.load(),n.forRoom()}function b(e){return T().forGroup(e)}function v(e){return!!(new s.b).isPermalinkHost(e)||T().isPermalinkHost(e)}function E(e){return e?"#"===e[0]||"!"===e[0]?_(e):"@"===e[0]?f(e):"+"===e[0]?b(e):y(e):null}function y(e){if(!e.startsWith("http:")&&!e.startsWith("https:"))return e;const t=e.match(h.a.ELEMENT_URL_PATTERN);if(t)return t[1];try{const t=w(e);if(t)if(t.roomIdOrAlias){const n=t.eventId?"/"+t.eventId:"";e=`#/room/${t.roomIdOrAlias}${n}`,t.viaServers.length>0&&(e+=(new s.b).encodeServerCandidates(t.viaServers))}else t.groupId?e="#/group/"+t.groupId:t.userId&&(e="#/user/"+t.userId)}catch(e){}return e}function S(e){try{let t=w(e);if(!t){const n=e.match(h.a.ELEMENT_URL_PATTERN);if(n){const e=new d("http://localhost"),o=n[1].split("#").slice(1).join("#");t=e.parsePermalink("http://localhost/#"+o)}}if(!t)return null;if(t.userId)return t.userId;if(t.groupId)return t.groupId;if(t.roomIdOrAlias)return t.roomIdOrAlias}catch(e){}return null}function T(){const e=p.a.get().permalinkPrefix;return e&&e!==s.a?new d(e):new s.b}function w(e){const t=p.a.get().permalinkPrefix;return e.startsWith(s.a)?(new s.b).parsePermalink(e):t&&e.startsWith(t)?new d(t).parsePermalink(e):null}function C(e){return e.split(":").splice(1).join(":")}function x(e){return e?new URL("https://"+e).hostname:null}function O(e,t){if(!(e=x(e)))return!0;if(t.length>0&&!t[0].test)throw new Error(t[0]);return t.filter(t=>t.test(e)).length>0}function k(e){return!!(e=x(e))&&(e.startsWith("[")&&e.endsWith("]")&&(e=e.substring(1,e.length-1)),i()(e))}},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(6),a=n.n(i),s=n(323),c=n(140),l=n(86),u=n(87);function d(e){return e.chunk.map(e=>Object(s.c)(e))}function h(e){return e.chunk.map(e=>Object(s.d)(e))}let p=0;const m=[];async function g(e){p>=3&&await new Promise((e,t)=>{m.push(e)}),p++;try{return await e()}catch(e){throw e}finally{p--,function(){const e=m.shift();"function"==typeof e&&e()}()}}class f extends a.a{constructor(){super(),r()(this,"STATE_KEY",{GroupMembers:"GroupMembers",GroupInvitedMembers:"GroupInvitedMembers",Summary:"Summary",GroupRooms:"GroupRooms"}),this._state={},this._state[this.STATE_KEY.Summary]={},this._state[this.STATE_KEY.GroupRooms]={},this._state[this.STATE_KEY.GroupMembers]={},this._state[this.STATE_KEY.GroupInvitedMembers]={},this._ready={},this._ready[this.STATE_KEY.Summary]={},this._ready[this.STATE_KEY.GroupRooms]={},this._ready[this.STATE_KEY.GroupMembers]={},this._ready[this.STATE_KEY.GroupInvitedMembers]={},this._fetchResourcePromise={[this.STATE_KEY.Summary]:{},[this.STATE_KEY.GroupRooms]:{},[this.STATE_KEY.GroupMembers]:{},[this.STATE_KEY.GroupInvitedMembers]:{}},this._resourceFetcher={[this.STATE_KEY.Summary]:e=>g(()=>l.a.get().getGroupSummary(e)),[this.STATE_KEY.GroupRooms]:e=>g(()=>l.a.get().getGroupRooms(e).then(h)),[this.STATE_KEY.GroupMembers]:e=>g(()=>l.a.get().getGroupUsers(e).then(d)),[this.STATE_KEY.GroupInvitedMembers]:e=>g(()=>l.a.get().getGroupInvitedUsers(e).then(d))}}_fetchResource(e,t){if(this._fetchResourcePromise[e][t])return;const n=this._resourceFetcher[e](t);return this._fetchResourcePromise[e][t]=n,n.then(n=>{this._state[e][t]=n,this._ready[e][t]=!0,this._notifyListeners()}).catch(n=>{e===this.STATE_KEY.GroupInvitedMembers&&403===n.httpStatus||(console.error(`Failed to get resource ${e} for ${t}`,n),this.emit("error",n,t,e))}).finally(()=>{delete this._fetchResourcePromise[e][t]}),n}_notifyListeners(){this.emit("update")}registerListener(e,t){return this.on("update",t),this.emit("update"),e&&(this._fetchResource(this.STATE_KEY.Summary,e),this._fetchResource(this.STATE_KEY.GroupRooms,e),this._fetchResource(this.STATE_KEY.GroupMembers,e),this._fetchResource(this.STATE_KEY.GroupInvitedMembers,e)),{unregister:()=>{this.unregisterListener(t)}}}unregisterListener(e){this.removeListener("update",e)}isStateReady(e,t){return this._ready[t][e]}getGroupIdsForRoomId(e){return Object.keys(this._state[this.STATE_KEY.GroupRooms]).filter(t=>(this._state[this.STATE_KEY.GroupRooms][t]||[]).some(t=>t.roomId===e))}getSummary(e){return this._state[this.STATE_KEY.Summary][e]||{}}getGroupRooms(e){return this._state[this.STATE_KEY.GroupRooms][e]||[]}getGroupMembers(e){return this._state[this.STATE_KEY.GroupMembers][e]||[]}getGroupInvitedMembers(e){return this._state[this.STATE_KEY.GroupInvitedMembers][e]||[]}getGroupPublicity(e){return(this._state[this.STATE_KEY.Summary][e]||{}).user?(this._state[this.STATE_KEY.Summary][e]||{}).user.is_publicised:null}isUserPrivileged(e){return(this._state[this.STATE_KEY.Summary][e]||{}).user?(this._state[this.STATE_KEY.Summary][e]||{}).user.is_privileged:null}refreshGroupRooms(e){return this._fetchResource(this.STATE_KEY.GroupRooms,e)}refreshGroupMembers(e){return this._fetchResource(this.STATE_KEY.GroupMembers,e)}addRoomToGroup(e,t,n){return l.a.get().addRoomToGroup(e,t,n).then(this._fetchResource.bind(this,this.STATE_KEY.GroupRooms,e))}updateGroupRoomVisibility(e,t,n){return l.a.get().updateGroupRoomVisibility(e,t,n).then(this._fetchResource.bind(this,this.STATE_KEY.GroupRooms,e))}removeRoomFromGroup(e,t){return l.a.get().removeRoomFromGroup(e,t).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupRooms,e))}inviteUserToGroup(e,t){return l.a.get().inviteUserToGroup(e,t).then(this._fetchResource.bind(this,this.STATE_KEY.GroupInvitedMembers,e))}acceptGroupInvite(e){return l.a.get().acceptGroupInvite(e).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupRooms,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupMembers,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupInvitedMembers,e))}joinGroup(e){return l.a.get().joinGroup(e).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupRooms,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupMembers,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupInvitedMembers,e))}leaveGroup(e){return u.a.dispatch({action:"deselect_tags",tag:e}),l.a.get().leaveGroup(e).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupRooms,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupMembers,e))}addRoomToGroupSummary(e,t,n){return l.a.get().addRoomToGroupSummary(e,t,n).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e))}addUserToGroupSummary(e,t,n){return l.a.get().addUserToGroupSummary(e,t,n).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e))}removeRoomFromGroupSummary(e,t){return l.a.get().removeRoomFromGroupSummary(e,t).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e))}removeUserFromGroupSummary(e,t){return l.a.get().removeUserFromGroupSummary(e,t).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e))}setGroupPublicity(e,t){return l.a.get().setGroupPublicity(e,t).then(()=>{c.a.invalidatePublicisedGroups(l.a.get().credentials.userId)}).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e))}}let _=null;_||(_=new f),t.a=_},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(83),c=n(104),l=n(92),u=n(89),d=n(85);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const m=/#\/(groups?|room|user|settings|register|login|forgot_password|home|directory)/,g=/#\/(group|room|user)\/.*$/;function f(){const{origin:e,hash:t}=window.location;let{pathname:n}=window.location;return e.startsWith("file://")&&(n="/<redacted>/"),e+n+function(e){return m.exec(e)?g.test(e)?e.replace(g,"#/$1/<redacted>"):e.replace(m,"#/$1"):(console.warn(`Unexpected hash location "${e}"`),"#/<unexpected hash location>")}(t)}const _={"App Platform":{id:1,expl:Object(s.b)("The platform you're on"),example:"Electron Platform"},"App Version":{id:2,expl:Object(s.b)("The version of %(brand)s"),getTextVariables:()=>({brand:l.a.get().brand}),example:"15.0.0"},"User Type":{id:3,expl:Object(s.b)("Whether or not you're logged in (we don't record your username)"),example:"Logged In"},"Chosen Language":{id:4,expl:Object(s.b)("Your language of choice"),example:"en"},Instance:{id:5,expl:Object(s.b)("Which officially provided instance you are using, if any"),example:"app"},"RTE: Uses Richtext Mode":{id:6,expl:Object(s.b)("Whether or not you're using the Richtext mode of the Rich Text Editor"),example:"off"},"Homeserver URL":{id:7,expl:Object(s.b)("Your homeserver's URL"),example:"https://matrix.org"},"Touch Input":{id:8,expl:Object(s.b)("Whether you're using %(brand)s on a device where touch is the primary input mechanism"),getTextVariables:()=>({brand:l.a.get().brand}),example:"false"},Breadcrumbs:{id:9,expl:Object(s.b)("Whether or not you're using the 'breadcrumbs' feature (avatars above the room list)"),example:"disabled"},"Installed PWA":{id:10,expl:Object(s.b)("Whether you're using %(brand)s as an installed Progressive Web App"),getTextVariables:()=>({brand:l.a.get().brand}),example:"false"}};const b="mx_Riot_Analytics_uid";class v{constructor(){r()(this,"baseUrl",null),r()(this,"siteId",null),r()(this,"visitVariables",{}),r()(this,"firstPage",!0),r()(this,"heartbeatIntervalID",null),r()(this,"creationTs",void 0),r()(this,"lastVisitTs",void 0),r()(this,"visitCount",void 0),r()(this,"showDetailsModal",()=>{let e=[];e=this.disabled?Object.keys(_).map(e=>[e,Object(s.a)("e.g. %(exampleValue)s",{exampleValue:_[e].example})]):Object.values(this.visitVariables);const t=`${window.screen.width}x${window.screen.height}`,n=[{expl:Object(s.b)("Every page you use in the app"),value:Object(s.a)("e.g. <CurrentPageURL>",{},{CurrentPageURL:f})},{expl:Object(s.b)("Your user agent"),value:navigator.userAgent},{expl:Object(s.b)("Your device resolution"),value:t}],o=d.getComponent("dialogs.ErrorDialog");u.a.createTrackedDialog("Analytics Details","",o,{title:Object(s.a)("Analytics"),description:a.a.createElement("div",{className:"mx_AnalyticsModal"},a.a.createElement("div",null,Object(s.a)("The information being sent to us to help make %(brand)s better includes:",{brand:l.a.get().brand})),a.a.createElement("table",null,e.map(e=>a.a.createElement("tr",{key:e[0]},a.a.createElement("td",null,Object(s.a)(_[e[0]].expl,_[e[0]].getTextVariables?_[e[0]].getTextVariables():null)),void 0!==e[1]&&a.a.createElement("td",null,a.a.createElement("code",null,e[1])))),n.map((e,t)=>a.a.createElement("tr",{key:t},a.a.createElement("td",null,Object(s.a)(e.expl)),a.a.createElement("td",null,a.a.createElement("code",null,e.value))))),a.a.createElement("div",null,Object(s.a)("Where this page includes identifiable information, such as a room, user or group ID, that data is removed before being sent to the server.")))})}),this.creationTs=localStorage&&localStorage.getItem("mx_Riot_Analytics_cts"),!this.creationTs&&localStorage&&localStorage.setItem("mx_Riot_Analytics_cts",this.creationTs=String((new Date).getTime())),this.lastVisitTs=localStorage&&localStorage.getItem("mx_Riot_Analytics_lvts"),this.visitCount=localStorage&&localStorage.getItem("mx_Riot_Analytics_vc")||"0",this.visitCount=String(parseInt(this.visitCount,10)+1),localStorage&&localStorage.setItem("mx_Riot_Analytics_vc",this.visitCount)}get disabled(){return!this.baseUrl}canEnable(){const e=l.a.get();return"1"!==navigator.doNotTrack&&e&&e.piwik&&e.piwik.url&&e.piwik.siteId}async enable(){if(!this.disabled)return;if(!this.canEnable())return;const e=l.a.get();this.baseUrl=new URL("piwik.php",e.piwik.url),this.baseUrl.searchParams.set("rec","1"),this.baseUrl.searchParams.set("idsite",e.piwik.siteId),this.baseUrl.searchParams.set("apiv","1"),this.baseUrl.searchParams.set("send_image","0"),this.baseUrl.searchParams.set("_id",function(){try{let e=localStorage&&localStorage.getItem(b);return!e&&localStorage&&localStorage.setItem(b,e=[...Array(16)].map(()=>Math.random().toString(16)[2]).join("")),e}catch(e){return console.error("Analytics error: ",e),""}}()),this.baseUrl.searchParams.set("_idts",this.creationTs),this.baseUrl.searchParams.set("_idvc",this.visitCount),this.lastVisitTs&&this.baseUrl.searchParams.set("_viewts",this.lastVisitTs);const t=c.a.get();this.setVisitVariable("App Platform",t.getHumanReadableName());try{this.setVisitVariable("App Version",await t.getAppVersion())}catch(e){this.setVisitVariable("App Version","unknown")}this.setVisitVariable("Chosen Language",Object(s.d)());const n=window.location.hostname;"riot.im"===n?this.setVisitVariable("Instance",window.location.pathname):n.endsWith(".element.io")&&this.setVisitVariable("Instance",n.replace(".element.io",""));let o="unknown";try{o=String(window.matchMedia("(display-mode: standalone)").matches)}catch(e){}this.setVisitVariable("Installed PWA",o);let r="unknown";try{r=String(window.matchMedia("(pointer: coarse)").matches)}catch(e){}this.setVisitVariable("Touch Input",r),this.heartbeatIntervalID=window.setInterval(this.ping.bind(this),3e4)}disable(){this.disabled||(this.trackEvent("Analytics","opt-out"),window.clearInterval(this.heartbeatIntervalID),this.baseUrl=null,this.visitVariables={},localStorage.removeItem(b),localStorage.removeItem("mx_Riot_Analytics_cts"),localStorage.removeItem("mx_Riot_Analytics_vc"),localStorage.removeItem("mx_Riot_Analytics_lvts"))}async _track(e){if(this.disabled)return;const t=new Date,n=p(p({},e),{},{url:f(),_cvar:JSON.stringify(this.visitVariables),res:`${window.screen.width}x${window.screen.height}`,rand:String(Math.random()).slice(2,8),h:t.getHours(),m:t.getMinutes(),s:t.getSeconds()}),o=new URL(this.baseUrl.toString());for(const e in n)o.searchParams.set(e,n[e]);try{await window.fetch(o.toString(),{method:"GET",mode:"no-cors",cache:"no-cache",redirect:"follow"})}catch(e){console.error("Analytics error: ",e)}}ping(){this._track({ping:"1"}),localStorage.setItem("mx_Riot_Analytics_lvts",String((new Date).getTime()))}trackPageChange(e){this.disabled||(this.firstPage?this.firstPage=!1:("number"!=typeof e&&console.warn("Analytics.trackPageChange: expected generationTimeMs to be a number"),this._track({gt_ms:String(e)})))}trackEvent(e,t,n,o){this.disabled||this._track({e_c:e,e_a:t,e_n:n,e_v:o})}setVisitVariable(e,t){this.disabled||(this.visitVariables[_[e].id]=[e,t])}setLoggedIn(e,t){if(this.disabled)return;const n=l.a.get();if(!n.piwik)return;const o=n.piwik.whitelistedHSUrls||[];var r;this.setVisitVariable("User Type",e?"Guest":"Logged In"),this.setVisitVariable("Homeserver URL",(r=t,o.includes(r)?r:"<redacted>"))}setBreadcrumbs(e){this.disabled||this.setVisitVariable("Breadcrumbs",e?"enabled":"disabled")}}window.mxAnalytics||(window.mxAnalytics=new v),t.a=window.mxAnalytics},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var o=n(81),r=n.n(o),i=n(84),a=n.n(i),s=n(83),c=n(88);const l=({w:e=32,h:t=32,imgClassName:o,message:i})=>{let a;return a=c.a.getValue("feature_new_spinner")?n(704):n(705),r.a.createElement("div",{className:"mx_Spinner"},i&&r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"mx_Spinner_Msg"},i)," "),r.a.createElement("img",{src:a,width:e,height:t,className:o,"aria-label":Object(s.a)("Loading...")}))};l.propTypes={w:a.a.number,h:a.a.number,imgClassName:a.a.string,message:a.a.node},t.a=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(82),c=n.n(s),l=n(81),u=n.n(l),d=n(90),h=n.n(d),p=n(91),m=n(314);class g extends u.a.PureComponent{constructor(e){super(e),c()(this,"onMouseOver",()=>{this.props.forceHide||this.setState({hover:!0})}),c()(this,"onMouseLeave",()=>{this.setState({hover:!1})}),this.state={hover:!1}}componentDidUpdate(e){!e.forceHide&&this.props.forceHide&&this.state.hover&&this.setState({hover:!1})}render(){const e=this.props,{title:t,tooltip:n,children:o,tooltipClassName:i,forceHide:s,yOffset:c}=e,l=a()(e,["title","tooltip","children","tooltipClassName","forceHide","yOffset"]),d=this.state.hover?u.a.createElement(m.a,{className:"mx_AccessibleTooltipButton_container",tooltipClassName:h()("mx_AccessibleTooltipButton_tooltip",i),label:n||t,yOffset:c}):u.a.createElement("div",null);return u.a.createElement(p.a,r()({},l,{onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave,"aria-label":t}),o,d)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(81),r=n.n(o);class i extends r.a.Component{constructor(e){super(e),this._collectContainerRef=this._collectContainerRef.bind(this)}_collectContainerRef(e){e&&!this.containerRef&&(this.containerRef=e),this.props.wrappedRef&&this.props.wrappedRef(e)}getScrollTop(){return this.containerRef.scrollTop}render(){return r.a.createElement("div",{ref:this._collectContainerRef,style:this.props.style,className:["mx_AutoHideScrollbar",this.props.className].join(" "),onScroll:this.props.onScroll,onWheel:this.props.onWheel,tabIndex:this.props.tabIndex},this.props.children)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var o=n(82),r=n.n(o),i=n(6),a=n(541),s=n.n(a);const c="update";class l extends i.EventEmitter{constructor(e,t={}){super(),this.dispatcher=e,r()(this,"storeState",void 0),r()(this,"lock",new s.a),r()(this,"dispatcherRef",void 0),this.dispatcherRef=e.register(this.onDispatch.bind(this)),this.storeState=t}get state(){return this.storeState}stop(){this.dispatcherRef&&this.dispatcher.unregister(this.dispatcherRef)}async updateState(e){await this.lock.acquireAsync();try{this.storeState=Object.freeze(Object.assign({},this.storeState,e)),this.emit(c,this)}finally{await this.lock.release()}}async reset(e=null,t=!1){await this.lock.acquireAsync();try{this.storeState=Object.freeze(e||{}),t||this.emit(c,this)}finally{await this.lock.release()}}}},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(321),c=n(87),l=n(86),u=n(85),d=n(89),h=n(83),p=n(548),m=n(130),g=n(103);const f={joining:!1,joinError:null,roomId:null,initialEventId:null,initialEventPixelOffset:null,isInitialEventHighlighted:!1,roomAlias:null,roomLoading:!1,roomLoadError:null,forwardingEvent:null,quotingEvent:null,replyingToEvent:null,shouldPeek:!1};class _ extends s.Store{constructor(){super(c.a),r()(this,"state",f)}setState(e){let t=!1;for(const n of Object.keys(e))if(this.state[n]!==e[n]){t=!0;break}t&&(this.state=Object.assign(this.state,e),this.__emitChange())}__onDispatch(e){switch(e.action){case"view_room":this.viewRoom(e);break;case"view_create_group":case"view_welcome_page":case"view_home_page":case"view_my_groups":case"view_group":this.setState({roomId:null,roomAlias:null});break;case"view_room_error":this.viewRoomError(e);break;case"will_join":this.setState({joining:!0});break;case"cancel_join":this.setState({joining:!1});break;case"join_room":this.joinRoom(e);break;case"join_room_error":this.joinRoomError(e);break;case"join_room_ready":this.setState({shouldPeek:!1});break;case"on_client_not_viable":case"on_logged_out":this.reset();break;case"forward_event":this.setState({forwardingEvent:e.event});break;case"reply_to_event":e.event&&e.event.getRoomId()!==this.state.roomId?c.a.dispatch({action:"view_room",room_id:e.event.getRoomId(),replyingToEvent:e.event}):this.setState({replyingToEvent:e.event});break;case"open_room_settings":{const t=u.getComponent("dialogs.RoomSettingsDialog");d.a.createTrackedDialog("Room settings","",t,{roomId:e.room_id||this.state.roomId},null,!1,!0);break}}}async viewRoom(e){if(e.room_id){const t={roomId:e.room_id,roomAlias:e.room_alias,initialEventId:e.event_id,isInitialEventHighlighted:e.highlighted,forwardingEvent:null,roomLoading:!1,roomLoadError:null,shouldPeek:void 0===e.should_peek||e.should_peek,joining:e.joining||!1,replyingToEvent:null,isEditingSettings:!1};e.replyingToEvent&&e.replyingToEvent.getRoomId()===e.room_id&&(t.replyingToEvent=e.replyingToEvent),this.state.forwardingEvent&&c.a.dispatch({action:"send_event",room_id:t.roomId,event:this.state.forwardingEvent}),this.setState(t),e.auto_join&&this.joinRoom(e)}else if(e.room_alias){let t=Object(p.a)(e.room_alias);if(!t){this.setState({roomId:null,initialEventId:null,initialEventPixelOffset:null,isInitialEventHighlighted:null,roomAlias:e.room_alias,roomLoading:!0,roomLoadError:null});try{const n=await l.a.get().getRoomIdForAlias(e.room_alias);Object(p.b)(e.room_alias,n.room_id),t=n.room_id}catch(t){return console.error("RVS failed to get room id for alias: ",t),void c.a.dispatch({action:"view_room_error",room_id:null,room_alias:e.room_alias,err:t})}}c.a.dispatch({action:"view_room",room_id:t,event_id:e.event_id,highlighted:e.highlighted,room_alias:e.room_alias,auto_join:e.auto_join,oob_data:e.oob_data})}}viewRoomError(e){this.setState({roomId:e.room_id,roomAlias:e.room_alias,roomLoading:!1,roomLoadError:e.err})}async joinRoom(e){const t=g.a.getTimestamp();this.setState({joining:!0});const n=l.a.get(),o=this.state.roomAlias||this.state.roomId;try{await Object(m.c)(()=>n.joinRoom(o,e.opts),5,e=>504===e.httpStatus),g.a.instance.trackRoomJoin(t,this.state.roomId,e._type),c.a.dispatch({action:"join_room_ready"})}catch(e){c.a.dispatch({action:"join_room_error",err:e});let t=e.message?e.message:JSON.stringify(e);if(console.log("Failed to join room:",t),"ConnectionError"===e.name)t=Object(h.a)("There was an error joining the room");else if("M_INCOMPATIBLE_ROOM_VERSION"===e.errcode)t=a.a.createElement("div",null,Object(h.a)("Sorry, your homeserver is too old to participate in this room."),a.a.createElement("br",null),Object(h.a)("Please contact your homeserver administrator."));else if(404===e.httpStatus){const e=this.getInvitingUserId(this.state.roomId);e&&(t=e.endsWith(":"+l.a.get().getDomain())?Object(h.a)("The person who invited you already left the room."):Object(h.a)("The person who invited you already left the room, or their server is offline."))}const n=u.getComponent("dialogs.ErrorDialog");d.a.createTrackedDialog("Failed to join room","",n,{title:Object(h.a)("Failed to join room"),description:t})}}getInvitingUserId(e){const t=l.a.get(),n=t.getRoom(e);if(n&&"invite"===n.getMyMembership()){const e=n.getMember(t.getUserId()),o=e?e.events.member:null;return o&&o.getSender()}}joinRoomError(e){this.setState({joining:!1,joinError:e.err})}reset(){this.state=Object.assign({},f)}getRoomId(){return this.state.roomId}getInitialEventId(){return this.state.initialEventId}isInitialEventHighlighted(){return this.state.isInitialEventHighlighted}getRoomAlias(){return this.state.roomAlias}isRoomLoading(){return this.state.roomLoading}getRoomLoadError(){return this.state.roomLoadError}isJoining(){return this.state.joining}getJoinError(){return this.state.joinError}getForwardingEvent(){return this.state.forwardingEvent}getQuotingEvent(){return this.state.replyingToEvent}shouldPeek(){return this.state.shouldPeek}}let b=null;b||(b=new _),t.a=b},function(e,t,n){"use strict";function o(e){return e.slice(0,e.length)}function r(e,t){if(e.length===t.length){for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}return!0}function i(e,t){return e.length!==t.length||(!!t.some(t=>!e.includes(t))||!!e.some(e=>!t.includes(e)))}function a(e,t){return{added:t.filter(t=>!e.includes(t)),removed:e.filter(e=>!t.includes(e))}}function s(e,t){return e.filter(e=>t.includes(e))}function c(...e){return Array.from(e.reduce((e,t)=>(t.forEach(t=>e.add(t)),e),new Set))}n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"a",(function(){return l}));class l{constructor(e){this.a=e}get value(){return this.a}groupBy(e){const t=this.a.reduce((t,n)=>{const o=e(n);return t.has(o)||t.set(o,[]),t.get(o).push(n),t},new Map);return new u(t)}}class u{constructor(e){this.val=e}orderBy(e){const t=[];for(const n of e)this.val.has(n)&&t.push(...this.val.get(n));return new l(t)}}},function(e,t,n){"use strict";let o;n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),function(e){e.RoomMemberList="RoomMemberList",e.FilePanel="FilePanel",e.NotificationPanel="NotificationPanel",e.RoomMemberInfo="RoomMemberInfo",e.EncryptionPanel="EncryptionPanel",e.RoomSummary="RoomSummary",e.Widget="Widget",e.Room3pidMemberInfo="Room3pidMemberInfo",e.GroupMemberList="GroupMemberList",e.GroupRoomList="GroupRoomList",e.GroupRoomInfo="GroupRoomInfo",e.GroupMemberInfo="GroupMemberInfo"}(o||(o={}));const r=[o.RoomSummary,o.NotificationPanel,o.FilePanel,o.RoomMemberList,o.GroupMemberList,o.GroupRoomList]},function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"i",(function(){return w})),n.d(t,"h",(function(){return C})),n.d(t,"j",(function(){return x})),n.d(t,"g",(function(){return O}));var o=n(201),r=n.n(o),i=n(0),a=n(6),s=n(1),c=n(164),l=n(176);let u,d,h,p,m,g;!function(e){e.Fledgling="fledgling",e.InviteSent="invite_sent",e.WaitLocalMedia="wait_local_media",e.CreateOffer="create_offer",e.CreateAnswer="create_answer",e.Connecting="connecting",e.Connected="connected",e.Ringing="ringing",e.Ended="ended"}(u||(u={})),function(e){e.Voice="voice",e.Video="video"}(d||(d={})),function(e){e.Inbound="inbound",e.Outbound="outbound"}(h||(h={})),function(e){e.Local="local",e.Remote="remote"}(p||(p={})),function(e){e.Hangup="hangup",e.State="state",e.Error="error",e.Replaced="replaced",e.LocalHoldUnhold="local_hold_unhold",e.RemoteHoldUnhold="remote_hold_unhold",e.HoldUnhold="hold_unhold"}(m||(m={})),function(e){e.UserHangup="user_hangup",e.LocalOfferFailed="local_offer_failed",e.NoUserMedia="no_user_media",e.UnknownDevices="unknown_devices",e.SendInvite="send_invite",e.CreateAnswer="create_answer",e.SendAnswer="send_answer",e.SetRemoteDescription="set_remote_description",e.SetLocalDescription="set_local_description",e.AnsweredElsewhere="answered_elsewhere",e.IceFailed="ice_failed",e.InviteTimeout="invite_timeout",e.Replaced="replaced",e.SignallingFailed="signalling_timeout"}(g||(g={}));class f extends Error{constructor(e,t,n){super(t+": "+n),r()(this,"code",void 0),this.code=e}}function _(){return Date.now()+Object(l.a)(16)}class b extends a.EventEmitter{constructor(e){super(),r()(this,"roomId",void 0),r()(this,"type",void 0),r()(this,"callId",void 0),r()(this,"state",void 0),r()(this,"hangupParty",void 0),r()(this,"hangupReason",void 0),r()(this,"direction",void 0),r()(this,"ourPartyId",void 0),r()(this,"client",void 0),r()(this,"forceTURN",void 0),r()(this,"turnServers",void 0),r()(this,"candidateSendQueue",void 0),r()(this,"candidateSendTries",void 0),r()(this,"sentEndOfCandidates",void 0),r()(this,"peerConn",void 0),r()(this,"localVideoElement",void 0),r()(this,"remoteVideoElement",void 0),r()(this,"remoteAudioElement",void 0),r()(this,"screenSharingStream",void 0),r()(this,"remoteStream",void 0),r()(this,"localAVStream",void 0),r()(this,"inviteOrAnswerSent",void 0),r()(this,"waitForLocalAVStream",void 0),r()(this,"msg",void 0),r()(this,"config",void 0),r()(this,"successor",void 0),r()(this,"opponentMember",void 0),r()(this,"opponentVersion",void 0),r()(this,"opponentPartyId",void 0),r()(this,"opponentCaps",void 0),r()(this,"inviteTimeout",void 0),r()(this,"remoteOnHold",void 0),r()(this,"unholdingRemote",void 0),r()(this,"micMuted",void 0),r()(this,"vidMuted",void 0),r()(this,"makingOffer",void 0),r()(this,"ignoreOffer",void 0),r()(this,"gotUserMediaForInvite",async e=>{if(this.successor)return void this.successor.gotUserMediaForAnswer(e);if(this.callHasEnded())return;this.setState(u.CreateOffer),i.a.debug("gotUserMediaForInvite -> "+this.type);const t=this.getLocalVideoElement();if(t&&this.type===d.Video){t.autoplay=!0,this.screenSharingStream?(i.a.debug("Setting screen sharing stream to the local video element"),t.srcObject=this.screenSharingStream):t.srcObject=e,t.muted=!0;try{await t.play()}catch(e){i.a.info("Failed to play local video element",e)}}this.localAVStream=e,i.a.info("Got local AV stream with id "+this.localAVStream.id),v(e.getAudioTracks(),!0),this.peerConn=this.createPeerConnection();for(const t of e.getAudioTracks())i.a.info("Adding audio track with id "+t.id),this.peerConn.addTrack(t,e);for(const t of(this.screenSharingStream||e).getVideoTracks())i.a.info("Adding audio track with id "+t.id),this.peerConn.addTrack(t,e)}),r()(this,"gotUserMediaForAnswer",async e=>{if(this.callHasEnded())return;const t=this.getLocalVideoElement();if(t&&this.type===d.Video){t.autoplay=!0,t.srcObject=e,t.muted=!0;try{await t.play()}catch(e){i.a.info("Failed to play local video element",e)}}this.localAVStream=e,i.a.info("Got local AV stream with id "+this.localAVStream.id),v(e.getAudioTracks(),!0);for(const t of e.getTracks())this.peerConn.addTrack(t,e);let n;this.setState(u.CreateAnswer);try{n=await this.peerConn.createAnswer()}catch(e){return i.a.debug("Failed to create answer: ",e),void this.terminate(p.Local,g.CreateAnswer,!0)}try{await this.peerConn.setLocalDescription(n),this.setState(u.Connecting),await new Promise(e=>{setTimeout(e,200)}),this.sendAnswer()}catch(e){return i.a.debug("Error setting local description!",e),void this.terminate(p.Local,g.SetLocalDescription,!0)}}),r()(this,"gotLocalIceCandidate",e=>{if(e.candidate){if(i.a.debug("Got local ICE "+e.candidate.sdpMid+" candidate: "+e.candidate.candidate),this.callHasEnded())return;""===e.candidate.candidate&&this.sentEndOfCandidates||(this.queueCandidate(e.candidate),""===e.candidate.candidate&&(this.sentEndOfCandidates=!0))}}),r()(this,"onIceGatheringStateChange",e=>{if(i.a.debug("ice gathering state changed to "+this.peerConn.iceGatheringState),"complete"===this.peerConn.iceGatheringState&&!this.sentEndOfCandidates){const e={candidate:""};this.queueCandidate(e),this.sentEndOfCandidates=!0}}),r()(this,"gotLocalOffer",async e=>{if(i.a.debug("Created offer: ",e),this.callHasEnded())return void i.a.debug("Ignoring newly created offer on call ID "+this.callId+" because the call has ended");try{await this.peerConn.setLocalDescription(e)}catch(e){return i.a.debug("Error setting local description!",e),void this.terminate(p.Local,g.SetLocalDescription,!0)}if("gathering"===this.peerConn.iceGatheringState&&await new Promise(e=>{setTimeout(e,200)}),this.callHasEnded())return;const t=this.state===u.CreateOffer?c.a.CallInvite:c.a.CallNegotiate,n={lifetime:6e4};this.state===u.CreateOffer?n.offer=this.peerConn.localDescription:n.description=this.peerConn.localDescription,this.client._supportsCallTransfer&&(n.capabilities={"m.call.transferee":!0}),i.a.info(`Discarding ${this.candidateSendQueue.length} candidates that will be sent in offer`),this.candidateSendQueue=[];try{await this.sendVoipEvent(t,n),this.sendCandidateQueue(),this.state===u.CreateOffer&&(this.inviteOrAnswerSent=!0,this.setState(u.InviteSent),this.inviteTimeout=setTimeout(()=>{this.inviteTimeout=null,this.state===u.InviteSent&&this.hangup(g.InviteTimeout,!1)},6e4))}catch(e){this.client.cancelPendingEvent(e.event);let t=g.SignallingFailed,n="Signalling failed";this.state===u.CreateOffer&&(t=g.SendInvite,n="Failed to send invite"),"UnknownDeviceError"==e.name&&(t=g.UnknownDevices,n="Unknown devices present in the room"),this.emit(m.Error,new f(t,n,e)),this.terminate(p.Local,t,!1)}}),r()(this,"getLocalOfferFailed",e=>{i.a.error("Failed to get local offer",e),this.emit(m.Error,new f(g.LocalOfferFailed,"Failed to get local offer!",e)),this.terminate(p.Local,g.LocalOfferFailed,!1)}),r()(this,"getUserMediaFailed",e=>{this.successor?this.successor.getUserMediaFailed(e):(i.a.warn("Failed to get user media - ending call",e),this.emit(m.Error,new f(g.NoUserMedia,"Couldn't start capturing media! Is your microphone set up and does this app have permission?",e)),this.terminate(p.Local,g.NoUserMedia,!1))}),r()(this,"onIceConnectionStateChanged",()=>{this.callHasEnded()||(i.a.debug("ICE connection state changed to: "+this.peerConn.iceConnectionState),"connected"==this.peerConn.iceConnectionState?this.setState(u.Connected):"failed"==this.peerConn.iceConnectionState&&this.hangup(g.IceFailed,!1))}),r()(this,"onSignallingStateChanged",()=>{i.a.debug("call "+this.callId+": Signalling state changed to: "+this.peerConn.signalingState)}),r()(this,"onTrack",e=>{0!==e.streams.length?this.remoteStream&&e.streams[0].id!==this.remoteStream.id?i.a.warn(`Ignoring new stream ID ${e.streams[0].id}: we already have stream ID ${this.remoteStream.id}`):(this.remoteStream||i.a.info("Got remote stream with id "+e.streams[0].id),this.remoteStream=e.streams[0],i.a.debug(`Track id ${e.track.id} of kind ${e.track.kind} added`),"video"===e.track.kind?this.remoteVideoElement&&this.playRemoteVideo():this.remoteAudioElement&&this.playRemoteAudio()):i.a.warn(`Streamless ${e.track.kind} found: ignoring.`)}),r()(this,"onNegotiationNeeded",async()=>{if(i.a.info("Negotation is needed!"),this.state===u.CreateOffer||0!==this.opponentVersion){this.makingOffer=!0;try{const e=await this.peerConn.createOffer();await this.gotLocalOffer(e)}catch(e){return void this.getLocalOfferFailed(e)}finally{this.makingOffer=!1}}else i.a.info("Opponent does not support renegotiation: ignoring negotiationneeded event")}),r()(this,"onHangupReceived",e=>{i.a.debug("Hangup received"),this.partyIdMatches(e)||void 0===this.opponentPartyId||this.state===u.Ringing?this.terminate(p.Remote,e.reason||g.UserHangup,!0):i.a.info(`Ignoring message from party ID ${e.party_id}: our partner is ${this.opponentPartyId}`)}),r()(this,"onRejectReceived",e=>{i.a.debug("Reject received");[u.InviteSent,u.Ringing].includes(this.state)||this.state===u.Fledgling&&this.direction===h.Inbound?this.terminate(p.Remote,g.UserHangup,!0):i.a.debug(`Call is in state: ${this.state}: ignoring reject`)}),r()(this,"onAnsweredElsewhere",e=>{i.a.debug("Answered elsewhere"),this.terminate(p.Remote,g.AnsweredElsewhere,!0)}),this.roomId=e.roomId,this.client=e.client,this.type=null,this.forceTURN=e.forceTURN,this.ourPartyId=this.client.deviceId,this.turnServers=e.turnServers||[],0===this.turnServers.length&&this.client.isFallbackICEServerAllowed()&&this.turnServers.push({urls:["stun:turn.matrix.org"]});for(const e of this.turnServers)s.a(e,["urls"]);this.callId=_(),this.state=u.Fledgling,this.candidateSendQueue=[],this.candidateSendTries=0,this.sentEndOfCandidates=!1,this.inviteOrAnswerSent=!1,this.makingOffer=!1,this.remoteOnHold=!1,this.unholdingRemote=!1,this.micMuted=!1,this.vidMuted=!1}placeVoiceCall(){i.a.debug("placeVoiceCall"),this.checkForErrorListener(),this.placeCallWithConstraints(E(d.Voice)),this.type=d.Voice}placeVideoCall(e,t){i.a.debug("placeVideoCall"),this.checkForErrorListener(),this.localVideoElement=t,this.remoteVideoElement=e,this.placeCallWithConstraints(E(d.Video)),this.type=d.Video}async placeScreenSharingCall(e,t){i.a.debug("placeScreenSharingCall"),this.checkForErrorListener(),this.localVideoElement=t,this.remoteVideoElement=e;try{this.screenSharingStream=await navigator.mediaDevices.getDisplayMedia({audio:!1}),i.a.debug("Got screen stream, requesting audio stream...");const e=E(d.Voice);this.placeCallWithConstraints(e)}catch(e){this.emit(m.Error,new f(g.NoUserMedia,"Failed to get screen-sharing stream: ",e))}this.type=d.Video}getOpponentMember(){return this.opponentMember}opponentCanBeTransferred(){return Boolean(this.opponentCaps&&this.opponentCaps["m.call.transferee"])}getLocalVideoElement(){return this.localVideoElement}getRemoteVideoElement(){return this.remoteVideoElement}getRemoteAudioElement(){return this.remoteAudioElement}async setLocalVideoElement(e){if(this.localVideoElement=e,e&&this.localAVStream&&this.type===d.Video){e.autoplay=!0,e.srcObject=this.localAVStream,e.muted=!0;try{await e.play()}catch(e){i.a.info("Failed to play local video element",e)}}}setRemoteVideoElement(e){e!==this.remoteVideoElement&&(e.autoplay=!0,this.remoteAudioElement&&(e.muted=!0),this.remoteVideoElement=e,this.remoteStream&&this.playRemoteVideo())}async setRemoteAudioElement(e){e!==this.remoteAudioElement&&(this.remoteAudioElement=e,this.remoteStream&&this.playRemoteAudio())}async initWithInvite(e){this.msg=e.getContent(),this.direction=h.Inbound,this.peerConn=this.createPeerConnection();try{await this.peerConn.setRemoteDescription(this.msg.offer)}catch(e){return i.a.debug("Failed to set remote description",e),void this.terminate(p.Local,g.SetRemoteDescription,!1)}if(!this.remoteStream||0===this.remoteStream.getTracks().length)return i.a.error("No remote stream or no tracks after setting remote description!"),void this.terminate(p.Local,g.SetRemoteDescription,!1);this.type=this.remoteStream.getTracks().some(e=>"video"===e.kind)?d.Video:d.Voice,this.setState(u.Ringing),this.opponentVersion=this.msg.version,0!==this.opponentVersion&&(this.opponentPartyId=this.msg.party_id||null),this.opponentCaps=this.msg.capabilities||{},this.opponentMember=e.sender,e.getLocalAge()&&setTimeout(()=>{this.state==u.Ringing&&(i.a.debug("Call invite has expired. Hanging up."),this.hangupParty=p.Remote,this.setState(u.Ended),this.stopAllMedia(),"closed"!=this.peerConn.signalingState&&this.peerConn.close(),this.emit(m.Hangup))},this.msg.lifetime-e.getLocalAge())}initWithHangup(e){this.msg=e.getContent(),this.setState(u.Ended)}async answer(){if(!this.inviteOrAnswerSent)if(i.a.debug(`Answering call ${this.callId} of type ${this.type}`),this.localAVStream||this.waitForLocalAVStream)this.localAVStream?this.gotUserMediaForAnswer(this.localAVStream):this.waitForLocalAVStream&&this.setState(u.WaitLocalMedia);else{const e=E(this.type);i.a.log("Getting user media with constraints",e),this.setState(u.WaitLocalMedia),this.waitForLocalAVStream=!0;try{const t=await navigator.mediaDevices.getUserMedia(e);this.waitForLocalAVStream=!1,this.gotUserMediaForAnswer(t)}catch(e){return void this.getUserMediaFailed(e)}}}replacedBy(e){i.a.debug(this.callId+" being replaced by "+e.callId),this.state===u.WaitLocalMedia?(i.a.debug("Telling new call to wait for local media"),e.waitForLocalAVStream=!0):(this.state===u.CreateOffer||this.state===u.InviteSent)&&(i.a.debug("Handing local stream to new call"),e.gotUserMediaForAnswer(this.localAVStream),delete this.localAVStream),e.localVideoElement=this.localVideoElement,e.remoteVideoElement=this.remoteVideoElement,e.remoteAudioElement=this.remoteAudioElement,this.successor=e,this.emit(m.Replaced,e),this.hangup(g.Replaced,!0)}hangup(e,t){if(this.callHasEnded())return;i.a.debug("Ending call "+this.callId),this.terminate(p.Local,e,!t);g.UserHangup,this.sendVoipEvent(c.a.CallHangup,{})}reject(){if(this.state!==u.Ringing)throw Error("Call must be in 'ringing' state to reject!");if(this.opponentVersion<1)return i.a.info(`Opponent version is less than 1 (${this.opponentVersion}): sending hangup instead of reject`),void this.hangup(g.UserHangup,!0);i.a.debug("Rejecting call: "+this.callId),this.terminate(p.Local,g.UserHangup,!0),this.sendVoipEvent(c.a.CallReject,{})}setLocalVideoMuted(e){this.vidMuted=e,this.updateMuteStatus()}isLocalVideoMuted(){return this.vidMuted}setMicrophoneMuted(e){this.micMuted=e,this.updateMuteStatus()}isMicrophoneMuted(){return this.micMuted}isRemoteOnHold(){return this.remoteOnHold}setRemoteOnHold(e){if(this.isRemoteOnHold()!==e){this.remoteOnHold=e,e||(this.unholdingRemote=!0);for(const t of this.peerConn.getTransceivers())t.direction=e?"inactive":"sendrecv";this.updateMuteStatus(),e||this.playRemoteAudio(),this.emit(m.RemoteHoldUnhold,this.remoteOnHold)}}isLocalOnHold(){if(this.state!==u.Connected)return!1;if(this.unholdingRemote)return!1;let e=!0;for(const t of this.peerConn.getTransceivers()){["inactive","recvonly"].includes(t.currentDirection)||(e=!1)}return e}updateMuteStatus(){if(!this.localAVStream)return;const e=this.micMuted||this.remoteOnHold;v(this.localAVStream.getAudioTracks(),!e);const t=this.vidMuted||this.remoteOnHold;v(this.localAVStream.getVideoTracks(),!t),this.remoteOnHold?this.remoteAudioElement&&this.remoteAudioElement.srcObject===this.remoteStream?this.remoteAudioElement.muted=!0:this.remoteVideoElement&&this.remoteVideoElement.srcObject===this.remoteStream&&(this.remoteVideoElement.muted=!0):this.playRemoteAudio()}sendAnswer(){const e={answer:{sdp:this.peerConn.localDescription.sdp,type:this.peerConn.localDescription.type}};this.client._supportsCallTransfer&&(e.capabilities={"m.call.transferee":!0}),i.a.info(`Discarding ${this.candidateSendQueue.length} candidates that will be sent in answer`),this.candidateSendQueue=[],this.sendVoipEvent(c.a.CallAnswer,e).then(()=>{this.inviteOrAnswerSent=!0,this.sendCandidateQueue()}).catch(e=>{this.setState(u.Ringing),this.client.cancelPendingEvent(e.event);let t=g.SendAnswer,n="Failed to send answer";throw"UnknownDeviceError"==e.name&&(t=g.UnknownDevices,n="Unknown devices present in the room"),this.emit(m.Error,new f(t,n,e)),e})}onRemoteIceCandidatesReceived(e){if(this.callHasEnded())return;if(!this.partyIdMatches(e.getContent()))return void i.a.info(`Ignoring candidates from party ID ${e.getContent().party_id}: we have chosen party ID `+this.opponentPartyId);const t=e.getContent().candidates;if(t)for(const e of t){if(!(null!==e.sdpMid&&void 0!==e.sdpMid||null!==e.sdpMLineIndex&&void 0!==e.sdpMLineIndex))return void i.a.debug("Ignoring remote ICE candidate with no sdpMid or sdpMLineIndex");i.a.debug("Got remote ICE "+e.sdpMid+" candidate: "+e.candidate);try{this.peerConn.addIceCandidate(e)}catch(e){this.ignoreOffer||i.a.info("Failed to add remore ICE candidate",e)}}else i.a.info("Ignoring candidates event with no candidates!")}async onAnswerReceived(e){if(!this.callHasEnded())if(void 0===this.opponentPartyId){this.opponentVersion=e.getContent().version,0!==this.opponentVersion&&(this.opponentPartyId=e.getContent().party_id||null),this.opponentCaps=e.getContent().capabilities||{},this.opponentMember=e.sender,this.setState(u.Connecting);try{await this.peerConn.setRemoteDescription(e.getContent().answer)}catch(e){return i.a.debug("Failed to set remote description",e),void this.terminate(p.Local,g.SetRemoteDescription,!1)}if(null!==this.opponentPartyId)try{await this.sendVoipEvent(c.a.CallSelectAnswer,{selected_party_id:this.opponentPartyId})}catch(e){i.a.warn("Failed to send select_answer event",e)}}else i.a.info(`Ignoring answer from party ID ${e.getContent().party_id}: we already have an answer/reject from `+this.opponentPartyId)}async onSelectAnswerReceived(e){if(this.direction!==h.Inbound)return void i.a.warn("Got select_answer for an outbound call: ignoring");const t=e.getContent().selected_party_id;null!=t?t!==this.ourPartyId&&(i.a.info(`Got select_answer for party ID ${t}: we are party ID ${this.ourPartyId}.`),this.terminate(p.Remote,g.AnsweredElsewhere,!0)):i.a.warn("Got nonsensical select_answer with null/undefined selected_party_id: ignoring")}async onNegotiateReceived(e){const t=e.getContent().description;if(!t||!t.sdp||!t.type)return void i.a.info("Ignoring invalid m.call.negotiate event");const n=this.direction===h.Inbound,o="offer"===t.type&&(this.makingOffer||"stable"!=this.peerConn.signalingState);if(this.ignoreOffer=!n&&o,this.ignoreOffer)return void i.a.info("Ignoring colliding negotiate event because we're impolite");const r=this.isLocalOnHold();"answer"===t.type&&(this.unholdingRemote=!1);try{if(await this.peerConn.setRemoteDescription(t),"offer"===t.type){const e=await this.peerConn.createAnswer();await this.peerConn.setLocalDescription(e),this.sendVoipEvent(c.a.CallNegotiate,{description:this.peerConn.localDescription})}}catch(e){i.a.warn("Failed to complete negotiation",e)}const a=this.isLocalOnHold();r!==a&&(this.emit(m.LocalHoldUnhold,a),this.emit(m.HoldUnhold,a))}callHasEnded(){return this.state===u.Ended}async playRemoteAudio(){this.remoteVideoElement&&(this.remoteVideoElement.muted=!0),this.remoteAudioElement.muted=!1,this.remoteAudioElement.srcObject=this.remoteStream;try{y&&(i.a.info("Setting audio sink to "+y+", was "+this.remoteAudioElement.sinkId),await this.remoteAudioElement.setSinkId(y))}catch(e){i.a.warn("Couldn't set requested audio output device: using default",e)}try{await this.remoteAudioElement.play()}catch(e){i.a.error("Failed to play remote audio element",e)}}async playRemoteVideo(){this.remoteVideoElement.srcObject=this.remoteStream,i.a.info("playing remote video. stream active? "+this.remoteStream.active);try{await this.remoteVideoElement.play()}catch(e){i.a.info("Failed to play remote video element",e)}}setState(e){const t=this.state;this.state=e,this.emit(m.State,e,t)}sendVoipEvent(e,t){return this.client.sendEvent(this.roomId,e,Object.assign({},t,{version:1,call_id:this.callId,party_id:this.ourPartyId}))}queueCandidate(e){if(this.candidateSendQueue.push(e),this.state===u.Ringing||!this.inviteOrAnswerSent)return;const t=this.direction===h.Inbound?500:2e3;0===this.candidateSendTries&&setTimeout(()=>{this.sendCandidateQueue()},t)}async transfer(e,t){const n=await this.client.getProfileInfo(e),o=_(),r={replacement_id:_(),target_user:{id:e,display_name:n.display_name,avatar_url:n.avatar_url},create_call:o};return t&&(r.target_room=t),this.sendVoipEvent(c.a.CallReplaces,r)}async terminate(e,t,n){if(this.callHasEnded())return;this.inviteTimeout&&(clearTimeout(this.inviteTimeout),this.inviteTimeout=null);const o=this.getRemoteVideoElement(),r=this.getRemoteAudioElement(),a=this.getLocalVideoElement();if(o&&(o.pause(),o.srcObject=null),r){r.pause(),r.srcObject=null;try{await this.remoteAudioElement.setSinkId("")}catch(e){i.a.warn("Failed to set sink ID back to default")}}a&&(a.pause(),a.srcObject=null),this.hangupParty=e,this.hangupReason=t,this.setState(u.Ended),this.stopAllMedia(),this.peerConn&&"closed"!==this.peerConn.signalingState&&this.peerConn.close(),n&&this.emit(m.Hangup,this)}stopAllMedia(){if(i.a.debug(`stopAllMedia (stream=${this.localAVStream})`),this.localAVStream)for(const e of this.localAVStream.getTracks())e.stop();if(this.screenSharingStream)for(const e of this.screenSharingStream.getTracks())e.stop();if(this.remoteStream)for(const e of this.remoteStream.getTracks())e.stop()}checkForErrorListener(){if(0===this.listeners("error").length)throw new Error("You MUST attach an error listener using call.on('error', function() {})")}sendCandidateQueue(){if(0===this.candidateSendQueue.length)return;const e=this.candidateSendQueue;this.candidateSendQueue=[],++this.candidateSendTries;const t={candidates:e};i.a.debug("Attempting to send "+e.length+" candidates"),this.sendVoipEvent(c.a.CallCandidates,t).then(()=>{this.candidateSendTries=0,this.sendCandidateQueue()},t=>{for(let t=0;t<e.length;t++)this.candidateSendQueue.push(e[t]);if(this.candidateSendTries>5)return i.a.debug("Failed to send candidates on attempt "+this.candidateSendTries+". Giving up for now.",t),void(this.candidateSendTries=0);const n=500*Math.pow(2,this.candidateSendTries);++this.candidateSendTries,i.a.debug("Failed to send candidates. Retrying in "+n+"ms",t),setTimeout(()=>{this.sendCandidateQueue()},n)})}async placeCallWithConstraints(e){i.a.log("Getting user media with constraints",e),this.client._callEventHandler.calls.set(this.callId,this),this.setState(u.WaitLocalMedia),this.direction=h.Outbound,this.config=e;try{const t=await navigator.mediaDevices.getUserMedia(e);this.gotUserMediaForInvite(t)}catch(e){return void this.getUserMediaFailed(e)}}createPeerConnection(){const e=new window.RTCPeerConnection({iceTransportPolicy:this.forceTURN?"relay":void 0,iceServers:this.turnServers});return e.addEventListener("iceconnectionstatechange",this.onIceConnectionStateChanged),e.addEventListener("signalingstatechange",this.onSignallingStateChanged),e.addEventListener("icecandidate",this.gotLocalIceCandidate),e.addEventListener("icegatheringstatechange",this.onIceGatheringStateChange),e.addEventListener("track",this.onTrack),e.addEventListener("negotiationneeded",this.onNegotiationNeeded),e}partyIdMatches(e){return(e.party_id||null)===this.opponentPartyId}}function v(e,t){for(let n=0;n<e.length;n++)e[n].enabled=t}function E(e){const t=!!navigator.webkitGetUserMedia;switch(e){case d.Voice:return{audio:{deviceId:S?{ideal:S}:void 0},video:!1};case d.Video:return{audio:{deviceId:S?{ideal:S}:void 0},video:{deviceId:T?{ideal:T}:void 0,width:t?{exact:640}:{ideal:640},height:t?{exact:360}:{ideal:360}}}}}let y,S,T;function w(e){y=e}function C(e){S=e}function x(e){T=e}function O(e,t,n){if("undefined"==typeof window||"undefined"==typeof document)return null;try{if(!Boolean(window.RTCPeerConnection||window.RTCSessionDescription||window.RTCIceCandidate||navigator.mediaDevices))return i.a.error("WebRTC is not supported in this browser / environment"),null}catch(e){return i.a.error("Exception thrown when trying to access WebRTC",e),null}const o=!!n&&n.forceTURN,r={client:e,roomId:t,turnServers:e.getTurnServers(),forceTURN:e._forceTURN||o},a=new b(r);return e.reEmitter.reEmit(a,Object.values(m)),a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s}));var o=n(587);let r;!function(e){e.Invite="im.vector.fake.invite",e.Untagged="im.vector.fake.recent",e.Archived="im.vector.fake.archived",e.LowPriority="m.lowpriority",e.Favourite="m.favourite",e.DM="im.vector.fake.direct",e.ServerNotice="m.server_notice"}(r||(r={}));const i=[r.Invite,r.Favourite,r.DM,r.Untagged,r.LowPriority,r.ServerNotice,r.Archived];function a(e){return!Object(o.b)(r,e)}let s;!function(e){e.Timeline="TIMELINE",e.PossibleTagChange="POSSIBLE_TAG_CHANGE",e.ReadReceipt="READ_RECEIPT",e.NewRoom="NEW_ROOM",e.RoomRemoved="ROOM_REMOVED"}(s||(s={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"j",(function(){return j})),n.d(t,"i",(function(){return G})),n.d(t,"g",(function(){return q})),n.d(t,"h",(function(){return H})),n.d(t,"d",(function(){return V})),n.d(t,"b",(function(){return $})),n.d(t,"f",(function(){return Q})),n.d(t,"e",(function(){return X})),n.d(t,"c",(function(){return J}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(356),c=n.n(s),l=n(999),u=n(425),d=n(1004),h=n.n(d),p=n(1006),m=n.n(p),g=n(90),f=n.n(g),_=n(659),b=n.n(_),v=n(107),E=n.n(v),y=n(1008),S=n.n(y),T=n(428),w=n(88),C=n(594),x=n.n(C),O=n(86),k=n(108),R=n(289),A=n(238);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(u.a)(l);const N=/([\ud800-\udbff])([\udc00-\udfff])/,F=/([\u2100-\u2bff])/,M=new RegExp("|","g"),P=new RegExp("\\s","g"),L=new RegExp(`^(${b.a.source})+$`,"i"),U=/^#[0-9a-fA-F]{6}$/,B=["http","https","ftp","mailto","magnet"];function j(e){const t=Object(R.e)(e);return t&&t.shortcodes?`:${t.shortcodes[0]}:`:""}function G(e){e=e.slice(1,e.length-1);const t=R.d.get(e);return t?t.unicode:null}function q(e){const t=c()(e,K);return a.a.createElement("div",{dangerouslySetInnerHTML:{__html:t},dir:"auto"})}function H(e){const t=c()(e,K),n=document.createElement("div");return n.innerHTML=t,n.innerText}function V(e){try{const t=E.a.parse(e);return!!t.protocol&&B.includes(t.protocol.slice(0,-1))}catch(e){return!1}}const z={a:function(e,t){if(t.href){t.target="_blank";const e=Object(k.j)(t.href);(e!==t.href||t.href.match(u.a.ELEMENT_URL_PATTERN))&&(t.href=e,delete t.target)}return t.rel="noreferrer noopener",{tagName:e,attribs:t}},img:function(e,t){return t.src&&t.src.startsWith("mxc://")&&w.a.getValue("showImages")?(t.src=O.a.get().mxcUrlToHttp(t.src,t.width||800,t.height||600),{tagName:e,attribs:t}):{tagName:e,attribs:{}}},code:function(e,t){if(void 0!==t.class){const e=t.class.split(/\s/).filter((function(e){return e.startsWith("language-")&&!e.startsWith("language-_")}));t.class=e.join(" ")}return{tagName:e,attribs:t}},"*":function(e,t){delete t.style;const n={"data-mx-color":"color","data-mx-bg-color":"background-color"};let o="";return Object.keys(n).forEach(e=>{const r=n[e],i=t[e];i&&"string"==typeof i&&U.test(i)&&(o+=r+":"+i+";",delete t[e])}),o&&(t.style=o),{tagName:e,attribs:t}}},K={allowedTags:["font","del","h1","h2","h3","h4","h5","h6","blockquote","p","a","ul","ol","sup","sub","nl","li","b","i","u","strong","em","strike","code","hr","br","div","table","thead","caption","tbody","tr","th","td","pre","span","img"],allowedAttributes:{font:["color","data-mx-bg-color","data-mx-color","style"],span:["data-mx-maths","data-mx-bg-color","data-mx-color","data-mx-spoiler","style"],div:["data-mx-maths"],a:["href","name","target","rel"],img:["src","width","height","alt","title"],ol:["start"],code:["class"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:B,allowProtocolRelative:!1,transformTags:z,nestingLimit:50},W=D(D({},K),{},{transformTags:{code:z.code,"*":z["*"]}});class Y extends class{constructor(e,t){this.highlightClass=e,this.highlightLink=t}applyHighlights(e,t){let n,o=0,r=[];const i=t[0];for(;(n=e.toLowerCase().indexOf(i.toLowerCase(),o))>=0;){if(n>o){const i=e.substring(o,n);r=r.concat(this.applySubHighlights(i,t))}const a=n+i.length;r.push(this.processSnippet(e.substring(n,a),!0)),o=a}if(o!==e.length){const n=e.substring(o,void 0);r=r.concat(this.applySubHighlights(n,t))}return r}applySubHighlights(e,t){return t[1]?this.applyHighlights(e,t.slice(1)):[this.processSnippet(e,!1)]}}{processSnippet(e,t){if(!t)return e;let n=`<span class="${this.highlightClass}">${e}</span>`;return this.highlightLink&&(n=`<a href="${encodeURI(this.highlightLink)}">${n}</a>`),n}}function $(e,t,n={}){const o="org.matrix.custom.html"===e.format&&e.formatted_body;let r,i,s,l=!1,u=K;n.forComposerQuote&&(u=W);try{if(t&&t.length>0){const e=new Y("mx_EventTile_searchHighlight",n.highlightLink),o=t.map((function(e){return c()(e,u)}));u.textFilter=function(t){return e.applyHighlights(t,o).join("")}}let a="string"==typeof e.formatted_body?e.formatted_body:null;const h="string"==typeof e.body?e.body:"";if(n.stripReplyFallback&&a&&(a=A.a.stripHTMLReply(a)),r=n.stripReplyFallback?A.a.stripPlainReply(h):h,d=o?a:h,l=N.test(d)||F.test(d),o&&(s=!0,i=c()(a,u),w.a.getValue("feature_latex_maths"))){const e=x.a.load(i,{_useHtmlParser2:!0,decodeEntities:!1});e('div, span[data-mx-maths!=""]').replaceWith((function(t,n){return S.a.renderToString(T.AllHtmlEntities.decode(e(n).attr("data-mx-maths")),{throwOnError:!1,displayMode:"div"==n.name,output:"htmlAndMathml"})})),i=e.html()}}finally{delete u.textFilter}var d;const h=s?i:r;if(n.returnString)return h;let p=!1;if(!n.disableBigEmoji&&l){let t=void 0!==h?h.trim():"";t=t.replace(P,""),t=t.replace(M,"");const n=L.exec(t);p=n&&n[0]&&n[0].length===t.length&&(r===i||void 0===e.formatted_body||!e.formatted_body.includes("http:")&&!e.formatted_body.includes("https:"))}const m=f()({mx_EventTile_body:!0,mx_EventTile_bigEmoji:p,"markdown-body":o&&!p});return s?a.a.createElement("span",{key:"body",ref:n.ref,className:m,dangerouslySetInnerHTML:{__html:i},dir:"auto"}):a.a.createElement("span",{key:"body",ref:n.ref,className:m,dir:"auto"},r)}function Q(e,t=u.a.options){return h()(e,t)}function X(e,t=u.a.options){return c()(function(e,t=u.a.options){return m()(e,t)}(e,t),K)}function J(e){switch(e.nodeName){case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":case"PRE":case"BLOCKQUOTE":case"P":case"UL":case"OL":case"LI":case"HR":case"TABLE":case"THEAD":case"TBODY":case"TR":case"TH":case"TD":return!0;case"DIV":return!e.hasAttribute("data-mx-maths");default:return!1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(107),r=n(86),i=n(92),a=n(87),s=n(300),c=n(88),l=n(160),u=n(133),d=n(145),h=n(83),p=n(3);class m{static canUserModifyWidgets(e){if(!e)return console.warn("No room ID specified"),!1;const t=r.a.get();if(!t)return console.warn("User must be be logged in"),!1;const n=t.getRoom(e);if(!n)return console.warn(`Room ID ${e} is not recognised`),!1;const o=t.credentials.userId;return o?"join"!==n.getMyMembership()?(console.warn(`User ${o} is not in room ${e}`),!1):n.currentState.maySendStateEvent("im.vector.modular.widgets",o):(console.warn("Failed to get user ID"),!1)}static isScalarUrl(e){if(!e)return console.error("Scalar URL check failed. No URL specified"),!1;const t=o.parse(e);let n=i.a.get().integrations_widgets_urls;if(!n||0===n.length){const e=l.a.sharedInstance().getPrimaryManager();n=e?[e.apiUrl]:[]}for(let e=0;e<n.length;e++){const r=o.parse(n[e]);if(t&&r&&t.protocol===r.protocol&&t.host===r.host&&t.pathname.startsWith(r.pathname))return!0}return!1}static waitForUserWidget(e,t){return new Promise((n,o)=>{function i(n){return!(!n||!n.getContent())&&(t?void 0!==n.getContent()[e]:void 0===n.getContent()[e])}if(i(r.a.get().getAccountData("m.widgets")))return void n();function a(e){i(r.a.get().getAccountData("m.widgets"))&&(r.a.get().removeListener("accountData",a),clearTimeout(s),n())}const s=setTimeout(()=>{r.a.get().removeListener("accountData",a),o(new Error("Timed out waiting for widget ID "+e+" to appear"))},2e4);r.a.get().on("accountData",a)})}static waitForRoomWidget(e,t,n){return new Promise((o,i)=>{function a(t){const o=t.some(t=>t.getContent()&&t.getContent().id===e);return n?o:!o}const s=r.a.get().getRoom(t);if(a(s.currentState.getStateEvents("im.vector.modular.widgets")))return void o();function c(e){if(e.getRoomId()!==t)return;a(s.currentState.getStateEvents("im.vector.modular.widgets"))&&(r.a.get().removeListener("RoomState.events",c),clearTimeout(l),o())}const l=setTimeout(()=>{r.a.get().removeListener("RoomState.events",c),i(new Error("Timed out waiting for widget ID "+e+" to appear"))},2e4);r.a.get().on("RoomState.events",c)})}static setUserWidget(e,t,n,o,i){const s={type:t.preferred,url:n,name:o,data:i},c=r.a.get(),l=Object(d.a)(m.getUserWidgets());try{delete l[e]}catch(e){console.error("$widgetId is non-configurable")}const u=Boolean(n);return u&&(l[e]={content:s,sender:c.getUserId(),state_key:e,type:"m.widget",id:e}),c.setAccountData("m.widgets",l).then(()=>m.waitForUserWidget(e,u)).then(()=>{a.a.dispatch({action:"user_widget_updated"})})}static setRoomWidget(e,t,n,o,i,a){let c;const l=Boolean(o);c=l?{type:n.legacy,url:o,name:i,data:a}:{},s.a.setRoomWidgetEcho(e,t,c);return r.a.get().sendStateEvent(e,"im.vector.modular.widgets",c,t).then(()=>m.waitForRoomWidget(t,e,l)).finally(()=>{s.a.removeRoomWidgetEcho(e,t)})}static getRoomWidgets(e){const t=e.currentState.getStateEvents("im.vector.modular.widgets");return t?t.filter(e=>e.getContent().type&&e.getContent().url):[]}static getUserWidgets(){const e=r.a.get();if(!e)throw new Error("User not logged in");const t=e.getAccountData("m.widgets");return t&&t.getContent()?t.getContent():{}}static getUserWidgetsArray(){return Object.values(m.getUserWidgets())}static getStickerpickerWidgets(){return m.getUserWidgetsArray().filter(e=>e.content&&"m.stickerpicker"===e.content.type)}static getIntegrationManagerWidgets(){return m.getUserWidgetsArray().filter(e=>e.content&&"m.integration_manager"===e.content.type)}static getRoomWidgetsOfType(e,t){return(m.getRoomWidgets(e)||[]).filter(e=>{const n=e.getContent();return n.url&&t.matches(n.type)})}static removeIntegrationManagerWidgets(){const e=r.a.get();if(!e)throw new Error("User not logged in");const t=e.getAccountData("m.widgets");if(!t)return;const n=t.getContent()||{};return Object.entries(n).forEach(([e,t])=>{t.content&&"m.integration_manager"===t.content.type&&delete n[e]}),e.setAccountData("m.widgets",n)}static addIntegrationManagerWidget(e,t,n){return m.setUserWidget("integration_manager_"+(new Date).getTime(),u.a.INTEGRATION_MANAGER,t,"Integration Manager: "+e,{api_url:n})}static removeStickerpickerWidgets(){const e=r.a.get();if(!e)throw new Error("User not logged in");const t=e.getAccountData("m.widgets");if(!t)return;const n=t.getContent()||{};return Object.entries(n).forEach(([e,t])=>{t.content&&"m.stickerpicker"===t.content.type&&delete n[e]}),e.setAccountData("m.widgets",n)}static makeAppConfig(e,t,n,o,r){if(!n)throw new Error("Widgets must be created by someone - provide a senderUserId");return t.creatorUserId=n,t.id=e,t.roomId=o,t.eventId=r,t.name=t.name||t.type,t}static getCapWhitelistForAppTypeInRoomId(e,t){const n=c.a.getValue("enableWidgetScreenshots",t)?[p.MatrixCapabilities.Screenshots]:[];return u.a.JITSI.matches(e)&&n.push(p.MatrixCapabilities.AlwaysOnScreen),n}static getLocalJitsiWrapperUrl(e={}){const t=["conferenceDomain=$domain","conferenceId=$conferenceId","isAudioOnly=$isAudioOnly","displayName=$matrix_display_name","avatarUrl=$matrix_avatar_url","userId=$matrix_user_id","roomId=$matrix_room_id","theme=$theme"];e.auth&&t.push("auth="+e.auth);const n=t.join("&");let o=window.location.href;"https:"===window.location.protocol||e.forLocalRender||(o="https://app.element.io/");return new URL("jitsi.html#"+n,o).href}static getWidgetName(e){var t;return(null==e||null===(t=e.name)||void 0===t?void 0:t.trim())||Object(h.a)("Unknown App")}static getWidgetDataTitle(e){var t,n;return(null==e||null===(t=e.data)||void 0===t||null===(n=t.title)||void 0===n?void 0:n.trim())||""}static editWidget(e,t){c.a.getValue("feature_many_integration_managers")?l.a.sharedInstance().openAll(e,"type_"+t.type,t.id):l.a.sharedInstance().getPrimaryManager().open(e,"type_"+t.type,t.id)}static isManagedByManager(e){if(m.isScalarUrl(e.url)){const e=l.a.sharedInstance();if(e.hasManager()){const t=e.getPrimaryManager();return m.isScalarUrl(t.apiUrl)}}return!1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(86),r=n(105);n(263);class i{constructor(e){this.matrixClient=e,this.roomToUser=null,this._hasSentOutPatchDirectAccountDataPatch=!1,this._onAccountData=this._onAccountData.bind(this);const t=e.getAccountData("m.direct");this.mDirectEvent=t?t.getContent():{},this.userToRooms=null}static makeShared(){return i._sharedInstance=new i(o.a.get()),i._sharedInstance}static shared(){return i._sharedInstance}start(){this._populateRoomToUser(),this.matrixClient.on("accountData",this._onAccountData)}stop(){this.matrixClient.removeListener("accountData",this._onAccountData)}_onAccountData(e){"m.direct"==e.getType()&&(this.mDirectEvent=this.matrixClient.getAccountData("m.direct").getContent()||{},this.userToRooms=null,this.roomToUser=null)}_patchUpSelfDMs(e){const t=this.matrixClient.getUserId(),n=e[t];if(n){const o=n.map(e=>{const n=this.matrixClient.getRoom(e);if(n){const o=n.guessDMUserId();if(o&&o!==t)return{userId:o,roomId:e}}}).filter(e=>!!e);return!!o.length&&(e[t]=n.filter(e=>!o.some(t=>t.roomId===e)),o.forEach(({userId:t,roomId:n})=>{const o=e[t];o?(o.push(n),e[t]=Object(r.uniq)(o)):e[t]=[n]}),!0)}}getDMRoomsForUserId(e){return this._getUserToRooms()[e]||[]}getDMRoomForIdentifiers(e){let t=this.getDMRoomsForUserId(e[0]);for(let n=1;n<e.length;n++){const o=this.getDMRoomsForUserId(e[n]);t=t.filter(e=>o.includes(e))}return t.map(e=>o.a.get().getRoom(e)).filter(e=>e&&"join"===e.getMyMembership())[0]}getUserIdForRoomId(e){if(null==this.roomToUser&&this._populateRoomToUser(),void 0===this.roomToUser[e]){const t=this.matrixClient.getRoom(e);if(t)return t.getDMInviter()}return this.roomToUser[e]}getUniqueRoomsWithIndividuals(){return this.roomToUser?Object.keys(this.roomToUser).map(e=>({userId:this.getUserIdForRoomId(e),room:this.matrixClient.getRoom(e)})).filter(e=>e.userId&&e.room&&2===e.room.getInvitedAndJoinedMemberCount()).reduce((e,t)=>(e[t.userId]=t.room)&&e,{}):{}}_getUserToRooms(){if(!this.userToRooms){const e=this.mDirectEvent,t=e[this.matrixClient.getUserId()];if(t&&t.length){const t=this._patchUpSelfDMs(e);console.warn("Invalid m.direct account data detected (self-chats that shouldn't be), patching it up."),t&&!this._hasSentOutPatchDirectAccountDataPatch&&(this._hasSentOutPatchDirectAccountDataPatch=!0,this.matrixClient.setAccountData("m.direct",e))}this.userToRooms=e}return this.userToRooms}_populateRoomToUser(){this.roomToUser={};for(const e of Object.keys(this._getUserToRooms()))for(const t of this.userToRooms[e])this.roomToUser[t]=e}}},function(e,t,n){"use strict";n.r(t),function(e,o){n.d(t,"OLM_ALGORITHM",(function(){return c})),n.d(t,"MEGOLM_ALGORITHM",(function(){return l})),n.d(t,"MEGOLM_BACKUP_ALGORITHM",(function(){return u})),n.d(t,"encryptMessageForDevice",(function(){return d})),n.d(t,"getExistingOlmSessions",(function(){return h})),n.d(t,"ensureOlmSessionsForDevices",(function(){return p})),n.d(t,"verifySignature",(function(){return g})),n.d(t,"pkSign",(function(){return f})),n.d(t,"pkVerify",(function(){return _})),n.d(t,"encodeBase64",(function(){return b})),n.d(t,"encodeUnpaddedBase64",(function(){return v})),n.d(t,"decodeBase64",(function(){return E}));var r=n(0),i=n(1),a=n(316),s=n.n(a);const c="m.olm.v1.curve25519-aes-sha2",l="m.megolm.v1.aes-sha2",u="m.megolm_backup.v1.curve25519-aes-sha2";async function d(e,t,n,o,a,s,c){const l=s.getIdentityKey(),u=await o.getSessionIdForDevice(l);if(null===u)return;r.a.log("Using sessionid "+u+" for device "+a+":"+s.deviceId);const d={sender:t,sender_device:n,keys:{ed25519:o.deviceEd25519Key},recipient:a,recipient_keys:{ed25519:s.getFingerprint()}};i.i(d,c),e[l]=await o.encryptMessage(l,u,JSON.stringify(d))}async function h(e,t,n){const o={},r={},i=[];for(const[t,a]of Object.entries(n))for(const n of a){const a=n.deviceId,s=n.getIdentityKey();i.push((async()=>{const i=await e.getSessionIdForDevice(s,!0);null===i?(o[t]=o[t]||[],o[t].push(n)):(r[t]=r[t]||{},r[t][a]={device:n,sessionId:i})})())}return await Promise.all(i),[o,r]}async function p(e,t,n,o,i,a){"number"==typeof o&&(a=i,i=o,o=!1);const s=[],c={},l={};for(const[t,i]of Object.entries(n)){c[t]={};for(const n of i){const i=n.deviceId,a=n.getIdentityKey();if(a===e.deviceCurve25519Key){r.a.info("Attempted to start session with ourself! Ignoring"),c[t][i]={device:n,sessionId:null};continue}e._sessionsInProgress[a]||(e._sessionsInProgress[a]=new Promise((t,n)=>{l[a]={resolve:(...n)=>{delete e._sessionsInProgress[a],t(...n)},reject:(...t)=>{delete e._sessionsInProgress[a],n(...t)}}}));const u=await e.getSessionIdForDevice(a,l[a]);null!==u&&l[a]&&(delete e._sessionsInProgress[a],l[a].resolve(),delete l[a]),(null===u||o)&&(o?r.a.info("Forcing new Olm session for "+t+":"+i):r.a.info("Making new Olm session for "+t+":"+i),s.push([t,i])),c[t][i]={device:n,sessionId:u}}}if(0===s.length)return c;let u;try{u=await t.claimOneTimeKeys(s,"signed_curve25519",i)}catch(e){for(const e of Object.values(l))e.resolve();throw r.a.log("failed to claim one-time keys",e,s),e}a&&"failures"in u&&a.push(...Object.keys(u.failures));const d=u.one_time_keys||{},h=[];for(const[t,i]of Object.entries(n)){const n=d[t]||{};for(let a=0;a<i.length;a++){const s=i[a],u=s.deviceId,d=s.getIdentityKey();if(d===e.deviceCurve25519Key)continue;if(c[t][u].sessionId&&!o)continue;const p=n[u]||{};let g=null;for(const e in p)0===e.indexOf("signed_curve25519:")&&(g=p[e]);if(g)h.push(m(e,g,t,s).then(e=>{l[d]&&l[d].resolve(e),c[t][u].sessionId=e},e=>{throw l[d]&&l[d].resolve(),e}));else{const e="No one-time keys (alg=signed_curve25519) for device "+t+":"+u;r.a.warn(e),l[d]&&l[d].resolve()}}}return await Promise.all(h),c}async function m(e,t,n,o){const i=o.deviceId;try{await g(e,t,n,i,o.getFingerprint())}catch(e){return r.a.error("Unable to verify signature on one-time key for device "+n+":"+i+":",e),null}let a;try{a=await e.createOutboundSession(o.getIdentityKey(),t.key)}catch(e){return r.a.error("Error starting olm session with device "+n+":"+i+": "+e),null}return r.a.log("Started new olm sessionid "+a+" for device "+n+":"+i),a}async function g(e,t,n,o,r){const i="ed25519:"+o,a=((t.signatures||{})[n]||{})[i];if(!a)throw Error("No signature");const c=Object.assign({},t);delete c.unsigned,delete c.signatures;const l=s.a.stringify(c);e.verifySignature(r,l,a)}function f(t,n,o,r){let i=!1;if(n instanceof Uint8Array){const t=new e.Olm.PkSigning;r=t.init_with_seed(n),n=t,i=!0}const a=t.signatures||{};delete t.signatures;const c=t.unsigned;t.unsigned&&delete t.unsigned;try{const e=a[o]||{};return a[o]=e,e["ed25519:"+r]=n.sign(s.a.stringify(t))}finally{t.signatures=a,c&&(t.unsigned=c),i&&n.free()}}function _(t,n,o){const r="ed25519:"+n;if(!(t.signatures&&t.signatures[o]&&t.signatures[o][r]))throw new Error("No signature");const i=t.signatures[o][r],a=new e.Olm.Utility,c=t.signatures;delete t.signatures;const l=t.unsigned;t.unsigned&&delete t.unsigned;try{a.ed25519_verify(n,s.a.stringify(t),i)}finally{t.signatures=c,l&&(t.unsigned=l),a.free()}}function b(e){return o.from(e).toString("base64")}function v(e){return b(e).replace(/=+$/g,"")}function E(e){return o.from(e,"base64")}}.call(this,n(5),n(31).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.closest=t.distance=t.patch=t.absolute=t.negate=t.isEqual=t.subtract=t.add=void 0;var o=i(n(329)),r=i(n(166));function i(e){return e&&e.__esModule?e:{default:e}}t.add=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},t.subtract=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},t.isEqual=function(e,t){return e.x===t.x&&e.y===t.y},t.negate=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},t.absolute=function(e){return{x:Math.abs(e.x),y:Math.abs(e.y)}},t.patch=function(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return n={},(0,r.default)(n,e,t),(0,r.default)(n,"x"===e?"y":"x",o),n};var a=t.distance=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))};t.closest=function(e,t){return Math.min.apply(Math,(0,o.default)(t.map((function(t){return a(e,t)}))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return p}));var o=n(83);function r(){return[Object(o.a)("Sun"),Object(o.a)("Mon"),Object(o.a)("Tue"),Object(o.a)("Wed"),Object(o.a)("Thu"),Object(o.a)("Fri"),Object(o.a)("Sat")]}function i(){return[Object(o.a)("Jan"),Object(o.a)("Feb"),Object(o.a)("Mar"),Object(o.a)("Apr"),Object(o.a)("May"),Object(o.a)("Jun"),Object(o.a)("Jul"),Object(o.a)("Aug"),Object(o.a)("Sep"),Object(o.a)("Oct"),Object(o.a)("Nov"),Object(o.a)("Dec")]}function a(e){return(e<10?"0":"")+e}function s(e,t=!1){let n=e.getHours()%12;const r=a(e.getMinutes()),i=e.getHours()>=12?Object(o.a)("PM"):Object(o.a)("AM");if(n=n||12,t){return`${n}:${r}:${a(e.getSeconds())}${i}`}return`${n}:${r}${i}`}function c(e,t=!1){const n=new Date,a=r(),s=i();return e.toDateString()===n.toDateString()?h(e,t):n.getTime()-e.getTime()<5184e5?Object(o.a)("%(weekDayName)s %(time)s",{weekDayName:a[e.getDay()],time:h(e,t)}):n.getFullYear()===e.getFullYear()?Object(o.a)("%(weekDayName)s, %(monthName)s %(day)s %(time)s",{weekDayName:a[e.getDay()],monthName:s[e.getMonth()],day:e.getDate(),time:h(e,t)}):u(e,t)}function l(e){const t=r(),n=i();return Object(o.a)("%(weekDayName)s, %(monthName)s %(day)s %(fullYear)s",{weekDayName:t[e.getDay()],monthName:n[e.getMonth()],day:e.getDate(),fullYear:e.getFullYear()})}function u(e,t=!1){const n=r(),a=i();return Object(o.a)("%(weekDayName)s, %(monthName)s %(day)s %(fullYear)s %(time)s",{weekDayName:n[e.getDay()],monthName:a[e.getMonth()],day:e.getDate(),fullYear:e.getFullYear(),time:d(e,t)})}function d(e,t=!1){return t?s(e,!0):a(e.getHours())+":"+a(e.getMinutes())+":"+a(e.getSeconds())}function h(e,t=!1){return t?s(e):a(e.getHours())+":"+a(e.getMinutes())}function p(e,t){return!(!t||!e)&&(Math.abs(e.getTime()-t.getTime())>864e5||e.getDay()!==t.getDay())}},function(e,t,n){var o=n(620),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(1);function r(e,t,n,r,i,a){if("string"!=typeof t||!t)return"";if(0!==t.indexOf("mxc://"))return a?t:"";let s=t.slice(6),c="/_matrix/media/r0/download/";const l={};n&&(l.width=Math.round(n)),r&&(l.height=Math.round(r)),i&&(l.method=i),o.t(l).length>0&&(c="/_matrix/media/r0/thumbnail/");const u=s.indexOf("#");let d="";return u>=0&&(d=s.substr(u),s=s.substr(0,u)),e+c+s+(0===o.t(l).length?"":"?"+o.e(l))+d}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return l}));var o=n(6),r=n(1),i=n(0);const a={NOT_SENT:"not_sent",ENCRYPTING:"encrypting",SENDING:"sending",QUEUED:"queued",SENT:"sent",CANCELLED:"cancelled"},s={};function c(e){return s[e]||(s[e]=e),s[e]}const l=function(e){["state_key","type","sender","room_id","membership"].forEach(t=>{e[t]&&(e[t]=c(e[t]))}),["membership","avatar_url","displayname"].forEach(t=>{e.content&&e.content[t]&&(e.content[t]=c(e.content[t]))}),["rel_type"].forEach(t=>{e.content&&e.content["m.relates_to"]&&e.content["m.relates_to"][t]&&(e.content["m.relates_to"][t]=c(e.content["m.relates_to"][t]))}),this.event=e||{},this.sender=null,this.target=null,this.status=null,this.error=null,this.forwardLooking=!0,this._pushActions=null,this._replacingEvent=null,this._localRedactionEvent=null,this._isCancelled=!1,this._clearEvent={},this._senderCurve25519Key=null,this._claimedEd25519Key=null,this._forwardingCurve25519KeyChain=[],this._untrusted=null,this._decryptionPromise=null,this._retryDecryption=!1,this.verificationRequest=null,this._txnId=null,this._localTimestamp=Date.now()-this.getAge()};r.o(l,o.EventEmitter),r.i(l.prototype,{getId:function(){return this.event.event_id},getSender:function(){return this.event.sender||this.event.user_id},getType:function(){return this._clearEvent.type||this.event.type},getWireType:function(){return this.event.type},getRoomId:function(){return this.event.room_id},getTs:function(){return this.event.origin_server_ts},getDate:function(){return this.event.origin_server_ts?new Date(this.event.origin_server_ts):null},getOriginalContent:function(){return this._localRedactionEvent?{}:this._clearEvent.content||this.event.content||{}},getContent:function(){return this._localRedactionEvent?{}:this._replacingEvent?this._replacingEvent.getContent()["m.new_content"]||{}:this.getOriginalContent()},getWireContent:function(){return this.event.content||{}},getPrevContent:function(){return this.getUnsigned().prev_content||this.event.prev_content||{}},getDirectionalContent:function(){return this.forwardLooking?this.getContent():this.getPrevContent()},getAge:function(){return this.getUnsigned().age||this.event.age},getLocalAge:function(){return Date.now()-this._localTimestamp},getStateKey:function(){return this.event.state_key},isState:function(){return void 0!==this.event.state_key},makeEncrypted:function(e,t,n,o){this._clearEvent={type:this.event.type,content:this.event.content},this.event.type=e,this.event.content=t,this._senderCurve25519Key=n,this._claimedEd25519Key=o},isBeingDecrypted:function(){return null!=this._decryptionPromise},isDecryptionFailure:function(){return this._clearEvent&&this._clearEvent.content&&"m.bad.encrypted"===this._clearEvent.content.msgtype},attemptDecryption:async function(e,t){if(!this.isEncrypted())throw new Error("Attempt to decrypt event which isn't encrypted");if(this._clearEvent&&this._clearEvent.content&&"m.bad.encrypted"!==this._clearEvent.content.msgtype)throw new Error("Attempt to decrypt event which has already been decrypted");return this._decryptionPromise?(i.a.log(`Event ${this.getId()} already being decrypted; queueing a retry`),this._retryDecryption=!0,this._decryptionPromise):(this._decryptionPromise=this._decryptionLoop(e,t),this._decryptionPromise)},cancelAndResendKeyRequest:function(e,t){const n=this.getWireContent();return e.requestRoomKey({algorithm:n.algorithm,room_id:this.getRoomId(),session_id:n.session_id,sender_key:n.sender_key},this.getKeyRequestRecipients(t),!0)},getKeyRequestRecipients:function(e){const t=this.getWireContent(),n=[{userId:e,deviceId:"*"}],o=this.getSender();return o!==e&&n.push({userId:o,deviceId:t.device_id}),n},_decryptionLoop:async function(e,t){for(await Promise.resolve();;){let n,o;this._retryDecryption=!1;try{e?(n=await e.decryptEvent(this),t&&i.a.info(`Decrypted event on retry (id=${this.getId()})`)):n=this._badEncryptedMessage("Encryption not enabled")}catch(e){if("DecryptionError"!==e.name){const n=t?"re":"";return i.a.error(`Error ${n}decrypting event (id=${this.getId()}): ${e.stack||e}`),this._decryptionPromise=null,void(this._retryDecryption=!1)}if(o=e,this._retryDecryption){i.a.log(`Got error decrypting event (id=${this.getId()}: `+e+"), but retrying");continue}i.a.warn(`Error decrypting event (id=${this.getId()}): ${e.detailedString}`),n=this._badEncryptedMessage(e.message)}return this._decryptionPromise=null,this._retryDecryption=!1,this._setClearData(n),this.setPushActions(null),void this.emit("Event.decrypted",this,o)}},_badEncryptedMessage:function(e){return{clearEvent:{type:"m.room.message",content:{msgtype:"m.bad.encrypted",body:"** Unable to decrypt: "+e+" **"}}}},_setClearData:function(e){this._clearEvent=e.clearEvent,this._senderCurve25519Key=e.senderCurve25519Key||null,this._claimedEd25519Key=e.claimedEd25519Key||null,this._forwardingCurve25519KeyChain=e.forwardingCurve25519KeyChain||[],this._untrusted=e.untrusted||!1},getClearContent:function(){const e=this._clearEvent;return e&&e.content?e.content:null},isEncrypted:function(){return!this.isState()&&"m.room.encrypted"===this.event.type},getSenderKey:function(){return this._senderCurve25519Key},getKeysClaimed:function(){return{ed25519:this._claimedEd25519Key}},getClaimedEd25519Key:function(){return this._claimedEd25519Key},getForwardingCurve25519KeyChain:function(){return this._forwardingCurve25519KeyChain},isKeySourceUntrusted:function(){return this._untrusted},getUnsigned:function(){return this.event.unsigned||{}},unmarkLocallyRedacted:function(){const e=this._localRedactionEvent;return this._localRedactionEvent=null,this.event.unsigned&&(this.event.unsigned.redacted_because=null),!!e},markLocallyRedacted:function(e){this._localRedactionEvent||(this.emit("Event.beforeRedaction",this,e),this._localRedactionEvent=e,this.event.unsigned||(this.event.unsigned={}),this.event.unsigned.redacted_because=e.event)},makeRedacted:function(e){if(!e.event)throw new Error("invalid redaction_event in makeRedacted");let t;for(t in this._localRedactionEvent=null,this.emit("Event.beforeRedaction",this,e),this._replacingEvent=null,this.event.unsigned||(this.event.unsigned={}),this.event.unsigned.redacted_because=e.event,this.event)this.event.hasOwnProperty(t)&&(u[t]||delete this.event[t]);const n=d[this.getType()]||{},o=this.getContent();for(t in o)o.hasOwnProperty(t)&&(n[t]||delete o[t])},isRedacted:function(){return Boolean(this.getUnsigned().redacted_because)},isRedaction:function(){return"m.room.redaction"===this.getType()},getPushActions:function(){return this._pushActions},setPushActions:function(e){this._pushActions=e},handleRemoteEcho:function(e){const t=this.getUnsigned(),n=this.getId();this.event=e,t.redacted_because&&(this.event.unsigned||(this.event.unsigned={}),this.event.unsigned.redacted_because=t.redacted_because),this.setStatus(null),this.getId()!==n&&this.emit("Event.localEventIdReplaced",this)},isSending(){return!!this.status},setStatus(e){this.status=e,this.emit("Event.status",this,e)},replaceLocalEventId(e){this.event.event_id=e,this.emit("Event.localEventIdReplaced",this)},isRelation(e){const t=this.getWireContent(),n=t&&t["m.relates_to"];return n&&n.rel_type&&n.event_id&&(e&&n.rel_type===e||!e)},getRelation(){return this.isRelation()?this.getWireContent()["m.relates_to"]:null},makeReplaced(e){this.isRedacted()&&e||this._replacingEvent!==e&&(this._replacingEvent=e,this.emit("Event.replaced",this))},getAssociatedStatus(){return this._replacingEvent?this._replacingEvent.status:this._localRedactionEvent?this._localRedactionEvent.status:this.status},getServerAggregatedRelation(e){const t=this.getUnsigned()["m.relations"];if(t)return t[e]},replacingEventId(){const e=this.getServerAggregatedRelation("m.replace");return e?e.event_id:this._replacingEvent?this._replacingEvent.getId():void 0},replacingEvent(){return this._replacingEvent},replacingEventDate(){const e=this.getServerAggregatedRelation("m.replace");if(e){const t=e.origin_server_ts;if(Number.isFinite(t))return new Date(t)}else if(this._replacingEvent)return this._replacingEvent.getDate()},localRedactionEvent(){return this._localRedactionEvent},getAssociatedId(){const e=this.getRelation();return e?e.event_id:this.isRedaction()?this.event.redacts:void 0},hasAssocation(){return!!this.getAssociatedId()},updateAssociatedId(e){const t=this.getRelation();t?t.event_id=e:this.isRedaction()&&(this.event.redacts=e)},flagCancelled(e=!0){this._isCancelled=e},isCancelled(){return this._isCancelled},toJSON(){const e={type:this.getType(),sender:this.getSender(),content:this.getContent(),event_id:this.getId(),origin_server_ts:this.getTs(),unsigned:this.getUnsigned(),room_id:this.getRoomId()};return this.isRedaction()&&(e.redacts=this.event.redacts),this.isEncrypted()?{decrypted:e,encrypted:this.event}:e},setVerificationRequest:function(e){this.verificationRequest=e},setTxnId(e){this._txnId=e},getTxnId(){return this._txnId}});const u=["event_id","type","room_id","user_id","sender","state_key","prev_state","content","unsigned","origin_server_ts"].reduce((function(e,t){return e[t]=1,e}),{}),d={"m.room.member":{membership:1},"m.room.create":{creator:1},"m.room.join_rules":{join_rule:1},"m.room.power_levels":{ban:1,events:1,events_default:1,kick:1,redact:1,state_default:1,users:1,users_default:1},"m.room.aliases":{aliases:1}}},function(e,t,n){"use strict";function o(e,t){return new Promise(n=>{setTimeout(n,e,t)})}async function r(e,t,n){const o=new Promise(o=>{const r=setTimeout(o,n,t);e.then(()=>{clearTimeout(r)})});return Promise.race([e,o])}function i(){let e,t;const n=new Promise((n,o)=>{e=n,t=o});return{resolve:e,reject:t,promise:n}}function a(e){return Promise.allSettled?Promise.allSettled(e):Promise.all(e.map(e=>e.then(e=>({status:"fulfilled",value:e})).catch(e=>({status:"rejected",reason:e}))))}async function s(e,t,n){let o;for(let r=0;r<t;r++)try{return await e()}catch(e){if(n&&!n(e))throw e;o=e}throw o}n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s}))},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,n=void 0,r=[],i=void 0,a=!1,s=function(e,n){return t(e,r[n])},c=function(){for(var t=arguments.length,o=Array(t),c=0;c<t;c++)o[c]=arguments[c];return a&&n===this&&o.length===r.length&&o.every(s)?i:(a=!0,n=this,r=o,i=e.apply(this,o))};return c};var o=function(e,t){return e===t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(82),r=n.n(o);class i{constructor(e,t){this.preferred=e,this.legacy=t}matches(e){return e===this.preferred||e===this.legacy}static fromString(e){const t=Object.values(i).filter(e=>e instanceof i).find(t=>t.matches(e));return t||new i(e,e)}}r()(i,"JITSI",new i("m.jitsi","jitsi")),r()(i,"STICKERPICKER",new i("m.stickerpicker","m.stickerpicker")),r()(i,"INTEGRATION_MANAGER",new i("m.integration_manager","m.integration_manager")),r()(i,"CUSTOM",new i("m.custom","m.custom"))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(82),r=n.n(o),i=n(6),a=n.n(i);class s extends a.a{constructor(...e){super(...e),r()(this,"toasts",[]),r()(this,"countSeen",0)}static sharedInstance(){return window.mxToastStore||(window.mxToastStore=new s),window.mxToastStore}reset(){this.toasts=[],this.countSeen=0}addOrReplaceToast(e){const t=this.toasts.findIndex(t=>t.key===e.key);if(-1===t){let t=this.toasts.length;for(;t>0&&this.toasts[t-1].priority<e.priority;)--t;this.toasts.splice(t,0,e)}else this.toasts[t]=e;this.emit("update")}dismissToast(e){this.toasts[0]&&this.toasts[0].key===e&&this.countSeen++;const t=this.toasts.length;this.toasts=this.toasts.filter(t=>t.key!==e),t!==this.toasts.length&&(0===this.toasts.length&&(this.countSeen=0),this.emit("update"))}getToasts(){return this.toasts}getCountSeen(){return this.countSeen}}},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(806)},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(683),c=n.n(s),l=n(84),u=n.n(l),d=n(90),h=n.n(d),p=n(98),m=n(91),g=n(86),f=n(83),_=n(97);class b extends a.a.Component{constructor(e){super(e),r()(this,"_onKeyDown",e=>{this.props.onKeyDown&&this.props.onKeyDown(e),this.props.hasCancel&&e.key===p.a.ESCAPE&&(e.stopPropagation(),e.preventDefault(),this.props.onFinished(!1))}),r()(this,"_onCancelClick",e=>{this.props.onFinished(!1)}),this._matrixClient=g.a.get()}render(){let e,t;return this.props.hasCancel&&(e=a.a.createElement(m.a,{onClick:this._onCancelClick,className:"mx_Dialog_cancelButton","aria-label":Object(f.a)("Close dialog")})),this.props.headerImage&&(t=a.a.createElement("img",{className:"mx_Dialog_titleImage",src:this.props.headerImage,alt:""})),a.a.createElement(_.a.Provider,{value:this._matrixClient},a.a.createElement(c.a,{returnFocus:!0,lockProps:{onKeyDown:this._onKeyDown,role:"dialog","aria-labelledby":"mx_BaseDialog_title","aria-describedby":this.props.contentId},className:h()({[this.props.className]:!0,mx_Dialog_fixedWidth:this.props.fixedWidth})},a.a.createElement("div",{className:h()("mx_Dialog_header",{mx_Dialog_headerWithButton:!!this.props.headerButton,mx_Dialog_headerWithCancel:!!e})},a.a.createElement("div",{className:h()("mx_Dialog_title",this.props.titleClass),id:"mx_BaseDialog_title"},t,this.props.title),this.props.headerButton,e),this.props.children))}}r()(b,"propTypes",{onFinished:u.a.func.isRequired,hasCancel:u.a.bool,onKeyDown:u.a.func,className:u.a.string,fixedWidth:u.a.bool,title:u.a.node.isRequired,headerImage:u.a.string,children:u.a.node,contentId:u.a.string,titleClass:u.a.oneOfType([u.a.string,u.a.object,u.a.arrayOf(u.a.string)])}),r()(b,"defaultProps",{hasCancel:!0,fixedWidth:!0})},function(e,t,n){(function(e){var o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++)n[t[o]]=Object.getOwnPropertyDescriptor(e,t[o]);return n},r=/%[sdj%]/g;t.format=function(e){if(!_(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var o=arguments,i=o.length,a=String(e).replace(r,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(e){return"[Circular]"}default:return e}})),c=o[n];n<i;c=o[++n])g(c)||!E(c)?a+=" "+c:a+=" "+s(c);return a},t.deprecate=function(n,o){if(void 0!==e&&!0===e.noDeprecation)return n;if(void 0===e)return function(){return t.deprecate(n,o).apply(this,arguments)};var r=!1;return function(){if(!r){if(e.throwDeprecation)throw new Error(o);e.traceDeprecation?console.trace(o):console.error(o),r=!0}return n.apply(this,arguments)}};var i,a={};function s(e,n){var o={seen:[],stylize:l};return arguments.length>=3&&(o.depth=arguments[2]),arguments.length>=4&&(o.colors=arguments[3]),m(n)?o.showHidden=n:n&&t._extend(o,n),b(o.showHidden)&&(o.showHidden=!1),b(o.depth)&&(o.depth=2),b(o.colors)&&(o.colors=!1),b(o.customInspect)&&(o.customInspect=!0),o.colors&&(o.stylize=c),u(o,e,o.depth)}function c(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function l(e,t){return e}function u(e,n,o){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(o,e);return _(r)||(r=u(e,r,o)),r}var i=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(_(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(f(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),S(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(T(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(v(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(y(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return d(n)}var l,E="",w=!1,C=["{","}"];(p(n)&&(w=!0,C=["[","]"]),T(n))&&(E=" [Function"+(n.name?": "+n.name:"")+"]");return v(n)&&(E=" "+RegExp.prototype.toString.call(n)),y(n)&&(E=" "+Date.prototype.toUTCString.call(n)),S(n)&&(E=" "+d(n)),0!==a.length||w&&0!=n.length?o<0?v(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=w?function(e,t,n,o,r){for(var i=[],a=0,s=t.length;a<s;++a)k(t,String(a))?i.push(h(e,t,n,o,String(a),!0)):i.push("");return r.forEach((function(r){r.match(/^\d+$/)||i.push(h(e,t,n,o,r,!0))})),i}(e,n,o,s,a):a.map((function(t){return h(e,n,o,s,t,w)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,E,C)):C[0]+E+C[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,o,r,i){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),k(o,r)||(a="["+r+"]"),s||(e.seen.indexOf(c.value)<0?(s=g(n)?u(e,c.value,null):u(e,c.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(i&&r.match(/^\d+$/))return s;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function g(e){return null===e}function f(e){return"number"==typeof e}function _(e){return"string"==typeof e}function b(e){return void 0===e}function v(e){return E(e)&&"[object RegExp]"===w(e)}function E(e){return"object"==typeof e&&null!==e}function y(e){return E(e)&&"[object Date]"===w(e)}function S(e){return E(e)&&("[object Error]"===w(e)||e instanceof Error)}function T(e){return"function"==typeof e}function w(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(b(i)&&(i=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var o=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,o,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=m,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=f,t.isString=_,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=v,t.isObject=E,t.isDate=y,t.isError=S,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(812);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),x[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",O(),t.format.apply(t,arguments))},t.inherits=n(813),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),o=n.length;o--;)e[n[o]]=t[n[o]];return e};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(R&&e[R]){var t;if("function"!=typeof(t=e[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,o=new Promise((function(e,o){t=e,n=o})),r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);r.push((function(e,o){e?n(e):t(o)}));try{e.apply(this,r)}catch(e){n(e)}return o}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),R&&Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,o(e))},t.promisify.custom=R,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],o=0;o<arguments.length;o++)n.push(arguments[o]);var r=n.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return r.apply(i,arguments)};t.apply(this,n).then((function(t){e.nextTick(a,null,t)}),(function(t){e.nextTick(A,t,a)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,o(t)),n}}).call(this,n(161))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(82),c=n.n(s),l=n(81),u=n.n(l),d=n(176);class h extends u.a.PureComponent{constructor(e){super(e),c()(this,"id",void 0),this.id="checkbox_"+Object(d.a)(10)}render(){const e=this.props,{children:t,className:o}=e,i=a()(e,["children","className"]);return u.a.createElement("span",{className:"mx_Checkbox "+o},u.a.createElement("input",r()({id:this.id},i,{type:"checkbox"})),u.a.createElement("label",{htmlFor:this.id},u.a.createElement("div",{className:"mx_Checkbox_background"},u.a.createElement("img",{src:n(824)})),u.a.createElement("div",null,this.props.children)))}}c()(h,"defaultProps",{className:""})},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(82),r=n.n(o),i=n(115),a=n(86);class s extends i.a{constructor(e,t={}){super(e,t),r()(this,"matrixClient",void 0),a.a.get()&&(this.matrixClient=a.a.get(),this.onReady())}async onReady(){}async onNotReady(){}async onDispatch(e){if(await this.onAction(e),"MatrixActions.sync"===e.action){if("PREPARED"!==e.prevState||"PREPARED"===e.state)return;this.matrixClient!==e.matrixClient&&(this.matrixClient&&await this.onNotReady(),this.matrixClient=e.matrixClient,await this.onReady())}else"on_client_not_viable"!==e.action&&"on_logged_out"!==e.action||this.matrixClient&&(await this.onNotReady(),this.matrixClient=null)}}},function(e,t,n){"use strict";(function(e){var o=n(6),r=n.n(o);let i=!0;class a extends r.a{constructor(e){super(),this._matrixClient=e,this._userGroups={},this._groupProfiles={},this._groupProfilesPromise={},this._usersPending={},this._usersInFlight={},this._debounceTimeoutID=null}groupSupport(){return i}invalidatePublicisedGroups(e){delete this._userGroups[e]}getPublicisedGroupsCached(e,t){return this._userGroups[t]?Promise.resolve(this._userGroups[t]):this._usersPending[t]?this._usersPending[t].prom:this._usersInFlight[t]?this._usersInFlight[t].prom:(this._usersPending[t]={},this._usersPending[t].prom=new Promise((e,n)=>{this._usersPending[t].resolve=e,this._usersPending[t].reject=n}).then(e=>(this._userGroups[t]=e,setTimeout(()=>{delete this._userGroups[t]},18e5),this._userGroups[t])).catch(e=>{if("M_UNRECOGNIZED"===e.errcode)return console.warn("Cannot display flair, server does not support groups"),void(i=!1);throw console.error("Could not get groups for user",t,e),e}).finally(()=>{delete this._usersInFlight[t]}),this._debounceTimeoutID&&clearTimeout(this._debounceTimeoutID),this._debounceTimeoutID=setTimeout(()=>{this._batchedGetPublicGroups(e)},200),this._usersPending[t].prom)}async _batchedGetPublicGroups(e){this._usersInFlight=this._usersPending,this._usersPending={};let t={users:[]};try{t=await e.getPublicisedGroups(Object.keys(this._usersInFlight))}catch(e){return void Object.keys(this._usersInFlight).forEach(t=>{this._usersInFlight[t]&&this._usersInFlight[t].reject(e)})}const n=t.users;Object.keys(this._usersInFlight).forEach(e=>{this._usersInFlight[e]&&this._usersInFlight[e].resolve(n[e]||[])})}getGroupProfileCachedFast(e,t){return e&&t?this._groupProfiles[t]?this._groupProfiles[t]:(this.getGroupProfileCached(e,t),null):null}async getGroupProfileCached(e,t){if(this._groupProfiles[t])return this._groupProfiles[t];if(this._groupProfilesPromise[t]){try{await this._groupProfilesPromise[t]}catch(e){return null}return this._groupProfiles[t]}let n;console.log("FlairStore: Request group profile of "+t),this._groupProfilesPromise[t]=e.getGroupProfile(t);try{n=await this._groupProfilesPromise[t]}catch(e){return console.log("FlairStore: Failed to get group profile for "+t,e),delete this._groupProfilesPromise[t],null}return this._groupProfiles[t]={groupId:t,avatarUrl:n.avatar_url,name:n.name,shortDescription:n.short_description},delete this._groupProfilesPromise[t],console.log("FlairStore: Emit updateGroupProfile for "+t),this.emit("updateGroupProfile"),setTimeout(()=>{this.refreshGroupProfile(e,t)},18e5),this._groupProfiles[t]}refreshGroupProfile(e,t){return delete this._groupProfiles[t],this.getGroupProfileCached(e,t)}}void 0===e.singletonFlairStore&&(e.singletonFlairStore=new a),t.a=e.singletonFlairStore}).call(this,n(5))},function(e,t,n){var o=n(574);function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return w}));var o=n(82),r=n.n(o),i=n(88),a=n(120),s=n(237),c=n(87),l=n(588),u=n(335),d=n(1620),h=n(116),p=n(1616),m=n(192),g=n(1),f=n(801),_=n(1285),b=n(139),v=n(691),E=n(173),y=n(803);const S="lists_update";class T extends b.a{constructor(){super(c.a),r()(this,"initialListsGenerated",!1),r()(this,"algorithm",new p.a),r()(this,"filterConditions",[]),r()(this,"tagWatcher",new d.a(this)),r()(this,"updateFn",new _.a(()=>{for(const e of Object.keys(this.unfilteredLists))E.a.instance.getListState(e).setRooms(this.unfilteredLists[e]);this.emit(S)})),r()(this,"watchedSettings",["feature_custom_tags","advancedRoomListLogging"]),r()(this,"onAlgorithmListUpdated",()=>{i.a.getValue("advancedRoomListLogging")&&console.log("Underlying algorithm has triggered a list update - marking"),this.updateFn.mark()}),r()(this,"onAlgorithmFilterUpdated",()=>{this.updateFn.trigger()}),this.checkLoggingEnabled();for(const e of this.watchedSettings)i.a.monitorSetting(e,null);h.a.addListener(()=>this.handleRVSUpdate({})),this.algorithm.on(p.b,this.onAlgorithmListUpdated),this.algorithm.on(u.a,this.onAlgorithmFilterUpdated)}get unfilteredLists(){return this.algorithm?this.algorithm.getUnfilteredRooms():{}}get orderedLists(){return this.algorithm?this.algorithm.getOrderedRooms():{}}get matrixClient(){return super.matrixClient}async resetStore(){await this.reset(),this.tagWatcher=new d.a(this),this.filterConditions=[],this.initialListsGenerated=!1,this.algorithm.off(p.b,this.onAlgorithmListUpdated),this.algorithm.off(u.a,this.onAlgorithmListUpdated),this.algorithm=new p.a,this.algorithm.on(p.b,this.onAlgorithmListUpdated),this.algorithm.on(u.a,this.onAlgorithmListUpdated),await this.reset(null,!0)}async makeReady(e){e&&(super.matrixClient=e),this.checkLoggingEnabled(),console.log("Regenerating room lists: Startup"),await this.readAndCacheSettingsFromStore(),await this.regenerateAllLists({trigger:!1}),await this.handleRVSUpdate({trigger:!1}),this.updateFn.mark(),this.updateFn.trigger()}checkLoggingEnabled(){i.a.getValue("advancedRoomListLogging")&&console.warn("Advanced room list logging is enabled")}async readAndCacheSettingsFromStore(){const e=i.a.getValue("feature_custom_tags");await this.updateState({tagsEnabled:e}),await this.updateAlgorithmInstances()}async handleRVSUpdate({trigger:e=!0}){if(!this.matrixClient)return;const t=h.a.getRoomId();if(!t&&this.algorithm.stickyRoom)await this.algorithm.setStickyRoom(null);else if(t){const e=this.matrixClient.getRoom(t);e?e!==this.algorithm.stickyRoom&&(i.a.getValue("advancedRoomListLogging")&&console.log("Changing sticky room to "+t),await this.algorithm.setStickyRoom(e)):(console.warn(t+" is current in RVS but missing from client - clearing sticky room"),await this.algorithm.setStickyRoom(null))}e&&this.updateFn.trigger()}async onReady(){await this.makeReady()}async onNotReady(){await this.resetStore()}async onAction(t){this.matrixClient&&this.initialListsGenerated&&(T.TEST_MODE?await this.onDispatchAsync(t):e(()=>this.onDispatchAsync(t)))}async onDispatchAsync(e){if(this.matrixClient&&this.initialListsGenerated){if("setting_updated"===e.action&&this.watchedSettings.includes(e.settingName)){if("advancedRoomListLogging"===e.settingName){const e=i.a.getValue("advancedRoomListLogging");return void console.warn("Advanced room list logging is enabled? "+e)}console.log("Regenerating room lists: Settings changed"),await this.readAndCacheSettingsFromStore(),await this.regenerateAllLists({trigger:!1}),this.updateFn.trigger()}if(!this.algorithm)throw new Error("Room list store has no algorithm to process dispatcher update with");if("MatrixActions.Room.receipt"===e.action){if(Object(l.a)(e.event,this.matrixClient)){const t=e.room;return t?(i.a.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Got own read receipt in "+t.roomId),await this.handleRoomUpdate(t,a.c.ReadReceipt),void this.updateFn.trigger()):void console.warn("Own read receipt was in unknown room "+t.roomId)}}else if("MatrixActions.Room.tags"===e.action){const t=e;i.a.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Got tag change in "+t.room.roomId),await this.handleRoomUpdate(t.room,a.c.PossibleTagChange),this.updateFn.trigger()}else if("MatrixActions.Room.timeline"===e.action){const t=e;if(!t.isLiveEvent||!e.isLiveUnfilteredRoomTimelineEvent)return;const n=t.event.getRoomId(),o=this.matrixClient.getRoom(n),r=async e=>{if(i.a.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Live timeline event "+t.event.getId()+" in "+e.roomId),"m.room.tombstone"===t.event.getType()&&""===t.event.getStateKey()){i.a.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Got tombstone event - trying to remove now-dead room");if(this.matrixClient.getRoom(t.event.getContent().replacement_room))return}await this.handleRoomUpdate(e,a.c.Timeline),this.updateFn.trigger()};if(!o)return console.warn(`Live timeline event ${t.event.getId()} received without associated room`),console.warn("Queuing failed room update for retry as a result."),void setTimeout(async()=>{const e=this.matrixClient.getRoom(n);await r(e)},100);await r(o)}else if("MatrixActions.Event.decrypted"===e.action){const t=e,n=t.event.getRoomId(),o=this.matrixClient.getRoom(n);if(!o)return void console.warn(`Event ${t.event.getId()} was decrypted in an unknown room ${n}`);i.a.getValue("advancedRoomListLogging")&&console.log(`[RoomListDebug] Decrypted timeline event ${t.event.getId()} in ${n}`),await this.handleRoomUpdate(o,a.c.Timeline),this.updateFn.trigger()}else if("MatrixActions.accountData"===e.action&&"m.direct"===e.event_type){const t=e;i.a.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Received updated DM map");const n=t.event.getContent();for(const e of Object.keys(n)){const t=n[e];for(const e of t){const t=this.matrixClient.getRoom(e);t?await this.handleRoomUpdate(t,a.c.PossibleTagChange):console.warn(e+" was found in DMs but the room is not in the store")}}this.updateFn.trigger()}else if("MatrixActions.Room.myMembership"===e.action){const t=e,n=Object(m.b)(t.oldMembership),o=Object(m.b)(t.membership);if(n!==m.a.Join&&o===m.a.Join){i.a.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Handling new room "+t.room.roomId);const e=t.room.currentState.getStateEvents("m.room.create","");if(e&&e.getContent().predecessor){i.a.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Room has a predecessor");const t=this.matrixClient.getRoom(e.getContent().predecessor.room_id);if(t){this.algorithm.stickyRoom===t&&(i.a.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Clearing sticky room due to room upgrade"),await this.algorithm.setStickyRoom(null)),i.a.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Removing previous room from room list"),await this.algorithm.handleRoomUpdate(t,a.c.RoomRemoved)}}return i.a.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Adding new room to room list"),await this.handleRoomUpdate(t.room,a.c.NewRoom),void this.updateFn.trigger()}if(n!==m.a.Invite&&o===m.a.Invite)return i.a.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Handling invite to "+t.room.roomId),await this.handleRoomUpdate(t.room,a.c.NewRoom),void this.updateFn.trigger();if(n!==o)return i.a.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Handling membership change in "+t.room.roomId),await this.handleRoomUpdate(t.room,a.c.PossibleTagChange),void this.updateFn.trigger()}}}async handleRoomUpdate(e,t){if(!y.a.instance.isRoomVisible(e))return;await this.algorithm.handleRoomUpdate(e,t)&&(i.a.getValue("advancedRoomListLogging")&&console.log(`[DEBUG] Room "${e.name}" (${e.roomId}) triggered by ${t} requires list update`),this.updateFn.mark())}async setTagSorting(e,t){await this.setAndPersistTagSorting(e,t),this.updateFn.trigger()}async setAndPersistTagSorting(e,t){await this.algorithm.setTagSorting(e,t),localStorage.setItem("mx_tagSort_"+e,t)}getTagSorting(e){return this.algorithm.getTagSorting(e)}getStoredTagSorting(e){return localStorage.getItem("mx_tagSort_"+e)}calculateTagSorting(e){const t=e===a.a.Invite||e===a.a.DM?s.b.Recent:s.b.Alphabetic,n=i.a.getValue("RoomList.orderAlphabetically",null,!0),o=this.getTagSorting(e),r=this.getStoredTagSorting(e);let c=t;return r?c=r:Object(g.r)(n)?o&&(c=o):c=n?s.b.Alphabetic:s.b.Recent,c}async setListOrder(e,t){await this.setAndPersistListOrder(e,t),this.updateFn.trigger()}async setAndPersistListOrder(e,t){await this.algorithm.setListOrdering(e,t),localStorage.setItem("mx_listOrder_"+e,t)}getListOrder(e){return this.algorithm.getListOrdering(e)}getStoredListOrder(e){return localStorage.getItem("mx_listOrder_"+e)}calculateListOrder(e){const t=s.a.Natural,n=i.a.getValue("RoomList.orderByImportance",null,!0),o=this.getListOrder(e),r=this.getStoredListOrder(e);let a=t;return r?a=r:Object(g.r)(n)?o&&(a=o):a=n?s.a.Importance:s.a.Natural,a}async updateAlgorithmInstances(){this.updateFn.mark();for(const e of Object.keys(this.orderedLists)){const t=this.getTagSorting(e),n=this.getListOrder(e),o=this.calculateTagSorting(e),r=this.calculateListOrder(e);o!==t&&await this.setAndPersistTagSorting(e,o),r!==n&&await this.setAndPersistListOrder(e,r)}}async regenerateAllLists({trigger:e=!0}){console.warn("Regenerating all room lists");const t=this.matrixClient.getVisibleRooms().filter(e=>y.a.instance.isRoomVisible(e)),n=new Set;if(this.state.tagsEnabled)for(const e of t){if(!e.tags)continue;Object.keys(e.tags).filter(e=>Object(a.d)(e)).forEach(e=>n.add(e))}const o={},r={},i=[...a.b,...Array.from(n)];for(const e of i)o[e]=this.calculateTagSorting(e),r[e]=this.calculateListOrder(e),f.a.instance.ensureLayoutExists(e);await this.algorithm.populateTags(o,r),await this.algorithm.setKnownRooms(t),this.initialListsGenerated=!0,e&&this.updateFn.trigger()}addFilter(e){i.a.getValue("advancedRoomListLogging")&&console.log("Adding filter condition:",e),this.filterConditions.push(e),this.algorithm&&this.algorithm.addFilterCondition(e),this.updateFn.trigger()}removeFilter(e){i.a.getValue("advancedRoomListLogging")&&console.log("Removing filter condition:",e);const t=this.filterConditions.indexOf(e);t>=0&&(this.filterConditions.splice(t,1),this.algorithm&&this.algorithm.removeFilterCondition(e)),this.updateFn.trigger()}getFirstNameFilterCondition(){for(const e of this.filterConditions)if(e instanceof v.a)return e;return null}getTagsForRoom(e){const t=this.algorithm.getTagsForRoom(e);return t||[a.a.Untagged]}}r()(T,"TEST_MODE",!1);class w{static get instance(){return w.internalInstance||(w.internalInstance=new T),w.internalInstance}}r()(w,"internalInstance",void 0),window.mxRoomListStore=w.instance}).call(this,n(149).setImmediate)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(85),u=n(83);class d extends a.a.Component{render(){const e=l.getComponent("views.dialogs.BaseDialog");return a.a.createElement(e,{className:"mx_ErrorDialog",onFinished:this.props.onFinished,title:this.props.title||Object(u.a)("Error"),headerImage:this.props.headerImage,contentId:"mx_Dialog_content"},a.a.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},this.props.description||Object(u.a)("An error has occurred.")),a.a.createElement("div",{className:"mx_Dialog_buttons"},a.a.createElement("button",{className:"mx_Dialog_primary",onClick:this.props.onFinished,autoFocus:this.props.focus},this.props.button||Object(u.a)("OK"))))}}r()(d,"propTypes",{title:c.a.string,description:c.a.oneOfType([c.a.element,c.a.string]),button:c.a.string,focus:c.a.bool,onFinished:c.a.func.isRequired,headerImage:c.a.string}),r()(d,"defaultProps",{focus:!0,title:null,description:null,button:null})},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return l}));var o=n(117);function r(e,t){const n=new Map(Object.entries(e));for(const e of t)n.delete(e);return Array.from(n.entries()).reduce((e,[t,n])=>(e[t]=n,e),{})}function i(e,t){const n=Object.keys(e),i=Object(o.b)(n,t);return 0===i.removed.length?a(e):r(e,i.removed)}function a(e,t){const n={};for(const[o,r]of Object.entries(e))n[o]=r,t&&(n[o]=t(o,r));return n}function s(e,t){const n=Object.keys(e),r=Object.keys(t);if(Object(o.d)(n,r))return!0;return Object(o.g)(n,r).some(n=>e[n]!==t[n])}function c(e,t){const n=function(e,t){const n=Object.keys(e),r=Object.keys(t),i=Object(o.b)(n,r);return{changed:Object(o.g)(n,r).filter(n=>e[n]!==t[n]),added:i.added,removed:i.removed}}(e,t);return Object(o.f)(n.removed,n.added,n.changed)}function l(e){return JSON.parse(JSON.stringify(e))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"b",(function(){return l}));var o=n(83);function r(e){return e<1e3?e.toString():e<1e4?(e/1e3).toFixed(1)+"K":e<1e5?(e/1e3).toFixed(0)+"K":e<1e7?(e/1e6).toFixed(1)+"M":e<1e8?(e/1e6).toFixed(0)+"M":(e/1e9).toFixed(1)+"B"}function i(e){return(new Intl.NumberFormat).format(e)}function a(e,t=2){if(0===e)return"0 Bytes";const n=t<0?0:t,o=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,o)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][o]}function s(e){return e.match(/.{1,4}/g).join(" ")}function c(e){return"mx_Username_color"+(function(e){let t,n,o=0;if(0===e.length)return o;for(t=0;t<e.length;t++)n=e.charCodeAt(t),o=(o<<5)-o+n,o|=0;return Math.abs(o)}(e)%8+1)}function l(e,t){const n=void 0===t?0:Math.max(e.length-t,0);if(0===e.length)return"";if(1===e.length)return e[0];if(n>0)return e=e.slice(0,t),Object(o.a)("%(items)s and %(count)s others",{items:e.join(", "),count:n});{const t=e.pop();return Object(o.a)("%(items)s and %(lastItem)s",{items:e.join(", "),lastItem:t})}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return N}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(86),c=n(104),l=n(89),u=n(83),d=n(119),h=n(87),p=n(122),m=n(300),g=n(88),f=n(1289),_=n(479),b=n(133),v=n(95),E=n(711),y=n(148),S=n(143),T=n(169),w=n(261),C=n(13),x=n(110),O=n(103),k=n(101),R=n(0),A=n(93);var I;let D;!function(e){e.Ring="ringAudio",e.Ringback="ringbackAudio",e.CallEnd="callendAudio",e.Busy="busyAudio"}(I||(I={})),function(e){e.Voice="voice",e.Video="video",e.ScreenSharing="screensharing"}(D||(D={}));class N{constructor(){r()(this,"calls",new Map),r()(this,"audioPromises",new Map),r()(this,"dispatcherRef",null),r()(this,"supportsPstnProtocol",null),r()(this,"pstnSupportCheckTimer",void 0),r()(this,"onCallIncoming",e=>{h.a.dispatch({action:"incoming_call",call:e},!0)}),r()(this,"onAction",e=>{switch(e.action){case"place_call":{if(!s.a.get().supportsVoip())return void l.a.createTrackedDialog("Call Handler","VoIP is unsupported",S.a,{title:Object(u.a)("VoIP is unsupported"),description:Object(u.a)("You cannot place VoIP calls in this browser.")});if(this.getAllActiveCalls().length>1)return void l.a.createTrackedDialog("Call Handler","Existing Call",S.a,{title:Object(u.a)("Too Many Calls"),description:Object(u.a)("You've reached the maximum number of simultaneous calls.")});const t=s.a.get().getRoom(e.room_id);if(!t)return void console.error("Room %s does not exist.",e.room_id);const n=t.getJoinedMembers();if(n.length<=1)return void l.a.createTrackedDialog("Call Handler","Cannot place call with self",S.a,{description:Object(u.a)("You cannot place a call with yourself.")});2===n.length?(console.info("Place %s call in %s",e.type,e.room_id),this.placeCall(e.room_id,e.type,e.local_element,e.remote_element)):h.a.dispatch({action:"place_conference_call",room_id:e.room_id,type:e.type,remote_element:e.remote_element,local_element:e.local_element})}break;case"place_conference_call":console.info("Place conference call in %s",e.room_id),x.a.trackEvent("voip","placeConferenceCall"),O.a.instance.trackStartCall(e.room_id,e.type===D.Video,!0),this.startCallApp(e.room_id,e.type);break;case"end_conference":console.info("Terminating conference call in %s",e.room_id),this.terminateCallApp(e.room_id);break;case"hangup_conference":console.info("Leaving conference call in %s",e.room_id),this.hangupCallApp(e.room_id);break;case"incoming_call":{if(!s.a.get().supportsVoip())return;const t=e.call;if(this.getCallForRoom(t.roomId))return;x.a.trackEvent("voip","receiveCall","type",t.type),this.calls.set(t.roomId,t),this.setCallListeners(t)}break;case"hangup":case"reject":if(!this.calls.get(e.room_id))return;"reject"===e.action?this.calls.get(e.room_id).reject():this.calls.get(e.room_id).hangup(d.b.UserHangup,!1);break;case"answer":{if(!this.calls.has(e.room_id))return;if(this.getAllActiveCalls().length>1)return void l.a.createTrackedDialog("Call Handler","Existing Call",S.a,{title:Object(u.a)("Too Many Calls"),description:Object(u.a)("You've reached the maximum number of simultaneous calls.")});const t=this.calls.get(e.room_id);t.answer(),this.setCallAudioElement(t),this.setActiveCallRoomId(e.room_id),O.a.instance.trackJoinCall(e.room_id,t.type===d.f.Video,!1),h.a.dispatch({action:"view_room",room_id:e.room_id});break}}})}static sharedInstance(){return window.mxCallHandler||(window.mxCallHandler=new N),window.mxCallHandler}start(){this.dispatcherRef=h.a.register(this.onAction),navigator.mediaSession&&(navigator.mediaSession.setActionHandler("play",(function(){})),navigator.mediaSession.setActionHandler("pause",(function(){})),navigator.mediaSession.setActionHandler("seekbackward",(function(){})),navigator.mediaSession.setActionHandler("seekforward",(function(){})),navigator.mediaSession.setActionHandler("previoustrack",(function(){})),navigator.mediaSession.setActionHandler("nexttrack",(function(){}))),g.a.getValue(k.a.Voip)&&s.a.get().on("Call.incoming",this.onCallIncoming),this.checkForPstnSupport(3)}stop(){const e=s.a.get();e&&e.removeListener("Call.incoming",this.onCallIncoming),null!==this.dispatcherRef&&(h.a.unregister(this.dispatcherRef),this.dispatcherRef=null)}async checkForPstnSupport(e){try{const e=await s.a.get().getThirdpartyProtocols();void 0!==e["im.vector.protocol.pstn"]?this.supportsPstnProtocol=e["im.vector.protocol.pstn"]:void 0!==e["m.protocol.pstn"]?this.supportsPstnProtocol=e["m.protocol.pstn"]:this.supportsPstnProtocol=null,h.a.dispatch({action:A.a.PstnSupportUpdated})}catch(t){1===e?console.log("Failed to check for pstn protocol support and no retries remain: assuming no support",t):(console.log("Failed to check for pstn protocol support: will retry",t),this.pstnSupportCheckTimer=setTimeout(()=>{this.checkForPstnSupport(e-1)},1e4))}}getSupportsPstnProtocol(){return this.supportsPstnProtocol}getCallForRoom(e){return this.calls.get(e)||null}getAnyActiveCall(){for(const e of this.calls.values())if(e.state!==d.e.Ended)return e;return null}getAllActiveCalls(){const e=[];for(const t of this.calls.values())t.state!==d.e.Ended&&t.state!==d.e.Ringing&&e.push(t);return e}getAllActiveCallsNotInRoom(e){const t=[];for(const[n,o]of this.calls.entries())n!==e&&o.state!==d.e.Ended&&t.push(o);return t}play(e){const t=document.getElementById(e);if(t){const n=async()=>{try{await t.play()}catch(e){console.log("Unable to play audio clip",e)}};this.audioPromises.has(e)?this.audioPromises.set(e,this.audioPromises.get(e).then(()=>(t.load(),n()))):this.audioPromises.set(e,n())}}pause(e){const t=document.getElementById(e);t&&(this.audioPromises.has(e)?this.audioPromises.set(e,this.audioPromises.get(e).then(()=>t.pause())):t.pause())}matchesCallForThisRoom(e){const t=this.getCallForRoom(e.roomId);return t&&e.callId===t.callId}setCallListeners(e){e.on(d.c.Error,t=>{this.matchesCallForThisRoom(e)&&(x.a.trackEvent("voip","callError","error",t.toString()),console.error("Call error:",t),t.code!==d.b.NoUserMedia?0!==s.a.get().getTurnServers().length||null!==g.a.getValue("fallbackICEServerAllowed")?l.a.createTrackedDialog("Call Failed","",S.a,{title:Object(u.a)("Call Failed"),description:t.message}):this.showICEFallbackPrompt():this.showMediaCaptureError(e))}),e.on(d.c.Hangup,()=>{this.matchesCallForThisRoom(e)&&(x.a.trackEvent("voip","callHangup"),this.removeCallForRoom(e.roomId))}),e.on(d.c.State,(t,n)=>{if(this.matchesCallForThisRoom(e)){switch(this.setCallState(e,t),n){case d.e.Ringing:this.pause(I.Ring);break;case d.e.InviteSent:this.pause(I.Ringback)}switch(t){case d.e.Ringing:this.play(I.Ring);break;case d.e.InviteSent:this.play(I.Ringback);break;case d.e.Ended:if(x.a.trackEvent("voip","callEnded","hangupReason",e.hangupReason),this.removeCallForRoom(e.roomId),n===d.e.InviteSent&&(e.hangupParty===d.d.Remote||e.hangupParty===d.d.Local&&e.hangupReason===d.b.InviteTimeout)){let t,n;this.play(I.Busy),e.hangupReason===d.b.UserHangup?(t=Object(u.a)("Call Declined"),n=Object(u.a)("The other party declined the call.")):e.hangupReason===d.b.InviteTimeout?(t=Object(u.a)("Call Failed"),n=Object(u.a)("The remote side failed to pick up")+"."):(t=Object(u.a)("Call Failed"),n=Object(u.a)("The call could not be established")),l.a.createTrackedDialog("Call Handler","Call Failed",S.a,{title:t,description:n})}else e.hangupReason===d.b.AnsweredElsewhere&&n===d.e.Connecting?l.a.createTrackedDialog("Call Handler","Call Failed",S.a,{title:Object(u.a)("Answered Elsewhere"),description:Object(u.a)("The call was answered on another device.")}):n!==d.e.Fledgling&&this.play(I.CallEnd)}}}),e.on(d.c.Replaced,t=>{this.matchesCallForThisRoom(e)&&(console.log(`Call ID ${e.callId} is being replaced by call ID ${t.callId}`),e.state===d.e.Ringing?this.pause(I.Ring):e.state===d.e.InviteSent&&this.pause(I.Ringback),this.calls.set(t.roomId,t),this.setCallListeners(t),this.setCallState(t,t.state))})}setCallAudioElement(e){const t=function(){const e=document.getElementById("remoteAudio");return e||(console.error("Failed to find remoteAudio element - cannot play audio!You need to add an <audio/> to the DOM."),null)}();t&&e.setRemoteAudioElement(t)}setCallState(e,t){console.log(`Call state in ${e.roomId} changed to ${t}`),h.a.dispatch({action:"call_state",room_id:e.roomId,state:t})}removeCallForRoom(e){this.calls.delete(e)}showICEFallbackPrompt(){const e=s.a.get(),t=e=>a.a.createElement("code",null,e);l.a.createTrackedDialog("No TURN servers","",y.a,{title:Object(u.a)("Call failed due to misconfigured server"),description:a.a.createElement("div",null,a.a.createElement("p",null,Object(u.a)("Please ask the administrator of your homeserver (<code>%(homeserverDomain)s</code>) to configure a TURN server in order for calls to work reliably.",{homeserverDomain:e.getDomain()},{code:t})),a.a.createElement("p",null,Object(u.a)("Alternatively, you can try to use the public server at <code>turn.matrix.org</code>, but this will not be as reliable, and it will share your IP address with that server. You can also manage this in Settings.",null,{code:t}))),button:Object(u.a)("Try using turn.matrix.org"),cancelButton:Object(u.a)("OK"),onFinished:t=>{g.a.setValue("fallbackICEServerAllowed",null,v.a.DEVICE,t),e.setFallbackICEServerAllowed(t)}},null,!0)}showMediaCaptureError(e){let t,n;e.type===d.f.Voice?(t=Object(u.a)("Unable to access microphone"),n=a.a.createElement("div",null,Object(u.a)("Call failed because microphone could not be accessed. Check that a microphone is plugged in and set up correctly."))):e.type===d.f.Video&&(t=Object(u.a)("Unable to access webcam / microphone"),n=a.a.createElement("div",null,Object(u.a)("Call failed because webcam or microphone could not be accessed. Check that:"),a.a.createElement("ul",null,a.a.createElement("li",null,Object(u.a)("A microphone and webcam are plugged in and set up correctly")),a.a.createElement("li",null,Object(u.a)("Permission is granted to use the webcam")),a.a.createElement("li",null,Object(u.a)("No other application is using the webcam"))))),l.a.createTrackedDialog("Media capture failed","",S.a,{title:t,description:n},null,!0)}placeCall(e,t,n,o){x.a.trackEvent("voip","placeCall","type",t),O.a.instance.trackStartCall(e,t===D.Video,!1);const r=Object(d.g)(s.a.get(),e);if(this.calls.set(e,r),this.setCallListeners(r),this.setCallAudioElement(r),this.setActiveCallRoomId(e),t===D.Voice)r.placeVoiceCall();else if("video"===t)r.placeVideoCall(o,n);else if(t===D.ScreenSharing){const t=c.a.get().screenCaptureErrorString();if(t)return this.removeCallForRoom(e),console.log("Can't capture screen: "+t),void l.a.createTrackedDialog("Call Handler","Unable to capture screen",S.a,{title:Object(u.a)("Unable to capture screen"),description:t});r.placeScreenSharingCall(o,n)}else console.error("Unknown conf call type: %s",t)}setActiveCallRoomId(e){R.a.info("Setting call in room "+e+" active");for(const[t,n]of this.calls.entries())n.state!==d.e.Ended&&(t===e?n.setRemoteOnHold(!1):(R.a.info("Holding call in room "+t+" because another call is being set active"),n.setRemoteOnHold(!0)))}hasAnyUnheldCall(){for(const e of this.calls.values())if(e.state!==d.e.Ended&&!e.isRemoteOnHold())return!0;return!1}async startCallApp(t,n){h.a.dispatch({action:"appsDrawer",show:!0});const o=s.a.get().getRoom(t),r=p.a.getRoomWidgetsOfType(o,b.a.JITSI);if(r.length>0||m.a.roomHasPendingWidgetsOfType(t,r,b.a.JITSI))return void l.a.createTrackedDialog("Call already in progress","",S.a,{title:Object(u.a)("Call in Progress"),description:Object(u.a)("A call is currently being placed!")});const i=_.a.getInstance().preferredDomain,a=await _.a.getInstance().getJitsiAuth();let c;c="openidtoken-jwt"===a?E.base32.stringify(e.from(t),{pad:!1}):"JitsiConference"+Object(f.a)();let d=p.a.getLocalJitsiWrapperUrl({auth:a});const g=new URL(d);g.search="",g.searchParams.set("confId",c),d=g.toString();const v={conferenceId:c,isAudioOnly:"voice"===n,domain:i,auth:a},y="jitsi_"+s.a.get().credentials.userId+"_"+Date.now();p.a.setRoomWidget(t,y,b.a.JITSI,d,"Jitsi",v).then(()=>{console.log("Jitsi widget added")}).catch(e=>{"M_FORBIDDEN"===e.errcode&&l.a.createTrackedDialog("Call Failed","",S.a,{title:Object(u.a)("Permission Required"),description:Object(u.a)("You do not have permission to start a conference call in this room")}),console.error(e)})}terminateCallApp(e){l.a.createTrackedDialog("Confirm Jitsi Terminate","",y.a,{hasCancelButton:!0,title:Object(u.a)("End conference"),description:Object(u.a)("This will end the conference for everyone. Continue?"),button:Object(u.a)("End conference"),onFinished:t=>{if(!t)return;T.b.instance.getRoom(e).widgets.filter(e=>b.a.JITSI.matches(e.type)).forEach(t=>{p.a.setRoomWidget(e,t.id)})}})}hangupCallApp(e){const t=T.b.instance.getRoom(e);if(!t)return;t.widgets.filter(e=>b.a.JITSI.matches(e.type)).forEach(e=>{const t=w.a.instance.getMessagingForId(e.id);t&&t.transport.send(C.a.HangupCall,{})})}}}).call(this,n(31).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(90),u=n.n(l),d=n(85),h=n(83);class p extends a.a.Component{constructor(...e){super(...e),r()(this,"onOk",()=>{this.props.onFinished(!0)}),r()(this,"onCancel",()=>{this.props.onFinished(!1)})}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("views.elements.DialogButtons");let n="";return this.props.danger&&(n="danger"),a.a.createElement(e,{className:u()("mx_QuestionDialog",this.props.className),onFinished:this.props.onFinished,title:this.props.title,contentId:"mx_Dialog_content",headerImage:this.props.headerImage,hasCancel:this.props.hasCancelButton,fixedWidth:this.props.fixedWidth},a.a.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},this.props.description),a.a.createElement(t,{primaryButton:this.props.button||Object(h.a)("OK"),primaryButtonClass:n,primaryDisabled:this.props.buttonDisabled,cancelButton:this.props.cancelButton,hasCancel:this.props.hasCancelButton&&!this.props.quitOnly,onPrimaryButtonClick:this.onOk,focus:this.props.focus,onCancel:this.onCancel},this.props.extraButtons))}}r()(p,"propTypes",{title:c.a.string,description:c.a.node,extraButtons:c.a.node,button:c.a.string,buttonDisabled:c.a.bool,danger:c.a.bool,focus:c.a.bool,onFinished:c.a.func.isRequired,headerImage:c.a.string,quitOnly:c.a.bool,fixedWidth:c.a.bool,className:c.a.string}),r()(p,"defaultProps",{title:"",description:"",extraButtons:null,focus:!0,hasCancelButton:!0,danger:!1,quitOnly:!1})},function(e,t,n){(function(e){var o=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(r.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(r.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(822),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(5))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(81);const r=(e,t,n)=>{const r=Object(o.useRef)(n);Object(o.useEffect)(()=>{r.current=n},[n]),Object(o.useEffect)(()=>{if(!e)return;const n=(...e)=>r.current(...e);return e.on(t,n),()=>{e.removeListener(t,n)}},[t,e])}},function(e,t,n){var o=n(399)("wks"),r=n(327),i=n(180).Symbol,a="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))}).store=o},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";var o=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};var r=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",MENUITEM:"menuitem",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"},i=t.SPECIAL_ELEMENTS=Object.create(null);i[o.HTML]=Object.create(null),i[o.HTML][r.ADDRESS]=!0,i[o.HTML][r.APPLET]=!0,i[o.HTML][r.AREA]=!0,i[o.HTML][r.ARTICLE]=!0,i[o.HTML][r.ASIDE]=!0,i[o.HTML][r.BASE]=!0,i[o.HTML][r.BASEFONT]=!0,i[o.HTML][r.BGSOUND]=!0,i[o.HTML][r.BLOCKQUOTE]=!0,i[o.HTML][r.BODY]=!0,i[o.HTML][r.BR]=!0,i[o.HTML][r.BUTTON]=!0,i[o.HTML][r.CAPTION]=!0,i[o.HTML][r.CENTER]=!0,i[o.HTML][r.COL]=!0,i[o.HTML][r.COLGROUP]=!0,i[o.HTML][r.DD]=!0,i[o.HTML][r.DETAILS]=!0,i[o.HTML][r.DIR]=!0,i[o.HTML][r.DIV]=!0,i[o.HTML][r.DL]=!0,i[o.HTML][r.DT]=!0,i[o.HTML][r.EMBED]=!0,i[o.HTML][r.FIELDSET]=!0,i[o.HTML][r.FIGCAPTION]=!0,i[o.HTML][r.FIGURE]=!0,i[o.HTML][r.FOOTER]=!0,i[o.HTML][r.FORM]=!0,i[o.HTML][r.FRAME]=!0,i[o.HTML][r.FRAMESET]=!0,i[o.HTML][r.H1]=!0,i[o.HTML][r.H2]=!0,i[o.HTML][r.H3]=!0,i[o.HTML][r.H4]=!0,i[o.HTML][r.H5]=!0,i[o.HTML][r.H6]=!0,i[o.HTML][r.HEAD]=!0,i[o.HTML][r.HEADER]=!0,i[o.HTML][r.HGROUP]=!0,i[o.HTML][r.HR]=!0,i[o.HTML][r.HTML]=!0,i[o.HTML][r.IFRAME]=!0,i[o.HTML][r.IMG]=!0,i[o.HTML][r.INPUT]=!0,i[o.HTML][r.LI]=!0,i[o.HTML][r.LINK]=!0,i[o.HTML][r.LISTING]=!0,i[o.HTML][r.MAIN]=!0,i[o.HTML][r.MARQUEE]=!0,i[o.HTML][r.MENU]=!0,i[o.HTML][r.META]=!0,i[o.HTML][r.NAV]=!0,i[o.HTML][r.NOEMBED]=!0,i[o.HTML][r.NOFRAMES]=!0,i[o.HTML][r.NOSCRIPT]=!0,i[o.HTML][r.OBJECT]=!0,i[o.HTML][r.OL]=!0,i[o.HTML][r.P]=!0,i[o.HTML][r.PARAM]=!0,i[o.HTML][r.PLAINTEXT]=!0,i[o.HTML][r.PRE]=!0,i[o.HTML][r.SCRIPT]=!0,i[o.HTML][r.SECTION]=!0,i[o.HTML][r.SELECT]=!0,i[o.HTML][r.SOURCE]=!0,i[o.HTML][r.STYLE]=!0,i[o.HTML][r.SUMMARY]=!0,i[o.HTML][r.TABLE]=!0,i[o.HTML][r.TBODY]=!0,i[o.HTML][r.TD]=!0,i[o.HTML][r.TEMPLATE]=!0,i[o.HTML][r.TEXTAREA]=!0,i[o.HTML][r.TFOOT]=!0,i[o.HTML][r.TH]=!0,i[o.HTML][r.THEAD]=!0,i[o.HTML][r.TITLE]=!0,i[o.HTML][r.TR]=!0,i[o.HTML][r.TRACK]=!0,i[o.HTML][r.UL]=!0,i[o.HTML][r.WBR]=!0,i[o.HTML][r.XMP]=!0,i[o.MATHML]=Object.create(null),i[o.MATHML][r.MI]=!0,i[o.MATHML][r.MO]=!0,i[o.MATHML][r.MN]=!0,i[o.MATHML][r.MS]=!0,i[o.MATHML][r.MTEXT]=!0,i[o.MATHML][r.ANNOTATION_XML]=!0,i[o.SVG]=Object.create(null),i[o.SVG][r.TITLE]=!0,i[o.SVG][r.FOREIGN_OBJECT]=!0,i[o.SVG][r.DESC]=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"h",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"f",(function(){return f})),n.d(t,"e",(function(){return _})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return E}));var o=n(81),r=n.n(o),i=n(86),a=n(360),s=n(89),c=n(85),l=n(83),u=n(383),d=n(682),h=n(156);function p(e,t){const n=new a.a(e);return n.invite(t).then(e=>Promise.resolve({states:e,inviter:n}))}function m(e){const t=c.getComponent("dialogs.InviteDialog");s.a.createTrackedDialog("Start DM","",t,{kind:u.b,initialText:e},null,!1,!0)}function g(e){const t=c.getComponent("dialogs.InviteDialog");s.a.createTrackedDialog("Invite Users","",t,{kind:u.c,roomId:e},null,!1,!0)}function f(e,t){s.a.createTrackedDialog("Invite Users to Community","",d.a,{communityName:t,roomId:e},null,!1,!0)}function _(e){const t=h.a.instance.getGeneralChat(e);if(!t)throw new Error("Failed to locate appropriate room to start an invite in");{const n=h.a.instance.getCommunityName(e);f(t.roomId,n)}}function b(e){if(!e||"m.room.third_party_invite"!==e.getType())return!1;const t=["key_validity_url","public_key","display_name"];for(let n=0;n<t.length;++n)if(!e.getContent()[t[n]])return!1;return!0}function v(e,t){return p(e,t).then(t=>{const n=i.a.get().getRoom(e);E(t.states,n,t.inviter)}).catch(e=>{console.error(e.stack);const t=c.getComponent("dialogs.ErrorDialog");s.a.createTrackedDialog("Failed to invite","",t,{title:Object(l.a)("Failed to invite"),description:e&&e.message?e.message:Object(l.a)("Operation failed")})})}function E(e,t,n){const o=Object.keys(e).filter(t=>"error"===e[t]);if(1===o.length&&n.fatal){const e=c.getComponent("dialogs.ErrorDialog");return s.a.createTrackedDialog("Failed to invite users to the room","",e,{title:Object(l.a)("Failed to invite users to the room:",{roomName:t.name}),description:n.getErrorText(o[0])}),!1}{const i=[];for(const t of o)if("error"===e[t]){const e=n.getErrorText(t);i.push(t+": "+e)}if(i.length>0){const e=r.a.createElement("div",null,i.map(e=>r.a.createElement("div",{key:e},e))),n=c.getComponent("dialogs.ErrorDialog");return s.a.createTrackedDialog("Failed to invite the following users to the room","",n,{title:Object(l.a)("Failed to invite the following users to the %(roomName)s room:",{roomName:t.name}),description:e}),!1}}return!0}},function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"d",(function(){return b})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return E})),n.d(t,"e",(function(){return y}));var o,r,i=n(86),a=n(89),s=n(85),c=n(83),l=n(87),u=n(361),d=n(123),h=n(242),p=n(295),m=n(109),g=n(103),f=n(192);function _(e){void 0===(e=e||{}).spinner&&(e.spinner=!0),void 0===e.guestAccess&&(e.guestAccess=!0),void 0===e.encryption&&(e.encryption=!1);const t=g.a.getTimestamp(),n=s.getComponent("dialogs.ErrorDialog"),d=s.getComponent("elements.Spinner"),p=i.a.get();if(p.isGuest())return l.a.dispatch({action:"require_registration"}),Promise.resolve(null);const f=e.dmUserId?r.TrustedPrivateChat:r.PrivateChat,_=e.createOpts||{};if(_.preset=_.preset||f,_.visibility=_.visibility||o.Private,e.dmUserId&&void 0===_.invite)switch(Object(h.c)(e.dmUserId)){case"mx-user-id":_.invite=[e.dmUserId];break;case"email":_.invite_3pid=[{id_server:i.a.get().getIdentityServerUrl(!0),medium:"email",address:e.dmUserId}]}let b,v;return e.dmUserId&&void 0===_.is_direct&&(_.is_direct=!0),void 0===e.andView&&(e.andView=!0),_.initial_state=_.initial_state||[],e.guestAccess&&_.initial_state.push({type:"m.room.guest_access",state_key:"",content:{guest_access:"can_join"}}),e.encryption&&_.initial_state.push({type:"m.room.encryption",state_key:"",content:{algorithm:"m.megolm.v1.aes-sha2"}}),e.spinner&&(b=a.a.createDialog(d,null,"mx_Dialog_spinner")),p.createRoom(_).finally((function(){b&&b.close()})).then((function(t){return v=t.room_id,e.dmUserId?u.c(v,e.dmUserId):Promise.resolve()})).then(()=>{if(e.associatedWithCommunity)return m.a.addRoomToGroup(e.associatedWithCommunity,v,!1)}).then((function(){return e.andView&&l.a.dispatch({action:"view_room",room_id:v,should_peek:!1,joining:!0}),g.a.instance.trackRoomCreate(t,v),v}),(function(t){if(e.inlineErrors)throw t;l.a.dispatch({action:"join_room_error"}),console.error("Failed to create room "+v+" "+t);let o=Object(c.a)("Server may be unavailable, overloaded, or you hit a bug.");return"M_UNSUPPORTED_ROOM_VERSION"===t.errcode&&(o=Object(c.a)("The server does not support the room version specified.")),a.a.createTrackedDialog("Failure to create room","",n,{title:Object(c.a)("Failure to create room"),description:o}),null}))}function b(e,t){const n=d.a.shared().getDMRoomsForUserId(t).map(t=>e.getRoom(t)).filter(e=>{if(e&&"join"===e.getMyMembership()){const n=e.currentState.getMembers().filter(e=>Object(f.c)(e.membership));return n.find(e=>e.userId===t)&&2===n.length}return!1}).sort((e,t)=>t.getLastActiveTimestamp()-e.getLastActiveTimestamp());if(n.length)return n[0]}async function v(e,t){try{const n=await e.downloadKeys(t);return Object.values(n).every(e=>Object.keys(e).length>0)}catch(e){return console.error("Error determining if it's possible to encrypt to all users: ",e),!1}}async function E(e,t){const n=b(e,t);let o;if(n)o=n.roomId;else{let n=void 0;y()&&(n=await v(e,[t])),o=await _({encryption:n,dmUserId:t,spinner:!1,andView:!1}),await async function(e,t,n,o={timeout:1500}){const{timeout:r}=o;let i;return new Promise(o=>{i=function(e,r,i){i.userId===n&&i.roomId===t&&o(!0)},e.on("RoomState.newMember",i),setTimeout(o,r,!1)}).finally(()=>{e.removeListener("RoomState.newMember",i)})}(e,o,t)}return o}function y(){const e=Object(p.a)();if(e){return!(!1===e.default)}return!0}!function(e){e.Public="public",e.Private="private"}(o||(o={})),function(e){e.PrivateChat="private_chat",e.TrustedPrivateChat="trusted_private_chat",e.PublicChat="public_chat"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(82),r=n.n(o),i=n(139),a=n(87),s=n(192),c=n(88),l=n(1),u=n(115),d=n(140),h=n(178),p=n(109);class m extends i.a{constructor(){super(a.a,{})}static get instance(){return m.internalInstance}getSelectedCommunityId(){return c.a.getValue("feature_communities_v2_prototypes")?h.a.getSelectedTags()[0]:null}getSelectedCommunityName(){return m.instance.getCommunityName(this.getSelectedCommunityId())}getSelectedCommunityGeneralChat(){const e=this.getSelectedCommunityId();if(e)return this.getGeneralChat(e)}getCommunityName(e){const t=d.a.getGroupProfileCachedFast(this.matrixClient,e);return(null==t?void 0:t.name)||e}getCommunityProfile(e){return d.a.getGroupProfileCachedFast(this.matrixClient,e)}getGeneralChat(e){const t=p.a.getGroupRooms(e).map(e=>this.matrixClient.getRoom(e.roomId)).filter(e=>!!e);let n=t.find(t=>{const n=t.currentState.getStateEvents("im.vector.general_chat","");return!(!n||n.getContent().groupId!==e)});return n||(n=t[0]),n}isAdminOf(e){const t=p.a.getGroupMembers(e).find(e=>e.userId===this.matrixClient.getUserId());return null==t?void 0:t.isPrivileged}canInviteTo(e){const t=this.getGeneralChat(e);if(!t)return this.isAdminOf(e);const n=t.getMember(this.matrixClient.getUserId());if(!n)return this.isAdminOf(e);const o=t.currentState.getStateEvents("m.room.power_levels","");if(!o)return this.isAdminOf(e);return(Object(l.r)(o.invite)?50:Number(o.invite))<=n.powerLevel}async onAction(e){if(this.matrixClient&&c.a.getValue("feature_communities_v2_prototypes"))if("MatrixActions.Room.myMembership"===e.action){const t=e.room,n=Object(s.b)(e.membership);if(n===Object(s.b)(e.oldMembership))return;if(n===s.a.Invite)try{const e=l.f("/rooms/$roomId/group_info",{$roomId:t.roomId}),n=await this.matrixClient._http.authedRequest(void 0,"GET",e,void 0,void 0,{prefix:"/_matrix/client/unstable/im.vector.custom"});await this.matrixClient.setAccountData("im.vector.group_info."+t.roomId,n)}catch(e){console.warn("Non-fatal error getting group information for invite:",e)}}else if("MatrixActions.accountData"===e.action)e.event_type.startsWith("im.vector.group_info.")&&this.emit(u.b,e.event_type.substring("im.vector.group_info.".length));else if("select_tag"===e.action){const t=this.getGeneralChat(e.tag);t&&a.a.dispatch({action:"view_room",room_id:t.roomId})}}getInviteProfile(e){if(!this.matrixClient)return{displayName:null,avatarMxc:null};const t=this.matrixClient.getRoom(e);if(c.a.getValue("feature_communities_v2_prototypes")){const t=this.matrixClient.getAccountData("im.vector.group_info."+e);if(t&&t.getContent())return{displayName:t.getContent().name,avatarMxc:t.getContent().avatar_url}}return{displayName:t.name,avatarMxc:t.avatar_url}}async onReady(){for(const e of this.matrixClient.getRooms()){const t=e.currentState.getMembers().find(e=>e.userId===this.matrixClient.getUserId());t&&(Object(s.b)(t.membership)===s.a.Invite&&this.emit(u.b,e.roomId))}}}r()(m,"internalInstance",new m)},function(e,t,n){"use strict";var o=n(81),r=n.n(o),i=n(482);t.a=({description:e,acceptLabel:t,rejectLabel:n,onAccept:o,onReject:a})=>r.a.createElement("div",null,r.a.createElement("div",{className:"mx_Toast_description"},e),r.a.createElement("div",{className:"mx_Toast_buttons","aria-live":"off"},a&&n&&r.a.createElement(i.a,{label:n,kind:"danger",onClick:a}),r.a.createElement(i.a,{label:t,onClick:o})))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{getValueOverride(e,t,n,o){return null}onChange(e,t,n){}get settingDisabled(){return!1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(81),r=n.n(o),i=n(90),a=n.n(i);function s({description:e,hideDescriptionIfValid:t,deriveData:n,rules:o}){return async function({value:i,focused:s,allowEmpty:c=!0}){if(!i&&c)return{valid:null,feedback:null};const l={value:i,allowEmpty:c},u=n?await n(l):void 0,d=[];let h,p,m,g=!0;if(o&&o.length)for(const e of o){if(!e.key||!e.test)continue;if(!g&&e.final)continue;if(e.skip&&e.skip.call(this,l,u))continue;const t=await e.test.call(this,l,u);if(g=g&&t,t&&e.valid){const t=e.valid.call(this,u);if(!t)continue;d.push({key:e.key,valid:!0,text:t})}else if(!t&&e.invalid){const t=e.invalid.call(this,u);if(!t)continue;d.push({key:e.key,valid:!1,text:t})}}if(!s)return{valid:g,feedback:null};if(d&&d.length&&(h=r.a.createElement("ul",{className:"mx_Validation_details"},d.map(e=>{const t=a()({mx_Validation_detail:!0,mx_Validation_valid:e.valid,mx_Validation_invalid:!e.valid});return r.a.createElement("li",{key:e.key,className:t},e.text)}))),e&&(h||!t)){const t=e.call(this,u);p=r.a.createElement("div",{className:"mx_Validation_description"},t)}return(p||h)&&(m=r.a.createElement("div",{className:"mx_Validation"},p,h)),{valid:g,feedback:m}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var o=n(82),r=n.n(o),i=n(92),a=n(89),s=n(107),c=n.n(s),l=n(88),u=n(294),d=n(86),h=n(16),p=n.n(h),m=n(96);n(133);class g{constructor(e,t){this.apiUrl=e,this.uiUrl=t,this.scalarToken=null,this.termsInteractionCallback=void 0;const n=i.a.get().integrations_rest_url,o=i.a.get().integrations_ui_url;this.isDefaultManager=e===n&&o===t}_writeTokenToStore(){window.localStorage.setItem("mx_scalar_token_at_"+this.apiUrl,this.scalarToken),this.isDefaultManager&&window.localStorage.removeItem("mx_scalar_token")}_readTokenFromStore(){let e=window.localStorage.getItem("mx_scalar_token_at_"+this.apiUrl);return!e&&this.isDefaultManager&&(e=window.localStorage.getItem("mx_scalar_token")),e}_readToken(){return this.scalarToken?this.scalarToken:this._readTokenFromStore()}setTermsInteractionCallback(e){this.termsInteractionCallback=e}connect(){return this.getScalarToken().then(e=>{this.scalarToken=e})}hasCredentials(){return null!=this.scalarToken}getScalarToken(){const e=this._readToken();return e?this._checkToken(e).catch(e=>{if(e instanceof u.b)throw e;return this.registerForToken()}):this.registerForToken()}_getAccountName(e){const t=this.apiUrl+"/account";return new Promise((function(n,o){p()({method:"GET",uri:t,qs:{scalar_token:e,v:"1.1"},json:!0},(e,t,r)=>{e?o(e):r&&"M_TERMS_NOT_SIGNED"===r.errcode?o(new u.b):t.statusCode/100!=2?o(r):r&&r.user_id?n(r.user_id):o(new Error("Missing user_id in response"))})}))}_checkToken(e){return this._getAccountName(e).then(t=>{const n=d.a.get().getUserId();if(t!==n)throw new Error("Scalar token is owned by someone else: "+n);return e}).catch(t=>{if(t instanceof u.b){console.log("Integration manager requires new terms to be agreed to");const t=c.a.parse(this.apiUrl);return t.path="",t.pathname="",Object(u.d)([new u.a(m.m.IM,t.format(),e)],this.termsInteractionCallback).then(()=>e)}throw t})}registerForToken(){return d.a.get().getOpenIdToken().then(e=>this.exchangeForScalarToken(e)).then(e=>this._checkToken(e)).then(e=>(this.scalarToken=e,this._writeTokenToStore(),e))}exchangeForScalarToken(e){const t=this.apiUrl;return new Promise((function(n,o){p()({method:"POST",uri:t+"/register",qs:{v:"1.1"},body:e,json:!0},(e,t,r)=>{e?o(e):t.statusCode/100!=2?o({statusCode:t.statusCode}):r&&r.scalar_token?n(r.scalar_token):o(new Error("Missing scalar_token in response"))})}))}getScalarPageTitle(e){let t=this.apiUrl+"/widgets/title_lookup";return t=this.getStarterLink(t),t+="&curl="+encodeURIComponent(e),new Promise((function(e,n){p()({method:"GET",uri:t,json:!0},(t,o,r)=>{if(t)n(t);else if(o.statusCode/100!=2)n({statusCode:o.statusCode});else if(r){let t="";r.page_title_cache_item&&r.page_title_cache_item.cached_title&&(t=r.page_title_cache_item.cached_title),e(t)}else n(new Error("Missing page title in response"))})}))}disableWidgetAssets(e,t){let n=this.apiUrl+"/widgets/set_assets_state";return n=this.getStarterLink(n),new Promise((o,r)=>{p()({method:"GET",uri:n,json:!0,qs:{widget_type:e.preferred,widget_id:t,state:"disable"}},(e,t,n)=>{e?r(e):t.statusCode/100!=2?r({statusCode:t.statusCode}):n?o():r(new Error("Failed to set widget assets state"))})})}getScalarInterfaceUrlForRoom(e,t,n){const o=e.roomId,r=e.name;let i=this.uiUrl;return i+="?scalar_token="+encodeURIComponent(this.scalarToken),i+="&room_id="+encodeURIComponent(o),i+="&room_name="+encodeURIComponent(r),i+="&theme="+encodeURIComponent(l.a.getValue("theme")),n&&(i+="&integ_id="+encodeURIComponent(n)),t&&(i+="&screen="+encodeURIComponent(t)),i}getStarterLink(e){return e+"?scalar_token="+encodeURIComponent(this.scalarToken)}}var f=n(706);let _;!function(e){e.Account="account",e.Config="config",e.Homeserver="homeserver"}(_||(_={}));class b{constructor(e,t,n=t,o){r()(this,"apiUrl",void 0),r()(this,"uiUrl",void 0),r()(this,"kind",void 0),r()(this,"id",void 0),this.kind=e,this.apiUrl=t,this.uiUrl=n,this.id=o}get name(){return c.a.parse(this.uiUrl).host}get trimmedApiUrl(){const e=c.a.parse(this.apiUrl);return e.pathname="",e.path="",c.a.format(e)}getScalarClient(){return new g(this.apiUrl,this.uiUrl)}async open(e=null,t=null,n=null){if(!l.a.getValue("integrationProvisioning"))return w.sharedInstance().showDisabledDialog();const o=a.a.createTrackedDialog("Integration Manager","",f.a,{loading:!0},"mx_IntegrationManager"),r=this.getScalarClient();r.setTermsInteractionCallback((e,t)=>Object(u.c)(e,t,"mx_TermsDialog_forIntegrationManager"));const i={};try{await r.connect(),r.hasCredentials()?i.url=r.getScalarInterfaceUrlForRoom(e,t,n):i.connected=!1}catch(e){if(e instanceof u.b)return void o.close();console.error(e),i.connected=!1}o.close(),a.a.createTrackedDialog("Integration Manager","",f.a,i,"mx_IntegrationManager")}}var v=n(707),E=n(708),y=n(710),S=n(122);const T=[_.Account,_.Homeserver,_.Config];class w{static sharedInstance(){return w.instance||(w.instance=new w),w.instance}constructor(){r()(this,"managers",[]),r()(this,"client",void 0),r()(this,"primaryManager",void 0),r()(this,"setupHomeserverManagers",async e=>{if(console.log("Updating homeserver-configured integration managers..."),e&&e["m.integrations"]){let t=e["m.integrations"].managers;Array.isArray(t)||(t=[]),console.log(`Homeserver has ${t.length} integration managers`),this.managers=this.managers.filter(e=>e.kind!==_.Homeserver);for(const e of t)e.api_url&&this.managers.push(new b(_.Homeserver,e.api_url,e.ui_url));this.primaryManager=null}else console.log("Homeserver has no integration managers")}),r()(this,"onAccountData",e=>{"m.widgets"===e.getType()&&this.compileManagers()}),this.compileManagers()}startWatching(){this.stopWatching(),this.client=d.a.get(),this.client.on("accountData",this.onAccountData),this.client.on("WellKnown.client",this.setupHomeserverManagers),this.compileManagers()}stopWatching(){this.client&&(this.client.removeListener("accountData",this.onAccountData),this.client.removeListener("WellKnown.client",this.setupHomeserverManagers))}compileManagers(){this.managers=[],this.setupConfiguredManager(),this.setupAccountManagers()}setupConfiguredManager(){const e=i.a.get().integrations_rest_url,t=i.a.get().integrations_ui_url;e&&t&&(this.managers.push(new b(_.Config,e,t)),this.primaryManager=null)}setupAccountManagers(){if(!this.client||!this.client.getUserId())return;S.a.getIntegrationManagerWidgets().forEach(e=>{const t=e.content.data;if(!t)return;const n=e.content.url,o=t.api_url;if(!o||!n)return;const r=new b(_.Account,o,n,e.id||e.state_key||"");this.managers.push(r)}),this.primaryManager=null}hasManager(){return this.managers.length>0}getOrderedManagers(){const e=[];for(const t of T){const n=this.managers.filter(e=>e.kind===t);n&&n.length&&(t===_.Account&&n.sort((e,t)=>e.id.localeCompare(t.id)),e.push(...n))}return e}getPrimaryManager(){return this.hasManager()?(this.primaryManager||(this.primaryManager=this.getOrderedManagers()[0]),this.primaryManager):null}openNoManagerDialog(){a.a.createTrackedDialog("Integrations impossible","",v.a)}openAll(e=null,t=null,n=null){return l.a.getValue("integrationProvisioning")?0===this.managers.length?this.openNoManagerDialog():void a.a.createTrackedDialog("Tabbed Integration Manager","",E.a,{room:e,screen:t,integrationId:n},"mx_TabbedIntegrationManagerDialog"):this.showDisabledDialog()}showDisabledDialog(){a.a.createTrackedDialog("Integrations disabled","",y.a)}async overwriteManagerOnAccount(e){await S.a.removeIntegrationManagerWidgets(),await S.a.addIntegrationManagerWidget(e.name,e.uiUrl,e.apiUrl)}async tryDiscoverManager(e){let t;console.log("Looking up integration manager via .well-known"),(e.startsWith("http:")||e.startsWith("https:"))&&(e=c.a.parse(e).host);try{const n=await fetch(`https://${e}/.well-known/matrix/integrations`);t=await n.json()}catch(e){return console.error(e),console.warn("Failed to locate integration manager"),null}if(!t||!t["m.integrations_widget"])return console.warn("Missing integrations widget on .well-known response"),null;const n=t["m.integrations_widget"];if(!n.url||!n.data||!n.data.api_url)return console.warn("Malformed .well-known response for integrations widget"),null;const o=new b(_.Account,n.data.api_url,n.url);return console.log("Got an integration manager (untested)"),o}}r()(w,"instance",void 0),window.mxIntegrationManagers=w},function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var c,l=[],u=!1,d=-1;function h(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=s(h);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new m(e,t)),1!==l.length||u||s(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(385);function r(e){this._eventTimelineSet=e,this._roomId=e.room?e.room.roomId:null,this._events=[],this._baseIndex=0,this._startState=new o.a(this._roomId),this._startState.paginationToken=null,this._endState=new o.a(this._roomId),this._endState.paginationToken=null,this._prevTimeline=null,this._nextTimeline=null,this._paginationRequests={b:null,f:null},this._name=this._roomId+":"+(new Date).toISOString()}r.BACKWARDS="b",r.FORWARDS="f",r.prototype.initialiseState=function(e){if(this._events.length>0)throw new Error("Cannot initialise state after events are added");for(const t of e)Object.freeze(t);this._startState.setStateEvents(e),this._endState.setStateEvents(e)},r.prototype.forkLive=function(e){const t=this.getState(e),n=new r(this._eventTimelineSet);return n._startState=t.clone(),n._endState=t,this._endState=t.clone(),n},r.prototype.fork=function(e){const t=this.getState(e),n=new r(this._eventTimelineSet);return n._startState=t.clone(),n._endState=t.clone(),n},r.prototype.getRoomId=function(){return this._roomId},r.prototype.getFilter=function(){return this._eventTimelineSet.getFilter()},r.prototype.getTimelineSet=function(){return this._eventTimelineSet},r.prototype.getBaseIndex=function(){return this._baseIndex},r.prototype.getEvents=function(){return this._events},r.prototype.getState=function(e){if(e==r.BACKWARDS)return this._startState;if(e==r.FORWARDS)return this._endState;throw new Error("Invalid direction '"+e+"'")},r.prototype.getPaginationToken=function(e){return this.getState(e).paginationToken},r.prototype.setPaginationToken=function(e,t){this.getState(t).paginationToken=e},r.prototype.getNeighbouringTimeline=function(e){if(e==r.BACKWARDS)return this._prevTimeline;if(e==r.FORWARDS)return this._nextTimeline;throw new Error("Invalid direction '"+e+"'")},r.prototype.setNeighbouringTimeline=function(e,t){if(this.getNeighbouringTimeline(t))throw new Error("timeline already has a neighbouring timeline - cannot reset neighbour (direction: "+t+")");if(t==r.BACKWARDS)this._prevTimeline=e;else{if(t!=r.FORWARDS)throw new Error("Invalid direction '"+t+"'");this._nextTimeline=e}this.setPaginationToken(null,t)},r.prototype.addEvent=function(e,t){const n=t?this._startState:this._endState,o=this.getTimelineSet();let i;o.room&&o.room.getUnfilteredTimelineSet()===o&&(r.setEventMetadata(e,n,t),e.isState()&&(n.setStateEvents([e]),e.sender&&("m.room.member"!==e.getType()||t)||r.setEventMetadata(e,n,t))),i=t?0:this._events.length,this._events.splice(i,0,e),t&&this._baseIndex++},r.setEventMetadata=function(e,t,n){e.sender=t.getSentinelMember(e.getSender()),"m.room.member"===e.getType()&&(e.target=t.getSentinelMember(e.getStateKey())),e.isState()&&n&&(e.forwardLooking=!1)},r.prototype.removeEvent=function(e){for(let t=this._events.length-1;t>=0;t--){const n=this._events[t];if(n.getId()==e)return this._events.splice(t,1),t<this._baseIndex&&this._baseIndex--,n}return null},r.prototype.toString=function(){return this._name}},function(e,t,n){"use strict";var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(81),c=n.n(s),l=n(90),u=n.n(l),d=n(223),h=n(88),p=n(91),m=n(97),g=n(150),f=n(320);const _=(e,t)=>{let n=[];return h.a.getValue("lowBandwidth")||(n=t||[],e&&(n=[e,...n])),Array.from(new Set(n))};t.a=e=>{const{name:t,idName:n,title:o,url:i,urls:l,width:h=40,height:b=40,resizeMethod:v="crop",defaultToInitialLetter:E=!0,onClick:y,inputRef:S,className:T}=e,w=a()(e,["name","idName","title","url","urls","width","height","resizeMethod","defaultToInitialLetter","onClick","inputRef","className"]),[C,x]=(({url:e,urls:t})=>{const[n,o]=Object(s.useState)(_(e,t)),[r,i]=Object(s.useState)(0),a=Object(s.useCallback)(()=>{i(e=>e+1)},[]);Object(s.useEffect)(()=>{o(_(e,t)),i(0)},[e,JSON.stringify(t)]);const c=Object(s.useContext)(m.a),l=Object(s.useCallback)((e,t)=>{"ERROR"!==e&&t!==e&&i(0)},[]);Object(g.a)(c,"sync",l);return[n[r],a]})({url:i,urls:l});if(!C&&E){const e=d.e(t),i=c.a.createElement("span",{className:"mx_BaseAvatar_initial","aria-hidden":"true",style:{fontSize:Object(f.a)(.65*h),width:Object(f.a)(h),lineHeight:Object(f.a)(b)}},e),a=c.a.createElement("img",{className:"mx_BaseAvatar_image",src:d.d(n||t),alt:"",title:o,onError:x,style:{width:Object(f.a)(h),height:Object(f.a)(b)},"aria-hidden":"true"});return y?c.a.createElement(p.a,r()({},w,{element:"span",className:u()("mx_BaseAvatar",T),onClick:y,inputRef:S}),i,a):c.a.createElement("span",r()({className:u()("mx_BaseAvatar",T),ref:S},w,{role:"presentation"}),i,a)}return y?c.a.createElement(p.a,r()({className:u()("mx_BaseAvatar mx_BaseAvatar_image",T),element:"img",src:C,onClick:y,onError:x,style:{width:Object(f.a)(h),height:Object(f.a)(b)},title:o,alt:"",inputRef:S},w)):c.a.createElement("img",r()({className:u()("mx_BaseAvatar mx_BaseAvatar_image",T),src:C,onError:x,style:{width:Object(f.a)(h),height:Object(f.a)(b)},title:o,alt:"",ref:S},w))}},function(e,t,n){"use strict";let o,r;n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),function(e){e.RoomCanonicalAlias="m.room.canonical_alias",e.RoomCreate="m.room.create",e.RoomJoinRules="m.room.join_rules",e.RoomMember="m.room.member",e.RoomThirdPartyInvite="m.room.third_party_invite",e.RoomPowerLevels="m.room.power_levels",e.RoomName="m.room.name",e.RoomTopic="m.room.topic",e.RoomAvatar="m.room.avatar",e.RoomPinnedEvents="m.room.pinned_events",e.RoomEncryption="m.room.encryption",e.RoomHistoryVisibility="m.room.history_visibility",e.RoomGuestAccess="m.room.guest_access",e.RoomServerAcl="m.room.server_acl",e.RoomTombstone="m.room.tombstone",e.RoomAliases="m.room.aliases",e.RoomRedaction="m.room.redaction",e.RoomMessage="m.room.message",e.RoomMessageEncrypted="m.room.encrypted",e.Sticker="m.sticker",e.CallInvite="m.call.invite",e.CallCandidates="m.call.candidates",e.CallAnswer="m.call.answer",e.CallHangup="m.call.hangup",e.CallReject="m.call.reject",e.CallSelectAnswer="m.call.select_answer",e.CallNegotiate="m.call.negotiate",e.CallReplaces="m.call.replaces",e.KeyVerificationRequest="m.key.verification.request",e.KeyVerificationStart="m.key.verification.start",e.KeyVerificationCancel="m.key.verification.cancel",e.KeyVerificationMac="m.key.verification.mac",e.RoomMessageFeedback="m.room.message.feedback",e.Typing="m.typing",e.Receipt="m.receipt",e.Presence="m.presence",e.FullyRead="m.fully_read",e.Tag="m.tag",e.PushRules="m.push_rules",e.Direct="m.direct",e.IgnoredUserList="m.ignored_user_list",e.RoomKey="m.room_key",e.RoomKeyRequest="m.room_key_request",e.ForwardedRoomKey="m.forwarded_room_key",e.Dummy="m.dummy"}(o||(o={})),function(e){e.Text="m.text",e.Emote="m.emote",e.Notice="m.notice",e.Image="m.image",e.File="m.file",e.Audio="m.audio",e.Location="m.location",e.Video="m.video"}(r||(r={}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var o=n(0),r=n(533),i=n(264),a=n(837),s=n(202),c=n(24);class l{constructor(e,t){this._indexedDB=e,this._dbName=t,this._backendPromise=null,this._backend=null}static exists(e,t){return c.a(e,t)}startup(){return this._backendPromise||(this._backendPromise=new Promise((e,t)=>{if(!this._indexedDB)return void t(new Error("no indexeddb support available"));o.a.log("connecting to indexeddb "+this._dbName);const n=this._indexedDB.open(this._dbName,a.b);n.onupgradeneeded=e=>{const t=e.target.result,n=e.oldVersion;a.c(t,n)},n.onblocked=()=>{o.a.log("can't yet open IndexedDBCryptoStore because it is open elsewhere")},n.onerror=e=>{o.a.log("Error connecting to indexeddb",e),t(e.target.error)},n.onsuccess=t=>{const n=t.target.result;o.a.log("connected to indexeddb "+this._dbName),e(new a.a(n))}}).then(e=>e.doTxn("readonly",[l.STORE_INBOUND_GROUP_SESSIONS,l.STORE_INBOUND_GROUP_SESSIONS_WITHHELD],t=>{e.getEndToEndInboundGroupSession("","",t,()=>{})}).then(()=>e)).catch(t=>{if("VersionError"===t.name)throw o.a.warn("Crypto DB is too new for us to use!",t),new s.a(s.a.TOO_NEW);o.a.warn("unable to connect to indexeddb "+this._dbName+": falling back to localStorage store: "+t);try{return new r.a(e.localStorage)}catch(t){return o.a.warn("unable to open localStorage: falling back to in-memory store: "+t),new i.a}}).then(e=>{this._backend=e})),this._backendPromise}deleteAllData(){return new Promise((e,t)=>{if(!this._indexedDB)return void t(new Error("no indexeddb support available"));o.a.log("Removing indexeddb instance: "+this._dbName);const n=this._indexedDB.deleteDatabase(this._dbName);n.onblocked=()=>{o.a.log("can't yet delete IndexedDBCryptoStore because it is open elsewhere")},n.onerror=e=>{o.a.log("Error deleting data from indexeddb",e),t(e.target.error)},n.onsuccess=()=>{o.a.log("Removed indexeddb instance: "+this._dbName),e()}}).catch(e=>{o.a.warn("unable to delete IndexedDBCryptoStore: "+e)})}getOrAddOutgoingRoomKeyRequest(e){return this._backend.getOrAddOutgoingRoomKeyRequest(e)}getOutgoingRoomKeyRequest(e){return this._backend.getOutgoingRoomKeyRequest(e)}getOutgoingRoomKeyRequestByState(e){return this._backend.getOutgoingRoomKeyRequestByState(e)}getAllOutgoingRoomKeyRequestsByState(e){return this._backend.getAllOutgoingRoomKeyRequestsByState(e)}getOutgoingRoomKeyRequestsByTarget(e,t,n){return this._backend.getOutgoingRoomKeyRequestsByTarget(e,t,n)}updateOutgoingRoomKeyRequest(e,t,n){return this._backend.updateOutgoingRoomKeyRequest(e,t,n)}deleteOutgoingRoomKeyRequest(e,t){return this._backend.deleteOutgoingRoomKeyRequest(e,t)}getAccount(e,t){this._backend.getAccount(e,t)}storeAccount(e,t){this._backend.storeAccount(e,t)}getCrossSigningKeys(e,t){this._backend.getCrossSigningKeys(e,t)}getSecretStorePrivateKey(e,t,n){this._backend.getSecretStorePrivateKey(e,t,n)}storeCrossSigningKeys(e,t){this._backend.storeCrossSigningKeys(e,t)}storeSecretStorePrivateKey(e,t,n){this._backend.storeSecretStorePrivateKey(e,t,n)}countEndToEndSessions(e,t){this._backend.countEndToEndSessions(e,t)}getEndToEndSession(e,t,n,o){this._backend.getEndToEndSession(e,t,n,o)}getEndToEndSessions(e,t,n){this._backend.getEndToEndSessions(e,t,n)}getAllEndToEndSessions(e,t){this._backend.getAllEndToEndSessions(e,t)}storeEndToEndSession(e,t,n,o){this._backend.storeEndToEndSession(e,t,n,o)}storeEndToEndSessionProblem(e,t,n){return this._backend.storeEndToEndSessionProblem(e,t,n)}getEndToEndSessionProblem(e,t){return this._backend.getEndToEndSessionProblem(e,t)}filterOutNotifiedErrorDevices(e){return this._backend.filterOutNotifiedErrorDevices(e)}getEndToEndInboundGroupSession(e,t,n,o){this._backend.getEndToEndInboundGroupSession(e,t,n,o)}getAllEndToEndInboundGroupSessions(e,t){this._backend.getAllEndToEndInboundGroupSessions(e,t)}addEndToEndInboundGroupSession(e,t,n,o){this._backend.addEndToEndInboundGroupSession(e,t,n,o)}storeEndToEndInboundGroupSession(e,t,n,o){this._backend.storeEndToEndInboundGroupSession(e,t,n,o)}storeEndToEndInboundGroupSessionWithheld(e,t,n,o){this._backend.storeEndToEndInboundGroupSessionWithheld(e,t,n,o)}storeEndToEndDeviceData(e,t){this._backend.storeEndToEndDeviceData(e,t)}getEndToEndDeviceData(e,t){this._backend.getEndToEndDeviceData(e,t)}storeEndToEndRoom(e,t,n){this._backend.storeEndToEndRoom(e,t,n)}getEndToEndRooms(e,t){this._backend.getEndToEndRooms(e,t)}getSessionsNeedingBackup(e){return this._backend.getSessionsNeedingBackup(e)}countSessionsNeedingBackup(e){return this._backend.countSessionsNeedingBackup(e)}unmarkSessionsNeedingBackup(e,t){return this._backend.unmarkSessionsNeedingBackup(e,t)}markSessionsNeedingBackup(e,t){return this._backend.markSessionsNeedingBackup(e,t)}doTxn(e,t,n){return this._backend.doTxn(e,t,n)}}l.STORE_ACCOUNT="account",l.STORE_SESSIONS="sessions",l.STORE_INBOUND_GROUP_SESSIONS="inbound_group_sessions",l.STORE_INBOUND_GROUP_SESSIONS_WITHHELD="inbound_group_sessions_withheld",l.STORE_DEVICE_DATA="device_data",l.STORE_ROOMS="rooms",l.STORE_BACKUP="sessions_needing_backup"}).call(this,n(5))},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(549),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return v}));var o=n(82),r=n.n(o),i=n(139),a=n(87),s=n(88),c=n(300),l=n(116),u=n(247),d=n(122),h=n(95),p=n(133),m=n(115),g=n(86),f=n(117);const _=3;function b(e){var t;return`${null!==(t=e.roomId)&&void 0!==t?t:g.a.get().getUserId()}::${e.id}`}class v extends i.a{constructor(){super(a.a,{}),r()(this,"widgetMap",new Map),r()(this,"roomMap",new Map),r()(this,"onWidgetEchoStoreUpdate",(e,t)=>{this.initRoom(e),this.loadRoomWidgets(this.matrixClient.getRoom(e)),this.emit(m.b)}),r()(this,"onRoomStateEvents",e=>{if("im.vector.modular.widgets"!==e.getType())return;const t=e.getRoomId();this.initRoom(t),this.loadRoomWidgets(this.matrixClient.getRoom(t)),this.emit(m.b)}),r()(this,"getRoom",e=>this.roomMap.get(e)),r()(this,"onPinnedWidgetsChange",(e,t)=>{this.initRoom(t);const n=s.a.getValue(e,t),o=this.getRoom(t),r={};for(const e of Object.keys(n)){var i;const a=n[e];(null===(i=o.widgets)||void 0===i?void 0:i.some(t=>t.id===e))?r[e]=a:console.warn(`Skipping pinned widget update for ${e} in ${t} -- wrong room`)}o.pinned=r,this.emit(t),this.emit(m.b)}),s.a.watchSetting("Widgets.pinned",null,this.onPinnedWidgetsChange),c.a.on("update",this.onWidgetEchoStoreUpdate)}static get instance(){return v.internalInstance}initRoom(e){this.roomMap.has(e)||this.roomMap.set(e,{pinned:{},widgets:[]})}async onReady(){this.matrixClient.on("RoomState.events",this.onRoomStateEvents),this.matrixClient.getRooms().forEach(e=>{const t=s.a.getValue("Widgets.pinned",e.roomId);(t||d.a.getRoomWidgets(e).length)&&this.initRoom(e.roomId),t&&(this.getRoom(e.roomId).pinned=t),this.loadRoomWidgets(e)}),this.emit(m.b)}async onNotReady(){this.matrixClient.off("RoomState.events",this.onRoomStateEvents),this.widgetMap=new Map,this.roomMap=new Map,await this.reset({})}async onAction(e){}generateApps(e){return c.a.getEchoedRoomWidgets(e.roomId,d.a.getRoomWidgets(e)).map(e=>d.a.makeAppConfig(e.getStateKey(),e.getContent(),e.getSender(),e.getRoomId(),e.getId()))}loadRoomWidgets(e){if(!e)return;const t=this.roomMap.get(e.roomId);t.widgets=[],Array.from(this.widgetMap.values()).forEach(t=>{t.roomId===e.roomId&&this.widgetMap.delete(b(t))}),this.generateApps(e).forEach(e=>{const n=this.widgetMap.get(b(e));n&&console.warn(`Possible widget ID conflict for ${e.id} - wants to store in room ${e.roomId} but is currently stored as ${n.roomId} - letting the want win`),this.widgetMap.set(b(e),e),t.widgets.push(e)}),this.emit(e.roomId)}isPinned(e,t){return!!this.getPinnedApps(e).find(e=>e.id===t)}canPin(e,t){return this.getPinnedApps(e).length<_}pinWidget(e,t){const n=this.getRoom(e);if(!n)return;this.getPinnedApps(e).filter(e=>!n.pinned[e.id]).forEach(t=>{this.setPinned(e,t.id,!0)}),this.setPinned(e,t,!0),l.a.getRoomId()===e&&a.a.dispatch({action:"appsDrawer",show:!0})}unpinWidget(e,t){this.setPinned(e,t,!1)}setPinned(e,t,n){const o=this.getRoom(e);o&&(!1===o.pinned[t]&&n&&delete o.pinned[t],o.pinned[t]=n,Object.keys(o).forEach(e=>{o.widgets.some(t=>t.id===e)&&o.pinned[e]||delete o.pinned[e]}),s.a.setValue("Widgets.pinned",e,h.a.ROOM_ACCOUNT,o.pinned),this.emit(e),this.emit(m.b))}movePinnedWidget(e,t,n){const o=this.getRoom(e);if(!o||!1===o.pinned[t])return;const r=this.getPinnedApps(e).map(e=>e.id),i=r.findIndex(e=>e===t);n>0?r.splice(i,2,r[i+1],r[i]):r.splice(i-1,2,r[i],r[i-1]);const a={};r.forEach(e=>{a[e]=!0}),Object.keys(o.pinned).forEach(e=>{void 0===a[e]&&(a[e]=o.pinned[e])}),o.pinned=a,s.a.setValue("Widgets.pinned",e,h.a.ROOM_ACCOUNT,o.pinned),this.emit(e),this.emit(m.b)}getPinnedApps(e){const t=this.getRoom(e);if(!t)return[];const n=t.widgets.find(e=>void 0===t.pinned[e.id]&&p.a.JITSI.matches(e.type)),o=Object.keys(t.pinned).filter(e=>t.pinned[e]).map(t=>Array.from(this.widgetMap.values()).find(n=>n.roomId===e&&n.id===t)).filter(Boolean).slice(0,n?_-1:_);n&&o.push(n);const r=o.map(e=>b(e)),i=t.widgets.map(e=>b(e)),a=Object(f.g)(r,i);if(Object(f.d)(a,r)){const t=Object(f.b)(a,r);console.warn(e+" appears to have a conflict for which widgets belong to it. Widget UIDs are: ",[...t.added,...t.removed])}return o}getApps(e){const t=this.getRoom(e);return(null==t?void 0:t.widgets)||[]}doesRoomHaveConference(e){const t=this.getRoom(e.roomId);if(!t)return!1;const n=t.widgets.filter(e=>p.a.JITSI.matches(e.type)),o=c.a.roomHasPendingWidgetsOfType(e.roomId,[],p.a.JITSI);return n.length>0||o}isJoinedToConferenceIn(e){const t=this.getRoom(e.roomId);if(!t)return!1;return t.widgets.filter(e=>p.a.JITSI.matches(e.type)).some(e=>u.a.getWidgetPersistence(e.id))}}r()(v,"internalInstance",new v),window.mxWidgetStore=v.instance},function(e,t,n){"use strict";n.d(t,"d",(function(){return y})),n.d(t,"a",(function(){return S})),n.d(t,"c",(function(){return x})),n.d(t,"e",(function(){return O})),n.d(t,"b",(function(){return k})),n.d(t,"f",(function(){return R}));var o=n(89),r=n(85),i=n(86),a=n(391),s=n(392),c=n(83),l=n(124),u=n(295),d=n(718),h=n(251),p=n(88),m=n(248);let g={},f={},_=!1,b=!1,v={};function E(){return _}function y(){return _}class S extends Error{constructor(){super("Secret storage access canceled")}}async function T(){const e=r.getComponent("dialogs.QuestionDialog"),[t]=await o.a.createDialog(e,{title:Object(c.a)("Cancel entering passphrase?"),description:Object(c.a)("Are you sure you want to cancel entering passphrase?"),danger:!1,button:Object(c.a)("Go Back"),cancelButton:Object(c.a)("Cancel")}).finished;return!t}function w(e){return async({passphrase:t,recoveryKey:n})=>t?Object(a.a)(t,e.passphrase.salt,e.passphrase.iterations):Object(s.a)(n)}function C(e,t,n){E()&&(g[e]=n,f[e]=t)}const x={getSecretStorageKey:async function({keys:e},t){var n;const r=Object.entries(e);if(r.length>1)throw new Error("Multiple storage key requests not implemented");const[a,s]=r[0];if(E()&&g[a])return[a,g[a]];if(v.key&&await i.a.get().checkSecretStorageKey(v.key,s))return C(a,s,v.key),[a,v.key];const c=null===(n=m.a.getSecretStorageKey)||void 0===n?void 0:n.call(m.a);if(c)return console.log("Using key from security customisations (secret storage)"),C(a,s,c),[a,c];if(b)throw new Error("Could not unlock non-interactively");const l=w(s),{finished:u}=o.a.createTrackedDialog("Access Secret Storage dialog","",d.a,{keyInfo:s,checkPrivateKey:async e=>{const t=await l(e);return await i.a.get().checkSecretStorageKey(t,s)}},null,!1,!1,{onBeforeClose:async e=>"backgroundClick"!==e||T()}),[h]=await u;if(!h)throw new S;const p=await l(h);return C(a,s,p),[a,p]},cacheSecretStorageKey:C,onSecretRequested:async function(e,t,n,o,r){console.log("onSecretRequested",e,t,n,o,r);const a=i.a.get();if(e===a.getUserId())if(r&&r.isVerified()){if("m.cross_signing.master"===o||"m.cross_signing.self_signing"===o||"m.cross_signing.user_signing"===o){const e=a.getCrossSigningCacheCallbacks();if(!e.getCrossSigningKeyCache)return;const n=o.replace("m.cross_signing.",""),r=await e.getCrossSigningKeyCache(n);return r||console.log(`${n} requested by ${t}, but not found in cache`),r&&Object(l.encodeBase64)(r)}if("m.megolm_backup.v1"===o){const e=await a._crypto.getSessionBackupPrivateKey();return e||console.log(`session backup key requested by ${t}, but not found in cache`),e&&Object(l.encodeBase64)(e)}console.warn("onSecretRequested didn't recognise the secret named ",o)}else console.log("Ignoring secret request from untrusted device "+t)},getDehydrationKey:async function(e,t){var n;const r=null===(n=m.a.getSecretStorageKey)||void 0===n?void 0:n.call(m.a);if(r)return console.log("Using key from security customisations (dehydration)"),r;const i=w(e),{finished:a}=o.a.createTrackedDialog("Access Secret Storage dialog","",d.a,{keyInfo:e,checkPrivateKey:async e=>{const n=await i(e);try{return t(n),!0}catch(e){return!1}}},null,!1,!1,{onBeforeClose:async e=>"backgroundClick"!==e||T()}),[s]=await a;if(!s)throw new S;const c=await i(s);return v={key:new Uint8Array(c),keyInfo:e},c}};async function O(){let e;const{finished:t}=o.a.createTrackedDialog("Restore Backup","",h.a,{showSummary:!1,keyCallback:t=>e=t},null,!1,!0);if(!await t)throw new Error("Key backup prompt cancelled");return e}async function k(e=(async()=>{}),t=!1){const a=i.a.get();_=!0;try{if(!await a.hasSecretStorageKey()||t){const{finished:e}=o.a.createTrackedDialogAsync("Create Secret Storage dialog","",n.e(24).then(n.bind(null,1606)),{forceReset:t},null,!1,!0,{onBeforeClose:async e=>"backgroundClick"!==e||!Object(u.c)()}),[r]=await e;if(!r)throw new Error("Secret storage creation canceled")}else{const e=r.getComponent("dialogs.InteractiveAuthDialog");await a.bootstrapCrossSigning({authUploadDeviceSigningKeys:async t=>{const{finished:n}=o.a.createTrackedDialog("Cross-signing keys dialog","",e,{title:Object(c.a)("Setting up keys"),matrixClient:a,makeRequest:t}),[r]=await n;if(!r)throw new Error("Cross-signing key upload auth canceled")}}),await a.bootstrapSecretStorage({getKeyBackupPassphrase:O});const t=Object.keys(g)[0];if(t&&p.a.getValue("feature_dehydration")){let e={};f[t]&&f[t].passphrase&&(e={passphrase:f[t].passphrase}),console.log("Setting dehydration key"),await a.setDehydrationKey(g[t],e,"Backup device")}else t?console.log("Not setting dehydration key: feature disabled"):console.warn("Not setting dehydration key: no SSSS key found")}return await e()}catch(e){var s;null===(s=m.a.catchAccessSecretStorageError)||void 0===s||s.call(m.a,e),console.error(e)}finally{_=!1,E()||(g={},f={})}}async function R(e){const t=v.key;let n=!1;if(t&&await e.isSecretStorageReady()){console.log("Trying to set up cross-signing using dehydration key"),_=!0,b=!0;try{await e.checkOwnCrossSigningTrust();let o={};v.keyInfo&&v.keyInfo.passphrase&&(o={passphrase:v.keyInfo.passphrase}),await e.setDehydrationKey(t,o,"Backup device");const r=await e.getKeyBackupVersion();r&&(n=!0,e.restoreKeyBackupWithSecretStorage(r).finally(()=>{_=!1,b=!1,E()||(g={},f={})}))}finally{v={},n||(_=!1,b=!1,E()||(g={},f={}))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(371);class u extends a.a.Component{render(){let e=a.a.createElement("span",{className:"mx_SettingsFlag_label"},this.props.label),t=a.a.createElement(l.a,{checked:this.props.value,disabled:this.props.disabled,onChange:this.props.onChange,"aria-label":this.props.label});if(this.props.toggleInFront){const n=e;e=t,t=n}const n="mx_SettingsFlag "+(this.props.className||"");return a.a.createElement("div",{className:n},e,t)}}r()(u,"propTypes",{value:c.a.bool.isRequired,onChange:c.a.func.isRequired,label:c.a.string.isRequired,disabled:c.a.bool,toggleInFront:c.a.bool,className:c.a.string})},function(e,t,n){"use strict";class o{constructor(e){const t={},n=this._getOverriddenMethods(this,t);for(const o of Object.keys(n))"function"==typeof n[o]&&(t[o]=e[o],e[o]=n[o])}_getOverriddenMethods(){throw new Error("Not implemented")}}o.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let n=0;n<e.__mixins.length;n++)if(e.__mixins[n].constructor===t)return e.__mixins[n];const o=new t(e,n);return e.__mixins.push(o),o},e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(82),r=n.n(o),i=n(139),a=n(87),s=n(120),c=n(244),l=n(117),u=n(245);class d extends u.b{constructor(e=!1,t,n){super(),this.byTileCount=e,this.tagId=t,this.getRoomFn=n,r()(this,"rooms",[]),r()(this,"states",{}),r()(this,"onRoomNotificationStateUpdate",()=>{this.calculateTotalState()})}get symbol(){return null}setRooms(e){if(this.byTileCount)return this.rooms=e,void this.calculateTotalState();const t=this.rooms,n=Object(l.b)(t,e);this.rooms=e;for(const e of n.removed){const t=this.states[e.roomId];t&&(delete this.states[e.roomId],t.off(u.a,this.onRoomNotificationStateUpdate))}for(const e of n.added){const t=this.getRoomFn(e);t.on(u.a,this.onRoomNotificationStateUpdate),this.states[e.roomId]=t}this.calculateTotalState()}getForRoom(e){const t=this.states[e.roomId];if(!t)throw new Error("Unknown room for notification state");return t}destroy(){super.destroy();for(const e of Object.values(this.states))e.off(u.a,this.onRoomNotificationStateUpdate);this.states={}}calculateTotalState(){const e=this.snapshot();if(this.byTileCount)this._color=c.a.Red,this._count=this.rooms.length;else{this._count=0,this._color=c.a.None;for(const e of Object.values(this.states))this._count+=e.count,this._color=Math.max(this.color,e.color)}this.emitIfUpdated(e)}}var h=n(86),p=n(192),m=n(588),g=n(324),f=n(589);class _ extends u.b{constructor(e){super(),this.room=e,r()(this,"handleReadReceipt",(e,t)=>{Object(m.a)(e,h.a.get())&&t.roomId===this.room.roomId&&this.updateNotificationState()}),r()(this,"handleMembershipUpdate",()=>{this.updateNotificationState()}),r()(this,"handleRoomEventUpdate",e=>{e.getRoomId()===this.room.roomId&&this.updateNotificationState()}),r()(this,"handleAccountDataUpdate",e=>{"m.push_rules"===e.getType()&&this.updateNotificationState()}),this.room.on("Room.receipt",this.handleReadReceipt),this.room.on("Room.timeline",this.handleRoomEventUpdate),this.room.on("Room.redaction",this.handleRoomEventUpdate),this.room.on("Room.myMembership",this.handleMembershipUpdate),h.a.get().on("Event.decrypted",this.handleRoomEventUpdate),h.a.get().on("accountData",this.handleAccountDataUpdate),this.updateNotificationState()}get roomIsInvite(){return Object(p.b)(this.room.getMyMembership())===p.a.Invite}destroy(){super.destroy(),this.room.removeListener("Room.receipt",this.handleReadReceipt),this.room.removeListener("Room.timeline",this.handleRoomEventUpdate),this.room.removeListener("Room.redaction",this.handleRoomEventUpdate),this.room.removeListener("Room.myMembership",this.handleMembershipUpdate),h.a.get()&&(h.a.get().removeListener("Event.decrypted",this.handleRoomEventUpdate),h.a.get().removeListener("accountData",this.handleAccountDataUpdate))}updateNotificationState(){const e=this.snapshot();if(g.f(this.room.roomId)===g.d)this._color=c.a.None,this._symbol=null,this._count=0;else if(this.roomIsInvite)this._color=c.a.Red,this._symbol="!",this._count=1;else{const e=g.g(this.room,"highlight"),t=g.g(this.room,"total"),n=t||(e||0);if(e>0)this._color=c.a.Red,this._count=n,this._symbol=null;else if(t>0)this._color=c.a.Grey,this._count=n,this._symbol=null;else{const e=f.a(this.room);this._color=e?c.a.Bold:c.a.None,this._count=0,this._symbol=null}}this.emitIfUpdated(e)}}class b extends u.b{constructor(){super(),r()(this,"totalStatesWithUnread",0),this._symbol=null,this._count=0,this._color=c.a.None}get numUnreadStates(){return this.totalStatesWithUnread}add(e,t=!1){e.symbol&&t&&(this._symbol=e.symbol),e.count&&(this._count+=e.count),e.color>this.color&&(this._color=e.color),e.hasUnreadCount&&this.totalStatesWithUnread++}}class v extends i.a{constructor(){super(a.a,{}),r()(this,"roomMap",new Map),r()(this,"listMap",new Map)}get globalState(){if(!this.matrixClient)return new b;const e=new b;for(const t of this.matrixClient.getVisibleRooms())e.add(this.getRoomState(t));return e}getListState(e){if(this.listMap.has(e))return this.listMap.get(e);const t=e===s.a.Invite,n=new d(t,e,e=>this.getRoomState(e));return this.listMap.set(e,n),n}getRoomState(e){return this.roomMap.has(e)||this.roomMap.set(e,new _(e)),this.roomMap.get(e)}static get instance(){return v.internalInstance}async onNotReady(){for(const e of this.roomMap.values())e.destroy()}async onAction(e){return Promise.resolve()}}r()(v,"internalInstance",new v)},function(e,t,n){"use strict";n.d(t,"c",(function(){return S})),n.d(t,"e",(function(){return T})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return f}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(98);const c=({children:e,inputRef:t})=>{const[n,o,r]=T(t);return e({onFocus:n,isActive:o,ref:r})};var l=n(94),u=n.n(l),d=n(99),h=n.n(d),p=n(91);const m=e=>{let{inputRef:t}=e,n=h()(e,["inputRef"]);const[o,r,i]=T(t);return a.a.createElement(p.a,u()({},n,{onFocus:o,inputRef:i,tabIndex:r?0:-1}))};var g=n(113);const f=e=>{let{inputRef:t}=e,n=h()(e,["inputRef"]);const[o,r,i]=T(t);return a.a.createElement(g.a,u()({},n,{onFocus:o,inputRef:i,tabIndex:r?0:-1}))};function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const v=Object(i.createContext)({state:{activeRef:null,refs:[]},dispatch:()=>{}});var E;v.displayName="RovingTabIndexContext",function(e){e.Register="REGISTER",e.Unregister="UNREGISTER",e.SetFocus="SET_FOCUS"}(E||(E={}));const y=(e,t)=>{switch(t.type){case E.Register:{if(0===e.refs.length)return b(b({},e),{},{activeRef:t.payload.ref,refs:[t.payload.ref]});if(e.refs.includes(t.payload.ref))return e;let n=e.refs.findIndex(e=>2&e.current.compareDocumentPosition(t.payload.ref.current));return n<0&&(n=e.refs.length),b(b({},e),{},{refs:[...e.refs.slice(0,n),t.payload.ref,...e.refs.slice(n)]})}case E.Unregister:{const n=e.refs.filter(e=>e!==t.payload.ref);if(n.length===e.refs.length)return e;if(e.activeRef===t.payload.ref){const o=e.refs.findIndex(e=>e===t.payload.ref);return b(b({},e),{},{activeRef:o>=n.length?n[n.length-1]:n[o],refs:n})}return b(b({},e),{},{refs:n})}case E.SetFocus:return b(b({},e),{},{activeRef:t.payload.ref});default:return e}},S=({children:e,handleHomeEnd:t,onKeyDown:n})=>{const[o,r]=Object(i.useReducer)(y,{activeRef:null,refs:[]}),c=Object(i.useMemo)(()=>({state:o,dispatch:r}),[o]),l=Object(i.useCallback)(e=>{let o=!1;if(t&&"INPUT"!==e.target.tagName)switch(e.key){case s.a.HOME:o=!0,c.state.refs.length>0&&c.state.refs[0].current.focus();break;case s.a.END:o=!0,c.state.refs.length>0&&c.state.refs[c.state.refs.length-1].current.focus()}if(o)e.preventDefault(),e.stopPropagation();else if(n)return n(e,c.state)},[c.state,n,t]);return a.a.createElement(v.Provider,{value:c},e({onKeyDownHandler:l}))},T=e=>{const t=Object(i.useContext)(v);let n=Object(i.useRef)(null);e&&(n=e),Object(i.useLayoutEffect)(()=>(t.dispatch({type:E.Register,payload:{ref:n}}),()=>{t.dispatch({type:E.Unregister,payload:{ref:n}})}),[]);return[Object(i.useCallback)(()=>{t.dispatch({type:E.SetFocus,payload:{ref:n}})},[n,t]),t.state.activeRef===n,n]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(6),r=n(128),i=n(1);function a(e,t){this.roomId=e,this.userId=t,this.typing=!1,this.name=t,this.rawDisplayName=t,this.powerLevel=0,this.powerLevelNorm=0,this.user=null,this.membership=null,this.events={member:null},this._isOutOfBand=!1,this._updateModifiedTime()}i.o(a,o.EventEmitter),a.prototype.markOutOfBand=function(){this._isOutOfBand=!0},a.prototype.isOutOfBand=function(){return this._isOutOfBand},a.prototype.setMembershipEvent=function(e,t){if("m.room.member"!==e.getType())return;this._isOutOfBand=!1,this.events.member=e;const n=this.membership;this.membership=e.getDirectionalContent().membership;const o=this.name;this.name=function(e,t,n){if(!t||t===e)return e;if(!i.z(t))return e;if(!n)return t;let o=/@.+:.+/.test(t);o||(o=/[\u200E\u200F\u202A-\u202F]/.test(t));if(!o){const r=n.getUserIdsWithDisplayName(t);o=r.some(t=>t!==e)}if(o)return t+" ("+e+")";return t}(this.userId,e.getDirectionalContent().displayname,t),this.rawDisplayName=e.getDirectionalContent().displayname||this.userId,n!==this.membership&&(this._updateModifiedTime(),this.emit("RoomMember.membership",e,this,n)),o!==this.name&&(this._updateModifiedTime(),this.emit("RoomMember.name",e,this,o))},a.prototype.setPowerLevelEvent=function(e){if("m.room.power_levels"!==e.getType())return;const t=e.getDirectionalContent();let n=t.users_default||0;i.l(i.B(t.users),(function(e){n=Math.max(n,e)}));const o=this.powerLevel,r=this.powerLevelNorm;t.users&&void 0!==t.users[this.userId]?this.powerLevel=t.users[this.userId]:void 0!==t.users_default?this.powerLevel=t.users_default:this.powerLevel=0,this.powerLevelNorm=0,n>0&&(this.powerLevelNorm=100*this.powerLevel/n),o===this.powerLevel&&r===this.powerLevelNorm||(this._updateModifiedTime(),this.emit("RoomMember.powerLevel",e,this))},a.prototype.setTypingEvent=function(e){if("m.typing"!==e.getType())return;const t=this.typing;this.typing=!1;const n=e.getContent().user_ids;i.p(n)&&(-1!==n.indexOf(this.userId)&&(this.typing=!0),t!==this.typing&&(this._updateModifiedTime(),this.emit("RoomMember.typing",e,this)))},a.prototype._updateModifiedTime=function(){this._modified=Date.now()},a.prototype.getLastModifiedTime=function(){return this._modified},a.prototype.isKicked=function(){return"leave"===this.membership&&this.events.member.getSender()!==this.events.member.getStateKey()},a.prototype.getDMInviter=function(){if(this.events.member){const e=this.events.member;let t=e.getContent(),n=e.getSender();if("join"===t.membership&&(t=e.getPrevContent(),n=e.getUnsigned().prev_sender),"invite"===t.membership&&t.is_direct)return n}},a.prototype.getAvatarUrl=function(e,t,n,o,i,a){void 0===i&&(i=!0);const s=this.getMxcAvatarUrl();if(!s&&!i)return null;const c=Object(r.a)(e,s,t,n,o,a);return c||null},a.prototype.getMxcAvatarUrl=function(){return this.events.member?this.events.member.getDirectionalContent().avatar_url:this.user?this.user.avatarUrl:null}},function(e,t,n){"use strict";function o(e){let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let o=0;o<e;++o)t+=n.charAt(Math.floor(Math.random()*n.length));return t}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";e.exports=function(e,t,n,o,r,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,r,i,a,s],u=0;c=new Error("Invariant Violation: "+t.replace(/%s/g,(function(){return l[u++]})))}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";(function(e){var o=n(321),r=n(87),i=n(109),a=n(110),s=n(324),c=n(86),l=n(88);const u={orderedTags:null,orderedTagsAccountData:null,hasSynced:!1,joinedGroupIds:null,selectedTags:[],anchorTag:null};class d extends o.Store{constructor(){super(r.a),this._state=Object.assign({},u),l.a.monitorSetting("TagPanel.enableTagPanel",null)}_setState(e){this._state=Object.assign(this._state,e),this.__emitChange()}__onDispatch(e){switch(e.action){case"view_room":{const t=i.a.getGroupIdsForRoomId(e.room_id);this._updateBadges(t);break}case"MatrixActions.sync":{if("SYNCING"!==e.state&&"PREPARED"!==e.state||this._updateBadges(),"PREPARED"===e.prevState||"PREPARED"!==e.state)break;const t=e.matrixClient.getAccountData("im.vector.web.tag_ordering"),n=t?t.getContent():{};this._setState({orderedTagsAccountData:n.tags||null,removedTagsAccountData:n.removedTags||null,hasSynced:!0}),this._updateOrderedTags();break}case"MatrixActions.accountData":if("im.vector.web.tag_ordering"!==e.event_type)break;if(e.event_content._storeId===this.getStoreId())break;this._setState({orderedTagsAccountData:e.event_content?e.event_content.tags:null,removedTagsAccountData:e.event_content?e.event_content.removedTags:null}),this._updateOrderedTags();break;case"GroupActions.fetchJoinedGroups.success":this._setState({joinedGroupIds:e.result.groups.sort(),hasFetchedJoinedGroups:!0}),this._updateOrderedTags();break;case"TagOrderActions.moveTag.pending":this._setState({orderedTags:e.request.tags,removedTagsAccountData:e.request.removedTags});break;case"TagOrderActions.removeTag.pending":this._setState({removedTagsAccountData:e.request.removedTags}),this._updateOrderedTags();break;case"select_tag":{const t=!l.a.getValue("feature_communities_v2_prototypes");let n=[];if(e.shiftKey&&t){let t=this._state.orderedTags.indexOf(this._state.anchorTag),o=this._state.orderedTags.indexOf(e.tag);if(-1===t&&(t=o),t>o){const e=t;t=o,o=e}n=e.ctrlOrCmdKey?this._state.selectedTags:[],n=[...new Set(this._state.orderedTags.slice(t,o+1).concat(n))]}else n=e.ctrlOrCmdKey&&t?this._state.selectedTags.includes(e.tag)?this._state.selectedTags.filter(t=>t!==e.tag):[...this._state.selectedTags,e.tag]:1===this._state.selectedTags.length&&this._state.selectedTags.includes(e.tag)?[]:[e.tag],this._state.selectedTags.includes(e.tag)||this._setState({anchorTag:e.tag});this._setState({selectedTags:n}),a.a.trackEvent("FilterStore","select_tag")}break;case"deselect_tags":e.tag?this._setState({selectedTags:this._state.selectedTags.filter(t=>t!==e.tag)}):this._setState({selectedTags:[]}),a.a.trackEvent("FilterStore","deselect_tags");break;case"on_client_not_viable":case"on_logged_out":this._state=Object.assign({},u);break;case"setting_updated":"TagPanel.enableTagPanel"!==e.settingName||e.newValue||(this._setState({selectedTags:[]}),a.a.trackEvent("FilterStore","disable_tags"))}}_updateBadges(e=this._state.joinedGroupIds){if(e&&e.length){const t=c.a.get(),n={};e.forEach(e=>{const o=i.a.getGroupRooms(e).map(e=>t.getRoom(e.roomId)).filter(e=>null!=e),r=o&&s.e(o);n[e]=r&&0!==r.count?r:void 0});const o=Object.assign({},this._state.badges,n);this._setState({badges:o})}}_updateOrderedTags(){this._setState({orderedTags:this._state.hasSynced&&this._state.hasFetchedJoinedGroups?this._mergeGroupsAndTags():null})}_mergeGroupsAndTags(){const e=this._state.joinedGroupIds||[],t=this._state.orderedTagsAccountData||[],n=new Set(this._state.removedTagsAccountData||[]),o=t.filter(t=>("+"!==t[0]||e.includes(t))&&!n.has(t)),r=e.filter(e=>!t.includes(e)&&!n.has(e));return o.concat(r)}getGroupBadge(e){const t=this._state.badges;return t&&t[e]}getOrderedTags(){return this._state.orderedTags}getRemovedTagsAccountData(){return this._state.removedTagsAccountData}getStoreId(){return this._id||(this._id=Math.random().toString(16).slice(2,10)),this._id}getSelectedTags(){return this._state.selectedTags}}void 0===e.singletonGroupFilterOrderStore&&(e.singletonGroupFilterOrderStore=new d),t.a=e.singletonGroupFilterOrderStore}).call(this,n(5))},function(e,t,n){var o=n(180),r=n(131),i=n(395),a=n(228),s=n(204),c=function(e,t,n){var l,u,d,h=e&c.F,p=e&c.G,m=e&c.S,g=e&c.P,f=e&c.B,_=e&c.W,b=p?r:r[t]||(r[t]={}),v=b.prototype,E=p?o:m?o[t]:(o[t]||{}).prototype;for(l in p&&(n=t),n)(u=!h&&E&&void 0!==E[l])&&s(b,l)||(d=u?E[l]:n[l],b[l]=p&&"function"!=typeof E[l]?n[l]:f&&u?i(d,o):_&&E[l]==d?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):g&&"function"==typeof d?i(Function.call,d):d,g&&((b.virtual||(b.virtual={}))[l]=d,e&c.R&&v&&!v[l]&&a(v,l,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var o=n(229),r=n(550),i=n(396),a=Object.defineProperty;t.f=n(182)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(231)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){e.exports={default:n(867),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(549),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,i.default)(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}()},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(400),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";t.__esModule=!0;var o=a(n(891)),r=a(n(895)),i=a(n(400));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,r.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){e.exports={default:n(914),__esModule:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(234),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(){var e=window.pageYOffset,t=window.pageXOffset,n=t+window.innerWidth,o=e+window.innerHeight;return(0,i.default)({top:e,left:t,right:n,bottom:o})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return"private-react-beautiful-dnd-key-do-not-use-"+e};t.storeKey=o("store"),t.droppableIdKey=o("droppable-id"),t.dimensionMarshalKey=o("dimension-marshal"),t.styleContextKey=o("style-context"),t.canLiftContextKey=o("can-lift")},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return g}));var o=n(86),r=n(83),i=n(89),a=n(143),s=n(81),c=n.n(s),l=n(87),u=n(116);let d;function h(e){const t={[d.Invite]:[],[d.Join]:[],[d.Leave]:[]};for(const n of e)t[p(n.getMyMembership())].push(n);return t}function p(e){return"invite"===e?d.Invite:"join"===e?d.Join:d.Leave}function m(e){const t=p(e);return t===d.Join||t===d.Invite}async function g(e){let t=!0;const n=await o.a.get().getRoomUpgradeHistory(e);if(n&&n.length>0){n[n.length-1].roomId!==e&&(t=!1)}let s={};if(t)s=await o.a.get().leaveRoomChain(e);else try{await o.a.get().leave(e)}catch(t){if(t&&t.data&&t.data.errcode){const n=t.data.error||Object(r.a)("Unexpected server error trying to leave the room");s[e]=Object.assign(new Error(n),{errcode:t.data.errcode})}else s[e]=t||new Error("Failed to leave room for unknown causes")}const d=Object.entries(s).filter(e=>!!e[1]);if(d.length>0){const t=[];for(const n of d){const o=n[1];let l=Object(r.a)("Unexpected server error trying to leave the room");if(o.errcode&&o.message){if("M_CANNOT_LEAVE_SERVER_NOTICE_ROOM"===o.errcode)return void i.a.createTrackedDialog("Error Leaving Room","",a.a,{title:Object(r.a)("Can't leave Server Notices room"),description:Object(r.a)("This room is used for important messages from the Homeserver, so you cannot leave it.")});l=s[e].message}t.push(l,c.a.createElement("BR"))}i.a.createTrackedDialog("Error Leaving Room","",a.a,{title:Object(r.a)("Error leaving room"),description:t})}else u.a.getRoomId()===e&&l.a.dispatch({action:"view_home_page"})}!function(e){e.Join="JOIN",e.Invite="INVITE",e.Leave="LEAVE"}(d||(d={}))},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(96),r=n(86),i=n(89),a=n(85),s=n(83),c=n(294),l=n(293),u=n(243);class d extends Error{}class h{constructor(e=null){this.accessToken=null,this.authEnabled=!0,this.tempClient=e?Object(o.p)({baseUrl:"",idBaseUrl:e}):null}get _matrixClient(){return this.tempClient?this.tempClient:r.a.get()}_writeToken(){this.tempClient||window.localStorage.setItem("mx_is_access_token",this.accessToken)}_readToken(){return this.tempClient?null:window.localStorage.getItem("mx_is_access_token")}hasCredentials(){return null!=this.accessToken}async getAccessToken({check:e=!0}={}){if(!this.authEnabled)return null;let t=this.accessToken;if(t||(t=this._readToken()),!t)return t=await this.registerForToken(e),t&&(this.accessToken=t,this._writeToken()),t;if(e)try{await this._checkToken(t)}catch(e){if(e instanceof c.b||e instanceof d)throw e;t=await this.registerForToken(),t&&(this.accessToken=t,this._writeToken())}return t}async _checkToken(e){const t=this._matrixClient.getIdentityServerUrl();try{await this._matrixClient.getIdentityAccount(e)}catch(n){if("M_TERMS_NOT_SIGNED"===n.errcode)return console.log("Identity Server requires new terms to be agreed to"),void await Object(c.d)([new c.a(o.m.IS,t,e)]);throw n}if(!this.tempClient&&!Object(l.a)()&&!await Object(l.b)(t)){const e=a.getComponent("dialogs.QuestionDialog"),{finished:n}=i.a.createTrackedDialog("Default identity server terms warning","",e,{title:Object(s.a)("Identity server has no terms of service"),description:React.createElement("div",null,React.createElement("p",null,Object(s.a)("This action requires accessing the default identity server <server /> to validate an email address or phone number, but the server does not have any terms of service.",{},{server:()=>React.createElement("b",null,Object(u.a)(t))})),React.createElement("p",null,Object(s.a)("Only continue if you trust the owner of the server."))),button:Object(s.a)("Trust")}),[o]=await n;if(!o)throw new d("User aborted identity server action without terms");Object(l.d)()}}async registerForToken(e=!0){const t=await r.a.get().getOpenIdToken(),{access_token:n,token:o}=await this._matrixClient.registerWithIdentityServer(t),i=o||n;return e&&await this._checkToken(i),i}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FOCUS_GROUP="data-focus-lock",t.FOCUS_DISABLED="data-focus-lock-disabled",t.FOCUS_ALLOW="data-no-focus-lock",t.FOCUS_AUTO="data-autofocus-inside"},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(82),c=n.n(s),l=n(81),u=n.n(l),d=n(128),h=n(163),p=n(476),m=n(86),g=n(89),f=n(223);class _ extends u.a.Component{constructor(e){super(e),c()(this,"onRoomStateEvents",e=>{this.props.room&&e.getRoomId()===this.props.room.roomId&&"m.room.avatar"===e.getType()&&this.setState({urls:_.getImageUrls(this.props)})}),c()(this,"onRoomAvatarClick",()=>{const e={src:f.b(this.props.room,null,null,null),name:this.props.room.name};g.a.createDialog(p.a,e,"mx_Dialog_lightbox")}),this.state={urls:_.getImageUrls(this.props)}}componentDidMount(){m.a.get().on("RoomState.events",this.onRoomStateEvents)}componentWillUnmount(){const e=m.a.get();e&&e.removeListener("RoomState.events",this.onRoomStateEvents)}static getDerivedStateFromProps(e){return{urls:_.getImageUrls(e)}}static getImageUrls(e){return[Object(d.a)(m.a.get().getHomeserverUrl(),e.oobData.avatarUrl,Math.floor(e.width*window.devicePixelRatio),Math.floor(e.height*window.devicePixelRatio),e.resizeMethod),_.getRoomAvatarUrl(e)].filter((function(e){return null!==e&&""!==e}))}static getRoomAvatarUrl(e){return e.room?f.b(e.room,Math.floor(e.width*window.devicePixelRatio),Math.floor(e.height*window.devicePixelRatio),e.resizeMethod):null}render(){const e=this.props,{room:t,oobData:n,viewAvatarOnClick:o,onClick:i}=e,s=a()(e,["room","oobData","viewAvatarOnClick","onClick"]),c=t?t.name:n.name;return u.a.createElement(h.a,r()({},s,{name:c,idName:t?t.roomId:null,urls:this.state.urls,onClick:o&&this.state.urls[0]?this.onRoomAvatarClick:i}))}}c()(_,"defaultProps",{width:36,height:36,resizeMethod:"crop",oobData:{}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return T})),n.d(t,"d",(function(){return x}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(90),u=n.n(l),d=n(85),h=n(83),p=n(88),m=n(91),g=n(112),f=n(103);const _=0;class b extends a.a.Component{constructor(...e){super(...e),r()(this,"state",{password:""}),r()(this,"_onSubmit",e=>{e.preventDefault(),this.props.busy||this.props.submitAuthDict({type:b.LOGIN_TYPE,user:this.props.matrixClient.credentials.userId,identifier:{type:"m.id.user",user:this.props.matrixClient.credentials.userId},password:this.state.password})}),r()(this,"_onPasswordFieldChange",e=>{this.setState({password:e.target.value})})}componentDidMount(){this.props.onPhaseChange(_)}render(){const e=u()({error:this.props.errorText});let t,n;if(this.props.busy){const e=d.getComponent("elements.Spinner");t=a.a.createElement(e,null)}else t=a.a.createElement("input",{type:"submit",className:"mx_Dialog_primary",disabled:!this.state.password,value:Object(h.a)("Continue")});this.props.errorText&&(n=a.a.createElement("div",{className:"error",role:"alert"},this.props.errorText));const o=d.getComponent("elements.Field");return a.a.createElement("div",null,a.a.createElement("p",null,Object(h.a)("Confirm your identity by entering your account password below.")),a.a.createElement("form",{onSubmit:this._onSubmit,className:"mx_InteractiveAuthEntryComponents_passwordSection"},a.a.createElement(o,{className:e,type:"password",name:"passwordField",label:Object(h.a)("Password"),autoFocus:!0,value:this.state.password,onChange:this._onPasswordFieldChange}),a.a.createElement("div",{className:"mx_button_row"},t)),n)}}r()(b,"LOGIN_TYPE","m.login.password"),r()(b,"propTypes",{matrixClient:c.a.object.isRequired,submitAuthDict:c.a.func.isRequired,errorText:c.a.string,busy:c.a.bool,onPhaseChange:c.a.func.isRequired});class v extends a.a.Component{constructor(...e){super(...e),r()(this,"_onCaptchaResponse",e=>{f.a.instance.track("onboarding_grecaptcha_submit"),this.props.submitAuthDict({type:v.LOGIN_TYPE,response:e})})}componentDidMount(){this.props.onPhaseChange(_)}render(){if(this.props.busy){const e=d.getComponent("elements.Spinner");return a.a.createElement(e,null)}let e=this.props.errorText;const t=d.getComponent("views.auth.CaptchaForm");let n,o;return this.props.stageParams&&this.props.stageParams.public_key?n=this.props.stageParams.public_key:e=Object(h.a)("Missing captcha public key in homeserver configuration. Please report this to your homeserver administrator."),e&&(o=a.a.createElement("div",{className:"error",role:"alert"},e)),a.a.createElement("div",null,a.a.createElement(t,{sitePublicKey:n,onCaptchaResponse:this._onCaptchaResponse}),o)}}r()(v,"LOGIN_TYPE","m.login.recaptcha"),r()(v,"propTypes",{submitAuthDict:c.a.func.isRequired,stageParams:c.a.object.isRequired,errorText:c.a.string,busy:c.a.bool,onPhaseChange:c.a.func.isRequired});class E extends a.a.Component{constructor(e){super(e),r()(this,"tryContinue",()=>{this._trySubmit()}),r()(this,"_trySubmit",()=>{let e=!0;for(const t of this.state.policies){const n=this.state.toggledPolicies[t.id];e=e&&n}e?(this.props.submitAuthDict({type:E.LOGIN_TYPE}),f.a.instance.track("onboarding_terms_complete")):this.setState({errorText:Object(h.a)("Please review and accept all of the homeserver's policies")})});const t=this.props.stageParams.policies||{},n=p.a.getValue("language"),o={},i=[];for(const e of Object.keys(t)){const r=t[e];let a=r[n];if(a||(a=r.en),!a){a=r[Object.keys(r).find(e=>"version"!==e)]}if(!a)throw new Error("Failed to find a policy to show the user");o[e]=!1,a.id=e,i.push(a)}this.state={toggledPolicies:o,policies:i},f.a.instance.track("onboarding_terms_begin")}componentDidMount(){this.props.onPhaseChange(_)}_togglePolicy(e){const t={};for(const n of this.state.policies){let o=this.state.toggledPolicies[n.id];n.id===e&&(o=!o),t[n.id]=o}this.setState({toggledPolicies:t})}render(){if(this.props.busy){const e=d.getComponent("elements.Spinner");return a.a.createElement(e,null)}const e=[];let t,n,o=!0;for(const t of this.state.policies){const n=this.state.toggledPolicies[t.id];o=o&&n,e.push(a.a.createElement("label",{key:"policy_checkbox_"+t.id,className:"mx_InteractiveAuthEntryComponents_termsPolicy"},a.a.createElement("input",{type:"checkbox",onChange:()=>this._togglePolicy(t.id),checked:n}),a.a.createElement("a",{href:t.url,target:"_blank",rel:"noreferrer noopener"},t.name)))}return(this.props.errorText||this.state.errorText)&&(t=a.a.createElement("div",{className:"error",role:"alert"},this.props.errorText||this.state.errorText)),!1!==this.props.showContinue&&(n=a.a.createElement("button",{className:"mx_InteractiveAuthEntryComponents_termsSubmit mx_GeneralButton",onClick:this._trySubmit,disabled:!o},Object(h.a)("Accept"))),a.a.createElement("div",null,a.a.createElement("p",null,Object(h.a)("Please review and accept the policies of this homeserver:")),e,t,n)}}r()(E,"LOGIN_TYPE","m.login.terms"),r()(E,"propTypes",{submitAuthDict:c.a.func.isRequired,stageParams:c.a.object.isRequired,errorText:c.a.string,busy:c.a.bool,showContinue:c.a.bool,onPhaseChange:c.a.func.isRequired});class y extends a.a.Component{componentDidMount(){this.props.onPhaseChange(_)}render(){var e;return void 0===this.props.inputs.emailAddress||(null===(e=this.props.stageState)||void 0===e?void 0:e.emailSid)?a.a.createElement(g.a,null):a.a.createElement("div",{className:"mx_InteractiveAuthEntryComponents_emailWrapper"},a.a.createElement("p",null,Object(h.a)("A confirmation email has been sent to %(emailAddress)s",{emailAddress:e=>a.a.createElement("b",null,this.props.inputs.emailAddress)})),a.a.createElement("p",null,Object(h.a)("Open the link in the email to continue registration.")))}}r()(y,"LOGIN_TYPE","m.login.email.identity"),r()(y,"propTypes",{matrixClient:c.a.object.isRequired,submitAuthDict:c.a.func.isRequired,authSessionId:c.a.string.isRequired,clientSecret:c.a.string.isRequired,inputs:c.a.object.isRequired,stageState:c.a.object.isRequired,fail:c.a.func.isRequired,setEmailSid:c.a.func.isRequired,onPhaseChange:c.a.func.isRequired});class S extends a.a.Component{constructor(...e){super(...e),r()(this,"state",{token:"",requestingToken:!1}),r()(this,"_onTokenChange",e=>{this.setState({token:e.target.value})}),r()(this,"_onFormSubmit",async e=>{if(e.preventDefault(),""!=this.state.token){this.setState({errorText:null});try{let e;if(!this._submitUrl)throw new Error("The registration with MSISDN flow is misconfigured");if(e=await this.props.matrixClient.submitMsisdnTokenOtherUrl(this._submitUrl,this._sid,this.props.clientSecret,this.state.token),e.success){const e={sid:this._sid,client_secret:this.props.clientSecret};this.props.submitAuthDict({type:S.LOGIN_TYPE,threepid_creds:e,threepidCreds:e})}else this.setState({errorText:Object(h.a)("Token incorrect")})}catch(e){this.props.fail(e),console.log("Failed to submit msisdn token")}}})}componentDidMount(){this.props.onPhaseChange(_),this._submitUrl=null,this._sid=null,this._msisdn=null,this._tokenBox=null,this.setState({requestingToken:!0}),this._requestMsisdnToken().catch(e=>{this.props.fail(e)}).finally(()=>{this.setState({requestingToken:!1})})}_requestMsisdnToken(){return this.props.matrixClient.requestRegisterMsisdnToken(this.props.inputs.phoneCountry,this.props.inputs.phoneNumber,this.props.clientSecret,1).then(e=>{this._submitUrl=e.submit_url,this._sid=e.sid,this._msisdn=e.msisdn})}render(){if(this.state.requestingToken){const e=d.getComponent("elements.Spinner");return a.a.createElement(e,null)}{const e=Boolean(this.state.token),t=u()({mx_InteractiveAuthEntryComponents_msisdnSubmit:!0,mx_GeneralButton:!0});let n;return this.state.errorText&&(n=a.a.createElement("div",{className:"error",role:"alert"},this.state.errorText)),a.a.createElement("div",null,a.a.createElement("p",null,Object(h.a)("A text message has been sent to %(msisdn)s",{msisdn:a.a.createElement("i",null,this._msisdn)})),a.a.createElement("p",null,Object(h.a)("Please enter the code it contains:")),a.a.createElement("div",{className:"mx_InteractiveAuthEntryComponents_msisdnWrapper"},a.a.createElement("form",{onSubmit:this._onFormSubmit},a.a.createElement("input",{type:"text",className:"mx_InteractiveAuthEntryComponents_msisdnEntry",value:this.state.token,onChange:this._onTokenChange,"aria-label":Object(h.a)("Code")}),a.a.createElement("br",null),a.a.createElement("input",{type:"submit",value:Object(h.a)("Submit"),className:t,disabled:!e})),n))}}}r()(S,"LOGIN_TYPE","m.login.msisdn"),r()(S,"propTypes",{inputs:c.a.shape({phoneCountry:c.a.string,phoneNumber:c.a.string}),fail:c.a.func,clientSecret:c.a.func,submitAuthDict:c.a.func.isRequired,matrixClient:c.a.object,onPhaseChange:c.a.func.isRequired});class T extends a.a.Component{constructor(e){super(e),r()(this,"_ssoUrl",void 0),r()(this,"onStartAuthClick",()=>{window.open(this._ssoUrl,"_blank"),this.setState({phase:T.PHASE_POSTAUTH}),this.props.onPhaseChange(T.PHASE_POSTAUTH)}),r()(this,"onConfirmClick",()=>{this.props.submitAuthDict({})}),this._ssoUrl=e.matrixClient.getFallbackAuthUrl(this.props.loginType,this.props.authSessionId),this.state={phase:T.PHASE_PREAUTH}}componentDidMount(){this.props.onPhaseChange(T.PHASE_PREAUTH)}render(){let e=null;const t=a.a.createElement(m.a,{onClick:this.props.onCancel,kind:this.props.continueKind?this.props.continueKind+"_outline":"primary_outline"},Object(h.a)("Cancel"));return e=this.state.phase===T.PHASE_PREAUTH?a.a.createElement(m.a,{onClick:this.onStartAuthClick,kind:this.props.continueKind||"primary"},this.props.continueText||Object(h.a)("Single Sign On")):a.a.createElement(m.a,{onClick:this.onConfirmClick,kind:this.props.continueKind||"primary"},this.props.continueText||Object(h.a)("Confirm")),a.a.createElement("div",{className:"mx_InteractiveAuthEntryComponents_sso_buttons"},t,e)}}r()(T,"propTypes",{matrixClient:c.a.object.isRequired,authSessionId:c.a.string.isRequired,loginType:c.a.string.isRequired,submitAuthDict:c.a.func.isRequired,errorText:c.a.string,onPhaseChange:c.a.func.isRequired,continueText:c.a.string,continueKind:c.a.string,onCancel:c.a.func}),r()(T,"LOGIN_TYPE","m.login.sso"),r()(T,"UNSTABLE_LOGIN_TYPE","org.matrix.login.sso"),r()(T,"PHASE_PREAUTH",1),r()(T,"PHASE_POSTAUTH",2);class w extends a.a.Component{constructor(e){super(e),r()(this,"focus",()=>{this._fallbackButton.current&&this._fallbackButton.current.focus()}),r()(this,"_onShowFallbackClick",e=>{e.preventDefault(),e.stopPropagation();const t=this.props.matrixClient.getFallbackAuthUrl(this.props.loginType,this.props.authSessionId);this._popupWindow=window.open(t),this._popupWindow.opener=null}),r()(this,"_onReceiveMessage",e=>{"authDone"===e.data&&e.origin===this.props.matrixClient.getHomeserverUrl()&&this.props.submitAuthDict({})}),this._popupWindow=null,window.addEventListener("message",this._onReceiveMessage),this._fallbackButton=Object(i.createRef)()}componentDidMount(){this.props.onPhaseChange(_)}componentWillUnmount(){window.removeEventListener("message",this._onReceiveMessage),this._popupWindow&&this._popupWindow.close()}render(){let e;return this.props.errorText&&(e=a.a.createElement("div",{className:"error",role:"alert"},this.props.errorText)),a.a.createElement("div",null,a.a.createElement("a",{href:"",ref:this._fallbackButton,onClick:this._onShowFallbackClick},Object(h.a)("Start authentication")),e)}}r()(w,"propTypes",{matrixClient:c.a.object.isRequired,authSessionId:c.a.string.isRequired,loginType:c.a.string.isRequired,submitAuthDict:c.a.func.isRequired,errorText:c.a.string,onPhaseChange:c.a.func.isRequired});const C=[b,v,y,S,E,T];function x(e){for(const t of C)if(t.LOGIN_TYPE===e||t.UNSTABLE_LOGIN_TYPE===e)return t;return w}},function(e,t,n){"use strict";var o="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var o in n)r(n,o)&&(e[o]=n[o])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,o,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+o),r);else for(var i=0;i<o;i++)e[r+i]=t[n+i]},flattenChunks:function(e){var t,n,o,r,i,a;for(o=0,t=0,n=e.length;t<n;t++)o+=e[t].length;for(a=new Uint8Array(o),r=0,t=0,n=e.length;t<n;t++)i=e[t],a.set(i,r),r+=i.length;return a}},a={arraySet:function(e,t,n,o,r){for(var i=0;i<o;i++)e[r+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(o)},function(e,t,n){"use strict";n.r(t),n.d(t,"CHAT_EFFECTS",(function(){return r}));var o=n(83);const r=[{emojis:["🎊","🎉"],msgType:"nic.custom.confetti",command:"confetti",description:()=>Object(o.b)("Sends the given message with confetti"),fallbackMessage:()=>Object(o.a)("sends confetti")+" 🎉",options:{maxCount:150,speed:3,frameInterval:15,alpha:1,gradient:!1}},{emojis:["🎆"],msgType:"nic.custom.fireworks",command:"fireworks",description:()=>Object(o.b)("Sends the given message with fireworks"),fallbackMessage:()=>Object(o.a)("sends fireworks")+" 🎆",options:{maxCount:500,gravity:.05}},{emojis:["❄","🌨"],msgType:"io.element.effect.snowfall",command:"snowfall",description:()=>Object(o.b)("Sends the given message with snowfall"),fallbackMessage:()=>Object(o.a)("sends snowfall")+" ❄",options:{maxCount:200,gravity:.05,maxDrift:5}}]},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(1),r=n(6);function i(e){this.userId=e,this.presence="offline",this.presenceStatusMsg=null,this._unstable_statusMessage="",this.displayName=e,this.rawDisplayName=e,this.avatarUrl=null,this.lastActiveAgo=0,this.lastPresenceTs=0,this.currentlyActive=!1,this.events={presence:null,profile:null},this._updateModifiedTime()}o.o(i,r.EventEmitter),i.prototype.setPresenceEvent=function(e){if("m.presence"!==e.getType())return;const t=null===this.events.presence;this.events.presence=e;const n=[];(e.getContent().presence!==this.presence||t)&&n.push("User.presence"),e.getContent().avatar_url&&e.getContent().avatar_url!==this.avatarUrl&&n.push("User.avatarUrl"),e.getContent().displayname&&e.getContent().displayname!==this.displayName&&n.push("User.displayName"),void 0!==e.getContent().currently_active&&e.getContent().currently_active!==this.currentlyActive&&n.push("User.currentlyActive"),this.presence=e.getContent().presence,n.push("User.lastPresenceTs"),e.getContent().status_msg&&(this.presenceStatusMsg=e.getContent().status_msg),e.getContent().displayname&&(this.displayName=e.getContent().displayname),e.getContent().avatar_url&&(this.avatarUrl=e.getContent().avatar_url),this.lastActiveAgo=e.getContent().last_active_ago,this.lastPresenceTs=Date.now(),this.currentlyActive=e.getContent().currently_active,this._updateModifiedTime();for(let t=0;t<n.length;t++)this.emit(n[t],e,this)},i.prototype.setDisplayName=function(e){const t=this.displayName;this.displayName="string"==typeof e?e:void 0,e!==t&&this._updateModifiedTime()},i.prototype.setRawDisplayName=function(e){this.rawDisplayName="string"==typeof e?e:void 0},i.prototype.setAvatarUrl=function(e){const t=this.avatarUrl;this.avatarUrl=e,e!==t&&this._updateModifiedTime()},i.prototype._updateModifiedTime=function(){this._modified=Date.now()},i.prototype.getLastModifiedTime=function(){return this._modified},i.prototype.getLastActiveTs=function(){return this.lastPresenceTs-this.lastActiveAgo},i.prototype._unstable_updateStatusMessage=function(e){e.getContent()?this._unstable_statusMessage=e.getContent().status:this._unstable_statusMessage="",this._updateModifiedTime(),this.emit("User._unstable_statusMessage",this)}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";function o(e,t){const n=`Store is invalid because ${e}, please stop the client, delete all data and start the client again`,o=Reflect.construct(Error,[n]);return Reflect.setPrototypeOf(o,Reflect.getPrototypeOf(this)),o.reason=e,o.value=t,o}function r(e){const t=`Crypto store is invalid because ${e}, please stop the client, delete all data and start the client again`,n=Reflect.construct(Error,[t]);return Reflect.setPrototypeOf(n,Reflect.getPrototypeOf(this)),n.reason=e,n.name="InvalidCryptoStoreError",n}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),o.TOGGLED_LAZY_LOADING="TOGGLED_LAZY_LOADING",o.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Reflect.setPrototypeOf(o,Error),r.TOO_NEW="TOO_NEW",r.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Reflect.setPrototypeOf(r,Error);class i extends Error{constructor(e,t){super(e),this.value=t}}},function(e,t,n){"use strict";n.d(t,"i",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"h",(function(){return p})),n.d(t,"g",(function(){return m})),n.d(t,"e",(function(){return g})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return _})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"k",(function(){return E}));var o=n(201),r=n.n(o),i=n(0),a=n(6),s=n(269),c=n(268);const l="m.key.verification.",u=l+"request",d=l+"start",h=l+"cancel",p=l+"ready",m=1,g=2,f=3,_=4,b=5,v=6;class E extends a.EventEmitter{constructor(e,t,n){super(),r()(this,"_cancelOnTimeout",()=>{try{this.initiatedByMe?this.cancel({reason:"Other party didn't accept in time",code:"m.timeout"}):this.cancel({reason:"User didn't accept in time",code:"m.timeout"})}catch(e){i.a.error("Error while cancelling verification request",e)}}),this.channel=e,this.channel._request=this,this._verificationMethods=t,this._client=n,this._commonMethods=[],this._setPhase(m,!1),this._eventsByUs=new Map,this._eventsByThem=new Map,this._observeOnly=!1,this._timeoutTimer=null,this._accepting=!1,this._declining=!1,this._verifierHasFinished=!1,this._cancelled=!1,this._chosenMethod=null,this._qrCodeData=null,this._requestReceivedAt=null}static validateEvent(e,t,n){const o=t.getContent();return!(!e||!e.startsWith(l))&&(o?e!==u&&e!==p||Array.isArray(o.methods)?e!==u&&e!==p&&e!==d||"string"==typeof o.from_device&&0!==o.from_device.length||(i.a.log("VerificationRequest: validateEvent: fail because from_device"),!1):(i.a.log("VerificationRequest: validateEvent: fail because methods"),!1):(i.a.log("VerificationRequest: validateEvent: no content"),!1))}get invalid(){return this.phase===m}get requested(){return this.phase===g}get cancelled(){return this.phase===b}get ready(){return this.phase===f}get started(){return this.phase===_}get done(){return this.phase===v}get methods(){return this._commonMethods}get chosenMethod(){return this._chosenMethod}calculateEventTimeout(e){let t=this.channel.getTimestamp(e)+6e5;if(this._requestReceivedAt&&!this.initiatedByMe&&this.phase<=g){const e=this._requestReceivedAt+12e4;t=Math.min(t,e)}return Math.max(0,t-Date.now())}get timeout(){const e=this._getEventByEither(u);return e?this.calculateEventTimeout(e):0}get requestEvent(){return this._getEventByEither(u)}get phase(){return this._phase}get verifier(){return this._verifier}get canAccept(){return this.phase<f&&!this._accepting&&!this._declining}get accepting(){return this._accepting}get declining(){return this._declining}get pending(){return!this.observeOnly&&this._phase!==v&&this._phase!==b}get qrCodeData(){return this._qrCodeData}otherPartySupportsMethod(e,t=!1){if(!t&&!this.ready&&!this.started)return!1;const n=this._eventsByThem.get(u)||this._eventsByThem.get(p);if(!n){if(this.started&&this.initiatedByMe){const t=this._eventsByUs.get(d),n=t&&t.getContent();return e==(n&&n.method)}return!1}const o=n.getContent();if(!o)return!1;const{methods:r}=o;return!!Array.isArray(r)&&r.includes(e)}get initiatedByMe(){const e=this._eventsByUs.size+this._eventsByThem.size===0;if(this._phase===m&&e)return!0;const t=this._eventsByUs.has(u),n=this._eventsByThem.has(u);if(t&&!n)return!0;if(!t&&n)return!1;const o=this._eventsByUs.has(d),r=this._eventsByThem.has(d);return!(!o||r)}get requestingUserId(){return this.initiatedByMe?this._client.getUserId():this.otherUserId}get receivingUserId(){return this.initiatedByMe?this.otherUserId:this._client.getUserId()}get otherUserId(){return this.channel.userId}get isSelfVerification(){return this._client.getUserId()===this.otherUserId}get cancellingUserId(){const e=this._eventsByUs.get(h),t=this._eventsByThem.get(h);return e&&(!t||e.getId()<t.getId())?e.getSender():t?t.getSender():void 0}get cancellationCode(){const e=this._getEventByEither(h);return e?e.getContent().code:null}get observeOnly(){return this._observeOnly}get targetDevice(){const e=(this._eventsByThem.get(u)||this._eventsByThem.get(p)||this._eventsByThem.get(d)).getContent().from_device;return{userId:this.otherUserId,deviceId:e}}beginKeyVerification(e,t=null){if(!this.observeOnly&&!this._verifier){if(this.phase===g||this.phase===f||this.phase===m&&this.channel.constructor.canCreateRequest(d)){if(this._commonMethods.length&&!this._commonMethods.includes(e))throw Object(s.g)();if(this._verifier=this._createVerifier(e,null,t),!this._verifier)throw Object(s.g)();this._chosenMethod=e}}return this._verifier}async sendRequest(){if(!this.observeOnly&&this._phase===m){const e=[...this._verificationMethods.keys()];await this.channel.send(u,{methods:e})}}async cancel({reason:e="User declined",code:t="m.user"}={}){if(!this.observeOnly&&this._phase!==b){if(this._declining=!0,this.emit("change"),this._verifier)return this._verifier.cancel(Object(s.a)(t,e)());this._cancellingUserId=this._client.getUserId(),await this.channel.send(h,{code:t,reason:e})}}async accept(){if(!this.observeOnly&&this.phase===g&&!this.initiatedByMe){const e=[...this._verificationMethods.keys()];this._accepting=!0,this.emit("change"),await this.channel.send(p,{methods:e})}}waitFor(e){return new Promise((t,n)=>{const o=()=>{let r=!1;return e(this)?(t(this),r=!0):this.cancelled&&(n(new Error("cancelled")),r=!0),r&&this.off("change",o),r};o()||this.on("change",o)})}_setPhase(e,t=!0){this._phase=e,t&&this.emit("change")}_getEventByEither(e){return this._eventsByThem.get(e)||this._eventsByUs.get(e)}_getEventBy(e,t){return t?this._eventsByThem.get(e):this._eventsByUs.get(e)}_calculatePhaseTransitions(){const e=[{phase:m}],t=()=>e[e.length-1].phase,n=this._eventsByThem.has(u),o=this._getEventBy(u,n);o&&e.push({phase:g,event:o});const r=o&&this._getEventBy(p,!n);let i;if(r&&t()===g&&e.push({phase:f,event:r}),r||!o){const e=this._eventsByThem.get(d),t=this._eventsByUs.get(d);i=e&&t?e.getSender()<t.getSender()?e:t:e||t}else i=this._getEventBy(d,!n);if(i){const n=t()===g&&o.getSender()!==i.getSender(),r=t()===m&&this.channel.constructor.canCreateRequest(d);(n||t()===f||r)&&e.push({phase:_,event:i})}const a=this._eventsByUs.get("m.key.verification.done");(this._verifierHasFinished||a&&t()===_)&&e.push({phase:v});const s=this._getEventByEither(h);return(this._cancelled||s)&&t()!==v?(e.push({phase:b,event:s}),e):e}_transitionToPhase(e){const{phase:t,event:n}=e;if((t===g||t===f)&&!this._wasSentByOwnDevice(n)){const e=n.getContent();this._commonMethods=e.methods.filter(e=>this._verificationMethods.has(e))}if(this.observeOnly||t!==g&&t!==_&&t!==f||this.channel.receiveStartFromOtherDevices&&this._wasSentByOwnUser(n)&&!this._wasSentByOwnDevice(n)&&(this._observeOnly=!0),t===_){const{method:e}=n.getContent();this._verifier||this.observeOnly||(this._verifier=this._createVerifier(e,n),this._verifier?this._chosenMethod=e:this.cancel({code:"m.unknown_method",reason:"Unknown method: "+e}))}}_applyPhaseTransitions(){const e=this._calculatePhaseTransitions(),t=e.findIndex(e=>e.phase===this.phase),n=e.slice(t+1);for(const e of n)this._transitionToPhase(e);return n}_isWinningStartRace(e){if(e.getType()!==d)return!1;const t=this._verifier.startEvent;let n,o;if(this.isSelfVerification)if(t){const e=t.getContent();n=e&&e.from_device}else n=this._client.getDeviceId();else n=t?t.getSender():this._client.getUserId();if(this.isSelfVerification){const t=e.getContent();o=t&&t.from_device}else o=e.getSender();return o<n}hasEventId(e){for(const t of this._eventsByUs.values())if(t.getId()===e)return!0;for(const t of this._eventsByThem.values())if(t.getId()===e)return!0;return!1}async handleEvent(e,t,n,o,r){if(this.done||this.cancelled)return;const a=this._observeOnly;if(this._adjustObserveOnly(t,n),!this.observeOnly&&!o&&await this._cancelOnError(e,t))return;if(r?this._eventsByUs.has(e):this._eventsByThem.has(e))return;const s=this.phase;this._addEvent(e,t,r);const l=this._applyPhaseTransitions();try{if(this._verifier&&!this.observeOnly){const n=this._isWinningStartRace(t);this._verifier.canSwitchStartEvent(t)&&n?this._verifier.switchStartEvent(t):o||(e===h||this._verifier.events&&this._verifier.events.includes(e))&&this._verifier.handleEvent(t)}if(l.length){if(n&&l.some(e=>e.phase===f)){this.otherPartySupportsMethod(c.c,!0)&&(this._qrCodeData=await c.a.create(this,this._client))}const e=l[l.length-1],{phase:t}=e;this._setupTimeout(t),this._setPhase(t)}else this._observeOnly!==a&&this.emit("change")}finally{i.a.log(`Verification request ${this.channel.transactionId}: ${e} event with id:${t.getId()}, content:${JSON.stringify(t.getContent())} deviceId:${this.channel.deviceId}, sender:${t.getSender()}, isSentByUs:${r}, isLiveEvent:${n}, isRemoteEcho:${o}, phase:${s}=>${this.phase}, observeOnly:${a}=>${this._observeOnly}`)}}_setupTimeout(e){if(!this._timeoutTimer&&!this.observeOnly&&e===g&&(this._timeoutTimer=setTimeout(this._cancelOnTimeout,this.timeout)),this._timeoutTimer){(e===_||e===f||e===v||e===b)&&(clearTimeout(this._timeoutTimer),this._timeoutTimer=null)}}async _cancelOnError(e,t){if(e===d){const e=t.getContent().method;if(!this._verificationMethods.has(e))return await this.cancel(Object(s.b)(Object(s.g)())),!0}const n=e===u&&this.phase!==m,o=e===p&&this.phase!==g;if(this.phase!==m&&(n||o)){i.a.warn(`Cancelling, unexpected ${e} verification event from `+t.getSender());const n=`Unexpected ${e} event in phase ${this.phase}`;return await this.cancel(Object(s.b)(Object(s.f)({reason:n}))),!0}return!1}_adjustObserveOnly(e,t){t||(this._observeOnly=!0),this.calculateEventTimeout(e)<3e3&&(this._observeOnly=!0)}_addEvent(e,t,n){if(n?this._eventsByUs.set(e,t):this._eventsByThem.set(e,t),e===u){for(const[e,t]of this._eventsByThem.entries())t.getSender()!==this.otherUserId&&this._eventsByThem.delete(e);this._requestReceivedAt=Date.now()}}_createVerifier(e,t=null,n=null){n||(n=this.targetDevice);const{userId:o,deviceId:r}=n,a=this._verificationMethods.get(e);if(a)return new a(this.channel,this._client,o,r,t,this);i.a.warn("could not find verifier constructor for method",e)}_wasSentByOwnUser(e){return e.getSender()===this._client.getUserId()}_wasSentByOwnDevice(e){if(!this._wasSentByOwnUser(e))return!1;const t=e.getContent();return!(!t||t.from_device!==this._client.getDeviceId())}onVerifierCancelled(){this._cancelled=!0;const e=this._applyPhaseTransitions();e.length&&this._setPhase(e[e.length-1].phase)}onVerifierFinished(){this.channel.send("m.key.verification.done",{}),this._verifierHasFinished=!0;const e=this._applyPhaseTransitions();e.length&&this._setPhase(e[e.length-1].phase)}getEventFromOtherParty(e){return this._eventsByThem.get(e)}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(916),i=(o=r)&&o.__esModule?o:{default:o};t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return P}));var o=n(94),r=n.n(o),i=n(82),a=n.n(i),s=n(238),c=n(81),l=n.n(c),u=n(84),d=n.n(u),h=n(90),p=n.n(h),m=n(164),g=n(83),f=n(359),_=n(85),b=n(87),v=n(88),E=n(96),y=n(126),S=n(86),T=n(364),w=n(365),C=n(97),x=n(212),O=n(320),k=n(133),R=n(196);const A={"m.room.message":"messages.MessageEvent","m.sticker":"messages.MessageEvent","m.key.verification.cancel":"messages.MKeyVerificationConclusion","m.key.verification.done":"messages.MKeyVerificationConclusion","m.room.encryption":"messages.EncryptionEvent","m.call.invite":"messages.TextualEvent","m.call.answer":"messages.TextualEvent","m.call.hangup":"messages.TextualEvent","m.call.reject":"messages.TextualEvent"},I={"m.room.encryption":"messages.EncryptionEvent","m.room.canonical_alias":"messages.TextualEvent","m.room.create":"messages.RoomCreate","m.room.member":"messages.TextualEvent","m.room.name":"messages.TextualEvent","m.room.avatar":"messages.RoomAvatarEvent","m.room.third_party_invite":"messages.TextualEvent","m.room.history_visibility":"messages.TextualEvent","m.room.topic":"messages.TextualEvent","m.room.power_levels":"messages.TextualEvent","m.room.pinned_events":"messages.TextualEvent","m.room.server_acl":"messages.TextualEvent","im.vector.modular.widgets":"messages.TextualEvent","m.room.tombstone":"messages.TextualEvent","m.room.join_rules":"messages.TextualEvent","m.room.guest_access":"messages.TextualEvent","m.room.related_groups":"messages.TextualEvent"};for(const e of T.a)I[e]="messages.TextualEvent";function D(e){const t=e.getType();if("m.room.message"===t){const t=e.getContent();if(t&&"m.key.verification.request"===t.msgtype){const n=S.a.get(),o=n&&n.getUserId();return e.getSender()!==o&&t.to!==o?void 0:"messages.MKeyVerificationRequest"}}if("m.key.verification.done"===t){const t=S.a.get(),n=t&&t.getUserId();if(e.getSender()!==n)return}if("m.key.verification.cancel"===t||"m.key.verification.done"===t){if(!_.getComponent("messages.MKeyVerificationConclusion").prototype._shouldRender.call(null,e,e.request))return}if("im.vector.modular.widgets"===t){let t=e.getContent().type;if(t||(t=e.getPrevContent().type),k.a.JITSI.matches(t))return"messages.MJitsiWidgetEvent"}return e.isState()?I[t]:A[t]}class N extends l.a.Component{constructor(e,t){super(e,t),a()(this,"_onDecrypted",()=>{this._verifyEvent(this.props.mxEvent),this.forceUpdate()}),a()(this,"onDeviceVerificationChanged",(e,t)=>{e===this.props.mxEvent.getSender()&&this._verifyEvent(this.props.mxEvent)}),a()(this,"onUserVerificationChanged",(e,t)=>{e===this.props.mxEvent.getSender()&&this._verifyEvent(this.props.mxEvent)}),a()(this,"toggleAllReadAvatars",()=>{this.setState({allReadAvatars:!this.state.allReadAvatars})}),a()(this,"onSenderProfileClick",e=>{const t=this.props.mxEvent;b.a.dispatch({action:"insert_mention",user_id:t.getSender()})}),a()(this,"onRequestKeysClick",()=>{this.setState({previouslyRequestedKeys:!0}),this.context.cancelAndResendEventRoomKeyRequest(this.props.mxEvent)}),a()(this,"onPermalinkClicked",e=>{e.preventDefault(),b.a.dispatch({action:"view_room",event_id:this.props.mxEvent.getId(),highlighted:!0,room_id:this.props.mxEvent.getRoomId()})}),a()(this,"onActionBarFocusChange",e=>{this.setState({actionBarFocused:e})}),a()(this,"getTile",()=>this._tile.current),a()(this,"getReplyThread",()=>this._replyThread.current),a()(this,"getReactions",()=>{if(!this.props.showReactions||!this.props.getRelationsForEvent)return null;const e=this.props.mxEvent.getId();return e||(console.error("EventTile attempted to get relations for an event without an ID"),console.log(JSON.stringify(this.props.mxEvent,null,4)),console.trace("Stacktrace for https://github.com/vector-im/element-web/issues/11120")),this.props.getRelationsForEvent(e,"m.annotation","m.reaction")}),a()(this,"_onReactionsCreated",(e,t)=>{"m.annotation"===e&&"m.reaction"===t&&(this.props.mxEvent.removeListener("Event.relationsCreated",this._onReactionsCreated),this.setState({reactions:this.getReactions()}))}),this.state={actionBarFocused:!1,allReadAvatars:!1,verified:null,previouslyRequestedKeys:!1,reactions:this.getReactions()},this._suppressReadReceiptAnimation=!0,this._tile=Object(c.createRef)(),this._replyThread=Object(c.createRef)()}UNSAFE_componentWillMount(){this._verifyEvent(this.props.mxEvent)}componentDidMount(){this._suppressReadReceiptAnimation=!1;const e=this.context;e.on("deviceVerificationChanged",this.onDeviceVerificationChanged),e.on("userTrustStatusChanged",this.onUserVerificationChanged),this.props.mxEvent.on("Event.decrypted",this._onDecrypted),this.props.showReactions&&this.props.mxEvent.on("Event.relationsCreated",this._onReactionsCreated)}UNSAFE_componentWillReceiveProps(e){e.eventSendStatus!==this.props.eventSendStatus&&this._verifyEvent(e.mxEvent)}shouldComponentUpdate(e,t){return!w.a(this.state,t)||!this._propsEqual(this.props,e)}componentWillUnmount(){const e=this.context;e.removeListener("deviceVerificationChanged",this.onDeviceVerificationChanged),e.removeListener("userTrustStatusChanged",this.onUserVerificationChanged),this.props.mxEvent.removeListener("Event.decrypted",this._onDecrypted),this.props.showReactions&&this.props.mxEvent.removeListener("Event.relationsCreated",this._onReactionsCreated)}async _verifyEvent(e){if(!e.isEncrypted())return;const t=this.context.getEventEncryptionInfo(e),n=e.getSender(),o=this.context.checkUserTrust(n);if(t.mismatchedSender)return void this.setState({verified:x.a.WARNING},this.props.onHeightChanged);if(!o.isCrossSigningVerified())return void this.setState({verified:x.a.NORMAL},this.props.onHeightChanged);const r=t.sender&&this.context.checkDeviceTrust(n,t.sender.deviceId);r?r.isVerified()?t.authenticated?this.setState({verified:x.a.VERIFIED},this.props.onHeightChanged):this.setState({verified:x.a.UNAUTHENTICATED},this.props.onHeightChanged):this.setState({verified:x.a.WARNING},this.props.onHeightChanged):this.setState({verified:x.a.UNKNOWN},this.props.onHeightChanged)}_propsEqual(e,t){const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let o=0;o<n.length;o++){const r=n[o];if(!t.hasOwnProperty(r))return!1;if("readReceipts"===r){const n=e[r],o=t[r];if(n===o)continue;if(!n||!o)return!1;if(n.length!==o.length)return!1;for(let e=0;e<n.length;e++){if(n[e].userId!==o[e].userId)return!1;if(n[e].roomMember!==o[e].roomMember)return!1}}else if(e[r]!==t[r])return!1}return!0}shouldHighlight(){const e=this.context.getPushActionsForEvent(this.props.mxEvent.replacingEvent()||this.props.mxEvent);return!(!e||!e.tweaks)&&(this.props.mxEvent.getSender()!==this.context.credentials.userId&&e.tweaks.highlight)}getReadAvatars(){if(!this.props.readReceipts||0===this.props.readReceipts.length)return l.a.createElement("span",{className:"mx_EventTile_readAvatars"});const e=_.getComponent("rooms.ReadReceiptMarker"),t=[];let n=0;const o=this.props.readReceipts||[];for(let r=0;r<o.length;++r){const i=o[r];let a=!0;(r<5||this.state.allReadAvatars)&&(a=!1),n=-15*(a?4:r);const s=i.userId;let c;this.props.readReceiptMap&&(c=this.props.readReceiptMap[s],c||(c={},this.props.readReceiptMap[s]=c)),t.unshift(l.a.createElement(e,{key:s,member:i.roomMember,fallbackUserId:s,leftOffset:n,hidden:a,readReceiptInfo:c,checkUnmounting:this.props.checkUnmounting,suppressAnimation:this._suppressReadReceiptAnimation,onClick:this.toggleAllReadAvatars,timestamp:i.ts,showTwelveHour:this.props.isTwelveHour}))}let r;if(!this.state.allReadAvatars){const e=o.length-5;e>0&&(r=l.a.createElement("span",{className:"mx_EventTile_readAvatarRemainder",onClick:this.toggleAllReadAvatars,style:{right:"calc("+Object(O.b)(-n)+" + 15px)"}},e,"+"))}return l.a.createElement("span",{className:"mx_EventTile_readAvatars"},r,t)}_renderE2EPadlock(){const e=this.props.mxEvent;if("m.bad.encrypted"===e.getContent().msgtype)return l.a.createElement(L,null);if(e.isEncrypted())return this.state.verified===x.a.NORMAL||this.state.verified===x.a.VERIFIED?void 0:this.state.verified===x.a.UNAUTHENTICATED?l.a.createElement(G,null):this.state.verified===x.a.UNKNOWN?l.a.createElement(j,null):l.a.createElement(U,null);if(this.context.isRoomEncrypted(e.getRoomId())){if(e.status===E.b.ENCRYPTING)return;if(e.status===E.b.NOT_SENT)return;if(e.isState())return;return l.a.createElement(B,null)}return null}render(){const e=_.getComponent("messages.MessageTimestamp"),t=_.getComponent("messages.SenderProfile"),n=_.getComponent("avatars.MemberAvatar"),o=this.props.mxEvent.getContent().msgtype,r=this.props.mxEvent.getType();let i=D(this.props.mxEvent);const a=r.startsWith("m.key.verification")||r===m.a.RoomMessage&&o&&o.startsWith("m.key.verification")||r===m.a.RoomCreate||r===m.a.RoomEncryption||"messages.MJitsiWidgetEvent"===i;let c=!a&&r!==m.a.RoomMessage&&r!==m.a.Sticker&&r!==m.a.RoomCreate;if(v.a.getValue("showHiddenEventsInTimeline")&&!P(this.props.mxEvent)&&(i="messages.ViewSourceEvent",c=!0),!i){const{mxEvent:e}=this.props;return console.warn(`Event type not supported: type:${e.getType()} isState:${e.isState()}`),l.a.createElement("div",{className:"mx_EventTile mx_EventTile_info mx_MNoticeBody"},l.a.createElement("div",{className:"mx_EventTile_line"},Object(g.a)("This event could not be displayed")))}const u=_.getComponent(i),d=-1!==["sending","queued","encrypting"].indexOf(this.props.eventSendStatus),h=M(this.props.mxEvent)&&this.props.isRedacted,f=this.props.mxEvent.isDecryptionFailure(),b=!!this.props.editState,E=p()({mx_EventTile_bubbleContainer:a,mx_EventTile:!0,mx_EventTile_isEditing:b,mx_EventTile_info:c,mx_EventTile_12hr:this.props.isTwelveHour,mx_EventTile_encrypting:"encrypting"===this.props.eventSendStatus,mx_EventTile_sending:!b&&d,mx_EventTile_notSent:"not_sent"===this.props.eventSendStatus,mx_EventTile_highlight:"notif"!==this.props.tileShape&&this.shouldHighlight(),mx_EventTile_selected:this.props.isSelectedEvent,mx_EventTile_continuation:this.props.tileShape?"":this.props.continuation,mx_EventTile_last:this.props.last,mx_EventTile_lastInSection:this.props.lastInSection,mx_EventTile_contextual:this.props.contextual,mx_EventTile_actionBarFocused:this.state.actionBarFocused,mx_EventTile_verified:!a&&this.state.verified===x.a.VERIFIED,mx_EventTile_unverified:!a&&this.state.verified===x.a.WARNING,mx_EventTile_unknown:!a&&this.state.verified===x.a.UNKNOWN,mx_EventTile_bad:f,mx_EventTile_emote:"m.emote"===o}),S=null!==this.props.eventSendStatus?"off":void 0;let T="#";this.props.permalinkCreator&&(T=this.props.permalinkCreator.forEvent(this.props.mxEvent.getId()));const w=this.getReadAvatars();let C,O,k,A;if("notif"===this.props.tileShape?(k=24,A=!0):"messages.RoomCreate"===i||a?(k=0,A=!1):c?(k=14,A=!1):this.props.useIRCLayout?(k=14,A=!0):this.props.continuation&&"file_grid"!==this.props.tileShape?(k=0,A=!1):(k=30,A=!0),this.props.mxEvent.sender&&k){let e;e=this.props.mxEvent.getContent().third_party_invite?this.props.mxEvent.target:this.props.mxEvent.sender,C=l.a.createElement("div",{className:"mx_EventTile_avatar"},l.a.createElement(n,{member:e,width:k,height:k,viewUserOnClick:!0}))}if(A){let e=null;this.props.tileShape&&"reply"!==this.props.tileShape&&"reply_preview"!==this.props.tileShape?O=l.a.createElement(t,{mxEvent:this.props.mxEvent,enableFlair:this.props.enableFlair}):("m.image"===o?e=Object(g.b)("%(senderName)s sent an image"):"m.video"===o?e=Object(g.b)("%(senderName)s sent a video"):"m.file"===o&&(e=Object(g.b)("%(senderName)s uploaded a file")),O=l.a.createElement(t,{onClick:this.onSenderProfileClick,mxEvent:this.props.mxEvent,enableFlair:this.props.enableFlair&&!e,text:e}))}const I=_.getComponent("messages.MessageActionBar"),N=b?void 0:l.a.createElement(I,{mxEvent:this.props.mxEvent,reactions:this.state.reactions,permalinkCreator:this.props.permalinkCreator,getTile:this.getTile,getReplyThread:this.getReplyThread,onFocusChange:this.onActionBarFocusChange}),F=this.props.mxEvent.getTs()?l.a.createElement(e,{showTwelveHour:this.props.isTwelveHour,ts:this.props.mxEvent.getTs()}):null,L=l.a.createElement("div",{className:"mx_EventTile_keyRequestInfo_tooltip_contents"},l.a.createElement("p",null,this.state.previouslyRequestedKeys?Object(g.a)("Your key share request has been sent - please check your other sessions for key share requests."):Object(g.a)("Key share requests are sent to your other sessions automatically. If you rejected or dismissed the key share request on your other sessions, click here to request the keys for this session again.")),l.a.createElement("p",null,Object(g.a)("If your other sessions do not have the key for this message you will not be able to decrypt them."))),U=this.state.previouslyRequestedKeys?Object(g.a)("Key request sent."):Object(g.a)("<requestLink>Re-request encryption keys</requestLink> from your other sessions.",{},{requestLink:e=>l.a.createElement("a",{onClick:this.onRequestKeysClick},e)}),B=_.getComponent("elements.TooltipButton"),j=f?l.a.createElement("div",{className:"mx_EventTile_keyRequestInfo"},l.a.createElement("span",{className:"mx_EventTile_keyRequestInfo_text"},U),l.a.createElement(B,{helpText:L})):null;let G;if(!h){const e=_.getComponent("messages.ReactionsRow");G=l.a.createElement(e,{mxEvent:this.props.mxEvent,reactions:this.state.reactions})}const q=l.a.createElement("a",{href:T,onClick:this.onPermalinkClicked,"aria-label":Object(y.d)(new Date(this.props.mxEvent.getTs()),this.props.isTwelveHour)},F),H=this.props.useIRCLayout?null:q,V=this.props.useIRCLayout?q:null,z=!this.props.useIRCLayout&&!a&&this._renderE2EPadlock(),K=this.props.useIRCLayout&&!a&&this._renderE2EPadlock();switch(this.props.tileShape){case"notif":{const e=this.context.getRoom(this.props.mxEvent.getRoomId());return l.a.createElement("div",{className:E,"aria-live":S,"aria-atomic":"true"},l.a.createElement("div",{className:"mx_EventTile_roomName"},l.a.createElement(R.a,{room:e,width:28,height:28}),l.a.createElement("a",{href:T,onClick:this.onPermalinkClicked},e?e.name:"")),l.a.createElement("div",{className:"mx_EventTile_senderDetails"},C,l.a.createElement("a",{href:T,onClick:this.onPermalinkClicked},O,F)),l.a.createElement("div",{className:"mx_EventTile_line"},l.a.createElement(u,{ref:this._tile,mxEvent:this.props.mxEvent,highlights:this.props.highlights,highlightLink:this.props.highlightLink,showUrlPreview:this.props.showUrlPreview,onHeightChanged:this.props.onHeightChanged})))}case"file_grid":return l.a.createElement("div",{className:E,"aria-live":S,"aria-atomic":"true"},l.a.createElement("div",{className:"mx_EventTile_line"},l.a.createElement(u,{ref:this._tile,mxEvent:this.props.mxEvent,highlights:this.props.highlights,highlightLink:this.props.highlightLink,showUrlPreview:this.props.showUrlPreview,tileShape:this.props.tileShape,onHeightChanged:this.props.onHeightChanged})),l.a.createElement("a",{className:"mx_EventTile_senderDetailsLink",href:T,onClick:this.onPermalinkClicked},l.a.createElement("div",{className:"mx_EventTile_senderDetails"},O,F)));case"reply":case"reply_preview":{let e;return"reply_preview"===this.props.tileShape&&(e=s.a.makeThread(this.props.mxEvent,this.props.onHeightChanged,this.props.permalinkCreator,this._replyThread)),l.a.createElement("div",{className:E,"aria-live":S,"aria-atomic":"true"},V,C,O,K,l.a.createElement("div",{className:"mx_EventTile_reply"},H,z,e,l.a.createElement(u,{ref:this._tile,mxEvent:this.props.mxEvent,highlights:this.props.highlights,highlightLink:this.props.highlightLink,onHeightChanged:this.props.onHeightChanged,replacingEventId:this.props.replacingEventId,showUrlPreview:!1})))}default:{const e=s.a.makeThread(this.props.mxEvent,this.props.onHeightChanged,this.props.permalinkCreator,this._replyThread,this.props.useIRCLayout);return l.a.createElement("div",{className:E,tabIndex:-1,"aria-live":S,"aria-atomic":"true"},V,l.a.createElement("div",{className:"mx_EventTile_msgOption"},w),O,K,l.a.createElement("div",{className:"mx_EventTile_line"},H,z,e,l.a.createElement(u,{ref:this._tile,mxEvent:this.props.mxEvent,replacingEventId:this.props.replacingEventId,editState:this.props.editState,highlights:this.props.highlights,highlightLink:this.props.highlightLink,showUrlPreview:this.props.showUrlPreview,onHeightChanged:this.props.onHeightChanged}),j,G,N),C)}}}}a()(N,"propTypes",{mxEvent:d.a.object.isRequired,isRedacted:d.a.bool,continuation:d.a.bool,last:d.a.bool,lastInSection:d.a.bool,contextual:d.a.bool,highlights:d.a.array,highlightLink:d.a.string,showUrlPreview:d.a.bool,isSelectedEvent:d.a.bool,onHeightChanged:d.a.func,readReceipts:d.a.arrayOf(d.a.object),readReceiptMap:d.a.object,checkUnmounting:d.a.func,eventSendStatus:d.a.string,tileShape:d.a.string,isTwelveHour:d.a.bool,getRelationsForEvent:d.a.func,showReactions:d.a.bool,useIRCLayout:d.a.bool,enableFlair:d.a.bool}),a()(N,"defaultProps",{onHeightChanged:function(){}}),a()(N,"contextType",C.a);const F=["m.room.message","m.sticker"];function M(e){return F.includes(e.getType())}function P(e){if(e.isRedacted()&&!M(e))return!1;if(e.isRelation("m.replace"))return!1;const t=D(e);return void 0!==t&&("messages.TextualEvent"===t?""!==f.a(e):"messages.RoomCreate"!==t||Boolean(e.getContent().predecessor))}function L(e){return l.a.createElement(q,r()({title:Object(g.a)("This message cannot be decrypted"),icon:"undecryptable"},e))}function U(e){return l.a.createElement(q,r()({title:Object(g.a)("Encrypted by an unverified session"),icon:"unverified"},e))}function B(e){return l.a.createElement(q,r()({title:Object(g.a)("Unencrypted"),icon:"unencrypted"},e))}function j(e){return l.a.createElement(q,r()({title:Object(g.a)("Encrypted by a deleted session"),icon:"unknown"},e))}function G(e){return l.a.createElement(q,r()({title:Object(g.a)("The authenticity of this encrypted message can't be guaranteed on this device."),icon:"unauthenticated"},e))}class q extends l.a.Component{constructor(){super(),a()(this,"onHoverStart",()=>{this.setState({hover:!0})}),a()(this,"onHoverEnd",()=>{this.setState({hover:!1})}),this.state={hover:!1}}render(){let e=null;if(this.state.hover){const t=_.getComponent("elements.Tooltip");e=l.a.createElement(t,{className:"mx_EventTile_e2eIcon_tooltip",label:this.props.title,dir:"auto"})}const t="mx_EventTile_e2eIcon mx_EventTile_e2eIcon_"+this.props.icon;return l.a.createElement("div",{className:t,onClick:this.onClick,onMouseEnter:this.onHoverStart,onMouseLeave:this.onHoverEnd},e)}}a()(q,"propTypes",{icon:d.a.string.isRequired,title:d.a.string.isRequired})},function(e,t,n){"use strict";var o=n(340),r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var i=Object.create(n(279));i.inherits=n(152);var a=n(614),s=n(438);i.inherits(d,a);for(var c=r(s.prototype),l=0;l<c.length;l++){var u=c[l];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||o.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),o.nextTick(t,e)}},function(e,t,n){var o=n(1053),r=n(1058);e.exports=function(e,t){var n=r(e,t);return o(n)?n:void 0}},function(e,t,n){var o=n(441),r=n(448);e.exports=function(e){return null!=e&&r(e.length)&&!o(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const o=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i;function r(e){return o.test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.toArray=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},t.arrayFind=function(e,t){return e.filter((function(e){return e===t}))[0]},t.asArray=function(e){return Array.isArray(e)?e:[e]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(81),r=n.n(o),i=n(84),a=n.n(i),s=n(90),c=n.n(s),l=n(83),u=n(91),d=n(314);const h={VERIFIED:"verified",WARNING:"warning",UNKNOWN:"unknown",NORMAL:"normal",UNAUTHENTICATED:"unauthenticated"},p={[h.WARNING]:Object(l.b)("This user has not verified all of their sessions."),[h.NORMAL]:Object(l.b)("You have not verified this user."),[h.VERIFIED]:Object(l.b)("You have verified this user. This user has verified all of their sessions.")},m={[h.WARNING]:Object(l.b)("Someone is using an unknown session"),[h.NORMAL]:Object(l.b)("This room is end-to-end encrypted"),[h.VERIFIED]:Object(l.b)("Everyone in this room is verified")},g=({isUser:e,status:t,className:n,size:i,onClick:a,hideTooltip:s,bordered:g})=>{const[f,_]=Object(o.useState)(!1),b=c()({mx_E2EIcon:!0,mx_E2EIcon_bordered:g,mx_E2EIcon_warning:t===h.WARNING,mx_E2EIcon_normal:t===h.NORMAL,mx_E2EIcon_verified:t===h.VERIFIED},n);let v,E;v=e?p[t]:m[t],i&&(E={width:i+"px",height:i+"px"});const y=()=>_(!0),S=()=>_(!1);let T;return f&&!s&&(T=r.a.createElement(d.a,{label:v?Object(l.a)(v):""})),a?r.a.createElement(u.a,{onClick:a,onMouseOver:y,onMouseLeave:S,className:b,style:E},T):r.a.createElement("div",{onMouseOver:y,onMouseLeave:S,className:b,style:E},T)};g.propTypes={isUser:a.a.bool,status:a.a.oneOf(Object.values(h)),className:a.a.string,size:a.a.number,onClick:a.a.func},t.b=g},function(e,t,n){"use strict";(function(e){var o=n(104),r=n(1296),i=n(86),a=n(88),s=n(95);class c{constructor(){this.index=null,this._supportIsInstalled=!1}async init(){const e=o.a.get().getEventIndexingManager();return e?(this._supportIsInstalled=await e.supportsEventIndexing(),this.supportIsInstalled()?a.a.getValueAt(s.a.DEVICE,"enableEventIndexing")?this.initEventIndex():(console.log("EventIndex: Event indexing is disabled, not initializing"),!1):(console.log("EventIndex: Event indexing isn't installed for the platform, not initializing."),!1)):(console.log("EventIndex: Platform doesn't support event indexing, not initializing."),!1)}async initEventIndex(){const e=new r.a,t=o.a.get().getEventIndexingManager(),n=i.a.get(),a=n.getUserId(),s=n.getDeviceId();try{await t.initEventIndex(a,s);const n=await t.getUserVersion(),o=await t.isEventIndexEmpty();o?await t.setUserVersion(1):0!==n||o||(await t.closeEventIndex(),await this.deleteEventIndex(),await t.initEventIndex(a,s),await t.setUserVersion(1)),console.log("EventIndex: Successfully initialized the event index"),await e.init()}catch(e){return console.log("EventIndex: Error initializing the event index",e),!1}return this.index=e,!0}platformHasSupport(){return null!==o.a.get().getEventIndexingManager()}supportIsInstalled(){return this._supportIsInstalled}get(){return this.index}start(){null!==this.index&&this.index.startCrawler()}stop(){null!==this.index&&this.index.stopCrawler()}async unset(){null!==this.index&&(await this.index.close(),this.index=null)}async deleteEventIndex(){const e=o.a.get().getEventIndexingManager();null!==e&&(await this.unset(),console.log("EventIndex: Deleting event index."),await e.deleteEventIndex())}}e.mxEventIndexPeg||(e.mxEventIndexPeg=new c),t.a=e.mxEventIndexPeg}).call(this,n(5))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(83);class u extends a.a.Component{constructor(...e){super(...e),r()(this,"_onCancelClick",()=>{this.props.onCancel()})}render(){let e,t="mx_Dialog_primary";this.props.primaryButtonClass&&(t+=" "+this.props.primaryButtonClass),(this.props.cancelButton||this.props.hasCancel)&&(e=a.a.createElement("button",{type:"button",onClick:this._onCancelClick,className:this.props.cancelButtonClass,disabled:this.props.disabled},this.props.cancelButton||Object(l.a)("Cancel")));let n=null;return this.props.additive&&(n=a.a.createElement("div",{className:"mx_Dialog_buttons_additive"},this.props.additive)),a.a.createElement("div",{className:"mx_Dialog_buttons"},n,e,this.props.children,a.a.createElement("button",{type:this.props.primaryIsSubmit?"submit":"button",className:t,onClick:this.props.onPrimaryButtonClick,autoFocus:this.props.focus,disabled:this.props.disabled||this.props.primaryDisabled},this.props.primaryButton))}}r()(u,"propTypes",{primaryButton:c.a.node.isRequired,cancelButton:c.a.node,primaryIsSubmit:c.a.bool,onPrimaryButtonClick:c.a.func,hasCancel:c.a.bool,cancelButtonClass:c.a.node,onCancel:c.a.func,focus:c.a.bool,disabled:c.a.bool,primaryDisabled:c.a.bool,additive:c.a.element}),r()(u,"defaultProps",{hasCancel:!0,disabled:!1})},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(81),r=n.n(o),i=n(83),a=n(88);class s extends r.a.Component{render(){const e=this.props.w||16,t=this.props.h||16,o=this.props.imgClassName||"";let s;return s=a.a.getValue("feature_new_spinner")?n(704):n(705),r.a.createElement("div",{className:"mx_InlineSpinner"},r.a.createElement("img",{src:s,width:e,height:t,className:o,"aria-label":Object(i.a)("Loading...")}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(81),r=n.n(o),i=n(90),a=n.n(i),s=n(114),c=n(83),l=n(91),u=n(87),d=n(93);const h=({className:e,title:t,children:n})=>r.a.createElement("div",{className:a()("mx_BaseCard_Group",e)},r.a.createElement("h1",null,t),n);t.b=({closeLabel:e,onClose:t,className:n,header:o,footer:i,withoutScrollContainer:h,previousPhase:p,children:m})=>{let g,f;if(p){const e=()=>{u.a.dispatch({action:d.a.SetRightPanelPhase,phase:p})};g=r.a.createElement(l.a,{className:"mx_BaseCard_back",onClick:e,title:Object(c.a)("Back")})}return t&&(f=r.a.createElement(l.a,{className:"mx_BaseCard_close",onClick:t,title:e||Object(c.a)("Close")})),h||(m=r.a.createElement(s.a,null,m)),r.a.createElement("div",{className:a()("mx_BaseCard",n)},r.a.createElement("div",{className:"mx_BaseCard_header"},g,f,o),m,i&&r.a.createElement("div",{className:"mx_BaseCard_footer"},i))}},function(e,t){var n,o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return o[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},function(e,t,n){var o=n(757),r=n(758);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!o.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return r.testNumeric(e)?t.NUMERIC:r.testAlphanumeric(e)?t.ALPHANUMERIC:r.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},function(e,t){e.exports="img/cancel.4b9715b.svg"},function(e,t,n){"use strict";const o=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const r=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};t.SPECIAL_ELEMENTS={[o.HTML]:{[r.ADDRESS]:!0,[r.APPLET]:!0,[r.AREA]:!0,[r.ARTICLE]:!0,[r.ASIDE]:!0,[r.BASE]:!0,[r.BASEFONT]:!0,[r.BGSOUND]:!0,[r.BLOCKQUOTE]:!0,[r.BODY]:!0,[r.BR]:!0,[r.BUTTON]:!0,[r.CAPTION]:!0,[r.CENTER]:!0,[r.COL]:!0,[r.COLGROUP]:!0,[r.DD]:!0,[r.DETAILS]:!0,[r.DIR]:!0,[r.DIV]:!0,[r.DL]:!0,[r.DT]:!0,[r.EMBED]:!0,[r.FIELDSET]:!0,[r.FIGCAPTION]:!0,[r.FIGURE]:!0,[r.FOOTER]:!0,[r.FORM]:!0,[r.FRAME]:!0,[r.FRAMESET]:!0,[r.H1]:!0,[r.H2]:!0,[r.H3]:!0,[r.H4]:!0,[r.H5]:!0,[r.H6]:!0,[r.HEAD]:!0,[r.HEADER]:!0,[r.HGROUP]:!0,[r.HR]:!0,[r.HTML]:!0,[r.IFRAME]:!0,[r.IMG]:!0,[r.INPUT]:!0,[r.LI]:!0,[r.LINK]:!0,[r.LISTING]:!0,[r.MAIN]:!0,[r.MARQUEE]:!0,[r.MENU]:!0,[r.META]:!0,[r.NAV]:!0,[r.NOEMBED]:!0,[r.NOFRAMES]:!0,[r.NOSCRIPT]:!0,[r.OBJECT]:!0,[r.OL]:!0,[r.P]:!0,[r.PARAM]:!0,[r.PLAINTEXT]:!0,[r.PRE]:!0,[r.SCRIPT]:!0,[r.SECTION]:!0,[r.SELECT]:!0,[r.SOURCE]:!0,[r.STYLE]:!0,[r.SUMMARY]:!0,[r.TABLE]:!0,[r.TBODY]:!0,[r.TD]:!0,[r.TEMPLATE]:!0,[r.TEXTAREA]:!0,[r.TFOOT]:!0,[r.TH]:!0,[r.THEAD]:!0,[r.TITLE]:!0,[r.TR]:!0,[r.TRACK]:!0,[r.UL]:!0,[r.WBR]:!0,[r.XMP]:!0},[o.MATHML]:{[r.MI]:!0,[r.MO]:!0,[r.MN]:!0,[r.MS]:!0,[r.MTEXT]:!0,[r.ANNOTATION_XML]:!0},[o.SVG]:{[r.TITLE]:!0,[r.FOREIGN_OBJECT]:!0,[r.DESC]:!0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(82),c=n.n(s),l=n(81),u=n.n(l),d=n(90),h=n.n(d);class p extends u.a.PureComponent{render(){const e=this.props,{children:t,className:n,disabled:o,outlined:i}=e,s=a()(e,["children","className","disabled","outlined"]),c=h()("mx_RadioButton",n,{mx_RadioButton_disabled:o,mx_RadioButton_enabled:!o,mx_RadioButton_checked:this.props.checked,mx_RadioButton_outlined:i});return u.a.createElement("label",{className:c},u.a.createElement("input",r()({type:"radio",disabled:o},s)),u.a.createElement("div",null,u.a.createElement("div",null)),u.a.createElement("div",{className:"mx_RadioButton_content"},t),u.a.createElement("div",{className:"mx_RadioButton_spacer"}))}}c()(p,"defaultProps",{className:""})},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return d}));var o=n(128),r=n(86),i=n(123);function a(e,t,n,o){let i;return e&&e.getAvatarUrl&&(i=e.getAvatarUrl(r.a.get().getHomeserverUrl(),Math.floor(t*window.devicePixelRatio),Math.floor(n*window.devicePixelRatio),o,!1,!1)),i||(i=l(e?e.userId:"")),i}function s(e,t,n,i){const a=Object(o.a)(r.a.get().getHomeserverUrl(),e.avatarUrl,Math.floor(t*window.devicePixelRatio),Math.floor(n*window.devicePixelRatio),i);return a&&0!==a.length?a:null}const c=new Map;function l(e){if(!e)return"";const t=["#0DBD8B","#368bd6","#ac3ba8"];let n=0;for(let t=0;t<e.length;++t)n+=e.charCodeAt(t);const o=n%t.length,r="--avatar-background-colors_"+o,i=document.body.style.getPropertyValue(r)||t[o];let a=c.get(i);return a||(!function(e){return"string"==typeof e&&(7===e.length||9===e.length)&&"#"===e.charAt(0)&&!e.substr(1).split("").some(e=>isNaN(parseInt(e,16)))}(i)?a="":(a=function(e){const t=document.createElement("canvas");t.width=40,t.height=40;const n=t.getContext("2d");return n?(n.fillStyle=e,n.fillRect(0,0,40,40),t.toDataURL()):""}(i),c.set(i,a))),a}function u(e){if(!e)return void console.trace("`name` argument to `getInitialLetter` not supplied");if(e.length<1)return;let t=0;const n=e[0];"@"!==n&&"#"!==n&&"+"!==n||!e[1]||t++;let o=1;const r=e.charCodeAt(t);if(r>=55296&&r<=56319&&e[t+1]){const n=e.charCodeAt(t+1);n>=56320&&n<=57343&&o++}return e.substring(t,t+o).toUpperCase()}function d(e,t,n,o){if(!e)return null;const a=e.getAvatarUrl(r.a.get().getHomeserverUrl(),t,n,o,!1);if(a)return a;let s=null;const c=i.a.shared().getUserIdForRoomId(e.roomId);return s=c?e.getMember(c):e.getAvatarFallbackMember(),s?s.getAvatarUrl(r.a.get().getHomeserverUrl(),t,n,o,!1):null}},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){"use strict";n.d(t,"a",(function(){return s}));var o=n(1),r=n(0);const i=["override","content","room","sender","underride"],a=[{rule_id:".m.rule.tombstone",default:!0,enabled:!0,conditions:[{kind:"event_match",key:"type",pattern:"m.room.tombstone"},{kind:"event_match",key:"state_key",pattern:""}],actions:["notify",{set_tweak:"highlight",value:!0}]},{rule_id:".m.rule.reaction",default:!0,enabled:!0,conditions:[{kind:"event_match",key:"type",pattern:"m.reaction"}],actions:["dont_notify"]}];function s(e){const t={},n=(e,t)=>{for(let n=0;n<i.length;++n){const o=i[n],a=t[o];if(a)for(let t=0;t<a.length;++t){const n=a[t];if(!n.enabled)continue;const i=r(o,n);if(i&&this.ruleMatchesEvent(i,e))return n.kind=o,n}}return null},r=function(e,t){const n={rule_id:t.rule_id,actions:t.actions,conditions:[]};switch(e){case"underride":case"override":n.conditions=t.conditions;break;case"room":if(!t.rule_id)return null;n.conditions.push({kind:"event_match",key:"room_id",value:t.rule_id});break;case"sender":if(!t.rule_id)return null;n.conditions.push({kind:"event_match",key:"user_id",value:t.rule_id});break;case"content":if(!t.pattern)return null;n.conditions.push({kind:"event_match",key:"content.body",pattern:t.pattern})}return n},a=function(e,t){const n={event_match:d,contains_display_name:u,room_member_count:l,sender_notification_permission:c};return!!n[e.kind]&&n[e.kind](e,t)},c=function(t,n){const o=t.key;if(!o)return!1;const r=e.getRoom(n.getRoomId());return!(!r||!r.currentState)&&r.currentState.mayTriggerNotifOfType(o,n.getSender())},l=function(t,n){if(!t.is)return!1;const o=e.getRoom(n.getRoomId());if(!o||!o.currentState||!o.currentState.members)return!1;const r=o.currentState.getJoinedMemberCount(),i=t.is.match(/^([=<>]*)([0-9]*)$/);if(!i)return!1;const a=i[1],s=parseInt(i[2]);if(isNaN(s))return!1;switch(a){case"":case"==":return r==s;case"<":return r<s;case">":return r>s;case"<=":return r<=s;case">=":return r>=s;default:return!1}},u=function(t,n){let r=n.getContent();if(n.isEncrypted()&&n.getClearContent()&&(r=n.getClearContent()),!r||!r.body||"string"!=typeof r.body)return!1;const i=e.getRoom(n.getRoomId());if(!(i&&i.currentState&&i.currentState.members&&i.currentState.getMember(e.credentials.userId)))return!1;const a=i.currentState.getMember(e.credentials.userId).name,s=new RegExp("(^|\\W)"+Object(o.h)(a)+"(\\W|$)","i");return r.body.search(s)>-1},d=function(e,t){if(!e.key)return!1;const n=p(e.key,t);if("string"!=typeof n)return!1;if(e.value)return e.value===n;let o;return o="content.body"==e.key?h("(^|\\W)",e.pattern,"(\\W|$)"):h("^",e.pattern,"$"),!!n.match(o)},h=function(e,n,r){return t[n]||(t[n]=new RegExp(e+Object(o.n)(n)+r,"i")),t[n]},p=function(e,t){const n=e.split(".");let r;const i=n[0];for("content"===i?(r=t.getContent(),n.shift()):"type"===i?(r=t.getType(),n.shift()):r=t.event;n.length>0;){const e=n.shift();if(Object(o.r)(r[e]))return null;r=r[e]}return r},m=function(t,o){const r=function(t,o){return o?t.getSender()===e.credentials.userId?null:n(t,o.global):null}(t,o);if(!r)return{};const i=s.actionListToActionsObject(r.actions);return void 0===i.tweaks.highlight&&(i.tweaks.highlight="content"==r.kind),i};this.ruleMatchesEvent=function(e,t){let n=!0;for(let o=0;o<e.conditions.length;++o){const r=e.conditions[o];n&=a(r,t)}return n},this.actionsForEvent=function(t){return m(t,e.pushRules)},this.getPushRuleById=function(t){for(const n of["global"])if(void 0!==e.pushRules[n])for(const o of i)if(void 0!==e.pushRules[n][o])for(const r of e.pushRules[n][o])if(r.rule_id===t)return r;return null}}s.actionListToActionsObject=function(e){const t={notify:!1,tweaks:{}};for(let n=0;n<e.length;++n){const o=e[n];"notify"===o?t.notify=!0:"object"==typeof o&&(void 0===o.value&&(o.value=!0),t.tweaks[o.set_tweak]=o.value)}return t},s.rewriteDefaultRules=function(e){let t=JSON.parse(JSON.stringify(e));t||(t={}),t.global||(t.global={}),t.global.override||(t.global.override=[]);const n=t.global.override;for(const e of a){const t=n.find(t=>t.rule_id===e.rule_id);if(t)t.default=e.default,t.conditions=e.conditions,t.actions=e.actions;else{const t=e.rule_id;r.a.warn("Adding default global override for "+t),n.push(e)}}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(82),r=n.n(o),i=n(139),a=n(87),s=n(105),c=n(86),l=n(83);class u extends i.a{constructor(){super(a.a,{}),r()(this,"monitoredUser",void 0),r()(this,"onProfileUpdate",async()=>{const e=await this.matrixClient.getProfileInfo(this.matrixClient.getUserId());await this.updateState({displayName:e.displayname,avatarUrl:e.avatar_url})}),r()(this,"onStateEvents",Object(s.throttle)(async e=>{const t=c.a.get().getUserId();"m.room.member"===e.getType()&&e.getSender()===t&&e.getStateKey()===t&&await this.onProfileUpdate()},200,{trailing:!0,leading:!0}))}static get instance(){return u.internalInstance}get displayName(){return this.matrixClient?this.matrixClient.isGuest()?Object(l.a)("Guest"):this.state.displayName?this.state.displayName:this.matrixClient.getUserId():this.state.displayName||null}get avatarMxc(){return this.state.avatarUrl||null}getHttpAvatarUrl(e=0){if(!this.avatarMxc)return null;const t=e>1?e:void 0;return this.matrixClient.mxcUrlToHttp(this.avatarMxc,t,t)}async onNotReady(){this.monitoredUser&&(this.monitoredUser.removeListener("User.displayName",this.onProfileUpdate),this.monitoredUser.removeListener("User.avatarUrl",this.onProfileUpdate)),this.matrixClient&&this.matrixClient.removeListener("RoomState.events",this.onStateEvents),await this.reset({})}async onReady(){const e=this.matrixClient.getUserId();this.monitoredUser=this.matrixClient.getUser(e),this.monitoredUser&&(this.monitoredUser.on("User.displayName",this.onProfileUpdate),this.monitoredUser.on("User.avatarUrl",this.onProfileUpdate)),this.matrixClient.on("RoomState.events",this.onStateEvents),await this.onProfileUpdate()}async onAction(e){}}r()(u,"internalInstance",new u)},function(e,t,n){"use strict";var o=n(81);const r=Object(o.createContext)({roomLoading:!0,peekLoading:!1,shouldPeek:!0,membersLoaded:!1,numUnreadMessages:0,draggingFile:!1,searching:!1,guestsCanJoin:!1,canPeek:!1,showApps:!1,isPeeking:!1,showingPinned:!1,showReadReceipts:!0,showRightPanel:!0,joining:!1,atEndOfLiveTimeline:!0,atEndOfLiveTimelineInit:!1,showTopUnreadMessagesBar:!1,statusBarVisible:!1,canReact:!1,canReply:!1,useIRCLayout:!1,matrixClientIsReady:!1});r.displayName="RoomContext",t.a=r},function(e,t,n){var o=n(181),r=n(271);e.exports=n(182)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(230);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(397);e.exports=function(e){return Object(o(e))}},function(e,t,n){var o=n(558),r=n(397);e.exports=function(e){return o(r(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.top,n=e.right,o=e.bottom,r=e.left;return{top:t,right:n,bottom:o,left:r,width:n-r,height:o-t,center:{x:(n+r)/2,y:(o+t)/2}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(188)),r=i(n(132));function i(e){return e&&e.__esModule?e:{default:e}}t.default=(0,r.default)((function(e,t){return(0,o.default)(t).map((function(e){return t[e]})).filter((function(t){return e.descriptor.id===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(568)),r=i(n(410));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.draggable,n=e.destination,i=e.previousImpact,a=e.viewport,s=t.descriptor.id,c=(0,o.default)(i.movement.displaced),l=(0,r.default)({target:t.page.withMargin,destination:n,viewport:a}),u=function(){if(!l)return!1;var e=c[s];return!e||e.shouldAnimate}();return{draggableId:s,isVisible:l,shouldAnimate:u}}},function(e,t,n){"use strict";let o,r;n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),function(e){e.Manual="MANUAL",e.Alphabetic="ALPHABETIC",e.Recent="RECENT"}(o||(o={})),function(e){e.Importance="IMPORTANCE",e.Natural="NATURAL"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(85),c=n(83),l=n(84),u=n.n(l),d=n(87),h=n(126),p=n(96),m=n(108),g=n(88),f=n(998),_=n.n(f),b=n(97),v=n(93),E=n(356),y=n.n(E),S=n(101),T=n(121);class w extends a.a.Component{constructor(e,t){super(e,t),r()(this,"updateForEventId",e=>{this.state.events.some(t=>t.getId()===e)&&this.forceUpdate()}),r()(this,"onEventReplaced",e=>{this.unmounted||this.updateForEventId(e.getId())}),r()(this,"onRoomRedaction",e=>{if(this.unmounted)return;const t=e.getAssociatedId();t&&this.updateForEventId(t)}),this.state={events:[],loadedEv:null,loading:!0,err:!1},this.unmounted=!1,this.context.on("Event.replaced",this.onEventReplaced),this.room=this.context.getRoom(this.props.parentEv.getRoomId()),this.room.on("Room.redaction",this.onRoomRedaction),this.room.on("Room.redactionCancelled",this.onRoomRedaction),this.onQuoteClick=this.onQuoteClick.bind(this),this.canCollapse=this.canCollapse.bind(this),this.collapse=this.collapse.bind(this)}static getParentEventId(e){if(!e||e.isRedacted())return;const t=e.getWireContent()["m.relates_to"];if(t&&t["m.in_reply_to"]){const e=t["m.in_reply_to"];if(e&&e.event_id)return e.event_id}}static stripPlainReply(e){const t=e.split("\n");for(;t.length&&t[0].startsWith("> ");)t.shift();return""===t[0]&&t.shift(),t.join("\n")}static stripHTMLReply(e){return y()(e,{allowedTags:!1,allowedAttributes:!1,allowedSchemes:[...T.a,"mxc"],exclusiveFilter:e=>"mx-reply"===e.tag})}static getNestedReplyText(e,t){if(!e)return null;let{body:n,formatted_body:o}=e.getContent();this.getParentEventId(e)&&n&&(n=this.stripPlainReply(n)),n||(n=""),o=o?this.stripHTMLReply(o):_()(n).replace(/\n/g,"<br/>");const r=t.forEvent(e.getId()),i=Object(m.g)(e.getSender()),a=e.getSender();switch(e.getContent().msgtype){case"m.text":case"m.notice":{o=`<mx-reply><blockquote><a href="${r}">In reply to</a> <a href="${i}">${a}</a><br>${o}</blockquote></mx-reply>`;const e=n.trim().split("\n");e.length>0&&(e[0]=`<${a}> ${e[0]}`,n=e.map(e=>"> "+e).join("\n")+"\n\n");break}case"m.image":o=`<mx-reply><blockquote><a href="${r}">In reply to</a> <a href="${i}">${a}</a><br>sent an image.</blockquote></mx-reply>`,n=`> <${a}> sent an image.\n\n`;break;case"m.video":o=`<mx-reply><blockquote><a href="${r}">In reply to</a> <a href="${i}">${a}</a><br>sent a video.</blockquote></mx-reply>`,n=`> <${a}> sent a video.\n\n`;break;case"m.audio":o=`<mx-reply><blockquote><a href="${r}">In reply to</a> <a href="${i}">${a}</a><br>sent an audio file.</blockquote></mx-reply>`,n=`> <${a}> sent an audio file.\n\n`;break;case"m.file":o=`<mx-reply><blockquote><a href="${r}">In reply to</a> <a href="${i}">${a}</a><br>sent a file.</blockquote></mx-reply>`,n=`> <${a}> sent a file.\n\n`;break;case"m.emote":{o=`<mx-reply><blockquote><a href="${r}">In reply to</a> * <a href="${i}">${a}</a><br>${o}</blockquote></mx-reply>`;const e=n.trim().split("\n");e.length>0&&(e[0]=`* <${a}> ${e[0]}`,n=e.map(e=>"> "+e).join("\n")+"\n\n");break}default:return null}return{body:n,html:o}}static makeReplyMixIn(e){return e?{"m.relates_to":{"m.in_reply_to":{event_id:e.getId()}}}:{}}static makeThread(e,t,n,o,r){return w.getParentEventId(e)?a.a.createElement(w,{parentEv:e,onHeightChanged:t,ref:o,permalinkCreator:n,useIRCLayout:r}):a.a.createElement("div",{className:"mx_ReplyThread_wrapper_empty"})}componentDidMount(){this.initialize()}componentDidUpdate(){this.props.onHeightChanged()}componentWillUnmount(){this.unmounted=!0,this.context.removeListener("Event.replaced",this.onEventReplaced),this.room&&(this.room.removeListener("Room.redaction",this.onRoomRedaction),this.room.removeListener("Room.redactionCancelled",this.onRoomRedaction))}async initialize(){const{parentEv:e}=this.props,t=await this.getEvent(w.getParentEventId(e));this.unmounted||(t?this.setState({events:[t]},this.loadNextEvent):this.setState({err:!0}))}async loadNextEvent(){if(this.unmounted)return;const e=this.state.events[0],t=w.getParentEventId(e);if(!t)return void this.setState({loading:!1});const n=await this.getEvent(t);this.unmounted||(n?this.setState({loadedEv:n}):this.setState({err:!0}))}async getEvent(e){const t=this.room.findEventById(e);if(t)return t;try{await this.context.getEventTimeline(this.room.getUnfilteredTimelineSet(),e)}catch(e){return null}return this.room.findEventById(e)}canCollapse(){return this.state.events.length>1}collapse(){this.initialize()}onQuoteClick(){const e=[this.state.loadedEv,...this.state.events];this.setState({loadedEv:null,events:e},this.loadNextEvent),d.a.fire(v.a.FocusComposer)}render(){let e=null;if(this.state.err)e=a.a.createElement("blockquote",{className:"mx_ReplyThread mx_ReplyThread_error"},Object(c.a)("Unable to load event that was replied to, it either does not exist or you do not have permission to view it."));else if(this.state.loadedEv){const t=this.state.loadedEv,n=s.getComponent("elements.Pill"),o=this.context.getRoom(t.getRoomId());e=a.a.createElement("blockquote",{className:"mx_ReplyThread"},Object(c.a)("<a>In reply to</a> <pill>",{},{a:e=>a.a.createElement("a",{onClick:this.onQuoteClick,className:"mx_ReplyThread_show"},e),pill:a.a.createElement(n,{type:n.TYPE_USER_MENTION,room:o,url:Object(m.g)(t.getSender()),shouldShowPillAvatar:g.a.getValue("Pill.shouldShowPillAvatar")})}))}else if(this.state.loading){const t=s.getComponent("elements.Spinner");e=a.a.createElement(t,{w:16,h:16})}const t=s.getComponent("views.rooms.EventTile"),n=s.getComponent("messages.DateSeparator"),o=this.state.events.map(e=>{let o=null;return Object(h.e)(this.props.parentEv.getDate(),e.getDate())&&(o=a.a.createElement("a",{href:this.props.url},a.a.createElement(n,{ts:e.getTs()}))),a.a.createElement("blockquote",{className:"mx_ReplyThread",key:e.getId()},o,a.a.createElement(t,{mxEvent:e,tileShape:"reply",onHeightChanged:this.props.onHeightChanged,permalinkCreator:this.props.permalinkCreator,isRedacted:e.isRedacted(),isTwelveHour:g.a.getValue("showTwelveHourTimestamps"),useIRCLayout:this.props.useIRCLayout,enableFlair:g.a.getValue(S.a.Flair),replacingEventId:e.replacingEventId()}))});return a.a.createElement("div",{className:"mx_ReplyThread_wrapper"},a.a.createElement("div",null,e),a.a.createElement("div",null,o))}}r()(w,"propTypes",{parentEv:u.a.instanceOf(p.j),onHeightChanged:u.a.func.isRequired,permalinkCreator:u.a.instanceOf(m.a).isRequired,useIRCLayout:u.a.bool}),r()(w,"contextType",b.a)},function(e,t,n){"use strict";var o=n(1032),r=n(278),i=n(1033),a=r.CODE_POINTS,s=r.CODE_POINT_SEQUENCES,c={0:65533,13:13,128:8364,129:129,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,141:141,142:381,143:143,144:144,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,157:157,158:382,159:376},l="DATA_STATE";function u(e){return e===a.SPACE||e===a.LINE_FEED||e===a.TABULATION||e===a.FORM_FEED}function d(e){return e>=a.DIGIT_0&&e<=a.DIGIT_9}function h(e){return e>=a.LATIN_CAPITAL_A&&e<=a.LATIN_CAPITAL_Z}function p(e){return e>=a.LATIN_SMALL_A&&e<=a.LATIN_SMALL_Z}function m(e){return p(e)||h(e)}function g(e,t){return d(e)||t&&(e>=a.LATIN_CAPITAL_A&&e<=a.LATIN_CAPITAL_F||e>=a.LATIN_SMALL_A&&e<=a.LATIN_SMALL_F)}function f(e){return e+32}function _(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function b(e){return String.fromCharCode(f(e))}function v(e,t){for(var n=i[++e],o=++e,r=o+n-1;o<=r;){var a=o+r>>>1,s=i[a];if(s<t)o=a+1;else{if(!(s>t))return i[a+n];r=a-1}}return-1}var E=e.exports=function(){this.preprocessor=new o,this.tokenQueue=[],this.allowCDATA=!1,this.state=l,this.returnState="",this.tempBuff=[],this.additionalAllowedCp=void 0,this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null};E.CHARACTER_TOKEN="CHARACTER_TOKEN",E.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",E.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",E.START_TAG_TOKEN="START_TAG_TOKEN",E.END_TAG_TOKEN="END_TAG_TOKEN",E.COMMENT_TOKEN="COMMENT_TOKEN",E.DOCTYPE_TOKEN="DOCTYPE_TOKEN",E.EOF_TOKEN="EOF_TOKEN",E.HIBERNATION_TOKEN="HIBERNATION_TOKEN",E.MODE={DATA:l,RCDATA:"RCDATA_STATE",RAWTEXT:"RAWTEXT_STATE",SCRIPT_DATA:"SCRIPT_DATA_STATE",PLAINTEXT:"PLAINTEXT_STATE"},E.getTokenAttr=function(e,t){for(var n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},E.prototype.getNextToken=function(){for(;!this.tokenQueue.length&&this.active;){this._hibernationSnapshot();var e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()},E.prototype.write=function(e,t){this.active=!0,this.preprocessor.write(e,t)},E.prototype.insertHtmlAtCurrentPos=function(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)},E.prototype._hibernationSnapshot=function(){this.consumedAfterSnapshot=0},E.prototype._ensureHibernation=function(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:E.HIBERNATION_TOKEN}),!0}return!1},E.prototype._consume=function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()},E.prototype._unconsume=function(){this.consumedAfterSnapshot--,this.preprocessor.retreat()},E.prototype._unconsumeSeveral=function(e){for(;e--;)this._unconsume()},E.prototype._reconsumeInState=function(e){this.state=e,this._unconsume()},E.prototype._consumeSubsequentIfMatch=function(e,t,n){for(var o=0,r=!0,i=e.length,s=0,c=t,l=void 0;s<i;s++){if(s>0&&(c=this._consume(),o++),c===a.EOF){r=!1;break}if(c!==(l=e[s])&&(n||c!==f(l))){r=!1;break}}return r||this._unconsumeSeveral(o),r},E.prototype._lookahead=function(){var e=this._consume();return this._unconsume(),e},E.prototype.isTempBufferEqualToScriptString=function(){if(this.tempBuff.length!==s.SCRIPT_STRING.length)return!1;for(var e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==s.SCRIPT_STRING[e])return!1;return!0},E.prototype._createStartTagToken=function(){this.currentToken={type:E.START_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}},E.prototype._createEndTagToken=function(){this.currentToken={type:E.END_TAG_TOKEN,tagName:"",attrs:[]}},E.prototype._createCommentToken=function(){this.currentToken={type:E.COMMENT_TOKEN,data:""}},E.prototype._createDoctypeToken=function(e){this.currentToken={type:E.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}},E.prototype._createCharacterToken=function(e,t){this.currentCharacterToken={type:e,chars:t}},E.prototype._createAttr=function(e){this.currentAttr={name:e,value:""}},E.prototype._isDuplicateAttr=function(){return null!==E.getTokenAttr(this.currentToken,this.currentAttr.name)},E.prototype._leaveAttrName=function(e){this.state=e,this._isDuplicateAttr()||this.currentToken.attrs.push(this.currentAttr)},E.prototype._leaveAttrValue=function(e){this.state=e},E.prototype._isAppropriateEndTagToken=function(){return this.lastStartTagName===this.currentToken.tagName},E.prototype._emitCurrentToken=function(){this._emitCurrentCharacterToken(),this.currentToken.type===E.START_TAG_TOKEN&&(this.lastStartTagName=this.currentToken.tagName),this.tokenQueue.push(this.currentToken),this.currentToken=null},E.prototype._emitCurrentCharacterToken=function(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)},E.prototype._emitEOFToken=function(){this._emitCurrentCharacterToken(),this.tokenQueue.push({type:E.EOF_TOKEN})},E.prototype._appendCharToCurrentCharacterToken=function(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)},E.prototype._emitCodePoint=function(e){var t=E.CHARACTER_TOKEN;u(e)?t=E.WHITESPACE_CHARACTER_TOKEN:e===a.NULL&&(t=E.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,_(e))},E.prototype._emitSeveralCodePoints=function(e){for(var t=0;t<e.length;t++)this._emitCodePoint(e[t])},E.prototype._emitChar=function(e){this._appendCharToCurrentCharacterToken(E.CHARACTER_TOKEN,e)},E.prototype._consumeNumericEntity=function(e){var t="",n=void 0;do{t+=_(this._consume()),n=this._lookahead()}while(n!==a.EOF&&g(n,e));this._lookahead()===a.SEMICOLON&&this._consume();var o,r=parseInt(t,e?16:10),i=c[r];return i||((o=r)>=55296&&o<=57343||o>1114111?a.REPLACEMENT_CHARACTER:r)},E.prototype._consumeNamedEntity=function(e){for(var t=null,n=0,o=null,r=0,s=!1,c=0;c>-1;){var l=i[c],u=l<7;if(u&&1&l&&(t=2&l?[i[++c],i[++c]]:[i[++c]],n=r,o===a.SEMICOLON)){s=!0;break}if(r++,(o=this._consume())===a.EOF)break;c=u?4&l?v(c,o):-1:o===l?++c:-1}if(t){if(!s&&(this._unconsumeSeveral(r-n),e)){var h=this._lookahead();if(h===a.EQUALS_SIGN||function(e){return m(e)||d(e)}(h))return this._unconsumeSeveral(n),null}return t}return this._unconsumeSeveral(r),null},E.prototype._consumeCharacterReference=function(e,t){if(u(e)||e===a.GREATER_THAN_SIGN||e===a.AMPERSAND||e===this.additionalAllowedCp||e===a.EOF)return this._unconsume(),null;if(e===a.NUMBER_SIGN){var n=!1,o=this._lookahead();return o!==a.LATIN_SMALL_X&&o!==a.LATIN_CAPITAL_X||(this._consume(),n=!0),(o=this._lookahead())!==a.EOF&&g(o,n)?[this._consumeNumericEntity(n)]:(this._unconsumeSeveral(n?2:1),null)}return this._unconsume(),this._consumeNamedEntity(t)};var y=E.prototype;y[l]=function(e){this.preprocessor.dropParsedChunk(),e===a.AMPERSAND?this.state="CHARACTER_REFERENCE_IN_DATA_STATE":e===a.LESS_THAN_SIGN?this.state="TAG_OPEN_STATE":e===a.NULL?this._emitCodePoint(e):e===a.EOF?this._emitEOFToken():this._emitCodePoint(e)},y.CHARACTER_REFERENCE_IN_DATA_STATE=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state=l)},y.RCDATA_STATE=function(e){this.preprocessor.dropParsedChunk(),e===a.AMPERSAND?this.state="CHARACTER_REFERENCE_IN_RCDATA_STATE":e===a.LESS_THAN_SIGN?this.state="RCDATA_LESS_THAN_SIGN_STATE":e===a.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===a.EOF?this._emitEOFToken():this._emitCodePoint(e)},y.CHARACTER_REFERENCE_IN_RCDATA_STATE=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state="RCDATA_STATE")},y.RAWTEXT_STATE=function(e){this.preprocessor.dropParsedChunk(),e===a.LESS_THAN_SIGN?this.state="RAWTEXT_LESS_THAN_SIGN_STATE":e===a.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===a.EOF?this._emitEOFToken():this._emitCodePoint(e)},y.SCRIPT_DATA_STATE=function(e){this.preprocessor.dropParsedChunk(),e===a.LESS_THAN_SIGN?this.state="SCRIPT_DATA_LESS_THAN_SIGN_STATE":e===a.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===a.EOF?this._emitEOFToken():this._emitCodePoint(e)},y.PLAINTEXT_STATE=function(e){this.preprocessor.dropParsedChunk(),e===a.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===a.EOF?this._emitEOFToken():this._emitCodePoint(e)},y.TAG_OPEN_STATE=function(e){e===a.EXCLAMATION_MARK?this.state="MARKUP_DECLARATION_OPEN_STATE":e===a.SOLIDUS?this.state="END_TAG_OPEN_STATE":m(e)?(this._createStartTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===a.QUESTION_MARK?this._reconsumeInState("BOGUS_COMMENT_STATE"):(this._emitChar("<"),this._reconsumeInState(l))},y.END_TAG_OPEN_STATE=function(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===a.GREATER_THAN_SIGN?this.state=l:e===a.EOF?(this._reconsumeInState(l),this._emitChar("<"),this._emitChar("/")):this._reconsumeInState("BOGUS_COMMENT_STATE")},y.TAG_NAME_STATE=function(e){u(e)?this.state="BEFORE_ATTRIBUTE_NAME_STATE":e===a.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===a.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):h(e)?this.currentToken.tagName+=b(e):e===a.NULL?this.currentToken.tagName+=r.REPLACEMENT_CHARACTER:e===a.EOF?this._reconsumeInState(l):this.currentToken.tagName+=_(e)},y.RCDATA_LESS_THAN_SIGN_STATE=function(e){e===a.SOLIDUS?(this.tempBuff=[],this.state="RCDATA_END_TAG_OPEN_STATE"):(this._emitChar("<"),this._reconsumeInState("RCDATA_STATE"))},y.RCDATA_END_TAG_OPEN_STATE=function(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("RCDATA_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("RCDATA_STATE"))},y.RCDATA_END_TAG_NAME_STATE=function(e){if(h(e))this.currentToken.tagName+=b(e),this.tempBuff.push(e);else if(p(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(u(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===a.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===a.GREATER_THAN_SIGN)return this.state=l,void this._emitCurrentToken()}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RCDATA_STATE")}},y.RAWTEXT_LESS_THAN_SIGN_STATE=function(e){e===a.SOLIDUS?(this.tempBuff=[],this.state="RAWTEXT_END_TAG_OPEN_STATE"):(this._emitChar("<"),this._reconsumeInState("RAWTEXT_STATE"))},y.RAWTEXT_END_TAG_OPEN_STATE=function(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("RAWTEXT_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("RAWTEXT_STATE"))},y.RAWTEXT_END_TAG_NAME_STATE=function(e){if(h(e))this.currentToken.tagName+=b(e),this.tempBuff.push(e);else if(p(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(u(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===a.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===a.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=l)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RAWTEXT_STATE")}},y.SCRIPT_DATA_LESS_THAN_SIGN_STATE=function(e){e===a.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_END_TAG_OPEN_STATE"):e===a.EXCLAMATION_MARK?(this.state="SCRIPT_DATA_ESCAPE_START_STATE",this._emitChar("<"),this._emitChar("!")):(this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_STATE"))},y.SCRIPT_DATA_END_TAG_OPEN_STATE=function(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("SCRIPT_DATA_STATE"))},y.SCRIPT_DATA_END_TAG_NAME_STATE=function(e){if(h(e))this.currentToken.tagName+=b(e),this.tempBuff.push(e);else if(p(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(u(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===a.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===a.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=l)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_STATE")}},y.SCRIPT_DATA_ESCAPE_START_STATE=function(e){e===a.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPE_START_DASH_STATE",this._emitChar("-")):this._reconsumeInState("SCRIPT_DATA_STATE")},y.SCRIPT_DATA_ESCAPE_START_DASH_STATE=function(e){e===a.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):this._reconsumeInState("SCRIPT_DATA_STATE")},y.SCRIPT_DATA_ESCAPED_STATE=function(e){e===a.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_STATE",this._emitChar("-")):e===a.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===a.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===a.EOF?this._reconsumeInState(l):this._emitCodePoint(e)},y.SCRIPT_DATA_ESCAPED_DASH_STATE=function(e){e===a.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):e===a.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===a.NULL?(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChar(r.REPLACEMENT_CHARACTER)):e===a.EOF?this._reconsumeInState(l):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))},y.SCRIPT_DATA_ESCAPED_DASH_DASH_STATE=function(e){e===a.HYPHEN_MINUS?this._emitChar("-"):e===a.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===a.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChar(">")):e===a.NULL?(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChar(r.REPLACEMENT_CHARACTER)):e===a.EOF?this._reconsumeInState(l):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))},y.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE=function(e){e===a.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE"):m(e)?(this.tempBuff=[],this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE")):(this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))},y.SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE=function(e){m(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))},y.SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE=function(e){if(h(e))this.currentToken.tagName+=b(e),this.tempBuff.push(e);else if(p(e))this.currentToken.tagName+=_(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(u(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===a.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===a.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=l)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}},y.SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE=function(e){u(e)||e===a.SOLIDUS||e===a.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?"SCRIPT_DATA_DOUBLE_ESCAPED_STATE":"SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e)):h(e)?(this.tempBuff.push(f(e)),this._emitCodePoint(e)):p(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")},y.SCRIPT_DATA_DOUBLE_ESCAPED_STATE=function(e){e===a.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",this._emitChar("-")):e===a.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===a.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===a.EOF?this._reconsumeInState(l):this._emitCodePoint(e)},y.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE=function(e){e===a.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):e===a.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===a.NULL?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChar(r.REPLACEMENT_CHARACTER)):e===a.EOF?this._reconsumeInState(l):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))},y.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE=function(e){e===a.HYPHEN_MINUS?this._emitChar("-"):e===a.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):e===a.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChar(">")):e===a.NULL?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChar(r.REPLACEMENT_CHARACTER)):e===a.EOF?this._reconsumeInState(l):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))},y.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE=function(e){e===a.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",this._emitChar("/")):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")},y.SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE=function(e){u(e)||e===a.SOLIDUS||e===a.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?"SCRIPT_DATA_ESCAPED_STATE":"SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e)):h(e)?(this.tempBuff.push(f(e)),this._emitCodePoint(e)):p(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")},y.BEFORE_ATTRIBUTE_NAME_STATE=function(e){u(e)||(e===a.SOLIDUS||e===a.GREATER_THAN_SIGN||e===a.EOF?this._reconsumeInState("AFTER_ATTRIBUTE_NAME_STATE"):e===a.EQUALS_SIGN?(this._createAttr("="),this.state="ATTRIBUTE_NAME_STATE"):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))},y.ATTRIBUTE_NAME_STATE=function(e){u(e)||e===a.SOLIDUS||e===a.GREATER_THAN_SIGN||e===a.EOF?(this._leaveAttrName("AFTER_ATTRIBUTE_NAME_STATE"),this._unconsume()):e===a.EQUALS_SIGN?this._leaveAttrName("BEFORE_ATTRIBUTE_VALUE_STATE"):h(e)?this.currentAttr.name+=b(e):e===a.QUOTATION_MARK||e===a.APOSTROPHE||e===a.LESS_THAN_SIGN?this.currentAttr.name+=_(e):e===a.NULL?this.currentAttr.name+=r.REPLACEMENT_CHARACTER:this.currentAttr.name+=_(e)},y.AFTER_ATTRIBUTE_NAME_STATE=function(e){u(e)||(e===a.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===a.EQUALS_SIGN?this.state="BEFORE_ATTRIBUTE_VALUE_STATE":e===a.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===a.EOF?this._reconsumeInState(l):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))},y.BEFORE_ATTRIBUTE_VALUE_STATE=function(e){u(e)||(e===a.QUOTATION_MARK?this.state="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE":e===a.APOSTROPHE?this.state="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE":this._reconsumeInState("ATTRIBUTE_VALUE_UNQUOTED_STATE"))},y.ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE=function(e){e===a.QUOTATION_MARK?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===a.AMPERSAND?(this.additionalAllowedCp=a.QUOTATION_MARK,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===a.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===a.EOF?this._reconsumeInState(l):this.currentAttr.value+=_(e)},y.ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE=function(e){e===a.APOSTROPHE?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===a.AMPERSAND?(this.additionalAllowedCp=a.APOSTROPHE,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===a.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===a.EOF?this._reconsumeInState(l):this.currentAttr.value+=_(e)},y.ATTRIBUTE_VALUE_UNQUOTED_STATE=function(e){u(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===a.AMPERSAND?(this.additionalAllowedCp=a.GREATER_THAN_SIGN,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):e===a.GREATER_THAN_SIGN?(this._leaveAttrValue(l),this._emitCurrentToken()):e===a.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===a.QUOTATION_MARK||e===a.APOSTROPHE||e===a.LESS_THAN_SIGN||e===a.EQUALS_SIGN||e===a.GRAVE_ACCENT?this.currentAttr.value+=_(e):e===a.EOF?this._reconsumeInState(l):this.currentAttr.value+=_(e)},y.CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE=function(e){var t=this._consumeCharacterReference(e,!0);if(!this._ensureHibernation()){if(t)for(var n=0;n<t.length;n++)this.currentAttr.value+=_(t[n]);else this.currentAttr.value+="&";this.state=this.returnState}},y.AFTER_ATTRIBUTE_VALUE_QUOTED_STATE=function(e){u(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===a.SOLIDUS?this._leaveAttrValue("SELF_CLOSING_START_TAG_STATE"):e===a.GREATER_THAN_SIGN?(this._leaveAttrValue(l),this._emitCurrentToken()):e===a.EOF?this._reconsumeInState(l):this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE")},y.SELF_CLOSING_START_TAG_STATE=function(e){e===a.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=l,this._emitCurrentToken()):e===a.EOF?this._reconsumeInState(l):this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE")},y.BOGUS_COMMENT_STATE=function(){this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE_CONTINUATION")},y.BOGUS_COMMENT_STATE_CONTINUATION=function(e){for(;;){if(e===a.GREATER_THAN_SIGN){this.state=l;break}if(e===a.EOF){this._reconsumeInState(l);break}if(this.currentToken.data+=e===a.NULL?r.REPLACEMENT_CHARACTER:_(e),this._hibernationSnapshot(),e=this._consume(),this._ensureHibernation())return}this._emitCurrentToken()},y.MARKUP_DECLARATION_OPEN_STATE=function(e){var t=this._consumeSubsequentIfMatch(s.DASH_DASH_STRING,e,!0),n=!t&&this._consumeSubsequentIfMatch(s.DOCTYPE_STRING,e,!1),o=!t&&!n&&this.allowCDATA&&this._consumeSubsequentIfMatch(s.CDATA_START_STRING,e,!0);this._ensureHibernation()||(t?(this._createCommentToken(),this.state="COMMENT_START_STATE"):n?this.state="DOCTYPE_STATE":o?this.state="CDATA_SECTION_STATE":this._reconsumeInState("BOGUS_COMMENT_STATE"))},y.COMMENT_START_STATE=function(e){e===a.HYPHEN_MINUS?this.state="COMMENT_START_DASH_STATE":e===a.NULL?(this.currentToken.data+=r.REPLACEMENT_CHARACTER,this.state="COMMENT_STATE"):e===a.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===a.EOF?(this._emitCurrentToken(),this._reconsumeInState(l)):(this.currentToken.data+=_(e),this.state="COMMENT_STATE")},y.COMMENT_START_DASH_STATE=function(e){e===a.HYPHEN_MINUS?this.state="COMMENT_END_STATE":e===a.NULL?(this.currentToken.data+="-",this.currentToken.data+=r.REPLACEMENT_CHARACTER,this.state="COMMENT_STATE"):e===a.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===a.EOF?(this._emitCurrentToken(),this._reconsumeInState(l)):(this.currentToken.data+="-",this.currentToken.data+=_(e),this.state="COMMENT_STATE")},y.COMMENT_STATE=function(e){e===a.HYPHEN_MINUS?this.state="COMMENT_END_DASH_STATE":e===a.NULL?this.currentToken.data+=r.REPLACEMENT_CHARACTER:e===a.EOF?(this._emitCurrentToken(),this._reconsumeInState(l)):this.currentToken.data+=_(e)},y.COMMENT_END_DASH_STATE=function(e){e===a.HYPHEN_MINUS?this.state="COMMENT_END_STATE":e===a.NULL?(this.currentToken.data+="-",this.currentToken.data+=r.REPLACEMENT_CHARACTER,this.state="COMMENT_STATE"):e===a.EOF?(this._emitCurrentToken(),this._reconsumeInState(l)):(this.currentToken.data+="-",this.currentToken.data+=_(e),this.state="COMMENT_STATE")},y.COMMENT_END_STATE=function(e){e===a.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===a.EXCLAMATION_MARK?this.state="COMMENT_END_BANG_STATE":e===a.HYPHEN_MINUS?this.currentToken.data+="-":e===a.NULL?(this.currentToken.data+="--",this.currentToken.data+=r.REPLACEMENT_CHARACTER,this.state="COMMENT_STATE"):e===a.EOF?(this._reconsumeInState(l),this._emitCurrentToken()):(this.currentToken.data+="--",this.currentToken.data+=_(e),this.state="COMMENT_STATE")},y.COMMENT_END_BANG_STATE=function(e){e===a.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state="COMMENT_END_DASH_STATE"):e===a.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===a.NULL?(this.currentToken.data+="--!",this.currentToken.data+=r.REPLACEMENT_CHARACTER,this.state="COMMENT_STATE"):e===a.EOF?(this._emitCurrentToken(),this._reconsumeInState(l)):(this.currentToken.data+="--!",this.currentToken.data+=_(e),this.state="COMMENT_STATE")},y.DOCTYPE_STATE=function(e){u(e)||(e===a.GREATER_THAN_SIGN?(this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===a.EOF?(this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._reconsumeInState(l)):(this._createDoctypeToken(""),this._reconsumeInState("DOCTYPE_NAME_STATE")))},y.DOCTYPE_NAME_STATE=function(e){u(e)||e===a.GREATER_THAN_SIGN||e===a.EOF?this._reconsumeInState("AFTER_DOCTYPE_NAME_STATE"):h(e)?this.currentToken.name+=b(e):e===a.NULL?this.currentToken.name+=r.REPLACEMENT_CHARACTER:this.currentToken.name+=_(e)},y.AFTER_DOCTYPE_NAME_STATE=function(e){if(!u(e))if(e===a.GREATER_THAN_SIGN)this.state=l,this._emitCurrentToken();else{var t=this._consumeSubsequentIfMatch(s.PUBLIC_STRING,e,!1),n=!t&&this._consumeSubsequentIfMatch(s.SYSTEM_STRING,e,!1);this._ensureHibernation()||(t?this.state="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE":n?this.state="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE":(this.currentToken.forceQuirks=!0,this.state="BOGUS_DOCTYPE_STATE"))}},y.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE=function(e){u(e)||(e===a.QUOTATION_MARK?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===a.APOSTROPHE?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):(this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))},y.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE=function(e){e===a.QUOTATION_MARK?this.state="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE":e===a.NULL?this.currentToken.publicId+=r.REPLACEMENT_CHARACTER:e===a.GREATER_THAN_SIGN?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===a.EOF?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._reconsumeInState(l)):this.currentToken.publicId+=_(e)},y.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE=function(e){e===a.APOSTROPHE?this.state="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE":e===a.NULL?this.currentToken.publicId+=r.REPLACEMENT_CHARACTER:e===a.GREATER_THAN_SIGN?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===a.EOF?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._reconsumeInState(l)):this.currentToken.publicId+=_(e)},y.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE=function(e){u(e)||(e===a.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=l):e===a.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===a.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):(this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))},y.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE=function(e){u(e)||(e===a.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===a.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):(this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))},y.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE=function(e){e===a.QUOTATION_MARK?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===a.GREATER_THAN_SIGN?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===a.NULL?this.currentToken.systemId+=r.REPLACEMENT_CHARACTER:e===a.EOF?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._reconsumeInState(l)):this.currentToken.systemId+=_(e)},y.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE=function(e){e===a.APOSTROPHE?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===a.GREATER_THAN_SIGN?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===a.NULL?this.currentToken.systemId+=r.REPLACEMENT_CHARACTER:e===a.EOF?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._reconsumeInState(l)):this.currentToken.systemId+=_(e)},y.AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE=function(e){u(e)||(e===a.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=l):e===a.EOF?(this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._reconsumeInState(l)):this.state="BOGUS_DOCTYPE_STATE")},y.BOGUS_DOCTYPE_STATE=function(e){e===a.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=l):e===a.EOF&&(this._emitCurrentToken(),this._reconsumeInState(l))},y.CDATA_SECTION_STATE=function(e){for(;;){if(e===a.EOF){this._reconsumeInState(l);break}var t=this._consumeSubsequentIfMatch(s.CDATA_END_STRING,e,!0);if(this._ensureHibernation())break;if(t){this.state=l;break}if(this._emitCodePoint(e),this._hibernationSnapshot(),e=this._consume(),this._ensureHibernation())break}}},function(e,t,n){var o=n(280),r=n(1054),i=n(1055),a=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):i(e)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return u}));var o=n(84),r=n.n(o);const i=/^\S+@\S+\.\S+$/,a=/^@\S+:\S+$/,s=/^!\S+:\S+$/,c=["mx-user-id","mx-room-id","email"],l=r.a.shape({addressType:r.a.oneOf(c).isRequired,address:r.a.string.isRequired,displayName:r.a.string,avatarMxc:r.a.string,isKnown:r.a.bool});function u(e){const t=i.test(e),n=a.test(e),o=s.test(e);return t?"email":n?"mx-user-id":o?"mx-room-id":null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var o=n(107),r=n.n(o);function i(e){if(!e)return"";const t=r.a.parse(e);return t&&"/"===t.path?t.host:e}function a(e){if(!e)return"";let t=e;e.startsWith("https://")||(t="https://"+e);return null===r.a.parse(t).hostname?e:t}},function(e,t,n){"use strict";let o;n.d(t,"a",(function(){return o})),function(e){e[e.None=0]="None",e[e.Bold=1]="Bold",e[e.Grey=2]="Grey",e[e.Red=3]="Red"}(o||(o={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var o=n(82),r=n.n(o),i=n(6),a=n(244);const s="update";class c extends i.EventEmitter{constructor(...e){super(...e),r()(this,"_symbol",void 0),r()(this,"_count",void 0),r()(this,"_color",void 0)}get symbol(){return this._symbol}get count(){return this._count}get color(){return this._color}get isIdle(){return this.color<=a.a.None}get isUnread(){return this.color>=a.a.Bold}get hasUnreadCount(){return this.color>=a.a.Grey&&(!!this.count||!!this.symbol)}get hasMentions(){return this.color>=a.a.Red}emitIfUpdated(e){e.isDifferentFrom(this)&&this.emit(s)}snapshot(){return new l(this)}destroy(){this.removeAllListeners(s)}}class l{constructor(e){r()(this,"symbol",void 0),r()(this,"count",void 0),r()(this,"color",void 0),this.symbol=e.symbol,this.count=e.count,this.color=e.color}isDifferentFrom(e){const t={count:this.count,symbol:this.symbol,color:this.color},n={count:e.count,symbol:e.symbol,color:e.color};return JSON.stringify(t)!==JSON.stringify(n)}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return g}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(81),c=n.n(s),l=n(90),u=n.n(l),d=n(100);const h=e=>{let{label:t,iconClassName:n,active:o,className:i}=e,s=a()(e,["label","iconClassName","active","className"]);return c.a.createElement(d.h,r()({},s,{className:u()(i,{mx_IconizedContextMenu_active:o}),active:o,label:t}),c.a.createElement("span",{className:u()("mx_IconizedContextMenu_icon",n)}),c.a.createElement("span",{className:"mx_IconizedContextMenu_label"},t),o&&c.a.createElement("span",{className:"mx_IconizedContextMenu_icon mx_IconizedContextMenu_checked"}))},p=e=>{let{label:t,iconClassName:n,active:o,className:i}=e,s=a()(e,["label","iconClassName","active","className"]);return c.a.createElement(d.g,r()({},s,{className:u()(i,{mx_IconizedContextMenu_active:o}),active:o,label:t}),c.a.createElement("span",{className:u()("mx_IconizedContextMenu_icon",n)}),c.a.createElement("span",{className:"mx_IconizedContextMenu_label"},t),o&&c.a.createElement("span",{className:"mx_IconizedContextMenu_icon mx_IconizedContextMenu_checked"}))},m=e=>{let{label:t,iconClassName:n}=e,o=a()(e,["label","iconClassName"]);return c.a.createElement(d.f,r()({},o,{label:t}),n&&c.a.createElement("span",{className:u()("mx_IconizedContextMenu_icon",n)}),c.a.createElement("span",{className:"mx_IconizedContextMenu_label"},t))},g=({first:e,red:t,className:n,children:o})=>{const r=u()("mx_IconizedContextMenu_optionList",n,{mx_IconizedContextMenu_optionList_notFirst:!e,mx_IconizedContextMenu_optionList_red:t});return c.a.createElement("div",{className:r},o)};t.e=e=>{let{className:t,children:n,compact:o}=e,i=a()(e,["className","children","compact"]);const s=u()("mx_IconizedContextMenu",t,{mx_IconizedContextMenu_compact:o});return c.a.createElement(d.b,r()({chevronFace:d.a.None},i),c.a.createElement("div",{className:s},n))}},function(e,t,n){"use strict";(function(e){var o=n(6),r=n.n(o),i=n(86),a=n(261);class s extends r.a{constructor(){super(),this._persistentWidgetId=null,this._roomIdByWidgetId={},this.onRoomStateEvents=this.onRoomStateEvents.bind(this),this.dispatcherRef=null}start(){i.a.get().on("RoomState.events",this.onRoomStateEvents)}stop(){i.a.get()&&i.a.get().removeListener("RoomState.events",this.onRoomStateEvents),this._roomIdByWidgetId={}}onRoomStateEvents(e,t){"im.vector.modular.widgets"===e.getType()&&e.getStateKey()===this._persistentWidgetId&&this.destroyPersistentWidget(this._persistentWidgetId)}destroyPersistentWidget(e){if(e!==this._persistentWidgetId)return;const t=this._persistentWidgetId;a.a.instance.stopMessagingById(e),this.setWidgetPersistence(t,!1),this.delRoomId(t)}setWidgetPersistence(e,t){this._persistentWidgetId!==e||t?this._persistentWidgetId!==e&&t&&(this._persistentWidgetId=e):this._persistentWidgetId=null,this.emit("update")}getWidgetPersistence(e){return this._persistentWidgetId===e}getPersistentWidgetId(){return this._persistentWidgetId}getRoomId(e){return this._roomIdByWidgetId[e]}setRoomId(e,t){this._roomIdByWidgetId[e]=t,this.emit("update")}delRoomId(e){delete this._roomIdByWidgetId[e],this.emit("update")}}void 0===e.singletonActiveWidgetStore&&(e.singletonActiveWidgetStore=new s),t.a=e.singletonActiveWidgetStore}).call(this,n(5))},function(e,t,n){"use strict";t.a={}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Notifier",(function(){return E}));var o=n(86),r=n(92),i=n(104),a=n(359),s=n(110),c=n(223),l=n(87),u=n(85),d=n(83),h=n(89),p=n(88),m=n(481),g=n(95),f=n(715),_=n(116),b=n(483);const v={"m.key.verification.request":e=>{const t=(e.sender||{}).name;return Object(d.a)("%(name)s is requesting verification",{name:t})}},E={notifsByRoom:{},pendingEncryptedEventIds:[],notificationMessageForEvent:function(e){return v.hasOwnProperty(e.getContent().msgtype)?v[e.getContent().msgtype](e):a.a(e)},_displayPopupNotification:function(t,n){const o=i.a.get();if(!o)return;if(!o.supportsNotifications()||!o.maySendNotifications())return;if(e.document.hasFocus())return;let r,a=this.notificationMessageForEvent(t);if(!a)return;t.sender&&n.name!==t.sender.name?"m.room.member"===t.getType()?r=n.name:t.sender&&(r=t.sender.name+" ("+n.name+")",t.getContent().body&&!v.hasOwnProperty(t.getContent().msgtype)&&(a=t.getContent().body)):(r=n.name,t.getContent().body&&!v.hasOwnProperty(t.getContent().msgtype)&&(a=t.getContent().body)),this.isBodyEnabled()||(a="");let s=null;t.sender&&!p.a.getValue("lowBandwidth")&&(s=c.a(t.sender,40,40,"crop"));const l=o.displayNotification(r,a,s,n);l&&(void 0===this.notifsByRoom[t.getRoomId()]&&(this.notifsByRoom[t.getRoomId()]=[]),this.notifsByRoom[t.getRoomId()].push(l))},getSoundForRoom:function(e){const t=p.a.getValue("notificationSound",e);return t?t.url?t.url.startsWith("mxc://")?{url:o.a.get().mxcUrlToHttp(t.url),name:t.name,type:t.type,size:t.size}:(console.warn(e+" has custom notification sound event, but url is not a mxc url"),null):(console.warn(e+" has custom notification sound event, but no url key"),null):null},_playAudioNotification:async function(e,t){const n=this.getSoundForRoom(t.roomId);console.log(`Got sound ${n&&n.name||"default"} for ${t.roomId}`);try{const e=document.querySelector(n?`audio[src='${n.url}']`:"#messageAudio");let t=e;if(!e){if(!n)return void console.error("No audio element or sound to play for notification");t=new Audio(n.url),n.type&&(t.type=n.type),document.body.appendChild(t)}await t.play()}catch(e){console.warn("Caught error when trying to fetch room notification sound:",e)}},start:function(){this.boundOnEvent=this.boundOnEvent||this.onEvent.bind(this),this.boundOnSyncStateChange=this.boundOnSyncStateChange||this.onSyncStateChange.bind(this),this.boundOnRoomReceipt=this.boundOnRoomReceipt||this.onRoomReceipt.bind(this),this.boundOnEventDecrypted=this.boundOnEventDecrypted||this.onEventDecrypted.bind(this),o.a.get().on("event",this.boundOnEvent),o.a.get().on("Room.receipt",this.boundOnRoomReceipt),o.a.get().on("Event.decrypted",this.boundOnEventDecrypted),o.a.get().on("sync",this.boundOnSyncStateChange),this.toolbarHidden=!1,this.isSyncing=!1},stop:function(){o.a.get()&&(o.a.get().removeListener("Event",this.boundOnEvent),o.a.get().removeListener("Room.receipt",this.boundOnRoomReceipt),o.a.get().removeListener("Event.decrypted",this.boundOnEventDecrypted),o.a.get().removeListener("sync",this.boundOnSyncStateChange)),this.isSyncing=!1},supportsDesktopNotifications:function(){const e=i.a.get();return e&&e.supportsNotifications()},setEnabled:function(e,t){const n=i.a.get();n&&(s.a.trackEvent("Notifier","Set Enabled",String(e)),p.a.isLevelSupported(g.a.DEVICE)&&p.a.setValue("audioNotificationsEnabled",null,g.a.DEVICE,this.isEnabled()),e?n.requestNotificationPermission().then(e=>{if("granted"===e)t&&t(),l.a.dispatch({action:"notifier_enabled",value:!0});else{const t=r.a.get().brand,n="denied"===e?Object(d.a)("%(brand)s does not have permission to send you notifications - please check your browser settings",{brand:t}):Object(d.a)("%(brand)s was not given permission to send notifications - please try again",{brand:t}),o=u.getComponent("dialogs.ErrorDialog");h.a.createTrackedDialog("Unable to enable Notifications",e,o,{title:Object(d.a)("Unable to enable Notifications"),description:n})}}):l.a.dispatch({action:"notifier_enabled",value:!1}),this.setPromptHidden(!0))},isEnabled:function(){return this.isPossible()&&p.a.getValue("notificationsEnabled")},isPossible:function(){const e=i.a.get();return!!e&&(!!e.supportsNotifications()&&!!e.maySendNotifications())},isBodyEnabled:function(){return this.isEnabled()&&p.a.getValue("notificationBodyEnabled")},isAudioEnabled:function(){return p.a.getValue("audioNotificationsEnabled")},setPromptHidden:function(t,n=!0){this.toolbarHidden=t,s.a.trackEvent("Notifier","Set Toolbar Hidden",String(t)),Object(m.a)(),n&&e.localStorage&&e.localStorage.setItem("notifications_hidden",String(t))},shouldShowPrompt:function(){const e=o.a.get();if(!e)return!1;return!e.isGuest()&&this.supportsDesktopNotifications()&&!Object(f.c)()&&!this.isEnabled()&&!this._isPromptHidden()},_isPromptHidden:function(){return e.localStorage?"true"===e.localStorage.getItem("notifications_hidden"):this.toolbarHidden},onSyncStateChange:function(e){"SYNCING"===e?this.isSyncing=!0:"STOPPED"!==e&&"ERROR"!==e||(this.isSyncing=!1)},onEvent:function(e){if(this.isSyncing&&(!e.sender||e.sender.userId!==o.a.get().credentials.userId))if(e.isBeingDecrypted()||e.isDecryptionFailure())for(this.pendingEncryptedEventIds.push(e.getId());this.pendingEncryptedEventIds.length>20;)this.pendingEncryptedEventIds.shift();else this._evaluateEvent(e)},onEventDecrypted:function(e){if(e.isDecryptionFailure())return;const t=this.pendingEncryptedEventIds.indexOf(e.getId());-1!==t&&(this.pendingEncryptedEventIds.splice(t,1),this._evaluateEvent(e))},onRoomReceipt:function(e,t){if(0===t.getUnreadNotificationCount()){const e=i.a.get();if(!e)return;if(void 0===this.notifsByRoom[t.roomId])return;for(const n of this.notifsByRoom[t.roomId])e.clearNotification(n);delete this.notifsByRoom[t.roomId]}},_evaluateEvent:function(e){const t=o.a.get().getRoom(e.getRoomId()),n=o.a.get().getPushActionsForEvent(e);if(n&&n.notify){if(_.a.getRoomId()===t.roomId&&b.a.sharedInstance().userActiveRecently())return;this.isEnabled()&&this._displayPopupNotification(e,t),n.tweaks.sound&&this.isAudioEnabled()&&(i.a.get().loudNotification(e,t),this._playAudioNotification(e,t))}}};window.mxNotifier||(window.mxNotifier=E),t.default=window.mxNotifier}.call(this,n(5))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{constructor(e){this._timeout=e,this._onTimeout=this._onTimeout.bind(this),this._setNotStarted()}_setNotStarted(){this._timerHandle=null,this._startTs=null,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}).finally(()=>{this._timerHandle=null})}_onTimeout(){const e=Date.now()-this._startTs;if(e>=this._timeout)this._resolve(),this._setNotStarted();else{const t=this._timeout-e;this._timerHandle=setTimeout(this._onTimeout,t)}}changeTimeout(e){if(e===this._timeout)return;const t=e<this._timeout;this._timeout=e,this.isRunning()&&t&&(clearTimeout(this._timerHandle),this._onTimeout())}start(){return this.isRunning()||(this._startTs=Date.now(),this._timerHandle=setTimeout(this._onTimeout,this._timeout)),this}restart(){return this.isRunning()?(this._startTs=Date.now(),this):this.start()}abort(){return this.isRunning()&&(clearTimeout(this._timerHandle),this._reject(new Error("Timer was aborted.")),this._setNotStarted()),this}finished(){return this._promise}isRunning(){return null!==this._timerHandle}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(85),u=n(86),d=n(96),h=n(83),p=n(170);class m extends a.a.PureComponent{constructor(e){super(e),r()(this,"_onCancel",()=>{this.props.onFinished(!1)}),r()(this,"_onDone",()=>{this.props.onFinished(!0)}),r()(this,"_onUseRecoveryKeyClick",()=>{this.setState({forceRecoveryKey:!0})}),r()(this,"_progressCallback",e=>{this.setState({progress:e})}),r()(this,"_onResetRecoveryClick",()=>{this.props.onFinished(!1),Object(p.b)(()=>{},!0)}),r()(this,"_onRecoveryKeyChange",e=>{this.setState({recoveryKey:e.target.value,recoveryKeyValid:u.a.get().isValidRecoveryKey(e.target.value)})}),r()(this,"_onPassPhraseNext",async()=>{this.setState({loading:!0,restoreError:null,restoreType:0});try{const e=await u.a.get().restoreKeyBackupWithPassword(this.state.passPhrase,void 0,void 0,this.state.backupInfo,{progressCallback:this._progressCallback});if(this.props.keyCallback){const e=await u.a.get().keyBackupKeyFromPassword(this.state.passPhrase,this.state.backupInfo);this.props.keyCallback(e)}if(!this.props.showSummary)return void this.props.onFinished(!0);this.setState({loading:!1,recoverInfo:e})}catch(e){console.log("Error restoring backup",e),this.setState({loading:!1,restoreError:e})}}),r()(this,"_onRecoveryKeyNext",async()=>{if(this.state.recoveryKeyValid){this.setState({loading:!0,restoreError:null,restoreType:1});try{const e=await u.a.get().restoreKeyBackupWithRecoveryKey(this.state.recoveryKey,void 0,void 0,this.state.backupInfo,{progressCallback:this._progressCallback});if(this.props.keyCallback){const e=u.a.get().keyBackupKeyFromRecoveryKey(this.state.recoveryKey);this.props.keyCallback(e)}if(!this.props.showSummary)return void this.props.onFinished(!0);this.setState({loading:!1,recoverInfo:e})}catch(e){console.log("Error restoring backup",e),this.setState({loading:!1,restoreError:e})}}}),r()(this,"_onPassPhraseChange",e=>{this.setState({passPhrase:e.target.value})}),this.state={backupInfo:null,backupKeyStored:null,loading:!1,loadError:null,restoreError:null,recoveryKey:"",recoverInfo:null,recoveryKeyValid:!1,forceRecoveryKey:!1,passPhrase:"",restoreType:null,progress:{stage:"prefetch"}}}componentDidMount(){this._loadBackupStatus()}async _restoreWithSecretStorage(){this.setState({loading:!0,restoreError:null,restoreType:2});try{const e=await Object(p.b)(async()=>u.a.get().restoreKeyBackupWithSecretStorage(this.state.backupInfo,void 0,void 0,{progressCallback:this._progressCallback}));this.setState({loading:!1,recoverInfo:e})}catch(e){console.log("Error restoring backup",e),this.setState({restoreError:e,loading:!1})}}async _restoreWithCachedKey(e){if(!e)return!1;try{const t=await u.a.get().restoreKeyBackupWithCache(void 0,void 0,e,{progressCallback:this._progressCallback});return this.setState({recoverInfo:t}),!0}catch(e){return console.log("restoreWithCachedKey failed:",e),!1}}async _loadBackupStatus(){this.setState({loading:!0,loadError:null});try{const e=u.a.get(),t=await e.getKeyBackupVersion(),n=await e.hasSecretStorageKey()&&await e.isKeyBackupKeyStored();this.setState({backupInfo:t,backupKeyStored:n});if(await this._restoreWithCachedKey(t))return console.log("RestoreKeyBackupDialog: found cached backup key"),void this.setState({loading:!1});if(n)return this._restoreWithSecretStorage();this.setState({loadError:null,loading:!1})}catch(e){console.log("Error loading backup status",e),this.setState({loadError:e,loading:!1})}}render(){const e=l.getComponent("views.dialogs.BaseDialog"),t=l.getComponent("elements.Spinner"),n=this.state.backupInfo&&this.state.backupInfo.auth_data&&this.state.backupInfo.auth_data.private_key_salt&&this.state.backupInfo.auth_data.private_key_iterations;let o,r;if(this.state.loading){let e;if(r=Object(h.a)("Restoring keys from backup"),"fetch"===this.state.progress.stage)e=Object(h.a)("Fetching keys from server...");else if("load_keys"===this.state.progress.stage){const{total:t,successes:n,failures:o}=this.state.progress;e=Object(h.a)("%(completed)s of %(total)s keys restored",{total:t,completed:n+o})}else"prefetch"===this.state.progress.stage&&(e=Object(h.a)("Fetching keys from server..."));o=a.a.createElement("div",null,a.a.createElement("div",null,e),a.a.createElement(t,null))}else if(this.state.loadError)r=Object(h.a)("Error"),o=Object(h.a)("Unable to load backup status");else if(this.state.restoreError)this.state.restoreError.errcode===d.i.RESTORE_BACKUP_ERROR_BAD_KEY?1===this.state.restoreType?(r=Object(h.a)("Recovery key mismatch"),o=a.a.createElement("div",null,a.a.createElement("p",null,Object(h.a)("Backup could not be decrypted with this recovery key: please verify that you entered the correct recovery key.")))):(r=Object(h.a)("Incorrect recovery passphrase"),o=a.a.createElement("div",null,a.a.createElement("p",null,Object(h.a)("Backup could not be decrypted with this recovery passphrase: please verify that you entered the correct recovery passphrase.")))):(r=Object(h.a)("Error"),o=Object(h.a)("Unable to restore backup"));else if(null===this.state.backupInfo)r=Object(h.a)("Error"),o=Object(h.a)("No backup found!");else if(this.state.recoverInfo){const e=l.getComponent("views.elements.DialogButtons");let t;r=Object(h.a)("Keys restored"),this.state.recoverInfo.total>this.state.recoverInfo.imported&&(t=a.a.createElement("p",null,Object(h.a)("Failed to decrypt %(failedCount)s sessions!",{failedCount:this.state.recoverInfo.total-this.state.recoverInfo.imported}))),o=a.a.createElement("div",null,a.a.createElement("p",null,Object(h.a)("Successfully restored %(sessionCount)s keys",{sessionCount:this.state.recoverInfo.imported})),t,a.a.createElement(e,{primaryButton:Object(h.a)("OK"),onPrimaryButtonClick:this._onDone,hasCancel:!1,focus:!0}))}else if(n&&!this.state.forceRecoveryKey){const e=l.getComponent("views.elements.DialogButtons"),t=l.getComponent("elements.AccessibleButton");r=Object(h.a)("Enter recovery passphrase"),o=a.a.createElement("div",null,a.a.createElement("p",null,Object(h.a)("<b>Warning</b>: you should only set up key backup from a trusted computer.",{},{b:e=>a.a.createElement("b",null,e)})),a.a.createElement("p",null,Object(h.a)("Access your secure message history and set up secure messaging by entering your recovery passphrase.")),a.a.createElement("form",{className:"mx_RestoreKeyBackupDialog_primaryContainer"},a.a.createElement("input",{type:"password",className:"mx_RestoreKeyBackupDialog_passPhraseInput",onChange:this._onPassPhraseChange,value:this.state.passPhrase,autoFocus:!0}),a.a.createElement(e,{primaryButton:Object(h.a)("Next"),onPrimaryButtonClick:this._onPassPhraseNext,primaryIsSubmit:!0,hasCancel:!0,onCancel:this._onCancel,focus:!1})),Object(h.a)("If you've forgotten your recovery passphrase you can <button1>use your recovery key</button1> or <button2>set up new recovery options</button2>",{},{button1:e=>a.a.createElement(t,{className:"mx_linkButton",element:"span",onClick:this._onUseRecoveryKeyClick},e),button2:e=>a.a.createElement(t,{className:"mx_linkButton",element:"span",onClick:this._onResetRecoveryClick},e)}))}else{r=Object(h.a)("Enter recovery key");const e=l.getComponent("views.elements.DialogButtons"),t=l.getComponent("elements.AccessibleButton");let n;n=0===this.state.recoveryKey.length?a.a.createElement("div",{className:"mx_RestoreKeyBackupDialog_keyStatus"}):this.state.recoveryKeyValid?a.a.createElement("div",{className:"mx_RestoreKeyBackupDialog_keyStatus"},"👍 ",Object(h.a)("This looks like a valid recovery key!")):a.a.createElement("div",{className:"mx_RestoreKeyBackupDialog_keyStatus"},"👎 ",Object(h.a)("Not a valid recovery key")),o=a.a.createElement("div",null,a.a.createElement("p",null,Object(h.a)("<b>Warning</b>: You should only set up key backup from a trusted computer.",{},{b:e=>a.a.createElement("b",null,e)})),a.a.createElement("p",null,Object(h.a)("Access your secure message history and set up secure messaging by entering your recovery key.")),a.a.createElement("div",{className:"mx_RestoreKeyBackupDialog_primaryContainer"},a.a.createElement("input",{className:"mx_RestoreKeyBackupDialog_recoveryKeyInput",onChange:this._onRecoveryKeyChange,value:this.state.recoveryKey,autoFocus:!0}),n,a.a.createElement(e,{primaryButton:Object(h.a)("Next"),onPrimaryButtonClick:this._onRecoveryKeyNext,hasCancel:!0,onCancel:this._onCancel,focus:!1,primaryDisabled:!this.state.recoveryKeyValid})),Object(h.a)("If you've forgotten your recovery key you can <button>set up new recovery options</button>",{},{button:e=>a.a.createElement(t,{className:"mx_linkButton",element:"span",onClick:this._onResetRecoveryClick},e)}))}return a.a.createElement(e,{className:"mx_RestoreKeyBackupDialog",onFinished:this.props.onFinished,title:r},a.a.createElement("div",{className:"mx_RestoreKeyBackupDialog_content"},o))}}r()(m,"propTypes",{showSummary:c.a.bool,keyCallback:c.a.func}),r()(m,"defaultProps",{showSummary:!0})},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(85);function r(e,t){return()=>o.getComponent(e)||t}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return h}));var o=n(83),r=n(302),i=n(88),a=n(370);const s="light";function c(){const e={light:Object(o.a)("Light"),dark:Object(o.a)("Dark")},t=i.a.getValue("custom_themes"),n={};for(const{name:e}of t)n["custom-"+e]=e;return Object.assign({},n,e)}const l=["font-display","font-family","font-stretch","font-style","font-weight","font-variant","font-feature-settings","font-variation-settings","src","unicode-range"];function u(e){const{style:t}=document.body;function n(e,n,o=!0){t.setProperty("--"+e,n),o&&(t.setProperty(`--${e}-0pct`,n+"00"),t.setProperty(`--${e}-15pct`,n+"26"),t.setProperty(`--${e}-50pct`,n+"7F"))}if(e.colors)for(const[t,o]of Object.entries(e.colors))if(Array.isArray(o))for(let e=0;e<o.length;e+=1)n(`${t}_${e}`,o[e],!1);else n(t,o);if(e.fonts){const{fonts:n}=e;if(n.faces){const e=n.faces.map(e=>{const t=e.src&&e.src.map(e=>{let t;return e.format&&(t=`format("${e.format}")`),e.url?`url("${e.url}") ${t}`:e.local?`local("${e.local}") ${t}`:""}).join(", ");return`@font-face {${Object.keys(e).filter(e=>l.includes(e)).map(n=>{let o;return o="src"===n?t:"font-family"===n?`"${e[n]}"`:e[n],`${n}: ${o}`}).join(";")}}`}).join("\n"),t=document.createElement("style");t.setAttribute("title","custom-theme-font-faces"),t.setAttribute("type","text/css"),t.appendChild(document.createTextNode(e)),document.head.appendChild(t)}n.general&&t.setProperty("--font-family",n.general),n.monospace&&t.setProperty("--font-family-monospace",n.monospace)}}function d(e){const t=i.a.getValue("custom_themes");if(!t)throw new Error(`No custom themes set, can't set custom theme "${e}"`);const n=t.find(t=>t.name===e);if(!n){const n=t.map(e=>e.name).join(", ");throw new Error(`Can't find custom theme "${e}", only know ${n}`)}return n}async function h(t){if(!t){const e=new a.a;t=e.getEffectiveTheme()}!function(){const e=Object.values(document.body.style);for(const t of e)t.startsWith("--")&&document.body.style.removeProperty(t);const t=document.querySelector("head > style[title='custom-theme-font-faces']");t&&t.remove()}();let n=t;if(t.startsWith("custom-")){const e=d(t.substr(7));n=e.is_dark?"dark-custom":"light-custom",u(e)}const o=Object.create(null);let i;for(let e=0;i=document.getElementsByTagName("link")[e];e++){const e=i.getAttribute("href").match(/^bundles\/.*\/theme-(.*)\.css$/);e&&(o[e[1]]=i)}if(!(n in o))throw new Error("Unknown theme "+n);return o[n].disabled=!1,new Promise(i=>{const a=function(){o[n].disabled=!1,Object.values(o).forEach(e=>{e!=o[n]&&(e.disabled=!0)});const a=e.getComputedStyle(document.body);a.backgroundColor&&(document.querySelector('meta[name="theme-color"]').content=a.backgroundColor),r.a.setTheme(t),i()};let s=!1;o[n].onload=()=>{a()};for(let e=0;e<document.styleSheets.length;e++){const t=document.styleSheets[e];if(t&&t.href===o[n].href){s=!0;break}}s&&(o[n].onload=void 0,a())})}}).call(this,n(5))},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return m}));var o=n(82),r=n.n(o),i=n(124),a=n(87),s=n(93),c=n(488),l=n(86),u=n(368);const d="mx_sso_hs_url",h="mx_sso_is_url";let p;!function(e){e.Checking="CHECKING",e.Error="ERROR",e.NotAvailable="NOTAVAILABLE",e.Downloading="DOWNLOADING",e.Ready="READY"}(p||(p={}));class m{constructor(){r()(this,"notificationCount",0),r()(this,"errorDidOccur",!1),r()(this,"onAction",e=>{switch(e.action){case"on_client_not_viable":case"on_logged_out":this.setNotificationCount(0)}}),a.a.register(this.onAction),this.startUpdateCheck=this.startUpdateCheck.bind(this)}setNotificationCount(e){this.notificationCount=e}setErrorStatus(e){this.errorDidOccur=e}async canSelfUpdate(){return!1}startUpdateCheck(){Object(c.a)(),localStorage.removeItem("mx_defer_update"),a.a.dispatch({action:s.a.CheckUpdates,status:p.Checking})}installUpdate(){}shouldShowUpdate(e){if(l.a.userRegisteredWithinLastHours(24))return!1;try{const[t,n]=JSON.parse(localStorage.getItem("mx_defer_update"));return e!==t||Date.now()>n}catch(e){return!0}}deferUpdate(e){const t=new Date(Date.now()+864e5);t.setHours(8,0,0,0),localStorage.setItem("mx_defer_update",JSON.stringify([e,t.getTime()])),Object(c.a)()}supportsNotifications(){return!1}maySendNotifications(){return!1}loudNotification(e,t){}clearNotification(e){e.close&&e.close()}screenCaptureErrorString(){return"Not implemented"}supportsAutoLaunch(){return!1}async getAutoLaunchEnabled(){return!1}async setAutoLaunchEnabled(e){throw new Error("Unimplemented")}supportsAutoHideMenuBar(){return!1}async getAutoHideMenuBarEnabled(){return!1}async setAutoHideMenuBarEnabled(e){throw new Error("Unimplemented")}supportsMinimizeToTray(){return!1}async getMinimizeToTrayEnabled(){return!1}async setMinimizeToTrayEnabled(e){throw new Error("Unimplemented")}getEventIndexingManager(){return null}setLanguage(e){}getSSOCallbackUrl(e){const t=new URL(window.location.href);return t.hash=e||"",t}startSingleSignOn(e,t,n,o){localStorage.setItem(d,e.getHomeserverUrl()),e.getIdentityServerUrl()&&localStorage.setItem(h,e.getIdentityServerUrl());const r=this.getSSOCallbackUrl(n);window.location.href=e.getSsoLoginUrl(r.toString(),t,o)}onKeyDown(e){return!1}async getPickleKey(e,t){if(!window.crypto||!window.crypto.subtle)return null;let n;try{n=await Object(u.c)("pickleKey",[e,t])}catch(e){}if(!n)return null;if(!n.encrypted||!n.iv||!n.cryptoKey)return console.error("Badly formatted pickle key"),null;const o=new Uint8Array(e.length+t.length+1);for(let t=0;t<e.length;t++)o[t]=e.charCodeAt(t);o[e.length]=124;for(let n=0;n<t.length;n++)o[e.length+1+n]=t.charCodeAt(n);try{const e=await crypto.subtle.decrypt({name:"AES-GCM",iv:n.iv,additionalData:o},n.cryptoKey,n.encrypted);return Object(i.encodeUnpaddedBase64)(e)}catch(e){return console.error("Error decrypting pickle key"),null}}async createPickleKey(e,t){if(!window.crypto||!window.crypto.subtle)return null;const n=window.crypto,o=new Uint8Array(32);n.getRandomValues(o);const r=await n.subtle.generateKey({name:"AES-GCM",length:256},!1,["encrypt","decrypt"]),a=new Uint8Array(32);n.getRandomValues(a);const s=new Uint8Array(e.length+t.length+1);for(let t=0;t<e.length;t++)s[t]=e.charCodeAt(t);s[e.length]=124;for(let n=0;n<t.length;n++)s[e.length+1+n]=t.charCodeAt(n);const c=await n.subtle.encrypt({name:"AES-GCM",iv:a,additionalData:s},r,o);try{await Object(u.d)("pickleKey",[e,t],{encrypted:c,iv:a,cryptoKey:r})}catch(e){return null}return Object(i.encodeUnpaddedBase64)(o)}async destroyPickleKey(e,t){try{await Object(u.b)("pickleKey",[e,t])}catch(e){}}}},function(e,t){e.exports="img/warning.05cc423.svg"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(105);function r(e,t){const n=Object(o.throttle)(e,t,{leading:!0,trailing:!0}),r=n.bind;return n.bind=function(){const e=r.apply(n,arguments);return e.cancelPendingCall=n.cancelPendingCall,e},n.cancelPendingCall=function(){n.cancel()},n}},function(e,t,n){"use strict";var o=n(505);i.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}();var r=i.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function i(e,t,n){return i.TYPED_ARRAY_SUPPORT||this instanceof i?"number"==typeof e?c(this,e):function(e,t,n,o){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer)return function(e,t,n,o){if(n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");var r;r=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o);i.TYPED_ARRAY_SUPPORT?r.__proto__=i.prototype:r=l(e,r);return r}(e,t,n,o);if("string"==typeof t)return function(e,t){var n=0|d(t),o=s(e,n),r=o.write(t);r!==n&&(o=o.slice(0,r));return o}(e,t);return function(e,t){if(i.isBuffer(t)){var n=0|a(t.length),o=s(e,n);return 0===o.length||t.copy(o,0,0,n),o}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):l(e,t);if("Buffer"===t.type&&Array.isArray(t.data))return l(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}(this,e,t,n):new i(e,t,n)}function a(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function s(e,t){var n;return i.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t)).__proto__=i.prototype:(null===(n=e)&&(n=new i(t)),n.length=t),n}function c(e,t){var n=s(e,t<0?0:0|a(t));if(!i.TYPED_ARRAY_SUPPORT)for(var o=0;o<t;++o)n[o]=0;return n}function l(e,t){for(var n=t.length<0?0:0|a(t.length),o=s(e,n),r=0;r<n;r+=1)o[r]=255&t[r];return o}function u(e,t){var n;t=t||1/0;for(var o=e.length,r=null,i=[],a=0;a<o;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function d(e){return i.isBuffer(e)?e.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!=typeof e&&(e=""+e),0===e.length?0:u(e).length)}i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),i.prototype.write=function(e,t,n){void 0===t||void 0===n&&"string"==typeof t?(n=this.length,t=0):isFinite(t)&&(t|=0,isFinite(n)?n|=0:n=void 0);var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,n,o){return function(e,t,n,o){for(var r=0;r<o&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}(u(t,e.length-n),e,n,o)}(this,e,t,n)},i.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),i.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=i.prototype;else{var r=t-e;n=new i(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+e]}return n},i.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var r,a=o-n;if(this===e&&n<t&&t<o)for(r=a-1;r>=0;--r)e[r+t]=this[r+n];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},i.prototype.fill=function(e,t,n){if("string"==typeof e){if("string"==typeof t?(t=0,n=this.length):"string"==typeof n&&(n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var r;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r<n;++r)this[r]=e;else{var a=i.isBuffer(e)?e:new i(e),s=a.length;for(r=0;r<n-t;++r)this[r+t]=a[r%s]}return this},i.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s(null,0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c(null,t),a=0;for(n=0;n<e.length;++n){var l=e[n];if(!i.isBuffer(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(r,a),a+=l.length}return r},i.byteLength=d,i.prototype._isBuffer=!0,i.isBuffer=function(e){return!(null==e||!e._isBuffer)},e.exports.alloc=function(e){var t=new i(e);return t.fill(0),t},e.exports.from=function(e){return new i(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(82),c=n.n(s),l=n(81),u=n.n(l),d=n(87),h=n(93),p=n(86),m=n(163);class g extends u.a.Component{constructor(e){super(e),this.state=g.getState(e)}static getDerivedStateFromProps(e){return g.getState(e)}static getState(e){return e.member&&e.member.name?{name:e.member.name,title:e.title||e.member.userId,imageUrl:e.member.getAvatarUrl(p.a.get().getHomeserverUrl(),Math.floor(e.width*window.devicePixelRatio),Math.floor(e.height*window.devicePixelRatio),e.resizeMethod,!1,!1)}:e.fallbackUserId?{name:e.fallbackUserId,title:e.fallbackUserId}:void console.error("MemberAvatar called somehow with null member or fallbackUserId")}render(){let e=this.props,{member:t,fallbackUserId:n,onClick:o,viewUserOnClick:i}=e,s=a()(e,["member","fallbackUserId","onClick","viewUserOnClick"]);const c=t?t.userId:n;return i&&(o=()=>{d.a.dispatch({action:h.a.ViewUser,member:this.props.member})}),u.a.createElement(m.a,r()({},s,{name:this.state.name,title:this.state.title,idName:c,url:this.state.imageUrl,onClick:o}))}}c()(g,"defaultProps",{width:40,height:40,resizeMethod:"crop",viewUserOnClick:!1})},function(e,t,n){"use strict";var o=n(1579),r=n(451).decodeHTML,i="&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});",a="<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>",s="</[A-Za-z][A-Za-z0-9-]*\\s*[>]",c=new RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|</[A-Za-z][A-Za-z0-9-]*\\s*[>]|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|[<][?].*?[?][>]|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)","i"),l=/[\\&]/,u="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",d=new RegExp("\\\\"+u+"|"+i,"gi"),h=new RegExp('[&<>"]',"g"),p=function(e){return 92===e.charCodeAt(0)?e.charAt(1):r(e)},m=function(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return e}};e.exports={unescapeString:function(e){return l.test(e)?e.replace(d,p):e},normalizeURI:function(e){try{return o(e)}catch(t){return e}},escapeXml:function(e){return h.test(e)?e.replace(h,m):e},reHtmlTag:c,OPENTAG:a,CLOSETAG:s,ENTITY:i,ESCAPABLE:u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(96),c=n(83);var l=n(92);const u=[s.a.ERROR_INVALID_HOMESERVER,s.a.ERROR_INVALID_IDENTITY_SERVER];class d{constructor(){r()(this,"hsUrl",void 0),r()(this,"hsName",void 0),r()(this,"hsNameIsDifferent",void 0),r()(this,"isUrl",void 0),r()(this,"isDefault",void 0),r()(this,"isNameResolvable",void 0),r()(this,"warning",void 0)}}class h{static isLivelinessError(e){return!!e&&!!u.find(t=>t===e||t===e.message)}static authComponentStateForError(e,t="login"){if(!e)return{serverIsAlive:!0,serverErrorIsFatal:!1,serverDeadError:null};let n=Object(c.a)("Cannot reach homeserver"),o=Object(c.a)("Ensure you have a stable internet connection, or get in touch with the server admin");if(!h.isLivelinessError(e)){const e=l.a.get().brand;n=Object(c.a)("Your %(brand)s is misconfigured",{brand:e}),o=Object(c.a)("Ask your %(brand)s admin to check <a>your config</a> for incorrect or duplicate entries.",{brand:e},{a:e=>a.a.createElement("a",{href:"https://github.com/vector-im/element-web/blob/master/docs/config.md",target:"_blank",rel:"noreferrer noopener"},e)})}let r=!0;return(e.message?e.message:e)===s.a.ERROR_INVALID_IDENTITY_SERVER&&(r=!1,n=Object(c.a)("Cannot reach identity server"),o="register"===t?Object(c.a)("You can register, but some features will be unavailable until the identity server is back online. If you keep seeing this warning, check your configuration or contact a server admin."):"reset_password"===t?Object(c.a)("You can reset your password, but some features will be unavailable until the identity server is back online. If you keep seeing this warning, check your configuration or contact a server admin."):Object(c.a)("You can log in, but some features will be unavailable until the identity server is back online. If you keep seeing this warning, check your configuration or contact a server admin.")),{serverIsAlive:!1,serverErrorIsFatal:r,serverDeadError:a.a.createElement("div",null,a.a.createElement("strong",null,n),a.a.createElement("div",null,o))}}static async validateServerConfigWithStaticUrls(e,t,n=!1){if(!e)throw Object(c.h)(Object(c.b)("No homeserver URL provided"));const o={"m.homeserver":{base_url:e}};t&&(o["m.identity_server"]={base_url:t});const r=await s.a.fromDiscoveryConfig(o),i=new URL(e).hostname;return h.buildValidatedConfigFromDiscovery(i,r,n,!0)}static async validateServerName(e){const t=await s.a.findClientConfig(e);return h.buildValidatedConfigFromDiscovery(e,t)}static buildValidatedConfigFromDiscovery(e,t,n=!1,o=!1){if(!t||!t["m.homeserver"])throw console.error("Ended up in a state of not knowing which homeserver to connect to."),Object(c.h)(Object(c.b)("Unexpected error resolving homeserver configuration"));const r=t["m.homeserver"],i=t["m.identity_server"],a=l.a.get().validated_server_config;let u=a&&a.isUrl;if(i&&i.state===s.a.SUCCESS)u=i.base_url;else if(i&&i.state!==s.a.PROMPT){if(console.error("Error determining preferred identity server URL:",i),i.state===s.a.FAIL_ERROR){if(-1!==s.a.ALL_ERRORS.indexOf(i.error))throw Object(c.h)(i.error);throw Object(c.h)(Object(c.b)("Unexpected error resolving identity server configuration"))}r.error=s.a.ERROR_INVALID_IDENTITY_SERVER,i.base_url&&(u=i.base_url)}if(r.state!==s.a.SUCCESS&&(console.error("Error processing homeserver config:",r),!n||!h.isLivelinessError(r.error))){if(-1!==s.a.ALL_ERRORS.indexOf(r.error))throw Object(c.h)(r.error);throw Object(c.h)(Object(c.b)("Unexpected error resolving homeserver configuration"))}const p=r.base_url;let m=e||r.server_name;const g=new URL(p);if(m||(m=g.hostname),!m)throw console.error("Failed to parse homeserver name from homeserver URL"),Object(c.h)(Object(c.b)("Unexpected error resolving homeserver configuration"));return function(e,t){const n=new e;return Object.assign(n,t),n}(d,{hsUrl:p,hsName:m,hsNameIsDifferent:g.hostname!==m,isUrl:u,isDefault:!1,warning:r.error,isNameResolvable:!o})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(82),r=n.n(o),i=n(139),a=n(87);n(117);class s extends Map{constructor(e){super(e)}getOrCreate(e,t){return this.has(e)?this.get(e):(this.set(e,t),t)}remove(e){const t=this.get(e);return this.delete(e),t}}class c extends i.a{constructor(){super(a.a),r()(this,"widgetMap",new s)}static get instance(){return c.internalInstance}async onAction(e){}async onReady(){this.widgetMap.clear()}storeMessaging(e,t){this.stopMessaging(e),this.widgetMap.set(e.id,t)}stopMessaging(e){var t;null===(t=this.widgetMap.remove(e.id))||void 0===t||t.stop()}getMessaging(e){return this.widgetMap.get(e.id)}stopMessagingById(e){var t;null===(t=this.widgetMap.remove(e))||void 0===t||t.stop()}getMessagingForId(e){return this.widgetMap.get(e)}}r()(c,"internalInstance",new c)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(200),r=n(1);function i(e){return"string"==typeof e&&!!e&&"undefined"!==e&&"null"!==e||"number"==typeof e}function a(e){e=e||{},this.rooms={},this.groups={},this.users={},this.syncToken=null,this.filters={},this.accountData={},this.localStorage=e.localStorage,this._oobMembers={},this._clientOptions={}}a.prototype={getSyncToken:function(){return this.syncToken},isNewlyCreated:function(){return Promise.resolve(!0)},setSyncToken:function(e){this.syncToken=e},storeGroup:function(e){this.groups[e.groupId]=e},getGroup:function(e){return this.groups[e]||null},getGroups:function(){return r.B(this.groups)},storeRoom:function(e){this.rooms[e.roomId]=e,e.currentState.on("RoomState.members",this._onRoomMember.bind(this));const t=this;e.currentState.getMembers().forEach((function(n){t._onRoomMember(null,e.currentState,n)}))},_onRoomMember:function(e,t,n){if("invite"===n.membership)return;const r=this.users[n.userId]||new o.a(n.userId);n.name&&(r.setDisplayName(n.name),n.events.member&&r.setRawDisplayName(n.events.member.getDirectionalContent().displayname)),n.events.member&&n.events.member.getContent().avatar_url&&r.setAvatarUrl(n.events.member.getContent().avatar_url),this.users[r.userId]=r},getRoom:function(e){return this.rooms[e]||null},getRooms:function(){return r.B(this.rooms)},removeRoom:function(e){this.rooms[e]&&this.rooms[e].removeListener("RoomState.members",this._onRoomMember),delete this.rooms[e]},getRoomSummaries:function(){return r.u(r.B(this.rooms),(function(e){return e.summary}))},storeUser:function(e){this.users[e.userId]=e},getUser:function(e){return this.users[e]||null},getUsers:function(){return r.B(this.users)},scrollback:function(e,t){return[]},storeEvents:function(e,t,n,o){},storeFilter:function(e){e&&(this.filters[e.userId]||(this.filters[e.userId]={}),this.filters[e.userId][e.filterId]=e)},getFilter:function(e,t){return this.filters[e]&&this.filters[e][t]?this.filters[e][t]:null},getFilterIdByName:function(e){if(!this.localStorage)return null;const t="mxjssdk_memory_filter_"+e;try{const e=this.localStorage.getItem(t);if(i(e))return e}catch(e){}return null},setFilterIdByName:function(e,t){if(!this.localStorage)return;const n="mxjssdk_memory_filter_"+e;try{i(t)?this.localStorage.setItem(n,t):this.localStorage.removeItem(n)}catch(e){}},storeAccountDataEvents:function(e){const t=this;e.forEach((function(e){t.accountData[e.getType()]=e}))},getAccountData:function(e){return this.accountData[e]},setSyncData:function(e){return Promise.resolve()},wantsSave:function(){return!1},save:function(e){},startup:function(){return Promise.resolve()},getSavedSync:function(){return Promise.resolve(null)},getSavedSyncToken:function(){return Promise.resolve(null)},deleteAllData:function(){return this.rooms={},this.users={},this.syncToken=null,this.filters={},this.accountData={},Promise.resolve()},getOutOfBandMembers:function(e){return Promise.resolve(this._oobMembers[e]||null)},setOutOfBandMembers:function(e,t){return this._oobMembers[e]=t,Promise.resolve()},clearOutOfBandMembers:function(){return this._oobMembers={},Promise.resolve()},getClientOptions:function(){return Promise.resolve(this._clientOptions)},storeClientOptions:function(e){return this._clientOptions=Object.assign({},e),Promise.resolve()}}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"ContentHelpers",(function(){return k})),n.d(t,"request",(function(){return A})),n.d(t,"getRequest",(function(){return I})),n.d(t,"wrapRequest",(function(){return D})),n.d(t,"setCryptoStoreFactory",(function(){return F})),n.d(t,"createClient",(function(){return M}));var o=n(264),r=n(262),i=n(387),a=n(265);n.d(t,"CRYPTO_ENABLED",(function(){return a.a})),n.d(t,"MatrixClient",(function(){return a.b}));var s=n(266);n.d(t,"PREFIX_R0",(function(){return s.h})),n.d(t,"PREFIX_UNSTABLE",(function(){return s.i})),n.d(t,"PREFIX_IDENTITY_V1",(function(){return s.e})),n.d(t,"PREFIX_IDENTITY_V2",(function(){return s.f})),n.d(t,"PREFIX_MEDIA_R0",(function(){return s.g})),n.d(t,"MatrixHttpApi",(function(){return s.d})),n.d(t,"MatrixError",(function(){return s.c})),n.d(t,"ConnectionError",(function(){return s.b})),n.d(t,"AbortError",(function(){return s.a})),n.d(t,"retryNetworkOperation",(function(){return s.j}));var c=n(270);n.d(t,"AutoDiscovery",(function(){return c.a}));var l=n(17);n.d(t,"SyncAccumulator",(function(){return l.a}));var u=n(202);n.d(t,"InvalidStoreError",(function(){return u.b})),n.d(t,"InvalidCryptoStoreError",(function(){return u.a})),n.d(t,"KeySignatureUploadError",(function(){return u.c}));var d=n(129);n.d(t,"EventStatus",(function(){return d.a})),n.d(t,"MatrixEvent",(function(){return d.b}));var h=n(313);n.d(t,"Room",(function(){return h.a}));var p=n(315);n.d(t,"Group",(function(){return p.a}));var m=n(162);n.d(t,"EventTimeline",(function(){return m.a}));var g=n(381);n.d(t,"EventTimelineSet",(function(){return g.a}));var f=n(175);n.d(t,"RoomMember",(function(){return f.a}));var _=n(385);n.d(t,"RoomState",(function(){return _.a}));var b=n(200);n.d(t,"User",(function(){return b.a})),n.d(t,"MatrixScheduler",(function(){return i.a}));var v=n(382);n.d(t,"Filter",(function(){return v.a}));var E=n(537);n.d(t,"TimelineWindow",(function(){return E.b})),n.d(t,"TimelineIndex",(function(){return E.a}));var y=n(538);n.d(t,"InteractiveAuth",(function(){return y.a}));var S=n(388);n.d(t,"SERVICE_TYPES",(function(){return S.a})),n.d(t,"MemoryStore",(function(){return r.a}));var T=n(539);n.d(t,"IndexedDBStore",(function(){return T.a}));var w=n(540);n.d(t,"WebStorageSessionStore",(function(){return w.a})),n.d(t,"MemoryCryptoStore",(function(){return o.a}));var C=n(165);n.d(t,"IndexedDBCryptoStore",(function(){return C.a}));var x=n(128);n.d(t,"getHttpUriForMxc",(function(){return x.a}));var O=n(119);n.d(t,"createNewMatrixCall",(function(){return O.g})),n.d(t,"setMatrixCallAudioOutput",(function(){return O.i})),n.d(t,"setMatrixCallAudioInput",(function(){return O.h})),n.d(t,"setMatrixCallVideoInput",(function(){return O.j}));const k=Promise.resolve().then(n.bind(null,532));let R;function A(e){R=e}function I(){return R}function D(e){const t=R;R=function(n,o){return e(t,n,o)}}let N=()=>new o.a;function F(e){N=e}function M(t){return"string"==typeof t&&(t={baseUrl:t}),t.request=t.request||R,t.store=t.store||new r.a({localStorage:e.localStorage}),t.scheduler=t.scheduler||new i.a,t.cryptoStore=t.cryptoStore||N(),new a.b(t)}}.call(this,n(5))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(201),r=n.n(o),i=n(0),a=n(1);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class l{constructor(){this._outgoingRoomKeyRequests=[],this._account=null,this._crossSigningKeys=null,this._privateKeys={},this._backupKeys={},this._sessions={},this._sessionProblems={},this._notifiedErrorDevices={},this._inboundGroupSessions={},this._inboundGroupSessionsWithheld={},this._deviceData=null,this._rooms={},this._sessionsNeedingBackup={}}async startup(){return this}deleteAllData(){return Promise.resolve()}getOrAddOutgoingRoomKeyRequest(e){const t=e.requestBody;return a.x(()=>{const n=this._getOutgoingRoomKeyRequest(t);return n?(i.a.log(`already have key request outstanding for ${t.room_id} / ${t.session_id}: not sending another`),n):(i.a.log(`enqueueing key request for ${t.room_id} / `+t.session_id),this._outgoingRoomKeyRequests.push(e),e)})}getOutgoingRoomKeyRequest(e){return Promise.resolve(this._getOutgoingRoomKeyRequest(e))}_getOutgoingRoomKeyRequest(e){for(const t of this._outgoingRoomKeyRequests)if(a.b(t.requestBody,e))return t;return null}getOutgoingRoomKeyRequestByState(e){for(const t of this._outgoingRoomKeyRequests)for(const n of e)if(t.state===n)return Promise.resolve(t);return Promise.resolve(null)}getAllOutgoingRoomKeyRequestsByState(e){return Promise.resolve(this._outgoingRoomKeyRequests.filter(t=>t.state==e))}getOutgoingRoomKeyRequestsByTarget(e,t,n){const o=[];for(const r of this._outgoingRoomKeyRequests)for(const i of n)r.state===i&&r.recipients.includes({userId:e,deviceId:t})&&o.push(r);return Promise.resolve(o)}updateOutgoingRoomKeyRequest(e,t,n){for(const o of this._outgoingRoomKeyRequests)if(o.requestId===e)return o.state!=t?(i.a.warn(`Cannot update room key request from ${t} as it was already updated to `+o.state),Promise.resolve(null)):(Object.assign(o,n),Promise.resolve(o));return Promise.resolve(null)}deleteOutgoingRoomKeyRequest(e,t){for(let n=0;n<this._outgoingRoomKeyRequests.length;n++){const o=this._outgoingRoomKeyRequests[n];if(o.requestId===e)return o.state!=t?(i.a.warn(`Cannot delete room key request in state ${o.state} (expected ${t})`),Promise.resolve(null)):(this._outgoingRoomKeyRequests.splice(n,1),Promise.resolve(o))}return Promise.resolve(null)}getAccount(e,t){t(this._account)}storeAccount(e,t){this._account=t}getCrossSigningKeys(e,t){t(this._crossSigningKeys)}getSecretStorePrivateKey(e,t,n){return t(this._privateKeys[n]||null)}storeCrossSigningKeys(e,t){this._crossSigningKeys=t}storeSecretStorePrivateKey(e,t,n){this._privateKeys[t]=n}countEndToEndSessions(e,t){return Object.keys(this._sessions).length}getEndToEndSession(e,t,n,o){o((this._sessions[e]||{})[t]||null)}getEndToEndSessions(e,t,n){n(this._sessions[e]||{})}getAllEndToEndSessions(e,t){Object.entries(this._sessions).forEach(([e,n])=>{Object.entries(n).forEach(([n,o])=>{t(c(c({},o),{},{deviceKey:e,sessionId:n}))})})}storeEndToEndSession(e,t,n,o){let r=this._sessions[e];void 0===r&&(r={},this._sessions[e]=r),r[t]=n}async storeEndToEndSessionProblem(e,t,n){const o=this._sessionProblems[e]=this._sessionProblems[e]||[];o.push({type:t,fixed:n,time:Date.now()}),o.sort((e,t)=>e.time-t.time)}async getEndToEndSessionProblem(e,t){const n=this._sessionProblems[e]||[];if(!n.length)return null;const o=n[n.length-1];for(const e of n)if(e.time>t)return Object.assign({},e,{fixed:o.fixed});return o.fixed?null:o}async filterOutNotifiedErrorDevices(e){const t=this._notifiedErrorDevices,n=[];for(const o of e){const{userId:e,deviceInfo:r}=o;e in t?r.deviceId in t[e]||(n.push(o),t[e][r.deviceId]=!0):(n.push(o),t[e]={[r.deviceId]:!0})}return n}getEndToEndInboundGroupSession(e,t,n,o){const r=e+"/"+t;o(this._inboundGroupSessions[r]||null,this._inboundGroupSessionsWithheld[r]||null)}getAllEndToEndInboundGroupSessions(e,t){for(const e of Object.keys(this._inboundGroupSessions))t({senderKey:e.substr(0,43),sessionId:e.substr(44),sessionData:this._inboundGroupSessions[e]});t(null)}addEndToEndInboundGroupSession(e,t,n,o){const r=e+"/"+t;void 0===this._inboundGroupSessions[r]&&(this._inboundGroupSessions[r]=n)}storeEndToEndInboundGroupSession(e,t,n,o){this._inboundGroupSessions[e+"/"+t]=n}storeEndToEndInboundGroupSessionWithheld(e,t,n,o){const r=e+"/"+t;this._inboundGroupSessionsWithheld[r]=n}getEndToEndDeviceData(e,t){t(this._deviceData)}storeEndToEndDeviceData(e,t){this._deviceData=e}storeEndToEndRoom(e,t,n){this._rooms[e]=t}getEndToEndRooms(e,t){t(this._rooms)}getSessionsNeedingBackup(e){const t=[];for(const n in this._sessionsNeedingBackup)if(this._inboundGroupSessions[n]&&(t.push({senderKey:n.substr(0,43),sessionId:n.substr(44),sessionData:this._inboundGroupSessions[n]}),e&&n.length>=e))break;return Promise.resolve(t)}countSessionsNeedingBackup(){return Promise.resolve(Object.keys(this._sessionsNeedingBackup).length)}unmarkSessionsNeedingBackup(e){for(const t of e){const e=t.senderKey+"/"+t.sessionId;delete this._sessionsNeedingBackup[e]}return Promise.resolve()}markSessionsNeedingBackup(e){for(const t of e){const e=t.senderKey+"/"+t.sessionId;this._sessionsNeedingBackup[e]=!0}return Promise.resolve()}doTxn(e,t,n){return Promise.resolve(n(null))}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return I})),n.d(t,"b",(function(){return F}));var o=n(107),r=n.n(o),i=n(6),a=n(830),s=n(382),c=n(833),l=n(129),u=n(162),d=n(1619),h=n(834),p=n(119),m=n(835),g=n(1),f=n(266),_=n(128),b=n(532),v=n(124),E=n(389),y=n(836),S=n(0),T=n(317),w=n(392),C=n(391),x=n(176),O=n(225),k=n(200),R=n(270),A=n(536);const I=Object(T.c)();function D(e,t,n){const o=[];for(const[r,i]of Object.entries(e))try{const e=N(i,t);e.session_id=r,e.room_id=n,o.push(e)}catch(e){S.a.log("Failed to decrypt megolm session from backup",e)}return o}function N(e,t){return JSON.parse(t.decrypt(e.session_data.ephemeral,e.session_data.mac,e.session_data.ciphertext))}function F(e){e.baseUrl=g.g(e.baseUrl),e.idBaseUrl=g.g(e.idBaseUrl),a.a.call(this,e),this.olmVersion=null,this.reEmitter=new E.a(this),this.usingExternalCrypto=e.usingExternalCrypto,this.store=e.store||new h.a,this.deviceId=e.deviceId||null;const t=e.userId||null;if(this.credentials={userId:t},e.deviceToImport?this.deviceId?S.a.warn("not importing device because device ID is provided to constructor independently of exported data"):this.credentials.userId?S.a.warn("not importing device because user ID is provided to constructor independently of exported data"):e.deviceToImport.deviceId?(this.deviceId=e.deviceToImport.deviceId,this.credentials.userId=e.deviceToImport.userId,this._exportedOlmDeviceToImport=e.deviceToImport.olmDevice):S.a.warn("not importing device because no device ID in exported data"):e.pickleKey&&(this.pickleKey=e.pickleKey),this.scheduler=e.scheduler,this.scheduler){const e=this;this.scheduler.setProcessFunction((async function(t){const n=e.getRoom(t.getRoomId());t.status!==l.a.SENDING&&U(n,t,l.a.SENDING);const o=await B(e,t);return n&&n.updatePendingEvent(t,l.a.SENT,o.event_id),o}))}this.clientRunning=!1;const n=Object(p.g)(this);this._supportsVoip=!1,n?(this._callEventHandler=new m.a(this),this._supportsVoip=!0):this._callEventHandler=null,this._syncingRetry=null,this._syncApi=null,this._peekSync=null,this._isGuest=!1,this._ongoingScrollbacks={},this.timelineSupport=Boolean(e.timelineSupport),this.urlPreviewCache={},this._notifTimelineSet=null,this.unstableClientRelationAggregation=!!e.unstableClientRelationAggregation,this._crypto=null,this._cryptoStore=e.cryptoStore,this._sessionStore=e.sessionStore,this._verificationMethods=e.verificationMethods,this._cryptoCallbacks=e.cryptoCallbacks||{},this._forceTURN=e.forceTURN||!1,this._supportsCallTransfer=e.supportsCallTransfer||!1,this._fallbackICEServerAllowed=e.fallbackICEServerAllowed||!1,this._roomList=new y.a(this._cryptoStore),this._pushProcessor=new O.a(this),this._serverVersionsPromise=null,this._cachedCapabilities=null,this._clientWellKnown=void 0,this._clientWellKnownPromise=void 0,this.on("Event.decrypted",e=>{const t=e.getPushActions(),n=this._pushProcessor.actionsForEvent(e);e.setPushActions(n);const o=this.getRoom(e.getRoomId());if(!o)return;const r=o.getUnreadNotificationCount("highlight"),i=!(!t||!t.tweaks)&&!!t.tweaks.highlight,a=!(!n||!n.tweaks)&&!!n.tweaks.highlight;if((i!==a||r>0)&&!o.hasUserReadEvent(this.getUserId(),e.getId())){let e=r;a&&!i&&e++,!a&&i&&e--,o.setUnreadNotificationCount("highlight",e);o.getUnreadNotificationCount("total")<e&&o.setUnreadNotificationCount("total",e)}}),this.on("Room.receipt",(e,t)=>{if(t&&this.isRoomEncrypted(t.roomId)){const n=e.getContent();if(!(Object.keys(n).filter(e=>Object.keys(n[e]["m.read"]).includes(this.getUserId())).length>0))return;const o=20,r=t.getLiveTimeline().getEvents();let i=0;for(let e=r.length-1;e>=0;e--){if(e===r.length-o)return;const n=r[e];if(t.hasUserReadEvent(this.getUserId(),n.getId()))break;const a=this.getPushActionsForEvent(n);i+=a.tweaks&&a.tweaks.highlight?1:0}t.setUnreadNotificationCount("highlight",i)}})}async function M(e,t,n,o,r,i){if(!e._crypto)throw new Error("End-to-End encryption disabled");await e._crypto.setDeviceVerification(t,n,o,r,i)}function P(e,t){for(const n of t)e.prototype[n]=function(...e){if(!this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto[n](...e)}}function L(e,t,n,o){return Promise.resolve().then((function(){const o=function(e,t,n){if(t.isEncrypted())return null;if(!e.isRoomEncrypted(t.getRoomId()))return null;if(!e._crypto&&e.usingExternalCrypto)return null;if("m.reaction"===t.getType())return null;if(!e._crypto)throw new Error("This room is configured to use encryption, but your client does not support encryption.");return e._crypto.encryptEvent(t,n)}(e,n,t);return o?(U(t,n,l.a.ENCRYPTING),o.then(()=>{U(t,n,l.a.SENDING)})):null})).then((function(){let o;return e.scheduler&&(o=e.scheduler.queueEvent(n),o&&e.scheduler.getQueueForEvent(n).length>1&&U(t,n,l.a.QUEUED)),o||(o=B(e,n),t&&(o=o.then(e=>(t.updatePendingEvent(n,l.a.SENT,e.event_id),e)))),o})).then((function(e){return o&&o(null,e),e}),(function(e){S.a.error("Error sending event",e.stack||e);try{n.error=e,U(t,n,l.a.NOT_SENT),e.event=n,o&&o(e)}catch(t){S.a.error("Exception in error handler!",t.stack||e)}throw e}))}function U(e,t,n){e?e.updatePendingEvent(t,n):t.setStatus(n)}function B(e,t){let n=t.getTxnId();n||(n=e.makeTxnId(),t.setTxnId(n));const o={$roomId:t.getRoomId(),$eventType:t.getWireType(),$stateKey:t.getStateKey(),$txnId:n};let r;if(t.isState()){let e="/rooms/$roomId/state/$eventType";t.getStateKey()&&t.getStateKey().length>0&&(e="/rooms/$roomId/state/$eventType/$stateKey"),r=g.f(e,o)}else if(t.isRedaction()){const e="/rooms/$roomId/redact/$redactsEventId/$txnId";r=g.f(e,Object.assign({$redactsEventId:t.event.redacts},o))}else r=g.f("/rooms/$roomId/send/$eventType/$txnId",o);return e._http.authedRequest(void 0,"PUT",r,void 0,t.getWireContent()).then(e=>(S.a.log(`Event sent to ${t.getRoomId()} with event id ${e.event_id}`),e))}function j(e,t,n,o,r,i){g.q(r)&&(i=r,r=void 0);const a=g.f("/rooms/$room_id/$membership",{$room_id:t,$membership:o});return e._http.authedRequest(i,"POST",a,void 0,{user_id:n,reason:r})}function G(e,t,n){e&&e(n),t(n)}function q(e,t,n){e&&e(null,n),t(n)}function H(e,t){const n=Boolean(t&&t.preventReEmit);return function(t){const o=new l.b(t);return o.isEncrypted()&&(n||e.reEmitter.reEmit(o,["Event.decrypted"]),o.attemptDecryption(e._crypto)),n||e.reEmitter.reEmit(o,["Event.replaced"]),o}}g.o(F,i.EventEmitter),g.i(F.prototype,a.a.prototype),F.prototype.rehydrateDevice=async function(){if(this._crypto)throw new Error("Cannot rehydrate device after crypto is initialized");if(!this._cryptoCallbacks.getDehydrationKey)return;let t;try{t=await this._http.authedRequest(void 0,"GET","/dehydrated_device",void 0,void 0,{prefix:"/_matrix/client/unstable/org.matrix.msc2697.v2"})}catch(e){return void S.a.info("could not get dehydrated device",e.toString())}if(!t.device_data||!t.device_id)return void S.a.info("no dehydrated device found");const n=new e.Olm.Account;try{const e=t.device_data;if(e.algorithm!==A.a)return void S.a.warn("Wrong algorithm for dehydrated device");S.a.log("unpickling dehydrated device");const o=await this._cryptoCallbacks.getDehydrationKey(e,t=>{n.unpickle(new Uint8Array(t),e.account)});n.unpickle(o,e.account),S.a.log("unpickled device");if(!0===(await this._http.authedRequest(void 0,"POST","/dehydrated_device/claim",void 0,{device_id:t.device_id},{prefix:"/_matrix/client/unstable/org.matrix.msc2697.v2"})).success){this.deviceId=t.device_id,S.a.info("using dehydrated device");const e=this.pickleKey||"DEFAULT_KEY";return this._exportedOlmDeviceToImport={pickledAccount:n.pickle(e),sessions:[],pickleKey:e},n.free(),this.deviceId}return n.free(),void S.a.info("not using dehydrated device")}catch(e){n.free(),S.a.warn("could not unpickle",e)}},F.prototype.setDehydrationKey=async function(e,t={},n){if(this._crypto)return await this._crypto._dehydrationManager.setKeyAndQueueDehydration(e,t,n);S.a.warn("not dehydrating device if crypto is not enabled")},F.prototype.createDehydratedDevice=async function(e,t={},n){if(this._crypto)return await this._crypto._dehydrationManager.setKey(e,t,n),await this._crypto._dehydrationManager.dehydrateDevice();S.a.warn("not dehydrating device if crypto is not enabled")},F.prototype.exportDevice=async function(){if(this._crypto)return{userId:this.credentials.userId,deviceId:this.deviceId,olmDevice:await this._crypto._olmDevice.export()};S.a.warn("not exporting device if crypto is not enabled")},F.prototype.clearStores=function(){if(this._clientRunning)throw new Error("Cannot clear stores while client is running");const e=[];return e.push(this.store.deleteAllData()),this._cryptoStore&&e.push(this._cryptoStore.deleteAllData()),Promise.all(e)},F.prototype.getUserId=function(){return this.credentials&&this.credentials.userId?this.credentials.userId:null},F.prototype.getDomain=function(){return this.credentials&&this.credentials.userId?this.credentials.userId.replace(/^.*?:/,""):null},F.prototype.getUserIdLocalpart=function(){return this.credentials&&this.credentials.userId?this.credentials.userId.split(":")[0].substring(1):null},F.prototype.getDeviceId=function(){return this.deviceId},F.prototype.supportsVoip=function(){return this._supportsVoip},F.prototype.setForceTURN=function(e){this._forceTURN=e},F.prototype.setSupportsCallTransfer=function(e){this._supportsCallTransfer=e},F.prototype.getSyncState=function(){return this._syncApi?this._syncApi.getSyncState():null},F.prototype.getSyncStateData=function(){return this._syncApi?this._syncApi.getSyncStateData():null},F.prototype.isInitialSyncComplete=function(){const e=this.getSyncState();return!!e&&("PREPARED"===e||"SYNCING"===e)},F.prototype.isGuest=function(){return this._isGuest},F.prototype.getScheduler=function(){return this.scheduler},F.prototype.setGuest=function(e){this._isGuest=e},F.prototype.retryImmediately=function(){return this._syncApi.retryImmediately()},F.prototype.getNotifTimelineSet=function(){return this._notifTimelineSet},F.prototype.setNotifTimelineSet=function(e){this._notifTimelineSet=e},F.prototype.getCapabilities=function(e=!1){const t=(new Date).getTime();return this._cachedCapabilities&&!e&&t<this._cachedCapabilities.expiration?(S.a.log("Returning cached capabilities"),Promise.resolve(this._cachedCapabilities.capabilities)):this._http.authedRequest(void 0,"GET","/capabilities").catch(e=>(S.a.error(e),null)).then(e=>{e||(e={});const n=e.capabilities||{},o=Object.keys(n).length?216e5:6e4+5e3*Math.random();return this._cachedCapabilities={capabilities:n,expiration:t+o},S.a.log("Caching capabilities: ",n),n})},F.prototype.initCrypto=async function(){if(!Object(T.c)())throw new Error("End-to-end encryption not supported in this js-sdk build: did you remember to load the olm library?");if(this._crypto)return void S.a.warn("Attempt to re-initialise e2e encryption on MatrixClient");if(!this._sessionStore)throw new Error("Cannot enable encryption: no sessionStore provided");if(!this._cryptoStore)throw new Error("Cannot enable encryption: no cryptoStore provided");S.a.log("Crypto: Starting up crypto store..."),await this._cryptoStore.startup(),S.a.log("Crypto: initialising roomlist..."),await this._roomList.init();const e=this.getUserId();if(null===e)throw new Error("Cannot enable encryption on MatrixClient with unknown userId: ensure userId is passed in createClient().");if(null===this.deviceId)throw new Error("Cannot enable encryption on MatrixClient with unknown deviceId: ensure deviceId is passed in createClient().");const t=new T.a(this,this._sessionStore,e,this.deviceId,this.store,this._cryptoStore,this._roomList,this._verificationMethods);this.reEmitter.reEmit(t,["crypto.keyBackupFailed","crypto.keyBackupSessionsRemaining","crypto.roomKeyRequest","crypto.roomKeyRequestCancellation","crypto.warning","crypto.devicesUpdated","crypto.willUpdateDevices","deviceVerificationChanged","userTrustStatusChanged","crossSigning.keysChanged"]),S.a.log("Crypto: initialising crypto object..."),await t.init({exportedOlmDevice:this._exportedOlmDeviceToImport,pickleKey:this.pickleKey}),delete this._exportedOlmDeviceToImport,this.olmVersion=T.a.getOlmVersion(),t.registerEventHandlers(this),this._crypto=t},F.prototype.isCryptoEnabled=function(){return null!==this._crypto},F.prototype.getDeviceEd25519Key=function(){return this._crypto?this._crypto.getDeviceEd25519Key():null},F.prototype.getDeviceCurve25519Key=function(){return this._crypto?this._crypto.getDeviceCurve25519Key():null},F.prototype.uploadKeys=function(){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.uploadDeviceKeys()},F.prototype.downloadKeys=function(e,t){return null===this._crypto?Promise.reject(new Error("End-to-end encryption disabled")):this._crypto.downloadKeys(e,t)},F.prototype.getStoredDevicesForUser=function(e){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.getStoredDevicesForUser(e)||[]},F.prototype.getStoredDevice=function(e,t){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.getStoredDevice(e,t)||null},F.prototype.setDeviceVerified=function(e,t,n){void 0===n&&(n=!0);const o=M(this,e,t,n,null);return e==this.credentials.userId&&this._crypto.checkKeyBackup(),o},F.prototype.setDeviceBlocked=function(e,t,n){return void 0===n&&(n=!0),M(this,e,t,null,n)},F.prototype.setDeviceKnown=function(e,t,n){return void 0===n&&(n=!0),M(this,e,t,null,null,n)},F.prototype.requestVerificationDM=function(e,t){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.requestVerificationDM(e,t)},F.prototype.findVerificationRequestDMInProgress=function(e){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.findVerificationRequestDMInProgress(e)},F.prototype.getVerificationRequestsToDeviceInProgress=function(e){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.getVerificationRequestsToDeviceInProgress(e)},F.prototype.requestVerification=function(e,t){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.requestVerification(e,t)},F.prototype.beginKeyVerification=function(e,t,n){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.beginKeyVerification(e,t,n)},F.prototype.setGlobalBlacklistUnverifiedDevices=function(e){if(null===this._crypto)throw new Error("End-to-end encryption disabled");this._crypto.setGlobalBlacklistUnverifiedDevices(e)},F.prototype.getGlobalBlacklistUnverifiedDevices=function(){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.getGlobalBlacklistUnverifiedDevices()},F.prototype.setGlobalErrorOnUnknownDevices=function(e){if(null===this._crypto)throw new Error("End-to-end encryption disabled");this._crypto.setGlobalErrorOnUnknownDevices(e)},F.prototype.getGlobalErrorOnUnknownDevices=function(){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.getGlobalErrorOnUnknownDevices()},P(F,["getCrossSigningId","getStoredCrossSigningForUser","checkUserTrust","checkDeviceTrust","checkOwnCrossSigningTrust","checkCrossSigningPrivateKey","legacyDeviceVerification","prepareToEncrypt","isCrossSigningReady","bootstrapCrossSigning","getCryptoTrustCrossSignedDevices","setCryptoTrustCrossSignedDevices","countSessionsNeedingBackup"]),P(F,["getEventEncryptionInfo","createRecoveryKeyFromPassphrase","isSecretStorageReady","bootstrapSecretStorage","addSecretStorageKey","hasSecretStorageKey","storeSecret","getSecret","isSecretStored","requestSecret","getDefaultSecretStorageKeyId","setDefaultSecretStorageKeyId","checkSecretStorageKey","checkSecretStoragePrivateKey"]),F.prototype.getEventSenderDeviceInfo=async function(e){return this._crypto?this._crypto.getEventSenderDeviceInfo(e):null},F.prototype.isEventSenderVerified=async function(e){const t=await this.getEventSenderDeviceInfo(e);return!!t&&t.isVerified()},F.prototype.cancelAndResendEventRoomKeyRequest=function(e){return e.cancelAndResendKeyRequest(this._crypto,this.getUserId())},F.prototype.setRoomEncryption=function(e,t){if(!this._crypto)throw new Error("End-to-End encryption disabled");return this._crypto.setRoomEncryption(e,t)},F.prototype.isRoomEncrypted=function(e){const t=this.getRoom(e);if(!t)return!1;return!!t.currentState.getStateEvents("m.room.encryption","")||this._roomList.isRoomEncrypted(e)},F.prototype.forceDiscardSession=function(e){if(!this._crypto)throw new Error("End-to-End encryption disabled");this._crypto.forceDiscardSession(e)},F.prototype.exportRoomKeys=function(){return this._crypto?this._crypto.exportRoomKeys():Promise.reject(new Error("End-to-end encryption disabled"))},F.prototype.importRoomKeys=function(e,t){if(!this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.importRoomKeys(e,t)},F.prototype.checkKeyBackup=function(){return this._crypto.checkKeyBackup()},F.prototype.getKeyBackupVersion=function(){return this._http.authedRequest(void 0,"GET","/room_keys/version",void 0,void 0,{prefix:f.i}).then(e=>{if(e.algorithm!==v.MEGOLM_BACKUP_ALGORITHM){const t="Unknown backup algorithm: "+e.algorithm;return Promise.reject(t)}if("object"==typeof e.auth_data&&e.auth_data.public_key)return e;{const e="Invalid backup data returned";return Promise.reject(e)}}).catch(e=>{if("M_NOT_FOUND"===e.errcode)return null;throw e})},F.prototype.isKeyBackupTrusted=function(e){return this._crypto.isKeyBackupTrusted(e)},F.prototype.getKeyBackupEnabled=function(){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto._checkedForBackup?Boolean(this._crypto.backupKey):null},F.prototype.enableKeyBackup=function(t){if(null===this._crypto)throw new Error("End-to-end encryption disabled");this._crypto.backupInfo=t,this._crypto.backupKey&&this._crypto.backupKey.free(),this._crypto.backupKey=new e.Olm.PkEncryption,this._crypto.backupKey.set_recipient_key(t.auth_data.public_key),this.emit("crypto.keyBackupStatus",!0),this._crypto.scheduleKeyBackupSend()},F.prototype.disableKeyBackup=function(){if(null===this._crypto)throw new Error("End-to-end encryption disabled");this._crypto.backupInfo=null,this._crypto.backupKey&&this._crypto.backupKey.free(),this._crypto.backupKey=null,this.emit("crypto.keyBackupStatus",!1)},F.prototype.prepareKeyBackupVersion=async function(e,{secureSecretStorage:t=!1}={}){if(null===this._crypto)throw new Error("End-to-end encryption disabled");const{keyInfo:n,encodedPrivateKey:o,privateKey:r}=await this.createRecoveryKeyFromPassphrase(e);t&&(await this.storeSecret("m.megolm_backup.v1",Object(v.encodeBase64)(r)),S.a.info("Key backup private key stored in secret storage"));const i={public_key:n.pubkey};return n.passphrase&&(i.private_key_salt=n.passphrase.salt,i.private_key_iterations=n.passphrase.iterations),{algorithm:v.MEGOLM_BACKUP_ALGORITHM,auth_data:i,recovery_key:o}},F.prototype.isKeyBackupKeyStored=async function(){return this.isSecretStored("m.megolm_backup.v1",!1)},F.prototype.createKeyBackupVersion=async function(e){if(null===this._crypto)throw new Error("End-to-end encryption disabled");const t={algorithm:e.algorithm,auth_data:e.auth_data};await this._crypto._signObject(t.auth_data),this._cryptoCallbacks.getCrossSigningKey&&this._crypto._crossSigningInfo.getId()&&await this._crypto._crossSigningInfo.signObject(t.auth_data,"master");const n=await this._http.authedRequest(void 0,"POST","/room_keys/version",void 0,t,{prefix:f.i});return await this.checkKeyBackup(),this.getKeyBackupEnabled()||S.a.error("Key backup not usable even though we just created it"),n},F.prototype.deleteKeyBackupVersion=function(e){if(null===this._crypto)throw new Error("End-to-end encryption disabled");this._crypto.backupInfo&&this._crypto.backupInfo.version===e&&this.disableKeyBackup();const t=g.f("/room_keys/version/$version",{$version:e});return this._http.authedRequest(void 0,"DELETE",t,void 0,void 0,{prefix:f.i})},F.prototype._makeKeyBackupPath=function(e,t,n){let o;o=void 0!==t?g.f("/room_keys/keys/$roomId/$sessionId",{$roomId:e,$sessionId:t}):void 0!==e?g.f("/room_keys/keys/$roomId",{$roomId:e}):"/room_keys/keys";return{path:o,queryData:void 0===n?void 0:{version:n}}},F.prototype.sendKeyBackup=function(e,t,n,o){if(null===this._crypto)throw new Error("End-to-end encryption disabled");const r=this._makeKeyBackupPath(e,t,n);return this._http.authedRequest(void 0,"PUT",r.path,r.queryData,o,{prefix:f.i})},F.prototype.scheduleAllGroupSessionsForBackup=async function(){if(null===this._crypto)throw new Error("End-to-end encryption disabled");await this._crypto.scheduleAllGroupSessionsForBackup()},F.prototype.flagAllGroupSessionsForBackup=function(){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.flagAllGroupSessionsForBackup()},F.prototype.isValidRecoveryKey=function(e){try{return Object(w.a)(e),!0}catch(e){return!1}},F.prototype.keyBackupKeyFromPassword=function(e,t){return Object(C.b)(t.auth_data,e)},F.prototype.keyBackupKeyFromRecoveryKey=function(e){return Object(w.a)(e)},F.RESTORE_BACKUP_ERROR_BAD_KEY="RESTORE_BACKUP_ERROR_BAD_KEY",F.prototype.restoreKeyBackupWithPassword=async function(e,t,n,o,r){const i=await Object(C.b)(o.auth_data,e);return this._restoreKeyBackup(i,t,n,o,r)},F.prototype.restoreKeyBackupWithSecretStorage=async function(e,t,n,o){const r=await this.getSecret("m.megolm_backup.v1"),i=Object(T.b)(r);if(i){const[e]=await this._crypto.getSecretStorageKey();await this.storeSecret("m.megolm_backup.v1",i,[e])}const a=Object(v.decodeBase64)(i||r);return this._restoreKeyBackup(a,t,n,e,o)},F.prototype.restoreKeyBackupWithRecoveryKey=function(e,t,n,o,r){const i=Object(w.a)(e);return this._restoreKeyBackup(i,t,n,o,r)},F.prototype.restoreKeyBackupWithCache=async function(e,t,n,o){const r=await this._crypto.getSessionBackupPrivateKey();if(!r)throw new Error("Couldn't get key");return this._restoreKeyBackup(r,e,t,n,o)},F.prototype._restoreKeyBackup=function(t,n,o,r,{cacheCompleteCallback:i,progressCallback:a}={}){if(null===this._crypto)throw new Error("End-to-end encryption disabled");let s=0,c=[];const l=this._makeKeyBackupPath(n,o,r.version),u=new e.Olm.PkDecryption;let d;try{d=u.init_with_private_key(t)}catch(e){throw u.free(),e}return d!==r.auth_data.public_key?Promise.reject({errcode:F.RESTORE_BACKUP_ERROR_BAD_KEY}):(this._crypto.storeSessionBackupPrivateKey(t).catch(e=>{S.a.warn("Error caching session backup key:",e)}).then(i),a&&a({stage:"fetch"}),this._http.authedRequest(void 0,"GET",l.path,l.queryData,void 0,{prefix:f.i}).then(e=>{if(e.rooms)for(const[t,n]of Object.entries(e.rooms)){if(!n.sessions)continue;s+=Object.keys(n.sessions).length;const e=D(n.sessions,u,t);for(const n of e)n.room_id=t,c.push(n)}else if(e.sessions)s=Object.keys(e.sessions).length,c=D(e.sessions,u,n);else{s=1;try{const t=N(e,u);t.room_id=n,t.session_id=o,c.push(t)}catch(e){S.a.log("Failed to decrypt megolm session from backup",e)}}return this.importRoomKeys(c,{progressCallback:a,untrusted:!0,source:"backup"})}).then(()=>this._crypto.setTrustedBackupPubKey(d)).then(()=>({total:s,imported:c.length})).finally(()=>{u.free()}))},F.prototype.deleteKeysFromBackup=function(e,t,n){if(null===this._crypto)throw new Error("End-to-end encryption disabled");const o=this._makeKeyBackupPath(e,t,n);return this._http.authedRequest(void 0,"DELETE",o.path,o.queryData,void 0,{prefix:f.i})},F.prototype.getGroup=function(e){return this.store.getGroup(e)},F.prototype.getGroups=function(){return this.store.getGroups()},F.prototype.getMediaConfig=function(e){return this._http.authedRequest(e,"GET","/config",void 0,void 0,{prefix:f.g})},F.prototype.getRoom=function(e){return this.store.getRoom(e)},F.prototype.getRooms=function(){return this.store.getRooms()},F.prototype.getVisibleRooms=function(){const e=this.store.getRooms(),t=new Set;for(const n of e){const e=n.currentState.getStateEvents("m.room.create","");if(e){const n=e.getContent().predecessor;n&&n.room_id&&t.add(n.room_id)}}return e.filter(e=>!e.currentState.getStateEvents("m.room.tombstone","")||!t.has(e.roomId))},F.prototype.getUser=function(e){return this.store.getUser(e)},F.prototype.getUsers=function(){return this.store.getUsers()},F.prototype.setAccountData=function(e,t,n){const o=g.f("/user/$userId/account_data/$type",{$userId:this.credentials.userId,$type:e}),r=Object(f.j)(5,()=>this._http.authedRequest(void 0,"PUT",o,void 0,t));return n&&r.then(e=>n(null,e),n),r},F.prototype.getAccountData=function(e){return this.store.getAccountData(e)},F.prototype.getAccountDataFromServer=async function(e){if(this.isInitialSyncComplete()){const t=this.store.getAccountData(e);return t?t.getContent():null}const t=g.f("/user/$userId/account_data/$type",{$userId:this.credentials.userId,$type:e});try{return await this._http.authedRequest(void 0,"GET",t,void 0)}catch(e){if(e.data&&"M_NOT_FOUND"===e.data.errcode)return null;throw e}},F.prototype.getIgnoredUsers=function(){const e=this.getAccountData("m.ignored_user_list");return e&&e.getContent()&&e.getContent().ignored_users?Object.keys(e.getContent().ignored_users):[]},F.prototype.setIgnoredUsers=function(e,t){const n={ignored_users:{}};return e.map(e=>n.ignored_users[e]={}),this.setAccountData("m.ignored_user_list",n,t)},F.prototype.isUserIgnored=function(e){return-1!==this.getIgnoredUsers().indexOf(e)},F.prototype.joinRoom=function(e,t,n){if(g.q(t))throw new Error("Expected 'opts' object, got function.");void 0===(t=t||{}).syncRoom&&(t.syncRoom=!0);const o=this.getRoom(e);if(o&&o.hasMembershipState(this.credentials.userId,"join"))return Promise.resolve(o);let r=Promise.resolve();t.inviteSignUrl&&(r=this._http.requestOtherUrl(void 0,"POST",t.inviteSignUrl,{mxid:this.credentials.userId}));const i={};t.viaServers&&(i.server_name=t.viaServers);const a={qsStringifyOptions:{arrayFormat:"repeat"}},s=this;return new Promise((o,l)=>{r.then((function(t){const n={};t&&(n.third_party_signed=t);const o=g.f("/join/$roomid",{$roomid:e});return s._http.authedRequest(void 0,"POST",o,i,n,a)})).then((function(e){const n=e.room_id,o=new c.a(s,s._clientOpts).createRoom(n);return t.syncRoom,Promise.resolve(o)})).then((function(e){q(n,o,e)}),(function(e){G(n,l,e)}))})},F.prototype.resendEvent=function(e,t){return U(t,e,l.a.SENDING),L(this,t,e)},F.prototype.cancelPendingEvent=function(e){if([l.a.QUEUED,l.a.NOT_SENT].indexOf(e.status)<0)throw new Error("cannot cancel an event with status "+e.status);this.scheduler&&this.scheduler.removeEventFromQueue(e);U(this.getRoom(e.getRoomId()),e,l.a.CANCELLED)},F.prototype.setRoomName=function(e,t,n){return this.sendStateEvent(e,"m.room.name",{name:t},void 0,n)},F.prototype.setRoomTopic=function(e,t,n){return this.sendStateEvent(e,"m.room.topic",{topic:t},void 0,n)},F.prototype.getRoomTags=function(e,t){const n=g.f("/user/$userId/rooms/$roomId/tags/",{$userId:this.credentials.userId,$roomId:e});return this._http.authedRequest(t,"GET",n,void 0)},F.prototype.setRoomTag=function(e,t,n,o){const r=g.f("/user/$userId/rooms/$roomId/tags/$tag",{$userId:this.credentials.userId,$roomId:e,$tag:t});return this._http.authedRequest(o,"PUT",r,void 0,n)},F.prototype.deleteRoomTag=function(e,t,n){const o=g.f("/user/$userId/rooms/$roomId/tags/$tag",{$userId:this.credentials.userId,$roomId:e,$tag:t});return this._http.authedRequest(n,"DELETE",o,void 0,void 0)},F.prototype.setRoomAccountData=function(e,t,n,o){const r=g.f("/user/$userId/rooms/$roomId/account_data/$type",{$userId:this.credentials.userId,$roomId:e,$type:t});return this._http.authedRequest(o,"PUT",r,void 0,n)},F.prototype.setPowerLevel=function(e,t,n,o,r){let i={users:{}};o&&"m.room.power_levels"===o.getType()&&(i=g.c(o.getContent())),i.users[t]=n;const a=g.f("/rooms/$roomId/state/m.room.power_levels",{$roomId:e});return this._http.authedRequest(r,"PUT",a,void 0,i)},F.prototype.sendEvent=function(e,t,n,o,r){return this._sendCompleteEvent(e,{type:t,content:n},o,r)},F.prototype._sendCompleteEvent=function(e,t,n,o){g.q(n)&&(o=n,n=void 0),n||(n=this.makeTxnId());const r=new l.b(Object.assign(t,{event_id:"~"+e+":"+n,user_id:this.credentials.userId,sender:this.credentials.userId,room_id:e,origin_server_ts:(new Date).getTime()})),i=this.getRoom(e),a=r.getAssociatedId();if(a&&a.startsWith("~")){const e=i.getPendingEvents().find(e=>e.getId()===a);e.once("Event.localEventIdReplaced",()=>{r.updateAssociatedId(e.getId())})}const s=r.getType();return S.a.log(`sendEvent of type ${s} in ${e} with txnId ${n}`),r.setTxnId(n),r.setStatus(l.a.SENDING),i&&i.addPendingEvent(r,n),r.status===l.a.NOT_SENT?Promise.reject(new Error("Event blocked by other events not yet sent")):L(this,i,r,o)},F.prototype.redactEvent=function(e,t,n,o){const r=("object"==typeof o?o:{}).reason,i="function"==typeof o?o:void 0;return this._sendCompleteEvent(e,{type:"m.room.redaction",content:{reason:r},redacts:t},n,i)},F.prototype.sendMessage=function(e,t,n,o){return g.q(n)&&(o=n,n=void 0),this.sendEvent(e,"m.room.message",t,n,o)},F.prototype.sendTextMessage=function(e,t,n,o){const r=b.makeTextMessage(t);return this.sendMessage(e,r,n,o)},F.prototype.sendNotice=function(e,t,n,o){const r=b.makeNotice(t);return this.sendMessage(e,r,n,o)},F.prototype.sendEmoteMessage=function(e,t,n,o){const r=b.makeEmoteMessage(t);return this.sendMessage(e,r,n,o)},F.prototype.sendImageMessage=function(e,t,n,o,r){g.q(o)&&(r=o,o=void 0),o||(o="Image");const i={msgtype:"m.image",url:t,info:n,body:o};return this.sendMessage(e,i,r)},F.prototype.sendStickerMessage=function(e,t,n,o,r){g.q(o)&&(r=o,o=void 0),o||(o="Sticker");const i={url:t,info:n,body:o};return this.sendEvent(e,"m.sticker",i,r,void 0)},F.prototype.sendHtmlMessage=function(e,t,n,o){const r=b.makeHtmlMessage(t,n);return this.sendMessage(e,r,o)},F.prototype.sendHtmlNotice=function(e,t,n,o){const r=b.makeHtmlNotice(t,n);return this.sendMessage(e,r,o)},F.prototype.sendHtmlEmote=function(e,t,n,o){const r=b.makeHtmlEmote(t,n);return this.sendMessage(e,r,o)},F.prototype.sendReceipt=function(e,t,n,o){if("function"==typeof n&&(o=n,n={}),this.isGuest())return Promise.resolve({});const r=g.f("/rooms/$roomId/receipt/$receiptType/$eventId",{$roomId:e.getRoomId(),$receiptType:t,$eventId:e.getId()}),i=this._http.authedRequest(o,"POST",r,void 0,n||{}),a=this.getRoom(e.getRoomId());return a&&a._addLocalEchoReceipt(this.credentials.userId,e,t),i},F.prototype.sendReadReceipt=async function(e,t,n){"function"==typeof t&&(n=t,t={}),t||(t={});const o=e.getId(),r=this.getRoom(e.getRoomId());if(r&&r.hasPendingEvent(o))throw new Error(`Cannot set read receipt to a pending event (${o})`);const i={"m.hidden":Boolean(t.hidden)};return this.sendReceipt(e,"m.read",i,n)},F.prototype.setRoomReadMarkers=async function(e,t,n,o){const r=this.getRoom(e);if(r&&r.hasPendingEvent(t))throw new Error(`Cannot set read marker to a pending event (${t})`);let i;if(n){if(i=n.getId(),r&&r.hasPendingEvent(i))throw new Error(`Cannot set read receipt to a pending event (${i})`);r&&r._addLocalEchoReceipt(this.credentials.userId,n,"m.read")}return this.setRoomReadMarkersHttpRequest(e,t,i,o)},F.prototype.getUrlPreview=function(e,t,n){const o=(t=6e4*Math.floor(t/6e4))+"_"+e,r=this.urlPreviewCache[o];if(r)return n&&r.then(n).catch(n),r;const i=this._http.authedRequest(n,"GET","/preview_url",{url:e,ts:t},void 0,{prefix:f.g});return this.urlPreviewCache[o]=i,i},F.prototype.sendTyping=function(e,t,n,o){if(this.isGuest())return Promise.resolve({});const r=g.f("/rooms/$roomId/typing/$userId",{$roomId:e,$userId:this.credentials.userId}),i={typing:t};return t&&(i.timeout=n||2e4),this._http.authedRequest(o,"PUT",r,void 0,i)},F.prototype.getRoomUpgradeHistory=function(e,t=!1){let n=this.getRoom(e);if(!n)return[];const o=[n];let r=n.currentState.getStateEvents("m.room.create","");for(;r;){S.a.log("Looking at "+r.getId());const e=r.getContent().predecessor;if(!e||!e.room_id)break;{S.a.log("Looking at predecessor "+e.room_id);const n=this.getRoom(e.room_id);if(!n)break;if(t){const e=n.currentState.getStateEvents("m.room.tombstone","");if(!e||e.getContent().replacement_room!==n.roomId)break}o.splice(0,0,n),r=n.currentState.getStateEvents("m.room.create","")}}let i=n.currentState.getStateEvents("m.room.tombstone","");for(;i;){const e=this.getRoom(i.getContent().replacement_room);if(!e)break;if(e.roomId===n.roomId)break;if(t){if(r=e.currentState.getStateEvents("m.room.create",""),!r||!r.getContent().predecessor)break;if(r.getContent().predecessor.room_id!==n.roomId)break}o.push(e);if(new Set(o.map(e=>e.roomId)).size<o.length)return o.slice(0,o.length-1);n=e,i=n.currentState.getStateEvents("m.room.tombstone","")}return o},F.prototype.invite=function(e,t,n){return j(this,e,t,"invite",void 0,n)},F.prototype.inviteByEmail=function(e,t,n){return this.inviteByThreePid(e,"email",t,n)},F.prototype.inviteByThreePid=async function(e,t,n,o){const r=g.f("/rooms/$roomId/invite",{$roomId:e}),i=this.getIdentityServerUrl(!0);if(!i)return Promise.reject(new f.c({error:"No supplied identity server URL",errcode:"ORG.MATRIX.JSSDK_MISSING_PARAM"}));const a={id_server:i,medium:t,address:n};if(this.identityServer&&this.identityServer.getAccessToken&&await this.doesServerAcceptIdentityAccessToken()){const e=await this.identityServer.getAccessToken();e&&(a.id_access_token=e)}return this._http.authedRequest(o,"POST",r,void 0,a)},F.prototype.leave=function(e,t){return j(this,e,void 0,"leave",void 0,t)},F.prototype.leaveRoomChain=function(e,t=!0){const n=this.getRoomUpgradeHistory(e);let o=n;if(!t){o=[];for(const t of n)if(o.push(t),t.roomId===e)break}const r={},i=[],a=e=>this.leave(e).then(()=>{r[e]=null}).catch(t=>(r[e]=t,null));for(const e of o)i.push(a(e.roomId));return Promise.all(i).then(()=>r)},F.prototype.ban=function(e,t,n,o){return j(this,e,t,"ban",n,o)},F.prototype.forget=function(e,t,n){void 0===t&&(t=!0);const o=j(this,e,void 0,"forget",void 0,n);if(!t)return o;const r=this;return o.then((function(t){return r.store.removeRoom(e),r.emit("deleteRoom",e),t}))},F.prototype.unban=function(e,t,n){const o=g.f("/rooms/$roomId/unban",{$roomId:e}),r={user_id:t};return this._http.authedRequest(n,"POST",o,void 0,r)},F.prototype.kick=function(e,t,n,o){return function(e,t,n,o,r,i){g.q(r)&&(i=r,r=void 0);const a=g.f("/rooms/$roomId/state/m.room.member/$userId",{$roomId:t,$userId:n});return e._http.authedRequest(i,"PUT",a,void 0,{membership:o,reason:r})}(this,e,t,"leave",n,o)},F.prototype.getPushActionsForEvent=function(e){return e.getPushActions()||e.setPushActions(this._pushProcessor.actionsForEvent(e)),e.getPushActions()},F.prototype.setProfileInfo=function(e,t,n){const o=g.f("/profile/$userId/$info",{$userId:this.credentials.userId,$info:e});return this._http.authedRequest(n,"PUT",o,void 0,t)},F.prototype.setDisplayName=async function(e,t){const n=await this.setProfileInfo("displayname",{displayname:e},t),o=this.getUser(this.getUserId());return o&&(o.displayName=e,o.emit("User.displayName",o.events.presence,o)),n},F.prototype.setAvatarUrl=async function(e,t){const n=await this.setProfileInfo("avatar_url",{avatar_url:e},t),o=this.getUser(this.getUserId());return o&&(o.avatarUrl=e,o.emit("User.avatarUrl",o.events.presence,o)),n},F.prototype.mxcUrlToHttp=function(e,t,n,o,r){return Object(_.a)(this.baseUrl,e,t,n,o,r)},F.prototype._unstable_setStatusMessage=function(e){const t="im.vector.user_status";return Promise.all(this.getRooms().map(n=>{const o="join"===n.getMyMembership(),r=2===n.getInvitedAndJoinedMemberCount();if(!o||!r)return Promise.resolve();return n.currentState.mayClientSendStateEvent(t,this)?this.sendStateEvent(n.roomId,t,{status:e},this.getUserId()):Promise.resolve()}))},F.prototype.setPresence=function(e,t){const n=g.f("/presence/$userId/status",{$userId:this.credentials.userId});"string"==typeof e&&(e={presence:e});if(-1==["offline","online","unavailable"].indexOf(e.presence))throw new Error("Bad presence value: "+e.presence);return this._http.authedRequest(t,"PUT",n,void 0,e)},F.prototype.scrollback=function(e,t,n){g.q(t)&&(n=t,t=void 0),t=t||30;let o=0,r=this._ongoingScrollbacks[e.roomId]||{};if(r.promise)return r.promise;if(r.errorTs){const e=Date.now()-r.errorTs;o=Math.max(3e3-e,0)}if(null===e.oldState.paginationToken)return Promise.resolve(e);const i=this.store.scrollback(e,t).length;if(i===t)return Promise.resolve(e);t-=i;const a=this,s=new Promise((r,i)=>{Object(g.A)(o).then((function(){return a._createMessagesRequest(e.roomId,e.oldState.paginationToken,t,"b")})).then((function(t){const o=g.u(t.chunk,H(a));if(t.state){const n=g.u(t.state,H(a));e.currentState.setUnknownStateEvents(n)}e.addEventsToTimeline(o,!0,e.getLiveTimeline()),e.oldState.paginationToken=t.end,0===t.chunk.length&&(e.oldState.paginationToken=null),a.store.storeEvents(e,o,t.end,!0),a._ongoingScrollbacks[e.roomId]=null,q(n,r,e)}),(function(t){a._ongoingScrollbacks[e.roomId]={errorTs:Date.now()},G(n,i,t)}))});return r={promise:s,errorTs:null},this._ongoingScrollbacks[e.roomId]=r,s},F.prototype.getEventTimeline=function(e,t){if(!this.timelineSupport)throw new Error("timeline support is disabled. Set the 'timelineSupport' parameter to true when creating MatrixClient to enable it.");if(e.getTimelineForEvent(t))return Promise.resolve(e.getTimelineForEvent(t));const n=g.f("/rooms/$roomId/context/$eventId",{$roomId:e.room.roomId,$eventId:t});let o=void 0;this._clientOpts.lazyLoadMembers&&(o={filter:JSON.stringify(s.a.LAZY_LOADING_MESSAGES_FILTER)});const r=this;return r._http.authedRequest(void 0,"GET",n,o).then((function(n){if(!n.event)throw new Error("'event' not in '/context' result - homeserver too old?");if(e.getTimelineForEvent(t))return e.getTimelineForEvent(t);n.events_after.reverse();const o=n.events_after.concat([n.event]).concat(n.events_before),i=g.u(o,r.getEventMapper());let a=e.getTimelineForEvent(i[0].getId());if(a){const e=g.u(n.state,r.getEventMapper());a.getState(u.a.BACKWARDS).setUnknownStateEvents(e)}else a=e.addTimeline(),a.initialiseState(g.u(n.state,r.getEventMapper())),a.getState(u.a.FORWARDS).paginationToken=n.end;e.addEventsToTimeline(i,!0,a,n.start);return e.getTimelineForEvent(t)||a}))},F.prototype._createMessagesRequest=function(e,t,n,o,r){const i=g.f("/rooms/$roomId/messages",{$roomId:e});void 0===n&&(n=30);const a={from:t,limit:n,dir:o};let c=null;return this._clientOpts.lazyLoadMembers&&(c=Object.assign({},s.a.LAZY_LOADING_MESSAGES_FILTER)),r&&(c=c||{},Object.assign(c,r.getRoomTimelineFilterComponent())),c&&(a.filter=JSON.stringify(c)),this._http.authedRequest(void 0,"GET",i,a)},F.prototype.paginateEventTimeline=function(e,t){const n=e.getTimelineSet()===this._notifTimelineSet,o=(t=t||{}).backwards||!1;if(n&&!o)throw new Error("paginateNotifTimeline can only paginate backwards");const r=o?u.a.BACKWARDS:u.a.FORWARDS,i=e.getPaginationToken(r);if(!i)return Promise.resolve(!1);const a=e._paginationRequests[r];if(a)return a;let s,c,l;const d=this;if(n)s="/notifications",c={limit:"limit"in t?t.limit:30,only:"highlight"},i&&"end"!==i&&(c.from=i),l=this._http.authedRequest(void 0,"GET","/notifications",c,void 0).then((function(t){const n=t.next_token,i=[];for(let e=0;e<t.notifications.length;e++){const n=t.notifications[e],o=d.getEventMapper()(n.event);o.setPushActions(O.a.actionListToActionsObject(n.actions)),o.event.room_id=n.room_id,i[e]=o}return e.getTimelineSet().addEventsToTimeline(i,o,e,n),o&&!t.next_token&&e.setPaginationToken(null,r),!!t.next_token})).finally((function(){e._paginationRequests[r]=null})),e._paginationRequests[r]=l;else{if(!this.getRoom(e.getRoomId()))throw new Error("Unknown room "+e.getRoomId());l=this._createMessagesRequest(e.getRoomId(),i,t.limit,r,e.getFilter()),l.then((function(t){if(t.state){const n=e.getState(r),o=g.u(t.state,d.getEventMapper());n.setUnknownStateEvents(o)}const n=t.end,i=g.u(t.chunk,d.getEventMapper());return e.getTimelineSet().addEventsToTimeline(i,o,e,n),o&&t.end==t.start&&e.setPaginationToken(null,r),t.end!=t.start})).finally((function(){e._paginationRequests[r]=null})),e._paginationRequests[r]=l}return l},F.prototype.resetNotifTimelineSet=function(){this._notifTimelineSet&&this._notifTimelineSet.resetLiveTimeline("end",null)},F.prototype.peekInRoom=function(e){return this._peekSync&&this._peekSync.stopPeeking(),this._peekSync=new c.a(this,this._clientOpts),this._peekSync.peek(e)},F.prototype.stopPeeking=function(){this._peekSync&&(this._peekSync.stopPeeking(),this._peekSync=null)},F.prototype.setGuestAccess=function(e,t){const n=this.sendStateEvent(e,"m.room.guest_access",{guest_access:t.allowJoin?"can_join":"forbidden"});let o=Promise.resolve();return t.allowRead&&(o=this.sendStateEvent(e,"m.room.history_visibility",{history_visibility:"world_readable"})),Promise.all([o,n])},F.prototype.requestRegisterEmailToken=function(e,t,n,o){return this._requestTokenFromEndpoint("/register/email/requestToken",{email:e,client_secret:t,send_attempt:n,next_link:o})},F.prototype.requestRegisterMsisdnToken=function(e,t,n,o,r){return this._requestTokenFromEndpoint("/register/msisdn/requestToken",{country:e,phone_number:t,client_secret:n,send_attempt:o,next_link:r})},F.prototype.requestAdd3pidEmailToken=function(e,t,n,o){return this._requestTokenFromEndpoint("/account/3pid/email/requestToken",{email:e,client_secret:t,send_attempt:n,next_link:o})},F.prototype.requestAdd3pidMsisdnToken=function(e,t,n,o,r){return this._requestTokenFromEndpoint("/account/3pid/msisdn/requestToken",{country:e,phone_number:t,client_secret:n,send_attempt:o,next_link:r})},F.prototype.requestPasswordEmailToken=function(e,t,n,o){return this._requestTokenFromEndpoint("/account/password/email/requestToken",{email:e,client_secret:t,send_attempt:n,next_link:o})},F.prototype.requestPasswordMsisdnToken=function(e,t,n,o,r){return this._requestTokenFromEndpoint("/account/password/msisdn/requestToken",{country:e,phone_number:t,client_secret:n,send_attempt:o,next_link:r})},F.prototype._requestTokenFromEndpoint=async function(e,t){const n=Object.assign({},t);if(!await this.doesServerSupportSeparateAddAndBind()&&this.idBaseUrl){const e=r.a.parse(this.idBaseUrl);if(!e.host)throw new Error("Invalid ID server URL: "+this.idBaseUrl);if(n.id_server=e.host,this.identityServer&&this.identityServer.getAccessToken&&await this.doesServerAcceptIdentityAccessToken()){const e=await this.identityServer.getAccessToken();e&&(n.id_access_token=e)}}return this._http.request(void 0,"POST",e,void 0,n)},F.prototype.getRoomPushRule=function(e,t){if(!this.pushRules)throw new Error("SyncApi.sync() must be done before accessing to push rules.");for(let n=0;n<this.pushRules[e].room.length;n++){const o=this.pushRules[e].room[n];if(o.rule_id===t)return o}},F.prototype.setRoomMutePushRule=function(e,t,n){const o=this;let r,i;const a=this.getRoomPushRule(e,t);if(a&&0<=a.actions.indexOf("dont_notify")&&(i=!0),n?a?i||(r=g.d(),this.deletePushRule(e,"room",a.rule_id).then((function(){o.addPushRule(e,"room",t,{actions:["dont_notify"]}).then((function(){r.resolve()}),(function(e){r.reject(e)}))}),(function(e){r.reject(e)})),r=r.promise):r=this.addPushRule(e,"room",t,{actions:["dont_notify"]}):i&&(r=this.deletePushRule(e,"room",a.rule_id)),r)return new Promise((e,t)=>{r.then((function(){o.getPushRules().then((function(t){o.pushRules=t,e()}),(function(e){t(e)}))}),(function(e){o.getPushRules().then((function(n){o.pushRules=n,t(e)}),(function(n){t(e)}))}))})},F.prototype.searchMessageText=function(e,t){const n={search_term:e.query};return"keys"in e&&(n.keys=e.keys),this.search({body:{search_categories:{room_events:n}}},t)},F.prototype.searchRoomEvents=function(e){const t={search_categories:{room_events:{search_term:e.term,filter:e.filter,order_by:"recent",event_context:{before_limit:1,after_limit:1,include_profile:!0}}}},n={_query:t,results:[],highlights:[]};return this.search({body:t}).then(this._processRoomEventsSearch.bind(this,n))},F.prototype.backPaginateRoomEventsSearch=function(e){if(!e.next_batch)return Promise.reject(new Error("Cannot backpaginate event search any further"));if(e.pendingRequest)return e.pendingRequest;const t={body:e._query,next_batch:e.next_batch},n=this.search(t).then(this._processRoomEventsSearch.bind(this,e)).finally((function(){e.pendingRequest=null}));return e.pendingRequest=n,n},F.prototype._processRoomEventsSearch=function(e,t){const n=t.search_categories.room_events;e.count=n.count,e.next_batch=n.next_batch;const o={};n.highlights.forEach((function(e){o[e]=1})),e.highlights.forEach((function(e){o[e]=1})),e.highlights=Object.keys(o);for(let t=0;t<n.results.length;t++){const o=d.a.fromJson(n.results[t],this.getEventMapper());e.results.push(o)}return e},F.prototype.syncLeftRooms=function(){if(this._syncedLeftRooms)return Promise.resolve([]);if(this._syncLeftRoomsPromise)return this._syncLeftRoomsPromise;const e=this,t=new c.a(this,this._clientOpts);return this._syncLeftRoomsPromise=t.syncLeftRooms(),this._syncLeftRoomsPromise.then((function(t){S.a.log("Marking success of sync left room request"),e._syncedLeftRooms=!0})).finally((function(){e._syncLeftRoomsPromise=null})),this._syncLeftRoomsPromise},F.prototype.createFilter=function(e){const t=this,n=g.f("/user/$userId/filter",{$userId:this.credentials.userId});return this._http.authedRequest(void 0,"POST",n,void 0,e).then((function(n){const o=s.a.fromJson(t.credentials.userId,n.filter_id,e);return t.store.storeFilter(o),o}))},F.prototype.getFilter=function(e,t,n){if(n){const n=this.store.getFilter(e,t);if(n)return Promise.resolve(n)}const o=this,r=g.f("/user/$userId/filter/$filterId",{$userId:e,$filterId:t});return this._http.authedRequest(void 0,"GET",r,void 0,void 0).then((function(n){const r=s.a.fromJson(e,t,n);return o.store.storeFilter(r),r}))},F.prototype.getOrCreateFilter=async function(e,t){const n=this.store.getFilterIdByName(e);let o=void 0;if(n){try{const e=await this.getFilter(this.credentials.userId,n,!0);if(e){const r=e.getDefinition(),i=t.getDefinition();g.b(r,i)&&(o=n)}}catch(e){if("M_UNKNOWN"!==e.errcode&&"M_NOT_FOUND"!==e.errcode)throw e}o||this.store.setFilterIdByName(e,void 0)}if(o)return o;const r=await this.createFilter(t.getDefinition());return this.store.setFilterIdByName(e,r.filterId),r.filterId},F.prototype.getOpenIdToken=function(){const e=g.f("/user/$userId/openid/request_token",{$userId:this.credentials.userId});return this._http.authedRequest(void 0,"POST",e,void 0,{})},F.prototype.turnServer=function(e){return this._http.authedRequest(e,"GET","/voip/turnServer")},F.prototype.getTurnServers=function(){return this._turnServers||[]},F.prototype.setFallbackICEServerAllowed=function(e){this._fallbackICEServerAllowed=e},F.prototype.isFallbackICEServerAllowed=function(){return this._fallbackICEServerAllowed},F.prototype.isSynapseAdministrator=function(){const e=g.f("/_synapse/admin/v1/users/$userId/admin",{$userId:this.getUserId()});return this._http.authedRequest(void 0,"GET",e,void 0,void 0,{prefix:""}).then(e=>e.admin)},F.prototype.whoisSynapseUser=function(e){const t=g.f("/_synapse/admin/v1/whois/$userId",{$userId:e});return this._http.authedRequest(void 0,"GET",t,void 0,void 0,{prefix:""})},F.prototype.deactivateSynapseUser=function(e){const t=g.f("/_synapse/admin/v1/deactivate/$userId",{$userId:e});return this._http.authedRequest(void 0,"POST",t,void 0,void 0,{prefix:""})},F.prototype.startClient=async function(e){if(this.clientRunning)return;this.clientRunning=!0,"number"==typeof e&&(e={initialSyncLimit:e});const t=this.getUserId();t&&this.store.storeUser(new k.a(t)),this._crypto&&(this._crypto.uploadDeviceKeys(),this._crypto.start()),function e(t){if(!t._supportsVoip)return;t.turnServer().then((function(n){if(n.uris){S.a.log("Got TURN URIs: "+n.uris+" refresh in "+n.ttl+" secs");const o={urls:n.uris,username:n.username,credential:n.password};t._turnServers=[o],t._checkTurnServersTimeoutID=setTimeout(()=>{e(t)},1e3*(n.ttl||3600)*.9)}}),(function(n){S.a.error("Failed to get TURN URIs"),t._checkTurnServersTimeoutID=setTimeout((function(){e(t)}),6e4)}))}(this),this._syncApi&&(S.a.error("Still have sync object whilst not running: stopping old one"),this._syncApi.stop()),(e=Object.assign({},e)).crypto=this._crypto,e.canResetEntireTimeline=e=>!!this._canResetTimelineCallback&&this._canResetTimelineCallback(e),this._clientOpts=e,this._syncApi=new c.a(this,e),this._syncApi.sync(),void 0!==e.clientWellKnownPollPeriod&&(this._clientWellKnownIntervalID=setInterval(()=>{this._fetchClientWellKnown()},1e3*e.clientWellKnownPollPeriod),this._fetchClientWellKnown())},F.prototype._fetchClientWellKnown=async function(){this._clientWellKnownPromise=R.a.getRawClientConfig(this.getDomain()),this._clientWellKnown=await this._clientWellKnownPromise,this.emit("WellKnown.client",this._clientWellKnown)},F.prototype.getClientWellKnown=function(){return this._clientWellKnown},F.prototype.waitForClientWellKnown=function(){return this._clientWellKnownPromise},F.prototype._storeClientOptions=function(){const e=["boolean","string","number"],t=Object.entries(this._clientOpts).filter(([t,n])=>e.includes(typeof n)).reduce((e,[t,n])=>(e[t]=n,e),{});return this.store.storeClientOptions(t)},F.prototype._unstable_getSharedRooms=async function(e){if(!await this.doesServerSupportUnstableFeature("uk.half-shot.msc2666"))throw Error("Server does not support shared_rooms API");const t=g.f("/uk.half-shot.msc2666/user/shared_rooms/$userId",{$userId:e});return(await this._http.authedRequest(void 0,"GET",t,void 0,void 0,{prefix:f.i})).joined},F.prototype.stopClient=function(){S.a.log("stopping MatrixClient"),this.clientRunning=!1,this._syncApi&&(this._syncApi.stop(),this._syncApi=null),this._crypto&&this._crypto.stop(),this._peekSync&&this._peekSync.stopPeeking(),this._callEventHandler&&(this._callEventHandler.stop(),this._callEventHandler=null),e.clearTimeout(this._checkTurnServersTimeoutID),void 0!==this._clientWellKnownIntervalID&&e.clearInterval(this._clientWellKnownIntervalID)},F.prototype.getVersions=function(){return this._serverVersionsPromise||(this._serverVersionsPromise=this._http.request(void 0,"GET","/_matrix/client/versions",void 0,void 0,{prefix:""}).catch(e=>{throw this._serverVersionsPromise=null,e})),this._serverVersionsPromise},F.prototype.isVersionSupported=async function(e){const{versions:t}=await this.getVersions();return t&&t.includes(e)},F.prototype.doesServerSupportLazyLoading=async function(){const e=await this.getVersions();if(!e)return!1;const t=e.versions,n=e.unstable_features;return t&&t.includes("r0.5.0")||n&&n["m.lazy_load_members"]},F.prototype.doesServerRequireIdServerParam=async function(){const e=await this.getVersions();if(!e)return!0;const t=e.versions;if(t&&t.includes("r0.6.0"))return!1;const n=e.unstable_features;return!n||(void 0===n["m.require_identity_server"]||n["m.require_identity_server"])},F.prototype.doesServerAcceptIdentityAccessToken=async function(){const e=await this.getVersions();if(!e)return!1;const t=e.versions,n=e.unstable_features;return t&&t.includes("r0.6.0")||n&&n["m.id_access_token"]},F.prototype.doesServerSupportSeparateAddAndBind=async function(){const e=await this.getVersions();if(!e)return!1;const t=e.versions,n=e.unstable_features;return t&&t.includes("r0.6.0")||n&&n["m.separate_add_and_bind"]},F.prototype.doesServerSupportUnstableFeature=async function(e){const t=await this.getVersions();if(!t)return!1;const n=t.unstable_features;return n&&!!n[e]},F.prototype.doesServerForceEncryptionForPreset=async function(e){const t=await this.getVersions();if(!t)return!1;const n=t.unstable_features;return n&&!!n["io.element.e2ee_forced."+e]},F.prototype.hasLazyLoadMembersEnabled=function(){return!!this._clientOpts.lazyLoadMembers},F.prototype.setCanResetTimelineCallback=function(e){this._canResetTimelineCallback=e},F.prototype.getCanResetTimelineCallback=function(){return this._canResetTimelineCallback},F.prototype.relations=async function(e,t,n,o,r={}){const i=function(e,t,n){return"m.reaction"===n?n:e.isRoomEncrypted(t)?"m.room.encrypted":n}(this,e,o),a=await this.fetchRelations(e,t,n,i,r),s=this.getEventMapper();let c;a.original_event&&(c=s(a.original_event));let l=a.chunk.map(s);if("m.room.encrypted"===i){const e=c?l.concat(c):l;await Promise.all(e.map(e=>new Promise(t=>e.once("Event.decrypted",t)))),l=l.filter(e=>e.getType()===o)}return{originalEvent:c,events:l,nextBatch:a.next_batch}},F.prototype.getEventMapper=function(e){return H(this,e)},F.prototype.getCrossSigningCacheCallbacks=function(){return this._crypto&&this._crypto._crossSigningInfo.getCacheCallbacks()},F.prototype.generateClientSecret=function(){return Object(x.a)(32)}}).call(this,n(5))},function(e,t,n){"use strict";(function(e){n.d(t,"h",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return E})),n.d(t,"j",(function(){return y}));var o=n(201),r=n.n(o),i=n(831),a=n(1),s=n(0),c=n(832);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const d="/_matrix/client/r0",h="/_matrix/client/unstable",p="/_matrix/identity/api/v1",m="/_matrix/identity/v2",g="/_matrix/media/r0";function f(e,t){a.a(t,["baseUrl","request","prefix"]),t.onlyData=t.onlyData||!1,this.event_emitter=e,this.opts=t,this.useAuthorizationHeader=Boolean(t.useAuthorizationHeader),this.uploads=[]}f.prototype={setIdBaseUrl:function(e){this.opts.idBaseUrl=e},getContentUri:function(){const e={access_token:this.opts.accessToken};return{base:this.opts.baseUrl,path:"/_matrix/media/r0/upload",params:e}},uploadContent:function(t,n){a.q(n)?n={callback:n}:void 0===n&&(n={});const o=!1!==n.includeFilename,r=n.type||t.type||"application/octet-stream",i=n.name||t.name;let l=t;l.stream&&"function"!=typeof l.stream&&(s.a.warn("Using `file.stream` as the content to upload. Future versions of the js-sdk will change this to expect `file` to be the content directly."),l=l.stream);let u=n.rawResponse;void 0===u&&(e.XMLHttpRequest?u=!1:(s.a.warn("Returning the raw JSON from uploadContent(). Future versions of the js-sdk will change this default, to return the parsed object. Set opts.rawResponse=false to change this behaviour now."),u=!0));let d=n.onlyContentUri;u||void 0!==d||(e.XMLHttpRequest?(s.a.warn("Returning only the content-uri from uploadContent(). Future versions of the js-sdk will change this default, to return the whole response object. Set opts.onlyContentUri=false to change this behaviour now."),d=!0):d=!1);const h={loaded:0,total:0};let p,m=null;if(u||(m=function(e){let t=JSON.parse(e);if(d&&(t=t.content_uri,void 0===t))throw Error("Bad response");return t}),e.XMLHttpRequest){const t=a.d(),s=new e.XMLHttpRequest;h.xhr=s;const u=_(t,n.callback,this.opts.onlyData),d=function(){s.abort(),u(new Error("Timeout"))};s.timeout_timer=c.b(d,3e4),s.onreadystatechange=function(){switch(s.readyState){case e.XMLHttpRequest.DONE:var t;c.a(s.timeout_timer);try{if(0===s.status)throw new E;if(!s.responseText)throw new Error("No response body.");t=s.responseText,m&&(t=m(t))}catch(e){return e.http_status=s.status,void u(e)}u(void 0,s,t)}},s.upload.addEventListener("progress",(function(e){c.a(s.timeout_timer),h.loaded=e.loaded,h.total=e.total,s.timeout_timer=c.b(d,3e4),n.progressHandler&&n.progressHandler({loaded:e.loaded,total:e.total})}));let g=this.opts.baseUrl+"/_matrix/media/r0/upload";const f=[];o&&i&&f.push("filename="+encodeURIComponent(i)),this.useAuthorizationHeader||f.push("access_token="+encodeURIComponent(this.opts.accessToken)),f.length>0&&(g+="?"+f.join("&")),s.open("POST",g),this.useAuthorizationHeader&&s.setRequestHeader("Authorization","Bearer "+this.opts.accessToken),s.setRequestHeader("Content-Type",r),s.send(l),p=t.promise,p.abort=s.abort.bind(s)}else{const e={};o&&i&&(e.filename=i),p=this.authedRequest(n.callback,"POST","/upload",e,l,{prefix:"/_matrix/media/r0",headers:{"Content-Type":r},json:!1,bodyParser:m})}const g=this,f=p.finally((function(){for(let e=0;e<g.uploads.length;++e)if(g.uploads[e]===h)return void g.uploads.splice(e,1)}));return f.abort=p.abort,h.promise=f,this.uploads.push(h),f},cancelUpload:function(e){return!!e.abort&&(e.abort(),!0)},getCurrentUploads:function(){return this.uploads},idServerRequest:function(e,t,n,o,r,i){if(!this.opts.idBaseUrl)throw new Error("No Identity Server base URL set");const s=this.opts.idBaseUrl+r+n;if(void 0!==e&&!a.q(e))throw Error("Expected callback to be a function but got "+typeof e);const c={uri:s,method:t,withCredentials:!1,json:!0,_matrix_opts:this.opts,headers:{}};"GET"===t?c.qs=o:"object"==typeof o&&(c.json=o),i&&(c.headers.Authorization="Bearer "+i);const l=a.d();return this.opts.request(c,_(l,e,this.opts.onlyData)),l.promise},authedRequest:function(e,t,n,o,r,i){o||(o={}),this.useAuthorizationHeader?(isFinite(i)&&(i={localTimeoutMs:i}),i||(i={}),i.headers||(i.headers={}),i.headers.Authorization||(i.headers.Authorization="Bearer "+this.opts.accessToken),o.access_token&&delete o.access_token):o.access_token||(o.access_token=this.opts.accessToken);const a=this.request(e,t,n,o,r,i),s=this;return a.catch((function(e){"M_UNKNOWN_TOKEN"==e.errcode?s.event_emitter.emit("Session.logged_out",e):"M_CONSENT_NOT_GIVEN"==e.errcode&&s.event_emitter.emit("no_consent",e.message,e.data.consent_uri)})),a},request:function(e,t,n,o,r,i){const a=void 0!==(i=i||{}).prefix?i.prefix:this.opts.prefix,s=this.opts.baseUrl+a+n;return this.requestOtherUrl(e,t,s,o,r,i)},requestOtherUrl:function(e,t,n,o,r,i){return null==i?i={}:isFinite(i)&&(i={localTimeoutMs:i}),this._request(e,t,n,o,r,i)},getUrl:function(e,t,n){let o="";return t&&(o="?"+a.e(t)),this.opts.baseUrl+n+e+o},_request:function(e,t,n,o,r,i){if(void 0!==e&&!a.q(e))throw Error("Expected callback to be a function but got "+typeof e);i=i||{};const s=this;this.opts.extraParams&&(o=u(u({},o),this.opts.extraParams));const l=a.i({},i.headers||{}),d=void 0===i.json||i.json;let h=i.bodyParser;d&&(r&&(r=JSON.stringify(r),l["content-type"]="application/json"),l.accept||(l.accept="application/json"),void 0===h&&(h=function(e){return JSON.parse(e)}));const p=a.d();let m,g,f=!1;const v=i.localTimeoutMs||this.opts.localTimeoutMs,E=()=>{v&&(m&&c.a(m),m=c.b((function(){f=!0,g&&g.abort&&g.abort(),p.reject(new b({error:"Locally timed out waiting for a response",errcode:"ORG.MATRIX.JSSDK_TIMEOUT",timeout:v}))}),v))};E();const y=p.promise;try{g=this.opts.request({uri:n,method:t,withCredentials:!1,qs:o,qsStringifyOptions:i.qsStringifyOptions,useQuerystring:!0,body:r,json:!1,timeout:v,headers:l||{},_matrix_opts:this.opts},(function(t,n,o){if(v&&(c.a(m),f))return;_(p,e,s.opts.onlyData,h)(t,n,o)})),g&&("onprogress"in g&&(g.onprogress=e=>{E()}),g.abort&&(y.abort=g.abort.bind(g)))}catch(t){p.reject(t),e&&e(t)}return y}};const _=function(e,t,n,o){return t=t||function(){},function(r,a,s){if(r){"AbortError"===r.name||"aborted"===r||r instanceof b||(r=new v("request failed",r))}if(!r)try{a.statusCode>=400?r=function(e,t){const n=e.statusCode,o=function(e){let t;e.getResponseHeader?t=e.getResponseHeader("Content-Type"):e.headers&&(t=e.headers["content-type"]||null);if(!t)return null;try{return Object(i.parse)(t)}catch(e){throw new Error(`Error parsing Content-Type '${t}': ${e}`)}}(e);let r;if(o)if("application/json"===o.type){const e="object"==typeof t?t:JSON.parse(t);r=new b(e)}else"text/plain"===o.type&&(r=new Error(`Server returned ${n} error: ${t}`));r||(r=new Error(`Server returned ${n} error`));return r.httpStatus=n,r}(a,s):o&&(s=o(s))}catch(e){r=new Error("Error parsing server response: "+e)}if(r)e.reject(r),t(r);else{const o={code:a.statusCode,headers:a.headers,data:s};e.resolve(n?s:o),t(null,n?s:o)}}};class b extends Error{constructor(e){super("MatrixError: "+(e=e||{}).errcode),this.errcode=e.errcode,this.name=e.errcode||"Unknown error code",this.message=e.error||"Unknown message",this.data=e}}class v extends Error{constructor(e,t){super(e+(t?": "+t.message:"")),this._cause=t}get name(){return"ConnectionError"}get cause(){return this._cause}}class E extends Error{constructor(){super("Operation aborted")}get name(){return"AbortError"}}async function y(e,t){let n=0,o=null;for(;n<e;)try{if(n>0){const e=1e3*Math.pow(2,n);s.a.log(`network operation failed ${n} times, retrying in ${e}ms...`),await new Promise(t=>setTimeout(t,e))}return await t()}catch(e){if(!(e instanceof v))throw e;n+=1,o=e}throw o}}).call(this,n(5))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var o=n(1),r=n(124);const i="undefined"!=typeof window&&window.crypto?window.crypto.subtle||window.crypto.webkitSubtle:null,a=new Uint8Array(8);function s(t,n){const r=Object(o.m)(),i=r.createHmac("sha256",a).update(t).digest(),s=e.alloc(1,1),c=r.createHmac("sha256",i).update(n,"utf-8").update(s).digest();s[0]=2;return[c,r.createHmac("sha256",i).update(c).update(n,"utf-8").update(s).digest()]}async function c(e,t){const n=await i.importKey("raw",e,{name:"HKDF"},!1,["deriveBits"]),o=await i.deriveBits({name:"HKDF",salt:a,info:(new TextEncoder).encode(t),hash:"SHA-256"},n,512),r=o.slice(0,32),s=o.slice(32),c=i.importKey("raw",r,{name:"AES-CTR"},!1,["encrypt","decrypt"]),l=i.importKey("raw",s,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign","verify"]);return await Promise.all([c,l])}function l(...e){return i?async function(e,t,n,o){let a;o?a=Object(r.decodeBase64)(o):(a=new Uint8Array(16),window.crypto.getRandomValues(a)),a[8]&=127;const[s,l]=await c(t,n),u=(new TextEncoder).encode(e),d=await i.encrypt({name:"AES-CTR",counter:a,length:64},s,u),h=await i.sign({name:"HMAC"},l,d);return{iv:Object(r.encodeBase64)(a),ciphertext:Object(r.encodeBase64)(d),mac:Object(r.encodeBase64)(h)}}(...e):async function(e,t,n,i){const a=Object(o.m)();if(!a)throw new Error("No usable crypto implementation");let c;c=i?Object(r.decodeBase64)(i):a.randomBytes(16),c[8]&=127;const[l,u]=s(t,n),d=a.createCipheriv("aes-256-ctr",l,c),h=d.update(e,"utf-8","base64")+d.final("base64"),p=a.createHmac("sha256",u).update(h,"base64").digest("base64");return{iv:Object(r.encodeBase64)(c),ciphertext:h,mac:p}}(...e)}function u(...e){return i?async function(e,t,n){const[o,a]=await c(t,n),s=Object(r.decodeBase64)(e.ciphertext);if(!await i.verify({name:"HMAC"},a,Object(r.decodeBase64)(e.mac),s))throw new Error(`Error decrypting secret ${n}: bad MAC`);const l=await i.decrypt({name:"AES-CTR",counter:Object(r.decodeBase64)(e.iv),length:64},o,s);return(new TextDecoder).decode(new Uint8Array(l))}(...e):async function(e,t,n){const i=Object(o.m)();if(!i)throw new Error("No usable crypto implementation");const[a,c]=s(t,n);if(i.createHmac("sha256",c).update(e.ciphertext,"base64").digest("base64").replace(/=+$/g,"")!==e.mac.replace(/=+$/g,""))throw new Error(`Error decrypting secret ${n}: bad MAC`);const l=i.createDecipheriv("aes-256-ctr",a,Object(r.decodeBase64)(e.iv));return l.update(e.ciphertext,"base64","utf-8")+l.final("utf-8")}(...e)}}).call(this,n(31).Buffer)},function(e,t,n){"use strict";(function(e,o){n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return m}));var r=n(390),i=n(269),a=n(124),s=n(0);const c="m.qr_code.show.v1",l="m.qr_code.scan.v1";class u extends r.b{static factory(...e){return new u(...e)}static get NAME(){return"m.reciprocate.v1"}async _doVerification(){if(!this.startEvent)throw new Error("It is not currently possible to start verificationwith this method yet.");const{qrCodeData:e}=this.request;if(this.startEvent.getContent().secret!==e.encodedSharedSecret)throw Object(i.d)();await new Promise((e,t)=>{this.reciprocateQREvent={confirm:e,cancel:()=>t(Object(i.h)())},this.emit("show_reciprocate_qr",this.reciprocateQREvent)});const t={};switch(e.mode){case d:{const n=e.otherUserMasterKey;t["ed25519:"+n]=n;break}case h:{const n=this.request.targetDevice.deviceId;t["ed25519:"+n]=e.otherDeviceKey;break}case p:{const n=e.myMasterKey;t["ed25519:"+n]=n;break}}await this._verifyKeys(this.userId,t,(e,n,o)=>{const r=t[e];if(!r)throw Object(i.d)();if(o!==r)throw s.a.error("key ID from key info does not match"),Object(i.d)();for(const e in n.keys){if(!e.startsWith("ed25519"))continue;const o=t[e];if(!o)throw Object(i.d)();if(n.keys[e]!==o)throw s.a.error("master key does not match"),Object(i.d)()}})}}const d=0,h=1,p=2;class m{constructor(e,t,n,o,r,i){this._sharedSecret=t,this._mode=e,this._otherUserMasterKey=n,this._otherDeviceKey=o,this._myMasterKey=r,this._buffer=i}static async create(e,t){const n=m._generateSharedSecret(),o=m._determineMode(e,t);let r=null,i=null,a=null;if(o===d){r=t.getStoredCrossSigningForUser(e.otherUserId).getId("master")}else if(o===h)i=await m._getOtherDeviceKey(e,t);else if(o===p){const e=t.getUserId();a=t.getStoredCrossSigningForUser(e).getId("master")}const s=m._generateQrData(e,t,o,n,r,i,a),c=m._generateBuffer(s);return new m(o,n,r,i,a,c)}get buffer(){return this._buffer}get mode(){return this._mode}get otherDeviceKey(){return this._otherDeviceKey}get otherUserMasterKey(){return this._otherUserMasterKey}get myMasterKey(){return this._myMasterKey}get encodedSharedSecret(){return this._sharedSecret}static _generateSharedSecret(){const t=new Uint8Array(11);return e.crypto.getRandomValues(t),Object(a.encodeUnpaddedBase64)(t)}static async _getOtherDeviceKey(e,t){const n=t.getUserId(),o=e.targetDevice,r=o?o.deviceId:null,i=t.getStoredDevice(n,r);if(!i)throw new Error("could not find device "+r);return i.getFingerprint()}static _determineMode(e,t){const n=t.getUserId(),o=e.otherUserId;let r=d;if(n===o){r=t.checkUserTrust(n).isCrossSigningVerified()?h:p}return r}static _generateQrData(e,t,n,o,r,i,a){const s=t.getUserId(),c={prefix:"MATRIX",version:2,mode:n,transactionId:e.channel.transactionId,firstKeyB64:"",secondKeyB64:"",secretB64:o},l=t.getStoredCrossSigningForUser(s);return n===d?(c.firstKeyB64=l.getId("master"),c.secondKeyB64=r):n===h?(c.firstKeyB64=l.getId("master"),c.secondKeyB64=i):n===p&&(c.firstKeyB64=t.getDeviceEd25519Key(),c.secondKeyB64=a),c}static _generateBuffer(e){let t=o.alloc(0);const n=e=>{const n=o.from([e]);t=o.concat([t,n])},r=(e,n,r=!0)=>{const i=o.from(e,n);r&&(e=>{const n=o.alloc(2);n.writeInt16BE(e,0),t=o.concat([t,n])})(i.byteLength),t=o.concat([t,i])},i=e=>{const n=Object(a.decodeBase64)(e),r=o.from(n);t=o.concat([t,r])};return r(e.prefix,"ascii",!1),n(e.version),n(e.mode),r(e.transactionId,"utf-8"),i(e.firstKeyB64),i(e.secondKeyB64),i(e.secretB64),t}}}).call(this,n(5),n(31).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"h",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d}));var o=n(129);function r(e,t){return function(n){return function(e,t,n){const r=Object.assign({},{code:e,reason:t},n);return new o.b({type:"m.key.verification.cancel",content:r})}(e,t,n)}}const i=r("m.user","Cancelled by user"),a=r("m.timeout","Timed out"),s=(r("m.unknown_transaction","Unknown transaction"),r("m.unknown_method","Unknown method")),c=r("m.unexpected_message","Unexpected message"),l=r("m.key_mismatch","Key mismatch"),u=(r("m.user_error","User mismatch"),r("m.invalid_message","Invalid message"));function d(e){const t=e.getContent();if(t){const{code:e,reason:n}=t;return{code:e,reason:n}}return{code:"Unknown error",reason:"m.unknown"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(0),r=n(107);class i{static get ERROR_INVALID(){return"Invalid homeserver discovery response"}static get ERROR_GENERIC_FAILURE(){return"Failed to get autodiscovery configuration from server"}static get ERROR_INVALID_HS_BASE_URL(){return"Invalid base_url for m.homeserver"}static get ERROR_INVALID_HOMESERVER(){return"Homeserver URL does not appear to be a valid Matrix homeserver"}static get ERROR_INVALID_IS_BASE_URL(){return"Invalid base_url for m.identity_server"}static get ERROR_INVALID_IDENTITY_SERVER(){return"Identity server URL does not appear to be a valid identity server"}static get ERROR_INVALID_IS(){return"Invalid identity server discovery response"}static get ERROR_MISSING_WELLKNOWN(){return"No .well-known JSON file found"}static get ERROR_INVALID_JSON(){return"Invalid JSON"}static get ALL_ERRORS(){return[i.ERROR_INVALID,i.ERROR_GENERIC_FAILURE,i.ERROR_INVALID_HS_BASE_URL,i.ERROR_INVALID_HOMESERVER,i.ERROR_INVALID_IS_BASE_URL,i.ERROR_INVALID_IDENTITY_SERVER,i.ERROR_INVALID_IS,i.ERROR_MISSING_WELLKNOWN,i.ERROR_INVALID_JSON]}static get FAIL_ERROR(){return"FAIL_ERROR"}static get FAIL_PROMPT(){return"FAIL_PROMPT"}static get PROMPT(){return"PROMPT"}static get SUCCESS(){return"SUCCESS"}static async fromDiscoveryConfig(e){const t={"m.homeserver":{state:i.FAIL_ERROR,error:i.ERROR_INVALID,base_url:null},"m.identity_server":{state:i.PROMPT,error:null,base_url:null}};if(!e||!e["m.homeserver"])return o.a.error("No m.homeserver key in config"),t["m.homeserver"].state=i.FAIL_PROMPT,t["m.homeserver"].error=i.ERROR_INVALID,Promise.resolve(t);if(!e["m.homeserver"].base_url)return o.a.error("No m.homeserver base_url in config"),t["m.homeserver"].state=i.FAIL_PROMPT,t["m.homeserver"].error=i.ERROR_INVALID_HS_BASE_URL,Promise.resolve(t);const n=this._sanitizeWellKnownUrl(e["m.homeserver"].base_url);if(!n)return o.a.error("Invalid base_url for m.homeserver"),t["m.homeserver"].error=i.ERROR_INVALID_HS_BASE_URL,Promise.resolve(t);const r=await this._fetchWellKnownObject(n+"/_matrix/client/versions");if(!r||!r.raw.versions)return o.a.error("Invalid /versions response"),t["m.homeserver"].error=i.ERROR_INVALID_HOMESERVER,t["m.homeserver"].base_url=n,Promise.resolve(t);t["m.homeserver"]={state:i.SUCCESS,error:null,base_url:n};let a="";if(e["m.identity_server"]){const n={"m.homeserver":t["m.homeserver"],"m.identity_server":{state:i.FAIL_PROMPT,error:i.ERROR_INVALID_IS,base_url:null}};if(a=this._sanitizeWellKnownUrl(e["m.identity_server"].base_url),!a)return o.a.error("Invalid base_url for m.identity_server"),n["m.identity_server"].error=i.ERROR_INVALID_IS_BASE_URL,Promise.resolve(n);const r=await this._fetchWellKnownObject(a+"/_matrix/identity/api/v1");if(!r||!r.raw||"SUCCESS"!==r.action)return o.a.error("Invalid /api/v1 response"),n["m.identity_server"].error=i.ERROR_INVALID_IDENTITY_SERVER,n["m.identity_server"].base_url=a,Promise.resolve(n)}return a&&a.length>0&&(t["m.identity_server"]={state:i.SUCCESS,error:null,base_url:a}),Object.keys(e).map(n=>{if("m.homeserver"===n||"m.identity_server"===n){const o=["error","state","base_url"];for(const r of Object.keys(e[n]))o.includes(r)||(t[n][r]=e[n][r])}else t[n]=e[n]}),Promise.resolve(t)}static async findClientConfig(e){if(!e||"string"!=typeof e||0===e.length)throw new Error("'domain' must be a string of non-zero length");const t={"m.homeserver":{state:i.FAIL_ERROR,error:i.ERROR_INVALID,base_url:null},"m.identity_server":{state:i.PROMPT,error:null,base_url:null}},n=await this._fetchWellKnownObject(`https://${e}/.well-known/matrix/client`);return n&&"SUCCESS"===n.action?i.fromDiscoveryConfig(n.raw):(o.a.error("No response or error when parsing .well-known"),n.reason&&o.a.error(n.reason),"IGNORE"===n.action?t["m.homeserver"]={state:i.PROMPT,error:null,base_url:null}:(t["m.homeserver"].state=i.FAIL_PROMPT,t["m.homeserver"].error=i.ERROR_INVALID),Promise.resolve(t))}static async getRawClientConfig(e){if(!e||"string"!=typeof e||0===e.length)throw new Error("'domain' must be a string of non-zero length");const t=await this._fetchWellKnownObject(`https://${e}/.well-known/matrix/client`);return t&&t.raw||{}}static _sanitizeWellKnownUrl(e){if(!e)return!1;try{let t=null;try{t=r.URL?new r.URL(e):new URL(e)}catch(n){t=new URL(e)}if(!t||!t.hostname)return!1;if("http:"!==t.protocol&&"https:"!==t.protocol)return!1;const n=t.port?":"+t.port:"",o=t.pathname?t.pathname:"";let i=`${t.protocol}//${t.hostname}${n}${o}`;return i.endsWith("/")&&(i=i.substring(0,i.length-1)),i}catch(e){return o.a.error(e),!1}}static async _fetchWellKnownObject(e){return new Promise((function(t,o){const r=n(263).getRequest();if(!r)throw new Error("No request library available");r({method:"GET",uri:e,timeout:5e3},(e,n,o)=>{if(e||n&&(n.statusCode<200||n.statusCode>=300)){let o="FAIL_PROMPT",r=(e?e.message:null)||"General failure";return n&&404===n.statusCode&&(o="IGNORE",r=i.ERROR_MISSING_WELLKNOWN),void t({raw:{},action:o,reason:r,error:e})}try{t({raw:JSON.parse(o),action:"SUCCESS"})}catch(e){let n=i.ERROR_INVALID;"SyntaxError"===e.name&&(n=i.ERROR_INVALID_JSON),t({raw:{},action:"FAIL_PROMPT",reason:n,error:e})}})}))}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t,n){var o=n(557),r=n(404);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCorners=t.offset=t.isEqual=t.addPosition=t.add=void 0;var o,r=n(205),i=(o=r)&&o.__esModule?o:{default:o};t.add=function(e,t){return{top:e.top+t.top,left:e.left+t.left,right:e.right+t.right,bottom:e.bottom+t.bottom}},t.addPosition=function(e,t){return(0,i.default)({},e,{right:e.right+t.x,bottom:e.bottom+t.y})},t.isEqual=function(e,t){return e.top===t.top&&e.right===t.right&&e.bottom===t.bottom&&e.left===t.left},t.offset=function(e,t){return{top:e.top+t.y,right:e.right+t.x,bottom:e.bottom+t.y,left:e.left+t.x}},t.getCorners=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(125);t.default=function(e){var t=e.source,n=e.sourceEdge,r=e.destination,i=e.destinationEdge,a=e.destinationAxis,s=function(e){return(0,o.patch)(a.line,e[a[i]],e[a.crossAxisStart])},c=s(r),l=(0,o.absolute)((0,o.subtract)(t.center,s(t))),u=(0,o.patch)(a.line,("end"===n?-1:1)*l[a.line],l[a.crossLine]);return(0,o.add)(c,u)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(88);function r(e){const t=t=>o.a.getValue(t,e.getRoomId());if(e.isRedacted()&&!t("showRedactions"))return!0;if(e.isRelation("m.replace"))return!0;const n=function(e){const t={isMemberEvent:"m.room.member"===e.getType()};if(!t.isMemberEvent)return t;const n=e.getContent(),o=e.getPrevContent(),r=n.membership!==o.membership;t.isJoin=r&&"join"===n.membership,t.isPart=r&&"leave"===n.membership&&e.getStateKey()===e.getSender();const i=!r&&"join"===n.membership;return t.isDisplaynameChange=i&&n.displayname!==o.displayname,t.isAvatarChange=i&&n.avatar_url!==o.avatar_url,t}(e);if(n.isMemberEvent){if((n.isJoin||n.isPart)&&!t("showJoinLeaves"))return!0;if(n.isAvatarChange&&!t("showAvatarChanges"))return!0;if(n.isDisplaynameChange&&!t("showDisplaynameChanges"))return!0}return!1}},function(e,t,n){var o=n(596),r=n(600);function i(t,n){return delete e.exports[t],e.exports[t]=n,n}e.exports={Parser:o,Tokenizer:n(597),ElementType:n(167),DomHandler:r,get FeedHandler(){return i("FeedHandler",n(1014))},get Stream(){return i("Stream",n(1027))},get WritableStream(){return i("WritableStream",n(607))},get ProxyHandler(){return i("ProxyHandler",n(1029))},get DomUtils(){return i("DomUtils",n(602))},get CollectingHandler(){return i("CollectingHandler",n(1030))},DefaultHandler:r,get RssHandler(){return i("RssHandler",this.FeedHandler)},parseDOM:function(e,t){var n=new r(t);return new o(n,t).end(e),n.dom},parseFeed:function(t,n){var r=new e.exports.FeedHandler(n);return new o(r,n).end(t),r.dom},createDomStream:function(e,t,n){var i=new r(e,t,n);return new o(i,t)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},function(e,t,n){"use strict";t.REPLACEMENT_CHARACTER="<22>",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],CDATA_END_STRING:[93,93,62],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]}},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(31).Buffer)},function(e,t,n){var o=n(127).Symbol;e.exports=o},function(e,t){e.exports=function(e){return e}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var o=n(337),r=n(626),i=n(618),a={tag:!0,script:!0,style:!0};t.isTag=function(e){return e.type&&(e=e.type),a[e]||!1},t.camelCase=function(e){return e.replace(/[_.-](\w|$)/g,(function(e,t){return t.toUpperCase()}))},t.cssCase=function(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()},t.domEach=function(e,t){for(var n=0,o=e.length;n<o&&!1!==t.call(e,n,e[n]);)++n;return e},t.cloneDom=function(e,t){return t=i({},t,{_useHtmlParser2:!0}),o(r(e,t),t,!1).children};var s=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/;t.isHtml=function(e){if("<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3)return!0;var t=s.exec(e);return!(!t||!t[1])}},function(e,t,n){var o=n(1097),r=n(1099)(o);e.exports=r},function(e,t,n){var o=e.exports;[n(1102),n(1103),n(1104),n(1105),n(1106),n(1107)].forEach((function(e){Object.keys(e).forEach((function(t){o[t]=e[t].bind(o)}))}))},function(e,t){e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},function(e,t,n){var o=n(1148),r=n(1168),i=n(281),a=n(111),s=n(1177);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?r(e[0],e[1]):o(e):s(e)}},function(e,t,n){var o=n(349);e.exports=function(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var o=n(1201);const r=new Map,i=new Map,a=new Map,s=e=>r.get(u(e)),c=["people","people","control","nature","foods","places","activity","objects","symbols","flags"],l={people:[],nature:[],foods:[],places:[],activity:[],objects:[],symbols:[],flags:[]};function u(e){return e.replace(/[\uFE00-\uFE0F]$/,"")}o.forEach(e=>{const t=c[e.group];l.hasOwnProperty(t)&&l[t].push(e),e.filterString=(`${e.annotation}\n${e.shortcodes.join("\n")}}\n${e.emoticon||""}\n`+e.unicode.split("").join("\n")).toLowerCase(),r.set(u(e.unicode),e),e.emoticon&&i.set(e.emoticon,e),e.shortcodes&&e.shortcodes.forEach(t=>{a.set(t,e)})});const d=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(663);t.isTag=function(e){return o.isTag(e)},t.isCDATA=function(e){return"cdata"===e.type},t.isText=function(e){return"text"===e.type},t.isComment=function(e){return"comment"===e.type},t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")}},function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function r(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var n=e,o=r(e);if(o){if(!o.path)return e;n=o.path}for(var a,s=t.isAbsolute(n),c=n.split(/\/+/),l=0,u=c.length-1;u>=0;u--)"."===(a=c[u])?c.splice(u,1):".."===a?l++:l>0&&(""===a?(c.splice(u+1,l),l=0):(c.splice(u,2),l--));return""===(n=c.join("/"))&&(n=s?"/":"."),o?(o.path=n,i(o)):n}function s(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),s=r(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),i(n);if(n||t.match(o))return t;if(s&&!s.host&&!s.path)return s.host=t,i(s);var c="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,i(s)):c}t.urlParse=r,t.urlGenerate=i,t.normalize=a,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var o=e.lastIndexOf("/");if(o<0)return t;if((e=e.slice(0,o)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?l:function(e){return u(e)?"$"+e:e},t.fromSetString=c?l:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var o=d(e.source,t.source);return 0!==o||0!==(o=e.originalLine-t.originalLine)||0!==(o=e.originalColumn-t.originalColumn)||n||0!==(o=e.generatedColumn-t.generatedColumn)||0!==(o=e.generatedLine-t.generatedLine)?o:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var o=e.generatedLine-t.generatedLine;return 0!==o||0!==(o=e.generatedColumn-t.generatedColumn)||n||0!==(o=d(e.source,t.source))||0!==(o=e.originalLine-t.originalLine)||0!==(o=e.originalColumn-t.originalColumn)?o:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var o=r(n);if(!o)throw new Error("sourceMapURL could not be parsed");if(o.path){var c=o.path.lastIndexOf("/");c>=0&&(o.path=o.path.substring(0,c+1))}t=s(i(o),t)}return a(t)}},function(e,t,n){"use strict";let o,r,i,{isClean:a}=n(467),s=n(466),c=n(470),l=n(357);class u extends l{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,n,o=this.getIterator();for(;this.indexes[o]<this.proxyOf.nodes.length&&(t=this.indexes[o],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[o]+=1;return delete this.indexes[o],n}walk(e){return this.each((t,n)=>{let o;try{o=e(t,n)}catch(e){throw t.addToError(e)}return!1!==o&&t.walk&&(o=t.walk(e)),o})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,o)=>{if("decl"===n.type&&e.test(n.prop))return t(n,o)}):this.walk((n,o)=>{if("decl"===n.type&&n.prop===e)return t(n,o)}):(t=e,this.walk((e,n)=>{if("decl"===e.type)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,o)=>{if("rule"===n.type&&e.test(n.selector))return t(n,o)}):this.walk((n,o)=>{if("rule"===n.type&&n.selector===e)return t(n,o)}):(t=e,this.walk((e,n)=>{if("rule"===e.type)return t(e,n)}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,o)=>{if("atrule"===n.type&&e.test(n.name))return t(n,o)}):this.walk((n,o)=>{if("atrule"===n.type&&n.name===e)return t(n,o)}):(t=e,this.walk((e,n)=>{if("atrule"===e.type)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if("comment"===t.type)return e(t,n)})}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let n,o=0===(e=this.index(e))&&"prepend",r=this.normalize(t,this.proxyOf.nodes[e],o).reverse();for(let t of r)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)n=this.indexes[t],e<=n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let n,o=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of o)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)n=this.indexes[t],e<n&&(this.indexes[t]=n+o.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(o=>{t.props&&!t.props.includes(o.prop)||t.fast&&!o.value.includes(t.fast)||(o.value=o.value.replace(e,n))}),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if("string"==typeof e)e=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(o(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new s(e)]}else if(e.selector)e=[new r(e)];else if(e.name)e=[new i(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new c(e)]}return e.map(e=>("function"!=typeof e.markDirty&&function e(t){"atrule"===t.type?Object.setPrototypeOf(t,i.prototype):"rule"===t.type?Object.setPrototypeOf(t,r.prototype):"decl"===t.type?Object.setPrototypeOf(t,s.prototype):"comment"===t.type&&Object.setPrototypeOf(t,c.prototype),t.nodes&&t.nodes.forEach(t=>{e(t)})}(e),e.parent&&e.parent.removeChild(e),e[a]&&function e(t){if(t[a]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e(n)}(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this,e))}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map(e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)):"every"===t||"some"===t?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}u.registerParse=e=>{o=e},u.registerRule=e=>{r=e},u.registerAtRule=e=>{i=e},e.exports=u},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var o=n(96),r=n(92),i=n(86);function a(){return r.a.get().validated_server_config.isUrl}function s(){const e=a();i.a.get().setAccountData("m.identity_server",{base_url:e})}async function c(e){let t;try{t=await i.a.get().getTerms(o.m.IS,e)}catch(e){if(console.error(e),"rejected"!==e.cors&&404!==e.httpStatus)throw e;t=null}return t&&t.policies&&Object.keys(t.policies).length>0}function l(){const e=i.a.get().getAccountData("m.identity_server");return e&&e.getContent()&&e.getContent().base_url}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return d}));var o=n(90),r=n.n(o),i=n(86),a=n(85),s=n(89);class c extends Error{}class l{constructor(e,t,n){this.serviceType=e,this.baseUrl=t,this.accessToken=n}}async function u(e,t=d){const n=e.map(e=>i.a.get().getTerms(e.serviceType,e.baseUrl)),o=(await Promise.all(n)).map((t,n)=>({service:e[n],policies:t.policies})),r=await i.a.get().getAccountData("m.accepted_terms");let a;a=r&&r.getContent()&&r.getContent().accepted?new Set(r.getContent().accepted):new Set;const s=[];for(const{service:e,policies:t}of o){const n={};for(const[e,o]of Object.entries(t)){let t=!1;for(const e of Object.keys(o))if("version"!==e&&a.has(o[e].url)){t=!0;break}t||(n[e]=o)}Object.keys(n).length>0&&s.push({service:e,policies:n})}const c=a.size;if(s.length>0){const e=await t(s,[...a]);console.log("User has agreed to URLs",e),e.forEach(e=>a.add(e))}else console.log("User has already agreed to all required policies");if(a.size!==c){const e={accepted:Array.from(a)};await i.a.get().setAccountData("m.accepted_terms",e)}const l=o.map(e=>{const t=Array.from(a).filter(t=>{for(const n of Object.values(e.policies))for(const e of Object.keys(n))if("version"!==e&&n[e].url===t)return!0;return!1});return 0===t.length?Promise.resolve():i.a.get().agreeToTerms(e.service.serviceType,e.service.baseUrl,e.service.accessToken,t)});return Promise.all(l)}function d(e,t,n){return new Promise((o,i)=>{console.log("Terms that need agreement",e);const l=a.getComponent("views.dialogs.TermsDialog");s.a.createTrackedDialog("Terms of Service","",l,{policiesAndServicePairs:e,agreedUrls:t,onFinished:(e,t)=>{e?o(t):i(new c)}},r()("mx_TermsDialog",n))})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s}));var o=n(86);function r(){const e=o.a.get().getClientWellKnown();return e&&e["io.element.e2ee"]?e["io.element.e2ee"]:e&&e["im.vector.riot.e2ee"]?e["im.vector.riot.e2ee"]:null}function i(){const e=r();return e&&!0===e.secure_backup_required}let a;function s(){const e=r();return e&&e.secure_backup_setup_methods&&e.secure_backup_setup_methods.length&&(e.secure_backup_setup_methods.includes(a.Key)||e.secure_backup_setup_methods.includes(a.Passphrase))?e.secure_backup_setup_methods:[a.Key,a.Passphrase]}!function(e){e.Key="key",e.Passphrase="passphrase"}(a||(a={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignRef=function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}},function(e,t,n){"use strict";(function(t){!function(t){var n=/^(b|B)$/,o={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},r={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[],a=0,s=void 0,c=void 0,l=void 0,u=void 0,d=void 0,h=void 0,p=void 0,m=void 0,g=void 0,f=void 0,_=void 0,b=void 0,v=void 0,E=void 0,y=void 0;if(isNaN(e))throw new Error("Invalid arguments");return l=!0===t.bits,_=!0===t.unix,c=t.base||2,f=void 0!==t.round?t.round:_?1:2,b=void 0!==t.separator&&t.separator||"",v=void 0!==t.spacer?t.spacer:_?"":" ",y=t.symbols||t.suffixes||{},E=2===c&&t.standard||"jedec",g=t.output||"string",d=!0===t.fullform,h=t.fullforms instanceof Array?t.fullforms:[],s=void 0!==t.exponent?t.exponent:-1,u=c>2?1e3:1024,(p=(m=Number(e))<0)&&(m=-m),(-1===s||isNaN(s))&&(s=Math.floor(Math.log(m)/Math.log(u)))<0&&(s=0),s>8&&(s=8),0===m?(i[0]=0,i[1]=_?"":o[E][l?"bits":"bytes"][s]):(a=m/(2===c?Math.pow(2,10*s):Math.pow(1e3,s)),l&&(a*=8)>=u&&s<8&&(a/=u,s++),i[0]=Number(a.toFixed(s>0?f:0)),i[1]=10===c&&1===s?l?"kb":"kB":o[E][l?"bits":"bytes"][s],_&&(i[1]="jedec"===E?i[1].charAt(0):s>0?i[1].replace(/B$/,""):i[1],n.test(i[1])&&(i[0]=Math.floor(i[0]),i[1]=""))),p&&(i[0]=-i[0]),i[1]=y[i[1]]||i[1],"array"===g?i:"exponent"===g?s:"object"===g?{value:i[0],suffix:i[1],symbol:i[1]}:(d&&(i[1]=h[s]?h[s]:r[E][s]+(l?"bit":"byte")+(1===i[0]?"":"s")),b.length>0&&(i[0]=i[0].toString().replace(".",b)),i.join(v))}i.partial=function(e){return function(t){return i(t,e)}},e.exports=i}("undefined"!=typeof window&&window)}).call(this,n(5))},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(82),c=n.n(s),l=n(81),u=n.n(l),d=n(90),h=n.n(d),p=n(146),m=n(88),g=n(91),f=n(245);class _ extends u.a.PureComponent{constructor(e){super(e),c()(this,"countWatcherRef",void 0),c()(this,"countPreferenceChanged",()=>{this.setState({showCounts:m.a.getValue("Notifications.alwaysShowBadgeCounts",this.roomId)})}),c()(this,"onNotificationUpdate",()=>{this.forceUpdate()}),this.props.notification.on(f.a,this.onNotificationUpdate),this.state={showCounts:m.a.getValue("Notifications.alwaysShowBadgeCounts",this.roomId)},this.countWatcherRef=m.a.watchSetting("Notifications.alwaysShowBadgeCounts",this.roomId,this.countPreferenceChanged)}get roomId(){return this.props.roomId||null}componentWillUnmount(){m.a.unwatchSetting(this.countWatcherRef),this.props.notification.off(f.a,this.onNotificationUpdate)}componentDidUpdate(e){e.notification&&e.notification.off(f.a,this.onNotificationUpdate),this.props.notification.on(f.a,this.onNotificationUpdate)}render(){const e=this.props,{notification:t,forceCount:n,roomId:o,onClick:i}=e,s=a()(e,["notification","forceCount","roomId","onClick"]);if(t.isIdle)return null;let c=!(t.symbol||t.count>0)||!t.hasUnreadCount;if(n&&(c=!1,!t.hasUnreadCount))return null;let l=t.symbol||Object(p.c)(t.count);c&&(l="");const d=h()({mx_NotificationBadge:!0,mx_NotificationBadge_visible:!!c||t.hasUnreadCount,mx_NotificationBadge_highlighted:t.hasMentions,mx_NotificationBadge_dot:c,mx_NotificationBadge_2char:l.length>0&&l.length<3,mx_NotificationBadge_3char:l.length>2});return i?u.a.createElement(g.a,r()({},s,{className:d,onClick:i}),u.a.createElement("span",{className:"mx_NotificationBadge_count"},l)):u.a.createElement("div",{className:d},u.a.createElement("span",{className:"mx_NotificationBadge_count"},l))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(85);class u extends a.a.Component{constructor(){super(),r()(this,"onMouseOver",()=>{this.setState({hover:!0})}),r()(this,"onMouseLeave",()=>{this.setState({hover:!1})}),this.state={hover:!1}}render(){const e=l.getComponent("elements.Tooltip");return a.a.createElement("span",{onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave,className:this.props.class},this.props.children,this.state.hover&&a.a.createElement(e,{label:this.props.tooltip,tooltipClassName:this.props.tooltipClass,className:"mx_TextWithTooltip_tooltip"}))}}r()(u,"propTypes",{class:c.a.string,tooltipClass:c.a.string,tooltip:c.a.node.isRequired})},function(e,t,n){"use strict";var o=n(6),r=n.n(o);n(133);class i extends r.a{constructor(){super(),this._roomWidgetEcho={}}getEchoedRoomWidgets(e,t){const n=[],o=Object.assign({},this._roomWidgetEcho[e]);for(const e of t){const t=e.getStateKey();o[t]&&0===Object.keys(o[t]).length||n.push(e),delete o[t]}return n}roomHasPendingWidgetsOfType(e,t,n){const o=Object.assign({},this._roomWidgetEcho[e]);for(const e of t){delete o[e.getStateKey()]}return void 0===n?Object.keys(o).length>0:Object.values(o).some(e=>n.matches(e.type))}roomHasPendingWidgets(e,t){return this.roomHasPendingWidgetsOfType(e,t)}setRoomWidgetEcho(e,t,n){void 0===this._roomWidgetEcho[e]&&(this._roomWidgetEcho[e]={}),this._roomWidgetEcho[e][t]=n,this.emit("update",e,t)}removeRoomWidgetEcho(e,t){delete this._roomWidgetEcho[e][t],0===Object.keys(this._roomWidgetEcho[e]).length&&delete this._roomWidgetEcho[e],this.emit("update",e,t)}}let a=null;a||(a=new i),t.a=a},function(e,t,n){"use strict";(function(e){n.d(t,"h",(function(){return F})),n.d(t,"b",(function(){return M})),n.d(t,"a",(function(){return P})),n.d(t,"d",(function(){return L})),n.d(t,"c",(function(){return U})),n.d(t,"k",(function(){return G})),n.d(t,"e",(function(){return q})),n.d(t,"i",(function(){return W})),n.d(t,"l",(function(){return Y})),n.d(t,"g",(function(){return $})),n.d(t,"f",(function(){return Q})),n.d(t,"j",(function(){return J})),n.d(t,"m",(function(){return ee}));var o=n(96),r=n(202),i=n(267),a=n(86),s=n(248),c=n(213),l=n(714),u=n(110),d=n(249),h=n(483),p=n(1297),m=n(87),g=n(123),f=n(89),_=n(85),b=n(247),v=n(104),E=n(367),y=n(368),S=n(88),T=n(716),w=n(134),C=n(160),x=n(484),O=n(1618),k=n(479),R=n(254),A=n(727),I=n(103),D=n(147),N=n(1301);async function F(e={}){try{let t=e.enableGuest||!1;const n=e.guestHsUrl,r=e.guestIsUrl,a=e.fragmentQueryParams||{},s=e.defaultDeviceDisplayName;if(t&&!n&&(console.warn("Cannot enable guest access: can't determine HS URL to use"),t=!1),t&&a.guest_user_id&&a.guest_access_token)return console.log("Using guest access credentials"),H({userId:a.guest_user_id,accessToken:a.guest_access_token,homeserverUrl:n,identityServerUrl:r,guest:!0},!0).then(()=>!0);return!!await async function(e){const t=null==e?void 0:e.ignoreGuest;if(!localStorage)return!1;const{hsUrl:n,isUrl:o,hasAccessToken:r,accessToken:a,userId:s,deviceId:c,isGuest:l}=await U();r&&!a&&j();if(a&&s&&n){if(t&&l)return console.log("Ignoring stored guest account: "+s),!1;let e=a;const r=await v.a.get().getPickleKey(s,c);if(r){if(console.log("Got pickle key"),"string"!=typeof a){const t=await B(r);e=await Object(i.a)(a,t,"access_token"),t.fill(0)}}else console.log("No pickle key available");const u="true"===sessionStorage.getItem("mx_fresh_login");return sessionStorage.removeItem("mx_fresh_login"),console.log("Restoring session for "+s),await H({userId:s,deviceId:c,accessToken:e,homeserverUrl:n,identityServerUrl:o,guest:l,pickleKey:r,freshLogin:u},!1),!0}return console.log("No previous session found."),!1}({ignoreGuest:Boolean(e.ignoreGuest)})||!!t&&function(e,t,n){console.log("Doing guest login on "+e);return o.q.createClient({baseUrl:e}).registerGuest({body:{initial_device_display_name:n}}).then(n=>(console.log("Registered as guest: "+n.user_id),H({userId:n.user_id,deviceId:n.device_id,accessToken:n.access_token,homeserverUrl:e,identityServerUrl:t,guest:!0},!0).then(()=>!0)),e=>(console.error("Failed to register as guest",e),!1))}(n,r,s)}catch(e){return!(e instanceof V)&&async function(e){console.error("Unable to load session",e);const t=_.getComponent("views.dialogs.SessionRestoreErrorDialog"),n=f.a.createTrackedDialog("Session Restore Error","",t,{error:e.message}),[o]=await n.finished;if(o)return await Z(),!1;return F()}(e)}}async function M(){const{hsUrl:e,userId:t,hasAccessToken:n,isGuest:o}=await U();return e&&t&&n?[t,o]:[null,null]}function P(e,t){if(!e.loginToken)return Promise.resolve(!1);const n=localStorage.getItem(R.a),o=localStorage.getItem(R.b);return n?Object(E.b)(n,o,"m.login.token",{token:e.loginToken,initial_device_display_name:t}).then((function(e){return console.log("Logged in with token"),Z().then(async()=>(await z(e),sessionStorage.setItem("mx_fresh_login",String(!0)),!0))})).catch(e=>(console.error("Failed to log in with login token: "+e+" "+e.data),!1)):(console.warn("Cannot log in with token: can't determine HS URL to use"),Promise.resolve(!1))}function L(e){if(e.reason===r.b.TOGGLED_LAZY_LOADING)return Promise.resolve().then(()=>{if(e.value){const e=_.getComponent("views.dialogs.LazyLoadingResyncDialog");return new Promise(t=>{f.a.createDialog(e,{onFinished:t})})}{const e=_.getComponent("views.dialogs.LazyLoadingDisabledDialog");return new Promise(t=>{f.a.createDialog(e,{onFinished:t,host:window.location.host})})}}).then(()=>a.a.get().store.deleteAllData()).then(()=>{v.a.get().reload()})}async function U(){const e=localStorage.getItem("mx_hs_url"),t=localStorage.getItem("mx_is_url");let n;try{n=await y.c("account","mx_access_token")}catch(e){}if(!n&&(n=localStorage.getItem("mx_access_token"),n))try{await y.d("account","mx_access_token",n),localStorage.removeItem("mx_access_token")}catch(e){}const o="true"===localStorage.getItem("mx_has_access_token")||!!n,r=localStorage.getItem("mx_user_id"),i=localStorage.getItem("mx_device_id");let a;return a=null!==localStorage.getItem("mx_is_guest")?"true"===localStorage.getItem("mx_is_guest"):"true"===localStorage.getItem("matrix-is-guest"),{hsUrl:e,isUrl:t,hasAccessToken:o,accessToken:n,userId:r,deviceId:i,isGuest:a}}async function B(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);const n=await window.crypto.subtle.importKey("raw",t,"HKDF",!1,["deriveBits"]);return t.fill(0),new Uint8Array(await window.crypto.subtle.deriveBits({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(32),info:new Uint8Array(0)},n,256))}async function j(){if(await function(){const e=_.getComponent("views.dialogs.StorageEvictedDialog");return new Promise(t=>{f.a.createTrackedDialog("Storage evicted","",e,{onFinished:t})})}())throw await Z(),new V("Aborting login in progress because of storage inconsistency")}async function G(e){e.freshLogin=!0,ee();const t=e.userId&&e.deviceId?await v.a.get().createPickleKey(e.userId,e.deviceId):null;return t?console.log("Created pickle key"):console.log("Pickle key not created"),H(Object.assign({},e,{pickleKey:t}),!0)}function q(e){const t=a.a.get().getUserId(),n=a.a.get().getDeviceId();ee(),localStorage.removeItem("mx_soft_logout"),K=!1;const o=e.userId!==t||e.deviceId!==n;return o&&console.warn("Clearing all data: Old session belongs to a different user/session"),H(e,o)}async function H(e,t){e.guest=Boolean(e.guest);const n=$();console.log("setLoggedIn: mxid: "+e.userId+" deviceId: "+e.deviceId+" guest: "+e.guest+" hs: "+e.homeserverUrl+" softLogout: "+n," freshLogin: "+e.freshLogin),m.a.dispatch({action:"on_logging_in"},!0),t&&await Z();const o=await y.a();o.dataInLocalStorage&&o.cryptoInited&&!o.dataInCryptoStore&&await j(),u.a.setLoggedIn(e.guest,e.homeserverUrl),a.a.replaceUsingCreds(e);const r=a.a.get();if(e.freshLogin&&S.a.getValue("feature_dehydration")){const t=await r.rehydrateDevice();t&&(e.deviceId=t),delete e.freshLogin}if(localStorage)try{await z(e),sessionStorage.removeItem("mx_fresh_login")}catch(e){console.warn("Error using local storage: can't persist session!",e)}else console.warn("No local storage available: can't persist session!");return m.a.dispatch({action:"on_logged_in"}),await X(!n),r}class V extends Error{}async function z(e){var t;if(localStorage.setItem("mx_hs_url",e.homeserverUrl),e.identityServerUrl&&localStorage.setItem("mx_is_url",e.identityServerUrl),localStorage.setItem("mx_user_id",e.userId),localStorage.setItem("mx_is_guest",JSON.stringify(e.guest)),e.accessToken?localStorage.setItem("mx_has_access_token","true"):localStorage.deleteItem("mx_has_access_token"),e.pickleKey){let t;try{const n=await B(e.pickleKey);t=await Object(i.b)(e.accessToken,n,"access_token"),n.fill(0)}catch(e){console.warn("Could not encrypt access token",e)}try{await y.d("account","mx_access_token",t||e.accessToken)}catch(t){localStorage.setItem("mx_access_token",e.accessToken)}localStorage.setItem("mx_has_pickle_key",String(!0))}else{try{await y.d("account","mx_access_token",e.accessToken)}catch(t){localStorage.setItem("mx_access_token",e.accessToken)}localStorage.getItem("mx_has_pickle_key")&&console.error("Expected a pickle key, but none provided. Encryption may not work.")}e.deviceId&&localStorage.setItem("mx_device_id",e.deviceId),null===(t=s.a.persistCredentials)||void 0===t||t.call(s.a,e),console.log("Session persisted for "+e.userId)}let K=!1;function W(){if(!a.a.get())return;if(I.a.instance.disabled||I.a.instance.enable(!0),a.a.get().isGuest())return void e(()=>J());K=!0;const t=a.a.get();v.a.get().destroyPickleKey(t.getUserId(),t.getDeviceId()),t.logout().then(J,e=>{console.log("Failed to call logout API: token will not be invalidated"),J()})}function Y(){a.a.get()&&(localStorage.setItem("mx_soft_logout","true"),console.log("Soft logout initiated"),K=!0,m.a.dispatch({action:"on_client_not_viable"}),ee(!1))}function $(){return"true"===localStorage.getItem("mx_soft_logout")}function Q(){return K}async function X(e=!0){console.log("Lifecycle: Starting MatrixClient"),m.a.dispatch({action:"will_start_client"},!0),T.a.sharedInstance().reset(),w.a.sharedInstance().reset(),d.default.start(),h.a.sharedInstance().start(),g.a.makeShared().start(),C.a.sharedInstance().startWatching(),b.a.start(),D.b.sharedInstance().start(),x.a.sharedInstance().start(),e?(await c.a.init(),await a.a.start()):(console.warn("Caller requested only auxiliary services be started"),await a.a.assign()),O.a.sharedInstance().start(),S.a.getValue("lowBandwidth")||p.a.start(),await k.a.getInstance().start(),m.a.dispatch({action:"client_started"}),$()&&Y()}async function J(){var e;K=!1,m.a.dispatch({action:"on_logged_out"},!0),ee(),await Z({deleteEverything:!0}),null===(e=N.a.onLoggedOutAndStorageCleared)||void 0===e||e.call(N.a)}async function Z(e){if(u.a.disable(),window.localStorage){const t=A.a.instance.getWireInvites();window.localStorage.clear();try{await y.b("account","mx_access_token")}catch(e){}(null==e?void 0:e.deleteEverything)||t.forEach(e=>{const t=e.roomId;delete e.roomId,A.a.instance.storeInvite(t,e)})}window.sessionStorage&&window.sessionStorage.clear();const t=Object(l.a)({baseUrl:""});await c.a.deleteEventIndex(),await t.clearStores()}function ee(e=!0){d.default.stop(),D.b.sharedInstance().stop(),h.a.sharedInstance().stop(),T.a.sharedInstance().reset(),p.a.stop(),b.a.stop(),C.a.sharedInstance().stopWatching(),x.a.sharedInstance().stop(),O.a.sharedInstance().stop(),g.a.shared()&&g.a.shared().stop(),c.a.stop();const t=a.a.get();t&&(t.stopClient(),t.removeAllListeners(),e&&(a.a.unset(),c.a.unset()))}}).call(this,n(149).setImmediate)},function(e,t,n){"use strict";(function(e){class n{constructor(){this.keyRgb=["rgb(118, 207, 166)","rgb(234, 245, 240)","rgb(211, 239, 225)"],this.keyHex=["#76CFA6","#EAF5F0","#D3EFE1","#FFFFFF","#000000"],this.colors=[this.keyHex[0],this.keyHex[1],this.keyHex[2],this.keyHex[3],this.keyHex[4]],this.currentTint=[void 0,void 0,void 0,void 0,void 0],this.cssFixups=[],this.cssAttrs=["color","backgroundColor","borderColor","borderTopColor","borderBottomColor","borderLeftColor"],this.svgAttrs=["fill","stroke"],this.tintables=[],this.theme=void 0,this.forceTint=!1}registerTintable(e){this.tintables.push(e),e()}getKeyRgb(){return this.keyRgb}tint(e,t,n){}tintSvgWhite(e){this.currentTint[3]=e,e||(e=this.colors[3]),this.colors[3]!==e&&(this.colors[3]=e,this.tintables.forEach((function(e){e()})))}tintSvgBlack(e){this.currentTint[4]=e,e||(e=this.colors[4]),this.colors[4]!==e&&(this.colors[4]=e,this.tintables.forEach((function(e){e()})))}setTheme(e){this.theme=e,document.getElementById("mx_theme_accentColor")&&(this.keyRgb[0]=window.getComputedStyle(document.getElementById("mx_theme_accentColor")).color),document.getElementById("mx_theme_secondaryAccentColor")&&(this.keyRgb[1]=window.getComputedStyle(document.getElementById("mx_theme_secondaryAccentColor")).color),document.getElementById("mx_theme_tertiaryAccentColor")&&(this.keyRgb[2]=window.getComputedStyle(document.getElementById("mx_theme_tertiaryAccentColor")).color),this.calcCssFixups(),this.forceTint=!0,this.tint(this.currentTint[0],this.currentTint[1],this.currentTint[2]),"dark"===e?(this.tintSvgWhite("#2d2d2d"),this.tintSvgBlack("#dddddd")):(this.tintSvgWhite("#ffffff"),this.tintSvgBlack("#000000"))}calcCssFixups(){if(!this.cssFixups[this.theme]){0,this.cssFixups[this.theme]=[];for(let e=0;e<document.styleSheets.length;e++){const t=document.styleSheets[e];try{if(!t)continue;if(!t.href||!t.href.match(new RegExp("/theme-"+this.theme+".css$")))continue;if(t.disabled)continue;if(!t.cssRules)continue;0;for(let e=0;e<t.cssRules.length;e++){const n=t.cssRules[e];if(n.style&&(!n.selectorText||!n.selectorText.match(/#mx_theme/)))for(let e=0;e<this.cssAttrs.length;e++){const t=this.cssAttrs[e];for(let e=0;e<this.keyRgb.length;e++)n.style[t]===this.keyRgb[e]&&this.cssFixups[this.theme].push({style:n.style,attr:t,index:e})}}}catch(e){console.log("Failed to calculate CSS fixups for a stylesheet: "+t.href,e)}}0}}applyCssFixups(){for(let e=0;e<this.cssFixups[this.theme].length;e++){const t=this.cssFixups[this.theme][e];try{t.style[t.attr]=this.colors[t.index]}catch(e){console.error("Failed to apply cssFixup in Tinter! ",e.name)}}}calcSvgFixups(e){const t=[];for(let n=0;n<e.length;n++){let o;try{o=e[n].contentDocument}catch(t){let o="Failed to get svg.contentDocument of "+e[n].toString();t.message&&(o+=t.message),t.stack&&(o+=" | stack: "+t.stack),console.error(o)}if(!o)continue;const r=o.getElementsByTagName("*");for(let e=0;e<r.length;e++){const n=r[e];for(let e=0;e<this.svgAttrs.length;e++){const o=this.svgAttrs[e];for(let e=0;e<this.keyHex.length;e++)n.getAttribute(o)&&n.getAttribute(o).toUpperCase()===this.keyHex[e]&&t.push({node:n,attr:o,index:e})}}}return t}applySvgFixups(e){for(let t=0;t<e.length;t++){const n=e[t];n.node.setAttribute(n.attr,this.colors[n.index])}}}void 0===e.singletonTinter&&(e.singletonTinter=new n),t.a=e.singletonTinter}).call(this,n(5))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a}));var o=n(83);function r(e,t,n,r){let i=n[e];void 0===i&&(i=n[""]);const a=e=>t?React.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener"},e):e;return i.includes("<a>")?Object(o.a)(i,{},Object.assign({a:a},r)):Object(o.a)(i,{},r)}function i(e){if("M_TOO_LARGE"===e.errcode)return Object(o.a)("The message you are trying to send is too large.")}function a(e){if("M_RESOURCE_LIMIT_EXCEEDED"===e.errcode){const t=r(e.data.limit_type,e.data.admin_contact,{monthly_active_user:Object(o.b)("This homeserver has hit its Monthly Active User limit."),"":Object(o.b)("This homeserver has exceeded one of its resource limits.")}),n=r(e.data.limit_type,e.data.admin_contact,{"":Object(o.b)("Please <a>contact your service administrator</a> to continue using the service.")});return React.createElement("div",null,React.createElement("div",null,t),React.createElement("div",null,n))}return React.createElement("div",null,Object(o.a)("Unable to connect to Homeserver. Retrying..."))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(85),u=n(83),d=n(90),h=n.n(d);class p extends a.a.Component{constructor(...e){super(...e),r()(this,"onFinished",()=>{this.props.onFinished()})}render(){const e=l.getComponent("views.dialogs.BaseDialog"),t=l.getComponent("views.elements.DialogButtons");return a.a.createElement(e,{className:"mx_InfoDialog",onFinished:this.props.onFinished,title:this.props.title,contentId:"mx_Dialog_content",hasCancel:this.props.hasCloseButton,onKeyDown:this.props.onKeyDown,fixedWidth:this.props.fixedWidth},a.a.createElement("div",{className:h()("mx_Dialog_content",this.props.className),id:"mx_Dialog_content"},this.props.description),a.a.createElement(t,{primaryButton:this.props.button||Object(u.a)("OK"),onPrimaryButtonClick:this.onFinished,hasCancel:!1}))}}r()(p,"propTypes",{className:c.a.string,title:c.a.string,description:c.a.node,button:c.a.string,onFinished:c.a.func,hasCloseButton:c.a.bool,onKeyDown:c.a.func,fixedWidth:c.a.bool}),r()(p,"defaultProps",{title:"",description:"",hasCloseButton:!1})},function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var o=n(94),r=n.n(o),i=n(82),a=n.n(i),s=n(107),c=n.n(s),l=n(81),u=n.n(l),d=n(84),h=n.n(d),p=n(86),m=n(91),g=n(83),f=n(743),_=n(744),b=n(112),v=n(87),E=n(247),y=n(90),S=n.n(y),T=n(88),w=n(100),C=n(495),x=n(133),O=n(95),k=n(802),R=n(13),A=n(3),I=n(372),D=n(496);class N extends u.a.Component{constructor(e){super(e),a()(this,"hasPermissionToLoad",e=>{if(this._usingLocalWidget())return!0;if(!e.room)return!0;const t=T.a.getValue("allowedWidgets",e.room.roomId);return void 0===t[e.app.eventId]?e.userId===e.creatorUserId:!!t[e.app.eventId]}),a()(this,"onAllowedWidgetsChange",()=>{const e=this.hasPermissionToLoad(this.props);this.state.hasPermissionToLoad&&!e&&(E.a.destroyPersistentWidget(this.props.app.id),C.a.destroyElement(this._persistKey),this._sgWidget.stop()),this.setState({hasPermissionToLoad:e})}),a()(this,"_iframeRefChange",e=>{this.iframe=e,e?this._sgWidget.start(e):this._resetWidget(this.props)}),a()(this,"_onWidgetPrepared",()=>{this.setState({loading:!1})}),a()(this,"_onWidgetReady",()=>{x.a.JITSI.matches(this.props.app.type)&&this._sgWidget.widgetApi.transport.send(R.a.ClientReady,{})}),a()(this,"_onAction",e=>{if(e.widgetId===this.props.app.id)switch(e.action){case"m.sticker":this._sgWidget.widgetApi.hasCapability(A.MatrixCapabilities.StickerSending)?v.a.dispatch({action:"post_sticker_message",data:e.data}):console.warn("Ignoring sticker message. Invalid capability")}}),a()(this,"_grantWidgetPermission",()=>{const e=this.props.room.roomId;console.info("Granting permission for widget to load: "+this.props.app.eventId);const t=T.a.getValue("allowedWidgets",e);t[this.props.app.eventId]=!0,T.a.setValue("allowedWidgets",e,O.a.ROOM_ACCOUNT,t).then(()=>{this.setState({hasPermissionToLoad:!0}),this._startWidget()}).catch(e=>{console.error(e)})}),a()(this,"_onPopoutWidgetClick",()=>{x.a.JITSI.matches(this.props.app.type)&&this._endWidgetActions().then(()=>{this.iframe&&(this.iframe.src=this._sgWidget.embedUrl,this.setState({}))}),Object.assign(document.createElement("a"),{target:"_blank",href:this._sgWidget.popoutUrl,rel:"noreferrer noopener"}).click()}),a()(this,"_onContextMenuClick",()=>{this.setState({menuDisplayed:!0})}),a()(this,"_closeContextMenu",()=>{this.setState({menuDisplayed:!1})}),this._persistKey=Object(C.b)(this.props.app.id),this._sgWidget=new k.b(this.props),this._sgWidget.on("preparing",this._onWidgetPrepared),this._sgWidget.on("ready",this._onWidgetReady),this.iframe=null,this.state=this._getNewState(e),this._contextMenuButton=Object(l.createRef)(),this._allowedWidgetsWatchRef=T.a.watchSetting("allowedWidgets",null,this.onAllowedWidgetsChange)}_getNewState(e){return{initialising:!0,loading:this.props.waitForIframeLoad&&!C.a.isMounted(this._persistKey),hasPermissionToLoad:this.hasPermissionToLoad(e),error:null,widgetPageTitle:e.widgetPageTitle,menuDisplayed:!1}}isMixedContent(){const e=window.location.protocol,t=c.a.parse(this.props.app.url).protocol;return"https:"===e&&"https:"!==t&&(console.warn("Refusing to load mixed-content app:",e,t,window.location,this.props.app.url),!0)}componentDidMount(){this.state.hasPermissionToLoad&&this._startWidget(),this.dispatcherRef=v.a.register(this._onAction)}componentWillUnmount(){this.dispatcherRef&&v.a.unregister(this.dispatcherRef),E.a.getWidgetPersistence(this.props.app.id)||(E.a.destroyPersistentWidget(this.props.app.id),C.a.destroyElement(this._persistKey)),this._sgWidget&&this._sgWidget.stop(),T.a.unwatchSetting(this._allowedWidgetsWatchRef)}_resetWidget(e){this._sgWidget&&this._sgWidget.stop(),this._sgWidget=new k.b(e),this._sgWidget.on("preparing",this._onWidgetPrepared),this._sgWidget.on("ready",this._onWidgetReady),this._startWidget()}_startWidget(){this._sgWidget.prepare().then(()=>{this.setState({initialising:!1})})}UNSAFE_componentWillReceiveProps(e){e.app.url!==this.props.app.url&&(this._getNewState(e),this.state.hasPermissionToLoad&&this._resetWidget(e)),e.widgetPageTitle!==this.props.widgetPageTitle&&this.setState({widgetPageTitle:e.widgetPageTitle})}async _endWidgetActions(){this.iframe&&(this.iframe.src="about:blank"),x.a.JITSI.matches(this.props.app.type)&&v.a.dispatch({action:"hangup_conference"}),C.a.destroyElement(this._persistKey),this._sgWidget.stop({forceDestroy:!0})}formatAppTileName(){let e="No name";return this.props.app.name&&this.props.app.name.trim()&&(e=this.props.app.name.trim()),e}_usingLocalWidget(){return x.a.JITSI.matches(this.props.app.type)}_getTileTitle(){const e=this.formatAppTileName(),t=u.a.createElement("span",null," - ");let n="";return this.state.widgetPageTitle&&this.state.widgetPageTitle!==this.formatAppTileName()&&(n=this.state.widgetPageTitle),u.a.createElement("span",null,u.a.createElement(D.a,{app:this.props.app}),u.a.createElement("b",null,e),u.a.createElement("span",null,n?t:"",n))}render(){let e;const t="mx_AppTileBody"+(this.props.miniMode?"_mini ":" "),n=u.a.createElement("div",{className:"mx_AppLoading_spinner_fadeIn"},u.a.createElement(b.a,{message:Object(g.a)("Loading...")}));if(this.state.hasPermissionToLoad)this.state.initialising?e=u.a.createElement("div",{className:t+(this.state.loading?"mx_AppLoading":"")},n):this.isMixedContent()?e=u.a.createElement("div",{className:t},u.a.createElement(_.a,{errorMsg:"Error - Mixed content"})):(e=u.a.createElement("div",{className:t+(this.state.loading?"mx_AppLoading":"")},this.state.loading&&n,u.a.createElement("iframe",{allow:"microphone; camera; encrypted-media; autoplay; display-capture;",ref:this._iframeRefChange,src:this._sgWidget.embedUrl,allowFullScreen:!0,sandbox:"allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-presentation"})),this.props.userWidget||(e=u.a.createElement("div",{className:"mx_AppTile_persistedWrapper"},u.a.createElement(C.a,{persistKey:this._persistKey},e))));else{const n=p.a.get().isRoomEncrypted(this.props.room.roomId);e=u.a.createElement("div",{className:t},u.a.createElement(f.a,{roomId:this.props.room.roomId,creatorUserId:this.props.creatorUserId,url:this._sgWidget.embedUrl,isRoomEncrypted:n,onPermissionGranted:this._grantWidgetPermission}))}let o,i;return o=this.props.miniMode?{mx_AppTile_mini:!0}:this.props.fullWidth?{mx_AppTileFullWidth:!0}:{mx_AppTile:!0},o=S()(o),this.state.menuDisplayed&&(i=u.a.createElement(I.a,r()({},Object(w.k)(this._contextMenuButton.current.getBoundingClientRect(),null),{app:this.props.app,onFinished:this._closeContextMenu,showUnpin:!this.props.userWidget,userWidget:this.props.userWidget}))),u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:o,id:this.props.app.id},this.props.showMenubar&&u.a.createElement("div",{className:"mx_AppTileMenuBar"},u.a.createElement("span",{className:"mx_AppTileMenuBarTitle",style:{pointerEvents:!!this.props.handleMinimisePointerEvents&&"all"}},this.props.showTitle&&this._getTileTitle()),u.a.createElement("span",{className:"mx_AppTileMenuBarWidgets"},this.props.showPopout&&u.a.createElement(m.a,{className:"mx_AppTileMenuBar_iconButton mx_AppTileMenuBar_iconButton_popout",title:Object(g.a)("Popout widget"),onClick:this._onPopoutWidgetClick}),u.a.createElement(w.c,{className:"mx_AppTileMenuBar_iconButton mx_AppTileMenuBar_iconButton_menu",label:Object(g.a)("Options"),isExpanded:this.state.menuDisplayed,inputRef:this._contextMenuButton,onClick:this._onContextMenuClick}))),e),i)}}N.displayName="AppTile",N.propTypes={app:h.a.object.isRequired,room:h.a.object,fullWidth:h.a.bool,miniMode:h.a.bool,userId:h.a.string.isRequired,creatorUserId:h.a.string,waitForIframeLoad:h.a.bool,showMenubar:h.a.bool,onEditClick:h.a.func,onDeleteClick:h.a.func,onMinimiseClick:h.a.func,showTitle:h.a.bool,handleMinimisePointerEvents:h.a.bool,showPopout:h.a.bool,userWidget:h.a.bool},N.defaultProps={waitForIframeLoad:!0,showMenubar:!0,showTitle:!0,showPopout:!0,handleMinimisePointerEvents:!1,userWidget:!1,miniMode:!1}},function(e,t,n){"use strict";n.r(t),n.d(t,"containsEmoji",(function(){return o}));const o=(e,t)=>t.some(t=>e.body&&e.body.includes(t))},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(87),c=n(86),l=n(85),u=n(83),d=n(89),h=n(116),p=n(753),m=n.n(p),g=n(1332),f=n.n(g),_=n(112),b=(n(1334),n(93)),v=n(103);const E=[0,0,22,37,0,0,22,37,1];class y extends Error{}function S(e,t,n,o){return new Promise(r=>{let i=t,a=n;a>600&&(i=Math.floor(i*(600/a)),a=600),i>800&&(a=Math.floor(a*(800/i)),i=800);const s=document.createElement("canvas");s.width=i,s.height=a,s.getContext("2d").drawImage(e,0,0,i,a),s.toBlob((function(e){r({info:{thumbnail_info:{w:i,h:a,mimetype:e.type,size:e.size},w:t,h:n},thumbnail:e})}),o)})}function T(e,t,n){let o,r="image/png";return"image/jpeg"===n.type&&(r="image/jpeg"),async function(e){const t=document.createElement("img"),n=URL.createObjectURL(e),o=new Promise((e,o)=>{t.onload=function(){URL.revokeObjectURL(n),e(t)},t.onerror=function(e){o(e)}});let r;if(t.src=n,"image/png"===e.type){r=C(e).then(e=>{const t=new Uint8Array(e),n=f()(t);for(const e of n)if("pHYs"===e.name){if(e.data.byteLength!==E.length)return;return e.data.every((e,t)=>e===E[t])}return!1})}const[i]=await Promise.all([r,o]);return{width:i?t.width>>1:t.width,height:i?t.height>>1:t.height,img:t}}(n).then((function(e){return S(e.img,e.width,e.height,r)})).then((function(n){return o=n.info,x(e,t,n.thumbnail)})).then((function(e){return o.thumbnail_url=e.url,o.thumbnail_file=e.file,o}))}function w(e,t,n){let o;return function(e){return new Promise((t,n)=>{const o=document.createElement("video"),r=new FileReader;r.onload=function(e){o.src=e.target.result,o.onloadeddata=function(){t(o)},o.onerror=function(e){n(e)}},r.onerror=function(e){n(e)},r.readAsDataURL(e)})}(n).then((function(e){return S(e,e.videoWidth,e.videoHeight,"image/jpeg")})).then((function(n){return o=n.info,x(e,t,n.thumbnail)})).then((function(e){return o.thumbnail_url=e.url,o.thumbnail_file=e.file,o}))}function C(e){return new Promise((t,n)=>{const o=new FileReader;o.onload=function(e){t(e.target.result)},o.onerror=function(e){n(e)},o.readAsArrayBuffer(e)})}function x(e,t,n,o){let r=!1;if(e.isRoomEncrypted(t)){let t,i;const a=C(n).then((function(e){if(r)throw new y;return m.a.encryptAttachment(e)})).then((function(n){if(r)throw new y;i=n.info;const a=new Blob([n.data]);return t=e.uploadContent(a,{progressHandler:o,includeFilename:!1}),t})).then((function(e){if(r)throw new y;return i.url=e,n.type&&(i.mimetype=n.type),{file:i}}));return a.abort=()=>{r=!0,t&&c.a.get().cancelUpload(t)},a}{const t=e.uploadContent(n,{progressHandler:o}),i=t.then((function(e){if(r)throw new y;return{url:e}}));return i.abort=()=>{r=!0,c.a.get().cancelUpload(t)},i}}class O{constructor(){r()(this,"inprogress",[]),r()(this,"mediaConfig",null)}sendStickerContentToRoom(e,t,n,o,r){const i=v.a.getTimestamp(),a=c.a.get().sendStickerMessage(t,e,n,o).catch(n=>{throw console.warn(`Failed to send content with URL ${e} to room ${t}`,n),n});return v.a.instance.trackSendMessage(i,a,t,!1,!1,{msgtype:"m.sticker"}),a}getUploadLimit(){return null!==this.mediaConfig&&void 0!==this.mediaConfig["m.upload.size"]?this.mediaConfig["m.upload.size"]:null}async sendContentListToRoom(e,t,n){if(n.isGuest())return void s.a.dispatch({action:"require_registration"});if(Boolean(h.a.getQuotingEvent())){const e=l.getComponent("dialogs.QuestionDialog"),{finished:t}=d.a.createTrackedDialog("Upload Reply Warning","",e,{title:Object(u.a)("Replying With Files"),description:a.a.createElement("div",null,Object(u.a)("At this time it is not possible to reply with a file. Would you like to upload this file without replying?")),hasCancelButton:!0,button:Object(u.a)("Continue")}),[n]=await t;if(!n)return}if(!this.mediaConfig){const e=d.a.createDialog(_.a,null,"mx_Dialog_spinner");await this.ensureMediaConfigFetched(),e.close()}const o=[],r=[];for(let t=0;t<e.length;++t)this.isFileSizeAcceptable(e[t])?r.push(e[t]):o.push(e[t]);if(o.length>0){const t=l.getComponent("dialogs.UploadFailureDialog"),{finished:n}=d.a.createTrackedDialog("Upload Failure","",t,{badFiles:o,totalFiles:e.length,contentMessages:this}),[r]=await n;if(!r)return}const i=l.getComponent("dialogs.UploadConfirmDialog");let c=!1,p=Promise.resolve();for(let e=0;e<r.length;++e){const o=r[e];if(!c){const{finished:t}=d.a.createTrackedDialog("Upload Files confirmation","",i,{file:o,currentIndex:e,totalFiles:r.length}),[n,a]=await t;if(!n)break;a&&(c=!0)}p=this.sendContentToRoom(o,t,n,p)}}getCurrentUploads(){return this.inprogress.filter(e=>!e.canceled)}cancelUpload(e){let t;for(let n=0;n<this.inprogress.length;++n)if(this.inprogress[n].promise===e){t=this.inprogress[n];break}t&&(t.canceled=!0,c.a.get().cancelUpload(t.promise),s.a.dispatch({action:"upload_canceled",upload:t}))}sendContentToRoom(e,t,n,o){const r=v.a.getTimestamp(),i={body:e.name||"Attachment",info:{size:e.size},msgtype:""};e.type&&(i.info.mimetype=e.type);const a=new Promise(o=>{0===e.type.indexOf("image/")?(i.msgtype="m.image",T(n,t,e).then(e=>{Object.assign(i.info,e),o()},e=>{console.error(e),i.msgtype="m.file",o()})):0===e.type.indexOf("audio/")?(i.msgtype="m.audio",o()):0===e.type.indexOf("video/")?(i.msgtype="m.video",w(n,t,e).then(e=>{Object.assign(i.info,e),o()},e=>{i.msgtype="m.file",o()})):(i.msgtype="m.file",o())});a.abort=()=>{c.canceled=!0};const c={fileName:e.name||"Attachment",roomId:t,total:e.size,loaded:0,promise:a};function h(e){c.total=e.total,c.loaded=e.loaded,s.a.dispatch({action:"upload_progress",upload:c})}let p;return this.inprogress.push(c),s.a.dispatch({action:"upload_started"}),s.a.fire(b.a.FocusComposer),a.then((function(){if(c.canceled)throw new y;return c.promise=x(n,t,e,h),c.promise.then((function(e){i.file=e.file,i.url=e.url}))})).then(()=>o).then((function(){if(c.canceled)throw new y;const e=n.sendMessage(t,i);return v.a.instance.trackSendMessage(r,e,t,!1,!1,i),e}),(function(e){if(p=e,!c.canceled){let t=Object(u.a)("The file '%(fileName)s' failed to upload.",{fileName:c.fileName});413===e.http_status&&(t=Object(u.a)("The file '%(fileName)s' exceeds this homeserver's size limit for uploads",{fileName:c.fileName}));const n=l.getComponent("dialogs.ErrorDialog");d.a.createTrackedDialog("Upload failed","",n,{title:Object(u.a)("Upload Failed"),description:t})}})).finally(()=>{for(let e=0;e<this.inprogress.length;++e)if(this.inprogress[e].promise===c.promise){this.inprogress.splice(e,1);break}p?(p&&413===p.http_status&&(this.mediaConfig=null),s.a.dispatch({action:"upload_failed",upload:c,error:p})):(s.a.dispatch({action:"upload_finished",upload:c}),s.a.dispatch({action:"message_sent"}))})}isFileSizeAcceptable(e){return!(null!==this.mediaConfig&&void 0!==this.mediaConfig["m.upload.size"]&&e.size>this.mediaConfig["m.upload.size"])}ensureMediaConfigFetched(){if(null===this.mediaConfig)return console.log("[Media Config] Fetching"),c.a.get().getMediaConfig().then(e=>(console.log("[Media Config] Fetched config:",e),e)).catch(()=>(console.log("[Media Config] Could not fetch config, so not limiting uploads."),{})).then(e=>{this.mediaConfig=e})}static sharedInstance(){return void 0===window.mxContentMessages&&(window.mxContentMessages=new O),window.mxContentMessages}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(82),r=n.n(o),i=n(87),a=n(754),s=n(321),c=n(88),l=n(118),u=n(93),d=n(95);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}const p={showRoomPanel:c.a.getValue("showRightPanelInRoom"),showGroupPanel:c.a.getValue("showRightPanelInGroup"),lastRoomPhase:c.a.getValue("lastRightPanelPhaseForRoom"),lastGroupPhase:c.a.getValue("lastRightPanelPhaseForGroup"),lastRoomPhaseParams:{}},m=[l.b.GroupMemberList,l.b.GroupRoomList,l.b.GroupRoomInfo,l.b.GroupMemberInfo],g=[l.b.RoomMemberInfo,l.b.Room3pidMemberInfo,l.b.EncryptionPanel];class f extends s.Store{constructor(){super(i.a),r()(this,"state",void 0),this.state=p}get isOpenForRoom(){return this.state.showRoomPanel}get isOpenForGroup(){return this.state.showGroupPanel}get roomPanelPhase(){return this.state.lastRoomPhase}get groupPanelPhase(){return this.state.lastGroupPhase}get previousPhase(){return l.a.includes(this.state.previousPhase)?this.state.previousPhase:null}get visibleRoomPanelPhase(){return this.isOpenForRoom?this.roomPanelPhase:null}get visibleGroupPanelPhase(){return this.isOpenForGroup?this.groupPanelPhase:null}get roomPanelPhaseParams(){return this.state.lastRoomPhaseParams||{}}setState(e){this.state=Object.assign(this.state,e),c.a.setValue("showRightPanelInRoom",null,d.a.DEVICE,this.state.showRoomPanel),c.a.setValue("showRightPanelInGroup",null,d.a.DEVICE,this.state.showGroupPanel),l.a.includes(this.state.lastRoomPhase)&&c.a.setValue("lastRightPanelPhaseForRoom",null,d.a.DEVICE,this.state.lastRoomPhase),l.a.includes(this.state.lastGroupPhase)&&c.a.setValue("lastRightPanelPhaseForGroup",null,d.a.DEVICE,this.state.lastGroupPhase),this.__emitChange()}__onDispatch(e){switch(e.action){case"view_room":case"view_group":g.includes(this.state.lastRoomPhase)&&this.setState({lastRoomPhase:l.b.RoomMemberList,lastRoomPhaseParams:{}}),this.state.lastGroupPhase===l.b.GroupMemberInfo&&this.setState({lastGroupPhase:l.b.GroupMemberList});break;case u.a.SetRightPanelPhase:{let t=e.phase,n=e.refireParams;if(t===l.b.RoomMemberInfo&&e.refireParams){const{member:o}=e.refireParams,r=Object(a.b)(o);r&&(t=l.b.EncryptionPanel,n={verificationRequest:r,member:o})}if(!l.b[t])return void console.warn("Tried to switch right panel to unknown phase: "+t);m.includes(t)?t===this.state.lastGroupPhase?this.setState({showGroupPanel:!this.state.showGroupPanel,previousPhase:null}):this.setState({lastGroupPhase:t,showGroupPanel:!0,previousPhase:this.state.lastGroupPhase}):t!==this.state.lastRoomPhase||n?this.setState({lastRoomPhase:t,showRoomPanel:!0,lastRoomPhaseParams:n||{},previousPhase:this.state.lastRoomPhase}):this.setState({showRoomPanel:!this.state.showRoomPanel,previousPhase:null}),i.a.dispatch(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({action:u.a.AfterRightPanelPhaseChange,phase:t},n||{}));break}case u.a.ToggleRightPanel:"room"===e.type?this.setState({showRoomPanel:!this.state.showRoomPanel}):this.setState({showGroupPanel:!this.state.showGroupPanel})}}static getSharedInstance(){return f.instance||(f.instance=new f),f.instance}}r()(f,"instance",void 0),window.mxRightPanelStore=f.getSharedInstance()},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(90),c=n.n(s),l=n(92),u=n(159),d=n(83),h=n(102);class p extends i.PureComponent{constructor(...e){super(...e),r()(this,"validate",Object(u.a)({description:function(e){const t=e?e.score:0;return a.a.createElement("progress",{className:"mx_PassphraseField_progress",max:4,value:t})},deriveData:async({value:e})=>{if(!e)return null;const{scorePassword:t}=await n.e(23).then(n.bind(null,1608));return t(e)},rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(d.a)(this.props.labelEnterPassword)},{key:"complexity",test:async function({value:e},t){if(!e)return!1;const n=t.score>=this.props.minScore;return l.a.get().dangerously_allow_unsafe_and_insecure_passwords||n},valid:function(e){return e.score>=this.props.minScore?Object(d.a)(this.props.labelStrongPassword):Object(d.a)(this.props.labelAllowedButUnsafe)},invalid:function(e){if(!e)return null;const{feedback:t}=e;return t.warning||t.suggestions[0]||Object(d.a)("Keep going...")}}]})),r()(this,"onValidate",async e=>{const t=await this.validate(e);return this.props.onValidate(t),t})}render(){return a.a.createElement(h.a,{id:this.props.id,autoFocus:this.props.autoFocus,className:c()("mx_PassphraseField",this.props.className),ref:this.props.fieldRef,type:"password",autoComplete:"new-password",label:Object(d.a)(this.props.label),value:this.props.value,onChange:this.props.onChange,onValidate:this.onValidate})}}r()(p,"defaultProps",{label:Object(d.b)("Password"),labelEnterPassword:Object(d.b)("Enter password"),labelStrongPassword:Object(d.b)("Nice, strong password!"),labelAllowedButUnsafe:Object(d.b)("Password is allowed, but unsafe")}),t.a=p},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o=n(6),r=n(381),i=n(162),a=n(128),s=n(1),c=n(129),l=n(175);function u(e,t){this.roomId=e,this.info=t}var d=n(0),h=n(389);const p=["1","2","3","4","5","6"];function m(e,t,n){const o={content:{},type:"m.receipt",room_id:t.getRoomId()};return o.content[t.getId()]={},o.content[t.getId()][n]={},o.content[t.getId()][n][e]={ts:t.getTs()},new c.b(o)}function g(e,t,n,o){if((o=o||{}).pendingEventOrdering=o.pendingEventOrdering||"chronological",this.setMaxListeners(100),this.reEmitter=new h.a(this),-1===["chronological","detached"].indexOf(o.pendingEventOrdering))throw new Error("opts.pendingEventOrdering MUST be either 'chronological' or 'detached'. Got: '"+o.pendingEventOrdering+"'");this.myUserId=n,this.roomId=e,this.name=e,this.tags={},this.accountData={},this.summary=null,this.storageToken=o.storageToken,this._opts=o,this._txnToEvent={},this._receipts={},this._receiptCacheByEventId={},this._realReceipts={},this._notificationCounts={},this._timelineSets=[new r.a(this,o)],this.reEmitter.reEmit(this.getUnfilteredTimelineSet(),["Room.timeline","Room.timelineReset"]),this._fixUpLegacyTimelineFields(),this._filteredTimelineSets={},"detached"==this._opts.pendingEventOrdering&&(this._pendingEventList=[]),this._blacklistUnverifiedDevices=null,this._selfMembership=null,this._summaryHeroes=null,this._client=t,this._opts.lazyLoadMembers?this._membersPromise=null:this._membersPromise=Promise.resolve()}s.o(g,o.EventEmitter),g.prototype.getVersion=function(){const e=this.currentState.getStateEvents("m.room.create","");if(!e)return d.a.warn("Room "+this.roomId+" does not have an m.room.create event"),"1";const t=e.getContent().room_version;return void 0===t?"1":t},g.prototype.shouldUpgradeToVersion=function(){return p.includes(this.getVersion())?null:"6"},g.prototype.getRecommendedVersion=async function(){let e=(await this._client.getCapabilities())["m.room_versions"];if(!e){e={default:"6",available:{}};for(const t of p)e.available[t]="stable"}let t=this._checkVersionAgainstCapability(e);if(t.urgent&&t.needsUpgrade){d.a.warn("Refreshing room version capability because the server looks to be supporting a newer room version we don't know about.");if(e=(await this._client.getCapabilities(!0))["m.room_versions"],!e)return d.a.warn("No room version capability - assuming upgrade required."),t;t=this._checkVersionAgainstCapability(e)}return t},g.prototype._checkVersionAgainstCapability=function(e){const t=this.getVersion();d.a.log(`[${this.roomId}] Current version: ${t}`),d.a.log(`[${this.roomId}] Version capability: `,e);const n={version:t,needsUpgrade:!1,urgent:!1};if(t===e.default)return n;return Object.keys(e.available).filter(t=>"stable"===e.available[t]).includes(t)||(n.version=e.default,n.needsUpgrade=!0,n.urgent=!!this.getVersion().match(/^[0-9]+[0-9.]*$/g),n.urgent?d.a.warn("URGENT upgrade required on "+this.roomId):d.a.warn("Non-urgent upgrade required on "+this.roomId)),n},g.prototype.userMayUpgradeRoom=function(e){return this.currentState.maySendStateEvent("m.room.tombstone",e)},g.prototype.getPendingEvents=function(){if("detached"!==this._opts.pendingEventOrdering)throw new Error("Cannot call getPendingEvents with pendingEventOrdering == "+this._opts.pendingEventOrdering);return this._pendingEventList},g.prototype.hasPendingEvent=function(e){return"detached"===this._opts.pendingEventOrdering&&this._pendingEventList.some(t=>t.getId()===e)},g.prototype.getPendingEvent=function(e){return"detached"!==this._opts.pendingEventOrdering?null:this._pendingEventList.find(t=>t.getId()===e)},g.prototype.getLiveTimeline=function(){return this.getUnfilteredTimelineSet().getLiveTimeline()},g.prototype.getLastActiveTimestamp=function(){const e=this.getLiveTimeline().getEvents();if(e.length){return e[e.length-1].getTs()}return Number.MIN_SAFE_INTEGER},g.prototype.getMyMembership=function(){return this._selfMembership},g.prototype.getDMInviter=function(){if(this.myUserId){const e=this.getMember(this.myUserId);if(e)return e.getDMInviter()}if("invite"===this._selfMembership){if(2==this.getInvitedAndJoinedMemberCount()&&this._summaryHeroes.length)return this._summaryHeroes[0]}},g.prototype.guessDMUserId=function(){const e=this.getMember(this.myUserId);if(e){const t=e.getDMInviter();if(t)return t}if(Array.isArray(this._summaryHeroes)&&this._summaryHeroes.length)return this._summaryHeroes[0];const t=this.currentState.getMembers().find(e=>e.userId!==this.myUserId);return t?t.userId:this.myUserId},g.prototype.getAvatarFallbackMember=function(){if(this.getInvitedAndJoinedMemberCount()>2)return;const e=Array.isArray(this._summaryHeroes)&&this._summaryHeroes.length;if(e){const e=this._summaryHeroes.map(e=>this.getMember(e)).find(e=>!!e);if(e)return e}const t=this.currentState.getMembers();if(t.length<=2){const e=t.find(e=>e.userId!==this.myUserId);if(e)return e}if(e){const e=this._summaryHeroes.map(e=>this._client.getUser(e)).find(e=>!!e);if(e){const t=new l.a(this.roomId,e.userId);return t.user=e,t}}},g.prototype.updateMyMembership=function(e){const t=this._selfMembership;this._selfMembership=e,t!==e&&("leave"===e&&this._cleanupAfterLeaving(),this.emit("Room.myMembership",this,e,t))},g.prototype._loadMembersFromServer=async function(){const e=this._client.store.getSyncToken(),t=s.e({not_membership:"leave",at:e}),n=s.f("/rooms/$roomId/members?"+t,{$roomId:this.roomId}),o=this._client._http;return(await o.authedRequest(void 0,"GET",n)).chunk},g.prototype._loadMembers=async function(){let e=!1,t=await this._client.store.getOutOfBandMembers(this.roomId);null===t&&(e=!0,t=await this._loadMembersFromServer(),d.a.log(`LL: got ${t.length} members from server for room `+this.roomId));return{memberEvents:t.map(this._client.getEventMapper()),fromServer:e}},g.prototype.loadMembersIfNeeded=function(){if(this._membersPromise)return this._membersPromise;this.currentState.markOutOfBandMembersStarted();const e=this._loadMembers().then(e=>(this.currentState.setOutOfBandMembers(e.memberEvents),this._client.isCryptoEnabled()&&this._client.isRoomEncrypted(this.roomId)&&this._client._crypto.trackRoomDevices(this.roomId),e.fromServer)).catch(e=>{throw this._membersPromise=null,this.currentState.markOutOfBandMembersFailed(),e});return e.then(e=>{if(e){const e=this.currentState.getMembers().filter(e=>e.isOutOfBand()).map(e=>e.events.member.event);d.a.log("LL: telling store to write "+e.length+" members for room "+this.roomId);return this._client.store.setOutOfBandMembers(this.roomId,e).catch(e=>{d.a.log("LL: storing OOB room members failed, oh well",e)})}}).catch(e=>{d.a.error(e)}),this._membersPromise=e,this._membersPromise},g.prototype.clearLoadedMembersIfNeeded=async function(){this._opts.lazyLoadMembers&&this._membersPromise&&(await this.loadMembersIfNeeded(),await this._client.store.clearOutOfBandMembers(this.roomId),this.currentState.clearOutOfBandMembers(),this._membersPromise=null)},g.prototype._cleanupAfterLeaving=function(){this.clearLoadedMembersIfNeeded().catch(e=>{d.a.error(`error after clearing loaded members from room ${this.roomId} after leaving`),d.a.log(e)})},g.prototype.resetLiveTimeline=function(e,t){for(let n=0;n<this._timelineSets.length;n++)this._timelineSets[n].resetLiveTimeline(e,t);this._fixUpLegacyTimelineFields()},g.prototype._fixUpLegacyTimelineFields=function(){this.timeline=this.getLiveTimeline().getEvents(),this.oldState=this.getLiveTimeline().getState(i.a.BACKWARDS),this.currentState=this.getLiveTimeline().getState(i.a.FORWARDS)},g.prototype.hasUnverifiedDevices=async function(){if(!this._client.isRoomEncrypted(this.roomId))return!1;const e=await this.getEncryptionTargetMembers();for(const t of e){if(this._client.getStoredDevicesForUser(t.userId).some(e=>e.isUnverified()))return!0}return!1},g.prototype.getTimelineSets=function(){return this._timelineSets},g.prototype.getUnfilteredTimelineSet=function(){return this._timelineSets[0]},g.prototype.getTimelineForEvent=function(e){return this.getUnfilteredTimelineSet().getTimelineForEvent(e)},g.prototype.addTimeline=function(){return this.getUnfilteredTimelineSet().addTimeline()},g.prototype.findEventById=function(e){return this.getUnfilteredTimelineSet().findEventById(e)},g.prototype.getUnreadNotificationCount=function(e){return e=e||"total",this._notificationCounts[e]},g.prototype.setUnreadNotificationCount=function(e,t){this._notificationCounts[e]=t},g.prototype.setSummary=function(e){const t=e["m.heroes"],n=e["m.joined_member_count"],o=e["m.invited_member_count"];Number.isInteger(n)&&this.currentState.setJoinedMemberCount(n),Number.isInteger(o)&&this.currentState.setInvitedMemberCount(o),Array.isArray(t)&&(this._summaryHeroes=t.filter(e=>e!==this.myUserId))},g.prototype.setBlacklistUnverifiedDevices=function(e){this._blacklistUnverifiedDevices=e},g.prototype.getBlacklistUnverifiedDevices=function(){return this._blacklistUnverifiedDevices},g.prototype.getAvatarUrl=function(e,t,n,o,r){const i=this.currentState.getStateEvents("m.room.avatar","");if(void 0===r&&(r=!0),!i&&!r)return null;const s=i?i.getContent().url:null;return s?Object(a.a)(e,s,t,n,o):null},g.prototype.getAliases=function(){const e=[],t=this.currentState.getStateEvents("m.room.aliases");if(t)for(let n=0;n<t.length;++n){const o=t[n];if(s.p(o.getContent().aliases)){const t=o.getContent().aliases.filter(e=>"string"==typeof e&&("#"===e[0]&&!!e.endsWith(":"+o.getStateKey())));Array.prototype.push.apply(e,t)}}return e},g.prototype.getCanonicalAlias=function(){const e=this.currentState.getStateEvents("m.room.canonical_alias","");return e&&e.getContent().alias||null},g.prototype.getAltAliases=function(){const e=this.currentState.getStateEvents("m.room.canonical_alias","");return e&&e.getContent().alt_aliases||[]},g.prototype.addEventsToTimeline=function(e,t,n,o){n.getTimelineSet().addEventsToTimeline(e,t,n,o)},g.prototype.getMember=function(e){return this.currentState.getMember(e)},g.prototype.getJoinedMembers=function(){return this.getMembersWithMembership("join")},g.prototype.getJoinedMemberCount=function(){return this.currentState.getJoinedMemberCount()},g.prototype.getInvitedMemberCount=function(){return this.currentState.getInvitedMemberCount()},g.prototype.getInvitedAndJoinedMemberCount=function(){return this.getInvitedMemberCount()+this.getJoinedMemberCount()},g.prototype.getMembersWithMembership=function(e){return s.j(this.currentState.getMembers(),(function(t){return t.membership===e}))},g.prototype.getEncryptionTargetMembers=async function(){await this.loadMembersIfNeeded();let e=this.getMembersWithMembership("join");return this.shouldEncryptForInvitedMembers()&&(e=e.concat(this.getMembersWithMembership("invite"))),e},g.prototype.shouldEncryptForInvitedMembers=function(){const e=this.currentState.getStateEvents("m.room.history_visibility","");return e&&e.getContent()&&"joined"!==e.getContent().history_visibility},g.prototype.getDefaultRoomName=function(e){return _(this,e,!0)},g.prototype.hasMembershipState=function(e,t){const n=this.getMember(e);return!!n&&n.membership===t},g.prototype.getOrCreateFilteredTimelineSet=function(e){if(this._filteredTimelineSets[e.filterId])return this._filteredTimelineSets[e.filterId];const t=Object.assign({filter:e},this._opts),n=new r.a(this,t);this.reEmitter.reEmit(n,["Room.timeline","Room.timelineReset"]),this._filteredTimelineSets[e.filterId]=n,this._timelineSets.push(n);const o=this.getLiveTimeline();o.getEvents().forEach((function(e){n.addLiveEvent(e)}));let a=o;for(;a.getNeighbouringTimeline(i.a.BACKWARDS);)a=a.getNeighbouringTimeline(i.a.BACKWARDS);return n.getLiveTimeline().setPaginationToken(a.getPaginationToken(i.a.BACKWARDS),i.a.BACKWARDS),n},g.prototype.removeFilteredTimelineSet=function(e){const t=this._filteredTimelineSets[e.filterId];delete this._filteredTimelineSets[e.filterId];const n=this._timelineSets.indexOf(t);n>-1&&this._timelineSets.splice(n,1)},g.prototype._addLiveEvent=function(e,t,n){if(e.isRedaction()){const t=e.event.redacts,n=this.getUnfilteredTimelineSet().findEventById(t);if(n){if(n.makeRedacted(e),n.getStateKey()){this.currentState.getStateEvents(n.getType(),n.getStateKey()).getId()===n.getId()&&this.currentState.setStateEvents([n])}this.emit("Room.redaction",e,this)}}if(e.getUnsigned().transaction_id){const t=this._txnToEvent[e.getUnsigned().transaction_id];if(t)return void this._handleRemoteEcho(e,t)}for(let o=0;o<this._timelineSets.length;o++)this._timelineSets[o].addLiveEvent(e,t,n);e.sender&&"m.room.redaction"!==e.getType()&&this.addReceipt(m(e.sender.userId,e,"m.read"),!0)},g.prototype.addPendingEvent=function(e,t){if(e.status!==c.a.SENDING)throw new Error("addPendingEvent called on an event with status "+e.status);if(this._txnToEvent[t])throw new Error("addPendingEvent called on an event with known txnId "+t);if(i.a.setEventMetadata(e,this.getLiveTimeline().getState(i.a.FORWARDS),!1),this._txnToEvent[t]=e,"detached"==this._opts.pendingEventOrdering){if(this._pendingEventList.some(e=>e.status===c.a.NOT_SENT)&&(d.a.warn("Setting event as NOT_SENT due to messages in the same state"),e.setStatus(c.a.NOT_SENT)),this._pendingEventList.push(e),e.isRelation()&&this._aggregateNonLiveRelation(e),e.isRedaction()){const t=e.event.redacts;let n=this._pendingEventList&&this._pendingEventList.find(e=>e.getId()===t);n||(n=this.getUnfilteredTimelineSet().findEventById(t)),n&&(n.markLocallyRedacted(e),this.emit("Room.redaction",e,this))}}else for(let t=0;t<this._timelineSets.length;t++){const n=this._timelineSets[t];n.getFilter()?n.getFilter().filterRoomTimeline([e]).length&&n.addEventToTimeline(e,n.getLiveTimeline(),!1):n.addEventToTimeline(e,n.getLiveTimeline(),!1)}this.emit("Room.localEchoUpdated",e,this,null,null)},g.prototype._aggregateNonLiveRelation=function(e){for(let t=0;t<this._timelineSets.length;t++){const n=this._timelineSets[t];n.getFilter()?n.getFilter().filterRoomTimeline([e]).length&&n.aggregateRelations(e):n.aggregateRelations(e)}},g.prototype._handleRemoteEcho=function(e,t){const n=t.getId(),o=e.getId(),r=t.status;d.a.debug(`Got remote echo for event ${n} -> ${o} old status `+r),delete this._txnToEvent[e.getUnsigned().transaction_id],this._pendingEventList&&s.y(this._pendingEventList,(function(e){return e.getId()==n}),!1),t.handleRemoteEcho(e.event);for(let e=0;e<this._timelineSets.length;e++){this._timelineSets[e].handleRemoteEcho(t,n,o)}this.emit("Room.localEchoUpdated",t,this,n,r)};const f={};function _(e,t,n){if(!n){const t=e.currentState.getStateEvents("m.room.name","");if(t&&t.getContent()&&t.getContent().name)return t.getContent().name}let o=e.getCanonicalAlias();if(!o){const t=e.getAltAliases();t.length&&(o=t[0])}if(o)return o;const r=e.currentState.getJoinedMemberCount()+e.currentState.getInvitedMemberCount()-1;let i=null;if(e._summaryHeroes)i=e._summaryHeroes.map(t=>{const n=e.getMember(t);return n?n.name:t});else{let n=e.currentState.getMembers().filter(e=>e.userId!==t&&("invite"===e.membership||"join"===e.membership));n.sort((e,t)=>e.userId.localeCompare(t.userId)),n=n.slice(0,5),i=n.map(e=>e.name)}if(r)return b(i,r);if("join"==e.getMyMembership()){const t=e.currentState.getStateEvents("m.room.third_party_invite");if(t&&t.length){return"Inviting "+b(t.map(e=>e.getContent().display_name))}}let a=i;return a.length||(a=e.currentState.getMembers().filter(e=>e.userId!==t&&"invite"!==e.membership&&"join"!==e.membership).map(e=>e.name)),a.length?`Empty room (was ${b(a)})`:"Empty room"}function b(e,t=e.length+1){const n=t-1;if(e.length){if(1===e.length&&n<=1)return e[0];if(2===e.length&&n<=2)return`${e[0]} and ${e[1]}`;return n>1?`${e[0]} and ${n} others`:e[0]+" and 1 other"}return"Empty room"}f[c.a.ENCRYPTING]=[c.a.SENDING,c.a.NOT_SENT],f[c.a.SENDING]=[c.a.ENCRYPTING,c.a.QUEUED,c.a.NOT_SENT,c.a.SENT],f[c.a.QUEUED]=[c.a.SENDING,c.a.CANCELLED],f[c.a.SENT]=[],f[c.a.NOT_SENT]=[c.a.SENDING,c.a.QUEUED,c.a.CANCELLED],f[c.a.CANCELLED]=[],g.prototype.updatePendingEvent=function(e,t,n){if(d.a.log(`setting pendingEvent status to ${t} in ${e.getRoomId()} event ID ${e.getId()} -> ${n}`),t==c.a.SENT&&!n)throw new Error("updatePendingEvent called with status=SENT, but no new event id");if(t==c.a.SENT){if(this.getUnfilteredTimelineSet().eventIdToTimeline(n))return}const o=e.status,r=e.getId();if(!o)throw new Error("updatePendingEventStatus called on an event which is not a local echo.");const i=f[o];if(!i||i.indexOf(t)<0)throw new Error("Invalid EventStatus transition "+o+"->"+t);if(e.setStatus(t),t==c.a.SENT){e.replaceLocalEventId(n);for(let e=0;e<this._timelineSets.length;e++)this._timelineSets[e].replaceEventId(r,n)}else if(t==c.a.CANCELLED){if(this._pendingEventList){const e=this._pendingEventList.findIndex(e=>e.getId()===r);if(-1!==e){const[t]=this._pendingEventList.splice(e,1);t.isRedaction()&&this._revertRedactionLocalEcho(t)}}this.removeEvent(r)}this.emit("Room.localEchoUpdated",e,this,r,o)},g.prototype._revertRedactionLocalEcho=function(e){const t=e.event.redacts;if(!t)return;const n=this.getUnfilteredTimelineSet().findEventById(t);n&&(n.unmarkLocallyRedacted(),this.emit("Room.redactionCancelled",e,this),n.isRelation()&&this._aggregateNonLiveRelation(n))},g.prototype.addLiveEvents=function(e,t,n){let o;if(t&&-1===["replace","ignore"].indexOf(t))throw new Error("duplicateStrategy MUST be either 'replace' or 'ignore'");for(o=0;o<this._timelineSets.length;o++){const e=this._timelineSets[o].getLiveTimeline();if(e.getPaginationToken(i.a.FORWARDS))throw new Error("live timeline "+o+" is no longer live - it has a pagination token ("+e.getPaginationToken(i.a.FORWARDS)+")");if(e.getNeighbouringTimeline(i.a.FORWARDS))throw new Error("live timeline "+o+" is no longer live - it has a neighbouring timeline")}for(o=0;o<e.length;o++)this._addLiveEvent(e[o],t,n)},g.prototype.addEphemeralEvents=function(e){for(const t of e)"m.typing"===t.getType()?this.currentState.setTypingEvent(t):"m.receipt"===t.getType()&&this.addReceipt(t)},g.prototype.removeEvents=function(e){for(let t=0;t<e.length;++t)this.removeEvent(e[t])},g.prototype.removeEvent=function(e){let t=!1;for(let n=0;n<this._timelineSets.length;n++){const o=this._timelineSets[n].removeEvent(e);o&&(o.isRedaction()&&this._revertRedactionLocalEcho(o),t=!0)}return t},g.prototype.recalculate=function(){const e=this,t=this.currentState.getStateEvents("m.room.member",this.myUserId);if(t&&"invite"===t.getContent().membership){const n=t.event.invite_room_state||[];s.l(n,(function(t){e.currentState.getStateEvents(t.type,t.state_key)||e.currentState.setStateEvents([new c.b({type:t.type,state_key:t.state_key,content:t.content,event_id:"$fake"+Date.now(),room_id:e.roomId,user_id:e.myUserId})])}))}const n=this.name;this.name=_(this,this.myUserId),this.summary=new u(this.roomId,{title:this.name}),n!==this.name&&this.emit("Room.name",this)},g.prototype.getUsersReadUpTo=function(e){return this.getReceiptsForEvent(e).filter((function(e){return"m.read"===e.type})).map((function(e){return e.userId}))},g.prototype.getEventReadUpTo=function(e,t){let n=this._receipts;return t&&(n=this._realReceipts),void 0===n["m.read"]||void 0===n["m.read"][e]?null:n["m.read"][e].eventId},g.prototype.hasUserReadEvent=function(e,t){const n=this.getEventReadUpTo(e,!1);if(n===t)return!0;if(this.timeline.length&&this.timeline[this.timeline.length-1].getSender()&&this.timeline[this.timeline.length-1].getSender()===e)return!0;for(let e=this.timeline.length-1;e>=0;--e){const o=this.timeline[e];if(o.getId()===t)return!1;if(o.getId()===n)return!0}return!1},g.prototype.getReceiptsForEvent=function(e){return this._receiptCacheByEventId[e.getId()]||[]},g.prototype.addReceipt=function(e,t){void 0===t&&(t=!1),t||this._addReceiptsToStructure(e,this._realReceipts),this._addReceiptsToStructure(e,this._receipts),this._receiptCacheByEventId=this._buildReceiptCache(this._receipts),this.emit("Room.receipt",e,this)},g.prototype._addReceiptsToStructure=function(e,t){const n=this;s.t(e.getContent()).forEach((function(o){s.t(e.getContent()[o]).forEach((function(r){s.t(e.getContent()[o][r]).forEach((function(i){const a=e.getContent()[o][r][i];t[r]||(t[r]={});const s=t[r][i];if(s){const e=n.getUnfilteredTimelineSet().compareEventOrdering(s.eventId,o);if(null!==e&&e>=0)return}else t[r][i]={};t[r][i]={eventId:o,data:a}}))}))}))},g.prototype._buildReceiptCache=function(e){const t={};return s.t(e).forEach((function(n){s.t(e[n]).forEach((function(o){const r=e[n][o];t[r.eventId]||(t[r.eventId]=[]),t[r.eventId].push({userId:o,type:n,data:r.data})}))})),t},g.prototype._addLocalEchoReceipt=function(e,t,n){this.addReceipt(m(e,t,n),!0)},g.prototype.addTags=function(e){this.tags=e.getContent().tags||{},this.emit("Room.tags",e,this)},g.prototype.addAccountData=function(e){for(let t=0;t<e.length;t++){const n=e[t];"m.tag"===n.getType()&&this.addTags(n);const o=this.accountData[n.getType()];this.accountData[n.getType()]=n,this.emit("Room.accountData",n,this,o)}},g.prototype.getAccountData=function(e){return this.accountData[e]},g.prototype.maySendMessage=function(){return"join"===this.getMyMembership()&&this.currentState.maySendEvent("m.room.message",this.myUserId)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(135),c=n.n(s),l=n(90),u=n.n(l);class d extends a.a.Component{constructor(...e){super(...e),r()(this,"tooltipContainer",void 0),r()(this,"tooltip",void 0),r()(this,"parent",void 0),r()(this,"renderTooltip",()=>{const e=this.updatePosition({});e.display=this.props.visible?"block":"none";const t=u()("mx_Tooltip",this.props.tooltipClassName,{mx_Tooltip_visible:this.props.visible,mx_Tooltip_invisible:!this.props.visible}),n=a.a.createElement("div",{className:t,style:e},a.a.createElement("div",{className:"mx_Tooltip_chevron"}),this.props.label);this.tooltip=c.a.render(n,this.tooltipContainer)})}componentDidMount(){this.tooltipContainer=document.createElement("div"),this.tooltipContainer.className="mx_Tooltip_wrapper",document.body.appendChild(this.tooltipContainer),window.addEventListener("scroll",this.renderTooltip,!0),this.parent=c.a.findDOMNode(this).parentNode,this.renderTooltip()}componentDidUpdate(){this.renderTooltip()}componentWillUnmount(){c.a.unmountComponentAtNode(this.tooltipContainer),document.body.removeChild(this.tooltipContainer),window.removeEventListener("scroll",this.renderTooltip,!0)}updatePosition(e){const t=this.parent.getBoundingClientRect();let n=0;return n=t.height>25?Math.floor((t.height-25)/2):Math.floor(t.height-25),e.top=t.top-2+this.props.yOffset+window.pageYOffset+n,!this.props.forceOnRight&&t.right>window.innerWidth/2?e.right=window.innerWidth-t.right-window.pageXOffset-16:e.left=t.right+window.pageXOffset+6,e}render(){return a.a.createElement("div",{className:this.props.className})}}r()(d,"defaultProps",{visible:!0,yOffset:0})},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(1),r=n(6);function i(e){this.groupId=e,this.name=null,this.avatarUrl=null,this.myMembership=null,this.inviter=null}o.o(i,r.EventEmitter),i.prototype.setProfile=function(e,t){this.name===e&&this.avatarUrl===t||(this.name=e||this.groupId,this.avatarUrl=t,this.emit("Group.profile",this))},i.prototype.setMyMembership=function(e){this.myMembership!==e&&(this.myMembership=e,this.emit("Group.myMembership",this))},i.prototype.setInviter=function(e){this.inviter=e}},function(e,t,n){"use strict";for(var o=/[\\\"\x00-\x1F]/g,r={},i=0;i<32;++i)r[String.fromCharCode(i)]="\\U"+("0000"+i.toString(16)).slice(-4).toUpperCase();function a(e){return o.lastIndex=0,e.replace(o,(function(e){return r[e]}))}function s(e){switch(typeof e){case"string":return'"'+a(e)+'"';case"number":return isFinite(e)?e:"null";case"boolean":return e;case"object":return null===e?"null":Array.isArray(e)?function(e){for(var t="[",n="",o=0;o<e.length;++o)n+=t,t=",",n+=s(e[o]);return","!=t?"[]":n+"]"}(e):function(e){var t="{",n="",o=Object.keys(e);o.sort();for(var r=0;r<o.length;++r){var i=o[r];n+=t+'"'+a(i)+'":',t=",",n+=s(e[i])}return","!=t?"{}":n+"}"}(e);default:throw new Error("Cannot stringify: "+typeof e)}}r["\b"]="\\b",r["\t"]="\\t",r["\n"]="\\n",r["\f"]="\\f",r["\r"]="\\r",r['"']='\\"',r["\\"]="\\\\",e.exports={stringify:s}},function(e,t,n){"use strict";(function(e,o){n.d(t,"d",(function(){return N})),n.d(t,"c",(function(){return F})),n.d(t,"a",(function(){return M})),n.d(t,"b",(function(){return P}));var r=n(316),i=n.n(r),a=n(6),s=n(389),c=n(0),l=n(1),u=n(534),d=n(124),h=n(838),p=n(318),m=n(795),g=n(319),f=n(839),_=n(840),b=n(841),v=n(165),E=n(268),y=n(842),S=n(391),T=n(392),w=n(203),C=n(845),x=n(846),O=n(847),k=n(202),R=n(267),A=n(536);const I=p.a.DeviceVerification,D={[E.b.NAME]:E.b,[y.a.NAME]:y.a,[E.d]:O.a,[E.c]:O.a},N={RECIPROCATE_QR_CODE:E.b.NAME,SAS:y.a.NAME};function F(){return Boolean(e.Olm)}function M(e,t,n,o,r,i,a,d){if(this._onDeviceListUserCrossSigningUpdated=this._onDeviceListUserCrossSigningUpdated.bind(this),this._trustCrossSignedDevices=!0,this._reEmitter=new s.a(this),this._baseApis=e,this._sessionStore=t,this._userId=n,this._deviceId=o,this._clientStore=r,this._cryptoStore=i,this._roomList=a,d){this._verificationMethods=new Map;for(const e of d)"string"==typeof e?D[e]&&this._verificationMethods.set(e,D[e]):e.NAME?this._verificationMethods.set(e.NAME,e):c.a.warn("Excluding unknown verification method "+e)}else this._verificationMethods=D;this.backupInfo=null,this.backupKey=null,this._checkedForBackup=!1,this._sendingBackups=!1,this._olmDevice=new u.a(i),this._deviceList=new h.a(e,i,this._olmDevice),this._deviceList.on("userCrossSigningUpdated",this._onDeviceListUserCrossSigningUpdated),this._reEmitter.reEmit(this._deviceList,["crypto.devicesUpdated","crypto.willUpdateDevices"]),this._lastOneTimeKeyCheck=null,this._oneTimeKeyCheckInProgress=!1,this._roomEncryptors={},this._roomDecryptors={},this._supportedAlgorithms=l.t(m.a),this._deviceKeys={},this._globalBlacklistUnverifiedDevices=!1,this._globalErrorOnUnknownDevices=!0,this._outgoingRoomKeyRequestManager=new b.a(e,this._deviceId,this._cryptoStore),this._receivedRoomKeyRequests=[],this._receivedRoomKeyRequestCancellations=[],this._processingRoomKeyRequests=!1,this._lazyLoadMembers=!1,this._roomDeviceTrackingState={},this._lastNewSessionForced={},this._toDeviceVerificationRequests=new x.b,this._inRoomVerificationRequests=new C.b,this._sendKeyRequestsImmediately=!1;const p=this._baseApis._cryptoCallbacks||{},f=Object(g.d)(i,this._olmDevice);this._crossSigningInfo=new g.a(n,p,f),this._secretStorage=new _.b(e,p),this._dehydrationManager=new A.b(this),!p.getCrossSigningKey&&p.getSecretStorageKey&&(p.getCrossSigningKey=async e=>g.a.getFromSecretStorage(e,this._secretStorage))}function P(e){if("string"!=typeof e||e.indexOf(",")<0)return null;const t=Uint8Array.from(e.split(","),e=>parseInt(e));return d.encodeBase64(t)}function L(e){if(e._oneTimeKeyCheckInProgress)return;const t=Date.now();if(null!==e._lastOneTimeKeyCheck&&t-e._lastOneTimeKeyCheck<6e4)return;e._lastOneTimeKeyCheck=t;const n=e._olmDevice.maxNumberOfOneTimeKeys(),o=Math.floor(n/2);e._oneTimeKeyCheckInProgress=!0,Promise.resolve().then(()=>void 0!==e._oneTimeKeyCount?Promise.resolve(e._oneTimeKeyCount):e._baseApis.uploadKeysRequest({}).then(e=>e.one_time_key_counts.signed_curve25519||0)).then(t=>async function(t){for(;o>t||e.getNeedsNewFallback();){if(o>t){c.a.info("generating oneTimeKeys");const n=Math.min(o-t,5);await e._olmDevice.generateOneTimeKeys(n)}e.getNeedsNewFallback()&&(c.a.info("generating fallback key"),await e._olmDevice.generateFallbackKey()),c.a.info("calling _uploadOneTimeKeys");const n=await U(e);if(!n.one_time_key_counts||!n.one_time_key_counts.signed_curve25519)throw new Error("response for uploading keys does not contain one_time_key_counts.signed_curve25519");t=n.one_time_key_counts.signed_curve25519}}(t)).catch(e=>{c.a.error("Error uploading one-time keys",e.stack||e)}).finally(()=>{e._oneTimeKeyCount=void 0,e._oneTimeKeyCheckInProgress=!1})}async function U(e){const t=[],n={};if(e.getNeedsNewFallback()){const o=await e._olmDevice.getFallbackKey();for(const[r,i]of Object.entries(o.curve25519)){const o={key:i,fallback:!0};n["signed_curve25519:"+r]=o,t.push(e._signObject(o))}e.setNeedsNewFallback(!1)}const o=await e._olmDevice.getOneTimeKeys(),r={};for(const n in o.curve25519)if(o.curve25519.hasOwnProperty(n)){const i={key:o.curve25519[n]};r["signed_curve25519:"+n]=i,t.push(e._signObject(i))}await Promise.all(t);const i=await e._baseApis.uploadKeysRequest({one_time_keys:r,"org.matrix.msc2732.fallback_keys":n});return await e._olmDevice.markKeysAsPublished(),i}l.o(M,a.EventEmitter),M.prototype.init=async function(t){const{exportedOlmDevice:n,pickleKey:o}=t||{};c.a.log("Crypto: initialising Olm..."),await e.Olm.init(),c.a.log(n?"Crypto: initialising Olm device from exported device...":"Crypto: initialising Olm device..."),await this._olmDevice.init({fromExportedDevice:n,pickleKey:o}),c.a.log("Crypto: loading device list..."),await this._deviceList.load(),this._deviceKeys["ed25519:"+this._deviceId]=this._olmDevice.deviceEd25519Key,this._deviceKeys["curve25519:"+this._deviceId]=this._olmDevice.deviceCurve25519Key,c.a.log("Crypto: fetching own devices...");let r=this._deviceList.getRawStoredDevicesForUser(this._userId);if(r||(r={}),!r[this._deviceId]){c.a.log("Crypto: adding this device to the store...");const e={keys:this._deviceKeys,algorithms:this._supportedAlgorithms,verified:I.VERIFIED,known:!0};r[this._deviceId]=e,this._deviceList.storeDevicesForUser(this._userId,r),this._deviceList.saveIfDirty()}await this._cryptoStore.doTxn("readonly",[v.a.STORE_ACCOUNT],e=>{this._cryptoStore.getCrossSigningKeys(e,e=>{e&&0!==Object.keys(e).length&&(c.a.log("Loaded cross-signing public keys from crypto store"),this._crossSigningInfo.setKeys(e))})}),this._deviceList.startTrackingDeviceList(this._userId),c.a.log("Crypto: checking for key backup..."),this._checkAndStartKeyBackup()},M.prototype.getCryptoTrustCrossSignedDevices=function(){return this._trustCrossSignedDevices},M.prototype.setCryptoTrustCrossSignedDevices=function(e){this._trustCrossSignedDevices=e;for(const e of this._deviceList.getKnownUserIds()){const t=this._deviceList.getRawStoredDevicesForUser(e);for(const n of Object.keys(t)){const t=this.checkDeviceTrust(e,n);if(!t.isLocallyVerified()&&t.isCrossSigningVerified()){const t=this._deviceList.getStoredDevice(e,n);this.emit("deviceVerificationChanged",e,n,t)}}}},M.prototype.createRecoveryKeyFromPassphrase=async function(t){const n=new e.Olm.PkDecryption;try{const e={};if(t){const o=await Object(S.c)(t);e.passphrase={algorithm:"m.pbkdf2",iterations:o.iterations,salt:o.salt},e.pubkey=n.init_with_private_key(o.key)}else e.pubkey=n.generate_key();const o=n.get_private_key();return{keyInfo:e,encodedPrivateKey:Object(T.b)(o),privateKey:o}}finally{n&&n.free()}},M.prototype.isCrossSigningReady=async function(){const e=this._crossSigningInfo.getId(),t=await this._crossSigningInfo.isStoredInKeyCache()||await this._crossSigningInfo.isStoredInSecretStorage(this._secretStorage);return!(!e||!t)},M.prototype.isSecretStorageReady=async function(){const e=await this._secretStorage.hasKey(),t=await this._crossSigningInfo.isStoredInSecretStorage(this._secretStorage),n=!this._baseApis.getKeyBackupEnabled()||this._baseApis.isKeyBackupKeyStored();return!!(e&&t&&n)},M.prototype.bootstrapCrossSigning=async function({authUploadDeviceSigningKeys:e,setupNewCrossSigning:t}={}){c.a.log("Bootstrapping cross-signing");const n=this._baseApis._cryptoCallbacks,o=new f.a(this._baseApis.store.accountData,n),r=new g.a(this._userId,o.crossSigningCallbacks,o.crossSigningCallbacks),i=async()=>{r.resetKeys(),await this._signObject(r.keys.master),o.addCrossSigningKeys(e,r.keys);const t=this._deviceList.getStoredDevice(this._userId,this._deviceId),n=await r.signDevice(this._userId,t);o.addKeySignature(this._userId,this._deviceId,n),this.backupInfo&&(await r.signObject(this.backupInfo.auth_data,"master"),o.addSessionBackup(this.backupInfo))},a=this._crossSigningInfo.getId(),s=await this._crossSigningInfo.isStoredInKeyCache(),l=await this._crossSigningInfo.isStoredInSecretStorage(this._secretStorage),u=s||l;c.a.log({setupNewCrossSigning:t,publicKeysOnDevice:a,privateKeysInCache:s,privateKeysInStorage:l,privateKeysExistSomewhere:u}),!u||t?(c.a.log("Cross-signing private keys not found locally or in secret storage, creating new keys"),await i()):a&&s?c.a.log("Cross-signing public keys trusted and private keys found locally"):l&&(c.a.log("Cross-signing private keys not found locally, but they are available in secret storage, reading storage and caching locally"),await this.checkOwnCrossSigningTrust());const d=o.crossSigningCallbacks.privateKeys;if(d.size&&!this._baseApis._cryptoCallbacks.saveCrossSigningKeys){const e=new _.b(o.accountDataClientAdapter,o.ssssCryptoCallbacks);await e.hasKey()&&(c.a.log("Storing new cross-signing private keys in secret storage"),await g.a.storeInSecretStorage(d,e))}const h=o.buildOperation();await h.apply(this),await o.persist(this),c.a.log("Cross-signing ready")},M.prototype.bootstrapSecretStorage=async function({createSecretStorageKey:e=(async()=>({})),keyBackupInfo:t,setupNewKeyBackup:n,setupNewSecretStorage:o,getKeyBackupPassphrase:r}={}){c.a.log("Bootstrapping Secure Secret Storage");const i=this._baseApis._cryptoCallbacks,a=new f.a(this._baseApis.store.accountData,i),s=new _.b(a.accountDataClientAdapter,a.ssssCryptoCallbacks);let l=null;const u=async(e,t)=>{e=e||{},t&&(e.key=t);const{keyId:n,keyInfo:o}=await s.addKey(_.a,e);return t&&a.ssssCryptoCallbacks.addPrivateKey(n,o,t),await s.setDefaultKeyId(n),n},h=async(e,t)=>{if(!t.mac){const n=await this._baseApis._cryptoCallbacks.getSecretStorageKey({keys:{[e]:t}},"");if(n){const o=n[1];a.ssssCryptoCallbacks.addPrivateKey(e,t,o);const{iv:r,mac:i}=await _.b._calculateKeyCheck(o);t.iv=r,t.mac=i,await a.setAccountData("m.secret_storage.key."+e,t)}}},p=async e=>{if(this._crossSigningInfo.getId()&&await this._crossSigningInfo.isStoredInKeyCache("master"))try{c.a.log("Adding cross-signing signature to key backup"),await this._crossSigningInfo.signObject(e,"master")}catch(e){c.a.error("Signing key backup with cross-signing keys failed",e)}else c.a.warn("Cross-signing keys not available, skipping signature on key backup")},m=await this.getSecretStorageKey(),[b,v]=m||[null,null],E=!o&&v&&v.algorithm===_.a;if(c.a.log({keyBackupInfo:t,setupNewKeyBackup:n,setupNewSecretStorage:o,storageExists:E,oldKeyInfo:v}),E||t)if(!E&&t){c.a.log("Secret storage does not exist, using key backup key");const e=await this.getSessionBackupPrivateKey()||await r(),n={};t.auth_data.private_key_salt&&t.auth_data.private_key_iterations&&(n.passphrase={algorithm:"m.pbkdf2",iterations:t.auth_data.private_key_iterations,salt:t.auth_data.private_key_salt,bits:256}),l=await u(n,e),await s.store("m.megolm_backup.v1",d.encodeBase64(e),[l]),await p(t.auth_data),a.addSessionBackup(t)}else c.a.log("Secret storage exists"),v&&v.algorithm===_.a&&await h(b,v);else{c.a.log("Secret storage does not exist, creating new storage key");const{keyInfo:t,privateKey:n}=await e();l=await u(t,n)}if(!this._baseApis._cryptoCallbacks.saveCrossSigningKeys&&await this.isCrossSigningReady()&&(l||!await this._crossSigningInfo.isStoredInSecretStorage(s))){c.a.log("Copying cross-signing private keys from cache to secret storage");const e=await this._crossSigningInfo.getCrossSigningKeysFromCache();await g.a.storeInSecretStorage(e,s)}if(n&&!t){c.a.log("Creating new message key backup version");const e=await this._baseApis.prepareKeyBackupVersion(null,{secureSecretStorage:!1}),t=Object(T.a)(e.recovery_key);await s.store("m.megolm_backup.v1",d.encodeBase64(t));const n={algorithm:e.algorithm,auth_data:e.auth_data};await p(n.auth_data),await this._signObject(n.auth_data),a.addSessionBackup(n)}const y=await s.get("m.megolm_backup.v1");if(y){c.a.info("Got session backup key from secret storage: caching");const e=P(y);e&&await s.store("m.megolm_backup.v1",e,[l||b]);const t=new Uint8Array(d.decodeBase64(e||y));await a.addSessionBackupPrivateKeyToCache(t)}const S=a.buildOperation();await S.apply(this),await a.persist(this),c.a.log("Secure Secret Storage ready")},M.prototype.addSecretStorageKey=function(e,t,n){return this._secretStorage.addKey(e,t,n)},M.prototype.hasSecretStorageKey=function(e){return this._secretStorage.hasKey(e)},M.prototype.getSecretStorageKey=function(e){return this._secretStorage.getKey(e)},M.prototype.storeSecret=function(e,t,n){return this._secretStorage.store(e,t,n)},M.prototype.getSecret=function(e){return this._secretStorage.get(e)},M.prototype.isSecretStored=function(e,t){return this._secretStorage.isStored(e,t)},M.prototype.requestSecret=function(e,t){return t||(t=Object.keys(this._deviceList.getRawStoredDevicesForUser(this._userId))),this._secretStorage.request(e,t)},M.prototype.getDefaultSecretStorageKeyId=function(){return this._secretStorage.getDefaultKeyId()},M.prototype.setDefaultSecretStorageKeyId=function(e){return this._secretStorage.setDefaultKeyId(e)},M.prototype.checkSecretStorageKey=function(e,t){return this._secretStorage.checkKey(e,t)},M.prototype.checkSecretStoragePrivateKey=function(t,n){let o=null;try{o=new e.Olm.PkDecryption;return o.init_with_private_key(t)===n}finally{o&&o.free()}},M.prototype.getSessionBackupPrivateKey=async function(){let e=await new Promise(e=>{this._cryptoStore.doTxn("readonly",[v.a.STORE_ACCOUNT],t=>{this._cryptoStore.getSecretStorePrivateKey(t,e,"m.megolm_backup.v1")})});if(e&&"string"==typeof e&&(e=new Uint8Array(d.decodeBase64(P(e)||e)),await this.storeSessionBackupPrivateKey(e)),e&&e.ciphertext){const t=o.from(this._olmDevice._pickleKey),n=await Object(R.a)(e,t,"m.megolm_backup.v1");e=d.decodeBase64(n)}return e},M.prototype.storeSessionBackupPrivateKey=async function(e){if(!(e instanceof Uint8Array))throw new Error("storeSessionBackupPrivateKey expects Uint8Array, got "+e);const t=o.from(this._olmDevice._pickleKey);return e=await Object(R.b)(d.encodeBase64(e),t,"m.megolm_backup.v1"),this._cryptoStore.doTxn("readwrite",[v.a.STORE_ACCOUNT],t=>{this._cryptoStore.storeSecretStorePrivateKey(t,"m.megolm_backup.v1",e)})},M.prototype.checkCrossSigningPrivateKey=function(t,n){let o=null;try{o=new e.Olm.PkSigning;return o.init_with_seed(t)===n}finally{o&&o.free()}},M.prototype._afterCrossSigningLocalKeyChange=async function(){c.a.info("Starting cross-signing key change post-processing");const e=this._deviceList.getStoredDevice(this._userId,this._deviceId),t=await this._crossSigningInfo.signDevice(this._userId,e);c.a.info("Starting background key sig upload for "+this._deviceId);const n=({shouldEmit:e})=>this._baseApis.uploadKeySignatures({[this._userId]:{[this._deviceId]:t}}).then(t=>{const{failures:o}=t||{};if(Object.keys(o||[]).length>0)throw e&&this._baseApis.emit("crypto.keySignatureUploadFailure",o,"_afterCrossSigningLocalKeyChange",n),new k.c("Key upload failed",{failures:o});c.a.info("Finished background key sig upload for "+this._deviceId)}).catch(e=>{c.a.error("Error during background key sig upload for "+this._deviceId,e)});n({shouldEmit:!0});const o=this._baseApis._cryptoCallbacks.shouldUpgradeDeviceVerifications;if(o){c.a.info("Starting device verification upgrade");const e={};for(const[t,n]of Object.entries(this._deviceList._crossSigningInfo)){const o=await this._checkForDeviceVerificationUpgrade(t,g.a.fromStorage(n,t));o&&(e[t]=o)}if(Object.keys(e).length>0){c.a.info(`Found ${Object.keys(e).length} verif users to upgrade`);try{const t=await o({users:e});if(t)for(const n of t)n in e&&await this._baseApis.setDeviceVerified(n,e[n].crossSigningInfo.getId())}catch(e){c.a.log("shouldUpgradeDeviceVerifications threw an error: not upgrading",e)}}c.a.info("Finished device verification upgrade")}c.a.info("Finished cross-signing key change post-processing")},M.prototype._checkForDeviceVerificationUpgrade=async function(e,t){const n=this._crossSigningInfo.checkUserTrust(t);if(t.firstUse&&!n.verified){const n=this._deviceList.getRawStoredDevicesForUser(e),o=await this._checkForValidDeviceSignature(e,t.keys.master,n);if(o.length)return{devices:o.map(e=>p.a.fromStorage(n[e],e)),crossSigningInfo:t}}},M.prototype._checkForValidDeviceSignature=async function(e,t,n){const o=[];if(n&&t.signatures&&t.signatures[e])for(const r of Object.keys(t.signatures[e])){const[,i]=r.split(":",2);if(i in n&&n[i].verified===I.VERIFIED)try{await d.verifySignature(this._olmDevice,t,e,i,n[i].keys[r]),o.push(i)}catch(e){}}return o},M.prototype.getCrossSigningId=function(e){return this._crossSigningInfo.getId(e)},M.prototype.getStoredCrossSigningForUser=function(e){return this._deviceList.getStoredCrossSigningForUser(e)},M.prototype.checkUserTrust=function(e){const t=this._deviceList.getStoredCrossSigningForUser(e);return t?this._crossSigningInfo.checkUserTrust(t):new g.c(!1,!1,!1)},M.prototype.checkDeviceTrust=function(e,t){const n=this._deviceList.getStoredDevice(e,t);return this._checkDeviceInfoTrust(e,n)},M.prototype._checkDeviceInfoTrust=function(e,t){const n=!(!t||!t.isVerified()),o=this._deviceList.getStoredCrossSigningForUser(e);if(t&&o){const r=this._trustCrossSignedDevices||e===this._userId;return this._crossSigningInfo.checkDeviceTrust(o,t,n,r)}return new g.b(!1,!1,n,!1)},M.prototype._onDeviceListUserCrossSigningUpdated=async function(e){if(e===this._userId){const t=this._deviceList.getStoredCrossSigningForUser(e),n=t?t.getId():null,o=this._crossSigningInfo.getId(),r=o!==n;o&&n&&!r?await this.checkOwnCrossSigningTrust():(this._storeTrustedSelfKeys(null),this.emit("crossSigning.keysChanged",{}),this.emit("userTrustStatusChanged",this._userId,this.checkUserTrust(e)))}else{await this._checkDeviceVerifications(e);const t=this._deviceList.getStoredCrossSigningForUser(e);t&&(t.updateCrossSigningVerifiedBefore(this.checkUserTrust(e).isCrossSigningVerified()),this._deviceList.setRawStoredCrossSigningForUser(e,t.toStorage())),this.emit("userTrustStatusChanged",e,this.checkUserTrust(e))}},M.prototype.checkOwnCrossSigningTrust=async function(){const e=this._userId;await this.downloadKeys([this._userId]);const t=this._deviceList.getStoredCrossSigningForUser(e);if(!t)return void c.a.error("Got cross-signing update event for user "+e+" but no new cross-signing information found!");const n=t.getId(),o=this._crossSigningInfo.getId()!==n;if(o){c.a.info("Got new master public key",n),c.a.info("Attempting to retrieve cross-signing master private key");let e=null;try{e=(await this._crossSigningInfo.getCrossSigningKey("master",n))[1],c.a.info("Got cross-signing master private key")}catch(e){c.a.error("Cross-signing master private key not available",e)}finally{e&&e.free()}}const r=this._crossSigningInfo.getId("self_signing"),i=this._crossSigningInfo.getId("user_signing");this._storeTrustedSelfKeys(t.keys);const a=r!==t.getId("self_signing"),s=i!==t.getId("user_signing"),l={};if(a){c.a.info("Got new self-signing key",t.getId("self_signing")),c.a.info("Attempting to retrieve cross-signing self-signing private key");let e=null;try{e=(await this._crossSigningInfo.getCrossSigningKey("self_signing",t.getId("self_signing")))[1],c.a.info("Got cross-signing self-signing private key")}catch(e){c.a.error("Cross-signing self-signing private key not available",e)}finally{e&&e.free()}const n=this._deviceList.getStoredDevice(this._userId,this._deviceId),o=await this._crossSigningInfo.signDevice(this._userId,n);l[this._deviceId]=o}if(s){c.a.info("Got new user-signing key",t.getId("user_signing")),c.a.info("Attempting to retrieve cross-signing user-signing private key");let e=null;try{e=(await this._crossSigningInfo.getCrossSigningKey("user_signing",t.getId("user_signing")))[1],c.a.info("Got cross-signing user-signing private key")}catch(e){c.a.error("Cross-signing user-signing private key not available",e)}finally{e&&e.free()}}if(o){const e=this._crossSigningInfo.keys.master;await this._signObject(e);const t=e.signatures[this._userId]["ed25519:"+this._deviceId];l[this._crossSigningInfo.getId()]=Object.assign({},e,{signatures:{[this._userId]:{["ed25519:"+this._deviceId]:t}}})}const u=Object.keys(l);if(u.length){const e=({shouldEmit:t})=>(c.a.info("Starting background key sig upload for "+u),this._baseApis.uploadKeySignatures({[this._userId]:l}).then(n=>{const{failures:o}=n||{};if(c.a.info("Finished background key sig upload for "+u),Object.keys(o||[]).length>0)throw t&&this._baseApis.emit("crypto.keySignatureUploadFailure",o,"checkOwnCrossSigningTrust",e),new k.c("Key upload failed",{failures:o})}).catch(e=>{c.a.error("Error during background key sig upload for "+u,e)}));e({shouldEmit:!0})}this.emit("userTrustStatusChanged",e,this.checkUserTrust(e)),o&&(this._baseApis.emit("crossSigning.keysChanged",{}),await this._afterCrossSigningLocalKeyChange()),await this.checkKeyBackup()},M.prototype._storeTrustedSelfKeys=async function(e){e?this._crossSigningInfo.setKeys(e):this._crossSigningInfo.clearKeys(),await this._cryptoStore.doTxn("readwrite",[v.a.STORE_ACCOUNT],e=>{this._cryptoStore.storeCrossSigningKeys(e,this._crossSigningInfo.keys)})},M.prototype._checkDeviceVerifications=async function(e){const t=this._baseApis._cryptoCallbacks.shouldUpgradeDeviceVerifications;if(t){if(c.a.info("Starting device verification upgrade for "+e),this._crossSigningInfo.keys.user_signing){const n=this._deviceList.getStoredCrossSigningForUser(e);if(n){const o=await this._checkForDeviceVerificationUpgrade(e,n);if(o){(await t({users:{[e]:o}})).includes(e)&&await this._baseApis.setDeviceVerified(e,n.getId())}}}c.a.info("Finished device verification upgrade for "+e)}},M.prototype._checkAndStartKeyBackup=async function(){if(c.a.log("Checking key backup status..."),this._baseApis.isGuest())return c.a.log("Skipping key backup check since user is guest"),this._checkedForBackup=!0,null;let e;try{e=await this._baseApis.getKeyBackupVersion()}catch(e){return c.a.log("Error checking for active key backup",e),404===e.httpStatus&&(this._checkedForBackup=!0),null}this._checkedForBackup=!0;const t=await this.isKeyBackupTrusted(e);return t.usable&&!this.backupInfo?(c.a.log("Found usable key backup v"+e.version+": enabling key backups"),this._baseApis.enableKeyBackup(e)):!t.usable&&this.backupInfo?(c.a.log("No usable key backup: disabling key backup"),this._baseApis.disableKeyBackup()):t.usable||this.backupInfo?t.usable&&this.backupInfo&&(e.version!==this.backupInfo.version?(c.a.log("On backup version "+this.backupInfo.version+" but found version "+e.version+": switching."),this._baseApis.disableKeyBackup(),this._baseApis.enableKeyBackup(e),await this.scheduleAllGroupSessionsForBackup()):c.a.log("Backup version "+e.version+" still current")):c.a.log("No usable key backup: not enabling key backup"),{backupInfo:e,trustInfo:t}},M.prototype.setTrustedBackupPubKey=async function(e){this._sessionStore.setLocalTrustedBackupPubKey(e),await this.checkKeyBackup()},M.prototype.checkKeyBackup=async function(){return this._checkedForBackup=!1,this._checkAndStartKeyBackup()},M.prototype.isKeyBackupTrusted=async function(e){const t={usable:!1,trusted_locally:!1,sigs:[]};if(!(e&&e.algorithm&&e.auth_data&&e.auth_data.public_key&&e.auth_data.signatures))return c.a.info("Key backup is absent or missing required data"),t;const n=this._sessionStore.getLocalTrustedBackupPubKey();e.auth_data.public_key===n&&(c.a.info("Backup public key "+n+" is trusted locally"),t.trusted_locally=!0);const o=e.auth_data.signatures[this._userId]||[];for(const n of Object.keys(o)){const o=n.split(":");if("ed25519"!==o[0]){c.a.log("Ignoring unknown signature type: "+o[0]);continue}const r={deviceId:o[1]},i=this._crossSigningInfo.getId();if(i===r.deviceId){r.crossSigningId=!0;try{await d.verifySignature(this._olmDevice,e.auth_data,this._userId,r.deviceId,i),r.valid=!0}catch(e){c.a.warning("Bad signature from cross signing key "+i,e),r.valid=!1}t.sigs.push(r);continue}const a=this._deviceList.getStoredDevice(this._userId,r.deviceId);if(a){r.device=a,r.deviceTrust=await this.checkDeviceTrust(this._userId,r.deviceId);try{await d.verifySignature(this._olmDevice,e.auth_data,this._userId,a.deviceId,a.getFingerprint()),r.valid=!0}catch(t){c.a.info("Bad signature from key ID "+n+" userID "+this._userId+" device ID "+a.deviceId+" fingerprint: "+a.getFingerprint(),e.auth_data,t),r.valid=!1}}else r.valid=null,c.a.info("Ignoring signature from unknown key "+n);t.sigs.push(r)}return t.usable=t.sigs.some(e=>e.valid&&(e.device&&e.deviceTrust.isVerified()||e.crossSigningId)),t.usable|=t.trusted_locally,t},M.prototype.enableLazyLoading=function(){this._lazyLoadMembers=!0},M.prototype.registerEventHandlers=function(e){const t=this;e.on("RoomMember.membership",(function(e,n,o){try{t._onRoomMembership(e,n,o)}catch(e){c.a.error("Error handling membership change:",e)}})),e.on("toDeviceEvent",t._onToDeviceEvent.bind(t));const n=t._onTimelineEvent.bind(t);e.on("Room.timeline",n),e.on("Event.decrypted",n)},M.prototype.start=function(){this._outgoingRoomKeyRequestManager.start()},M.prototype.stop=function(){this._outgoingRoomKeyRequestManager.stop(),this._deviceList.stop(),this._dehydrationManager.stop()},M.getOlmVersion=function(){return u.a.getOlmVersion()},M.prototype.getDeviceEd25519Key=function(){return this._olmDevice.deviceEd25519Key},M.prototype.getDeviceCurve25519Key=function(){return this._olmDevice.deviceCurve25519Key},M.prototype.setGlobalBlacklistUnverifiedDevices=function(e){this._globalBlacklistUnverifiedDevices=e},M.prototype.getGlobalBlacklistUnverifiedDevices=function(){return this._globalBlacklistUnverifiedDevices},M.prototype.setGlobalErrorOnUnknownDevices=function(e){this._globalErrorOnUnknownDevices=e},M.prototype.getGlobalErrorOnUnknownDevices=function(){return this._globalErrorOnUnknownDevices},M.prototype.uploadDeviceKeys=function(){const e=this,t=e._userId,n=e._deviceId,o={algorithms:e._supportedAlgorithms,device_id:n,keys:e._deviceKeys,user_id:t};return e._signObject(o).then(()=>e._baseApis.uploadKeysRequest({device_keys:o}))},M.prototype.updateOneTimeKeyCount=function(e){if(!isFinite(e))throw new TypeError("Parameter for updateOneTimeKeyCount has to be a number");this._oneTimeKeyCount=e},M.prototype.setNeedsNewFallback=function(e){this._needsNewFallback=!!e},M.prototype.getNeedsNewFallback=function(){return this._needsNewFallback},M.prototype.downloadKeys=function(e,t){return this._deviceList.downloadKeys(e,t)},M.prototype.getStoredDevicesForUser=function(e){return this._deviceList.getStoredDevicesForUser(e)},M.prototype.getStoredDevice=function(e,t){return this._deviceList.getStoredDevice(e,t)},M.prototype.saveDeviceList=function(e){return this._deviceList.saveIfDirty(e)},M.prototype.setDeviceVerification=async function(e,t,n,o,r){void 0===n&&(n=null),void 0===o&&(o=null),void 0===r&&(r=null);const i=this._deviceList.getStoredCrossSigningForUser(e);if(i&&i.getId()===t){if(null!==o||null!==r)throw new Error("Cannot set blocked or known for a cross-signing key");if(!n)throw new Error("Cannot set a cross-signing key as unverified");if(this._crossSigningInfo.getId()||e!==this._crossSigningInfo.userId||(this._storeTrustedSelfKeys(i.keys),this.emit("userTrustStatusChanged",this._userId,this.checkUserTrust(e))),e!==this._userId){c.a.info("Master key "+i.getId()+" for "+e+" marked verified. Signing...");const n=await this._crossSigningInfo.signUser(i);if(n){const o=async({shouldEmit:r})=>{c.a.info("Uploading signature for "+e+"...");const i=await this._baseApis.uploadKeySignatures({[e]:{[t]:n}}),{failures:a}=i||{};if(Object.keys(a||[]).length>0)throw r&&this._baseApis.emit("crypto.keySignatureUploadFailure",a,"setDeviceVerification",o),new k.c("Key upload failed",{failures:a})};await o({shouldEmit:!0})}return n}return i}const a=this._deviceList.getRawStoredDevicesForUser(e);if(!a||!a[t])throw new Error("Unknown device "+e+":"+t);const s=a[t];let l=s.verified;n?l=I.VERIFIED:null!==n&&l==I.VERIFIED&&(l=I.UNVERIFIED),o?l=I.BLOCKED:null!==o&&l==I.BLOCKED&&(l=I.UNVERIFIED);let u=s.known;if(null!==r&&(u=r),s.verified===l&&s.known===u||(s.verified=l,s.known=u,this._deviceList.storeDevicesForUser(e,a),this._deviceList.saveIfDirty()),n&&e===this._userId){let n;c.a.info("Own device "+t+" marked verified: signing");if(this.checkDeviceTrust(e,t).isCrossSigningVerified()?c.a.log(`Own device ${t} already cross-signing verified`):n=await this._crossSigningInfo.signDevice(e,p.a.fromStorage(s,t)),n){const o=async({shouldEmit:r})=>{c.a.info("Uploading signature for "+t);const i=await this._baseApis.uploadKeySignatures({[e]:{[t]:n}}),{failures:a}=i||{};if(Object.keys(a||[]).length>0)throw r&&this._baseApis.emit("crypto.keySignatureUploadFailure",a,"setDeviceVerification",o),new k.c("Key upload failed",{failures:a})};await o({shouldEmit:!0})}}const d=p.a.fromStorage(s,t);return this.emit("deviceVerificationChanged",e,t,d),d},M.prototype.findVerificationRequestDMInProgress=function(e){return this._inRoomVerificationRequests.findRequestInProgress(e)},M.prototype.getVerificationRequestsToDeviceInProgress=function(e){return this._toDeviceVerificationRequests.getRequestsInProgress(e)},M.prototype.requestVerificationDM=function(e,t){const n=this._inRoomVerificationRequests.findRequestInProgress(t);if(n)return Promise.resolve(n);const o=new C.a(this._baseApis,t,e);return this._requestVerificationWithChannel(e,o,this._inRoomVerificationRequests)},M.prototype.requestVerification=function(e,t){t||(t=Object.keys(this._deviceList.getRawStoredDevicesForUser(e)));const n=this._toDeviceVerificationRequests.findRequestInProgress(e,t);if(n)return Promise.resolve(n);const o=new x.a(this._baseApis,e,t,x.a.makeTransactionId());return this._requestVerificationWithChannel(e,o,this._toDeviceVerificationRequests)},M.prototype._requestVerificationWithChannel=async function(e,t,n){let o=new w.k(t,this._verificationMethods,this._baseApis);t.transactionId&&n.setRequestByChannel(t,o),await o.sendRequest();const r=n.getRequestByChannel(t);return r?o=r:(c.a.log(`Crypto: adding new request to requestsByTxnId with id ${t.transactionId} ${t.roomId}`),n.setRequestByChannel(t,o)),o},M.prototype.beginKeyVerification=function(e,t,n,o=null){let r;if(o){if(r=this._toDeviceVerificationRequests.getRequestBySenderAndTxnId(t,o),!r)throw new Error(`No request found for user ${t} with transactionId `+o)}else{o=x.a.makeTransactionId();const e=new x.a(this._baseApis,t,[n],o,n);r=new w.k(e,this._verificationMethods,this._baseApis),this._toDeviceVerificationRequests.setRequestBySenderAndTxnId(t,o,r)}return r.beginKeyVerification(e,{userId:t,deviceId:n})},M.prototype.legacyDeviceVerification=async function(e,t,n){const o=x.a.makeTransactionId(),r=new x.a(this._baseApis,e,[t],o,t),i=new w.k(r,this._verificationMethods,this._baseApis);this._toDeviceVerificationRequests.setRequestBySenderAndTxnId(e,o,i);const a=i.beginKeyVerification(n,{userId:e,deviceId:t});return await Promise.race([a.verify(),i.waitFor(e=>e.started)]),i},M.prototype.getOlmSessionsForUser=async function(e){const t=this.getStoredDevicesForUser(e)||[],n={};for(let e=0;e<t.length;++e){const o=t[e],r=o.getIdentityKey(),i=await this._olmDevice.getSessionInfoForDevice(r);n[o.deviceId]={deviceIdKey:r,sessions:i}}return n},M.prototype.getEventSenderDeviceInfo=function(e){const t=e.getSenderKey(),n=e.getWireContent().algorithm;if(!t||!n)return null;if(e.getForwardingCurve25519KeyChain().length>0)return null;if(e.isKeySourceUntrusted())return null;const o=this._deviceList.getDeviceByIdentityKey(n,t);if(null===o)return null;const r=e.getClaimedEd25519Key();return r?r!==o.getFingerprint()?(c.a.warn("Event "+e.getId()+" claims ed25519 key "+r+" but sender device has key "+o.getFingerprint()),null):o:(c.a.warn("Event "+e.getId()+" claims no ed25519 key: cannot verify sending device"),null)},M.prototype.getEventEncryptionInfo=function(e){const t={};if(t.senderKey=e.getSenderKey(),t.algorithm=e.getWireContent().algorithm,!t.senderKey||!t.algorithm)return t.encrypted=!1,t;t.encrypted=!0;e.getForwardingCurve25519KeyChain().length>0||e.isKeySourceUntrusted()?t.authenticated=!1:t.authenticated=!0,t.sender=this._deviceList.getDeviceByIdentityKey(t.algorithm,t.senderKey);const n=e.getClaimedEd25519Key();return n||(c.a.warn("Event "+e.getId()+" claims no ed25519 key: cannot verify sending device"),t.mismatchedSender=!0),t.sender&&n!==t.sender.getFingerprint()&&(c.a.warn("Event "+e.getId()+" claims ed25519 key "+n+"but sender device has key "+t.sender.getFingerprint()),t.mismatchedSender=!0),t},M.prototype.forceDiscardSession=function(e){const t=this._roomEncryptors[e];if(void 0===t)throw new Error("Room not encrypted");if(void 0===t.forceDiscardSession)throw new Error("Room encryption algorithm doesn't support session discarding");t.forceDiscardSession()},M.prototype.setRoomEncryption=async function(e,t,n){if(!t.algorithm)return void c.a.log("Ignoring setRoomEncryption with no algorithm");const o=this._roomList.getRoomEncryption(e);if(o&&JSON.stringify(o)!=JSON.stringify(t))return void c.a.error("Ignoring m.room.encryption event which requests a change of config in "+e);if(this._roomEncryptors[e])return;let r=null;o||(r=this._roomList.setRoomEncryption(e,t));const i=m.c[t.algorithm];if(!i)throw new Error("Unable to encrypt with "+t.algorithm);const a=new i({userId:this._userId,deviceId:this._deviceId,crypto:this,olmDevice:this._olmDevice,baseApis:this._baseApis,roomId:e,config:t});this._roomEncryptors[e]=a,r&&await r,this._lazyLoadMembers?c.a.log("Enabling encryption in "+e):(c.a.log("Enabling encryption in "+e+"; starting to track device lists for all users therein"),await this.trackRoomDevices(e),this.inhibitDeviceQuery||this._deviceList.refreshOutdatedDeviceLists())},M.prototype.trackRoomDevices=function(e){const t=async()=>{if(!this._roomEncryptors[e])return;const t=this._clientStore.getRoom(e);if(!t)throw new Error("Unable to start tracking devices in unknown room "+e);c.a.log(`Starting to track devices for room ${e} ...`);(await t.getEncryptionTargetMembers()).forEach(e=>{this._deviceList.startTrackingDeviceList(e.userId)})};let n=this._roomDeviceTrackingState[e];return n||(n=t(),this._roomDeviceTrackingState[e]=n.catch(t=>{throw this._roomDeviceTrackingState[e]=null,t})),n},M.prototype.ensureOlmSessionsForUsers=function(e){const t={};for(let n=0;n<e.length;++n){const o=e[n];t[o]=[];const r=this.getStoredDevicesForUser(o)||[];for(let e=0;e<r.length;++e){const n=r[e];n.getIdentityKey()!=this._olmDevice.deviceCurve25519Key&&(n.verified!=I.BLOCKED&&t[o].push(n))}}return d.ensureOlmSessionsForDevices(this._olmDevice,this._baseApis,t)},M.prototype.exportRoomKeys=async function(){const e=[];return await this._cryptoStore.doTxn("readonly",[v.a.STORE_INBOUND_GROUP_SESSIONS],t=>{this._cryptoStore.getAllEndToEndInboundGroupSessions(t,t=>{if(null===t)return;const n=this._olmDevice.exportInboundGroupSession(t.senderKey,t.sessionId,t.sessionData);delete n.first_known_index,n.algorithm=d.MEGOLM_ALGORITHM,e.push(n)})}),e},M.prototype.importRoomKeys=function(e,t={}){let n=0,o=0;const r=e.length;function i(){t.progressCallback({stage:"load_keys",successes:n,failures:o,total:r})}return Promise.all(e.map(e=>{if(!e.room_id||!e.algorithm)return c.a.warn("ignoring room key entry with missing fields",e),o++,t.progressCallback&&i(),null;return this._getRoomDecryptor(e.room_id,e.algorithm).importRoomKey(e,t).finally(e=>{n++,t.progressCallback&&i()})}))},M.prototype.scheduleKeyBackupSend=async function(e=1e4){if(!this._sendingBackups){this._sendingBackups=!0;try{const t=Math.random()*e;await Object(l.A)(t);let n=0;for(;;){if(!this.backupKey)return;try{if(0===await this._backupPendingKeys(200))return;n=0}catch(e){if(n++,c.a.log("Key backup request failed",e),e.data&&("M_NOT_FOUND"==e.data.errcode||"M_WRONG_ROOM_KEYS_VERSION"==e.data.errcode))throw await this.checkKeyBackup(),this.emit("crypto.keyBackupFailed",e.data.errcode),e}n&&await Object(l.A)(1e3*Math.pow(2,Math.min(n-1,4)))}}finally{this._sendingBackups=!1}}},M.prototype._backupPendingKeys=async function(e){const t=await this._cryptoStore.getSessionsNeedingBackup(e);if(!t.length)return 0;let n=await this._cryptoStore.countSessionsNeedingBackup();this.emit("crypto.keyBackupSessionsRemaining",n);const o={};for(const e of t){const t=e.sessionData.room_id;void 0===o[t]&&(o[t]={sessions:{}});const n=await this._olmDevice.exportInboundGroupSession(e.senderKey,e.sessionId,e.sessionData);n.algorithm=d.MEGOLM_ALGORITHM,delete n.session_id,delete n.room_id;const r=n.first_known_index;delete n.first_known_index;const i=this.backupKey.encrypt(JSON.stringify(n)),a=(n.forwarding_curve25519_key_chain||[]).length,s=this._deviceList.getUserByIdentityKey(d.MEGOLM_ALGORITHM,e.senderKey),c=this._deviceList.getDeviceByIdentityKey(d.MEGOLM_ALGORITHM,e.senderKey),l=this._checkDeviceInfoTrust(s,c).isVerified();o[t].sessions[e.sessionId]={first_message_index:r,forwarded_count:a,is_verified:l,session_data:i}}return await this._baseApis.sendKeyBackup(void 0,void 0,this.backupInfo.version,{rooms:o}),await this._cryptoStore.unmarkSessionsNeedingBackup(t),n=await this._cryptoStore.countSessionsNeedingBackup(),this.emit("crypto.keyBackupSessionsRemaining",n),t.length},M.prototype.backupGroupSession=async function(e,t,n,o,r,i,a){if(!this.backupInfo)throw new Error("Key backups are not enabled");await this._cryptoStore.markSessionsNeedingBackup([{senderKey:t,sessionId:o}]),this.scheduleKeyBackupSend()},M.prototype.scheduleAllGroupSessionsForBackup=async function(){await this.flagAllGroupSessionsForBackup(),this.scheduleKeyBackupSend(0)},M.prototype.flagAllGroupSessionsForBackup=async function(){await this._cryptoStore.doTxn("readwrite",[v.a.STORE_INBOUND_GROUP_SESSIONS,v.a.STORE_BACKUP],e=>{this._cryptoStore.getAllEndToEndInboundGroupSessions(e,t=>{null!==t&&this._cryptoStore.markSessionsNeedingBackup([t],e)})});const e=await this._cryptoStore.countSessionsNeedingBackup();return this.emit("crypto.keyBackupSessionsRemaining",e),e},M.prototype.countSessionsNeedingBackup=function(){return this._cryptoStore.countSessionsNeedingBackup()},M.prototype.prepareToEncrypt=function(e){const t=e.roomId,n=this._roomEncryptors[t];n&&n.prepareToEncrypt(e)},M.prototype.encryptEvent=async function(e,t){if(!t)throw new Error("Cannot send encrypted messages in unknown rooms");const n=e.getRoomId(),o=this._roomEncryptors[n];if(!o)throw new Error("Room was previously configured to use encryption, but is no longer. Perhaps the homeserver is hiding the configuration event.");this._roomDeviceTrackingState[n]||this.trackRoomDevices(n),await this._roomDeviceTrackingState[n];let r=e.getContent();const i=r["m.relates_to"];i&&(r=Object.assign({},r),delete r["m.relates_to"]);const a=await o.encryptMessage(t,e.getType(),r);i&&(a["m.relates_to"]=i),e.makeEncrypted("m.room.encrypted",a,this._olmDevice.deviceCurve25519Key,this._olmDevice.deviceEd25519Key)},M.prototype.decryptEvent=function(e){if(e.isRedacted())return Promise.resolve({clearEvent:{room_id:e.getRoomId(),type:"m.room.message",content:{}}});const t=e.getWireContent();return this._getRoomDecryptor(e.getRoomId(),t.algorithm).decryptEvent(e)},M.prototype.handleDeviceListChanges=async function(e,t){e.oldSyncToken&&await this._evalDeviceListChanges(t)},M.prototype.requestRoomKey=function(e,t,n=!1){return this._outgoingRoomKeyRequestManager.queueRoomKeyRequest(e,t,n).then(()=>{this._sendKeyRequestsImmediately&&this._outgoingRoomKeyRequestManager.sendQueuedRequests()}).catch(e=>{c.a.error("Error requesting key for event",e)})},M.prototype.cancelRoomKeyRequest=function(e){this._outgoingRoomKeyRequestManager.cancelRoomKeyRequest(e).catch(e=>{c.a.warn("Error clearing pending room key requests",e)})},M.prototype.cancelAndResendAllOutgoingKeyRequests=function(){return this._outgoingRoomKeyRequestManager.cancelAndResendAllOutgoingRequests()},M.prototype.onCryptoEvent=async function(e){const t=e.getRoomId(),n=e.getContent();try{await this.setRoomEncryption(t,n,!0)}catch(e){c.a.error("Error configuring encryption in room "+t+":",e)}},M.prototype.onSyncWillProcess=async function(e){e.oldSyncToken||(c.a.log("Initial sync performed - resetting device tracking state"),this._deviceList.stopTrackingAllDeviceLists(),this._deviceList.startTrackingDeviceList(this._userId),this._roomDeviceTrackingState={}),this._sendKeyRequestsImmediately=!1},M.prototype.onSyncCompleted=async function(e){const t=e.nextSyncToken;this._deviceList.setSyncToken(e.nextSyncToken),this._deviceList.saveIfDirty(),this._deviceList.lastKnownSyncToken=t,this._deviceList.startTrackingDeviceList(this._userId),this._deviceList.refreshOutdatedDeviceLists(),e.catchingUp||(L(this),this._processReceivedRoomKeyRequests(),this._outgoingRoomKeyRequestManager.sendQueuedRequests(),this._sendKeyRequestsImmediately=!0)},M.prototype._evalDeviceListChanges=async function(e){if(e.changed&&Array.isArray(e.changed)&&e.changed.forEach(e=>{this._deviceList.invalidateUserDeviceList(e)}),e.left&&Array.isArray(e.left)&&e.left.length){const t=new Set(await this._getTrackedE2eUsers());e.left.forEach(e=>{t.has(e)||this._deviceList.stopTrackingDeviceList(e)})}},M.prototype._getTrackedE2eUsers=async function(){const e=[];for(const t of this._getTrackedE2eRooms()){const n=await t.getEncryptionTargetMembers();for(const t of n)e.push(t.userId)}return e},M.prototype._getTrackedE2eRooms=function(){return this._clientStore.getRooms().filter(e=>{if(!this._roomEncryptors[e.roomId])return!1;if(!this._roomDeviceTrackingState[e.roomId])return!1;const t=e.getMyMembership();return"join"===t||"invite"===t})},M.prototype._onToDeviceEvent=function(e){try{c.a.log(`received to_device ${e.getType()} from: ${e.getSender()} id: ${e.getId()}`),"m.room_key"==e.getType()||"m.forwarded_room_key"==e.getType()?this._onRoomKeyEvent(e):"m.room_key_request"==e.getType()?this._onRoomKeyRequestEvent(e):"m.secret.request"===e.getType()?this._secretStorage._onRequestReceived(e):"m.secret.send"===e.getType()?this._secretStorage._onSecretReceived(e):"org.matrix.room_key.withheld"===e.getType()?this._onRoomKeyWithheldEvent(e):e.getContent().transaction_id?this._onKeyVerificationMessage(e):"m.bad.encrypted"===e.getContent().msgtype?this._onToDeviceBadEncrypted(e):e.isBeingDecrypted()&&e.once("Event.decrypted",e=>{this._onToDeviceEvent(e)})}catch(e){c.a.error("Error handling toDeviceEvent:",e)}},M.prototype._onRoomKeyEvent=function(e){const t=e.getContent();if(!t.room_id||!t.algorithm)return void c.a.error("key event is missing fields");this._checkedForBackup||this._checkAndStartKeyBackup();this._getRoomDecryptor(t.room_id,t.algorithm).onRoomKeyEvent(e)},M.prototype._onRoomKeyWithheldEvent=function(e){const t=e.getContent();if(!(("m.no_olm"===t.code||t.room_id&&t.session_id)&&t.algorithm&&t.sender_key))return void c.a.error("key withheld event is missing fields");c.a.info(`Got room key withheld event from ${e.getSender()} (${t.sender_key}) for ${t.algorithm}/${t.room_id}/${t.session_id} with reason ${t.code} (${t.reason})`);const n=this._getRoomDecryptor(t.room_id,t.algorithm);if(n.onRoomKeyWithheldEvent&&n.onRoomKeyWithheldEvent(e),!t.room_id){const e=this._getRoomDecryptors(t.algorithm);for(const n of e)n.retryDecryptionFromSender(t.sender_key)}},M.prototype._onKeyVerificationMessage=function(e){if(!x.a.validateEvent(e,this._baseApis))return;this._handleVerificationEvent(e,this._toDeviceVerificationRequests,e=>{if(!x.a.canCreateRequest(x.a.getEventType(e)))return;const t=e.getContent(),n=t&&t.from_device;if(!n)return;const o=e.getSender(),r=new x.a(this._baseApis,o,[n]);return new w.k(r,this._verificationMethods,this._baseApis)})},M.prototype._onTimelineEvent=function(e,t,n,o,{liveEvent:r}={}){if(!C.a.validateEvent(e,this._baseApis))return;this._handleVerificationEvent(e,this._inRoomVerificationRequests,e=>{const t=new C.a(this._baseApis,e.getRoomId());return new w.k(t,this._verificationMethods,this._baseApis)},r)},M.prototype._handleVerificationEvent=async function(e,t,n,o=!0){let r=t.getRequest(e),i=!1;if(!r){if(r=n(e),!r)return void c.a.log("Crypto: could not find VerificationRequest for "+e.getType()+", and could not create one, so ignoring.");i=!0,t.setRequest(e,r)}e.setVerificationRequest(r);try{await r.channel.handleEvent(e,r,o)}catch(e){c.a.error("error while handling verification event: "+e.message)}i&&!r.initiatedByMe&&!r.invalid&&!r.observeOnly&&this._baseApis.emit("crypto.verification.request",r)},M.prototype._onToDeviceBadEncrypted=async function(e){const t=e.getWireContent(),n=e.getSender(),o=t.algorithm,r=t.sender_key,i=()=>{const e=this._getRoomDecryptors(d.MEGOLM_ALGORITHM);for(const t of e)t.retryDecryptionFromSender(r)};if(void 0===n||void 0===r||void 0===r)return;this._lastNewSessionForced[n]=this._lastNewSessionForced[n]||{};const a=this._lastNewSessionForced[n][r]||0;if(a+36e5>Date.now())return c.a.debug("New session already forced with device "+n+":"+r+" at "+a+": not forcing another"),await this._olmDevice.recordSessionProblem(r,"wedged",!0),void i();let s=this._deviceList.getDeviceByIdentityKey(o,r);if(!s&&(await this.downloadKeys([n],!1),s=this._deviceList.getDeviceByIdentityKey(o,r),!s))return c.a.info("Couldn't find device for identity key "+r+": not re-establishing session"),await this._olmDevice.recordSessionProblem(r,"wedged",!1),void i();const l={};l[n]=[s],await d.ensureOlmSessionsForDevices(this._olmDevice,this._baseApis,l,!0),this._lastNewSessionForced[n][r]=Date.now();const u={algorithm:d.OLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key,ciphertext:{}};await d.encryptMessageForDevice(u.ciphertext,this._userId,this._deviceId,this._olmDevice,n,s,{type:"m.dummy"}),await this._olmDevice.recordSessionProblem(r,"wedged",!0),i(),await this._baseApis.sendToDevice("m.room.encrypted",{[n]:{[s.deviceId]:u}});const h=await this._outgoingRoomKeyRequestManager.getOutgoingSentRoomKeyRequest(n,s.deviceId);for(const e of h)this.requestRoomKey(e.requestBody,e.recipients,!0)},M.prototype._onRoomMembership=function(e,t,n){const o=t.roomId,r=this._roomEncryptors[o];r&&(this._roomDeviceTrackingState[o]&&("join"==t.membership?(c.a.log("Join event for "+t.userId+" in "+o),this._deviceList.startTrackingDeviceList(t.userId)):"invite"==t.membership&&this._clientStore.getRoom(o).shouldEncryptForInvitedMembers()&&(c.a.log("Invite event for "+t.userId+" in "+o),this._deviceList.startTrackingDeviceList(t.userId))),r.onRoomMembership(e,t,n))},M.prototype._onRoomKeyRequestEvent=function(e){const t=e.getContent();if("request"===t.action){const t=new B(e);this._receivedRoomKeyRequests.push(t)}else if("request_cancellation"===t.action){const t=new j(e);this._receivedRoomKeyRequestCancellations.push(t)}},M.prototype._processReceivedRoomKeyRequests=async function(){if(!this._processingRoomKeyRequests){this._processingRoomKeyRequests=!0;try{const e=this._receivedRoomKeyRequests;this._receivedRoomKeyRequests=[];const t=this._receivedRoomKeyRequestCancellations;this._receivedRoomKeyRequestCancellations=[],await Promise.all(e.map(e=>this._processReceivedRoomKeyRequest(e))),await Promise.all(t.map(e=>this._processReceivedRoomKeyRequestCancellation(e)))}catch(e){c.a.error("Error processing room key requsts: "+e)}finally{this._processingRoomKeyRequests=!1}}},M.prototype._processReceivedRoomKeyRequest=async function(e){const t=e.userId,n=e.deviceId,o=e.requestBody,r=o.room_id,i=o.algorithm;if(c.a.log(`m.room_key_request from ${t}:${n} for ${r} / ${o.session_id} (id ${e.requestId})`),t!==this._userId){if(!this._roomEncryptors[r])return void c.a.debug("room key request for unencrypted room "+r);const e=this._roomEncryptors[r],i=this._deviceList.getStoredDevice(t,n);if(!i)return void c.a.debug(`Ignoring keyshare for unknown device ${t}:${n}`);try{await e.reshareKeyWithDevice(o.sender_key,o.session_id,t,i)}catch(e){c.a.warn("Failed to re-share keys for session "+o.session_id+" with device "+t+":"+i.deviceId,e)}return}if(n===this._deviceId)return void c.a.log("Ignoring room key request from ourselves");if(!this._roomDecryptors[r])return void c.a.log("room key request for unencrypted room "+r);const a=this._roomDecryptors[r][i];if(a)if(await a.hasKeysForKeyRequest(e)){if(e.share=()=>{a.shareKeysWithDevice(e)},this.checkDeviceTrust(t,n).isVerified())return c.a.log("device is already verified: sharing keys"),void e.share();this.emit("crypto.roomKeyRequest",e)}else c.a.log(`room key request for unknown session ${r} / `+o.session_id);else c.a.log(`room key request for unknown alg ${i} in room ${r}`)},M.prototype._processReceivedRoomKeyRequestCancellation=async function(e){c.a.log(`m.room_key_request cancellation for ${e.userId}:${e.deviceId} (id ${e.requestId})`),this.emit("crypto.roomKeyRequestCancellation",e)},M.prototype._getRoomDecryptor=function(e,t){let n,o;if((e=e||null)&&(n=this._roomDecryptors[e],n||(this._roomDecryptors[e]=n={}),o=n[t],o))return o;const r=m.a[t];if(!r)throw new m.b("UNKNOWN_ENCRYPTION_ALGORITHM",'Unknown encryption algorithm "'+t+'".');return o=new r({userId:this._userId,crypto:this,olmDevice:this._olmDevice,baseApis:this._baseApis,roomId:e}),n&&(n[t]=o),o},M.prototype._getRoomDecryptors=function(e){const t=[];for(const n of Object.values(this._roomDecryptors))e in n&&t.push(n[e]);return t},M.prototype._signObject=async function(e){const t=e.signatures||{},n=e.unsigned;delete e.signatures,delete e.unsigned,t[this._userId]=t[this._userId]||{},t[this._userId]["ed25519:"+this._deviceId]=await this._olmDevice.sign(i.a.stringify(e)),e.signatures=t,void 0!==n&&(e.unsigned=n)};class B{constructor(e){const t=e.getContent();this.userId=e.getSender(),this.deviceId=t.requesting_device_id,this.requestId=t.request_id,this.requestBody=t.body||{},this.share=()=>{throw new Error("don't know how to share keys for this request yet")}}}class j{constructor(e){const t=e.getContent();this.userId=e.getSender(),this.deviceId=t.requesting_device_id,this.requestId=t.request_id}}}).call(this,n(5),n(31).Buffer)},function(e,t,n){"use strict";function o(e){Object.defineProperty(this,"deviceId",{enumerable:!0,value:e}),this.algorithms=[],this.keys={},this.verified=r.UNVERIFIED,this.known=!1,this.unsigned={},this.signatures={}}n.d(t,"a",(function(){return o})),o.fromStorage=function(e,t){const n=new o(t);for(const t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},o.prototype.toStorage=function(){return{algorithms:this.algorithms,keys:this.keys,verified:this.verified,known:this.known,unsigned:this.unsigned,signatures:this.signatures}},o.prototype.getFingerprint=function(){return this.keys["ed25519:"+this.deviceId]},o.prototype.getIdentityKey=function(){return this.keys["curve25519:"+this.deviceId]},o.prototype.getDisplayName=function(){return this.unsigned.device_display_name||null},o.prototype.isBlocked=function(){return this.verified==r.BLOCKED},o.prototype.isVerified=function(){return this.verified==r.VERIFIED},o.prototype.isUnverified=function(){return this.verified==r.UNVERIFIED},o.prototype.isKnown=function(){return 1==this.known},o.DeviceVerification={VERIFIED:1,UNVERIFIED:0,BLOCKED:-1};const r=o.DeviceVerification},function(e,t,n){"use strict";(function(e,o){n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return g}));var r=n(124),i=n(6),a=n(0),s=n(165),c=n(267);function l(e){return Object.values(e.keys)[0]}class u extends i.EventEmitter{constructor(e,t,n){super(),Object.defineProperty(this,"userId",{enumerable:!0,value:e}),this._callbacks=t||{},this._cacheCallbacks=n||{},this.keys={},this.firstUse=!0,this.crossSigningVerifiedBefore=!1}static fromStorage(e,t){const n=new u(t);for(const t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}toStorage(){return{keys:this.keys,firstUse:this.firstUse,crossSigningVerifiedBefore:this.crossSigningVerifiedBefore}}async getCrossSigningKey(t,n){const o=["master","self_signing","user_signing"].indexOf(t)>=0;if(!this._callbacks.getCrossSigningKey)throw new Error("No getCrossSigningKey callback supplied");function r(t){if(!t)return;const o=new e.Olm.PkSigning,r=o.init_with_seed(t);if(r===n)return[r,o];o.free()}let i;void 0===n&&(n=this.getId(t)),this._cacheCallbacks.getCrossSigningKeyCache&&o&&(i=await this._cacheCallbacks.getCrossSigningKeyCache(t,n));const a=r(i);if(a)return a;i=await this._callbacks.getCrossSigningKey(t,n);const s=r(i);if(s)return this._cacheCallbacks.storeCrossSigningKeyCache&&o&&await this._cacheCallbacks.storeCrossSigningKeyCache(t,i),s;if(!i)throw new Error("getCrossSigningKey callback for "+t+" returned falsey");throw new Error("Key type "+t+" from getCrossSigningKey callback did not match")}async isStoredInSecretStorage(e){const t=await e.isStored("m.cross_signing.master",!1)||{};function n(e){for(const n of Object.keys(t))e[n]||delete t[n]}for(const t of["self_signing","user_signing"])n(await e.isStored("m.cross_signing."+t,!1)||{});return Object.keys(t).length?t:null}static async storeInSecretStorage(e,t){for(const[n,o]of e){const e=Object(r.encodeBase64)(o);await t.store("m.cross_signing."+n,e)}}static async getFromSecretStorage(e,t){const n=await t.get("m.cross_signing."+e);return n?Object(r.decodeBase64)(n):null}async isStoredInKeyCache(e){const t=this._cacheCallbacks;if(!t)return!1;const n=e?[e]:["master","self_signing","user_signing"];for(const e of n)if(!await t.getCrossSigningKeyCache(e))return!1;return!0}async getCrossSigningKeysFromCache(){const e=new Map,t=this._cacheCallbacks;if(!t)return e;for(const n of["master","self_signing","user_signing"]){const o=await t.getCrossSigningKeyCache(n);o&&e.set(n,o)}return e}getId(e){if(e=e||"master",!this.keys[e])return null;return l(this.keys[e])}async resetKeys(t){if(!this._callbacks.saveCrossSigningKeys)throw new Error("No saveCrossSigningKeys callback supplied");if(void 0===t||t&d.MASTER||!this.keys.master)t=d.MASTER|d.USER_SIGNING|d.SELF_SIGNING;else if(0===t)return;const n={},o={};let i,a;try{if(t&d.MASTER?(i=new e.Olm.PkSigning,n.master=i.generate_seed(),a=i.init_with_seed(n.master),o.master={user_id:this.userId,usage:["master"],keys:{["ed25519:"+a]:a}}):[a,i]=await this.getCrossSigningKey("master"),t&d.SELF_SIGNING){const t=new e.Olm.PkSigning;try{n.self_signing=t.generate_seed();const e=t.init_with_seed(n.self_signing);o.self_signing={user_id:this.userId,usage:["self_signing"],keys:{["ed25519:"+e]:e}},Object(r.pkSign)(o.self_signing,i,this.userId,a)}finally{t.free()}}if(t&d.USER_SIGNING){const t=new e.Olm.PkSigning;try{n.user_signing=t.generate_seed();const e=t.init_with_seed(n.user_signing);o.user_signing={user_id:this.userId,usage:["user_signing"],keys:{["ed25519:"+e]:e}},Object(r.pkSign)(o.user_signing,i,this.userId,a)}finally{t.free()}}Object.assign(this.keys,o),this._callbacks.saveCrossSigningKeys(n)}finally{i&&i.free()}}clearKeys(){this.keys={}}setKeys(e){const t={};if(e.master){if(e.master.user_id!==this.userId){const t="Mismatched user ID "+e.master.user_id+" in master key from "+this.userId;throw a.a.error(t),new Error(t)}this.keys.master?l(e.master)!==this.getId()&&(this.firstUse=!1):this.firstUse=!0,t.master=e.master}else{if(!this.keys.master)throw new Error("Tried to set cross-signing keys without a master key");t.master=this.keys.master}const n=l(t.master);if(e.user_signing){if(e.user_signing.user_id!==this.userId){const t="Mismatched user ID "+e.master.user_id+" in user_signing key from "+this.userId;throw a.a.error(t),new Error(t)}try{Object(r.pkVerify)(e.user_signing,n,this.userId)}catch(e){throw a.a.error("invalid signature on user-signing key"),e}}if(e.self_signing){if(e.self_signing.user_id!==this.userId){const t="Mismatched user ID "+e.master.user_id+" in self_signing key from "+this.userId;throw a.a.error(t),new Error(t)}try{Object(r.pkVerify)(e.self_signing,n,this.userId)}catch(e){throw a.a.error("invalid signature on self-signing key"),e}}e.master&&(this.keys.master=e.master,this.keys.self_signing=null,this.keys.user_signing=null),e.self_signing&&(this.keys.self_signing=e.self_signing),e.user_signing&&(this.keys.user_signing=e.user_signing)}updateCrossSigningVerifiedBefore(e){!this.crossSigningVerifiedBefore&&e&&(this.crossSigningVerifiedBefore=!0)}async signObject(e,t){if(!this.keys[t])throw new Error("Attempted to sign with "+t+" key but no such key present");const[n,o]=await this.getCrossSigningKey(t);try{return Object(r.pkSign)(e,o,this.userId,n),e}finally{o.free()}}async signUser(e){if(this.keys.user_signing)return this.signObject(e.keys.master,"user_signing");a.a.info("No user signing key: not signing user")}async signDevice(e,t){if(e!==this.userId)throw new Error(`Trying to sign ${e}'s device; can only sign our own device`);if(this.keys.self_signing)return this.signObject({algorithms:t.algorithms,keys:t.keys,device_id:t.deviceId,user_id:e},"self_signing");a.a.info("No self signing key: not signing device")}checkUserTrust(e){if(this.userId===e.userId&&this.getId()&&this.getId()===e.getId()&&this.getId("self_signing")&&this.getId("self_signing")===e.getId("self_signing"))return new h(!0,!0,this.firstUse);if(!this.keys.user_signing)return new h(!1,!1,e.firstUse);let t;const n=e.keys.master,o=this.getId("user_signing");try{Object(r.pkVerify)(n,o,this.userId),t=!0}catch(e){t=!1}return new h(t,e.crossSigningVerifiedBefore,e.firstUse)}checkDeviceTrust(e,t,n,o){const i=this.checkUserTrust(e),a=e.keys.self_signing;if(!a)return new p(!1,!1,n,o);const s=function(e,t){return{algorithms:e.algorithms,keys:e.keys,device_id:e.deviceId,user_id:t,signatures:e.signatures}}(t,e.userId);try{return Object(r.pkVerify)(a,e.getId(),e.userId),Object(r.pkVerify)(s,l(a),e.userId),p.fromUserTrustLevel(i,n,o)}catch(e){return new p(!1,!1,n,o)}}getCacheCallbacks(){return this._cacheCallbacks}}const d={MASTER:4,USER_SIGNING:2,SELF_SIGNING:1};class h{constructor(e,t,n){this._crossSigningVerified=e,this._crossSigningVerifiedBefore=t,this._tofu=n}isVerified(){return this.isCrossSigningVerified()}isCrossSigningVerified(){return this._crossSigningVerified}wasCrossSigningVerified(){return this._crossSigningVerifiedBefore}isTofu(){return this._tofu}}class p{constructor(e,t,n,o){this._crossSigningVerified=e,this._tofu=t,this._localVerified=n,this._trustCrossSignedDevices=o}static fromUserTrustLevel(e,t,n){return new p(e._crossSigningVerified,e._tofu,t,n)}isVerified(){return Boolean(this.isLocallyVerified()||this._trustCrossSignedDevices&&this.isCrossSigningVerified())}isCrossSigningVerified(){return this._crossSigningVerified}isLocallyVerified(){return this._localVerified}isTofu(){return this._tofu}}function m(e,t){return{getCrossSigningKeyCache:async function(n,i){const a=await new Promise(t=>e.doTxn("readonly",[s.a.STORE_ACCOUNT],o=>{e.getSecretStorePrivateKey(o,t,n)}));if(a&&a.ciphertext){const e=o.from(t._pickleKey),i=await Object(c.a)(a,e,n);return Object(r.decodeBase64)(i)}return a},storeCrossSigningKeyCache:async function(n,i){if(!(i instanceof Uint8Array))throw new Error("storeCrossSigningKeyCache expects Uint8Array, got "+i);const a=o.from(t._pickleKey);return i=await Object(c.b)(Object(r.encodeBase64)(i),a,n),e.doTxn("readwrite",[s.a.STORE_ACCOUNT],t=>{e.storeSecretStorePrivateKey(t,n,i)})}}}async function g(e,t,n){if(e.getUserId()===t)return a.a.log("Cross-signing: Self-verification done; requesting keys"),new Promise((t,o)=>{const i=e,s=i._crypto._crossSigningInfo,c=new u(s.userId,{getCrossSigningKey:async e=>{a.a.debug("Cross-signing: requesting secret",e,n);const{promise:t}=i.requestSecret("m.cross_signing."+e,[n]),o=await t,s=Object(r.decodeBase64)(o);return Uint8Array.from(s)}},s._cacheCallbacks);c.keys=s.keys;const l=new Promise((e,t)=>{setTimeout(e,6e4,new Error("Timeout"))}),d=new Promise(async e=>{if(!await i._crypto.getSessionBackupPrivateKey()){a.a.info("No cached backup key found. Requesting...");const e=i.requestSecret("m.megolm_backup.v1",[n]),t=await e.promise;a.a.info("Got key backup key, decoding...");const o=Object(r.decodeBase64)(t);a.a.info("Decoded backup key, storing..."),i._crypto.storeSessionBackupPrivateKey(Uint8Array.from(o)),a.a.info("Backup key stored. Starting backup restore...");const s=await i.getKeyBackupVersion();i.restoreKeyBackupWithCache(void 0,void 0,s).then(()=>{a.a.info("Backup restored.")})}e()});return Promise.race([Promise.all([c.getCrossSigningKey("master"),c.getCrossSigningKey("self_signing"),c.getCrossSigningKey("user_signing"),d]),l]).then(t,o)}).catch(e=>{a.a.warn("Cross-signing: failure while requesting keys:",e)})}}).call(this,n(5),n(31).Buffer)},function(e,t,n){"use strict";function o(e){return e/10+"rem"}function r(e){return e+"px"}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports.Container=n(851),e.exports.MapStore=n(853),e.exports.Mixin=n(861),e.exports.ReduceStore=n(544),e.exports.Store=n(545)},function(e,t,n){"use strict";function o(e,t,n){return t<=e&&e<=n}function r(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function i(e){this.tokens=[].slice.call(e)}i.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};function a(e,t){if(e)throw TypeError("Decoder error");return t||65533}function s(e,t){if(!(this instanceof s))return new s(e,t);if("utf-8"!==(e=void 0!==e?String(e).toLowerCase():"utf-8"))throw new Error("Encoding not supported. Only utf-8 is supported");t=r(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(t.fatal),this._ignoreBOM=Boolean(t.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function c(e,t){if(!(this instanceof c))return new c(e,t);if("utf-8"!==(e=void 0!==e?String(e).toLowerCase():"utf-8"))throw new Error("Encoding not supported. Only utf-8 is supported");t=r(t),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(t.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function l(e){var t=e.fatal,n=0,r=0,i=0,s=128,c=191;this.handler=function(e,l){if(-1===l&&0!==i)return i=0,a(t);if(-1===l)return-1;if(0===i){if(o(l,0,127))return l;if(o(l,194,223))i=1,n=l-192;else if(o(l,224,239))224===l&&(s=160),237===l&&(c=159),i=2,n=l-224;else{if(!o(l,240,244))return a(t);240===l&&(s=144),244===l&&(c=143),i=3,n=l-240}return n<<=6*i,null}if(!o(l,s,c))return n=i=r=0,s=128,c=191,e.prepend(l),a(t);if(s=128,c=191,n+=l-128<<6*(i-(r+=1)),r!==i)return null;var u=n;return n=i=r=0,u}}function u(e){e.fatal;this.handler=function(e,t){if(-1===t)return-1;if(o(t,0,127))return t;var n,r;o(t,128,2047)?(n=1,r=192):o(t,2048,65535)?(n=2,r=224):o(t,65536,1114111)&&(n=3,r=240);for(var i=[(t>>6*n)+r];n>0;){var a=t>>6*(n-1);i.push(128|63&a),n-=1}return i}}s.prototype={decode:function(e,t){var n;n="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=r(t),this._streaming||(this._decoder=new l({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(t.stream);for(var o,a=new i(n),s=[];!a.endOfStream()&&-1!==(o=this._decoder.handler(a,a.read()));)null!==o&&(Array.isArray(o)?s.push.apply(s,o):s.push(o));if(!this._streaming){do{if(-1===(o=this._decoder.handler(a,a.read())))break;null!==o&&(Array.isArray(o)?s.push.apply(s,o):s.push(o))}while(!a.endOfStream());this._decoder=null}return s.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===s[0]?(this._BOMseen=!0,s.shift()):this._BOMseen=!0)),function(e){for(var t="",n=0;n<e.length;++n){var o=e[n];o<=65535?t+=String.fromCharCode(o):(o-=65536,t+=String.fromCharCode(55296+(o>>10),56320+(1023&o)))}return t}(s)}},c.prototype={encode:function(e,t){e=e?String(e):"",t=r(t),this._streaming||(this._encoder=new u(this._options)),this._streaming=Boolean(t.stream);for(var n,o=[],a=new i(function(e){for(var t=String(e),n=t.length,o=0,r=[];o<n;){var i=t.charCodeAt(o);if(i<55296||i>57343)r.push(i);else if(56320<=i&&i<=57343)r.push(65533);else if(55296<=i&&i<=56319)if(o===n-1)r.push(65533);else{var a=e.charCodeAt(o+1);if(56320<=a&&a<=57343){var s=1023&i,c=1023&a;r.push(65536+(s<<10)+c),o+=1}else r.push(65533)}o+=1}return r}(e));!a.endOfStream()&&-1!==(n=this._encoder.handler(a,a.read()));)Array.isArray(n)?o.push.apply(o,n):o.push(n);if(!this._streaming){for(;-1!==(n=this._encoder.handler(a,a.read()));)Array.isArray(n)?o.push.apply(o,n):o.push(n);this._encoder=null}return new Uint8Array(o)}},t.TextEncoder=c,t.TextDecoder=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l}));var o=n(84),r=n.n(o),i=n(83);const a=r.a.shape({userId:r.a.string.isRequired,displayname:r.a.string,avatarUrl:r.a.string}),s=r.a.shape({displayname:r.a.string,name:r.a.string,roomId:r.a.string.isRequired,canonicalAlias:r.a.string,avatarUrl:r.a.string});function c(e){return{userId:e.user_id,displayname:e.displayname,avatarUrl:e.avatar_url,isPrivileged:e.is_privileged}}function l(e){return{displayname:e.name||e.canonical_alias||Object(i.a)("Unnamed Room"),name:e.name,roomId:e.room_id,canonicalAlias:e.canonical_alias,avatarUrl:e.avatar_url,topic:e.topic,numJoinedMembers:e.num_joined_members,worldReadable:e.world_readable,guestCanJoin:e.guest_can_join,isPublic:!1!==e.is_public}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"h",(function(){return g})),n.d(t,"g",(function(){return f}));var o=n(86),r=n(225);const i="all_messages_loud",a="all_messages",s="mentions_only",c="mute",l=[a,i],u=[...l,s];function d(e){return l.includes(e)}function h(e){return u.includes(e)}function p(e){return e.reduce((e,t)=>{const n=m(t.roomId),o=t.getUnreadNotificationCount("highlight")>0,r=f(t),i=r>0&&d(n),a=o&&h(n);return(i||a)&&(e.count+=r,o&&(e.highlight=!0)),e},{count:0,highlight:!1})}function m(e){if(o.a.get().isGuest())return a;if(_(e))return c;let t=null;try{t=o.a.get().getRoomPushRule("global",e)}catch(e){return null}if(!t||!t.enabled)return a;if(v(t))return s;return r.a.actionListToActionsObject(t.actions).tweaks.sound?i:null}function g(e,t){return t===c?function(e){const t=o.a.get(),n=[],r=t.getRoomPushRule("global",e);r&&n.push(t.deletePushRule("global","room",r.rule_id));return n.push(t.addPushRule("global","override",e,{conditions:[{kind:"event_match",key:"room_id",pattern:e}],actions:["dont_notify"]})),Promise.all(n)}(e):function(e,t){const n=o.a.get(),r=[],i=_(e);i&&r.push(n.deletePushRule("global","override",i.rule_id));if("all_messages"===t){const t=n.getRoomPushRule("global",e);t&&r.push(n.deletePushRule("global","room",t.rule_id))}else"mentions_only"===t?(r.push(n.addPushRule("global","room",e,{actions:["dont_notify"]})),r.push(n.setPushRuleEnabled("global","room",e,!0))):(r.push(n.addPushRule("global","room",e,{actions:["notify",{set_tweak:"sound",value:"default"}]})),r.push(n.setPushRuleEnabled("global","room",e,!0)));return Promise.all(r)}(e,t)}function f(e,t=null){let n=e.getUnreadNotificationCount(t);const r=e.currentState.getStateEvents("m.room.create","");if(r&&r.getContent().predecessor){const e=r.getContent().predecessor.room_id,t=o.a.get().getRoom(e);t&&(n+=t.getUnreadNotificationCount("highlight"))}return n}function _(e){if(!o.a.get().pushRules||!o.a.get().pushRules.global||!o.a.get().pushRules.global.override)return null;for(const t of o.a.get().pushRules.global.override)if(b(e,t)&&v(t)&&t.enabled)return t;return null}function b(e,t){if(1!==t.conditions.length)return!1;const n=t.conditions[0];return"event_match"===n.kind&&"room_id"===n.key&&n.pattern===e}function v(e){return 1===e.actions.length&&"dont_notify"===e.actions[0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(862);Object.defineProperty(t,"DragDropContext",{enumerable:!0,get:function(){return a(o).default}});var r=n(950);Object.defineProperty(t,"Droppable",{enumerable:!0,get:function(){return a(r).default}});var i=n(971);function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Draggable",{enumerable:!0,get:function(){return a(i).default}})},function(e,t){e.exports=!0},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(920),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,i.default)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={movement:t.noMovement={displaced:[],amount:{x:0,y:0},isBeyondStartPosition:!1},direction:null,destination:null};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDroppableDimension=t.scrollDroppable=t.clip=t.getDraggableDimension=t.noSpacing=void 0;var o=c(n(205)),r=n(932),i=c(n(234)),a=n(274),s=n(125);function c(e){return e&&e.__esModule?e:{default:e}}var l={x:0,y:0},u=t.noSpacing={top:0,right:0,bottom:0,left:0},d=function(e,t){var n=e.top,o=e.right,r=e.bottom,a=e.left;return(0,i.default)({top:n+t.y,left:a+t.x,bottom:r+t.y,right:o+t.x})},h=function(e,t){var n=e.top,o=e.right,r=e.bottom,a=e.left;return(0,i.default)({top:n-t.top,left:a-t.left,bottom:r+t.bottom,right:o+t.right})},p=(t.getDraggableDimension=function(e){var t=e.descriptor,n=e.client,o=e.margin,r=void 0===o?u:o,a=e.windowScroll,s=d(n,void 0===a?l:a);return{descriptor:t,placeholder:{margin:r,withoutMargin:{width:n.width,height:n.height}},client:{withoutMargin:(0,i.default)(n),withMargin:(0,i.default)(h(n,r))},page:{withoutMargin:(0,i.default)(s),withMargin:(0,i.default)(h(s,r))}}},t.clip=function(e,t){var n=(0,i.default)({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n});t.scrollDroppable=function(e,t){var n=e.viewport,r=(0,s.subtract)(t,n.frameScroll.initial),i=(0,s.negate)(r),c=(0,a.offset)(n.subject,i),l={frame:n.frame,subject:n.subject,frameScroll:{initial:n.frameScroll.initial,current:t,diff:{value:r,displacement:i}},clipped:p(n.frame,c)};return(0,o.default)({},e,{viewport:l})},t.getDroppableDimension=function(e){var t=e.descriptor,n=e.client,o=e.frameClient,s=e.frameScroll,c=void 0===s?l:s,m=e.direction,g=void 0===m?"vertical":m,f=e.margin,_=void 0===f?u:f,b=e.padding,v=void 0===b?u:b,E=e.windowScroll,y=void 0===E?l:E,S=e.isEnabled,T=void 0===S||S,w=h(n,_),C=d(n,y),x=h(C,_),O=o?d(o,y):x,k={frame:O,frameScroll:{initial:c,current:c,diff:{value:l,displacement:l}},subject:x,clipped:p(O,x)};return{descriptor:t,isEnabled:T,axis:"vertical"===g?r.vertical:r.horizontal,client:{withoutMargin:(0,i.default)(n),withMargin:(0,i.default)(w),withMarginAndPadding:(0,i.default)(h(w,v))},page:{withoutMargin:(0,i.default)(C),withMargin:x,withMarginAndPadding:(0,i.default)(h(C,(0,a.add)(_,v)))},viewport:k}}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.preventDefault(),e.stopPropagation()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));const o="filter_changed";let r;!function(e){e[e.Lowest=0]="Lowest",e[e.Highest=1]="Highest"}(r||(r={}))},function(e,t,n){"use strict";t.__esModule=!0,t.inherits=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Object.create(e.prototype);for(var r in n)o[r]=n[r];return o.constructor=t,t.prototype=o,t}},function(e,t,n){(function(o){var r=n(277),i=n(1031);(t=e.exports=function(e,n,o){var r=t.evaluate(e,n,o),i=t.evaluate("<root></root>",n,!1)[0];return i.type="root",i.parent=null,t.update(r,i),i}).evaluate=function(e,t,n){var a;(o.isBuffer(e)&&(e=e.toString()),"string"==typeof e)?a=t.xmlMode||t._useHtmlParser2?r.parseDOM(e,t):function(e,t){return(t?i.parse:i.parseFragment)(e,{treeAdapter:i.treeAdapters.htmlparser2}).children}(e,n):a=e;return a},t.update=function(e,t){Array.isArray(e)||(e=[e]),t?t.children=e:t=null;for(var n=0;n<e.length;n++){var o=e[n],r=o.parent||o.root,i=r&&r.children;i&&i!==e&&(i.splice(i.indexOf(o),1),o.prev&&(o.prev.next=o.next),o.next&&(o.next.prev=o.prev)),t?(o.prev=e[n-1]||null,o.next=e[n+1]||null):o.prev=o.next=null,t&&"root"===t.type?(o.root=t,o.parent=null):(o.root=null,o.parent=t)}return t}}).call(this,n(31).Buffer)},function(e,t,n){"use strict";(e.exports=function(e){var t={},n=this._getOverriddenMethods(this,t);Object.keys(n).forEach((function(o){"function"==typeof n[o]&&(t[o]=e[o],e[o]=n[o])}))}).prototype._getOverriddenMethods=function(){throw new Error("Not implemented")}},function(e,t,n){e.exports=r;var o=n(6).EventEmitter;function r(){o.call(this)}n(152)(r,o),r.Readable=n(436),r.Writable=n(1044),r.Duplex=n(1045),r.Transform=n(1046),r.PassThrough=n(1047),r.Stream=r,r.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),0===o.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",r),e.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,o,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,o)}));case 4:return t.nextTick((function(){e.call(null,n,o,r)}));default:for(i=new Array(s-1),a=0;a<i.length;)i[a++]=arguments[a];return t.nextTick((function(){e.apply(null,i)}))}}}:e.exports=t}).call(this,n(161))},function(e,t,n){var o=n(618);t.default={withDomLvl1:!0,normalizeWhitespace:!1,xml:!1,decodeEntities:!0},t.flatten=function(e){return e&&e.xml?o({xmlMode:!0},e.xml):e}},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 o=n(624),r=n(1067),i=n(209);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t,n){var o=n(1062),r=n(193),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=o(function(){return arguments}())?o:function(e){return r(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){var o=n(624),r=n(1071),i=n(209);e.exports=function(e){return i(e)?o(e,!0):r(e)}},function(e,t,n){var o=n(347),r=n(144);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=o(e.prototype),i=e.apply(n,t);return r(i)?i:n}}},function(e,t,n){var o=n(144),r=Object.create,i=function(){function e(){}return function(t){if(!o(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t){e.exports=function(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var a=e[n];a!==t&&"__lodash_placeholder__"!==a||(e[n]="__lodash_placeholder__",i[r++]=n)}return i}},function(e,t,n){var o=n(240),r=n(193);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==o(e)}},function(e,t,n){var o=n(639),r=n(284),i=n(1100),a=n(111);e.exports=function(e,t){return(a(e)?o:r)(e,i(t))}},function(e,t,n){var o=n(1117),r=n(1118),i=n(1119),a=n(1120),s=n(1121);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}c.prototype.clear=o,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var o=n(241);e.exports=function(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}},function(e,t,n){var o=n(208)(Object,"create");e.exports=o},function(e,t,n){var o=n(1135);e.exports=function(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var o=n(111),r=n(464),i=n(1170),a=n(1173);e.exports=function(e,t){return o(e)?e:r(e,t)?[e]:i(a(e))}},function(e,t,n){const o=n(1202),r=n(1217),{klona:i}=n(1218),{isPlainObject:a}=n(1219),s=n(1220),c=n(1221),{parse:l}=n(1222),u=n(107),d=["img","audio","video","picture","svg","object","map","iframe","embed"],h=["script","style"];function p(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function m(e,t){return{}.hasOwnProperty.call(e,t)}function g(e,t){const n=[];return p(e,(function(e){t(e)&&n.push(e)})),n}e.exports=_;const f=/^[^\0\t\n\f\r /<=>]+$/;function _(e,t,n){let v="",E="";function y(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=v.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(R.length){R[R.length-1].text+=n.text}},this.updateParentNodeMediaChildren=function(){if(R.length&&d.includes(this.tag)){R[R.length-1].mediaChildren.push(this.tag)}}}t?(t=Object.assign({},_.defaults,t)).parser?t.parser=Object.assign({},b,t.parser):t.parser=b:(t=_.defaults).parser=b,h.forEach((function(e){t.allowedTags&&t.allowedTags.includes(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const S=t.nonTextTags||["script","style","textarea","option"];let T,w;t.allowedAttributes&&(T={},w={},p(t.allowedAttributes,(function(e,t){T[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(r(e).replace(/\\\*/g,".*")):T[t].push(e)})),w[t]=new RegExp("^("+n.join("|")+")$")})));const C={};p(t.allowedClasses,(function(e,t){T&&(m(T,t)||(T[t]=[]),T[t].push("class")),C[t]=e}));const x={};let O,k,R,A,I,D,N;p(t.transformTags,(function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=_.simpleTransform(e)),"*"===t?O=n:x[t]=n}));let F=!1;P();const M=new o.Parser({onopentag:function(e,n){if(t.enforceHtmlBoundary&&"html"===e&&P(),D)return void N++;const o=new y(e,n);R.push(o);let r=!1;const d=!!o.text;let h;if(m(x,e)&&(h=x[e](e,n),o.attribs=n=h.attribs,void 0!==h.text&&(o.innerText=h.text),e!==h.tagName&&(o.name=e=h.tagName,I[k]=h.tagName)),O&&(h=O(e,n),o.attribs=n=h.attribs,e!==h.tagName&&(o.name=e=h.tagName,I[k]=h.tagName)),(t.allowedTags&&-1===t.allowedTags.indexOf(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(m(e,t))return!1;return!0}(A)||null!=t.nestingLimit&&k>=t.nestingLimit)&&(r=!0,A[k]=!0,"discard"===t.disallowedTagsMode&&-1!==S.indexOf(e)&&(D=!0,N=1),A[k]=!0),k++,r){if("discard"===t.disallowedTagsMode)return;E=v,v=""}v+="<"+e,(!T||m(T,e)||T["*"])&&p(n,(function(n,r){if(!f.test(r))return void delete o.attribs[r];let d,h=!1;if(!T||m(T,e)&&-1!==T[e].indexOf(r)||T["*"]&&-1!==T["*"].indexOf(r)||m(w,e)&&w[e].test(r)||w["*"]&&w["*"].test(r))h=!0;else if(T&&T[e])for(const t of T[e])if(a(t)&&t.name&&t.name===r){h=!0;let e="";if(!0===t.multiple){const o=n.split(" ");for(const n of o)-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}if(h){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(r)&&U(e,n))return void delete o.attribs[r];if("iframe"===e&&"src"===r){let e=!0;try{d=u.parse(n,!1,!0);if(d&&null===d.host&&null===d.protocol)e=m(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find((function(e){return e===d.hostname})),o=(t.allowedIframeDomains||[]).find((function(e){return d.hostname===e||d.hostname.endsWith("."+e)}));e=n||o}}catch(t){e=!1}if(!e)return void delete o.attribs[r]}if("srcset"===r)try{if(d=c.parse(n),d.forEach((function(e){U("srcset",e.url)&&(e.evil=!0)})),d=g(d,(function(e){return!e.evil})),!d.length)return void delete o.attribs[r];n=c.stringify(g(d,(function(e){return!e.evil}))),o.attribs[r]=n}catch(e){return void delete o.attribs[r]}if("class"===r&&!(n=function(e,t){if(!t)return e;return(e=e.split(/\s+/)).filter((function(e){return-1!==t.indexOf(e)})).join(" ")}(n,C[e])).length)return void delete o.attribs[r];if("style"===r)try{const a=l(e+" {"+n+"}");if(0===(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(t.prop+":"+t.value),e}),[]).join(";")}(function(e,t){if(!t)return e;const n=i(e),o=e.nodes[0];let r;r=t[o.selector]&&t["*"]?s(t[o.selector],t["*"]):t[o.selector]||t["*"];r&&(n.nodes[0].nodes=o.nodes.reduce(function(e){return function(t,n){if(m(e,n.prop)){e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n)}return t}}(r),[]));return n}(a,t.allowedStyles))).length)return void delete o.attribs[r]}catch(e){return void delete o.attribs[r]}v+=" "+r,n&&n.length&&(v+='="'+L(n,!0)+'"')}else delete o.attribs[r]})),-1!==t.selfClosing.indexOf(e)?v+=" />":(v+=">",!o.innerText||d||t.textFilter||(v+=L(o.innerText),F=!0)),r&&(v=E+L(v),E="")},ontext:function(e){if(D)return;const n=R[R.length-1];let o;if(n&&(o=n.tag,e=void 0!==n.innerText?n.innerText:e),"discard"!==t.disallowedTagsMode||"script"!==o&&"style"!==o){const n=L(e,!1);t.textFilter&&!F?v+=t.textFilter(n,o):F||(v+=n)}else v+=e;if(R.length){R[R.length-1].text+=e}},onclosetag:function(e){if(D){if(N--,N)return;D=!1}const n=R.pop();if(!n)return;D=!!t.enforceHtmlBoundary&&"html"===e,k--;const o=A[k];if(o){if(delete A[k],"discard"===t.disallowedTagsMode)return void n.updateParentNodeText();E=v,v=""}I[k]&&(e=I[k],delete I[k]),t.exclusiveFilter&&t.exclusiveFilter(n)?v=v.substr(0,n.tagPosition):(n.updateParentNodeMediaChildren(),n.updateParentNodeText(),-1===t.selfClosing.indexOf(e)?(v+="</"+e+">",o&&(v=E+L(v),E="")):o&&(v=E,E=""))}},t.parser);return M.write(e),M.end(),v;function P(){v="",k=0,R=[],A={},I={},D=!1,N=0}function L(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),n&&(e=e.replace(/"/g,"&quot;"))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),n&&(e=e.replace(/"/g,"&quot;")),e}function U(e,n){const o=(n=(n=n.replace(/[\x00-\x20]+/g,"")).replace(/<!--.*?-->/g,"")).match(/^([a-zA-Z]+):/);if(!o)return!!n.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const r=o[1].toLowerCase();return m(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(r):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(r)}}const b={decodeEntities:!0};_.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1},_.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(o,r){let i;if(n)for(i in t)r[i]=t[i];else r=t;return{tagName:e,attribs:r}}}},function(e,t,n){"use strict";let o=n(465),r=n(668),{isClean:i}=n(467),a=n(468);e.exports=class{constructor(e={}){this.raws={},this[i]=!1;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}error(e,t={}){if(this.source){let n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new o(e)}warn(e,t,n){let o={node:this};for(let e in n)o[e]=n[e];return e.warn(t,o)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=a){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}clone(e={}){let t=function e(t,n){let o=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if("proxyCache"===r)continue;let i=t[r],a=typeof i;"parent"===r&&"object"===a?n&&(o[r]=n):"source"===r?o[r]=i:Array.isArray(i)?o[r]=i.map(t=>e(t,o)):("object"===a&&null!==i&&(i=e(i)),o[r]=i)}return o}(this);for(let n in e)t[n]=e[n];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(t,o),t=o):this.parent.insertBefore(t,o);n||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent;)e=e.parent;return e}raw(e,t){return(new r).raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(){let e={};for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t)continue;let n=this[t];Array.isArray(n)?e[t]=n.map(e=>"object"==typeof e&&e.toJSON?e.toJSON():e):"object"==typeof n&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e}positionInside(e){let t=this.toString(),n=this.source.start.column,o=this.source.start.line;for(let r=0;r<e;r++)"\n"===t[r]?(n=1,o+=1):n+=1;return{line:o,column:n}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[i]){this[i]=!1;let e=this;for(;e=e.parent;)e[i]=!1}}get proxyOf(){return this}}},function(e,t,n){"use strict";let o,r,i=n(292);class a extends i{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}normalize(e,t,n){let o=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of o)e.raws.before=t.raws.before;return o}toResult(e={}){return new o(new r,this,e).stringify()}}a.registerLazyResult=e=>{o=e},a.registerProcessor=e=>{r=e},e.exports=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(86),r=n(83),i=n(471),a=n(154),s=n(88),c=n(364);function l(e){const t=e.getSender(),{entity:n}=e.getPrevContent(),{entity:o,recommendation:i,reason:a}=e.getContent();return o?i&&a?o===n?c.g.includes(e.getType())?Object(r.a)("%(senderName)s updated the rule banning users matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):c.c.includes(e.getType())?Object(r.a)("%(senderName)s updated the rule banning rooms matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):c.f.includes(e.getType())?Object(r.a)("%(senderName)s updated the rule banning servers matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):Object(r.a)("%(senderName)s updated a ban rule matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):n?c.g.includes(e.getType())?Object(r.a)("%(senderName)s changed a rule that was banning users matching %(oldGlob)s to matching %(newGlob)s for %(reason)s",{senderName:t,oldGlob:n,newGlob:o,reason:a}):c.c.includes(e.getType())?Object(r.a)("%(senderName)s changed a rule that was banning rooms matching %(oldGlob)s to matching %(newGlob)s for %(reason)s",{senderName:t,oldGlob:n,newGlob:o,reason:a}):c.f.includes(e.getType())?Object(r.a)("%(senderName)s changed a rule that was banning servers matching %(oldGlob)s to matching %(newGlob)s for %(reason)s",{senderName:t,oldGlob:n,newGlob:o,reason:a}):Object(r.a)("%(senderName)s updated a ban rule that was matching %(oldGlob)s to matching %(newGlob)s for %(reason)s",{senderName:t,oldGlob:n,newGlob:o,reason:a}):c.g.includes(e.getType())?Object(r.a)("%(senderName)s created a rule banning users matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):c.c.includes(e.getType())?Object(r.a)("%(senderName)s created a rule banning rooms matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):c.f.includes(e.getType())?Object(r.a)("%(senderName)s created a rule banning servers matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):Object(r.a)("%(senderName)s created a ban rule matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):Object(r.a)("%(senderName)s updated an invalid ban rule",{senderName:t}):c.g.includes(e.getType())?Object(r.a)("%(senderName)s removed the rule banning users matching %(glob)s",{senderName:t,glob:n}):c.c.includes(e.getType())?Object(r.a)("%(senderName)s removed the rule banning rooms matching %(glob)s",{senderName:t,glob:n}):c.f.includes(e.getType())?Object(r.a)("%(senderName)s removed the rule banning servers matching %(glob)s",{senderName:t,glob:n}):Object(r.a)("%(senderName)s removed a ban rule matching %(glob)s",{senderName:t,glob:n})}const u={"m.room.message":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender();let n=t+": "+e.getContent().body;return"m.emote"===e.getContent().msgtype?n="* "+t+" "+n:"m.image"===e.getContent().msgtype&&(n=Object(r.a)("%(senderDisplayName)s sent an image.",{senderDisplayName:t})),n},"m.call.invite":function(e){const t=e.sender?e.sender.name:Object(r.a)("Someone");let n=!0;e.getContent().offer&&e.getContent().offer.sdp&&-1!==e.getContent().offer.sdp.indexOf("m=video")&&(n=!1);const i=o.a.get().supportsVoip();return n&&i?Object(r.a)("%(senderName)s placed a voice call.",{senderName:t}):n&&!i?Object(r.a)("%(senderName)s placed a voice call. (not supported by this browser)",{senderName:t}):!n&&i?Object(r.a)("%(senderName)s placed a video call.",{senderName:t}):n||i?void 0:Object(r.a)("%(senderName)s placed a video call. (not supported by this browser)",{senderName:t})},"m.call.answer":function(e){const t=e.sender?e.sender.name:Object(r.a)("Someone"),n=o.a.get().supportsVoip()?"":Object(r.a)("(not supported by this browser)");return Object(r.a)("%(senderName)s answered the call.",{senderName:t})+" "+n},"m.call.hangup":function(e){const t=e.sender?e.sender.name:Object(r.a)("Someone"),n=e.getContent();let i="";return o.a.get().supportsVoip()?n.reason&&(i="ice_failed"===n.reason?Object(r.a)("(could not connect media)"):"ice_timeout"===n.reason?Object(r.a)("(connection failed)"):"user_media_failed"===n.reason?Object(r.a)("(their device couldn't start the camera / microphone)"):"unknown_error"===n.reason?Object(r.a)("(an error occurred)"):"invite_timeout"===n.reason?Object(r.a)("(no answer)"):"user hangup"===n.reason||"user_hangup"===n.reason?"":Object(r.a)("(unknown failure: %(reason)s)",{reason:n.reason})):i=Object(r.a)("(not supported by this browser)"),Object(r.a)("%(senderName)s ended the call.",{senderName:t})+" "+i},"m.call.reject":function(e){const t=e.sender?e.sender.name:Object(r.a)("Someone");return Object(r.a)("%(senderName)s declined the call.",{senderName:t})}},d={"m.room.canonical_alias":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender(),n=e.getPrevContent().alias,o=e.getPrevContent().alt_aliases||[],i=e.getContent().alias,a=e.getContent().alt_aliases||[],s=o.filter(e=>!a.includes(e)),c=a.filter(e=>!o.includes(e));if(s.length||c.length){if(i!==n)return Object(r.a)("%(senderName)s changed the main and alternative addresses for this room.",{senderName:t});if(c.length&&!s.length)return Object(r.a)("%(senderName)s added the alternative addresses %(addresses)s for this room.",{senderName:t,addresses:c.join(", "),count:c.length});if(s.length&&!c.length)return Object(r.a)("%(senderName)s removed the alternative addresses %(addresses)s for this room.",{senderName:t,addresses:s.join(", "),count:s.length});if(s.length&&c.length)return Object(r.a)("%(senderName)s changed the alternative addresses for this room.",{senderName:t})}else{if(i)return Object(r.a)("%(senderName)s set the main address for this room to %(address)s.",{senderName:t,address:e.getContent().alias});if(n)return Object(r.a)("%(senderName)s removed the main address for this room.",{senderName:t})}return Object(r.a)("%(senderName)s changed the addresses for this room.",{senderName:t})},"m.room.name":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender();return e.getContent().name&&0!==e.getContent().name.trim().length?e.getPrevContent().name?Object(r.a)("%(senderDisplayName)s changed the room name from %(oldRoomName)s to %(newRoomName)s.",{senderDisplayName:t,oldRoomName:e.getPrevContent().name,newRoomName:e.getContent().name}):Object(r.a)("%(senderDisplayName)s changed the room name to %(roomName)s.",{senderDisplayName:t,roomName:e.getContent().name}):Object(r.a)("%(senderDisplayName)s removed the room name.",{senderDisplayName:t})},"m.room.topic":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender();return Object(r.a)('%(senderDisplayName)s changed the topic to "%(topic)s".',{senderDisplayName:t,topic:e.getContent().topic})},"m.room.member":function(e){const t=e.sender?e.sender.name:e.getSender(),n=e.target?e.target.name:e.getStateKey(),o=e.getPrevContent(),i=e.getContent(),a=i.reason?Object(r.a)("Reason")+": "+i.reason:"";switch(i.membership){case"invite":{const e=i.third_party_invite;return e?e.display_name?Object(r.a)("%(targetName)s accepted the invitation for %(displayName)s.",{targetName:n,displayName:e.display_name}):Object(r.a)("%(targetName)s accepted an invitation.",{targetName:n}):Object(r.a)("%(senderName)s invited %(targetName)s.",{senderName:t,targetName:n})}case"ban":return Object(r.a)("%(senderName)s banned %(targetName)s.",{senderName:t,targetName:n})+" "+a;case"join":return o&&"join"===o.membership?o.displayname&&i.displayname&&o.displayname!==i.displayname?Object(r.a)("%(oldDisplayName)s changed their display name to %(displayName)s.",{oldDisplayName:o.displayname,displayName:i.displayname}):!o.displayname&&i.displayname?Object(r.a)("%(senderName)s set their display name to %(displayName)s.",{senderName:e.getSender(),displayName:i.displayname}):o.displayname&&!i.displayname?Object(r.a)("%(senderName)s removed their display name (%(oldDisplayName)s).",{senderName:t,oldDisplayName:o.displayname}):o.avatar_url&&!i.avatar_url?Object(r.a)("%(senderName)s removed their profile picture.",{senderName:t}):o.avatar_url&&i.avatar_url&&o.avatar_url!==i.avatar_url?Object(r.a)("%(senderName)s changed their profile picture.",{senderName:t}):!o.avatar_url&&i.avatar_url?Object(r.a)("%(senderName)s set a profile picture.",{senderName:t}):s.a.getValue("showHiddenEventsInTimeline")?Object(r.a)("%(senderName)s made no change.",{senderName:t}):"":(e.target||console.warn("Join message has no target! -- "+e.getContent().state_key),Object(r.a)("%(targetName)s joined the room.",{targetName:n}));case"leave":return e.getSender()===e.getStateKey()?"invite"===o.membership?Object(r.a)("%(targetName)s rejected the invitation.",{targetName:n}):Object(r.a)("%(targetName)s left the room.",{targetName:n}):"ban"===o.membership?Object(r.a)("%(senderName)s unbanned %(targetName)s.",{senderName:t,targetName:n}):"invite"===o.membership?Object(r.a)("%(senderName)s withdrew %(targetName)s's invitation.",{senderName:t,targetName:n})+" "+a:Object(r.a)("%(senderName)s kicked %(targetName)s.",{senderName:t,targetName:n})+" "+a}},"m.room.third_party_invite":function(e){const t=e.sender?e.sender.name:e.getSender();if(!Object(a.c)(e)){const n=e.getPrevContent().display_name||Object(r.a)("Someone");return Object(r.a)("%(senderName)s revoked the invitation for %(targetDisplayName)s to join the room.",{senderName:t,targetDisplayName:n})}return Object(r.a)("%(senderName)s sent an invitation to %(targetDisplayName)s to join the room.",{senderName:t,targetDisplayName:e.getContent().display_name})},"m.room.history_visibility":function(e){const t=e.sender?e.sender.name:e.getSender();switch(e.getContent().history_visibility){case"invited":return Object(r.a)("%(senderName)s made future room history visible to all room members, from the point they are invited.",{senderName:t});case"joined":return Object(r.a)("%(senderName)s made future room history visible to all room members, from the point they joined.",{senderName:t});case"shared":return Object(r.a)("%(senderName)s made future room history visible to all room members.",{senderName:t});case"world_readable":return Object(r.a)("%(senderName)s made future room history visible to anyone.",{senderName:t});default:return Object(r.a)("%(senderName)s made future room history visible to unknown (%(visibility)s).",{senderName:t,visibility:e.getContent().history_visibility})}},"m.room.power_levels":function(e){const t=e.sender?e.sender.name:e.getSender();if(!(e.getPrevContent()&&e.getPrevContent().users&&e.getContent()&&e.getContent().users))return"";const n=e.getContent().users_default||0,o=[];Object.keys(e.getContent().users).forEach(e=>{-1===o.indexOf(e)&&o.push(e)}),Object.keys(e.getPrevContent().users).forEach(e=>{-1===o.indexOf(e)&&o.push(e)});const a=[];return o.forEach(t=>{const o=e.getPrevContent().users[t],s=e.getContent().users[t];s!==o&&a.push(Object(r.a)("%(userId)s from %(fromPowerLevel)s to %(toPowerLevel)s",{userId:t,fromPowerLevel:i.b(o,n),toPowerLevel:i.b(s,n)}))}),a.length?Object(r.a)("%(senderName)s changed the power level of %(powerLevelDiffText)s.",{senderName:t,powerLevelDiffText:a.join(", ")}):""},"m.room.pinned_events":function(e){const t=e.sender?e.sender.name:e.getSender();return Object(r.a)("%(senderName)s changed the pinned messages for the room.",{senderName:t})},"m.room.server_acl":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender(),n=e.getPrevContent(),o=e.getContent(),i=Array.isArray(n.deny)?n.deny:[],a=Array.isArray(n.allow)?n.allow:[];n.allow_ip_literals;let s="";return s=0===i.length&&0===a.length?Object(r.a)("%(senderDisplayName)s set the server ACLs for this room.",{senderDisplayName:t}):Object(r.a)("%(senderDisplayName)s changed the server ACLs for this room.",{senderDisplayName:t}),Array.isArray(o.allow)||(o.allow=[]),0===o.allow.length?s+" "+Object(r.a)("🎉 All servers are banned from participating! This room can no longer be used."):s},"m.room.tombstone":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender();return Object(r.a)("%(senderDisplayName)s upgraded this room.",{senderDisplayName:t})},"m.room.join_rules":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender();switch(e.getContent().join_rule){case"public":return Object(r.a)("%(senderDisplayName)s made the room public to whoever knows the link.",{senderDisplayName:t});case"invite":return Object(r.a)("%(senderDisplayName)s made the room invite only.",{senderDisplayName:t});default:return Object(r.a)("%(senderDisplayName)s changed the join rule to %(rule)s",{senderDisplayName:t,rule:e.getContent().join_rule})}},"m.room.guest_access":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender();switch(e.getContent().guest_access){case"can_join":return Object(r.a)("%(senderDisplayName)s has allowed guests to join the room.",{senderDisplayName:t});case"forbidden":return Object(r.a)("%(senderDisplayName)s has prevented guests from joining the room.",{senderDisplayName:t});default:return Object(r.a)("%(senderDisplayName)s changed guest access to %(rule)s",{senderDisplayName:t,rule:e.getContent().guest_access})}},"m.room.related_groups":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender(),n=e.getContent().groups||[],o=e.getPrevContent().groups||[],i=n.filter(e=>!o.includes(e)),a=o.filter(e=>!n.includes(e));return i.length&&!a.length?Object(r.a)("%(senderDisplayName)s enabled flair for %(groups)s in this room.",{senderDisplayName:t,groups:i.join(", ")}):!i.length&&a.length?Object(r.a)("%(senderDisplayName)s disabled flair for %(groups)s in this room.",{senderDisplayName:t,groups:a.join(", ")}):i.length&&a.length?Object(r.a)("%(senderDisplayName)s enabled flair for %(newGroups)s and disabled flair for %(oldGroups)s in this room.",{senderDisplayName:t,newGroups:i.join(", "),oldGroups:a.join(", ")}):""},"im.vector.modular.widgets":function(e){const t=e.getSender(),{name:n,type:o,url:i}=e.getPrevContent(),{name:a,type:s,url:c}=e.getContent()||{};let l=a||n||s||o||"";return l&&l.length>0&&(l=l[0].toUpperCase()+l.slice(1)),c?i?Object(r.a)("%(widgetName)s widget modified by %(senderName)s",{widgetName:l,senderName:t}):Object(r.a)("%(widgetName)s widget added by %(senderName)s",{widgetName:l,senderName:t}):Object(r.a)("%(widgetName)s widget removed by %(senderName)s",{widgetName:l,senderName:t})}};for(const e of c.a)d[e]=l;function h(e){const t=(e.isState()?d:u)[e.getType()];return t?t(e):""}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(86),r=n(242),i=n(109),a=n(83),s=n(85),c=n(89),l=n(88),u=n(130);class d{constructor(e){"+"===e[0]?(this.roomId=null,this.groupId=e):(this.roomId=e,this.groupId=null),this.canceled=!1,this.addrs=[],this.busy=!1,this.completionStates={},this.errors={},this.deferred=null}invite(e){if(this.addrs.length>0)throw new Error("Already inviting/invited");this.addrs.push(...e);for(const e of this.addrs)null===Object(r.c)(e)&&(this.completionStates[e]="error",this.errors[e]={errcode:"M_INVALID",errorText:Object(a.a)("Unrecognised address")});return this.deferred=Object(u.b)(),this._inviteMore(0),this.deferred.promise}cancel(){this.busy&&(this._canceled=!0,this.deferred.reject(new Error("canceled")))}getCompletionState(e){return this.completionStates[e]}getErrorText(e){return this.errors[e]?this.errors[e].errorText:null}async _inviteToRoom(e,t,n){const i=Object(r.c)(t);if("email"===i)return o.a.get().inviteByEmail(e,t);if("mx-user-id"===i){const r=o.a.get().getRoom(e);if(!r)throw new Error("Room not found");const i=r.getMember(t);if(i&&["join","invite"].includes(i.membership))throw{errcode:"RIOT.ALREADY_IN_ROOM",error:"Member already invited"};if(!n&&l.a.getValue("promptBeforeInviteUnknownUsers",this.roomId))try{if(!await o.a.get().getProfileInfo(t))throw new Error("User has no profile")}catch(e){throw{errcode:"RIOT.USER_NOT_FOUND",error:"User does not have a profile or does not exist."}}return o.a.get().invite(e,t)}throw new Error("Unsupported address")}_doInvite(e,t){return new Promise((n,o)=>{let r;console.log("Inviting "+e),r=null!==this.groupId?i.a.inviteUserToGroup(this.groupId,e):this._inviteToRoom(this.roomId,e,t),r.then(()=>{this._canceled||(this.completionStates[e]="invited",delete this.errors[e],n())}).catch(r=>{if(this._canceled)return;let i;console.error(r);let s=!1;if("M_FORBIDDEN"===r.errcode)s=!0,i=Object(a.a)("You do not have permission to invite people to this room.");else if("RIOT.ALREADY_IN_ROOM"===r.errcode)i=Object(a.a)("User %(userId)s is already in the room",{userId:e});else{if("M_LIMIT_EXCEEDED"===r.errcode)return void setTimeout(()=>{this._doInvite(e,t).then(n,o)},5e3);["M_NOT_FOUND","M_USER_NOT_FOUND","RIOT.USER_NOT_FOUND"].includes(r.errcode)?i=Object(a.a)("User %(user_id)s does not exist",{user_id:e}):"M_PROFILE_UNDISCLOSED"===r.errcode?i=Object(a.a)("User %(user_id)s may or may not exist",{user_id:e}):"M_PROFILE_NOT_FOUND"!==r.errcode||t?i="M_BAD_STATE"===r.errcode?Object(a.a)("The user must be unbanned before they can be invited."):"M_UNSUPPORTED_ROOM_VERSION"===r.errcode?Object(a.a)("The user's homeserver does not support the version of the room."):Object(a.a)("Unknown server error"):(console.warn(`User ${e} does not have a profile - inviting anyways automatically`),this._doInvite(e,!0).then(n,o))}this.completionStates[e]="error",this.errors[e]={errorText:i,errcode:r.errcode},this.busy=!s,this.fatal=s,s?o():n()})})}_inviteMore(e,t){if(this._canceled)return;if(e===this.addrs.length){if(this.busy=!1,Object.keys(this.errors).length>0&&!this.groupId){const e=["M_NOT_FOUND","M_USER_NOT_FOUND","M_PROFILE_UNDISCLOSED","M_PROFILE_NOT_FOUND","RIOT.USER_NOT_FOUND"],t=Object.keys(this.errors).filter(t=>e.includes(this.errors[t].errcode));if(t.length>0){const e=()=>{const e=t.map(e=>this._doInvite(e,!0));Promise.all(e).then(()=>this.deferred.resolve(this.completionStates))};if(!l.a.getValue("promptBeforeInviteUnknownUsers",this.roomId))return void e();const n=s.getComponent("dialogs.AskInviteAnywayDialog");return console.log("Showing failed to invite dialog..."),void c.a.createTrackedDialog("Failed to invite the following users to the room","",n,{unknownProfileUsers:t.map(e=>({userId:e,errorText:this.errors[e].errorText})),onInviteAnyways:()=>e(),onGiveUp:()=>{for(const e of t)this.completionStates[e]="invited";this.deferred.resolve(this.completionStates)}})}}return void this.deferred.resolve(this.completionStates)}const n=this.addrs[e];null!==Object(r.c)(n)&&"invited"!==this.completionStates[n]?this._doInvite(n,t).then(()=>{this._inviteMore(e+1,t)}).catch(()=>this.deferred.resolve(this.completionStates)):this._inviteMore(e+1)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a}));var o=n(86);function r(e){return e.getCanonicalAlias()||e.getAltAliases()[0]}function i(e,t){let n;if(t){n=function(e,t){let n,o;for(const r of e.getJoinedMembers())r.userId!=t&&(void 0===n||r.events.member&&r.events.member.getTs()<n)&&(o=r,n=r.events.member.getTs());if(o)return o.userId;for(const r of e.currentState.getMembers())r.userId!=t&&(void 0===n||r.events.member&&r.events.member.getTs()<n)&&(o=r,n=r.events.member.getTs());return void 0===o?t:o.userId}(e,o.a.get().getUserId())}else n=null;return a(e.roomId,n)}function a(e,t){if(o.a.get().isGuest())return Promise.resolve();const n=o.a.get().getAccountData("m.direct");let r={};void 0!==n&&(r=n.getContent());for(const n of Object.keys(r)){const o=r[n];if(n!=t){const t=o.indexOf(e);t>-1&&o.splice(t,1)}}if(t){const n=r[t]||[];-1==n.indexOf(e)&&n.push(e),r[t]=n}return o.a.get().setAccountData("m.direct",r)}},function(e,t,n){(function(n){var o,r,i,a,s,c,l,u,d,h,p,m,g,f,_,b,v,E,y,S,T,w,C,x;!function(O){var k="object"==typeof n?n:"object"==typeof self?self:"object"==typeof this?this:{};function R(e,t){return e!==k&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(n,o){return e[n]=t?t(n,o):o}}void 0===(o=function(e){var t,n;t=R(k,R(e)),n=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])},r=function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)},i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},s=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){return function(n,o){t(n,o,e)}},l=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((o=o.apply(e,t||[])).next())}))},d=function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},x=function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]},h=function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a},g=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e},f=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o},_=function(e){return this instanceof _?(this.v=e,this):new _(e)},b=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(e){r[e]&&(o[e]=function(t){return new Promise((function(n,o){i.push([e,t,n,o])>1||s(e,t)}))})}function s(e,t){try{(n=r[e](t)).value instanceof _?Promise.resolve(n.value.v).then(c,l):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}},v=function(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,r){t[o]=e[o]?function(t){return(n=!n)?{value:_(e[o](t)),done:"return"===o}:r?r(t):t}:r}},E=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,r){!function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}(o,r,(t=e[n](t)).done,t.value)}))}}},y=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},S=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},T=function(e){return e&&e.__esModule?e:{default:e}},w=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},C=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},t("__extends",r),t("__assign",i),t("__rest",a),t("__decorate",s),t("__param",c),t("__metadata",l),t("__awaiter",u),t("__generator",d),t("__exportStar",h),t("__createBinding",x),t("__values",p),t("__read",m),t("__spread",g),t("__spreadArrays",f),t("__await",_),t("__asyncGenerator",b),t("__asyncDelegator",v),t("__asyncValues",E),t("__makeTemplateObject",y),t("__importStar",S),t("__importDefault",T),t("__classPrivateFieldGet",w),t("__classPrivateFieldSet",C)}.apply(t,[t]))||(e.exports=o)}()}).call(this,n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deferAction=function(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)},t.inlineProp=void 0;t.inlineProp=function(e,t){var n={};return n[e]=t,n}},function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return m}));var o=n(82),r=n.n(o),i=n(800),a=n(86);const s="m.room.rule.user",c="m.room.rule.server",l=[s,"org.matrix.mjolnir.rule.user"],u=["m.room.rule.room","org.matrix.mjolnir.rule.room"],d=[c,"org.matrix.mjolnir.rule.server"],h=[...l,...u,...d];function p(e,t=!0){return l.includes(e)?t?l[l.length-1]:s:u.includes(e)?t?u[u.length-1]:"m.room.rule.room":d.includes(e)?t?d[d.length-1]:c:null}class m{constructor(e){r()(this,"_rules",[]),r()(this,"_roomId",void 0),this._roomId=e,this.updateList()}get roomId(){return this._roomId}get serverRules(){return this._rules.filter(e=>e.kind===c)}get userRules(){return this._rules.filter(e=>e.kind===s)}get roomRules(){return this._rules.filter(e=>"m.room.rule.room"===e.kind)}async banEntity(e,t,n){await a.a.get().sendStateEvent(this._roomId,p(e,!0),{entity:t,reason:n,recommendation:Object(i.c)(i.b,!0)},"rule:"+t),this._rules.push(new i.a(t,i.b,n,p(e,!1)))}async unbanEntity(e,t){await a.a.get().sendStateEvent(this._roomId,p(e,!0),{},"rule:"+t),this._rules=this._rules.filter(n=>n.kind!==p(e,!1)||n.entity!==t)}updateList(){this._rules=[];const e=a.a.get().getRoom(this._roomId);if(e)for(const t of h){const n=e.currentState.getStateEvents(t,void 0);for(const e of n){if(!e.getStateKey())continue;const n=p(t,!1),o=e.getContent().entity,r=e.getContent().recommendation,a=e.getContent().reason;o&&r&&a&&this._rules.push(new i.a(o,r,a,n))}}}}},function(e,t,n){"use strict";function o(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let o=0;o<n.length;o++){const r=n[o];if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1}return!0}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(81),i=(o=n(1287))&&"object"==typeof o&&"default"in o?o.default:o,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)};function s(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c=function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},l={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return s(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:c(c({position:"absolute",userSelect:"none"},l[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),d={width:"auto",height:"auto"},h=i((function(e,t,n){return Math.max(Math.min(e,n),t)})),p=i((function(e,t){return Math.round(e/t)*t})),m=i((function(e,t){return new RegExp(e,"i").test(t)})),g=i((function(e,t,n){void 0===n&&(n=0);var o=t.reduce((function(n,o,r){return Math.abs(o-e)<Math.abs(t[n]-e)?r:n}),0),r=Math.abs(t[o]-e);return 0===n||r<n?t[o]:e})),f=i((function(e,t){return e.substr(e.length-t.length,t.length)===t})),_=i((function(e){return"auto"===(e=e.toString())||f(e,"px")||f(e,"%")||f(e,"vh")||f(e,"vw")||f(e,"vmax")||f(e,"vmin")?e:e+"px"})),b=function(e,t,n,o){if(e&&"string"==typeof e){if(f(e,"%"))return t*(Number(e.replace("%",""))/100);if(f(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(f(e,"vh"))return o*(Number(e.replace("vh",""))/100)}return e},v=i((function(e,t,n,o,r,i,a){return o=b(o,e.width,t,n),r=b(r,e.height,t,n),i=b(i,e.width,t,n),a=b(a,e.height,t,n),{maxWidth:void 0===o?void 0:Number(o),maxHeight:void 0===r?void 0:Number(r),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}})),E=["as","style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],y=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return s(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||d},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){var e=this.parentNode;if(e)for(var t=0,n=[].slice.call(e.children);t<n.length;t++){var o=n[t];if(o.classList.contains("__resizable_base__"))return o}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,o=this.resizable.offsetHeight,r=this.resizable.style.position;"relative"!==r&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:o,this.resizable.style.position=r}return{width:e,height:t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&f(e.propsSize[t].toString(),"%")){if(f(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return _(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?_(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?_(t.height):n("height")}},enumerable:!0,configurable:!0}),t.prototype.getParentSize=function(){if(!this.base||!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=!1,t=this.parentNode.style.flexWrap,n=this.base.style.minWidth;"wrap"!==t&&(e=!0,this.parentNode.style.flexWrap="wrap"),this.base.style.position="relative",this.base.style.minWidth="100%";var o={width:this.base.offsetWidth,height:this.base.offsetHeight};return this.base.style.position="absolute",e&&(this.parentNode.style.flexWrap=t),this.base.style.minWidth=n,o},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0});var t=this.parentNode;if(t&&!this.base){var n=this.window.document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.position="absolute",n.style.transform="scale(0, 0)",n.style.left="0",n.style.flex="0",n.classList?n.classList.add("__resizable_base__"):n.className+="__resizable_base__",t.appendChild(n)}}},t.prototype.componentWillUnmount=function(){if(this.window){this.unbindEvents();var e=this.parentNode;if(!this.base||!e)return;if(!e||!this.base)return;e.removeChild(this.base)}},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){if("parent"===this.props.bounds){var n=this.parentNode;if(n){var o=n.offsetWidth+(this.parentLeft-this.resizableLeft),r=n.offsetHeight+(this.parentTop-this.resizableTop);e=e&&e<o?e:o,t=t&&t<r?t:r}}else if("window"===this.props.bounds){if(this.window){o=this.window.innerWidth-this.resizableLeft,r=this.window.innerHeight-this.resizableTop;e=e&&e<o?e:o,t=t&&t<r?t:r}}else if(this.props.bounds){o=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);e=e&&e<o?e:o,t=t&&t<r?t:r}return{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,o=this.props.resizeRatio||1,r=this.state,i=r.direction,a=r.original,s=this.props,c=s.lockAspectRatio,l=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,d=a.width,h=a.height,p=l||0,g=u||0;return m("right",i)&&(d=a.width+(e-a.x)*o/n,c&&(h=(d-g)/this.ratio+p)),m("left",i)&&(d=a.width-(e-a.x)*o/n,c&&(h=(d-g)/this.ratio+p)),m("bottom",i)&&(h=a.height+(t-a.y)*o/n,c&&(d=(h-p)*this.ratio+g)),m("top",i)&&(h=a.height-(t-a.y)*o/n,c&&(d=(h-p)*this.ratio+g)),{newWidth:d,newHeight:h}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,o){var r=this.props,i=r.lockAspectRatio,a=r.lockAspectRatioExtraHeight,s=r.lockAspectRatioExtraWidth,c=void 0===o.width?10:o.width,l=void 0===n.width||n.width<0?e:n.width,u=void 0===o.height?10:o.height,d=void 0===n.height||n.height<0?t:n.height,p=a||0,m=s||0;if(i){var g=(u-p)*this.ratio+m,f=(d-p)*this.ratio+m,_=(c-m)/this.ratio+p,b=(l-m)/this.ratio+p,v=Math.max(c,g),E=Math.min(l,f),y=Math.max(u,_),S=Math.min(d,b);e=h(e,v,E),t=h(t,y,S)}else e=h(e,c,l),t=h(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var o=this.resizable.getBoundingClientRect(),r=o.left,i=o.top;this.resizableLeft=r,this.resizableTop=i}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,o=0,r=0;if(e.nativeEvent instanceof this.window.MouseEvent){if(o=e.nativeEvent.clientX,r=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent instanceof this.window.TouchEvent&&(o=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY);if(this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:o,y:r,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:c(c({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&e instanceof this.window.TouchEvent)try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,n=t.maxWidth,o=t.maxHeight,r=t.minWidth,i=t.minHeight,a=e instanceof this.window.MouseEvent?e.clientX:e.touches[0].clientX,s=e instanceof this.window.MouseEvent?e.clientY:e.touches[0].clientY,c=this.state,l=c.direction,u=c.original,d=c.width,h=c.height,m=this.getParentSize(),_=v(m,this.window.innerWidth,this.window.innerHeight,n,o,r,i);n=_.maxWidth,o=_.maxHeight,r=_.minWidth,i=_.minHeight;var b=this.calculateNewSizeFromDirection(a,s),E=b.newHeight,y=b.newWidth,S=this.calculateNewMaxFromBoundary(n,o),T=this.calculateNewSizeFromAspectRatio(y,E,{width:S.maxWidth,height:S.maxHeight},{width:r,height:i});if(y=T.newWidth,E=T.newHeight,this.props.grid){var w=p(y,this.props.grid[0]),C=p(E,this.props.grid[1]),x=this.props.snapGap||0;y=0===x||Math.abs(w-y)<=x?w:y,E=0===x||Math.abs(C-E)<=x?C:E}this.props.snap&&this.props.snap.x&&(y=g(y,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(E=g(E,this.props.snap.y,this.props.snapGap));var O={width:y-u.width,height:E-u.height};if(d&&"string"==typeof d)if(f(d,"%"))y=y/m.width*100+"%";else if(f(d,"vw")){y=y/this.window.innerWidth*100+"vw"}else if(f(d,"vh")){y=y/this.window.innerHeight*100+"vh"}if(h&&"string"==typeof h)if(f(h,"%"))E=E/m.height*100+"%";else if(f(h,"vw")){E=E/this.window.innerWidth*100+"vw"}else if(f(h,"vh")){E=E/this.window.innerHeight*100+"vh"}var k={width:this.createSizeForCssProperty(y,"width"),height:this.createSizeForCssProperty(E,"height")};"row"===this.flexDir?k.flexBasis=k.width:"column"===this.flexDir&&(k.flexBasis=k.height),this.setState(k),this.props.onResize&&this.props.onResize(e,l,this.resizable,O)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,o=t.direction,r=t.original;if(n&&this.resizable){var i={width:this.size.width-r.width,height:this.size.height-r.height};this.props.onResizeStop&&this.props.onResizeStop(e,o,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:c(c({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,o=t.handleStyles,i=t.handleClasses,a=t.handleWrapperStyle,s=t.handleWrapperClass,c=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?r.createElement(u,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:o&&o[t],className:i&&i[t]},c&&c[t]?c[t]:null):null}));return r.createElement("span",{className:s,style:a},l)},t.prototype.render=function(){var e,t=this,n=Object.keys(this.props).reduce((function(e,n){return-1!==E.indexOf(n)||(e[n]=t.props[n]),e}),{}),o=c(c(c({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var i=null!==(e=this.props.as)&&void 0!==e?e:"div";return r.createElement(i,c({ref:this.ref,style:o,className:this.props.className},n),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(r.PureComponent);t.Resizable=y},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var o=n(82),r=n.n(o),i=n(96),a=n(248);class s{constructor(e,t,n,o){r()(this,"hsUrl",void 0),r()(this,"isUrl",void 0),r()(this,"fallbackHsUrl",void 0),r()(this,"flows",void 0),r()(this,"defaultDeviceDisplayName",void 0),r()(this,"tempClient",void 0),this.hsUrl=e,this.isUrl=t,this.fallbackHsUrl=n,this.flows=[],this.defaultDeviceDisplayName=o.defaultDeviceDisplayName,this.tempClient=null}getHomeserverUrl(){return this.hsUrl}getIdentityServerUrl(){return this.isUrl}setHomeserverUrl(e){this.tempClient=null,this.hsUrl=e}setIdentityServerUrl(e){this.tempClient=null,this.isUrl=e}createTemporaryClient(){return this.tempClient?this.tempClient:this.tempClient=i.q.createClient({baseUrl:this.hsUrl,idBaseUrl:this.isUrl})}async getFlows(){const e=this.createTemporaryClient(),{flows:t}=await e.loginFlows();return this.flows=t,this.flows}loginViaPassword(e,t,n,o){const r=e.indexOf("@")>0;let i;i=t&&n?{type:"m.id.phone",country:t,phone:n,number:n}:r?{type:"m.id.thirdparty",medium:"email",address:e}:{type:"m.id.user",user:e};const a={password:o,identifier:i,initial_device_display_name:this.defaultDeviceDisplayName},s=e=>c(this.fallbackHsUrl,this.isUrl,"m.login.password",a).catch(t=>{throw console.log("fallback HS login failed",t),e});let l=null;return c(this.hsUrl,this.isUrl,"m.login.password",a).catch(e=>{if(l=e,403===e.httpStatus&&this.fallbackHsUrl)return s(l);throw l}).catch(e=>{throw console.log("Login failed",e),e})}}async function c(e,t,n,o){var r;const s=i.q.createClient({baseUrl:e,idBaseUrl:t}),c=await s.login(n,o),l=c.well_known;l&&(l["m.homeserver"]&&l["m.homeserver"].base_url&&(e=l["m.homeserver"].base_url,console.log(`Overrode homeserver setting with ${e} from login response`)),l["m.identity_server"]&&l["m.identity_server"].base_url&&(t=l["m.identity_server"].base_url,console.log(`Overrode IS setting with ${t} from login response`)));const u={homeserverUrl:e,identityServerUrl:t,userId:c.user_id,deviceId:c.device_id,accessToken:c.access_token};return null===(r=a.a.examineLoginResponse)||void 0===r||r.call(a.a,c,u),u}},function(e,t,n){"use strict";n.d(t,"g",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"e",(function(){return m})),n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return b})),n.d(t,"b",(function(){return v}));var o=n(96),r=n(533),i=n(110);const a=window.localStorage;let s;try{s=window.indexedDB}catch(e){}function c(e){console.log("StorageManager: "+e)}function l(e){console.error("StorageManager: "+e)}function u(e){i.a.trackEvent("StorageManager",e)}function d(){navigator.storage&&navigator.storage.persist?navigator.storage.persist().then(e=>{console.log("StorageManager: Persistent?",e)}):document.requestStorageAccess?document.requestStorageAccess().then(()=>console.log("StorageManager: Persistent?",!0),()=>console.log("StorageManager: Persistent?",!1)):console.log("StorageManager: Persistence unsupported")}async function h(){c("Checking storage consistency"),c("Local storage supported? "+!!a),c("IndexedDB supported? "+!!s);let e=!1,t=!1,n=!1,i=!0;if(a?(e=a.length>0,c("Local storage contains data? "+e),n=a.getItem("mx_crypto_initialised"),c("Crypto initialised? "+n)):(i=!1,l("Local storage cannot be used on this browser"),u("Local storage disabled")),s&&a){(await async function(){let e=!1;try{return e=await o.q.IndexedDBStore.exists(s,"riot-web-sync"),c("Sync store using IndexedDB contains data? "+e),{exists:e,healthy:!0}}catch(e){l("Sync store using IndexedDB inaccessible"),u("Sync store using IndexedDB inaccessible")}return c("Sync store using memory only"),{exists:e,healthy:!1}}()).healthy||(i=!1)}else i=!1,l("Sync store cannot be used on this browser"),u("Sync store disabled");if(s){const e=await async function(){let e=!1;try{return e=await o.q.IndexedDBCryptoStore.exists(s,"matrix-js-sdk:crypto"),c("Crypto store using IndexedDB contains data? "+e),{exists:e,healthy:!0}}catch(e){l("Crypto store using IndexedDB inaccessible"),u("Crypto store using IndexedDB inaccessible")}try{return e=await r.a.exists(a),c("Crypto store using local storage contains data? "+e),{exists:e,healthy:!0}}catch(e){l("Crypto store using local storage inaccessible"),u("Crypto store using local storage inaccessible")}return c("Crypto store using memory only"),{exists:e,healthy:!1}}();t=e.exists,e.healthy||(i=!1)}else i=!1,l("Crypto store cannot be used on this browser"),u("Crypto store disabled");return e&&n&&!t&&(i=!1,l("Data exists in local storage and crypto is marked as initialised but no data found in crypto store. IndexedDB storage has likely been evicted by the browser!"),u("Crypto store evicted")),i?(c("Storage consistency checks passed"),u("Consistency checks passed")):(l("Storage consistency checks failed"),u("Consistency checks failed")),{dataInLocalStorage:e,dataInCryptoStore:t,cryptoInited:n,healthy:i}}function p(e){e.store&&e.store.on&&e.store.on("degraded",()=>{u("Sync store using IndexedDB degraded to memory")})}function m(e){a.setItem("mx_crypto_initialised",e)}let g=null;async function f(){if(!s)throw new Error("IndexedDB not available");g=await new Promise((e,t)=>{const n=s.open("matrix-react-sdk",1);n.onerror=t,n.onsuccess=t=>{e(n.result)},n.onupgradeneeded=e=>{const t=n.result;t.createObjectStore("pickleKey"),t.createObjectStore("account")}})}async function _(e,t){return g||await f(),new Promise((n,o)=>{const r=g.transaction([e],"readonly");r.onerror=o;const i=r.objectStore(e).get(t);i.onerror=o,i.onsuccess=e=>{n(i.result)}})}async function b(e,t,n){return g||await f(),new Promise((o,r)=>{const i=g.transaction([e],"readwrite");i.onerror=r;const a=i.objectStore(e).put(n,t);a.onerror=r,a.onsuccess=e=>{o()}})}async function v(e,t){return g||await f(),new Promise((n,o)=>{const r=g.transaction([e],"readwrite");r.onerror=o;const i=r.objectStore(e).delete(t);i.onerror=o,i.onsuccess=e=>{n()}})}},function(e,t){e.exports="img/e2e/warning.78bb264.svg"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d}));var o=n(82),r=n.n(o),i=n(88),a=n(87),s=n(93),c=n(487),l=n(253),u=n(95);class d{constructor(){r()(this,"themeWatchRef",void 0),r()(this,"systemThemeWatchRef",void 0),r()(this,"dispatcherRef",void 0),r()(this,"preferDark",void 0),r()(this,"preferLight",void 0),r()(this,"currentTheme",void 0),r()(this,"onChange",()=>{this.recheck()}),r()(this,"onAction",e=>{e.action===s.a.RecheckTheme&&this.recheck(e.forceTheme)}),this.themeWatchRef=null,this.systemThemeWatchRef=null,this.dispatcherRef=null,this.preferDark=e.matchMedia("(prefers-color-scheme: dark)"),this.preferLight=e.matchMedia("(prefers-color-scheme: light)"),this.currentTheme=this.getEffectiveTheme()}start(){this.themeWatchRef=i.a.watchSetting("theme",null,this.onChange),this.systemThemeWatchRef=i.a.watchSetting("use_system_theme",null,this.onChange),this.preferDark.addEventListener&&(this.preferDark.addEventListener("change",this.onChange),this.preferLight.addEventListener("change",this.onChange)),this.dispatcherRef=a.a.register(this.onAction)}stop(){this.preferDark.addEventListener&&(this.preferDark.removeEventListener("change",this.onChange),this.preferLight.removeEventListener("change",this.onChange)),i.a.unwatchSetting(this.systemThemeWatchRef),i.a.unwatchSetting(this.themeWatchRef),a.a.unregister(this.dispatcherRef)}recheck(e){const t=this.currentTheme;this.currentTheme=void 0===e?this.getEffectiveTheme():e,t!==this.currentTheme&&Object(l.d)(this.currentTheme)}getEffectiveTheme(){if(c.a.isLogin)return"light";if(i.a.getValueAt(u.a.DEVICE,"use_system_theme",null,!1,!0)){if(console.log("returning explicit system theme"),this.preferDark.matches)return"dark";if(this.preferLight.matches)return"light"}const e=i.a.getValueAt(u.a.DEVICE,"theme",null,!1,!0);if(e)return console.log("returning explicit theme: "+e),e;if(i.a.getValue("use_system_theme")){if(this.preferDark.matches)return"dark";if(this.preferLight.matches)return"light"}return console.log("returning theme value"),i.a.getValue("theme")}isSystemThemeSupported(){return this.preferDark.matches||this.preferLight.matches}}}).call(this,n(5))},function(e,t,n){"use strict";var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(81),c=n.n(s),l=n(90),u=n.n(l),d=n(85);t.a=e=>{let{checked:t,disabled:n=!1,onChange:o}=e,i=a()(e,["checked","disabled","onChange"]);const s=u()({mx_ToggleSwitch:!0,mx_ToggleSwitch_on:t,mx_ToggleSwitch_enabled:!n}),l=d.getComponent("elements.AccessibleButton");return c.a.createElement(l,r()({},i,{className:s,onClick:()=>{n||o(!t)},role:"switch","aria-checked":t,"aria-disabled":n}),c.a.createElement("div",{className:"mx_ToggleSwitch_ball"}))}},function(e,t,n){"use strict";var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(81),c=n.n(s),l=n(3),u=n(246),d=n(100),h=n(83),p=n(169),m=n(122),g=n(261),f=n(227),_=n(87),b=n(88),v=n(95),E=n(89),y=n(148),S=n(133),T=n(97);t.a=e=>{let{onFinished:t,app:n,userWidget:o,onDeleteClick:i,showUnpin:w}=e,C=a()(e,["onFinished","app","userWidget","onDeleteClick","showUnpin"]);const x=Object(s.useContext)(T.a),{room:O,roomId:k}=Object(s.useContext)(f.a),R=g.a.instance.getMessagingForId(n.id),A=o||m.a.canUserModifyWidgets(k);let I,D,N,F;if(w){const e=()=>{p.b.instance.unpinWidget(O.roomId,n.id),t()};I=c.a.createElement(u.b,{onClick:e,label:Object(h.a)("Unpin")})}if(A&&m.a.isManagedByManager(n)){const e=()=>{m.a.editWidget(O,n),t()};D=c.a.createElement(u.b,{onClick:e,label:Object(h.a)("Edit")})}if(null==R?void 0:R.hasCapability(l.MatrixCapabilities.Screenshots)){const e=()=>{null==R||R.takeScreenshot().then(e=>{_.a.dispatch({action:"picture_snapshot",file:e.screenshot})}).catch(e=>{console.error("Failed to take screenshot: ",e)}),t()};N=c.a.createElement(u.b,{onClick:e,label:Object(h.a)("Take a picture")})}if(i||A){const e=()=>{E.a.createTrackedDialog("Delete Widget","",y.a,{title:Object(h.a)("Delete Widget"),description:Object(h.a)("Deleting a widget removes it for all users in this room. Are you sure you want to delete this widget?"),button:Object(h.a)("Delete widget"),onFinished:e=>{e&&m.a.setRoomWidget(k,n.id)}}),t()};F=c.a.createElement(u.b,{onClick:i||e,label:o?Object(h.a)("Remove"):Object(h.a)("Remove for everyone")})}let M=b.a.getValue("allowedWidgets",k)[n.eventId];void 0===M&&(M=n.creatorUserId===x.getUserId());const P=S.a.JITSI.matches(n.type);let L;if(!o&&!P&&M){const e=()=>{console.info("Revoking permission for widget to load: "+n.eventId);const e=b.a.getValue("allowedWidgets",k);e[n.eventId]=!1,b.a.setValue("allowedWidgets",k,v.a.ROOM_ACCOUNT,e).catch(e=>{console.error(e)}),t()};L=c.a.createElement(u.b,{onClick:e,label:Object(h.a)("Revoke permissions")})}const U=p.b.instance.getPinnedApps(k),B=U.findIndex(e=>e.id===n.id);let j,G;if(w&&B>0){const e=()=>{p.b.instance.movePinnedWidget(k,n.id,-1),t()};j=c.a.createElement(u.b,{onClick:e,label:Object(h.a)("Move left")})}if(w&&B<U.length-1){const e=()=>{p.b.instance.movePinnedWidget(k,n.id,1),t()};G=c.a.createElement(u.b,{onClick:e,label:Object(h.a)("Move right")})}return c.a.createElement(u.e,r()({},C,{chevronFace:d.a.None,onFinished:t}),c.a.createElement(u.c,null,D,L,F,N,j,G,I))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(82),r=n.n(o),i=n(749),a=n(750);class s{static createItem(e,t,n){return new i.a(e,t,n)}static createSizer(e,t,n){return new a.a(e,t,n)}constructor(e){this.item=e,r()(this,"beforeOffset",void 0),this.beforeOffset=e.offset()}get size(){return this.item.getSize()}set size(e){this.item.setRawSize(e)}resize(e){this.item.setSize(e)}resizeFromContainerOffset(e){this.resize(e-this.beforeOffset)}start(){this.item.start()}finish(){this.item.finish()}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return m}));var o=n(81),r=n.n(o),i=n(89),a=n(85),s=n(360),c=n(83),l=n(86),u=n(109),d=n(130),h=n(138);function p(e){return new Promise((t,n)=>{const o=r.a.createElement("div",null,r.a.createElement("div",null,Object(c.a)("Who would you like to add to this community?")),r.a.createElement("div",{className:"warning"},Object(c.a)("Warning: any person you add to a community will be publicly visible to anyone who knows the community ID"))),l=a.getComponent("dialogs.AddressPickerDialog");i.a.createTrackedDialog("Group Invite","",l,{title:Object(c.a)("Invite new community members"),description:o,placeholder:Object(c.a)("Name or Matrix ID"),button:Object(c.a)("Invite to Community"),validAddressTypes:["mx-user-id"],onFinished:(o,r)=>{o&&function(e,t){const n=new s.a(e),o=t.map(e=>e.address);return n.invite(o).then(n=>{const o=[];for(const e of Object.keys(n))"error"===t[e]&&o.push(e);if(o.length>0){const t=a.getComponent("dialogs.ErrorDialog");i.a.createTrackedDialog("Failed to invite the following users to the group","",t,{title:Object(c.a)("Failed to invite the following users to %(groupId)s:",{groupId:e}),description:o.join(", ")})}}).catch(t=>{const n=a.getComponent("dialogs.ErrorDialog");i.a.createTrackedDialog("Failed to invite users to group","",n,{title:Object(c.a)("Failed to invite users to community"),description:Object(c.a)("Failed to invite users to %(groupId)s",{groupId:e})})})}(e,r).then(t,n)}},null,!1,!0)})}function m(e){return new Promise((t,n)=>{let o=!1;const s=r.a.createElement("div",null,r.a.createElement("div",null,Object(c.a)("Which rooms would you like to add to this community?"))),p=r.a.createElement(h.a,{className:"mx_GroupAddressPicker_checkboxContainer",onChange:e=>{o=e.target.checked}},Object(c.a)("Show these rooms to non-members on the community page and room list?")),m=a.getComponent("dialogs.AddressPickerDialog");i.a.createTrackedDialog("Add Rooms to Group","",m,{title:Object(c.a)("Add rooms to the community"),description:s,extraNode:p,placeholder:Object(c.a)("Room name or address"),button:Object(c.a)("Add to community"),pickerType:"room",validAddressTypes:["mx-room-id"],onFinished:(r,s)=>{r&&function(e,t,n){const o=l.a.get(),r=[];return Object(d.a)(t.map(t=>u.a.addRoomToGroup(e,t.address,n).catch(()=>{r.push(t.address)}).then(()=>{const n=t.address,r=o.getRoom(n);if(!r||!r.currentState.mayClientSendStateEvent("m.room.related_groups",o))return;const i=r.currentState.getStateEvents("m.room.related_groups",""),a=i&&i.getContent().groups||[];return a.includes(e)?void 0:(a.push(e),l.a.get().sendStateEvent(n,"m.room.related_groups",{groups:a},""))}))).then(()=>{if(0===r.length)return;const t=a.getComponent("dialogs.ErrorDialog");i.a.createTrackedDialog("Failed to add the following room to the group","",t,{title:Object(c.a)("Failed to add the following rooms to %(groupId)s:",{groupId:e}),description:r.join(", ")})})}(e,s,o).then(t,n)}},null,!1,!0)})}},function(e,t,n){"use strict";async function o(e){try{if(navigator&&navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(e),!0;{const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t);const n=document.getSelection(),o=document.createRange();o.selectNode(t),n.removeAllRanges(),n.addRange(o);const r=document.execCommand("copy");return n.removeAllRanges(),document.body.removeChild(t),r}}catch(e){console.error("copyPlaintext failed",e)}return!1}function r(e){const t=document.createRange();t.selectNodeContents(e);const n=window.getSelection();n.removeAllRanges(),n.addRange(t)}function i(e){return r(e),document.execCommand("copy")}n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";const o=n(1369),r=n(512),i=n(1370),a=n(513),s=r.CODE_POINTS,c=r.CODE_POINT_SEQUENCES,l={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},u="DATA_STATE";function d(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function h(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function p(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function m(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function g(e){return m(e)||p(e)}function f(e){return g(e)||h(e)}function _(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function b(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function v(e){return e+32}function E(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function y(e){return String.fromCharCode(v(e))}function S(e,t){const n=i[++e];let o=++e,r=o+n-1;for(;o<=r;){const e=o+r>>>1,a=i[e];if(a<t)o=e+1;else{if(!(a>t))return i[e+n];r=e-1}}return-1}class T{constructor(){this.preprocessor=new o,this.tokenQueue=[],this.allowCDATA=!1,this.state=u,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:T.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let o=0,r=!0;const i=e.length;let a=0,c=t,l=void 0;for(;a<i;a++){if(a>0&&(c=this._consume(),o++),c===s.EOF){r=!1;break}if(l=e[a],c!==l&&(n||c!==v(l))){r=!1;break}}if(!r)for(;o--;)this._unconsume();return r}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==c.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==c.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:T.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:T.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:T.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:T.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:T.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===T.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(a.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===T.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===T.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(a.endTagWithAttributes),e.selfClosing&&this._err(a.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=T.CHARACTER_TOKEN;d(e)?t=T.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=T.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,E(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(T.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,n=1,o=S(0,e);for(this.tempBuff.push(e);o>-1;){const e=i[o],r=e<7;r&&1&e&&(t=2&e?[i[++o],i[++o]]:[i[++o]],n=0);const a=this._consume();if(this.tempBuff.push(a),n++,a===s.EOF)break;o=r?4&e?S(o,a):-1:a===e?++o:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return"ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE"===this.returnState||"ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE"===this.returnState||"ATTRIBUTE_VALUE_UNQUOTED_STATE"===this.returnState}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||f(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=E(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[u](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state="TAG_OPEN_STATE":e===s.AMPERSAND?(this.returnState=u,this.state="CHARACTER_REFERENCE_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitCodePoint(e)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}RCDATA_STATE(e){this.preprocessor.dropParsedChunk(),e===s.AMPERSAND?(this.returnState="RCDATA_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.LESS_THAN_SIGN?this.state="RCDATA_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}RAWTEXT_STATE(e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state="RAWTEXT_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}SCRIPT_DATA_STATE(e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}PLAINTEXT_STATE(e){this.preprocessor.dropParsedChunk(),e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}TAG_OPEN_STATE(e){e===s.EXCLAMATION_MARK?this.state="MARKUP_DECLARATION_OPEN_STATE":e===s.SOLIDUS?this.state="END_TAG_OPEN_STATE":g(e)?(this._createStartTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===s.QUESTION_MARK?(this._err(a.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE")):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(u))}END_TAG_OPEN_STATE(e){g(e)?(this._createEndTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===s.GREATER_THAN_SIGN?(this._err(a.missingEndTagName),this.state=u):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE"))}TAG_NAME_STATE(e){d(e)?this.state="BEFORE_ATTRIBUTE_NAME_STATE":e===s.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):p(e)?this.currentToken.tagName+=y(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.tagName+=r.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=E(e)}RCDATA_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="RCDATA_END_TAG_OPEN_STATE"):(this._emitChars("<"),this._reconsumeInState("RCDATA_STATE"))}RCDATA_END_TAG_OPEN_STATE(e){g(e)?(this._createEndTagToken(),this._reconsumeInState("RCDATA_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("RCDATA_STATE"))}RCDATA_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=y(e),this.tempBuff.push(e);else if(m(e))this.currentToken.tagName+=E(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(d(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this.state=u,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RCDATA_STATE")}}RAWTEXT_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="RAWTEXT_END_TAG_OPEN_STATE"):(this._emitChars("<"),this._reconsumeInState("RAWTEXT_STATE"))}RAWTEXT_END_TAG_OPEN_STATE(e){g(e)?(this._createEndTagToken(),this._reconsumeInState("RAWTEXT_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("RAWTEXT_STATE"))}RAWTEXT_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=y(e),this.tempBuff.push(e);else if(m(e))this.currentToken.tagName+=E(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(d(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RAWTEXT_STATE")}}SCRIPT_DATA_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_END_TAG_OPEN_STATE"):e===s.EXCLAMATION_MARK?(this.state="SCRIPT_DATA_ESCAPE_START_STATE",this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_STATE"))}SCRIPT_DATA_END_TAG_OPEN_STATE(e){g(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("SCRIPT_DATA_STATE"))}SCRIPT_DATA_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=y(e),this.tempBuff.push(e);else if(m(e))this.currentToken.tagName+=E(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(d(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_STATE")}}SCRIPT_DATA_ESCAPE_START_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPE_START_DASH_STATE",this._emitChars("-")):this._reconsumeInState("SCRIPT_DATA_STATE")}SCRIPT_DATA_ESCAPE_START_DASH_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):this._reconsumeInState("SCRIPT_DATA_STATE")}SCRIPT_DATA_ESCAPED_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}SCRIPT_DATA_ESCAPED_DASH_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_ESCAPED_DASH_DASH_STATE(e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===s.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE"):g(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE")):(this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))}SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE(e){g(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))}SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=y(e),this.tempBuff.push(e);else if(m(e))this.currentToken.tagName+=E(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(d(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}}SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE(e){d(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?"SCRIPT_DATA_DOUBLE_ESCAPED_STATE":"SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e)):p(e)?(this.tempBuff.push(v(e)),this._emitCodePoint(e)):m(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}SCRIPT_DATA_DOUBLE_ESCAPED_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE(e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===s.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",this._emitChars("/")):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")}SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE(e){d(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?"SCRIPT_DATA_ESCAPED_STATE":"SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e)):p(e)?(this.tempBuff.push(v(e)),this._emitCodePoint(e)):m(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")}BEFORE_ATTRIBUTE_NAME_STATE(e){d(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState("AFTER_ATTRIBUTE_NAME_STATE"):e===s.EQUALS_SIGN?(this._err(a.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state="ATTRIBUTE_NAME_STATE"):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))}ATTRIBUTE_NAME_STATE(e){d(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName("AFTER_ATTRIBUTE_NAME_STATE"),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName("BEFORE_ATTRIBUTE_VALUE_STATE"):p(e)?this.currentAttr.name+=y(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(a.unexpectedCharacterInAttributeName),this.currentAttr.name+=E(e)):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.name+=r.REPLACEMENT_CHARACTER):this.currentAttr.name+=E(e)}AFTER_ATTRIBUTE_NAME_STATE(e){d(e)||(e===s.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===s.EQUALS_SIGN?this.state="BEFORE_ATTRIBUTE_VALUE_STATE":e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))}BEFORE_ATTRIBUTE_VALUE_STATE(e){d(e)||(e===s.QUOTATION_MARK?this.state="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE":e===s.APOSTROPHE?this.state="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE":e===s.GREATER_THAN_SIGN?(this._err(a.missingAttributeValue),this.state=u,this._emitCurrentToken()):this._reconsumeInState("ATTRIBUTE_VALUE_UNQUOTED_STATE"))}ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE(e){e===s.QUOTATION_MARK?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===s.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=r.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=E(e)}ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE(e){e===s.APOSTROPHE?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===s.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=r.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=E(e)}ATTRIBUTE_VALUE_UNQUOTED_STATE(e){d(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===s.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_UNQUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(u),this._emitCurrentToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=r.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(a.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=E(e)):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=E(e)}AFTER_ATTRIBUTE_VALUE_QUOTED_STATE(e){d(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===s.SOLIDUS?this._leaveAttrValue("SELF_CLOSING_START_TAG_STATE"):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(u),this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.missingWhitespaceBetweenAttributes),this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE"))}SELF_CLOSING_START_TAG_STATE(e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.unexpectedSolidusInTag),this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE"))}BOGUS_COMMENT_STATE(e){e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=r.REPLACEMENT_CHARACTER):this.currentToken.data+=E(e)}MARKUP_DECLARATION_OPEN_STATE(e){this._consumeSequenceIfMatch(c.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state="COMMENT_START_STATE"):this._consumeSequenceIfMatch(c.DOCTYPE_STRING,e,!1)?this.state="DOCTYPE_STATE":this._consumeSequenceIfMatch(c.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state="CDATA_SECTION_STATE":(this._err(a.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state="BOGUS_COMMENT_STATE"):this._ensureHibernation()||(this._err(a.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE"))}COMMENT_START_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_START_DASH_STATE":e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=u,this._emitCurrentToken()):this._reconsumeInState("COMMENT_STATE")}COMMENT_START_DASH_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_END_STATE":e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState("COMMENT_STATE"))}COMMENT_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_END_DASH_STATE":e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state="COMMENT_LESS_THAN_SIGN_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=r.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=E(e)}COMMENT_LESS_THAN_SIGN_STATE(e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state="COMMENT_LESS_THAN_SIGN_BANG_STATE"):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState("COMMENT_STATE")}COMMENT_LESS_THAN_SIGN_BANG_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE":this._reconsumeInState("COMMENT_STATE")}COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE":this._reconsumeInState("COMMENT_END_DASH_STATE")}COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE(e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(a.nestedComment),this._reconsumeInState("COMMENT_END_STATE")}COMMENT_END_DASH_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_END_STATE":e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState("COMMENT_STATE"))}COMMENT_END_STATE(e){e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state="COMMENT_END_BANG_STATE":e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState("COMMENT_STATE"))}COMMENT_END_BANG_STATE(e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state="COMMENT_END_DASH_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.incorrectlyClosedComment),this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState("COMMENT_STATE"))}DOCTYPE_STATE(e){d(e)?this.state="BEFORE_DOCTYPE_NAME_STATE":e===s.GREATER_THAN_SIGN?this._reconsumeInState("BEFORE_DOCTYPE_NAME_STATE"):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingWhitespaceBeforeDoctypeName),this._reconsumeInState("BEFORE_DOCTYPE_NAME_STATE"))}BEFORE_DOCTYPE_NAME_STATE(e){d(e)||(p(e)?(this._createDoctypeToken(y(e)),this.state="DOCTYPE_NAME_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._createDoctypeToken(r.REPLACEMENT_CHARACTER),this.state="DOCTYPE_NAME_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(E(e)),this.state="DOCTYPE_NAME_STATE"))}DOCTYPE_NAME_STATE(e){d(e)?this.state="AFTER_DOCTYPE_NAME_STATE":e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):p(e)?this.currentToken.name+=y(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.name+=r.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=E(e)}AFTER_DOCTYPE_NAME_STATE(e){d(e)||(e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(c.PUBLIC_STRING,e,!1)?this.state="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE":this._consumeSequenceIfMatch(c.SYSTEM_STRING,e,!1)?this.state="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE":this._ensureHibernation()||(this._err(a.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE(e){d(e)?this.state="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE(e){d(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE(e){e===s.QUOTATION_MARK?this.state="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=r.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=E(e)}DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE(e){e===s.APOSTROPHE?this.state="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=r.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=E(e)}AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE(e){d(e)?this.state="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE":e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE(e){d(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=u):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE(e){d(e)?this.state="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE(e){d(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE(e){e===s.QUOTATION_MARK?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=r.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=E(e)}DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE(e){e===s.APOSTROPHE?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=r.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=E(e)}AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE(e){d(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}BOGUS_DOCTYPE_STATE(e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=u):e===s.NULL?this._err(a.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}CDATA_SECTION_STATE(e){e===s.RIGHT_SQUARE_BRACKET?this.state="CDATA_SECTION_BRACKET_STATE":e===s.EOF?(this._err(a.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}CDATA_SECTION_BRACKET_STATE(e){e===s.RIGHT_SQUARE_BRACKET?this.state="CDATA_SECTION_END_STATE":(this._emitChars("]"),this._reconsumeInState("CDATA_SECTION_STATE"))}CDATA_SECTION_END_STATE(e){e===s.GREATER_THAN_SIGN?this.state=u:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState("CDATA_SECTION_STATE"))}CHARACTER_REFERENCE_STATE(e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state="NUMERIC_CHARACTER_REFERENCE_STATE"):f(e)?this._reconsumeInState("NAMED_CHARACTER_REFERENCE_STATE"):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}NAMED_CHARACTER_REFERENCE_STATE(e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(a.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state="AMBIGUOS_AMPERSAND_STATE"}AMBIGUOS_AMPERSAND_STATE(e){f(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=E(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(a.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}NUMERIC_CHARACTER_REFERENCE_STATE(e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE"):this._reconsumeInState("DECIMAL_CHARACTER_REFERENCE_START_STATE")}HEXADEMICAL_CHARACTER_REFERENCE_START_STATE(e){!function(e){return h(e)||_(e)||b(e)}(e)?(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState("HEXADEMICAL_CHARACTER_REFERENCE_STATE")}DECIMAL_CHARACTER_REFERENCE_START_STATE(e){h(e)?this._reconsumeInState("DECIMAL_CHARACTER_REFERENCE_STATE"):(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}HEXADEMICAL_CHARACTER_REFERENCE_STATE(e){_(e)?this.charRefCode=16*this.charRefCode+e-55:b(e)?this.charRefCode=16*this.charRefCode+e-87:h(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state="NUMERIC_CHARACTER_REFERENCE_END_STATE":(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState("NUMERIC_CHARACTER_REFERENCE_END_STATE"))}DECIMAL_CHARACTER_REFERENCE_STATE(e){h(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state="NUMERIC_CHARACTER_REFERENCE_END_STATE":(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState("NUMERIC_CHARACTER_REFERENCE_END_STATE"))}NUMERIC_CHARACTER_REFERENCE_END_STATE(){if(this.charRefCode===s.NULL)this._err(a.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(a.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(r.isSurrogate(this.charRefCode))this._err(a.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(r.isUndefinedCodePoint(this.charRefCode))this._err(a.noncharacterCharacterReference);else if(r.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(a.controlCharacterReference);const e=l[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}T.CHARACTER_TOKEN="CHARACTER_TOKEN",T.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",T.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",T.START_TAG_TOKEN="START_TAG_TOKEN",T.END_TAG_TOKEN="END_TAG_TOKEN",T.COMMENT_TOKEN="COMMENT_TOKEN",T.DOCTYPE_TOKEN="DOCTYPE_TOKEN",T.EOF_TOKEN="EOF_TOKEN",T.HIBERNATION_TOKEN="HIBERNATION_TOKEN",T.MODE={DATA:u,RCDATA:"RCDATA_STATE",RAWTEXT:"RAWTEXT_STATE",SCRIPT_DATA:"SCRIPT_DATA_STATE",PLAINTEXT:"PLAINTEXT_STATE"},T.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=T},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(82),r=n.n(o),i=n(221);class a extends i.a{static set matrixClient(e){const t=a._matrixClient;a._matrixClient=e;for(const n of a.instances)n.initMatrixClient(t,e)}constructor(){super(),a.instances.push(this)}get client(){return a._matrixClient}initMatrixClient(e,t){console.warn("initMatrixClient not overridden")}}r()(a,"_matrixClient",void 0),r()(a,"instances",[])},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(6),r=n(162),i=n(129),a=n(1),s=n(0),c=n(201),l=n.n(c);class u extends o.EventEmitter{constructor(e,t,n){super(),l()(this,"_onEventStatus",(e,t)=>{e.isSending()?t===i.a.CANCELLED&&(e.removeListener("Event.status",this._onEventStatus),this._removeEvent(e)):e.removeListener("Event.status",this._onEventStatus)}),l()(this,"_onBeforeRedaction",e=>{this._relations.has(e)&&(this._relations.delete(e),"m.annotation"===this.relationType?this._removeAnnotationFromAggregation(e):"m.replace"===this.relationType&&this._targetEvent&&this._targetEvent.makeReplaced(this.getLastReplacement()),e.removeListener("Event.beforeRedaction",this._onBeforeRedaction),this.emit("Relations.redaction",e))}),this.relationType=e,this.eventType=t,this._relations=new Set,this._annotationsByKey={},this._annotationsBySender={},this._sortedAnnotationsByKey=[],this._targetEvent=null}addEvent(e){if(this._relations.has(e))return;const t=e.getRelation();if(!t)return void s.a.error("Event must have relation info");const n=t.rel_type,o=e.getType();this.relationType===n&&this.eventType===o?(e.isSending()&&e.on("Event.status",this._onEventStatus),this._relations.add(e),"m.annotation"===this.relationType?this._addAnnotationToAggregation(e):"m.replace"===this.relationType&&this._targetEvent&&this._targetEvent.makeReplaced(this.getLastReplacement()),e.on("Event.beforeRedaction",this._onBeforeRedaction),this.emit("Relations.add",e)):s.a.error("Event relation info doesn't match this container")}_removeEvent(e){if(!this._relations.has(e))return;const t=e.getRelation();if(!t)return void s.a.error("Event must have relation info");const n=t.rel_type,o=e.getType();this.relationType===n&&this.eventType===o?(this._relations.delete(e),"m.annotation"===this.relationType?this._removeAnnotationFromAggregation(e):"m.replace"===this.relationType&&this._targetEvent&&this._targetEvent.makeReplaced(this.getLastReplacement()),this.emit("Relations.remove",e)):s.a.error("Event relation info doesn't match this container")}getRelations(){return[...this._relations]}_addAnnotationToAggregation(e){const{key:t}=e.getRelation();if(!t)return;let n=this._annotationsByKey[t];n||(n=this._annotationsByKey[t]=new Set,this._sortedAnnotationsByKey.push([t,n])),n.add(e),this._sortedAnnotationsByKey.sort((e,t)=>{const n=e[1];return t[1].size-n.size});const o=e.getSender();let r=this._annotationsBySender[o];r||(r=this._annotationsBySender[o]=new Set),r.add(e)}_removeAnnotationFromAggregation(e){const{key:t}=e.getRelation();if(!t)return;const n=this._annotationsByKey[t];n&&(n.delete(e),this._sortedAnnotationsByKey.sort((e,t)=>{const n=e[1];return t[1].size-n.size}));const o=e.getSender(),r=this._annotationsBySender[o];r&&r.delete(e)}getSortedAnnotationsByKey(){return"m.annotation"!==this.relationType?null:this._sortedAnnotationsByKey}getAnnotationsBySender(){return"m.annotation"!==this.relationType?null:this._annotationsBySender}getLastReplacement(){if("m.replace"!==this.relationType)return null;if(!this._targetEvent)return null;const e=this._targetEvent.getServerAggregatedRelation("m.replace"),t=e&&e.origin_server_ts;return this.getRelations().reduce((e,n)=>n.getSender()!==this._targetEvent.getSender()||t&&t>n.getTs()||e&&e.getTs()>n.getTs()?e:n,null)}setTargetEvent(e){if(!this._targetEvent&&(this._targetEvent=e,"m.replace"===this.relationType)){const e=this.getLastReplacement();e&&this._targetEvent.makeReplaced(e)}}}let d;function h(e,t){this.room=e,this._timelineSupport=Boolean(t.timelineSupport),this._liveTimeline=new r.a(this),this._unstableClientRelationAggregation=!!t.unstableClientRelationAggregation,this._timelines=[this._liveTimeline],this._eventIdToTimeline={},this._filter=t.filter||null,this._unstableClientRelationAggregation&&(this._relations={})}d=s.a.log.bind(s.a),a.o(h,o.EventEmitter),h.prototype.getTimelines=function(){return this._timelines},h.prototype.getFilter=function(){return this._filter},h.prototype.setFilter=function(e){this._filter=e},h.prototype.getPendingEvents=function(){return this.room?this._filter?this._filter.filterRoomTimeline(this.room.getPendingEvents()):this.room.getPendingEvents():[]},h.prototype.getLiveTimeline=function(){return this._liveTimeline},h.prototype.eventIdToTimeline=function(e){return this._eventIdToTimeline[e]},h.prototype.replaceEventId=function(e,t){const n=this._eventIdToTimeline[e];n&&(delete this._eventIdToTimeline[e],this._eventIdToTimeline[t]=n)},h.prototype.resetLiveTimeline=function(e,t){const n=!this._timelineSupport||!t,o=this._liveTimeline,i=n?o.forkLive(r.a.FORWARDS):o.fork(r.a.FORWARDS);n?(this._timelines=[i],this._eventIdToTimeline={}):this._timelines.push(i),t&&o.setPaginationToken(t,r.a.FORWARDS),i.setPaginationToken(e,r.a.BACKWARDS),this._liveTimeline=i,this.emit("Room.timelineReset",this.room,this,n)},h.prototype.getTimelineForEvent=function(e){const t=this._eventIdToTimeline[e];return void 0===t?null:t},h.prototype.findEventById=function(e){const t=this.getTimelineForEvent(e);if(t)return a.k(t.getEvents(),(function(t){return t.getId()==e}))},h.prototype.addTimeline=function(){if(!this._timelineSupport)throw new Error("timeline support is disabled. Set the 'timelineSupport' parameter to true when creating MatrixClient to enable it.");const e=new r.a(this);return this._timelines.push(e),e},h.prototype.addEventsToTimeline=function(e,t,n,o){if(!n)throw new Error("'timeline' not specified for EventTimelineSet.addEventsToTimeline");if(!t&&n==this._liveTimeline)throw new Error("EventTimelineSet.addEventsToTimeline cannot be used for adding events to the live timeline - use Room.addLiveEvents instead");if(this._filter&&!(e=this._filter.filterRoomTimeline(e)).length)return;const i=t?r.a.BACKWARDS:r.a.FORWARDS,a=t?r.a.FORWARDS:r.a.BACKWARDS;let c=!1,l=!1;for(let o=0;o<e.length;o++){const u=e[o],h=u.getId(),p=this._eventIdToTimeline[h];if(!p){this.addEventToTimeline(u,n,t),l=!0,c=!0;continue}if(l=!1,p==n){d("Event "+h+" already in timeline "+n);continue}const m=n.getNeighbouringTimeline(i);if(m){d(p==m?"Event "+h+" in neighbouring timeline - switching to "+p:"Event "+h+" already in a different timeline "+p),n=p;continue}s.a.info("Already have timeline for "+h+" - joining timeline "+n+" to "+p);const g=p===this._liveTimeline,f=n===this._liveTimeline,_=i===r.a.BACKWARDS&&g,b=i===r.a.FORWARDS&&f;_||b?(_&&s.a.warn("Refusing to set a preceding existingTimeLine on our timeline as the existingTimeLine is live ("+p+")"),b&&s.a.warn("Refusing to set our preceding timeline on a existingTimeLine as our timeline is live ("+n+")")):(n.setNeighbouringTimeline(p,i),p.setNeighbouringTimeline(n,a),n=p,c=!0)}if(l||!c){if(i===r.a.FORWARDS&&n===this._liveTimeline)return s.a.warn({lastEventWasNew:l,didUpdate:c}),void s.a.warn(`Refusing to set forwards pagination token of live timeline ${n} to ${o}`);n.setPaginationToken(o,i)}},h.prototype.addLiveEvent=function(e,t,n){if(this._filter){if(!this._filter.filterRoomTimeline([e]).length)return}const o=this._eventIdToTimeline[e.getId()];if(o)if("replace"===t){d("EventTimelineSet.addLiveEvent: replacing duplicate event "+e.getId());const t=o.getEvents();for(let n=0;n<t.length;n++)if(t[n].getId()===e.getId()){r.a.setEventMetadata(e,o.getState(r.a.FORWARDS),!1),t[n].encryptedType||(t[n]=e);break}}else d("EventTimelineSet.addLiveEvent: ignoring duplicate event "+e.getId());else this.addEventToTimeline(e,this._liveTimeline,!1,n)},h.prototype.addEventToTimeline=function(e,t,n,o){const r=e.getId();t.addEvent(e,n),this._eventIdToTimeline[r]=t,this.setRelationsTarget(e),this.aggregateRelations(e);const i={timeline:t,liveEvent:!n&&t==this._liveTimeline&&!o};this.emit("Room.timeline",e,this.room,Boolean(n),!1,i)},h.prototype.handleRemoteEcho=function(e,t,n){const o=this._eventIdToTimeline[t];o?(delete this._eventIdToTimeline[t],this._eventIdToTimeline[n]=o):this._filter?this._filter.filterRoomTimeline([e]).length&&this.addEventToTimeline(e,this._liveTimeline,!1):this.addEventToTimeline(e,this._liveTimeline,!1)},h.prototype.removeEvent=function(e){const t=this._eventIdToTimeline[e];if(!t)return null;const n=t.removeEvent(e);if(n){delete this._eventIdToTimeline[e];const o={timeline:t};this.emit("Room.timeline",n,this.room,void 0,!0,o)}return n},h.prototype.compareEventOrdering=function(e,t){if(e==t)return 0;const n=this._eventIdToTimeline[e],o=this._eventIdToTimeline[t];if(void 0===n)return null;if(void 0===o)return null;if(n===o){let o,r;const i=n.getEvents();for(let n=0;n<i.length&&(void 0===o||void 0===r);n++){const a=i[n].getId();a==e&&(o=n),a==t&&(r=n)}return o-r}let i=n;for(;i;){if(i===o)return-1;i=i.getNeighbouringTimeline(r.a.FORWARDS)}for(i=n;i;){if(i===o)return 1;i=i.getNeighbouringTimeline(r.a.BACKWARDS)}return null},h.prototype.getRelationsForEvent=function(e,t,n){if(!this._unstableClientRelationAggregation)throw new Error("Client-side relation aggregation is disabled");if(!e||!t||!n)throw new Error("Invalid arguments for `getRelationsForEvent`");return((this._relations[e]||{})[t]||{})[n]},h.prototype.setRelationsTarget=function(e){if(!this._unstableClientRelationAggregation)return;const t=this._relations[e.getId()];if(!t)return;const n=t["m.replace"];if(!n)return;const o=n["m.room.message"];o&&o.setTargetEvent(e)},h.prototype.aggregateRelations=function(e){if(!this._unstableClientRelationAggregation)return;if(e.isRedacted()||e.status===i.a.CANCELLED)return;if(e.isBeingDecrypted())return void e.once("Event.decrypted",()=>{this.aggregateRelations(e)});const t=e.getRelation();if(!t)return;const n=t.event_id,o=t.rel_type,r=e.getType();let a=this._relations[n];a||(a=this._relations[n]={});let s=a[o];s||(s=a[o]={});let c,l=s[r],d=!1;l||(l=s[r]=new u(o,r,this.room),d=!0,c=this.findEventById(n)||this.room.getPendingEvent(n),c&&l.setTargetEvent(c)),l.addEvent(e),d&&c&&c.emit("Event.relationsCreated",o,r)}},function(e,t,n){"use strict";function o(e){this.filter_json=e,this.types=e.types||null,this.not_types=e.not_types||[],this.rooms=e.rooms||null,this.not_rooms=e.not_rooms||[],this.senders=e.senders||null,this.not_senders=e.not_senders||[],this.contains_url=e.contains_url||null}function r(e,t,n){const o=t.split(".");let r=e;for(let e=0;e<o.length-1;e++)r[o[e]]||(r[o[e]]={}),r=r[o[e]];r[o[o.length-1]]=n}function i(e,t){this.userId=e,this.filterId=t,this.definition={}}n.d(t,"a",(function(){return i})),o.prototype.check=function(e){return this._checkFields(e.getRoomId(),e.getSender(),e.getType(),!!e.getContent()&&void 0!==e.getContent().url)},o.prototype._checkFields=function(e,t,n,o){const r={rooms:function(t){return e===t},senders:function(e){return t===e},types:function(e){return function(e,t){if(t.endsWith("*")){const n=t.slice(0,-1);return e.substr(0,n.length)===n}return e===t}(n,e)}},i=this;for(let e=0;e<Object.keys(r).length;e++){const t=Object.keys(r)[e],n=r[t];if(i["not_"+t].filter(n).length>0)return!1;const o=i[t];if(o&&o.length>0){if(!o.some(n))return!1}}const a=this.filter_json.contains_url;return void 0===a||a===o},o.prototype.filter=function(e){return e.filter(this.check,this)},o.prototype.limit=function(){return void 0!==this.filter_json.limit?this.filter_json.limit:10},i.LAZY_LOADING_MESSAGES_FILTER={lazy_load_members:!0},i.prototype.getFilterId=function(){return this.filterId},i.prototype.getDefinition=function(){return this.definition},i.prototype.setDefinition=function(e){this.definition=e;const t=e.room,n={};t&&(t.rooms&&(n.rooms=t.rooms),t.rooms&&(n.not_rooms=t.not_rooms),this._include_leave=t.include_leave||!1),this._room_filter=new o(n),this._room_timeline_filter=new o(t&&t.timeline||{})},i.prototype.getRoomTimelineFilterComponent=function(){return this._room_timeline_filter},i.prototype.filterRoomTimeline=function(e){return this._room_timeline_filter.filter(this._room_filter.filter(e))},i.prototype.setTimelineLimit=function(e){r(this.definition,"room.timeline.limit",e)},i.prototype.setLazyLoadMembers=function(e){r(this.definition,"room.state.lazy_load_members",!!e)},i.prototype.setIncludeLeaveRooms=function(e){r(this.definition,"room.include_leave",e)},i.fromJson=function(e,t,n){const o=new i(e,t);return o.setDefinition(n),o}},function(e,t,n){"use strict";n.d(t,"b",(function(){return A})),n.d(t,"c",(function(){return I})),n.d(t,"a",(function(){return D})),n.d(t,"d",(function(){return U}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(83),c=n(85),l=n(86),u=n(108),d=n(123),h=(n(175),n(92)),p=n(128),m=n(210),g=n(293),f=n(243),_=n(87),b=n(194),v=n(89);var E=n(155),y=n(154),S=n(98),T=n(93),w=n(120),C=n(142),x=n(156),O=n(88),k=n(101),R=n(103);const A="dm",I="invite",D="call_transfer";class N{get name(){throw new Error("Member class not implemented")}get userId(){throw new Error("Member class not implemented")}getMxcAvatarUrl(){throw new Error("Member class not implemented")}}class F extends N{constructor(e){super(),r()(this,"_userId",void 0),r()(this,"_displayName",void 0),r()(this,"_avatarUrl",void 0),this._userId=e.user_id,this._displayName=e.display_name,this._avatarUrl=e.avatar_url}get name(){return this._displayName||this._userId}get userId(){return this._userId}getMxcAvatarUrl(){return this._avatarUrl}}class M extends N{constructor(e){super(),r()(this,"_id",void 0),this._id=e}get isEmail(){return this._id.includes("@")}get name(){return this._id}get userId(){return this._id}getMxcAvatarUrl(){return null}}class P extends a.a.PureComponent{constructor(...e){super(...e),r()(this,"_onRemove",e=>{e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.member)})}render(){const e=c.getComponent("views.avatars.BaseAvatar"),t=c.getComponent("elements.AccessibleButton"),o=this.props.member.isEmail?a.a.createElement("img",{className:"mx_InviteDialog_userTile_avatar mx_InviteDialog_userTile_threepidAvatar",src:n(681),width:20,height:20}):a.a.createElement(e,{className:"mx_InviteDialog_userTile_avatar",url:Object(p.a)(l.a.get().getHomeserverUrl(),this.props.member.getMxcAvatarUrl(),20,20,"crop"),name:this.props.member.name,idName:this.props.member.userId,width:20,height:20});let r;return this.props.onRemove&&(r=a.a.createElement(t,{className:"mx_InviteDialog_userTile_remove",onClick:this._onRemove},a.a.createElement("img",{src:n(1240),alt:Object(s.a)("Remove"),width:8,height:8}))),a.a.createElement("span",{className:"mx_InviteDialog_userTile"},a.a.createElement("span",{className:"mx_InviteDialog_userTile_pill"},o,a.a.createElement("span",{className:"mx_InviteDialog_userTile_name"},this.props.member.name)),r)}}class L extends a.a.PureComponent{constructor(...e){super(...e),r()(this,"_onClick",e=>{e.preventDefault(),e.stopPropagation(),this.props.onToggle(this.props.member)})}_highlightName(e){if(!this.props.highlightWord)return e;const t=e.toLowerCase(),n=this.props.highlightWord.toLowerCase(),o=[];let r,i=0;for(;(r=t.indexOf(n,i))>=0;){r>i&&o.push(a.a.createElement("span",{key:i+"begin"},e.substring(i,r))),i=r;const t=e.substring(i,n.length+i);o.push(a.a.createElement("span",{className:"mx_InviteDialog_roomTile_highlight",key:i+"bold"},t)),i+=t.length}return i<e.length&&o.push(a.a.createElement("span",{key:i+"end"},e.substring(i))),o}render(){const e=c.getComponent("views.avatars.BaseAvatar");let t=null;if(this.props.lastActiveTs){const e=function(e){let t=(new Date).getTime()-e;const n=Math.abs(Math.ceil(t/6e4)),o=Math.ceil(n/60),r=Math.ceil(o/24);return t>=0?t<=15e3?Object(s.a)("a few seconds ago"):t<=75e3?Object(s.a)("about a minute ago"):n<=45?Object(s.a)("%(num)s minutes ago",{num:n}):n<=75?Object(s.a)("about an hour ago"):o<=23?Object(s.a)("%(num)s hours ago",{num:o}):o<=26?Object(s.a)("about a day ago"):Object(s.a)("%(num)s days ago",{num:r}):(t=Math.abs(t),t<=15e3?Object(s.a)("a few seconds from now"):t<=75e3?Object(s.a)("about a minute from now"):n<=45?Object(s.a)("%(num)s minutes from now",{num:n}):n<=75?Object(s.a)("about an hour from now"):o<=23?Object(s.a)("%(num)s hours from now",{num:o}):o<=26?Object(s.a)("about a day from now"):Object(s.a)("%(num)s days from now",{num:r}))}(this.props.lastActiveTs);t=a.a.createElement("span",{className:"mx_InviteDialog_roomTile_time"},e)}const o=this.props.member.isEmail?a.a.createElement("img",{src:n(681),width:36,height:36}):a.a.createElement(e,{url:Object(p.a)(l.a.get().getHomeserverUrl(),this.props.member.getMxcAvatarUrl(),36,36,"crop"),name:this.props.member.name,idName:this.props.member.userId,width:36,height:36});let r=null;this.props.isSelected&&(r=a.a.createElement("div",{className:"mx_InviteDialog_roomTile_selected"}));const i=a.a.createElement("span",{className:"mx_InviteDialog_roomTile_avatarStack"},o,r),u=this.props.member.isEmail?Object(s.a)("Invite by email"):this._highlightName(this.props.member.userId);return a.a.createElement("div",{className:"mx_InviteDialog_roomTile",onClick:this._onClick},i,a.a.createElement("span",{className:"mx_InviteDialog_roomTile_nameStack"},a.a.createElement("div",{className:"mx_InviteDialog_roomTile_name"},this._highlightName(this.props.member.name)),a.a.createElement("div",{className:"mx_InviteDialog_roomTile_userId"},u)),t)}}class U extends a.a.PureComponent{constructor(e){if(super(e),r()(this,"_debounceTimer",null),r()(this,"_editorRef",null),r()(this,"_startDm",async()=>{this.setState({busy:!0});const e=this._convertFilter(),t=e.map(e=>e.userId);let n;if(n=1===t.length?Object(E.d)(l.a.get(),t[0]):d.a.shared().getDMRoomForIdentifiers(t),n)return _.a.dispatch({action:"view_room",room_id:n.roomId,should_peek:!1,joining:!1}),void this.props.onFinished();const o={inlineErrors:!0};if(Object(E.e)()){if(!e.some(e=>e instanceof M)){const e=l.a.get();await Object(E.a)(e,t)&&(o.encryption=!0)}}let r=Promise.resolve(null);const i=1===t.length&&t[0]===l.a.get().getUserId();1!==t.length||i?r=i?Object(E.b)(o):Object(E.b)(o).then(e=>Object(y.a)(e,t)).then(e=>{if(this._shouldAbortAfterInviteError(e))return!0}):(o.dmUserId=t[0],r=Object(E.b)(o)),r.then(e=>{!0!==e&&this.props.onFinished()}).catch(e=>{console.error(e),this.setState({busy:!1,errorText:Object(s.a)("We couldn't create your DM. Please check the users you want to invite and try again.")})})}),r()(this,"_inviteUsers",()=>{const e=R.a.getTimestamp();this.setState({busy:!0}),this._convertFilter();const t=this._convertFilter().map(e=>e.userId);if(!l.a.get().getRoom(this.props.roomId))return console.error("Failed to find the room to invite users to"),void this.setState({busy:!1,errorText:Object(s.a)("Something went wrong trying to invite the users.")});Object(y.a)(this.props.roomId,t).then(n=>{R.a.instance.trackSendInvite(e,this.props.roomId,t.length),this._shouldAbortAfterInviteError(n)||this.props.onFinished()}).catch(e=>{console.error(e),this.setState({busy:!1,errorText:Object(s.a)("We couldn't invite those users. Please check the users you want to invite and try again.")})})}),r()(this,"_transferCall",async()=>{this._convertFilter();const e=this._convertFilter().map(e=>e.userId);e.length>1&&this.setState({errorText:Object(s.a)("A call can only be transferred to a single user.")}),this.setState({busy:!0});try{await this.props.call.transfer(e[0]),this.setState({busy:!1}),this.props.onFinished()}catch(e){this.setState({busy:!1,errorText:Object(s.a)("Failed to transfer call")})}}),r()(this,"_onKeyDown",e=>{if(this.state.busy)return;const t=e.target.value.trim(),n=e.ctrlKey||e.shiftKey||e.metaKey;!t&&this.state.targets.length>0&&e.key===S.a.BACKSPACE&&!n?(e.preventDefault(),this._removeMember(this.state.targets[this.state.targets.length-1])):(t&&e.key===S.a.ENTER&&!n||t&&e.key===S.a.SPACE&&!n&&t.includes("@")&&!t.includes(" "))&&(e.preventDefault(),this._convertFilter())}),r()(this,"_updateSuggestions",async e=>{if(l.a.get().searchUserDirectory({term:e}).then(async t=>{if(e===this.state.filterText){if(t.results||(t.results=[]),"@"===e[0]&&e.indexOf(":")>1)try{const n=await l.a.get().getProfileInfo(e);n&&t.results.splice(0,0,{user_id:e,display_name:n.displayname,avatar_url:n.avatar_url})}catch(n){console.warn("Non-fatal error trying to make an invite for a user ID"),console.warn(n),t.results.splice(0,0,{user_id:e,display_name:e,avatar_url:null})}this.setState({serverResultsMixin:t.results.map(e=>({userId:e.user_id,user:new F(e)}))})}}).catch(e=>{console.error("Error searching user directory:"),console.error(e),this.setState({serverResultsMixin:[]})}),this.state.canUseIdentityServer){if(e.indexOf("@")>0&&m.a(e)&&O.a.getValue(k.a.IdentityServer)){this.setState({threepidResultsMixin:[{user:new M(e),userId:e}]});try{const t=new b.a,n=await t.getAccessToken();if(e!==this.state.filterText)return;const o=await l.a.get().lookupThreePid("email",e,void 0,n);if(e!==this.state.filterText)return;if(!o||!o.mxid)return;const r=await l.a.get().getProfileInfo(o.mxid);if(e!==this.state.filterText||!r)return;this.setState({threepidResultsMixin:[...this.state.threepidResultsMixin,{user:new F({user_id:o.mxid,display_name:r.displayname,avatar_url:r.avatar_url}),userId:o.mxid}]})}catch(e){console.error("Error searching identity server:"),console.error(e),this.setState({threepidResultsMixin:[]})}}}else this.setState({tryingIdentityServer:!0})}),r()(this,"_updateFilter",e=>{const t=e.target.value;this.setState({filterText:t}),this._debounceTimer&&clearTimeout(this._debounceTimer),this._debounceTimer=setTimeout(()=>{this._updateSuggestions(t)},150)}),r()(this,"_showMoreRecents",()=>{this.setState({numRecentsShown:this.state.numRecentsShown+5})}),r()(this,"_showMoreSuggestions",()=>{this.setState({numSuggestionsShown:this.state.numSuggestionsShown+5})}),r()(this,"_toggleMember",e=>{let t=this.state.filterText;const n=this.state.targets.map(e=>e),o=n.indexOf(e);o>=0?n.splice(o,1):(n.push(e),t=""),this.setState({targets:n,filterText:t}),this._editorRef&&this._editorRef.current&&this._editorRef.current.focus()}),r()(this,"_removeMember",e=>{const t=this.state.targets.map(e=>e),n=t.indexOf(e);n>=0&&(t.splice(n,1),this.setState({targets:t})),this._editorRef&&this._editorRef.current&&this._editorRef.current.focus()}),r()(this,"_onPaste",async e=>{if(this.state.filterText)return;e.preventDefault();const t=e.clipboardData.getData("text"),n=[...this.state.recents,...this.state.suggestions,...this.state.serverResultsMixin,...this.state.threepidResultsMixin],o=[],r=[],i=t.split(/[\s,]+/).map(e=>e.trim()).filter(e=>!!e);for(const t of i){const i=n.find(e=>e.userId===t);if(i)o.push(i.user);else if(t.indexOf("@")>0&&m.a(t))o.push(new M(t));else if("@"===t[0])try{const e=await l.a.get().getProfileInfo(t),n=e?e.displayname:null,r=e?e.avatar_url:null;o.push(new F({user_id:t,display_name:n,avatar_url:r}))}catch(e){console.error("Error looking up profile for "+t),console.error(e),r.push(t)}else r.push(t)}if(r.length>0){const e=c.getComponent("dialogs.QuestionDialog");v.a.createTrackedDialog("Invite Paste Fail","",e,{title:Object(s.a)("Failed to find the following users"),description:Object(s.a)("The following users might not exist or are invalid, and cannot be invited: %(csvNames)s",{csvNames:r.join(", ")}),button:Object(s.a)("OK")})}this.setState({targets:[...this.state.targets,...o]})}),r()(this,"_onClickInputArea",e=>{e.preventDefault(),e.stopPropagation(),this._editorRef&&this._editorRef.current&&this._editorRef.current.focus()}),r()(this,"_onUseDefaultIdentityServerClick",e=>{e.preventDefault(),Object(g.d)(),this.setState({canUseIdentityServer:!0,tryingIdentityServer:!1})}),r()(this,"_onManageSettingsClick",e=>{e.preventDefault(),_.a.fire(T.a.ViewUserSettings),this.props.onFinished()}),r()(this,"_onCommunityInviteClick",e=>{this.props.onFinished(),Object(y.e)(x.a.instance.getSelectedCommunityId())}),e.kind===I&&!e.roomId)throw new Error("When using KIND_INVITE a roomId is required for an InviteDialog");if(e.kind===D&&!e.call)throw new Error("When using KIND_CALL_TRANSFER a call is required for an InviteDialog");const t=new Set([l.a.get().getUserId(),h.a.get().welcomeUserId]);if(e.roomId){const n=l.a.get().getRoom(e.roomId);if(!n)throw new Error("Room ID given to InviteDialog does not look like a room");n.getMembersWithMembership("invite").forEach(e=>t.add(e.userId)),n.getMembersWithMembership("join").forEach(e=>t.add(e.userId)),n.getMembersWithMembership("ban").forEach(e=>t.add(e.userId)),R.a.instance.trackBeginInvite(e.roomId)}this.state={targets:[],filterText:this.props.initialText,recents:U.buildRecents(t),numRecentsShown:3,suggestions:this._buildSuggestions(t),numSuggestionsShown:3,serverResultsMixin:[],threepidResultsMixin:[],canUseIdentityServer:!!l.a.get().getIdentityServerUrl(),tryingIdentityServer:!1,busy:!1,errorText:null},this._editorRef=Object(i.createRef)()}componentDidMount(){this.props.initialText&&this._updateSuggestions(this.props.initialText)}static buildRecents(e){const t=d.a.shared().getUniqueRoomsWithIndividuals(),n=C.b.instance.orderedLists[w.a.DM]||[],o=l.a.get().getUserId();for(const e of n){const n=e.getJoinedMembers().filter(e=>e.userId!==o);for(const o of n)t[o.userId]||(console.warn(`Adding DM room for ${o.userId} as ${e.roomId} from tag, not DM map`),t[o.userId]=e)}const r=[];for(const n in t){if(e.has(n)){console.warn(`[Invite:Recents] Excluding ${n} from recents`);continue}const o=t[n],i=o.getMember(n);if(!i){console.warn(`[Invite:Recents] ${n} is missing a member object in their own DM (${o.roomId})`);continue}const a=["m.room.message","m.room.encrypted","m.sticker"],s=20;let c=0;if(o.timeline&&o.timeline.length)for(let e=o.timeline.length-1;e>=0;e--){const t=o.timeline[e];if(a.includes(t.getType())){c=t.getTs();break}if(o.timeline.length-e>s)break}c?r.push({userId:n,user:i,lastActive:c}):console.warn(`[Invite:Recents] ${n} (${o.roomId}) has a weird last timestamp: ${c}`)}return r||console.warn("[Invite:Recents] No recents to suggest!"),r.sort((e,t)=>t.lastActive-e.lastActive),r}_buildSuggestions(e){const t=l.a.get().getRooms().filter(e=>"join"===e.getMyMembership()&&e.getJoinedMemberCount()<=200).reduce((t,n)=>{if(d.a.shared().getUserIdForRoomId(n.roomId))return t;const o=n.getJoinedMembers().filter(t=>!e.has(t.userId));for(const r of o)e.has(r.userId)||(t[r.userId]||(t[r.userId]={member:r,pickedMemberRoomSize:n.getJoinedMemberCount(),rooms:[]}),t[r.userId].rooms.push(n),n.getJoinedMemberCount()<t[r.userId].pickedMemberRoomSize&&(t[r.userId].member=r,t[r.userId].pickedMemberRoomSize=n.getJoinedMemberCount()));return t},{}),n=Object.values(t).reduce((e,t)=>{const n=t.rooms.reduce((e,t)=>e+t.getJoinedMemberCount(),0),o=200*t.rooms.length;return e[t.member.userId]={member:t.member,numRooms:t.rooms.length,score:Math.max(0,Math.pow(1-n/o,5))},e},{}),o=l.a.get().getRooms().filter(e=>"join"===e.getMyMembership()),r=(new Date).getTime(),i=r-36e5,a={},s={};for(const t of o){const n=d.a.shared().getUserIdForRoomId(t.roomId);if(Object.keys(t.tags).includes("m.lowpriority")||n)continue;const o=t.getLiveTimeline().getEvents();for(let n=o.length-1;n>=Math.max(0,o.length-50);n--){const r=o[n];if(!e.has(r.getSender())){if(r.getTs()<=i)break;(!a[r.getSender()]||a[r.getSender()]<r.getTs())&&(a[r.getSender()]=r.getTs(),s[r.getSender()]=t.getMember(r.getSender()))}}}for(const e in a){const t=a[e],o=s[e];if(!o)continue;const c=r-i-Math.abs(r-t),l=Math.max(1,c/9e5);let u=n[e];u||(u=n[e]={score:0}),u.member=o,u.score+=l}const c=Object.values(n);return c.sort((e,t)=>e.score===t.score?e.numRooms===t.numRooms?e.member.userId.localeCompare(t.member.userId):t.numRooms-e.numRooms:t.score-e.score),c.map(e=>({userId:e.member.userId,user:e.member}))}_shouldAbortAfterInviteError(e){const t=Object.keys(e.states).filter(t=>"error"===e.states[t]);return t.length>0&&(console.log("Failed to invite users: ",e),this.setState({busy:!1,errorText:Object(s.a)("Failed to invite the following users to chat: %(csvUsers)s",{csvUsers:t.join(", ")})}),!0)}_convertFilter(){if(!this.state.filterText||!this.state.filterText.includes("@"))return this.state.targets||[];let e;this.state.filterText.startsWith("@")?e=new F({user_id:this.state.filterText,display_name:null,avatar_url:null}):O.a.getValue(k.a.IdentityServer)&&(e=new M(this.state.filterText));const t=[...this.state.targets||[],e];return this.setState({targets:t,filterText:""}),t}_renderSection(e){let t="recents"===e?this.state.recents:this.state.suggestions,n="recents"===e?this.state.numRecentsShown:this.state.numSuggestionsShown;const o="recents"===e?this._showMoreRecents.bind(this):this._showMoreSuggestions.bind(this);let r="recents"===e?Object(s.a)("Recent Conversations"):Object(s.a)("Suggestions"),i=null;if("suggestions"===e&&x.a.instance.getSelectedCommunityId()){const e=x.a.instance.getSelectedCommunityName();i=Object(s.a)("May include members not in %(communityName)s",{communityName:e})}this.props.kind===I&&(r="recents"===e?Object(s.a)("Recently Direct Messaged"):Object(s.a)("Suggestions"));let l=[],u=[];const d=this.state.serverResultsMixin||this.state.threepidResultsMixin;if(this.state.filterText&&d&&"suggestions"===e){const e=e=>!t.some(t=>t.userId===e.userId)&&!l.some(t=>t.userId===e.userId)&&!u.some(t=>t.userId===e.userId);u=this.state.serverResultsMixin.filter(e),l=this.state.threepidResultsMixin.filter(e)}const h=l.length>0||u.length>0;if(0===t.length&&!h)return null;if(this.state.filterText){const e=this.state.filterText.toLowerCase();if(t=t.filter(t=>t.user.name.toLowerCase().includes(e)||t.userId.toLowerCase().includes(e)),0===t.length&&!h)return a.a.createElement("div",{className:"mx_InviteDialog_section"},a.a.createElement("h3",null,r),a.a.createElement("p",null,Object(s.a)("No results")))}t=[...l,...t,...u],n===t.length-1&&n++;const p=t.slice(0,n),m=p.length<t.length,g=c.getComponent("elements.AccessibleButton");let f=null;m&&(f=a.a.createElement(g,{onClick:o,kind:"link"},Object(s.a)("Show more")));const _=p.map(t=>{return a.a.createElement(L,{member:t.user,lastActiveTs:(n=t,"recents"===e?n.lastActive:null),key:t.userId,onToggle:this._toggleMember,highlightWord:this.state.filterText,isSelected:this.state.targets.some(e=>e.userId===t.userId)});var n});return a.a.createElement("div",{className:"mx_InviteDialog_section"},a.a.createElement("h3",null,r),i?a.a.createElement("p",{className:"mx_InviteDialog_subname"},i):null,_,f)}_renderEditor(){const e=this.state.targets.map(e=>a.a.createElement(P,{member:e,onRemove:!this.state.busy&&this._removeMember,key:e.userId})),t=a.a.createElement("input",{type:"text",onKeyDown:this._onKeyDown,onChange:this._updateFilter,value:this.state.filterText,ref:this._editorRef,onPaste:this._onPaste,autoFocus:!0,disabled:this.state.busy,autoComplete:"off"});return a.a.createElement("div",{className:"mx_InviteDialog_editor",onClick:this._onClickInputArea},e,t)}_renderIdentityServerWarning(){if(!this.state.tryingIdentityServer||this.state.canUseIdentityServer||!O.a.getValue(k.a.IdentityServer))return null;const e=Object(g.c)();return e?a.a.createElement("div",{className:"mx_AddressPickerDialog_identityServer"},Object(s.a)("Use an identity server to invite by email. <default>Use the default (%(defaultIdentityServerName)s)</default> or manage in <settings>Settings</settings>.",{defaultIdentityServerName:Object(f.a)(e)},{default:e=>a.a.createElement("a",{href:"#",onClick:this._onUseDefaultIdentityServerClick},e),settings:e=>a.a.createElement("a",{href:"#",onClick:this._onManageSettingsClick},e)})):a.a.createElement("div",{className:"mx_AddressPickerDialog_identityServer"},Object(s.a)("Use an identity server to invite by email. Manage in <settings>Settings</settings>.",{},{settings:e=>a.a.createElement("a",{href:"#",onClick:this._onManageSettingsClick},e)}))}render(){const e=c.getComponent("views.dialogs.BaseDialog"),t=c.getComponent("elements.AccessibleButton"),n=c.getComponent("elements.Spinner");let o,r,i,d,h=null;this.state.busy&&(h=a.a.createElement(n,{w:20,h:20}));const p=O.a.getValue(k.a.IdentityServer),m=l.a.get().getUserId();if(this.props.kind===A){if(o=Object(s.a)("Direct Messages"),r=p?Object(s.a)("Start a conversation with someone using their name, email address or username (like <userId/>).",{},{userId:()=>a.a.createElement("a",{href:Object(u.g)(m),rel:"noreferrer noopener",target:"_blank"},m)}):Object(s.a)("Start a conversation with someone using their name or username (like <userId/>).",{},{userId:()=>a.a.createElement("a",{href:Object(u.g)(m),rel:"noreferrer noopener",target:"_blank"},m)}),x.a.instance.getSelectedCommunityId()){const e=x.a.instance.getSelectedCommunityName(),n=Object(s.a)("This won't invite them to %(communityName)s. To invite someone to %(communityName)s, click <a>here</a>",{communityName:e},{userId:()=>a.a.createElement("a",{href:Object(u.g)(m),rel:"noreferrer noopener",target:"_blank"},m),a:e=>a.a.createElement(t,{kind:"link",onClick:this._onCommunityInviteClick},e)});r=a.a.createElement(a.a.Fragment,null,r," ",n)}i=Object(s.a)("Go"),d=this._startDm}else this.props.kind===I?(o=Object(s.a)("Invite to this room"),r=p?Object(s.a)("Invite someone using their name, email address, username (like <userId/>) or <a>share this room</a>.",{},{userId:()=>a.a.createElement("a",{href:Object(u.g)(m),rel:"noreferrer noopener",target:"_blank"},m),a:e=>a.a.createElement("a",{href:Object(u.f)(this.props.roomId),rel:"noreferrer noopener",target:"_blank"},e)}):Object(s.a)("Invite someone using their name, username (like <userId/>) or <a>share this room</a>.",{},{userId:()=>a.a.createElement("a",{href:Object(u.g)(m),rel:"noreferrer noopener",target:"_blank"},m),a:e=>a.a.createElement("a",{href:Object(u.f)(this.props.roomId),rel:"noreferrer noopener",target:"_blank"},e)}),i=Object(s.a)("Invite"),d=this._inviteUsers):this.props.kind===D?(o=Object(s.a)("Transfer"),i=Object(s.a)("Transfer"),d=this._transferCall):console.error("Unknown kind of InviteDialog: "+this.props.kind);const g=this.state.targets.length>0||this.state.filterText&&this.state.filterText.includes("@");return a.a.createElement(e,{className:"mx_InviteDialog",hasCancel:!0,onFinished:this.props.onFinished,title:o},a.a.createElement("div",{className:"mx_InviteDialog_content"},a.a.createElement("p",{className:"mx_InviteDialog_helpText"},r),a.a.createElement("div",{className:"mx_InviteDialog_addressBar"},this._renderEditor(),a.a.createElement("div",{className:"mx_InviteDialog_buttonAndSpinner"},a.a.createElement(t,{kind:"primary",onClick:d,className:"mx_InviteDialog_goButton",disabled:this.state.busy||!g},i),h)),this._renderIdentityServerWarning(),a.a.createElement("div",{className:"error"},this.state.errorText),a.a.createElement("div",{className:"mx_InviteDialog_userSections"},this._renderSection("recents"),this._renderSection("suggestions"))))}}r()(U,"defaultProps",{kind:A,initialText:""})},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(90),c=n.n(s),l=n(196),u=n(298),d=n(173),h=n(86),p=n(92);var m,g=n(83),f=n(299),_=n(123);function b(e){switch(e){case m.Globe:return Object(g.a)("This room is public");case m.PresenceOnline:return Object(g.a)("Online");case m.PresenceAway:return Object(g.a)("Away");case m.PresenceOffline:return Object(g.a)("Offline")}}!function(e){e.None="NONE",e.Globe="GLOBE",e.PresenceOnline="ONLINE",e.PresenceAway="AWAY",e.PresenceOffline="OFFLINE"}(m||(m={}));class v extends a.a.PureComponent{constructor(e){super(e),r()(this,"_dmUser",void 0),r()(this,"isUnmounted",!1),r()(this,"isWatchingTimeline",!1),r()(this,"onRoomTimeline",(e,t)=>{this.isUnmounted||t&&this.props.room.roomId===t.roomId&&("m.room.join_rules"!==e.getType()&&"m.room.member"!==e.getType()||this.setState({icon:this.calculateIcon()}))}),r()(this,"onPresenceUpdate",()=>{if(this.isUnmounted)return;const e=this.getPresenceIcon();e!==this.state.icon&&this.setState({icon:e})}),this.state={notificationState:d.a.instance.getRoomState(this.props.room),icon:this.calculateIcon()}}componentWillUnmount(){this.isUnmounted=!0,this.isWatchingTimeline&&this.props.room.off("Room.timeline",this.onRoomTimeline),this.dmUser=null}get isPublicRoom(){const e=this.props.room.currentState.getStateEvents("m.room.join_rules","");return"public"===(e&&e.getContent().join_rule)}get dmUser(){return this._dmUser}set dmUser(e){const t=this._dmUser;this._dmUser=e,t&&t!==this._dmUser&&(t.off("User.currentlyActive",this.onPresenceUpdate),t.off("User.presence",this.onPresenceUpdate)),this._dmUser&&t!==this._dmUser&&(this._dmUser.on("User.currentlyActive",this.onPresenceUpdate),this._dmUser.on("User.presence",this.onPresenceUpdate))}getPresenceIcon(){if(!this.dmUser)return m.None;let e=m.None;return this.dmUser.currentlyActive||"online"===this.dmUser.presence?e=m.PresenceOnline:"offline"===this.dmUser.presence?e=m.PresenceOffline:"unavailable"===this.dmUser.presence&&(e=m.PresenceAway),e}calculateIcon(){let e=m.None;const t=_.a.shared().getUserIdForRoomId(this.props.room.roomId);return t&&2===this.props.room.getJoinedMemberCount()?function(){const e=h.a.get().baseUrl,t=p.a.get().enable_presence_by_hs_url;return!t||!(!t[e]&&void 0!==t[e])}()&&t&&(this.dmUser=h.a.get().getUser(t),e=this.getPresenceIcon()):(e=this.isPublicRoom?m.Globe:m.None,this.isWatchingTimeline||(this.props.room.on("Room.timeline",this.onRoomTimeline),this.isWatchingTimeline=!0)),e}render(){let e,t;this.props.displayBadge&&(e=a.a.createElement(u.a,{notification:this.state.notificationState,forceCount:this.props.forceCount,roomId:this.props.room.roomId})),this.state.icon!==m.None&&(t=a.a.createElement(f.a,{tooltip:b(this.state.icon),class:"mx_DecoratedRoomAvatar_icon mx_DecoratedRoomAvatar_icon_"+this.state.icon.toLowerCase()}));const n=c()("mx_DecoratedRoomAvatar",{mx_DecoratedRoomAvatar_cutout:t});return a.a.createElement("div",{className:n},a.a.createElement(l.a,{room:this.props.room,width:this.props.avatarSize,height:this.props.avatarSize,oobData:this.props.oobData,viewAvatarOnClick:this.props.viewAvatarOnClick}),t,e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(6),r=n(175),i=n(0),a=n(1);function s(e,t){this.roomId=e,this.members={},this.events=new Map,this.paginationToken=null,this._sentinels={},this._updateModifiedTime(),this._displayNameToUserIds={},this._userIdsToDisplayNames={},this._tokenToInvite={},this._joinedMemberCount=null,this._summaryJoinedMemberCount=null,this._invitedMemberCount=null,this._summaryInvitedMemberCount=null,t||(t={status:1}),this._oobMemberFlags=t}function c(e,t,n){const o=e._userIdsToDisplayNames[t];if(delete e._userIdsToDisplayNames[t],o){const n=a.z(o),r=e._displayNameToUserIds[n];if(r){const o=r.filter(e=>e!==t);e._displayNameToUserIds[n]=o}}e._userIdsToDisplayNames[t]=n;const r=n&&a.z(n);r&&(e._displayNameToUserIds[r]||(e._displayNameToUserIds[r]=[]),e._displayNameToUserIds[r].push(t))}a.o(s,o.EventEmitter),s.prototype.getJoinedMemberCount=function(){return null!==this._summaryJoinedMemberCount?this._summaryJoinedMemberCount:(null===this._joinedMemberCount&&(this._joinedMemberCount=this.getMembers().reduce((e,t)=>"join"===t.membership?e+1:e,0)),this._joinedMemberCount)},s.prototype.setJoinedMemberCount=function(e){this._summaryJoinedMemberCount=e},s.prototype.getInvitedMemberCount=function(){return null!==this._summaryInvitedMemberCount?this._summaryInvitedMemberCount:(null===this._invitedMemberCount&&(this._invitedMemberCount=this.getMembers().reduce((e,t)=>"invite"===t.membership?e+1:e,0)),this._invitedMemberCount)},s.prototype.setInvitedMemberCount=function(e){this._summaryInvitedMemberCount=e},s.prototype.getMembers=function(){return a.B(this.members)},s.prototype.getMembersExcept=function(e){return a.B(this.members).filter(t=>!e.includes(t.userId))},s.prototype.getMember=function(e){return this.members[e]||null},s.prototype.getSentinelMember=function(e){if(!e)return null;let t=this._sentinels[e];if(void 0===t){t=new r.a(this.roomId,e);const n=this.members[e];n&&t.setMembershipEvent(n.events.member,this),this._sentinels[e]=t}return t},s.prototype.getStateEvents=function(e,t){if(!this.events.has(e))return void 0===t?[]:null;if(void 0===t)return Array.from(this.events.get(e).values());const n=this.events.get(e).get(t);return n||null},s.prototype.clone=function(){const e=new s(this.roomId,this._oobMemberFlags),t=this._oobMemberFlags.status;return this._oobMemberFlags.status=1,Array.from(this.events.values()).forEach(t=>{e.setStateEvents(Array.from(t.values()))}),this._oobMemberFlags.status=t,null!==this._summaryInvitedMemberCount&&e.setInvitedMemberCount(this.getInvitedMemberCount()),null!==this._summaryJoinedMemberCount&&e.setJoinedMemberCount(this.getJoinedMemberCount()),3==this._oobMemberFlags.status&&this.getMembers().forEach(t=>{if(t.isOutOfBand()){e.getMember(t.userId).markOutOfBand()}}),e},s.prototype.setUnknownStateEvents=function(e){const t=e.filter(e=>!this.events.has(e.getType())||!this.events.get(e.getType()).has(e.getStateKey()));this.setStateEvents(t)},s.prototype.setStateEvents=function(e){const t=this;this._updateModifiedTime(),a.l(e,(function(e){if(e.getRoomId()!==t.roomId)return;if(!e.isState())return;const n=t._getStateEventMatching(e);t._setStateEvent(e),"m.room.member"===e.getType()&&(c(t,e.getStateKey(),e.getContent().displayname),function(e,t){if(!t.getContent().third_party_invite)return;const n=(t.getContent().third_party_invite.signed||{}).token;if(!n)return;if(!e.getStateEvents("m.room.third_party_invite",n))return;e._tokenToInvite[n]=t}(t,e)),t.emit("RoomState.events",e,t,n)})),a.l(e,(function(e){if(e.getRoomId()===t.roomId&&e.isState())if("m.room.member"===e.getType()){const n=e.getStateKey();"leave"!==e.getContent().membership&&"ban"!==e.getContent().membership||(e.getContent().avatar_url=e.getContent().avatar_url||e.getPrevContent().avatar_url,e.getContent().displayname=e.getContent().displayname||e.getPrevContent().displayname);const o=t._getOrCreateMember(n,e);o.setMembershipEvent(e,t),t._updateMember(o),t.emit("RoomState.members",e,t,o)}else if("m.room.power_levels"===e.getType()){const n=a.B(t.members);a.l(n,(function(n){n.setPowerLevelEvent(e),t.emit("RoomState.members",e,t,n)})),t._sentinels={}}}))},s.prototype._getOrCreateMember=function(e,t){let n=this.members[e];return n||(n=new r.a(this.roomId,e),this.members[e]=n,this.emit("RoomState.newMember",t,this,n)),n},s.prototype._setStateEvent=function(e){this.events.has(e.getType())||this.events.set(e.getType(),new Map),this.events.get(e.getType()).set(e.getStateKey(),e)},s.prototype._getStateEventMatching=function(e){return this.events.has(e.getType())?this.events.get(e.getType()).get(e.getStateKey()):null},s.prototype._updateMember=function(e){const t=this.getStateEvents("m.room.power_levels","");t&&e.setPowerLevelEvent(t),delete this._sentinels[e.userId],this.members[e.userId]=e,this._joinedMemberCount=null,this._invitedMemberCount=null},s.prototype.needsOutOfBandMembers=function(){return 1===this._oobMemberFlags.status},s.prototype.markOutOfBandMembersStarted=function(){1===this._oobMemberFlags.status&&(this._oobMemberFlags.status=2)},s.prototype.markOutOfBandMembersFailed=function(){2===this._oobMemberFlags.status&&(this._oobMemberFlags.status=1)},s.prototype.clearOutOfBandMembers=function(){let e=0;Object.keys(this.members).forEach(t=>{this.members[t].isOutOfBand()&&(++e,delete this.members[t])}),i.a.log(`LL: RoomState removed ${e} members...`),this._oobMemberFlags.status=1},s.prototype.setOutOfBandMembers=function(e){i.a.log(`LL: RoomState about to set ${e.length} OOB members ...`),2===this._oobMemberFlags.status&&(i.a.log("LL: RoomState put in OOB_STATUS_FINISHED state ..."),this._oobMemberFlags.status=3,e.forEach(e=>this._setOutOfBandMember(e)))},s.prototype._setOutOfBandMember=function(e){if("m.room.member"!==e.getType())return;const t=e.getStateKey(),n=this.getMember(t);if(n&&!n.isOutOfBand())return;const o=this._getOrCreateMember(t,e);o.setMembershipEvent(e,this),o.markOutOfBand(),c(this,o.userId,o.name),this._setStateEvent(e),this._updateMember(o),this.emit("RoomState.members",e,this,o)},s.prototype.setTypingEvent=function(e){a.l(a.B(this.members),(function(t){t.setTypingEvent(e)}))},s.prototype.getInviteForThreePidToken=function(e){return this._tokenToInvite[e]||null},s.prototype._updateModifiedTime=function(){this._modified=Date.now()},s.prototype.getLastModifiedTime=function(){return this._modified},s.prototype.getUserIdsWithDisplayName=function(e){return this._displayNameToUserIds[a.z(e)]||[]},s.prototype.maySendRedactionForEvent=function(e,t){const n=this.getMember(t);if(!n||"leave"===n.membership)return!1;if(e.status||e.isRedacted())return!1;const o=this.maySendEvent("m.room.redaction",t);return e.getSender()===t?o:this._hasSufficientPowerLevelFor("redact",n.powerLevel)},s.prototype._hasSufficientPowerLevelFor=function(e,t){const n=this.getStateEvents("m.room.power_levels","");let o={};n&&(o=n.getContent());let r=50;return a.s(o[e])&&(r=o[e]),t>=r},s.prototype.maySendMessage=function(e){return this._maySendEventOfType("m.room.message",e,!1)},s.prototype.maySendEvent=function(e,t){return this._maySendEventOfType(e,t,!1)},s.prototype.mayClientSendStateEvent=function(e,t){return!t.isGuest()&&this.maySendStateEvent(e,t.credentials.userId)},s.prototype.maySendStateEvent=function(e,t){return this._maySendEventOfType(e,t,!0)},s.prototype._maySendEventOfType=function(e,t,n){const o=this.getStateEvents("m.room.power_levels","");let r,i={},a=0,s=0,c=0;if(o){r=o.getContent(),i=r.events||{},a=Number.isFinite(r.state_default)?r.state_default:50;const e=r.users&&r.users[t];Number.isFinite(e)?c=e:Number.isFinite(r.users_default)&&(c=r.users_default),Number.isFinite(r.events_default)&&(s=r.events_default)}let l=n?a:s;return Number.isFinite(i[e])&&(l=i[e]),c>=l},s.prototype.mayTriggerNotifOfType=function(e,t){const n=this.getMember(t);if(!n)return!1;const o=this.getStateEvents("m.room.power_levels","");let r=50;return o&&o.getContent()&&o.getContent().notifications&&a.s(o.getContent().notifications[e])&&(r=o.getContent().notifications[e]),n.powerLevel>=r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(82),r=n.n(o);class i{get action(){return"NOT_USED"}constructor(e){r()(this,"fn",void 0),this.fn=e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(1);n(0);function r(e,t){this.retryAlgorithm=e||r.RETRY_BACKOFF_RATELIMIT,this.queueAlgorithm=t||r.QUEUE_MESSAGES,this._queues={},this._activeQueues=[],this._procFn=null}function i(e){e._procFn&&o.l(o.j(o.t(e._queues),(function(t){return-1===e._activeQueues.indexOf(t)&&e._queues[t].length>0})),(function(t){e._activeQueues.push(t),s("Spinning up queue: '%s'",t),function e(t,n){const r=function(e,t){const n=e._queues[t];if(!o.p(n))return null;return n[0]}(t,n);if(!r){const e=t._activeQueues.indexOf(n);return e>=0&&t._activeQueues.splice(e,1),void s("Stopping queue '%s' as it is now empty",n)}s("Queue '%s' has %s pending events",n,t._queues[n].length),Promise.resolve().then(()=>t._procFn(r.event)).then((function(o){a(t,n),s("Queue '%s' sent event %s",n,r.event.getId()),r.defer.resolve(o),e(t,n)}),(function(o){r.attempts+=1;const i=t.retryAlgorithm(r.event,r.attempts,o);s("retry(%s) err=%s event_id=%s waitTime=%s",r.attempts,o,r.event.getId(),i),-1===i?(s("Queue '%s' giving up on event %s",n,r.event.getId()),a(t,n),r.defer.reject(o),e(t,n)):setTimeout((function(){e(t,n)}),i)}))}(e,t)}))}function a(e,t){const n=e._queues[t];return o.p(n)?n.shift():null}function s(){0}r.prototype.getQueueForEvent=function(e){const t=this.queueAlgorithm(e);return t&&this._queues[t]?o.u(this._queues[t],(function(e){return e.event})):null},r.prototype.removeEventFromQueue=function(e){const t=this.queueAlgorithm(e);if(!t||!this._queues[t])return!1;let n=!1;return o.y(this._queues[t],(function(t){if(t.event.getId()===e.getId())return n=!0,!0})),n},r.prototype.setProcessFunction=function(e){this._procFn=e,i(this)},r.prototype.queueEvent=function(e){const t=this.queueAlgorithm(e);if(!t)return null;this._queues[t]||(this._queues[t]=[]);const n=o.d();return this._queues[t].push({event:e,defer:n,attempts:0}),s("Queue algorithm dumped event %s into queue '%s'",e.getId(),t),i(this),n.promise},r.RETRY_BACKOFF_RATELIMIT=function(e,t,n){if(400===n.httpStatus||403===n.httpStatus||401===n.httpStatus)return-1;if("rejected"===n.cors)return-1;if("M_TOO_LARGE"===n.name)return-1;if("M_LIMIT_EXCEEDED"===n.name){const e=n.data.retry_after_ms;if(e)return e}return t>4?-1:1e3*Math.pow(2,t)},r.QUEUE_MESSAGES=function(e){return"m.room.message"===e.getType()||e.hasAssocation()?"message":null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const o=Object.freeze({IS:"SERVICE_TYPE_IS",IM:"SERVICE_TYPE_IM"})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{constructor(e){this.target=e,this.boundHandlers={}}_handleEvent(e,...t){this.target.emit(e,...t)}reEmit(e,t){const n=(t,...n)=>{t(...n,e)};for(const o of t){void 0===this.boundHandlers[o]&&(this.boundHandlers[o]=this._handleEvent.bind(this,o));const t=n.bind(this,this.boundHandlers[o]);e.on(o,t)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var o=n(129),r=n(6),i=n(0),a=n(318),s=n(269),c=n(319);const l=new Error("Verification timed out");class u extends Error{constructor(e){super(),this.startEvent=e}}class d extends r.EventEmitter{constructor(e,t,n,o,r,i){super(),this._channel=e,this._baseApis=t,this.userId=n,this.deviceId=o,this.startEvent=r,this.request=i,this.cancelled=!1,this._done=!1,this._promise=null,this._transactionTimeoutTimer=null}get initiatedByMe(){if(!this.startEvent)return!0;const e=this.startEvent.getSender(),t=this.startEvent.getContent();return e===this._baseApis.getUserId()&&t.from_device===this._baseApis.getDeviceId()}_resetTimer(){i.a.info("Refreshing/starting the verification transaction timeout timer"),null!==this._transactionTimeoutTimer&&clearTimeout(this._transactionTimeoutTimer),this._transactionTimeoutTimer=setTimeout(()=>{this._done||this.cancelled||(i.a.info("Triggering verification timeout"),this.cancel(l))},6e5)}_endTimer(){null!==this._transactionTimeoutTimer&&(clearTimeout(this._transactionTimeoutTimer),this._transactionTimeoutTimer=null)}_send(e,t){return this._channel.send(e,t)}_waitForEvent(e){if(this._done)return Promise.reject(new Error("Verification is already done"));const t=this.request.getEventFromOtherParty(e);return t?Promise.resolve(t):(this._expectedEvent=e,new Promise((e,t)=>{this._resolveEvent=e,this._rejectEvent=t}))}canSwitchStartEvent(){return!1}switchStartEvent(e){if(this.canSwitchStartEvent(e))if(i.a.log("Verification Base: switching verification start event",{restartingFlow:!!this._rejectEvent}),this._rejectEvent){const t=this._rejectEvent;this._rejectEvent=void 0,t(new u(e))}else this.startEvent=e}handleEvent(e){if(!this._done)if(e.getType()===this._expectedEvent)"m.key.verification.done"!==this._expectedEvent&&(this._expectedEvent=void 0,this._rejectEvent=void 0,this._resetTimer(),this._resolveEvent(e));else if("m.key.verification.cancel"===e.getType()){const t=this._reject;if(this._reject=void 0,t){const n=e.getContent(),{reason:o,code:r}=n;t(new Error(`Other side cancelled verification because ${o} (${r})`))}}else if(this._expectedEvent){const t=new Error("Unexpected message: expecting "+this._expectedEvent+" but got "+e.getType());if(this._expectedEvent=void 0,this._rejectEvent){const e=this._rejectEvent;this._rejectEvent=void 0,e(t)}this.cancel(t)}}done(){if(this._endTimer(),!this._done)return this.request.onVerifierFinished(),this._resolve(),Object(c.e)(this._baseApis,this.userId,this.deviceId)}cancel(e){if(this._endTimer(),!this._done){if(this.cancelled=!0,this.request.onVerifierCancelled(),this.userId&&this.deviceId)if(e===l){const e=Object(s.e)();this._send(e.getType(),e.getContent())}else if(e instanceof o.b){if(e.getSender()!==this.userId){const t=e.getContent();"m.key.verification.cancel"===e.getType()?(t.code=t.code||"m.unknown",t.reason=t.reason||t.body||"Unknown reason",this._send("m.key.verification.cancel",t)):this._send("m.key.verification.cancel",{code:"m.unknown",reason:t.body||"Unknown reason"})}}else this._send("m.key.verification.cancel",{code:"m.unknown",reason:e.toString()});null!==this._promise?this._reject&&this._reject(e):this._promise=Promise.reject(e),this.emit("cancel",e)}}verify(){return this._promise||(this._promise=new Promise((e,t)=>{this._resolve=(...t)=>{this._done=!0,this._endTimer(),e(...t)},this._reject=(...e)=>{this._done=!0,this._endTimer(),t(...e)}}),this._doVerification&&!this._started&&(this._started=!0,this._resetTimer(),Promise.resolve(this._doVerification()).then(this.done.bind(this),this.cancel.bind(this)))),this._promise}async _verifyKeys(e,t,n){const o=[];for(const[r,s]of Object.entries(t)){const t=r.split(":",2)[1],c=this._baseApis.getStoredDevice(e,t);if(c)await n(r,c,s),o.push(t);else{const c=this._baseApis._crypto._deviceList.getStoredCrossSigningForUser(e);c&&c.getId()===t?(await n(r,a.a.fromStorage({keys:{[r]:t}},t),s),o.push(t)):i.a.warn(`verification: Could not find device ${t} to verify`)}}if(!o.length)throw new Error("No devices could be verified");i.a.info("Verification completed! Marking devices verified: ",o);for(const t of o)await this._baseApis.setDeviceVerified(e,t)}}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var o=n(176);async function r(t,n){if(!e.Olm)throw new Error("Olm is not available");if(!t.private_key_salt||!t.private_key_iterations)throw new Error("Salt and/or iterations not found: this backup cannot be restored with a passphrase");return await a(n,t.private_key_salt,t.private_key_iterations,t.private_key_bits||256)}async function i(t){if(!e.Olm)throw new Error("Olm is not available");const n=Object(o.a)(32);return{key:await a(t,n,5e5,256),salt:n,iterations:5e5}}async function a(t,n,o,r=256){const i=e.crypto.subtle,a=e.TextEncoder;if(!i||!a)throw new Error("Password-based backup is not avaiable on this platform");const s=await i.importKey("raw",(new a).encode(t),{name:"PBKDF2"},!1,["deriveBits"]),c=await i.deriveBits({name:"PBKDF2",salt:(new a).encode(n),iterations:o,hash:"SHA-512"},s,r);return new Uint8Array(c)}}).call(this,n(5))},function(e,t,n){"use strict";(function(e,o){n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n(843),i=n.n(r);const a=[139,1];function s(t){const n=new e(a.length+t.length+1);n.set(a,0),n.set(t,a.length);let o=0;for(let e=0;e<n.length-1;++e)o^=n[e];n[n.length-1]=o;return i.a.encode(n).match(/.{1,4}/g).join(" ")}function c(e){const t=i.a.decode(e.replace(/ /g,""));let n=0;for(const e of t)n^=e;if(0!==n)throw new Error("Incorrect parity");for(let e=0;e<a.length;++e)if(t[e]!==a[e])throw new Error("Incorrect prefix");if(t.length!==a.length+o.Olm.PRIVATE_KEY_LENGTH+1)throw new Error("Incorrect length");return Uint8Array.from(t.slice(a.length,a.length+o.Olm.PRIVATE_KEY_LENGTH))}}).call(this,n(31).Buffer,n(5))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(81),r=n.n(o),i=n(164),a=n(90),s=n.n(a),c=n(91),l=n(97),u=n(542),d=n(110),h=n(103),p=n(227);const m=52;t.b=({hasAvatar:e,hasAvatarLabel:t,noAvatarLabel:n,setAvatarUrl:a,children:m})=>{const g=Object(o.useContext)(l.a),[f,_]=Object(o.useState)(!1),[b,v]=Object(o.useState)(!1),[E,y]=Object(o.useState)(!1);Object(u.b)(()=>{y(!0)},3e3),Object(u.b)(()=>{y(!1)},13e3);const S=Object(o.useRef)(),T=e||f?t:n,{room:w}=Object(o.useContext)(p.a);if(!(null==w?void 0:w.currentState.maySendStateEvent(i.a.RoomAvatar,g.getUserId())))return r.a.createElement(r.a.Fragment,null,m);const C=!!T&&(b||E);return r.a.createElement(r.a.Fragment,null,r.a.createElement("input",{type:"file",ref:S,className:"mx_MiniAvatarUploader_input",onChange:async e=>{var t;if(!(null===(t=e.target.files)||void 0===t?void 0:t.length))return;_(!0),d.a.trackEvent("mini_avatar","upload"),h.a.instance.track("mini_avatar_upload");const n=e.target.files[0],o=await g.uploadContent(n);await a(o),_(!1)},accept:"image/*"}),r.a.createElement(c.a,{className:s()("mx_MiniAvatarUploader",{mx_MiniAvatarUploader_busy:f,mx_MiniAvatarUploader_hasAvatar:e}),disabled:f,onClick:()=>{S.current.click()},onMouseOver:()=>v(!0),onMouseLeave:()=>v(!1)},m,r.a.createElement("div",{className:s()("mx_Tooltip",{mx_Tooltip_visible:C,mx_Tooltip_invisible:!C})},r.a.createElement("div",{className:"mx_Tooltip_chevron"}),T)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(386);function r(e,t,n){return new o.a(o=>{o({action:e+".pending",request:"function"==typeof n?n():void 0}),t().then(t=>{o({action:e+".success",result:t})}).catch(t=>{o({action:e+".failure",err:t})})})}},function(e,t,n){var o=n(866);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(230);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var o=n(399)("keys"),r=n(327);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(131),r=n(180),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n(326)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";t.__esModule=!0;var o=a(n(869)),r=a(n(881)),i="function"==typeof r.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof r.default&&"symbol"===i(o.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(229),r=n(873),i=n(404),a=n(398)("IE_PROTO"),s=function(){},c=function(){var e,t=n(551)("iframe"),o=i.length;for(t.style.display="none",n(876).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;o--;)delete c.prototype[i[o]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=o(e),n=new s,s.prototype=null,n[a]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var o=n(181).f,r=n(204),i=n(151)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){t.f=n(151)},function(e,t,n){var o=n(180),r=n(131),i=n(326),a=n(406),s=n(181).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){return n<=t&&n>=e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(569),i=(o=r)&&o.__esModule?o:{default:o},a=n(274);t.default=function(e){var t=e.target,n=e.destination,o=e.viewport,r=n.viewport.frameScroll.diff.displacement,s=(0,a.offset)(t,r);if(!n.viewport.clipped)return!1;var c=(0,i.default)(n.viewport.clipped)(s),l=(0,i.default)(o)(s);return c&&l}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}},function(e,t,n){"use strict";function o(e,t){return e===t}function r(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var o=t.length,r=0;r<o;r++)if(!e(t[r],n[r]))return!1;return!0}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,n=null,i=null;return function(){return r(t,n,arguments)||(i=e.apply(null,arguments)),n=arguments,i}}function a(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 typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=Array(t),r=0;r<t;r++)o[r]=arguments[r];var s=0,c=o.pop(),l=a(o),u=e.apply(void 0,[function(){return s++,c.apply(null,arguments)}].concat(n)),d=i((function(){for(var e=[],t=l.length,n=0;n<t;n++)e.push(l[n].apply(null,arguments));return u.apply(null,e)}));return d.resultFunc=c,d.recomputations=function(){return s},d.resetRecomputations=function(){return s=0},d}}t.__esModule=!0,t.defaultMemoize=i,t.createSelectorCreator=s,t.createStructuredSelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.reduce((function(e,t,o){return e[n[o]]=t,e}),{})}))};var c=t.createSelector=s(i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{x:window.pageXOffset,y:window.pageYOffset}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=0);return t},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n,r,i,a,s){var c=n+(-i*(t-r)+-a*n)*e,l=t+c*e;if(Math.abs(c)<s&&Math.abs(l-r)<s)return o[0]=r,o[1]=0,o;return o[0]=l,o[1]=c,o};var o=[0,0];e.exports=t.default},function(e,t,n){(function(t){(function(){var n,o,r;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-r)/1e6},o=t.hrtime,r=(n=function(){var e;return 1e9*(e=o())[0]+e[1]})()):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)}).call(this,n(161))},function(e,t,n){(function(t){for(var o=n(980),r="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",s=r["request"+a],c=r["cancel"+a]||r["cancelRequest"+a],l=0;!s&&l<i.length;l++)s=r[i[l]+"Request"+a],c=r[i[l]+"Cancel"+a]||r[i[l]+"CancelRequest"+a];if(!s||!c){var u=0,d=0,h=[];s=function(e){if(0===h.length){var t=o(),n=Math.max(0,1e3/60-(t-u));u=n+t,setTimeout((function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return h.push({handle:++d,callback:e,cancelled:!1}),d},c=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return s.call(r,e)},e.exports.cancel=function(){c.apply(r,arguments)},e.exports.polyfill=function(e){e||(e=r),e.requestAnimationFrame=s,e.cancelAnimationFrame=c}}).call(this,n(5))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(0!==n[o])return!1;var r="number"==typeof t[o]?t[o]:t[o].val;if(e[o]!==r)return!1}return!0},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(132)),r=i(n(581));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=function(e){t()&&e()},i=(0,o.default)((function(t,n){var o={x:t,y:n};e.onMove(o)}));return{move:(0,r.default)((function(e){n((function(){return i(e.x,e.y)}))})),moveForward:(0,r.default)((function(){n(e.onMoveForward)})),moveBackward:(0,r.default)((function(){n(e.onMoveBackward)})),crossAxisMoveForward:(0,r.default)((function(){n(e.onCrossAxisMoveForward)})),crossAxisMoveBackward:(0,r.default)((function(){n(e.onCrossAxisMoveBackward)})),windowScrollMove:(0,r.default)((function(){n(e.onWindowScroll)}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e?e.ownerDocument.defaultView:window}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.tab=9,t.enter=13,t.escape=27,t.space=32,t.arrowLeft=37,t.arrowUp=38,t.arrowRight=39,t.arrowDown=40},function(e,t,n){"use strict";var o=Object.prototype.hasOwnProperty,r=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var i=t[o],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:l}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(r(n)){for(var o=[],i=0;i<n.length;++i)void 0!==n[i]&&o.push(n[i]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var r="",a=0;a<o.length;++a){var s=o.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?r+=o.charAt(a):s<128?r+=i[s]:s<2048?r+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?r+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&o.charCodeAt(a)),r+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return r},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(r(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(r(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return r(t)&&!r(n)&&(s=a(t,i)),r(t)&&r(n)?(n.forEach((function(n,r){if(o.call(t,r)){var a=t[r];a&&"object"==typeof a&&n&&"object"==typeof n?t[r]=e(a,n,i):t.push(n)}else t[r]=n})),t):Object.keys(n).reduce((function(t,r){var a=n[r];return o.call(t,r)?t[r]=e(t[r],a,i):t[r]=a,t}),s)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var o=n(82),r=n.n(o);class i{forEvent(e,t,n){throw new Error("Not implemented")}forRoom(e,t){throw new Error("Not implemented")}forGroup(e){throw new Error("Not implemented")}forUser(e){throw new Error("Not implemented")}forEntity(e){throw new Error("Not implemented")}isPermalinkHost(e){throw new Error("Not implemented")}parsePermalink(e){throw new Error("Not implemented")}}class a{constructor(e,t,n,o,i){r()(this,"roomIdOrAlias",void 0),r()(this,"eventId",void 0),r()(this,"userId",void 0),r()(this,"groupId",void 0),r()(this,"viaServers",void 0),this.roomIdOrAlias=e,this.eventId=t,this.groupId=o,this.userId=n,this.viaServers=i}static forUser(e){return new a(null,null,e,null,null)}static forGroup(e){return new a(null,null,null,e,null)}static forRoom(e,t){return new a(e,null,null,null,t||[])}static forEvent(e,t,n){return new a(e,t,null,null,n||[])}}},function(e,t,n){"use strict";var o=n(591),r=n(108);function i(e){const t=e.scanner.TOKENS,n=e.parser.TOKENS.Base,o=e.parser.start;if(void 0===t.UNDERSCORE)throw new Error("linkify-matrix requires linkifyjs 2.1.1: this version is too old.");const r=function(e){n.call(this,e),this.type="roomalias",this.isLink=!0};r.prototype=new n;const i=o.jump(t.POUND),a=new e.parser.State,s=new e.parser.State,c=new e.parser.State(r),l=new e.parser.State,u=new e.parser.State(r),d=new e.parser.State,h=new e.parser.State(r),p=[t.DOT,t.PLUS,t.NUM,t.DOMAIN,t.TLD,t.UNDERSCORE,t.POUND,t.LOCALHOST];i.on(p,a),a.on(p,a),a.on(t.DOMAIN,a),a.on(t.COLON,s),s.on(t.DOMAIN,c),s.on(t.LOCALHOST,u),s.on(t.TLD,u),c.on(t.DOT,l),l.on(t.DOMAIN,c),l.on(t.TLD,u),u.on(t.DOT,l),u.on(t.COLON,d),d.on(t.NUM,h);const m=function(e){n.call(this,e),this.type="userid",this.isLink=!0};m.prototype=new n;const g=o.jump(t.AT),f=new e.parser.State,_=new e.parser.State,b=new e.parser.State(m),v=new e.parser.State,E=new e.parser.State(m),y=new e.parser.State,S=new e.parser.State(m),T=[t.DOT,t.UNDERSCORE,t.PLUS,t.NUM,t.DOMAIN,t.TLD,t.LOCALHOST];g.on(T,f),f.on(T,f),f.on(t.DOMAIN,f),f.on(t.COLON,_),_.on(t.DOMAIN,b),_.on(t.LOCALHOST,E),_.on(t.TLD,E),b.on(t.DOT,v),v.on(t.DOMAIN,b),v.on(t.TLD,E),E.on(t.DOT,v),E.on(t.COLON,y),y.on(t.NUM,S);const w=function(e){n.call(this,e),this.type="groupid",this.isLink=!0};w.prototype=new n;const C=o.jump(t.PLUS),x=new e.parser.State,O=new e.parser.State,k=new e.parser.State(w),R=new e.parser.State,A=new e.parser.State(w),I=new e.parser.State,D=new e.parser.State(w),N=[t.DOT,t.UNDERSCORE,t.PLUS,t.NUM,t.DOMAIN,t.TLD,t.LOCALHOST];C.on(N,x),x.on(N,x),x.on(t.DOMAIN,x),x.on(t.COLON,O),O.on(t.DOMAIN,k),O.on(t.LOCALHOST,A),O.on(t.TLD,A),k.on(t.DOT,R),R.on(t.DOMAIN,k),R.on(t.TLD,A),A.on(t.DOT,R),A.on(t.COLON,I),I.on(t.NUM,D)}i.onUserClick=function(e,t){e.preventDefault()},i.onAliasClick=function(e,t){e.preventDefault()},i.onGroupClick=function(e,t){e.preventDefault()};i.ELEMENT_URL_PATTERN="^(?:https?://)?(?:"+((window.location.host+window.location.pathname).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"|(?:www\\.)?(?:riot|vector)\\.im/(?:app|beta|staging|develop)/|(?:app|beta|staging|develop)\\.element\\.io/)(#.*)"),i.MATRIXTO_URL_PATTERN="^(?:https?://)?(?:www\\.)?matrix\\.to/#/(([#@!+]).*)",i.MATRIXTO_MD_LINK_PATTERN="\\[([^\\]]*)\\]\\((?:https?://)?(?:www\\.)?matrix\\.to/#/([#@!+][^\\)]*)\\)",i.MATRIXTO_BASE_URL=o.a,i.options={events:function(e,t){switch(t){case"url":try{const t=Object(r.h)(e);if(t&&t.userId)return{click:function(e){i.onUserClick(e,t.userId)}}}catch(e){}break;case"userid":return{click:function(t){i.onUserClick(t,e)}};case"roomalias":return{click:function(t){i.onAliasClick(t,e)}};case"groupid":return{click:function(t){i.onGroupClick(t,e)}}}},formatHref:function(e,t){switch(t){case"roomalias":case"userid":case"groupid":default:return Object(r.i)(e)}},linkAttributes:{rel:"noreferrer noopener"},target:function(e,t){if("url"===t){return Object(r.j)(e)!==e||e.match(i.ELEMENT_URL_PATTERN)?null:"_blank"}return null}},t.a=i},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var o=n(336),r=s(n(1e3)),i=s(n(1001)),a=s(n(1002));function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var c=function(e){return a.run(i.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e),o=[],r=0;r<n.length;r++){var i=n[r];!i.isLink||t&&i.type!==t||o.push(i.toObject())}return o},t.inherits=o.inherits,t.options=r,t.parser=a,t.scanner=i,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=c},function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var o=n(593),r=n(336),i=(0,o.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,r.inherits)(i,(0,o.createTokenClass)(),t)}i.prototype={toString:function(){return this.v+""}};var s=a(),c=a("@"),l=a(":"),u=a("."),d=a(),h=a(),p=a("\n"),m=a(),g=a("+"),f=a("#"),_=a(),b=a("mailto:"),v=a("?"),E=a("/"),y=a("_"),S=a(),T=a(),w=a(),C=a("{"),x=a("["),O=a("<"),k=a("("),R=a("}"),A=a("]"),I=a(">"),D=a(")"),N=a("&");t.Base=i,t.DOMAIN=s,t.AT=c,t.COLON=l,t.DOT=u,t.PUNCTUATION=d,t.LOCALHOST=h,t.NL=p,t.NUM=m,t.PLUS=g,t.POUND=f,t.QUERY=v,t.PROTOCOL=_,t.MAILTO=b,t.SLASH=E,t.UNDERSCORE=y,t.SYM=S,t.TLD=T,t.WS=w,t.OPENBRACE=C,t.OPENBRACKET=x,t.OPENANGLEBRACKET=O,t.OPENPAREN=k,t.CLOSEBRACE=R,t.CLOSEBRACKET=A,t.CLOSEANGLEBRACKET=I,t.CLOSEPAREN=D,t.AMPERSAND=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1009);t.XmlEntities=o.XmlEntities;var r=n(1010);t.Html4Entities=r.Html4Entities;var i=n(1011);t.Html5Entities=i.Html5Entities,t.AllHtmlEntities=i.Html5Entities},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"","backsim":"∽","backsimeq":"⋍","Backslash":"","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"","Bernoullis":"","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"","caps":"∩︀","caret":"","caron":"ˇ","Cayleys":"","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"","dd":"","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":"","emsp14":"","emsp":"","ENG":"Ŋ","eng":"ŋ","ensp":"","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"","Escr":"","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"","exponentiale":"","ExponentialE":"","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"","frown":"⌢","fscr":"𝒻","Fscr":"","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":"","half":"½","hamilt":"","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"","HilbertSpace":"","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"","hyphen":"","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"","Igrave":"Ì","igrave":"ì","ii":"","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"","ImaginaryI":"","imagline":"","imagpart":"","imath":"ı","Im":"","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"","lscr":"𝓁","Lscr":"","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"","lsquor":"","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":"","Mellintrf":"","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"","middot":"·","minusb":"⊟","minus":"","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":"","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"","ord":"⩝","order":"","orderof":"","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"","pointint":"⨕","popf":"𝕡","Popf":"","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"","Prime":"″","primes":"","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":"","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"","rationals":"","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"","realine":"","realpart":"","reals":"","Re":"","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"","rscr":"𝓇","Rscr":"","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"","rsquor":"","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"","setmn":"","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"","smashp":"⨳","smeparsl":"⧤","smid":"","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"","ThickSpace":"","ThinSpace":"","thinsp":"","thkap":"≈","thksim":"","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"","Vee":"","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":"","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},function(e){e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},function(e,t,n){var o=n(1016),r=n(1017),i=n(1021);i.elementNames.__proto__=null,i.attributeNames.__proto__=null;var a={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var s={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},c=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var n="",r=0;r<e.length;r++){var i=e[r];"root"===i.type?n+=c(i.children,t):o.isTag(i)?n+=u(i,t):i.type===o.Directive?n+=d(i):i.type===o.Comment?n+=m(i):i.type===o.CDATA?n+=p(i):n+=h(i,t)}return n},l=["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"];function u(e,t){"foreign"===t.xmlMode&&(e.name=i.elementNames[e.name]||e.name,e.parent&&l.indexOf(e.parent.name)>=0&&(t=Object.assign({},t,{xmlMode:!1}))),!t.xmlMode&&["svg","math"].indexOf(e.name)>=0&&(t=Object.assign({},t,{xmlMode:"foreign"}));var n="<"+e.name,o=function(e,t){if(e){var n,o="";for(var a in e)n=e[a],o&&(o+=" "),"foreign"===t.xmlMode&&(a=i.attributeNames[a]||a),o+=a,(null!==n&&""!==n||t.xmlMode)&&(o+='="'+(t.decodeEntities?r.encodeXML(n):n.replace(/\"/g,"&quot;"))+'"');return o}}(e.attribs,t);return o&&(n+=" "+o),!t.xmlMode||e.children&&0!==e.children.length?(n+=">",e.children&&(n+=c(e.children,t)),s[e.name]&&!t.xmlMode||(n+="</"+e.name+">")):n+="/>",n}function d(e){return"<"+e.data+">"}function h(e,t){var n=e.data||"";return!t.decodeEntities||e.parent&&e.parent.name in a||(n=r.encodeXML(n)),n}function p(e){return"<![CDATA["+e.children[0].data+"]]>"}function m(e){return"\x3c!--"+e.data+"--\x3e"}},function(e,t,n){"use strict";var o=n(535).Buffer,r=o.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(o.isEncoding===r||!r(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var o=n.charCodeAt(n.length-1);if(o>=55296&&o<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},i.prototype.text=function(e,t){var n=function(e,t,n){var o=t.length-1;if(o<n)return 0;var r=a(t[o]);if(r>=0)return r>0&&(e.lastNeed=r-1),r;if(--o<n||-2===r)return 0;if((r=a(t[o]))>=0)return r>0&&(e.lastNeed=r-2),r;if(--o<n||-2===r)return 0;if((r=a(t[o]))>=0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var o=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";var o=n(153).DOCUMENT_MODE;t.createDocument=function(){return{nodeName:"#document",mode:o.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};var r=function(e){return{nodeName:"#text",value:e,parentNode:null}},i=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=function(e,t,n){var o=e.childNodes.indexOf(n);e.childNodes.splice(o,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,o){for(var r=null,a=0;a<e.childNodes.length;a++)if("#documentType"===e.childNodes[a].nodeName){r=e.childNodes[a];break}r?(r.name=t,r.publicId=n,r.systemId=o):i(e,{nodeName:"#documentType",name:t,publicId:n,systemId:o})},t.setDocumentMode=function(e,t){e.mode=t},t.getDocumentMode=function(e){return e.mode},t.detachNode=function(e){if(e.parentNode){var t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=function(e,t){if(e.childNodes.length){var n=e.childNodes[e.childNodes.length-1];if("#text"===n.nodeName)return void(n.value+=t)}i(e,r(t))},t.insertTextBefore=function(e,t,n){var o=e.childNodes[e.childNodes.indexOf(n)-1];o&&"#text"===o.nodeName?o.value+=t:a(e,r(t),n)},t.adoptAttributes=function(e,t){for(var n=[],o=0;o<e.attrs.length;o++)n.push(e.attrs[o].name);for(var r=0;r<t.length;r++)-1===n.indexOf(t[r].name)&&e.attrs.push(t[r])},t.getFirstChild=function(e){return e.childNodes[0]},t.getChildNodes=function(e){return e.childNodes},t.getParentNode=function(e){return e.parentNode},t.getAttrList=function(e){return e.attrs},t.getTagName=function(e){return e.tagName},t.getNamespaceURI=function(e){return e.namespaceURI},t.getTextNodeContent=function(e){return e.value},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e.name},t.getDocumentTypeNodePublicId=function(e){return e.publicId},t.getDocumentTypeNodeSystemId=function(e){return e.systemId},t.isTextNode=function(e){return"#text"===e.nodeName},t.isCommentNode=function(e){return"#comment"===e.nodeName},t.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},t.isElementNode=function(e){return!!e.tagName}},function(e,t,n){"use strict";e.exports=function(e,t){return[e,t=t||Object.create(null)].reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),Object.create(null))}},function(e,t,n){"use strict";var o=n(153).DOCUMENT_MODE,r=["+//silmaril//dtd html pro v0r11 19970101//en","-//advasoft ltd//dtd html 3.0 aswedit + extensions//en","-//as//dtd html 3.0 aswedit + extensions//en","-//ietf//dtd html 2.0 level 1//en","-//ietf//dtd html 2.0 level 2//en","-//ietf//dtd html 2.0 strict level 1//en","-//ietf//dtd html 2.0 strict level 2//en","-//ietf//dtd html 2.0 strict//en","-//ietf//dtd html 2.0//en","-//ietf//dtd html 2.1e//en","-//ietf//dtd html 3.0//en","-//ietf//dtd html 3.0//en//","-//ietf//dtd html 3.2 final//en","-//ietf//dtd html 3.2//en","-//ietf//dtd html 3//en","-//ietf//dtd html level 0//en","-//ietf//dtd html level 0//en//2.0","-//ietf//dtd html level 1//en","-//ietf//dtd html level 1//en//2.0","-//ietf//dtd html level 2//en","-//ietf//dtd html level 2//en//2.0","-//ietf//dtd html level 3//en","-//ietf//dtd html level 3//en//3.0","-//ietf//dtd html strict level 0//en","-//ietf//dtd html strict level 0//en//2.0","-//ietf//dtd html strict level 1//en","-//ietf//dtd html strict level 1//en//2.0","-//ietf//dtd html strict level 2//en","-//ietf//dtd html strict level 2//en//2.0","-//ietf//dtd html strict level 3//en","-//ietf//dtd html strict level 3//en//3.0","-//ietf//dtd html strict//en","-//ietf//dtd html strict//en//2.0","-//ietf//dtd html strict//en//3.0","-//ietf//dtd html//en","-//ietf//dtd html//en//2.0","-//ietf//dtd html//en//3.0","-//metrius//dtd metrius presentational//en","-//microsoft//dtd internet explorer 2.0 html strict//en","-//microsoft//dtd internet explorer 2.0 html//en","-//microsoft//dtd internet explorer 2.0 tables//en","-//microsoft//dtd internet explorer 3.0 html strict//en","-//microsoft//dtd internet explorer 3.0 html//en","-//microsoft//dtd internet explorer 3.0 tables//en","-//netscape comm. corp.//dtd html//en","-//netscape comm. corp.//dtd strict html//en","-//o'reilly and associates//dtd html 2.0//en","-//o'reilly and associates//dtd html extended 1.0//en","-//spyglass//dtd html 2.0 extended//en","-//sq//dtd html 2.0 hotmetal + extensions//en","-//sun microsystems corp.//dtd hotjava html//en","-//sun microsystems corp.//dtd hotjava strict html//en","-//w3c//dtd html 3 1995-03-24//en","-//w3c//dtd html 3.2 draft//en","-//w3c//dtd html 3.2 final//en","-//w3c//dtd html 3.2//en","-//w3c//dtd html 3.2s draft//en","-//w3c//dtd html 4.0 frameset//en","-//w3c//dtd html 4.0 transitional//en","-//w3c//dtd html experimental 19960712//en","-//w3c//dtd html experimental 970421//en","-//w3c//dtd w3 html//en","-//w3o//dtd w3 html 3.0//en","-//w3o//dtd w3 html 3.0//en//","-//webtechs//dtd mozilla html 2.0//en","-//webtechs//dtd mozilla html//en"],i=r.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),a=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],s=["-//W3C//DTD XHTML 1.0 Frameset//","-//W3C//DTD XHTML 1.0 Transitional//"],c=s.concat(["-//W3C//DTD HTML 4.01 Frameset//","-//W3C//DTD HTML 4.01 Transitional//"]);function l(e){var t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function u(e,t){for(var n=0;n<t.length;n++)if(0===e.indexOf(t[n]))return!0;return!1}t.getDocumentMode=function(e,t,n){if("html"!==e)return o.QUIRKS;if(n&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===n.toLowerCase())return o.QUIRKS;if(null!==t){if(t=t.toLowerCase(),a.indexOf(t)>-1)return o.QUIRKS;var l=null===n?i:r;if(u(t,l))return o.QUIRKS;if(u(t,l=null===n?s:c))return o.LIMITED_QUIRKS}return o.NO_QUIRKS},t.serializeContent=function(e,t,n){var o="!DOCTYPE ";return e&&(o+=e),null!==t?o+=" PUBLIC "+l(t):null!==n&&(o+=" SYSTEM"),null!==n&&(o+=" "+l(n)),o}},function(e,t,n){(t=e.exports=n(614)).Stream=t,t.Readable=t,t.Writable=n(438),t.Duplex=n(207),t.Transform=n(617),t.PassThrough=n(1043)},function(e,t,n){var o=n(31),r=o.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=o:(i(o,t),t.Buffer=a),i(r,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=r(e);return void 0!==t?"string"==typeof n?o.fill(t,n):o.fill(t):o.fill(0),o},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t,o,r){var i=n(340);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var o=e.entry;e.entry=null;for(;o;){var r=o.callback;t.pendingcb--,r(n),o=o.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=b;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?o:i.nextTick;b.WritableState=_;var l=Object.create(n(279));l.inherits=n(152);var u={deprecate:n(1042)},d=n(615),h=n(437).Buffer,p=r.Uint8Array||function(){};var m,g=n(616);function f(){}function _(e,t){s=s||n(207),e=e||{};var o=t instanceof s;this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,l=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:o&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,o=n.sync,r=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,o,r){--t.pendingcb,n?(i.nextTick(r,o),i.nextTick(w,e,t),e._writableState.errorEmitted=!0,e.emit("error",o)):(r(o),e._writableState.errorEmitted=!0,e.emit("error",o),w(e,t))}(e,n,o,t,r);else{var a=S(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||y(e,n),o?c(E,e,n,a,r):E(e,n,a,r)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(e){if(s=s||n(207),!(m.call(b,this)||this instanceof s))return new b(e);this._writableState=new _(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function v(e,t,n,o,r,i,a){t.writelen=o,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(r,t.onwrite):e._write(r,i,t.onwrite),t.sync=!1}function E(e,t,n,o){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,o(),w(e,t)}function y(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var o=t.bufferedRequestCount,r=new Array(o),i=t.corkedRequestsFree;i.entry=n;for(var s=0,c=!0;n;)r[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;r.allBuffers=c,v(e,t,!0,t.length,r,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,d=n.callback;if(v(e,t,!1,t.objectMode?1:l.length,l,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),w(e,t)}))}function w(e,t){var n=S(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(T,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.inherits(b,d),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!m.call(this,e)||this===b&&(e&&e._writableState instanceof _)}})):m=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,n){var o,r=this._writableState,a=!1,s=!r.objectMode&&(o=e,h.isBuffer(o)||o instanceof p);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=f),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,o){var r=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(o,a),r=!1),r}(this,r,e,n))&&(r.pendingcb++,a=function(e,t,n,o,r,i){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n));return t}(t,o,r);o!==a&&(n=!0,r="buffer",o=a)}var s=t.objectMode?1:o.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:o,encoding:r,isBuf:n,callback:i,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,s,o,r,i);return c}(this,r,s,e,t,n)),a},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||y(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var o=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||o.finished||function(e,t,n){t.ending=!0,w(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,o,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(161),n(149).setImmediate,n(5))},function(e,t,n){var o=n(440),r=n(241),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&r(a,n)&&(void 0!==n||t in e)||o(e,t,n)}},function(e,t,n){var o=n(619);e.exports=function(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var o=n(240),r=n(144);e.exports=function(e){if(!r(e))return!1;var t=o(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var o=n(439),r=n(440);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var l=t[s],u=i?i(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),a?r(n,l,u):o(n,l,u)}return n}},function(e,t,n){var o=n(444),r=n(447);e.exports=function(e){return o((function(t,n){var o=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&r(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++o<i;){var c=n[o];c&&e(t,c,o,a)}return t}))}},function(e,t,n){var o=n(281),r=n(622),i=n(446);e.exports=function(e,t){return i(r(e,t,o),e+"")}},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 o=n(1059),r=n(623)(o);e.exports=r},function(e,t,n){var o=n(241),r=n(209),i=n(282),a=n(144);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?r(n)&&i(t,n.length):"string"==s&&t in n)&&o(n[t],e)}},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 o=n(127),r=n(1063),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?o.Buffer:void 0,c=(s?s.isBuffer:void 0)||r;e.exports=c}).call(this,n(224)(e))},function(e,t,n){var o=n(1064),r=n(1065),i=n(1066),a=i&&i.isTypedArray,s=a?r(a):o;e.exports=s},function(e,t,n){var o=n(1069),r=n(1070);t.decode=function(e,t){return(!t||t<=0?r.XML:r.HTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?r.XML:r.HTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?o.XML:o.HTML)(e)},t.encodeXML=o.XML,t.encodeHTML4=t.encodeHTML5=t.encodeHTML=o.HTML,t.decodeXML=t.decodeXMLStrict=r.XML,t.decodeHTML4=t.decodeHTML5=t.decodeHTML=r.HTML,t.decodeHTML4Strict=t.decodeHTML5Strict=t.decodeHTMLStrict=r.HTMLStrict,t.escape=o.escape},function(e,t,n){var o=n(444),r=n(1073),i=n(456),a=n(348),s=o((function(e,t,n){var o=1;if(n.length){var c=a(n,i(s));o|=32}return r(e,o,t,n,c)}));s.placeholder={},e.exports=s},function(e,t,n){var o=n(347),r=n(454);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=o(r.prototype),i.prototype.constructor=i,e.exports=i},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}},function(e,t){e.exports=function(e){return e.placeholder}},function(e,t,n){var o=n(626),r=n(341).default,i=n(341).flatten,a=n(642),s=n(337),c={merge:n(1115),defaults:n(641)};function l(e,t,n){if(t)"string"==typeof t&&(t=a(t,e._root,n));else{if(!e._root||!e._root.children)return"";t=e._root.children}return o(t,n)}function u(e){if(Array.isArray(e))return!0;if("object"!=typeof e)return!1;if(!e.hasOwnProperty("length"))return!1;if("number"!=typeof e.length)return!1;if(e.length<0)return!1;for(var t=0;t<e.length;){if(!(t in e))return!1;t++}return!0}t.load=function(e,o,a){var l=n(595);o=c.defaults(i(o||{}),r),void 0===a&&(a=!0);var u=s(e,o,a),d=function(e,t,n,r){return this instanceof d?(r=c.defaults(r||{},o),l.call(this,e,t,n||u,r)):new d(e,t,n,r)};return d.prototype=Object.create(l.prototype),d.prototype.constructor=d,d.fn=d.prototype,d.prototype._originalRoot=u,c.merge(d,t),d._root=u,d._options=o,d},t.html=function(e,t){return"[object Object]"!==Object.prototype.toString.call(e)||t||"length"in e||"type"in e||(t=e,e=void 0),l(this,e,t=c.defaults(i(t||{}),this._options,r))},t.xml=function(e){return l(this,e,c.defaults({xml:!0},this._options))},t.text=function(e){e||(e=this.root());for(var n,o="",r=e.length,i=0;i<r;i++)"text"===(n=e[i]).type?o+=n.data:n.children&&"comment"!==n.type&&"script"!==n.tagName&&"style"!==n.tagName&&(o+=t.text(n.children));return o},t.parseHTML=function(e,t,n){var o;return e&&"string"==typeof e?("boolean"==typeof t&&(n=t),o=this.load(e,r,!1),n||o("script").remove(),o.root()[0].children.slice()):null},t.root=function(){return this(this._root)},t.contains=function(e,t){if(t===e)return!1;for(;t&&t!==t.parent;)if((t=t.parent)===e)return!0;return!1},t.merge=function(e,t){if(u(e)&&u(t)){for(var n=e.length+t.length,o=0;o<t.length;)e[o+e.length]=t[o],o++;return e.length=n,e}}},function(e,t,n){var o=n(285),r=o.isTag,i=o.getText,a=o.getParent,s=o.getChildren,c=o.getSiblings,l=o.hasAttrib,u=o.getName,d=o.getAttributeValue,h=n(1108),p=n(643).rules.equals,m=n(286),g=m.trueFunc,f=m.falseFunc;function _(e,t){var n={name:e,value:t};return function(e){return p(e,n)}}function b(e){return function(t){return!!a(t)&&e(t)}}var v={contains:function(e,t){return function(n){return e(n)&&i(n).indexOf(t)>=0}},icontains:function(e,t){var n=t.toLowerCase();return function(t){return e(t)&&i(t).toLowerCase().indexOf(n)>=0}},"nth-child":function(e,t){var n=h(t);return n===f?n:n===g?b(e):function(t){for(var o=c(t),i=0,a=0;i<o.length;i++)if(r(o[i])){if(o[i]===t)break;a++}return n(a)&&e(t)}},"nth-last-child":function(e,t){var n=h(t);return n===f?n:n===g?b(e):function(t){for(var o=c(t),i=0,a=o.length-1;a>=0;a--)if(r(o[a])){if(o[a]===t)break;i++}return n(i)&&e(t)}},"nth-of-type":function(e,t){var n=h(t);return n===f?n:n===g?b(e):function(t){for(var o=c(t),i=0,a=0;a<o.length;a++)if(r(o[a])){if(o[a]===t)break;u(o[a])===u(t)&&i++}return n(i)&&e(t)}},"nth-last-of-type":function(e,t){var n=h(t);return n===f?n:n===g?b(e):function(t){for(var o=c(t),i=0,a=o.length-1;a>=0;a--)if(r(o[a])){if(o[a]===t)break;u(o[a])===u(t)&&i++}return n(i)&&e(t)}},root:function(e){return function(t){return!a(t)&&e(t)}},scope:function(e,t,n,o){return o&&0!==o.length?1===o.length?function(t){return o[0]===t&&e(t)}:function(t){return o.indexOf(t)>=0&&e(t)}:v.root(e)},checkbox:_("type","checkbox"),file:_("type","file"),password:_("type","password"),radio:_("type","radio"),reset:_("type","reset"),image:_("type","image"),submit:_("type","submit")},E={empty:function(e){return!s(e).some((function(e){return r(e)||"text"===e.type}))},"first-child":function(e){return function(e){for(var t=0;e&&t<e.length;t++)if(r(e[t]))return e[t]}(c(e))===e},"last-child":function(e){for(var t=c(e),n=t.length-1;n>=0;n--){if(t[n]===e)return!0;if(r(t[n]))break}return!1},"first-of-type":function(e){for(var t=c(e),n=0;n<t.length;n++)if(r(t[n])){if(t[n]===e)return!0;if(u(t[n])===u(e))break}return!1},"last-of-type":function(e){for(var t=c(e),n=t.length-1;n>=0;n--)if(r(t[n])){if(t[n]===e)return!0;if(u(t[n])===u(e))break}return!1},"only-of-type":function(e){for(var t=c(e),n=0,o=t.length;n<o;n++)if(r(t[n])){if(t[n]===e)continue;if(u(t[n])===u(e))return!1}return!0},"only-child":function(e){for(var t=c(e),n=0;n<t.length;n++)if(r(t[n])&&t[n]!==e)return!1;return!0},link:function(e){return l(e,"href")},visited:f,selected:function(e){if(l(e,"selected"))return!0;if("option"!==u(e))return!1;var t=a(e);if(!t||"select"!==u(t)||l(t,"multiple"))return!1;for(var n=s(t),o=!1,i=0;i<n.length;i++)if(r(n[i]))if(n[i]===e)o=!0;else{if(!o)return!1;if(l(n[i],"selected"))return!1}return o},disabled:function(e){return l(e,"disabled")},enabled:function(e){return!l(e,"disabled")},checked:function(e){return l(e,"checked")||E.selected(e)},required:function(e){return l(e,"required")},optional:function(e){return!l(e,"required")},parent:function(e){return!E.empty(e)},header:function(e){var t=u(e);return"h1"===t||"h2"===t||"h3"===t||"h4"===t||"h5"===t||"h6"===t},button:function(e){var t=u(e);return"button"===t||"input"===t&&"button"===d(e,"type")},input:function(e){var t=u(e);return"input"===t||"textarea"===t||"select"===t||"button"===t},text:function(e){var t;return"input"===u(e)&&(!(t=d(e,"type"))||"text"===t.toLowerCase())}};function y(e,t,n){if(null===n){if(e.length>1&&"scope"!==t)throw new SyntaxError("pseudo-selector :"+t+" requires an argument")}else if(1===e.length)throw new SyntaxError("pseudo-selector :"+t+" doesn't have any arguments")}var S=/^(?:(?:nth|last|first|only)-(?:child|of-type)|root|empty|(?:en|dis)abled|checked|not)$/;e.exports={compile:function(e,t,n,o){var r=t.name,i=t.data;if(n&&n.strict&&!S.test(r))throw SyntaxError(":"+r+" isn't part of CSS3");if("function"==typeof v[r])return y(v[r],r,i),v[r](e,i,n,o);if("function"==typeof E[r]){var a=E[r];return y(a,r,i),e===g?a:function(t){return a(t,i)&&e(t)}}throw new SyntaxError("unmatched pseudo-class :"+r)},filters:v,pseudos:E}},function(e,t,n){var o=n(351),r=n(1122),i=n(1123),a=n(1124),s=n(1125),c=n(1126);function l(e){var t=this.__data__=new o(e);this.size=t.size}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=c,e.exports=l},function(e,t,n){var o=n(208)(n(127),"Map");e.exports=o},function(e,t,n){var o=n(1127),r=n(1134),i=n(1136),a=n(1137),s=n(1138);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}c.prototype.clear=o,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i}},function(e,t,n){var o=n(355),r=n(288);e.exports=function(e,t){for(var n=0,i=(t=o(t,e)).length;null!=e&&n<i;)e=e[r(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var o=n(111),r=n(349),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!r(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){"use strict";let{red:o,bold:r,gray:i,options:a}=n(1223),s=n(667);class c extends Error{constructor(e,t,n,o,r,i){super(e),this.name="CssSyntaxError",this.reason=e,r&&(this.file=r),o&&(this.source=o),i&&(this.plugin=i),void 0!==t&&void 0!==n&&(this.line=t,this.column=n),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,c)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=a.enabled),s&&e&&(t=s(t));let n,c,l=t.split(/\r?\n/),u=Math.max(this.line-3,0),d=Math.min(this.line+2,l.length),h=String(d).length;return e?(n=e=>r(o(e)),c=e=>i(e)):n=c=e=>e,l.slice(u,d).map((e,t)=>{let o=u+1+t,r=" "+(" "+o).slice(-h)+" | ";if(o===this.line){let t=c(r.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+c(r)+e+"\n "+t+n("^")}return" "+c(r)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=c},function(e,t,n){"use strict";let o=n(357);e.exports=class extends o{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}},function(e,t,n){"use strict";e.exports={isClean:Symbol("isClean")}},function(e,t,n){"use strict";let o=n(668);e.exports=function(e,t){new o(t).stringify(e)}},function(e,t,n){(function(e){function n(e,t){for(var n=0,o=e.length-1;o>=0;o--){var r=e[o];"."===r?e.splice(o,1):".."===r?(e.splice(o,1),n++):n&&(e.splice(o,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],o=0;o<e.length;o++)t(e[o],o,e)&&n.push(e[o]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return(r?"/":"")+(t=n(o(t.split("/"),(function(e){return!!e})),!r).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===r(e,-1);return(e=n(o(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function o(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var r=o(e.split("/")),i=o(n.split("/")),a=Math.min(r.length,i.length),s=a,c=0;c<a;c++)if(r[c]!==i[c]){s=c;break}var l=[];for(c=s;c<r.length;c++)l.push("..");return(l=l.concat(i.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,o=-1,r=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!r){o=i;break}}else r=!1;return-1===o?n?"/":".":n&&1===o?"/":e.slice(0,o)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,o=-1,r=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!r){n=t+1;break}}else-1===o&&(r=!1,o=t+1);return-1===o?"":e.slice(n,o)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,o=-1,r=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===o&&(r=!1,o=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!r){n=a+1;break}}return-1===t||-1===o||0===i||1===i&&t===o-1&&t===n+1?"":e.slice(t,o)};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(161))},function(e,t,n){"use strict";let o=n(357);e.exports=class extends o{constructor(e){super(e),this.type="comment"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var o=n(83);function r(e){return{undefined:Object(o.a)("Default"),0:Object(o.a)("Restricted"),[e]:Object(o.a)("Default"),50:Object(o.a)("Moderator"),100:Object(o.a)("Admin")}}function i(e,t){const n=r(t);return n[e]?n[e]:Object(o.a)("Custom (%(level)s)",{level:e})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(81);t.useCallbackRef=function(e,t){var n=o.useState((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCallbackRef=function(e){var t=null;return{get current(){return t},set current(n){var o=t;o!==n&&(t=n,e(n,o))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mediumSidecar=t.mediumEffect=t.mediumBlur=t.mediumFocus=void 0;var o=n(1253),r=(0,o.createMedium)({},(function(e){return{target:e.target,currentTarget:e.currentTarget}}));t.mediumFocus=r;var i=(0,o.createMedium)();t.mediumBlur=i;var a=(0,o.createMedium)();t.mediumEffect=a;var s=(0,o.createSidecarMedium)({async:!0});t.mediumSidecar=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(195),i=n(211);t.default=function(e){return(0,i.asArray)(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(r.FOCUS_GROUP);return e.push.apply(e,function(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)}(n?function e(t){for(var n=t.length,r=0;r<n;r+=1)for(var i=function(n){if(r!==n&&t[r].contains(t[n]))return{v:e(t.filter((function(e){return e!==t[n]})))}},a=0;a<n;a+=1){var s=i(a);if("object"===(void 0===s?"undefined":o(s)))return s.v}return t}((0,i.toArray)(function e(t){return t.parentNode?e(t.parentNode):t}(t).querySelectorAll("["+r.FOCUS_GROUP+'="'+n+'"]:not(['+r.FOCUS_DISABLED+'="disabled"])'))):[t])),e}),[])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(86),u=n(126),d=n(83),h=n(297),p=n.n(h),m=n(91),g=n(89),f=n(85),_=n(98),b=n(683),v=n.n(b);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class y extends a.a.Component{constructor(e){super(e),r()(this,"onKeyDown",e=>{e.key===_.a.ESCAPE&&(e.stopPropagation(),e.preventDefault(),this.props.onFinished())}),r()(this,"onRedactClick",()=>{const e=f.getComponent("dialogs.ConfirmRedactDialog");g.a.createTrackedDialog("Confirm Redact Dialog","Image View",e,{onFinished:e=>{e&&(this.props.onFinished(),l.a.get().redactEvent(this.props.mxEvent.getRoomId(),this.props.mxEvent.getId()).catch((function(e){const t=f.getComponent("dialogs.ErrorDialog"),n=e.errcode||e.statusCode;g.a.createTrackedDialog("You cannot delete this image.","",t,{title:Object(d.a)("Error"),description:Object(d.a)("You cannot delete this image. (%(code)s)",{code:n})})})))}})}),r()(this,"rotateCounterClockwise",()=>{const e=(this.state.rotationDegrees-90)%360;this.setState({rotationDegrees:e})}),r()(this,"rotateClockwise",()=>{const e=(this.state.rotationDegrees+90)%360;this.setState({rotationDegrees:e})}),this.state={rotationDegrees:0}}getName(){let e=this.props.name;return e&&this.props.link&&(e=a.a.createElement("a",{href:this.props.link,target:"_blank",rel:"noreferrer noopener"},e)),e}render(){let e,t,o,i={};this.props.width&&this.props.height&&(i={width:this.props.width,height:this.props.height},e=i.width+"x"+i.height+"px"),this.props.fileSize&&(t=p()(this.props.fileSize)),o=t&&e?t+", "+e:t||e;let s=!1;let c,h;if(!!this.props.mxEvent){let e=this.props.mxEvent.getSender();const t=l.a.get(),n=t.getRoom(this.props.mxEvent.getRoomId());if(n){s=n.currentState.maySendRedactionForEvent(this.props.mxEvent,t.credentials.userId);const o=n.getMember(e);o&&(e=o.name)}c=a.a.createElement("div",{className:"mx_ImageView_metadata"},Object(d.a)("Uploaded on %(date)s by %(user)s",{date:Object(u.a)(new Date(this.props.mxEvent.getTs())),user:e}))}s&&(h=a.a.createElement("div",{className:"mx_ImageView_button",onClick:this.onRedactClick},Object(d.a)("Remove")));const g=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({transform:`rotate(${this.state.rotationDegrees}deg)`},i);return a.a.createElement(v.a,{returnFocus:!0,lockProps:{onKeyDown:this.onKeyDown,role:"dialog"},className:"mx_ImageView"},a.a.createElement("div",{className:"mx_ImageView_lhs"}),a.a.createElement("div",{className:"mx_ImageView_content"},a.a.createElement("img",{src:this.props.src,title:this.props.name,style:g,className:"mainImage"}),a.a.createElement("div",{className:"mx_ImageView_labelWrapper"},a.a.createElement("div",{className:"mx_ImageView_label"},a.a.createElement(m.a,{className:"mx_ImageView_rotateCounterClockwise",title:Object(d.a)("Rotate Left"),onClick:this.rotateCounterClockwise},a.a.createElement("img",{src:n(1282),alt:Object(d.a)("Rotate counter-clockwise"),width:"18",height:"18"})),a.a.createElement(m.a,{className:"mx_ImageView_rotateClockwise",title:Object(d.a)("Rotate Right"),onClick:this.rotateClockwise},a.a.createElement("img",{src:n(1283),alt:Object(d.a)("Rotate clockwise"),width:"18",height:"18"})),a.a.createElement(m.a,{className:"mx_ImageView_cancel",title:Object(d.a)("Close"),onClick:this.props.onFinished},a.a.createElement("img",{src:n(1284),width:"18",height:"18",alt:Object(d.a)("Close")})),a.a.createElement("div",{className:"mx_ImageView_shim"}),a.a.createElement("div",{className:"mx_ImageView_name"},this.getName()),c,a.a.createElement("a",{className:"mx_ImageView_link",href:this.props.src,download:this.props.name,target:"_blank",rel:"noopener"},a.a.createElement("div",{className:"mx_ImageView_download"},Object(d.a)("Download this file"),a.a.createElement("br",null),a.a.createElement("span",{className:"mx_ImageView_size"},o))),h,a.a.createElement("div",{className:"mx_ImageView_shim"})))),a.a.createElement("div",{className:"mx_ImageView_rhs"}))}}r()(y,"propTypes",{src:c.a.string.isRequired,name:c.a.string,link:c.a.string,width:c.a.number,height:c.a.number,fileSize:c.a.number,onFinished:c.a.func.isRequired,mxEvent:c.a.object})},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return k}));var o=n(82),r=n.n(o),i=n(81),a=n(90),s=n.n(a),c=n(174),l=n(83),u=n(91),d=n(692),h=n(100),p=n(142),m=n(237),g=n(120),f=n(87),_=n(298),b=n(113),v=n(98),E=n(366),y=n(1288),S=n(173),T=n(801),w=n(117),C=n(145),x=n(246);const O=32;Object(y.a)();class k extends i.Component{constructor(t){super(t),r()(this,"headerButton",Object(i.createRef)()),r()(this,"sublistRef",Object(i.createRef)()),r()(this,"dispatcherRef",void 0),r()(this,"layout",void 0),r()(this,"heightAtStart",void 0),r()(this,"isBeingFiltered",void 0),r()(this,"notificationState",void 0),r()(this,"onListsUpdated",()=>{const e={};if(this.props.extraBadTilesThatShouldntExist){const t=p.b.instance.getFirstNameFilterCondition();t?e.filteredExtraTiles=this.props.extraBadTilesThatShouldntExist.filter(e=>t.matches(e.props.displayName||"")):this.state.filteredExtraTiles&&(e.filteredExtraTiles=null)}const t=this.state.rooms,n=Object(w.c)(p.b.instance.orderedLists[this.props.tagId]||[]);Object(w.e)(t,n)&&(e.rooms=n);const o=!!p.b.instance.getFirstNameFilterCondition();o!==this.isBeingFiltered&&(this.isBeingFiltered=o,e.isExpanded=!!o||!this.layout.isCollapsed),Object.keys(e).length>0&&this.setState(e)}),r()(this,"onAction",t=>{"view_room"===t.action&&t.show_room_tile&&this.state.rooms&&e(()=>{const e=this.state.rooms.findIndex(e=>e.roomId===t.room_id);!this.state.isExpanded&&e>-1&&this.toggleCollapsed(),e>=this.numVisibleTiles&&(this.layout.visibleTiles=this.layout.tilesWithPadding(e+1,32),this.forceUpdate())})}),r()(this,"onAddRoom",e=>{e.stopPropagation(),this.props.onAddRoom&&this.props.onAddRoom()}),r()(this,"onResize",(e,t,n,o)=>{const r=this.heightAtStart+o.height;this.applyHeightChange(r),this.setState({height:r})}),r()(this,"onResizeStart",()=>{this.heightAtStart=this.state.height,this.setState({isResizing:!0})}),r()(this,"onResizeStop",(e,t,n,o)=>{const r=this.heightAtStart+o.height;this.applyHeightChange(r),this.setState({isResizing:!1,height:r})}),r()(this,"onShowAllClick",()=>{const e=this.numVisibleTiles,t=this.layout.tilesToPixelsWithPadding(this.numTiles,this.padding);this.applyHeightChange(t),this.setState({height:t},()=>{this.focusRoomTile(e)})}),r()(this,"onShowLessClick",()=>{const e=this.layout.tilesToPixelsWithPadding(this.layout.defaultVisibleTiles,this.padding);this.applyHeightChange(e),this.setState({height:e})}),r()(this,"focusRoomTile",e=>{if(!this.sublistRef.current)return;const t=this.sublistRef.current.querySelectorAll(".mx_RoomTile"),n=t&&t[e];n&&n.focus()}),r()(this,"onOpenMenuClick",e=>{e.preventDefault(),e.stopPropagation();const t=e.target;this.setState({contextMenuPosition:t.getBoundingClientRect()})}),r()(this,"onContextMenu",e=>{e.preventDefault(),e.stopPropagation(),this.setState({contextMenuPosition:{left:e.clientX,top:e.clientY,height:0}})}),r()(this,"onAddRoomContextMenu",e=>{e.preventDefault(),e.stopPropagation();const t=e.target;this.setState({addRoomContextMenuPosition:t.getBoundingClientRect()})}),r()(this,"onCloseMenu",()=>{this.setState({contextMenuPosition:null})}),r()(this,"onCloseAddRoomMenu",()=>{this.setState({addRoomContextMenuPosition:null})}),r()(this,"onUnreadFirstChanged",async()=>{const e=p.b.instance.getListOrder(this.props.tagId)===m.a.Importance?m.a.Natural:m.a.Importance;await p.b.instance.setListOrder(this.props.tagId,e),this.forceUpdate()}),r()(this,"onTagSortChanged",async e=>{await p.b.instance.setTagSorting(this.props.tagId,e)}),r()(this,"onMessagePreviewChanged",()=>{this.layout.showPreviews=!this.layout.showPreviews,this.forceUpdate()}),r()(this,"onBadgeClick",e=>{let t;e.preventDefault(),e.stopPropagation(),t=this.props.tagId===g.a.Invite?this.state.rooms&&this.state.rooms[0]:p.b.instance.unfilteredLists[this.props.tagId].find(e=>{const t=this.notificationState.getForRoom(e);return t.count>0&&t.color===this.notificationState.color}),t&&f.a.dispatch({action:"view_room",room_id:t.roomId,show_room_tile:!0})}),r()(this,"onHeaderClick",()=>{const t=this.headerButton.current.parentElement,n=t.parentElement.parentElement,o=n.parentElement.parentElement,r=o.scrollTop<=O,i=o.scrollTop>=o.scrollHeight-o.offsetHeight,a=t.classList.contains("mx_RoomSublist_headerContainer_stickyTop"),s=t.classList.contains("mx_RoomSublist_headerContainer_stickyBottom");if(s&&!i||a&&!r)n.scrollIntoView({behavior:"smooth"});else{const t=this.state.isExpanded;this.toggleCollapsed(),!t&&s&&e(()=>{n.scrollIntoView({behavior:"smooth"})})}}),r()(this,"toggleCollapsed",()=>{this.layout.isCollapsed=this.state.isExpanded,this.setState({isExpanded:!this.layout.isCollapsed}),e(()=>this.props.onResize())}),r()(this,"onHeaderKeyDown",e=>{switch(e.key){case v.a.ARROW_LEFT:e.stopPropagation(),this.state.isExpanded&&this.toggleCollapsed();break;case v.a.ARROW_RIGHT:if(e.stopPropagation(),this.state.isExpanded){if(this.sublistRef.current){const e=this.sublistRef.current.querySelector(".mx_RoomTile");e&&e.focus()}}else this.toggleCollapsed()}}),r()(this,"onKeyDown",e=>{switch(e.key){case v.a.ARROW_LEFT:e.stopPropagation(),this.headerButton.current.focus();break;case v.a.ARROW_RIGHT:e.stopPropagation()}}),this.layout=T.a.instance.getLayoutFor(this.props.tagId),this.heightAtStart=0,this.isBeingFiltered=!!p.b.instance.getFirstNameFilterCondition(),this.notificationState=S.a.instance.getListState(this.props.tagId),this.state={contextMenuPosition:null,addRoomContextMenuPosition:null,isResizing:!1,isExpanded:this.isBeingFiltered?this.isBeingFiltered:!this.layout.isCollapsed,height:0,rooms:Object(w.c)(p.b.instance.orderedLists[this.props.tagId]||[])},this.state=Object.assign(this.state,{height:this.calculateInitialHeight()}),this.dispatcherRef=f.a.register(this.onAction),p.b.instance.on(p.a,this.onListsUpdated)}calculateInitialHeight(){const e=Math.max(Math.floor(this.layout.visibleTiles),this.layout.minVisibleTiles),t=Math.min(this.numTiles,e);return this.layout.tilesToPixelsWithPadding(t,this.padding)}get padding(){let e=4;const t=this.numTiles>this.numVisibleTiles,n=this.numTiles>this.layout.defaultVisibleTiles;return(t||n)&&(e+=28),e}get extraTiles(){return this.state.filteredExtraTiles?this.state.filteredExtraTiles:this.props.extraBadTilesThatShouldntExist?this.props.extraBadTilesThatShouldntExist:null}get numTiles(){return k.calcNumTiles(this.state.rooms,this.extraTiles)}static calcNumTiles(e,t){return(e||[]).length+(t||[]).length}get numVisibleTiles(){const e=Math.ceil(this.layout.visibleTiles);return Math.min(e,this.numTiles)}componentDidUpdate(e,t){const n=t.filteredExtraTiles||e.extraBadTilesThatShouldntExist;k.calcNumTiles(t.rooms,n)!==this.numTiles&&this.setState({height:this.calculateInitialHeight()})}shouldComponentUpdate(e,t){if(Object(C.c)(this.props,e))return!0;const n=Object(C.b)(this.state,["rooms"]),o=Object(C.b)(t,["rooms"]);if(Object(C.c)(n,o))return!0;const r=this.props.extraBadTilesThatShouldntExist||[],i=t.filteredExtraTiles||e.extraBadTilesThatShouldntExist||[];if(r.length>0||i.length>0)return!0;if(k.calcNumTiles(t.rooms,i)!==this.numTiles)return!0;if(!t.isExpanded)return!1;if(this.state.rooms.length!==t.rooms.length)return!0;const a=this.state.rooms.slice(0,this.numVisibleTiles),s=t.rooms.slice(0,this.numVisibleTiles);return!!Object(w.e)(a,s)}componentWillUnmount(){f.a.unregister(this.dispatcherRef),p.b.instance.off(p.a,this.onListsUpdated)}applyHeightChange(e){const t=Math.ceil(this.layout.pixelsToTiles(e-this.padding));this.layout.visibleTiles=Math.min(this.numTiles,t)}renderVisibleTiles(){if(!this.state.isExpanded)return[];const e=[];if(this.state.rooms){const t=this.state.rooms.slice(0,this.numVisibleTiles);for(const n of t)e.push(i.createElement(d.a,{room:n,key:"room-"+n.roomId,showMessagePreview:this.layout.showPreviews,isMinimized:this.props.isMinimized,tag:this.props.tagId}))}return this.extraTiles&&e.push(...this.extraTiles),e.length>this.numVisibleTiles?e.slice(0,this.numVisibleTiles):e}renderMenu(){let e=null;if(this.state.contextMenuPosition){const t=p.b.instance.getTagSorting(this.props.tagId)===m.b.Alphabetic,n=p.b.instance.getListOrder(this.props.tagId)===m.a.Importance;let o=null;this.props.tagId!==g.a.Invite&&(o=i.createElement(i.Fragment,null,i.createElement("hr",null),i.createElement("div",null,i.createElement("div",{className:"mx_RoomSublist_contextMenu_title"},Object(l.a)("Appearance")),i.createElement(h.i,{onClose:this.onCloseMenu,onChange:this.onUnreadFirstChanged,checked:n},Object(l.a)("Show rooms with unread messages first")),i.createElement(h.i,{onClose:this.onCloseMenu,onChange:this.onMessagePreviewChanged,checked:this.layout.showPreviews},Object(l.a)("Show previews of messages"))))),e=i.createElement(h.b,{chevronFace:h.a.None,left:this.state.contextMenuPosition.left,top:this.state.contextMenuPosition.top+this.state.contextMenuPosition.height,onFinished:this.onCloseMenu},i.createElement("div",{className:"mx_RoomSublist_contextMenu"},i.createElement("div",null,i.createElement("div",{className:"mx_RoomSublist_contextMenu_title"},Object(l.a)("Sort by")),i.createElement(h.j,{onClose:this.onCloseMenu,onChange:()=>this.onTagSortChanged(m.b.Recent),checked:!t,name:`mx_${this.props.tagId}_sortBy`},Object(l.a)("Activity")),i.createElement(h.j,{onClose:this.onCloseMenu,onChange:()=>this.onTagSortChanged(m.b.Alphabetic),checked:t,name:`mx_${this.props.tagId}_sortBy`},Object(l.a)("A-Z"))),o))}else this.state.addRoomContextMenuPosition&&(e=i.createElement(x.e,{chevronFace:h.a.None,left:this.state.addRoomContextMenuPosition.left-7,top:this.state.addRoomContextMenuPosition.top+this.state.addRoomContextMenuPosition.height,onFinished:this.onCloseAddRoomMenu,compact:!0},this.props.addRoomContextMenu(this.onCloseAddRoomMenu)));return i.createElement(i.Fragment,null,i.createElement(h.d,{className:"mx_RoomSublist_menuButton",onClick:this.onOpenMenuClick,title:Object(l.a)("List options"),isExpanded:!!this.state.contextMenuPosition}),e)}renderHeader(){return i.createElement(c.d,{inputRef:this.headerButton},({onFocus:e,isActive:t,ref:n})=>{const o=t?0:-1;let r=Object(l.a)("Jump to first unread room.");this.props.tagId===g.a.Invite&&(r=Object(l.a)("Jump to first invite."));const a=i.createElement(_.a,{forceCount:!0,notification:this.notificationState,onClick:this.onBadgeClick,tabIndex:o,"aria-label":r});let c=null;this.props.onAddRoom?c=i.createElement(b.a,{tabIndex:o,onClick:this.onAddRoom,className:"mx_RoomSublist_auxButton",tooltipClassName:"mx_RoomSublist_addRoomTooltip","aria-label":this.props.addRoomLabel||Object(l.a)("Add room"),title:this.props.addRoomLabel}):this.props.addRoomContextMenu&&(c=i.createElement(h.d,{tabIndex:o,onClick:this.onAddRoomContextMenu,className:"mx_RoomSublist_auxButton",tooltipClassName:"mx_RoomSublist_addRoomTooltip","aria-label":this.props.addRoomLabel||Object(l.a)("Add room"),title:this.props.addRoomLabel,isExpanded:!!this.state.addRoomContextMenuPosition}));const d=s()({mx_RoomSublist_collapseBtn:!0,mx_RoomSublist_collapseBtn_collapsed:!this.state.isExpanded}),p=s()({mx_RoomSublist_headerContainer:!0,mx_RoomSublist_headerContainer_withAux:!!c}),m=i.createElement("div",{className:"mx_RoomSublist_badgeContainer"},a);let f=u.a;return this.props.isMinimized&&(f=b.a),i.createElement("div",{className:p,onKeyDown:this.onHeaderKeyDown,onFocus:e,"aria-label":this.props.label},i.createElement("div",{className:"mx_RoomSublist_stickable"},i.createElement(f,{onFocus:e,inputRef:n,tabIndex:o,className:"mx_RoomSublist_headerText",role:"treeitem","aria-expanded":this.state.isExpanded,"aria-level":1,onClick:this.onHeaderClick,onContextMenu:this.onContextMenu,title:this.props.isMinimized?this.props.label:void 0},i.createElement("span",{className:d}),i.createElement("span",null,this.props.label)),this.renderMenu(),this.props.isMinimized?null:m,this.props.isMinimized?null:c),this.props.isMinimized?m:null,this.props.isMinimized?c:null)})}onScrollPrevent(e){e.target.scrollTop=0}render(){const e=this.renderVisibleTiles(),t=s()({mx_RoomSublist:!0,mx_RoomSublist_hasMenuOpen:!!this.state.contextMenuPosition,mx_RoomSublist_minimized:this.props.isMinimized});let n=null;if(e.length>0){const t=this.layout,o=Math.min(t.minVisibleTiles,this.numTiles),r=4+(o<this.numTiles?28:0),a=t.tilesToPixelsWithPadding(o,r),u=t.tilesToPixelsWithPadding(this.numTiles,this.padding),d=s()({mx_RoomSublist_showNButton:!0});let h=null;if(u>this.state.height){const e=this.state.height-4-28,t=Math.floor(e/this.layout.tileHeight),n=this.numTiles-t,o=Object(l.a)("Show %(count)s more",{count:n});let r=i.createElement("span",{className:"mx_RoomSublist_showNButtonText"},o);this.props.isMinimized&&(r=null),h=i.createElement(c.a,{role:"treeitem",onClick:this.onShowAllClick,className:d,"aria-label":o},i.createElement("span",{className:"mx_RoomSublist_showMoreButtonChevron mx_RoomSublist_showNButtonChevron"}),r)}else if(this.numTiles>this.layout.defaultVisibleTiles){const e=Object(l.a)("Show less");let t=i.createElement("span",{className:"mx_RoomSublist_showNButtonText"},e);this.props.isMinimized&&(t=null),h=i.createElement(c.a,{role:"treeitem",onClick:this.onShowLessClick,className:d,"aria-label":e},i.createElement("span",{className:"mx_RoomSublist_showLessButtonChevron mx_RoomSublist_showNButtonChevron"}),t)}const p={bottom:!0,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1};t.visibleTiles>=this.numTiles&&this.numTiles<=t.minVisibleTiles&&(p.bottom=!1);const m=s()({mx_RoomSublist_resizerHandles:!0,mx_RoomSublist_resizerHandles_showNButton:!!h});n=i.createElement(i.Fragment,null,i.createElement(E.Resizable,{size:{height:this.state.height},minHeight:a,maxHeight:u,onResizeStart:this.onResizeStart,onResizeStop:this.onResizeStop,onResize:this.onResize,handleWrapperClass:m,handleClasses:{bottom:"mx_RoomSublist_resizerHandle"},className:"mx_RoomSublist_resizeBox",enable:p},i.createElement("div",{className:"mx_RoomSublist_tiles",onScroll:this.onScrollPrevent},e),h))}else this.props.showSkeleton&&this.state.isExpanded&&(n=i.createElement("div",{className:"mx_RoomSublist_skeletonUI"}));return i.createElement("div",{ref:this.sublistRef,className:t,role:"group","aria-label":this.props.label,onKeyDown:this.onKeyDown},this.renderHeader(),n)}}}).call(this,n(149).setImmediate)},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n(82),r=n.n(o),i=n(698);let a;!function(e){e[e.Pending=0]="Pending",e[e.Success=1]="Success",e[e.Error=2]="Error"}(a||(a={}));class s extends i.a{constructor(e,t){super(),this.auditName=e,this.runFn=t,r()(this,"_status",a.Pending),r()(this,"didFail",!1),r()(this,"startTime",new Date)}get didPreviouslyFail(){return this.didFail}get status(){return this._status}run(){if(this.status===a.Success)throw new Error("Cannot re-run a successful echo transaction");this.setStatus(a.Pending),this.runFn().then(()=>this.setStatus(a.Success)).catch(()=>this.setStatus(a.Error))}cancel(){this.setStatus(a.Success)}setStatus(e){this._status=e,e===a.Error?this.didFail=!0:e===a.Success&&(this.didFail=!1),this.notifyCondition(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(82),r=n.n(o),i=n(92),a=n(86);class s{constructor(){r()(this,"domain",void 0),r()(this,"update",async e=>{let t=(i.a.get().jitsi||{}).preferredDomain||"jitsi.riot.im";if(console.log("Attempting to get Jitsi conference information from homeserver"),e&&e["im.vector.riot.jitsi"]){const n=e["im.vector.riot.jitsi"].preferredDomain;n&&(t=n)}this.domain=t,console.log("Jitsi conference domain:",this.preferredDomain)})}get preferredDomain(){return this.domain||"jitsi.riot.im"}async getJitsiAuth(){if(!this.preferredDomain)return null;let e;try{const t=await fetch(`https://${this.preferredDomain}/.well-known/element/jitsi`);e=await t.json()}catch(e){return null}return e.auth?e.auth:null}start(){const e=a.a.get();e.on("WellKnown.client",this.update),this.update(e.getClientWellKnown())}parsePreferredConferenceUrl(e){const t=new URL(e);return t.hostname!==this.preferredDomain?null:{conferenceId:t.pathname,domain:t.hostname,isAudioOnly:!1}}static getInstance(){return s.instance||(s.instance=new s),s.instance}}r()(s,"instance",void 0)},function(e,t,n){"use strict";var o=Object.prototype.hasOwnProperty,r=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var i=t[o],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:l}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(r(n)){for(var o=[],i=0;i<n.length;++i)void 0!==n[i]&&o.push(n[i]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var r="",a=0;a<o.length;++a){var s=o.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?r+=o.charAt(a):s<128?r+=i[s]:s<2048?r+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?r+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&o.charCodeAt(a)),r+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return r},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(r(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(r(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return r(t)&&!r(n)&&(s=a(t,i)),r(t)&&r(n)?(n.forEach((function(n,r){if(o.call(t,r)){var a=t[r];a&&"object"==typeof a&&n&&"object"==typeof n?t[r]=e(a,n,i):t.push(n)}else t[r]=n})),t):Object.keys(n).reduce((function(t,r){var a=n[r];return o.call(t,r)?t[r]=e(t[r],a,i):t[r]=a,t}),s)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var o=n(83),r=n(249),i=n(157),a=n(134);const s=()=>{r.default.setEnabled(!0)},c=()=>{r.default.setPromptHidden(!0)},l=e=>{a.a.sharedInstance().addOrReplaceToast({key:"desktopnotifications",title:e?Object(o.a)("Don't miss a reply"):Object(o.a)("Notifications"),props:{description:Object(o.a)("Enable desktop notifications"),acceptLabel:Object(o.a)("Enable"),onAccept:s,rejectLabel:Object(o.a)("Dismiss"),onReject:c},component:i.a,priority:30})},u=()=>{a.a.sharedInstance().dismissToast("desktopnotifications")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(99),r=n.n(o),i=n(81),a=n.n(i),s=n(91);function c(e){const{className:t,label:n,kind:o}=e,i=r()(e,["className","label","kind"]),c=(t||"")+" mx_FormButton",l=Object.assign({},i,{className:c,kind:o||"primary",children:[n]});return a.a.createElement(s.a,l)}c.propTypes=s.a.propTypes},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(82),r=n.n(o),i=n(87),a=n(250);class s{constructor(e,t){this.window=e,this.document=t,r()(this,"activeNowTimeout",void 0),r()(this,"activeRecentlyTimeout",void 0),r()(this,"attachedActiveNowTimers",[]),r()(this,"attachedActiveRecentlyTimers",[]),r()(this,"lastScreenX",0),r()(this,"lastScreenY",0),r()(this,"onPageVisibilityChanged",e=>{"hidden"===this.document.visibilityState?(this.activeNowTimeout.abort(),this.activeRecentlyTimeout.abort()):this.onUserActivity(e)}),r()(this,"onWindowBlurred",()=>{this.activeNowTimeout.abort(),this.activeRecentlyTimeout.abort()}),r()(this,"onUserActivity",e=>{if(this.document.hasFocus()){if(e.screenX&&"mousemove"===e.type){if(e.screenX===this.lastScreenX&&e.screenY===this.lastScreenY)return;this.lastScreenX=e.screenX,this.lastScreenY=e.screenY}i.a.dispatch({action:"user_activity"}),this.activeNowTimeout.isRunning()?this.activeNowTimeout.restart():(this.activeNowTimeout.start(),i.a.dispatch({action:"user_activity_start"}),s.runTimersUntilTimeout(this.attachedActiveNowTimers,this.activeNowTimeout)),this.activeRecentlyTimeout.isRunning()?this.activeRecentlyTimeout.restart():(this.activeRecentlyTimeout.start(),s.runTimersUntilTimeout(this.attachedActiveRecentlyTimers,this.activeRecentlyTimeout))}}),this.activeNowTimeout=new a.a(700),this.activeRecentlyTimeout=new a.a(12e4)}static sharedInstance(){return void 0===window.mxUserActivity&&(window.mxUserActivity=new s(window,document)),window.mxUserActivity}timeWhileActiveNow(e){this.timeWhile(e,this.attachedActiveNowTimers),this.userActiveNow()&&e.start()}timeWhileActiveRecently(e){this.timeWhile(e,this.attachedActiveRecentlyTimers),this.userActiveRecently()&&e.start()}timeWhile(e,t){-1===t.indexOf(e)&&(t.push(e),e.finished().finally(()=>{const n=t.indexOf(e);-1!==n&&t.splice(n,1)}).catch(e=>{}))}start(){this.document.addEventListener("mousedown",this.onUserActivity),this.document.addEventListener("mousemove",this.onUserActivity),this.document.addEventListener("keydown",this.onUserActivity),this.document.addEventListener("visibilitychange",this.onPageVisibilityChanged),this.window.addEventListener("blur",this.onWindowBlurred),this.window.addEventListener("focus",this.onUserActivity),this.window.addEventListener("wheel",this.onUserActivity,{passive:!0,capture:!0})}stop(){this.document.removeEventListener("mousedown",this.onUserActivity),this.document.removeEventListener("mousemove",this.onUserActivity),this.document.removeEventListener("keydown",this.onUserActivity),this.window.removeEventListener("wheel",this.onUserActivity,{capture:!0}),this.document.removeEventListener("visibilitychange",this.onPageVisibilityChanged),this.window.removeEventListener("blur",this.onWindowBlurred),this.window.removeEventListener("focus",this.onUserActivity)}userActiveNow(){return this.activeNowTimeout.isRunning()}userActiveRecently(){return this.activeRecentlyTimeout.isRunning()}static async runTimersUntilTimeout(e,t){e.forEach(e=>e.start());try{await t.finished()}catch(e){}e.forEach(e=>e.abort())}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(82),r=n.n(o),i=n(86),a=n(364),s=n(88),c=n(83),l=n(87),u=n(95);class d{constructor(){r()(this,"_lists",[]),r()(this,"_roomIds",[]),r()(this,"_mjolnirWatchRef",null),r()(this,"_dispatcherRef",null),r()(this,"_onAction",e=>{"setup_mjolnir"===e.action&&(console.log("Setting up Mjolnir: after sync"),this.setup())}),r()(this,"_onEvent",e=>{i.a.get()&&this._roomIds.includes(e.getRoomId())&&a.a.includes(e.getType())&&this._updateLists(this._roomIds)})}get roomIds(){return this._roomIds}get lists(){return this._lists}start(){this._mjolnirWatchRef=s.a.watchSetting("mjolnirRooms",null,this._onListsChanged.bind(this)),this._dispatcherRef=l.a.register(this._onAction),l.a.dispatch({action:"do_after_sync_prepared",deferred_action:{action:"setup_mjolnir"}})}setup(){i.a.get()&&(this._updateLists(s.a.getValue("mjolnirRooms")),i.a.get().on("RoomState.events",this._onEvent))}stop(){this._mjolnirWatchRef&&(s.a.unwatchSetting(this._mjolnirWatchRef),this._mjolnirWatchRef=null),this._dispatcherRef&&(l.a.unregister(this._dispatcherRef),this._dispatcherRef=null),i.a.get()&&i.a.get().removeListener("RoomState.events",this._onEvent)}async getOrCreatePersonalList(){let e=s.a.getValue("mjolnirPersonalRoom");if(!e){const t=await i.a.get().createRoom({name:Object(c.a)("My Ban List"),topic:Object(c.a)("This is your list of users/servers you have blocked - don't leave the room!"),preset:"private_chat"});e=t.room_id,await s.a.setValue("mjolnirPersonalRoom",null,u.a.ACCOUNT,e),await s.a.setValue("mjolnirRooms",null,u.a.ACCOUNT,[e,...this._roomIds])}if(!e)throw new Error("Error finding a room ID to use");let t=this._lists.find(t=>t.roomId===e);return t||(t=new a.b(e)),t}getPersonalList(){const e=s.a.getValue("mjolnirPersonalRoom");if(!e)return null;let t=this._lists.find(t=>t.roomId===e);return t||(t=new a.b(e)),t}async subscribeToList(e){const t=[...this._roomIds,e];await s.a.setValue("mjolnirRooms",null,u.a.ACCOUNT,t),this._lists.push(new a.b(e))}async unsubscribeFromList(e){const t=this._roomIds.filter(t=>t!==e);await s.a.setValue("mjolnirRooms",null,u.a.ACCOUNT,t),this._lists=this._lists.filter(t=>t.roomId!==e)}_onListsChanged(e,t,n,o){this._updateLists(o)}_updateLists(e){if(i.a.get()&&(console.log("Updating Mjolnir ban lists to: "+e),this._lists=[],this._roomIds=e||[],e))for(const t of e)this._lists.push(new a.b(t))}isServerBanned(e){for(const t of this._lists)for(const n of t.serverRules)if(n.isMatch(e))return!0;return!1}isUserBanned(e){for(const t of this._lists)for(const n of t.userRules)if(n.isMatch(e))return!0;return!1}static sharedInstance(){return d._instance||(d._instance=new d),d._instance}}r()(d,"_instance",null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(83),u=n(92),d=n(86),h=n(85),p=n(486);class m extends a.a.Component{constructor(){super(),r()(this,"_onStoreUpdate",()=>{const e=p.f.sharedInstance();e.phase!==p.d?this.setState({phase:e.phase,verificationRequest:e.verificationRequest,backupInfo:e.backupInfo}):this.props.onFinished()}),r()(this,"_onUsePassphraseClick",async()=>{p.f.sharedInstance().usePassPhrase()}),r()(this,"onSkipClick",()=>{p.f.sharedInstance().skip()}),r()(this,"onSkipConfirmClick",()=>{p.f.sharedInstance().skipConfirm()}),r()(this,"onSkipBackClick",()=>{p.f.sharedInstance().returnAfterSkip()}),r()(this,"onDoneClick",()=>{p.f.sharedInstance().done()});const e=p.f.sharedInstance();e.on("update",this._onStoreUpdate),e.start(),this.state={phase:e.phase,verificationRequest:e.verificationRequest,backupInfo:e.backupInfo}}componentWillUnmount(){const e=p.f.sharedInstance();e.off("update",this._onStoreUpdate),e.stop()}render(){const e=h.getComponent("elements.AccessibleButton"),{phase:t}=this.state;if(this.state.verificationRequest){const e=h.getComponent("views.right_panel.EncryptionPanel");return a.a.createElement(e,{layout:"dialog",verificationRequest:this.state.verificationRequest,onClose:this.props.onFinished,member:d.a.get().getUser(this.state.verificationRequest.otherUserId)})}if(t===p.e){const t=p.f.sharedInstance();let o,r;t.keyInfo&&((n=t.keyInfo).passphrase&&n.passphrase.salt&&n.passphrase.iterations)?o=Object(l.a)("Use Recovery Key or Passphrase"):t.keyInfo&&(o=Object(l.a)("Use Recovery Key")),o&&(r=a.a.createElement(e,{kind:"link",onClick:this._onUsePassphraseClick},o));const i=u.a.get().brand;return a.a.createElement("div",null,a.a.createElement("p",null,Object(l.a)("Confirm your identity by verifying this login from one of your other sessions, granting it access to encrypted messages.")),a.a.createElement("p",null,Object(l.a)("This requires the latest %(brand)s on your other devices:",{brand:i})),a.a.createElement("div",{className:"mx_CompleteSecurity_clients"},a.a.createElement("div",{className:"mx_CompleteSecurity_clients_desktop"},a.a.createElement("div",null,Object(l.a)("%(brand)s Web",{brand:i})),a.a.createElement("div",null,Object(l.a)("%(brand)s Desktop",{brand:i}))),a.a.createElement("div",{className:"mx_CompleteSecurity_clients_mobile"},a.a.createElement("div",null,Object(l.a)("%(brand)s iOS",{brand:i})),a.a.createElement("div",null,Object(l.a)("%(brand)s Android",{brand:i}))),a.a.createElement("p",null,Object(l.a)("or another cross-signing capable Matrix client"))),a.a.createElement("div",{className:"mx_CompleteSecurity_actionRow"},r,a.a.createElement(e,{kind:"danger",onClick:this.onSkipClick},Object(l.a)("Skip"))))}if(t===p.c){let t;return t=this.state.backupInfo?a.a.createElement("p",null,Object(l.a)("Your new session is now verified. It has access to your encrypted messages, and other users will see it as trusted.")):a.a.createElement("p",null,Object(l.a)("Your new session is now verified. Other users will see it as trusted.")),a.a.createElement("div",null,a.a.createElement("div",{className:"mx_CompleteSecurity_heroIcon mx_E2EIcon_verified"}),t,a.a.createElement("div",{className:"mx_CompleteSecurity_actionRow"},a.a.createElement(e,{kind:"primary",onClick:this.onDoneClick},Object(l.a)("Done"))))}if(t===p.b)return a.a.createElement("div",null,a.a.createElement("p",null,Object(l.a)("Without completing security on this session, it wont have access to encrypted messages.")),a.a.createElement("div",{className:"mx_CompleteSecurity_actionRow"},a.a.createElement(e,{className:"warning",kind:"secondary",onClick:this.onSkipConfirmClick},Object(l.a)("Skip")),a.a.createElement(e,{kind:"danger",onClick:this.onSkipBackClick},Object(l.a)("Go Back"))));if(t===p.a){const e=h.getComponent("views.elements.Spinner");return a.a.createElement(e,null)}var n;console.log("SetupEncryptionBody: Unknown phase "+t)}}r()(m,"propTypes",{onFinished:c.a.func.isRequired})},function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"f",(function(){return g}));var o=n(82),r=n.n(o),i=n(6),a=n.n(i),s=n(86),c=n(170),l=n(203);const u=0,d=1,h=2,p=3,m=4;class g extends a.a{constructor(...e){super(...e),r()(this,"_onUserTrustStatusChanged",e=>{if(e!==s.a.get().getUserId())return;s.a.get().getCrossSigningId()&&(this.phase=h,this.emit("update"))}),r()(this,"onVerificationRequest",e=>{this._setActiveVerificationRequest(e)}),r()(this,"onVerificationRequestChange",()=>{if(this.verificationRequest.cancelled)this.verificationRequest.off("change",this.onVerificationRequestChange),this.verificationRequest=null,this.emit("update");else if(this.verificationRequest.phase===l.c){this.verificationRequest.off("change",this.onVerificationRequestChange),this.verificationRequest=null;const e=s.a.get().getCrossSigningId();this.phase=e?h:d,this.emit("update")}})}static sharedInstance(){return e.mx_SetupEncryptionStore||(e.mx_SetupEncryptionStore=new g),e.mx_SetupEncryptionStore}start(){if(this._started)return;this._started=!0,this.phase=d,this.verificationRequest=null,this.backupInfo=null,this.keyId=null,this.keyInfo=null;const e=s.a.get();e.on("crypto.verification.request",this.onVerificationRequest),e.on("userTrustStatusChanged",this._onUserTrustStatusChanged);const t=e.getVerificationRequestsToDeviceInProgress(e.getUserId());t.length&&this._setActiveVerificationRequest(t[t.length-1]),this.fetchKeyInfo()}stop(){this._started&&(this._started=!1,this.verificationRequest&&this.verificationRequest.off("change",this.onVerificationRequestChange),s.a.get()&&(s.a.get().removeListener("crypto.verification.request",this.onVerificationRequest),s.a.get().removeListener("userTrustStatusChanged",this._onUserTrustStatusChanged)))}async fetchKeyInfo(){const e=await s.a.get().isSecretStored("m.cross_signing.master",!1);null===e||0===Object.keys(e).length?(this.keyId=null,this.keyInfo=null):(this.keyId=Object.keys(e)[0],this.keyInfo=e[this.keyId]),this.phase=u,this.emit("update")}async usePassPhrase(){this.phase=d,this.emit("update");const e=s.a.get();try{const t=await e.getKeyBackupVersion();this.backupInfo=t,this.emit("update"),await new Promise((n,o)=>{try{Object(c.b)(async()=>{await e.checkOwnCrossSigningTrust(),n(),t&&await e.restoreKeyBackupWithSecretStorage(t)}).catch(o)}catch(e){console.error(e),o(e)}}),e.getCrossSigningId()&&(this.phase=h,this.emit("update"))}catch(e){e instanceof c.a||console.log(e),this.phase=u,this.emit("update")}}skip(){this.phase=p,this.emit("update")}skipConfirm(){this.phase=m,this.emit("update")}returnAfterSkip(){this.phase=u,this.emit("update")}done(){this.phase=m,this.emit("update"),s.a.get()._crypto.cancelAndResendAllOutgoingKeyRequests()}async _setActiveVerificationRequest(e){e.otherUserId===s.a.get().getUserId()&&(this.verificationRequest&&this.verificationRequest.off("change",this.onVerificationRequestChange),this.verificationRequest=e,await e.accept(),e.on("change",this.onVerificationRequestChange),this.emit("update"))}}}).call(this,n(5))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(82),r=n.n(o),i=n(158),a=n(253);class s extends i.a{getValueOverride(e,t,n,o){if(!n)return null;if(s.isLogin)return"light";return Object(a.b)()[n]?null:a.a}}r()(s,"isLogin",!1)},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return f}));var o=n(81),r=n.n(o),i=n(83),a=n(92),s=n(157),c=n(134),l=n(148),u=n(730),d=n(104),h=n(89);function p(e){const t=e.split("-");return 5===t.length&&"react"===t[1]&&"js"===t[3]}function m(){d.a.get().installUpdate()}const g=(e,t,n)=>{let o,g=Object(i.a)("What's new?");n?o=()=>{h.a.createTrackedDialog("Display release notes","",l.a,{title:Object(i.a)("What's New"),description:r.a.createElement("pre",null,n),button:Object(i.a)("Update"),onFinished:e=>{e&&d.a.get()&&d.a.get().installUpdate()}})}:p(e)&&p(t)?o=()=>{h.a.createTrackedDialog("Display Changelog","",u.a,{version:e,newVersion:t,onFinished:e=>{e&&d.a.get()&&d.a.get().installUpdate()}})}:(o=m,g=Object(i.a)("Update"));const f=a.a.get().brand;c.a.sharedInstance().addOrReplaceToast({key:"update",title:Object(i.a)("Update %(brand)s",{brand:f}),props:{description:Object(i.a)("New version of %(brand)s is available",{brand:f}),acceptLabel:g,onAccept:o,rejectLabel:Object(i.a)("Dismiss"),onReject:function(){d.a.get().deferUpdate(t)}},component:s.a,priority:20})},f=()=>{c.a.sharedInstance().dismissToast("update")}},function(e,t){e.exports="img/feather-customised/warning-triangle.d050a38.svg"},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return E})),n.d(t,"c",(function(){return y}));var o=n(81),r=n(90),i=n.n(r),a=n(85),s=n(89),c=n(83),l=n(98);let u,d;Object(c.b)("Navigation"),Object(c.b)("Calls"),Object(c.b)("Composer"),Object(c.b)("Room List"),Object(c.b)("Autocomplete"),function(e){e.NAVIGATION="Navigation",e.CALLS="Calls",e.COMPOSER="Composer",e.ROOM_LIST="Room List",e.ROOM="Room",e.AUTOCOMPLETE="Autocomplete"}(u||(u={})),Object(c.b)("Alt"),Object(c.b)("Alt Gr"),Object(c.b)("Shift"),Object(c.b)("Super"),Object(c.b)("Ctrl"),function(e){e.ALT="Alt",e.ALT_GR="Alt Gr",e.SHIFT="Shift",e.SUPER="Super",e.COMMAND="Command",e.CONTROL="Ctrl"}(d||(d={}));const h=l.b?d.COMMAND:d.CONTROL,p={[u.COMPOSER]:[{keybinds:[{modifiers:[h],key:l.a.B}],description:Object(c.b)("Toggle Bold")},{keybinds:[{modifiers:[h],key:l.a.I}],description:Object(c.b)("Toggle Italics")},{keybinds:[{modifiers:[h],key:l.a.GREATER_THAN}],description:Object(c.b)("Toggle Quote")},{keybinds:[{modifiers:[d.SHIFT],key:l.a.ENTER}],description:Object(c.b)("New line")},{keybinds:[{key:l.a.ARROW_UP},{key:l.a.ARROW_DOWN}],description:Object(c.b)("Navigate recent messages to edit")},{keybinds:[{modifiers:[h],key:l.a.HOME},{modifiers:[h],key:l.a.END}],description:Object(c.b)("Jump to start/end of the composer")},{keybinds:[{modifiers:[d.CONTROL,d.ALT],key:l.a.ARROW_UP},{modifiers:[d.CONTROL,d.ALT],key:l.a.ARROW_DOWN}],description:Object(c.b)("Navigate composer history")},{keybinds:[{key:l.a.ESCAPE}],description:Object(c.b)("Cancel replying to a message")}],[u.CALLS]:[{keybinds:[{modifiers:[h],key:l.a.D}],description:Object(c.b)("Toggle microphone mute")},{keybinds:[{modifiers:[h],key:l.a.E}],description:Object(c.b)("Toggle video on/off")}],[u.ROOM]:[{keybinds:[{key:l.a.PAGE_UP},{key:l.a.PAGE_DOWN}],description:Object(c.b)("Scroll up/down in the timeline")},{keybinds:[{key:l.a.ESCAPE}],description:Object(c.b)("Dismiss read marker and jump to bottom")},{keybinds:[{modifiers:[d.SHIFT],key:l.a.PAGE_UP}],description:Object(c.b)("Jump to oldest unread message")},{keybinds:[{modifiers:[h,d.SHIFT],key:l.a.U}],description:Object(c.b)("Upload a file")}],[u.ROOM_LIST]:[{keybinds:[{modifiers:[h],key:l.a.K}],description:Object(c.b)("Jump to room search")},{keybinds:[{key:l.a.ARROW_UP},{key:l.a.ARROW_DOWN}],description:Object(c.b)("Navigate up/down in the room list")},{keybinds:[{key:l.a.ENTER}],description:Object(c.b)("Select room from the room list")},{keybinds:[{key:l.a.ARROW_LEFT}],description:Object(c.b)("Collapse room list section")},{keybinds:[{key:l.a.ARROW_RIGHT}],description:Object(c.b)("Expand room list section")},{keybinds:[{key:l.a.ESCAPE}],description:Object(c.b)("Clear room list filter field")}],[u.NAVIGATION]:[{keybinds:[{modifiers:[d.ALT,d.SHIFT],key:l.a.ARROW_UP},{modifiers:[d.ALT,d.SHIFT],key:l.a.ARROW_DOWN}],description:Object(c.b)("Previous/next unread room or DM")},{keybinds:[{modifiers:[d.ALT],key:l.a.ARROW_UP},{modifiers:[d.ALT],key:l.a.ARROW_DOWN}],description:Object(c.b)("Previous/next room or DM")},{keybinds:[{modifiers:[h],key:l.a.BACKTICK}],description:Object(c.b)("Toggle the top left menu")},{keybinds:[{key:l.a.ESCAPE}],description:Object(c.b)("Close dialog or context menu")},{keybinds:[{key:l.a.ENTER},{key:l.a.SPACE}],description:Object(c.b)("Activate selected button")},{keybinds:[{modifiers:[h],key:l.a.PERIOD}],description:Object(c.b)("Toggle right panel")},{keybinds:[{modifiers:[h],key:l.a.SLASH}],description:Object(c.b)("Toggle this dialog")},{keybinds:[{modifiers:[h,d.ALT],key:l.a.H}],description:Object(c.b)("Go to Home View")}],[u.AUTOCOMPLETE]:[{keybinds:[{key:l.a.ARROW_UP},{key:l.a.ARROW_DOWN}],description:Object(c.b)("Move autocomplete selection up/down")},{keybinds:[{key:l.a.ESCAPE}],description:Object(c.b)("Cancel autocomplete")}]},m=[u.COMPOSER,u.AUTOCOMPLETE,u.ROOM,u.ROOM_LIST,u.NAVIGATION,u.CALLS],g={[d.COMMAND]:"⌘"};l.b&&(g[d.ALT]="⌥");const f={[l.a.PAGE_UP]:Object(c.b)("Page Up"),[l.a.PAGE_DOWN]:Object(c.b)("Page Down"),[l.a.ESCAPE]:Object(c.b)("Esc"),[l.a.ENTER]:Object(c.b)("Enter"),[l.a.SPACE]:Object(c.b)("Space"),[l.a.HOME]:Object(c.b)("Home"),[l.a.END]:Object(c.b)("End")},_={[l.a.ARROW_UP]:"↑",[l.a.ARROW_DOWN]:"↓",[l.a.ARROW_LEFT]:"←",[l.a.ARROW_RIGHT]:"→"},b=({shortcut:e})=>{const t=i()({mx_KeyboardShortcutsDialog_inline:e.keybinds.every(e=>!e.modifiers||0===e.modifiers.length)});return o.createElement("div",{className:t},o.createElement("h5",null,Object(c.a)(e.description)),e.keybinds.map(e=>{let t=e.key;return f[e.key]?t=Object(c.a)(f[e.key]):_[e.key]&&(t=_[e.key]),o.createElement("div",{key:e.key},e.modifiers&&e.modifiers.map(e=>o.createElement(o.Fragment,{key:e},o.createElement("kbd",null,g[e]||Object(c.a)(e)),"+")),o.createElement("kbd",null,t))}))};let v=null;const E=()=>{if(v)return v.close(),void(v=null);const e=m.map(e=>{const t=p[e];return o.createElement("div",{className:"mx_KeyboardShortcutsDialog_category",key:e},o.createElement("h3",null,Object(c.a)(e)),o.createElement("div",null,t.map(e=>o.createElement(b,{key:e.description,shortcut:e}))))}),t=a.getComponent("dialogs.InfoDialog");v=s.a.createTrackedDialog("Keyboard Shortcuts","",t,{className:"mx_KeyboardShortcutsDialog",title:Object(c.a)("Keyboard Shortcuts"),description:e,hasCloseButton:!0,onKeyDown:e=>{!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||e.key!==l.a.SLASH||(e.stopPropagation(),v.close())},onFinished:()=>{v=null}})},y=(e,t)=>{p[e].push(t)}},function(e,t,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,n){"use strict";(function(e){n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return c}));class o{constructor(){this.logs=""}monkeyPatch(e){const t={log:"I",info:"I",warn:"W",error:"E"};Object.keys(t).forEach(n=>{const o=t[n],r=e[n].bind(e);e[n]=(...e)=>{this.log(o,...e),r(...e)}})}log(e,...t){let n=`${(new Date).toISOString()} ${e} ${(t=t.map(e=>{if(e instanceof Error)return e.message+(e.stack?"\n"+e.stack:"");if("object"!=typeof e)return e;try{return JSON.stringify(e)}catch(t){return JSON.stringify(e,(e,t)=>e&&"object"==typeof t?"<object>":t)}})).join(" ")}\n`;n=n.replace(/token=[a-zA-Z0-9-]+/gm,"token=xxxxx"),this.logs+=n}flush(e){if(e)return this.logs;const t=this.logs;return this.logs="",t}}class r{constructor(e,t){this.indexedDB=e,this.logger=t,this.id="instance-"+Math.random()+Date.now(),this.index=0,this.db=null,this.flushPromise=null,this.flushAgainPromise=null}connect(){const e=this.indexedDB.open("logs");return new Promise((t,n)=>{e.onsuccess=e=>{this.db=e.target.result,setInterval(this.flush.bind(this),3e4),t()},e.onerror=e=>{const t="Failed to open log database: "+e.target.error.name;console.error(t),n(new Error(t))},e.onupgradeneeded=e=>{const t=e.target.result,n=t.createObjectStore("logs",{keyPath:["id","index"]});n.createIndex("id","id",{unique:!1}),n.add(this._generateLogEntry(new Date+" ::: Log database was created."));t.createObjectStore("logslastmod",{keyPath:"id"}).add(this._generateLastModifiedTime())}})}flush(){return this.flushPromise?(this.flushAgainPromise||(this.flushAgainPromise=this.flushPromise.then(()=>this.flush()).then(()=>{this.flushAgainPromise=null})),this.flushAgainPromise):(this.flushPromise=new Promise((e,t)=>{if(!this.db)return void t(new Error("No connected database"));const n=this.logger.flush();if(0===n.length)return void e();const o=this.db.transaction(["logs","logslastmod"],"readwrite"),r=o.objectStore("logs");o.oncomplete=t=>{e()},o.onerror=e=>{console.error("Failed to flush logs : ",e),t(new Error("Failed to write logs: "+e.target.errorCode))},r.add(this._generateLogEntry(n));o.objectStore("logslastmod").put(this._generateLastModifiedTime())}).then(()=>{this.flushPromise=null}),this.flushPromise)}async consume(){const e=this.db;function t(t,n){const o=e.transaction("logs","readonly").objectStore("logs");return new Promise((e,r)=>{const i=o.index("id").openCursor(IDBKeyRange.only(t),"prev");let a="";i.onerror=e=>{r(new Error("Query failed: "+e.target.errorCode))},i.onsuccess=t=>{const o=t.target.result;o?(a=o.value.lines+a,a.length>=n?e(a):o.continue()):e(a)}})}const n=await function(e,t,n){const o=e.openCursor(t);return new Promise((e,t)=>{const r=[];o.onerror=e=>{t(new Error("Query failed: "+e.target.errorCode))},o.onsuccess=t=>{const o=t.target.result;o?(r.push(n(o)),o.continue()):e(r)}})}(e.transaction("logslastmod","readonly").objectStore("logslastmod"),void 0,e=>({id:e.value.id,ts:e.value.ts})).then(e=>e.sort((e,t)=>t.ts-e.ts).map(e=>e.id));let o=[];const r=[];let i=0;for(let e=0;e<n.length;e++){const a=await t(n[e],5242880-i);if(r.push({lines:a,id:n[e]}),i+=a.length,i>=5242880){o=n.slice(e+1);break}}return o.length>0&&(console.log("Removing logs: ",o),Promise.all(o.map(t=>function(t){return new Promise((n,o)=>{const r=e.transaction(["logs","logslastmod"],"readwrite"),i=r.objectStore("logs");i.index("id").openKeyCursor(IDBKeyRange.only(t)).onsuccess=e=>{const t=e.target.result;t&&(i.delete(t.primaryKey),t.continue())},r.oncomplete=()=>{n()},r.onerror=e=>{o(new Error(`Failed to delete logs for '${t}' : ${e.target.errorCode}`))};r.objectStore("logslastmod").delete(t)})}(t))).then(()=>{console.log(`Removed ${o.length} old logs.`)},e=>{console.error(e)})),r}_generateLogEntry(e){return{id:this.id,lines:e,index:this.index++}}_generateLastModifiedTime(){return{id:this.id,ts:Date.now()}}}function i(){if(e.mx_rage_initPromise)return e.mx_rage_initPromise;let t;e.mx_rage_logger=new o,e.mx_rage_logger.monkeyPatch(window.console);try{t=window.indexedDB}catch(e){}return t?(e.mx_rage_store=new r(t,e.mx_rage_logger),e.mx_rage_initPromise=e.mx_rage_store.connect(),e.mx_rage_initPromise):(e.mx_rage_initPromise=Promise.resolve(),e.mx_rage_initPromise)}function a(){e.mx_rage_store&&e.mx_rage_store.flush()}async function s(){e.mx_rage_store&&await e.mx_rage_store.consume()}async function c(){if(!e.mx_rage_logger)throw new Error("No console logger, did you forget to call init()?");return e.mx_rage_store?(await e.mx_rage_store.flush(),await e.mx_rage_store.consume()):[{lines:e.mx_rage_logger.flush(!0),id:"-"}]}}).call(this,n(5))},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;s(n(84));var o=s(n(81)),r=s(n(135)),i=s(n(739)),a=(n(740),s(n(494)));function s(e){return e&&e.__esModule?e:{default:e}}t.UNMOUNTED="unmounted";t.EXITED="exited";t.ENTERING="entering";t.ENTERED="entered";t.EXITING="exiting";var c=function(e){var t,n;function s(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r="exited",o.appearStatus="entering"):r="entered":r=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",o.state={status:r},o.nextCallback=null,o}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,s.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var c=s.prototype;return c.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},c.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},c.componentWillUnmount=function(){this.cancelNextCallback()},c.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},c.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},c.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,a=this.props.nodeRef?[o]:[r.default.findDOMNode(this),o],s=a[0],c=a[1],l=this.getTimeouts(),u=o?l.appear:l.enter;!e&&!n||i.default.disabled?this.safeSetState({status:"entered"},(function(){t.props.onEntered(s)})):(this.props.onEnter(s,c),this.safeSetState({status:"entering"},(function(){t.props.onEntering(s,c),t.onTransitionEnd(u,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(s,c)}))}))})))},c.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:r.default.findDOMNode(this);t&&!i.default.disabled?(this.props.onExit(o),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(o)}))},c.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},c.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},c.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},c.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:r.default.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],s=i[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},c.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.default.createElement(a.default.Provider,{value:null},"function"==typeof n?n(e,r):o.default.cloneElement(o.default.Children.only(n),r))},s}(o.default.Component);function l(){}c.contextType=a.default,c.propTypes={},c.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:l,onEntering:l,onEntered:l,onExit:l,onExiting:l,onExited:l},c.UNMOUNTED="unmounted",c.EXITED="exited",c.ENTERING="entering",c.ENTERED="entered",c.EXITING="exiting";var u=c;t.default=u},function(e,t,n){"use strict";var o;t.__esModule=!0,t.default=void 0;var r=((o=n(81))&&o.__esModule?o:{default:o}).default.createContext(null);t.default=r,e.exports=t.default},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return v}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(135),c=n.n(s),l=n(84),u=n.n(l),d=n(105),h=n(1322),p=n.n(h),m=n(87),g=n(97),f=n(86);function _(e){return document.getElementById(e)}class b extends a.a.Component{constructor(){super(),r()(this,"updateChildPosition",Object(d.throttle)((e,t)=>{if(!e||!t)return;const n=t.getBoundingClientRect();Object.assign(e.style,{position:"absolute",top:n.top+"px",left:n.left+"px",width:n.width+"px",height:n.height+"px"})},100,{trailing:!0,leading:!0})),this.collectChildContainer=this.collectChildContainer.bind(this),this.collectChild=this.collectChild.bind(this),this._repositionChild=this._repositionChild.bind(this),this._onAction=this._onAction.bind(this),this.resizeObserver=new p.a(this._repositionChild),window.addEventListener("resize",this._repositionChild),this._dispatcherRef=m.a.register(this._onAction)}static destroyElement(e){const t=_("mx_persistedElement_"+e);t&&t.remove()}static isMounted(e){return Boolean(_("mx_persistedElement_"+e))}collectChildContainer(e){this.childContainer&&this.resizeObserver.unobserve(this.childContainer),this.childContainer=e,e&&this.resizeObserver.observe(e)}collectChild(e){this.child=e,this.updateChild()}componentDidMount(){this.updateChild(),this.renderApp()}componentDidUpdate(){this.updateChild(),this.renderApp()}componentWillUnmount(){this.updateChildVisibility(this.child,!1),this.resizeObserver.disconnect(),window.removeEventListener("resize",this._repositionChild),m.a.unregister(this._dispatcherRef)}_onAction(e){"timeline_resize"===e.action&&this._repositionChild()}_repositionChild(){this.updateChildPosition(this.child,this.childContainer)}updateChild(){this.updateChildPosition(this.child,this.childContainer),this.updateChildVisibility(this.child,!0)}renderApp(){const e=a.a.createElement(g.a.Provider,{value:f.a.get()},a.a.createElement("div",{ref:this.collectChild,style:this.props.style},this.props.children));c.a.render(e,function(e){let t=_(e);return t||(t=document.createElement("div"),t.id=e,document.body.appendChild(t)),t}("mx_persistedElement_"+this.props.persistKey))}updateChildVisibility(e,t){e&&(e.style.display=t?"block":"none")}render(){return a.a.createElement("div",{ref:this.collectChildContainer})}}r()(b,"propTypes",{persistKey:u.a.string.isRequired});const v=e=>"widget_"+e},function(e,t,n){"use strict";var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(81),c=n.n(s),l=n(90),u=n.n(l),d=n(128),h=n(97),p=n(163);t.a=e=>{let{app:t,className:o,width:i=20,height:l=20}=e,m=a()(e,["app","className","width","height"]);const g=Object(s.useContext)(h.a);let f=[n(1324)];return t.type.includes("jitsi")?f=[n(1325)]:t.type.includes("meeting")||t.type.includes("calendar")?f=[n(1326)]:t.type.includes("pad")||t.type.includes("doc")||t.type.includes("calc")?f=[n(1327)]:t.type.includes("clock")&&(f=[n(1328)]),c.a.createElement(p.a,r()({},m,{name:t.id,className:u()("mx_WidgetAvatar",o),url:t.avatar_url?Object(d.a)(g.getHomeserverUrl(),t.avatar_url,20,20,"crop"):void 0,urls:f,width:i,height:l}))}},function(e,t,n){"use strict";var o=n(81),r=n.n(o),i=n(84),a=n.n(i);const s=e=>{const t=["mx_ResizeHandle"];return e.vertical?t.push("mx_ResizeHandle_vertical"):t.push("mx_ResizeHandle_horizontal"),e.reverse&&t.push("mx_ResizeHandle_reverse"),r.a.createElement("div",{className:t.join(" "),"data-id":e.id},r.a.createElement("div",null))};s.propTypes={vertical:a.a.bool,reverse:a.a.bool,id:a.a.string},t.a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(750),r=n(373);class i extends o.a{start(e){this.vertical?e.style.minHeight=null:e.style.minWidth=null}finish(e){const t=e.offsetParent;if(t)if(this.vertical){const n=(e.offsetHeight/t.offsetHeight*100).toFixed(2)+"%";e.style.minHeight=n,e.style.height=n}else{const n=(e.offsetWidth/t.offsetWidth*100).toFixed(2)+"%";e.style.minWidth=n,e.style.width=n}}}class a extends r.a{static createSizer(e,t,n){return new i(e,t,n)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(82),r=n.n(o),i=n(105);class a{constructor(e,t,n){if(this.container=e,this.distributorCtor=t,this.config=n,r()(this,"classNames",void 0),r()(this,"onMouseDown",e=>{const t=e.target&&e.target.closest("."+this.classNames.handle);if(!t||t.parentElement!==this.container)return;e.preventDefault(),this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),this.config.onResizeStart&&this.config.onResizeStart();const{sizer:n,distributor:o}=this.createSizerAndDistributor(t);o.start();const r=e=>{const t=n.offsetFromEvent(e);o.resizeFromContainerOffset(t)},i=document.body,a=()=>{this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),o.finish(),this.config.onResizeStop&&this.config.onResizeStop(),i.removeEventListener("mouseup",a,!1),document.removeEventListener("mouseleave",a,!1),i.removeEventListener("mousemove",r,!1)};i.addEventListener("mouseup",a,!1),document.addEventListener("mouseleave",a,!1),i.addEventListener("mousemove",r,!1)}),r()(this,"onResize",Object(i.throttle)(()=>{const e=this.getDistributors();e.forEach(e=>e.start()),e.forEach(e=>e.finish())},100,{trailing:!0,leading:!0})),r()(this,"getDistributors",()=>this.getResizeHandles().map(e=>{const{distributor:t}=this.createSizerAndDistributor(e);return t})),!e)throw new Error("Resizer requires a non-null `container` arg");this.classNames={handle:"resizer-handle",reverse:"resizer-reverse",vertical:"resizer-vertical",resizing:"resizer-resizing"}}setClassNames(e){this.classNames=e}attach(){this.container.addEventListener("mousedown",this.onMouseDown,!1),window.addEventListener("resize",this.onResize)}detach(){this.container.removeEventListener("mousedown",this.onMouseDown,!1),window.removeEventListener("resize",this.onResize)}forHandleAt(e){const t=this.getResizeHandles()[e];if(t){const{distributor:e}=this.createSizerAndDistributor(t);return e}}forHandleWithId(e){const t=this.getResizeHandles().find(t=>t.getAttribute("data-id")===e);if(t){const{distributor:e}=this.createSizerAndDistributor(t);return e}}isReverseResizeHandle(e){return e&&e.classList.contains(this.classNames.reverse)}isResizeHandle(e){return e&&e.classList.contains(this.classNames.handle)}createSizerAndDistributor(e){const t=e.classList.contains(this.classNames.vertical),n=this.isReverseResizeHandle(e),o=this.distributorCtor,r=o.createSizer(this.container,t,n),i=o.createItem(e,this,r);return{sizer:r,distributor:new o(i)}}getResizeHandles(){return this.container.children?Array.from(this.container.children).filter(e=>this.isResizeHandle(e)):[]}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var o=n(94),r=n.n(o),i=n(82),a=n.n(i),s=n(81),c=n.n(s),l=n(87),u=n(147),d=n(86),h=n(83),p=n(751),m=n(196),g=n(119),f=n(90),_=n.n(f),b=n(91),v=n(98),E=n(100),y=n(752),S=n(223);function T(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement}function w(){const e=document.exitFullscreen||document.webkitExitFullscreen||document.msExitFullscreen;e&&e.call(document)}class C extends c.a.Component{constructor(e){super(e),a()(this,"dispatcherRef",void 0),a()(this,"contentRef",Object(s.createRef)()),a()(this,"controlsHideTimer",null),a()(this,"contextMenuButton",Object(s.createRef)()),a()(this,"onAction",e=>{switch(e.action){case"video_fullscreen":if(!this.contentRef.current)return;e.fullscreen?function(e){const t=e.requestFullscreen||e.webkitRequestFullScreen||e.msRequestFullscreen;t&&t.call(e)}(this.contentRef.current):T()&&w()}}),a()(this,"onCallState",e=>{this.setState({callState:e})}),a()(this,"onCallLocalHoldUnhold",()=>{this.setState({isLocalOnHold:this.props.call.isLocalOnHold()})}),a()(this,"onCallRemoteHoldUnhold",()=>{this.setState({isRemoteOnHold:this.props.call.isRemoteOnHold(),isLocalOnHold:this.props.call.isLocalOnHold()})}),a()(this,"onFullscreenClick",()=>{l.a.dispatch({action:"video_fullscreen",fullscreen:!0})}),a()(this,"onExpandClick",()=>{l.a.dispatch({action:"view_room",room_id:this.props.call.roomId})}),a()(this,"onControlsHideTimer",()=>{this.controlsHideTimer=null,this.setState({controlsVisible:!1})}),a()(this,"onMouseMove",()=>{this.showControls()}),a()(this,"onMicMuteClick",()=>{const e=!this.state.micMuted;this.props.call.setMicrophoneMuted(e),this.setState({micMuted:e})}),a()(this,"onVidMuteClick",()=>{const e=!this.state.vidMuted;this.props.call.setLocalVideoMuted(e),this.setState({vidMuted:e})}),a()(this,"onMoreClick",()=>{this.controlsHideTimer&&(clearTimeout(this.controlsHideTimer),this.controlsHideTimer=null),this.setState({showMoreMenu:!0,controlsVisible:!0})}),a()(this,"closeContextMenu",()=>{this.setState({showMoreMenu:!1}),this.controlsHideTimer=window.setTimeout(this.onControlsHideTimer,1e3)}),a()(this,"onNativeKeyDown",e=>{let t=!1;const n=Object(v.d)(e);switch(e.key){case v.a.D:n&&(this.onMicMuteClick(),this.showControls(),t=!0);break;case v.a.E:n&&(this.onVidMuteClick(),this.showControls(),t=!0)}t&&(e.stopPropagation(),e.preventDefault())}),a()(this,"onRoomAvatarClick",()=>{l.a.dispatch({action:"view_room",room_id:this.props.call.roomId})}),a()(this,"onSecondaryRoomAvatarClick",()=>{l.a.dispatch({action:"view_room",room_id:this.props.secondaryCall.roomId})}),a()(this,"onCallResumeClick",()=>{u.b.sharedInstance().setActiveCallRoomId(this.props.call.roomId)}),a()(this,"onSecondaryCallResumeClick",()=>{u.b.sharedInstance().setActiveCallRoomId(this.props.secondaryCall.roomId)}),this.state={isLocalOnHold:this.props.call.isLocalOnHold(),isRemoteOnHold:this.props.call.isRemoteOnHold(),micMuted:this.props.call.isMicrophoneMuted(),vidMuted:this.props.call.isLocalVideoMuted(),callState:this.props.call.state,controlsVisible:!0,showMoreMenu:!1},this.updateCallListeners(null,this.props.call)}componentDidMount(){this.dispatcherRef=l.a.register(this.onAction),document.addEventListener("keydown",this.onNativeKeyDown)}componentWillUnmount(){T()&&w(),document.removeEventListener("keydown",this.onNativeKeyDown),this.updateCallListeners(this.props.call,null),l.a.unregister(this.dispatcherRef)}componentDidUpdate(e){this.props.call!==e.call&&(this.setState({isLocalOnHold:this.props.call.isLocalOnHold(),isRemoteOnHold:this.props.call.isRemoteOnHold(),micMuted:this.props.call.isMicrophoneMuted(),vidMuted:this.props.call.isLocalVideoMuted(),callState:this.props.call.state}),this.updateCallListeners(null,this.props.call))}updateCallListeners(e,t){e!==t&&(e&&(e.removeListener(g.c.State,this.onCallState),e.removeListener(g.c.LocalHoldUnhold,this.onCallLocalHoldUnhold),e.removeListener(g.c.RemoteHoldUnhold,this.onCallRemoteHoldUnhold)),t&&(t.on(g.c.State,this.onCallState),t.on(g.c.LocalHoldUnhold,this.onCallLocalHoldUnhold),t.on(g.c.RemoteHoldUnhold,this.onCallRemoteHoldUnhold)))}showControls(){this.state.showMoreMenu||(this.state.controlsVisible||this.setState({controlsVisible:!0}),null!==this.controlsHideTimer&&clearTimeout(this.controlsHideTimer),this.controlsHideTimer=window.setTimeout(this.onControlsHideTimer,1e3))}render(){const e=d.a.get(),t=e.getRoom(this.props.call.roomId),n=this.props.secondaryCall?e.getRoom(this.props.secondaryCall.roomId):null;let o;this.state.showMoreMenu&&(o=c.a.createElement(y.a,r()({},Object(E.k)(this.contextMenuButton.current.getBoundingClientRect(),E.a.None,8),{onFinished:this.closeContextMenu,call:this.props.call})));const i=_()({mx_CallView_callControls_button:!0,mx_CallView_callControls_button_micOn:!this.state.micMuted,mx_CallView_callControls_button_micOff:this.state.micMuted}),a=_()({mx_CallView_callControls_button:!0,mx_CallView_callControls_button_vidOn:!this.state.vidMuted,mx_CallView_callControls_button_vidOff:this.state.vidMuted}),s=_()({mx_CallView_callControls_button:!0,mx_CallView_callControls_button_micOn:this.state.micMuted,mx_CallView_callControls_button_micOff:!this.state.micMuted,mx_CallView_callControls_button_invisible:!0}),f=_()({mx_CallView_callControls_button:!0,mx_CallView_callControls_button_vidOn:this.state.micMuted,mx_CallView_callControls_button_vidOff:!this.state.micMuted,mx_CallView_callControls_button_invisible:!0}),v=_()({mx_CallView_callControls:!0,mx_CallView_callControls_hidden:!this.state.controlsVisible}),w=this.props.call.type===g.f.Video?c.a.createElement(b.a,{className:a,onClick:this.onVidMuteClick}):null,C=this.state.callState===g.e.Connected?c.a.createElement(E.c,{className:"mx_CallView_callControls_button mx_CallView_callControls_button_more",onClick:this.onMoreClick,inputRef:this.contextMenuButton,isExpanded:this.state.showMoreMenu}):c.a.createElement("div",{className:"mx_CallView_callControls_button mx_CallView_callControls_button_more_hidden"}),x=c.a.createElement("div",{className:v},c.a.createElement("div",{className:"mx_CallView_callControls_button mx_CallView_callControls_nothing"}),c.a.createElement(b.a,{className:i,onClick:this.onMicMuteClick}),c.a.createElement(b.a,{className:"mx_CallView_callControls_button mx_CallView_callControls_button_hangup",onClick:()=>{l.a.dispatch({action:"hangup",room_id:this.props.call.roomId})}}),w,c.a.createElement("div",{className:s}),c.a.createElement("div",{className:f}),C);let O;const k=this.state.isLocalOnHold||this.state.isRemoteOnHold;let R=null;if(this.state.isRemoteOnHold){const e=u.b.sharedInstance().hasAnyUnheldCall()?Object(h.b)("You held the call <a>Switch</a>"):Object(h.b)("You held the call <a>Resume</a>");R=Object(h.a)(e,{},{a:e=>c.a.createElement(b.a,{kind:"link",onClick:this.onCallResumeClick},e)})}else this.state.isLocalOnHold&&(R=Object(h.a)("%(peerName)s held the call",{peerName:this.props.call.getOpponentMember().name}));if(this.props.call.type===g.f.Video){let e=null,t=null;const n={},o=_()({mx_CallView_video:!0,mx_CallView_video_hold:k});if(k){e=c.a.createElement("div",{className:"mx_CallView_video_holdContent"},R);const o=Object(S.a)(this.props.call.getOpponentMember(),1024,1024,"crop");n.backgroundImage="url("+o+")",t=c.a.createElement("div",{className:"mx_CallView_video_holdBackground",style:n})}const r=T()?null:this.props.maxVideoHeight-64;O=c.a.createElement("div",{className:o,ref:this.contentRef,onMouseMove:this.onMouseMove,style:{maxHeight:r}},t,c.a.createElement(p.b,{type:p.a.Remote,call:this.props.call,onResize:this.props.onResize,maxHeight:r}),c.a.createElement(p.b,{type:p.a.Local,call:this.props.call}),e,x)}else{const e=this.props.pipMode?76:160,n=_()({mx_CallView_voice:!0,mx_CallView_voice_hold:k});O=c.a.createElement("div",{className:n,onMouseMove:this.onMouseMove},c.a.createElement("div",{className:"mx_CallView_voice_avatarsContainer"},c.a.createElement("div",{className:"mx_CallView_voice_avatarContainer",style:{width:e,height:e}},c.a.createElement(m.a,{room:t,height:e,width:e}))),c.a.createElement("div",{className:"mx_CallView_voice_holdText"},R),x)}const A=this.props.call.type===g.f.Video?Object(h.a)("Video Call"):Object(h.a)("Voice Call");let I,D,N;this.props.call.type!==g.f.Video||this.props.pipMode||(D=c.a.createElement("div",{className:"mx_CallView_header_button mx_CallView_header_button_fullscreen",onClick:this.onFullscreenClick,title:Object(h.a)("Fill Screen")})),this.props.pipMode&&(N=c.a.createElement("div",{className:"mx_CallView_header_button mx_CallView_header_button_expand",onClick:this.onExpandClick,title:Object(h.a)("Return to call")}));const F=c.a.createElement("div",{className:"mx_CallView_header_controls"},D,N);let M;if(this.props.pipMode){let e;this.props.secondaryCall&&(e=c.a.createElement("span",{className:"mx_CallView_header_secondaryCallInfo"},c.a.createElement(b.a,{element:"span",onClick:this.onSecondaryRoomAvatarClick},c.a.createElement(m.a,{room:n,height:16,width:16}),c.a.createElement("span",{className:"mx_CallView_secondaryCall_roomName"},Object(h.a)("%(name)s on hold",{name:n.name}))))),M=c.a.createElement("div",{className:"mx_CallView_header"},c.a.createElement(b.a,{onClick:this.onRoomAvatarClick},c.a.createElement(m.a,{room:t,height:32,width:32})),c.a.createElement("div",{className:"mx_CallView_header_callInfo"},c.a.createElement("div",{className:"mx_CallView_header_roomName"},t.name),c.a.createElement("div",{className:"mx_CallView_header_callTypeSmall"},A,e)),F),I="mx_CallView_pip"}else M=c.a.createElement("div",{className:"mx_CallView_header"},c.a.createElement("div",{className:"mx_CallView_header_phoneIcon"}),c.a.createElement("span",{className:"mx_CallView_header_callType"},A),F),I="mx_CallView_large";return c.a.createElement("div",{className:"mx_CallView "+I},M,O,o)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(366);class c extends a.a.Component{constructor(...e){super(...e),r()(this,"_onResizeStart",()=>{this.props.resizeNotifier.startResizing()}),r()(this,"_onResize",()=>{this.props.resizeNotifier.notifyRightHandleResized()}),r()(this,"_onResizeStop",(e,t,n,o)=>{this.props.resizeNotifier.stopResizing(),window.localStorage.setItem("mx_rhs_size",this._loadSidePanelSize().width+o.width)})}_loadSidePanelSize(){let e=parseInt(window.localStorage.getItem("mx_rhs_size"),10);return isNaN(e)&&(e=350),{height:"100%",width:e}}render(){const e=a.a.Children.only(this.props.children),t=this.props.panel;let n;return!this.props.collapsedRhs&&t&&(n=a.a.createElement(s.Resizable,{defaultSize:this._loadSidePanelSize(),minWidth:264,maxWidth:"50%",enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:this._onResizeStart,onResize:this._onResize,onResizeStop:this._onResizeStop,className:"mx_RightPanel_ResizeWrapper",handleClasses:{left:"mx_RightPanel_ResizeHandle"}},t)),a.a.createElement("div",{className:"mx_MainSplit"},e,n)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(313),u=n(85),d=n(87),h=n(256),p=n(374),m=n(109),g=n(118),f=n(308),_=n(97),b=n(93),v=n(521),E=n(760);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class T extends a.a.Component{static get propTypes(){return{room:c.a.instanceOf(l.a),groupId:c.a.string,user:c.a.object}}constructor(e,t){super(e,t),r()(this,"onCloseUserInfo",()=>{if(this.props.user)d.a.dispatch({action:"view_home_page"});else if(this.state.phase===g.b.EncryptionPanel&&this.state.verificationRequest&&this.state.verificationRequest.pending)this.state.verificationRequest.cancel();else{const e=this.state.phase===g.b.EncryptionPanel;d.a.dispatch({action:b.a.ViewUser,member:e?this.state.member:null})}}),r()(this,"onClose",()=>{d.a.dispatch({action:b.a.ToggleRightPanel,type:this.props.groupId?"group":"room"})}),this.state=S(S({},f.a.getSharedInstance().roomPanelPhaseParams),{},{phase:this._getPhaseFromProps(),isUserPrivilegedInGroup:null,member:this._getUserForPanel()}),this.onAction=this.onAction.bind(this),this.onRoomStateMember=this.onRoomStateMember.bind(this),this.onGroupStoreUpdated=this.onGroupStoreUpdated.bind(this),this.onInviteToGroupButtonClick=this.onInviteToGroupButtonClick.bind(this),this.onAddRoomToGroupButtonClick=this.onAddRoomToGroupButtonClick.bind(this),this._delayedUpdate=new h.a(()=>{this.forceUpdate()},500)}_getUserForPanel(){if(this.state&&this.state.member)return this.state.member;const e=f.a.getSharedInstance().roomPanelPhaseParams;return this.props.user||e.member}_getPhaseFromProps(){const e=f.a.getSharedInstance(),t=this._getUserForPanel();return this.props.groupId?g.a.includes(e.groupPanelPhase)?e.groupPanelPhase:(d.a.dispatch({action:b.a.SetRightPanelPhase,phase:g.b.GroupMemberList}),g.b.GroupMemberList):t?e.roomPanelPhaseParams.member&&t.userId===e.roomPanelPhaseParams.member.userId&&e.roomPanelPhaseParams.verificationRequest?e.roomPanelPhase:g.b.RoomMemberInfo:e.roomPanelPhase}componentDidMount(){this.dispatcherRef=d.a.register(this.onAction);this.context.on("RoomState.members",this.onRoomStateMember),this._initGroupStore(this.props.groupId)}componentWillUnmount(){d.a.unregister(this.dispatcherRef),this.context&&this.context.removeListener("RoomState.members",this.onRoomStateMember),this._unregisterGroupStore(this.props.groupId)}UNSAFE_componentWillReceiveProps(e){e.groupId!==this.props.groupId&&(this._unregisterGroupStore(this.props.groupId),this._initGroupStore(e.groupId))}_initGroupStore(e){e&&m.a.registerListener(e,this.onGroupStoreUpdated)}_unregisterGroupStore(){m.a.unregisterListener(this.onGroupStoreUpdated)}onGroupStoreUpdated(){this.setState({isUserPrivilegedInGroup:m.a.isUserPrivileged(this.props.groupId)})}onInviteToGroupButtonClick(){Object(p.b)(this.props.groupId).then(()=>{this.setState({phase:g.b.GroupMemberList})})}onAddRoomToGroupButtonClick(){Object(p.a)(this.props.groupId).then(()=>{this.forceUpdate()})}onRoomStateMember(e,t,n){this.props.room&&n.roomId===this.props.room.roomId&&(this.state.phase===g.b.RoomMemberList&&n.roomId===this.props.room.roomId||this.state.phase===g.b.RoomMemberInfo&&n.roomId===this.props.room.roomId&&n.userId===this.state.member.userId)&&this._delayedUpdate()}onAction(e){e.action===b.a.AfterRightPanelPhaseChange&&this.setState({phase:e.phase,groupRoomId:e.groupRoomId,groupId:e.groupId,member:e.member,event:e.event,verificationRequest:e.verificationRequest,verificationRequestPromise:e.verificationRequestPromise,widgetId:e.widgetId})}render(){const e=u.getComponent("rooms.MemberList"),t=u.getComponent("right_panel.UserInfo"),n=u.getComponent("rooms.ThirdPartyMemberInfo"),o=u.getComponent("structures.NotificationPanel"),r=u.getComponent("structures.FilePanel"),i=u.getComponent("groups.GroupMemberList"),s=u.getComponent("groups.GroupRoomList"),c=u.getComponent("groups.GroupRoomInfo");let l=a.a.createElement("div",null);const d=this.props.room?this.props.room.roomId:void 0;switch(this.state.phase){case g.b.RoomMemberList:d&&(l=a.a.createElement(e,{roomId:d,key:d,onClose:this.onClose}));break;case g.b.GroupMemberList:this.props.groupId&&(l=a.a.createElement(i,{groupId:this.props.groupId,key:this.props.groupId}));break;case g.b.GroupRoomList:l=a.a.createElement(s,{groupId:this.props.groupId,key:this.props.groupId});break;case g.b.RoomMemberInfo:case g.b.EncryptionPanel:l=a.a.createElement(t,{user:this.state.member,room:this.props.room,key:d||this.state.member.userId,onClose:this.onCloseUserInfo,phase:this.state.phase,verificationRequest:this.state.verificationRequest,verificationRequestPromise:this.state.verificationRequestPromise});break;case g.b.Room3pidMemberInfo:l=a.a.createElement(n,{event:this.state.event,key:d});break;case g.b.GroupMemberInfo:l=a.a.createElement(t,{user:this.state.member,groupId:this.props.groupId,key:this.state.member.userId,onClose:this.onCloseUserInfo});break;case g.b.GroupRoomInfo:l=a.a.createElement(c,{groupRoomId:this.state.groupRoomId,groupId:this.props.groupId,key:this.state.groupRoomId});break;case g.b.NotificationPanel:l=a.a.createElement(o,{onClose:this.onClose});break;case g.b.FilePanel:l=a.a.createElement(r,{roomId:d,resizeNotifier:this.props.resizeNotifier,onClose:this.onClose});break;case g.b.RoomSummary:l=a.a.createElement(v.a,{room:this.props.room,onClose:this.onClose});break;case g.b.Widget:l=a.a.createElement(E.a,{room:this.props.room,widgetId:this.state.widgetId,onClose:this.onClose})}return a.a.createElement("aside",{className:"mx_RightPanel dark-panel",id:"mx_RightPanel"},l)}}r()(T,"contextType",_.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var o=n(82),r=n.n(o),i=n(81),a=n(84),s=n(313),c=n(200),l=n(315),u=n(175),d=n(129),h=n(85),p=n(83),m=n(504),g=n(108),f=n(100),_=n(375),b=n(138),v=n(113),E=n(88),y=n(101);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const w=[{name:"Facebook",img:n(1357),url:e=>"https://www.facebook.com/sharer/sharer.php?u="+e},{name:"Twitter",img:n(1358),url:e=>"https://twitter.com/home?status="+e},{name:"LinkedIn",img:n(1359),url:e=>"https://www.linkedin.com/shareArticle?mini=true&url="+e},{name:"Reddit",img:n(1360),url:e=>"http://www.reddit.com/submit?url="+e},{name:"email",img:n(1361),url:e=>"mailto:?body="+e}];class C extends i.PureComponent{constructor(e){super(e),r()(this,"closeCopiedTooltip",void 0),this.onCopyClick=this.onCopyClick.bind(this),this.onLinkSpecificEventCheckboxClick=this.onLinkSpecificEventCheckboxClick.bind(this);let t=null;e.target instanceof s.a&&(t=new g.a(e.target),t.load()),this.state={linkSpecificEvent:this.props.target instanceof d.b,permalinkCreator:t}}static onLinkClick(e){e.preventDefault(),Object(_.c)(e.target)}async onCopyClick(e){e.preventDefault();const t=e.target,n=await Object(_.b)(this.getUrl()),o=t.getBoundingClientRect(),r=h.getComponent("context_menus.GenericTextContextMenu"),{close:i}=f.l(r,T(T({},Object(f.n)(o,2)),{},{message:n?Object(p.a)("Copied!"):Object(p.a)("Failed to copy")}));this.closeCopiedTooltip=t.onmouseleave=i}onLinkSpecificEventCheckboxClick(){this.setState({linkSpecificEvent:!this.state.linkSpecificEvent})}componentWillUnmount(){this.closeCopiedTooltip&&this.closeCopiedTooltip()}getUrl(){let e;if(this.props.target instanceof s.a)if(this.state.linkSpecificEvent){const t=this.props.target.getLiveTimeline().getEvents();e=this.state.permalinkCreator.forEvent(t[t.length-1].getId())}else e=this.state.permalinkCreator.forShareableRoom();else this.props.target instanceof c.a||this.props.target instanceof u.a?e=Object(g.g)(this.props.target.userId):this.props.target instanceof l.a?e=Object(g.e)(this.props.target.groupId):this.props.target instanceof d.b&&(e=this.state.linkSpecificEvent?this.props.permalinkCreator.forEvent(this.props.target.getId()):this.props.permalinkCreator.forRoom());return e}render(){let e,t;if(this.props.target instanceof s.a){e=Object(p.a)("Share Room");this.props.target.getLiveTimeline().getEvents().length>0&&(t=i.createElement("div",null,i.createElement(b.a,{checked:this.state.linkSpecificEvent,onChange:this.onLinkSpecificEventCheckboxClick},Object(p.a)("Link to most recent message"))))}else this.props.target instanceof c.a||this.props.target instanceof u.a?e=Object(p.a)("Share User"):this.props.target instanceof l.a?e=Object(p.a)("Share Community"):this.props.target instanceof d.b&&(e=Object(p.a)("Share Room Message"),t=i.createElement("div",null,i.createElement(b.a,{checked:this.state.linkSpecificEvent,onClick:this.onLinkSpecificEventCheckboxClick},Object(p.a)("Link to selected message"))));const n=this.getUrl(),o=encodeURIComponent(n),r=E.a.getValue(y.a.ShareQRCode),a=E.a.getValue(y.a.ShareSocial);let g;(r||a)&&(g=i.createElement(i.Fragment,null,i.createElement("hr",null),i.createElement("div",{className:"mx_ShareDialog_split"},r&&i.createElement("div",{className:"mx_ShareDialog_qrcode_container"},i.createElement(m.a,{data:n,width:256})),a&&i.createElement("div",{className:"mx_ShareDialog_social_container"},w.map(e=>i.createElement("a",{rel:"noreferrer noopener",target:"_blank",key:e.name,title:e.name,href:e.url(o),className:"mx_ShareDialog_social_icon"},i.createElement("img",{src:e.img,alt:e.name,height:64,width:64})))))));const f=h.getComponent("views.dialogs.BaseDialog");return i.createElement(f,{title:e,className:"mx_ShareDialog",contentId:"mx_Dialog_content",onFinished:this.props.onFinished},i.createElement("div",{className:"mx_ShareDialog_content"},i.createElement("div",{className:"mx_ShareDialog_matrixto"},i.createElement("a",{href:n,onClick:C.onLinkClick,className:"mx_ShareDialog_matrixto_link"},n),i.createElement(v.a,{title:Object(p.a)("Copy"),onClick:this.onCopyClick,className:"mx_ShareDialog_matrixto_copy"})),t,g))}}r()(C,"propTypes",{onFinished:a.func.isRequired,target:a.oneOfType([a.instanceOf(s.a),a.instanceOf(c.a),a.instanceOf(l.a),a.instanceOf(u.a),a.instanceOf(d.b)]).isRequired})},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(99),a=n.n(i),s=n(81),c=n(1336),l=n(90),u=n.n(l),d=n(83),h=n(112);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const g={errorCorrectionLevel:"L"};t.a=e=>{let{data:t,className:n}=e,o=a()(e,["data","className"]);const[r,i]=s.useState(null);return s.useEffect(()=>{let e=!1;return Object(c.toDataURL)(t,m(m({},g),o)).then(t=>{e||i(t)}),()=>{e=!0}},[JSON.stringify(t),o]),s.createElement("div",{className:u()("mx_QRCode",n)},r?s.createElement("img",{src:r,className:"mx_VerificationQRCode",alt:Object(d.a)("QR Code")}):s.createElement(h.a,null))}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var o=n(123);let r;async function i(e,t){const n=(await t.getEncryptionTargetMembers()).map(({userId:e})=>e),i=!!o.a.shared().getUserIdForRoomId(t.roomId),a=[],s=[];n.filter(t=>t!==e.getUserId()).forEach(t=>{(e.checkUserTrust(t).isCrossSigningVerified()?a:s).push(t)});for(const t of s)if(e.checkUserTrust(t).wasCrossSigningVerified())return r.Warning;const c=a.length>0&&!i&&2!==n.length||1===n.length?[...a,e.getUserId()]:a;for(const t of c){if(e.getStoredDevicesForUser(t).some(({deviceId:n})=>!e.checkDeviceTrust(t,n).isVerified()))return r.Warning}return 0===s.length?r.Verified:r.Normal}!function(e){e.Warning="warning",e.Verified="verified",e.Normal="normal"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var o=n(213),r=n(83),i=n(92),a=n(81),s=n.n(a);let c;function l({isRoomEncrypted:e,kind:t}){if(!e)return null;if(o.a.get())return null;const{desktopBuilds:n,brand:a}=i.a.get();let l=null,u=null;if(n.available)switch(u=s.a.createElement("img",{src:n.logo}),t){case c.Files:l=Object(r.a)("Use the <a>Desktop app</a> to see all encrypted files",{},{a:e=>s.a.createElement("a",{href:n.url,target:"_blank",rel:"noreferrer noopener"},e)});break;case c.Search:l=Object(r.a)("Use the <a>Desktop app</a> to search encrypted messages",{},{a:e=>s.a.createElement("a",{href:n.url,target:"_blank",rel:"noreferrer noopener"},e)})}else switch(t){case c.Files:l=Object(r.a)("This version of %(brand)s does not support viewing some encrypted files",{brand:a});break;case c.Search:l=Object(r.a)("This version of %(brand)s does not support searching encrypted messages",{brand:a})}return l?s.a.createElement("div",{className:"mx_DesktopBuildsNotice"},u,s.a.createElement("span",null,l)):(console.warn("Unknown desktop builds warning kind: ",t),null)}!function(e){e[e.Files=0]="Files",e[e.Search=1]="Search"}(c||(c={}))},function(e,t,n){"use strict";var o=n(81),r=n.n(o),i=n(83),a=n(97),s=n(126),c=n(88);const l=r.a.forwardRef(({mxEvent:e},t)=>{const n=Object(o.useContext)(a.a);let l=Object(i.a)("Message deleted");const u=e.getUnsigned(),d=u&&u.redacted_because&&u.redacted_because.sender;if(d&&d!==e.getSender()){const t=n.getRoom(e.getRoomId()),o=t&&t.getMember(d);l=Object(i.a)("Message deleted by %(name)s",{name:o?o.name:d})}const h=c.a.getValue("showTwelveHourTimestamps"),p=Object(s.b)(new Date(u.redacted_because.origin_server_ts),h),m=Object(i.a)("Message deleted on %(date)s",{date:p});return r.a.createElement("span",{className:"mx_RedactedBody",ref:t,title:m},l)});t.a=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(81),r=n.n(o),i=n(90),a=n.n(i),s=n(110),c=n(113);class l extends r.a.Component{constructor(e){super(e),this.onClick=this.onClick.bind(this)}onClick(){s.a.trackEvent(...this.props.analytics),this.props.onClick()}render(){const e=a()({mx_RightPanel_headerButton:!0,mx_RightPanel_headerButton_highlight:this.props.isHighlighted,["mx_RightPanel_"+this.props.name]:!0});return r.a.createElement(c.a,{"aria-selected":this.props.isHighlighted,role:"tab",title:this.props.title,className:e,onClick:this.onClick})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(87),c=n(308),l=n(93);let u;!function(e){e.Room="room",e.Group="group"}(u||(u={}));class d extends a.a.Component{constructor(e,t){super(e),r()(this,"storeToken",void 0),r()(this,"dispatcherRef",void 0);const n=c.a.getSharedInstance();this.state={headerKind:t,phase:t===u.Room?n.visibleRoomPanelPhase:n.visibleGroupPanelPhase}}componentDidMount(){this.storeToken=c.a.getSharedInstance().addListener(this.onRightPanelUpdate.bind(this)),this.dispatcherRef=s.a.register(this.onAction.bind(this))}componentWillUnmount(){this.storeToken&&this.storeToken.remove(),this.dispatcherRef&&s.a.unregister(this.dispatcherRef)}setPhase(e,t){s.a.dispatch({action:l.a.SetRightPanelPhase,phase:e,refireParams:t})}isPhase(e){return Array.isArray(e)?e.includes(this.state.phase):e===this.state.phase}onRightPanelUpdate(){const e=c.a.getSharedInstance();this.state.headerKind===u.Room?this.setState({phase:e.visibleRoomPanelPhase}):this.state.headerKind===u.Group&&this.setState({phase:e.visibleGroupPanelPhase})}render(){return a.a.createElement("div",{className:"mx_HeaderButtons"},this.renderButtons())}}},function(e,t,n){"use strict";const o=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];t.REPLACEMENT_CHARACTER="<22>",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},t.isSurrogate=function(e){return e>=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||o.indexOf(e)>-1}},function(e,t,n){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},function(e,t,n){"use strict";const o=n(172);e.exports=class extends o{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},function(e,t,n){"use strict";function o(e){switch(e._type){case"document":case"block_quote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"link":case"image":case"custom_inline":case"custom_block":return!0;default:return!1}}var r=function(e,t){this.current=e,this.entering=!0===t},i=function(){var e=this.current,t=this.entering;if(null===e)return null;var n=o(e);return t&&n?e._firstChild?(this.current=e._firstChild,this.entering=!0):this.entering=!1:e===this.root?this.current=null:null===e._next?(this.current=e._parent,this.entering=!1):(this.current=e._next,this.entering=!0),{entering:t,node:e}},a=function(e){return{current:e,root:e,entering:!0,next:i,resumeAt:r}},s=function(e,t){this._type=e,this._parent=null,this._firstChild=null,this._lastChild=null,this._prev=null,this._next=null,this._sourcepos=t,this._lastLineBlank=!1,this._lastLineChecked=!1,this._open=!0,this._string_content=null,this._literal=null,this._listData={},this._info=null,this._destination=null,this._title=null,this._isFenced=!1,this._fenceChar=null,this._fenceLength=0,this._fenceOffset=null,this._level=null,this._onEnter=null,this._onExit=null},c=s.prototype;Object.defineProperty(c,"isContainer",{get:function(){return o(this)}}),Object.defineProperty(c,"type",{get:function(){return this._type}}),Object.defineProperty(c,"firstChild",{get:function(){return this._firstChild}}),Object.defineProperty(c,"lastChild",{get:function(){return this._lastChild}}),Object.defineProperty(c,"next",{get:function(){return this._next}}),Object.defineProperty(c,"prev",{get:function(){return this._prev}}),Object.defineProperty(c,"parent",{get:function(){return this._parent}}),Object.defineProperty(c,"sourcepos",{get:function(){return this._sourcepos}}),Object.defineProperty(c,"literal",{get:function(){return this._literal},set:function(e){this._literal=e}}),Object.defineProperty(c,"destination",{get:function(){return this._destination},set:function(e){this._destination=e}}),Object.defineProperty(c,"title",{get:function(){return this._title},set:function(e){this._title=e}}),Object.defineProperty(c,"info",{get:function(){return this._info},set:function(e){this._info=e}}),Object.defineProperty(c,"level",{get:function(){return this._level},set:function(e){this._level=e}}),Object.defineProperty(c,"listType",{get:function(){return this._listData.type},set:function(e){this._listData.type=e}}),Object.defineProperty(c,"listTight",{get:function(){return this._listData.tight},set:function(e){this._listData.tight=e}}),Object.defineProperty(c,"listStart",{get:function(){return this._listData.start},set:function(e){this._listData.start=e}}),Object.defineProperty(c,"listDelimiter",{get:function(){return this._listData.delimiter},set:function(e){this._listData.delimiter=e}}),Object.defineProperty(c,"onEnter",{get:function(){return this._onEnter},set:function(e){this._onEnter=e}}),Object.defineProperty(c,"onExit",{get:function(){return this._onExit},set:function(e){this._onExit=e}}),s.prototype.appendChild=function(e){e.unlink(),e._parent=this,this._lastChild?(this._lastChild._next=e,e._prev=this._lastChild,this._lastChild=e):(this._firstChild=e,this._lastChild=e)},s.prototype.prependChild=function(e){e.unlink(),e._parent=this,this._firstChild?(this._firstChild._prev=e,e._next=this._firstChild,this._firstChild=e):(this._firstChild=e,this._lastChild=e)},s.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next),this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev),this._parent=null,this._next=null,this._prev=null},s.prototype.insertAfter=function(e){e.unlink(),e._next=this._next,e._next&&(e._next._prev=e),e._prev=this,this._next=e,e._parent=this._parent,e._next||(e._parent._lastChild=e)},s.prototype.insertBefore=function(e){e.unlink(),e._prev=this._prev,e._prev&&(e._prev._next=e),e._next=this,this._prev=e,e._parent=this._parent,e._prev||(e._parent._firstChild=e)},s.prototype.walker=function(){return new a(this)},e.exports=s},function(e,t,n){"use strict";function o(){}o.prototype.render=function(e){var t,n,o=e.walker();for(this.buffer="",this.lastOut="\n";t=o.next();)this[n=t.node.type]&&this[n](t.node,t.entering);return this.buffer},o.prototype.out=function(e){this.lit(e)},o.prototype.lit=function(e){this.buffer+=e,this.lastOut=e},o.prototype.cr=function(){"\n"!==this.lastOut&&this.lit("\n")},o.prototype.esc=function(e){return e},e.exports=o},function(e,t){e.exports="img/ellipsis.c2118e5.svg"},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return N}));var o=n(81),r=n.n(o),i=n(90),a=n.n(i),s=n(97),c=n(755),l=n(216),u=n(83),d=n(196),h=n(91),p=n(87),m=n(93),g=n(118),f=n(89),_=n(503),b=n(150),v=n(122),E=n(160),y=n(88),S=n(299),T=n(496),w=n(113),C=n(169),x=n(507),O=n(227),k=n(101),R=n(100),A=n(372),I=n(105);const D=({children:e,className:t,onClick:n})=>r.a.createElement(h.a,{className:a()("mx_BaseCard_Button mx_RoomSummaryCard_Button",t),onClick:n},e),N=e=>{const[t,n]=Object(o.useState)(C.b.instance.getApps(e.roomId)),r=Object(o.useCallback)(()=>{n([...C.b.instance.getApps(e.roomId)])},[e]);return Object(o.useEffect)(r,[e]),Object(b.a)(C.b.instance,e.roomId,r),t},F=({app:e,room:t})=>{const n=v.a.getWidgetName(e),o=v.a.getWidgetDataTitle(e),i=o&&" - "+o,s=C.b.instance.isPinned(t.roomId,e.id),c=s?()=>{C.b.instance.unpinWidget(t.roomId,e.id)}:()=>{C.b.instance.pinWidget(t.roomId,e.id)},[l,d,h,f]=Object(R.o)();let _;if(l){const t=d.current.getBoundingClientRect();_=r.a.createElement(A.a,{chevronFace:R.a.None,right:window.innerWidth-t.right,bottom:window.innerHeight-t.top,onFinished:f,app:e})}const b=!s&&!C.b.instance.canPin(t.roomId,e.id);let E;E=b?Object(u.a)("You can only pin up to %(count)s widgets",{count:C.a}):s?Object(u.a)("Unpin"):Object(u.a)("Pin");const y=a()("mx_BaseCard_Button mx_RoomSummaryCard_Button",{mx_RoomSummaryCard_Button_pinned:s});return r.a.createElement("div",{className:y,ref:d},r.a.createElement(w.a,{className:"mx_RoomSummaryCard_icon_app",onClick:()=>{p.a.dispatch({action:m.a.SetRightPanelPhase,phase:g.b.Widget,refireParams:{widgetId:e.id}})},title:s?Object(u.a)("Unpin a widget to view it in this panel"):"",forceHide:!s,disabled:s,yOffset:-48},r.a.createElement(T.a,{app:e}),r.a.createElement("span",null,n),i),r.a.createElement(R.d,{className:"mx_RoomSummaryCard_app_options",isExpanded:l,onClick:h,title:Object(u.a)("Options"),yOffset:-24}),r.a.createElement(w.a,{className:"mx_RoomSummaryCard_app_pinToggle",onClick:c,title:E,disabled:b,yOffset:-24}),_)},M=({room:e})=>{const t=N(e);return r.a.createElement(l.a,{className:"mx_RoomSummaryCard_appsGroup",title:Object(u.a)("Widgets")},t.map(t=>r.a.createElement(F,{key:t.id,app:t,room:e})),r.a.createElement(h.a,{kind:"link",onClick:()=>{const t=E.a.sharedInstance();t.hasManager()?y.a.getValue("feature_many_integration_managers")?t.openAll(e):t.getPrimaryManager().open(e):t.openNoManagerDialog()}},t.length>0?Object(u.a)("Edit widgets, bridges & bots"):Object(u.a)("Add widgets, bridges & bots")))},P=()=>{p.a.dispatch({action:m.a.SetRightPanelPhase,phase:g.b.RoomMemberList})},L=()=>{p.a.dispatch({action:m.a.SetRightPanelPhase,phase:g.b.FilePanel})},U=()=>{p.a.dispatch({action:"open_room_settings"})};t.a=({room:e,onClose:t})=>{const n=Object(o.useContext)(s.a),i=Object(c.a)(n,e),h=Object(o.useContext)(O.a).e2eStatus,p=e.getCanonicalAlias()||e.getAltAliases()[0]||"",m=r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"mx_RoomSummaryCard_avatar",role:"presentation"},r.a.createElement(d.a,{room:e,height:54,width:54,viewAvatarOnClick:!0}),r.a.createElement(S.a,{tooltip:i?Object(u.a)("Encrypted"):Object(u.a)("Not encrypted"),class:a()("mx_RoomSummaryCard_e2ee",{mx_RoomSummaryCard_e2ee_normal:i,mx_RoomSummaryCard_e2ee_warning:i&&h===x.a.Warning,mx_RoomSummaryCard_e2ee_verified:i&&h===x.a.Verified})})),r.a.createElement("h2",{title:e.name},e.name),r.a.createElement("div",{className:"mx_RoomSummaryCard_alias",title:p},p)),g=((e,t=250)=>{const[n,r]=Object(o.useState)(e.getJoinedMemberCount());return Object(b.a)(e.currentState,"RoomState.members",Object(I.throttle)(()=>{r(e.getJoinedMemberCount())},t,{leading:!0,trailing:!0})),n})(e);return r.a.createElement(l.b,{header:m,className:"mx_RoomSummaryCard",onClose:t},r.a.createElement(l.a,{title:Object(u.a)("About"),className:"mx_RoomSummaryCard_aboutGroup"},r.a.createElement(D,{className:"mx_RoomSummaryCard_icon_people",onClick:P},Object(u.a)("%(count)s people",{count:g})),r.a.createElement(D,{className:"mx_RoomSummaryCard_icon_files",onClick:L},Object(u.a)("Show files")),r.a.createElement(D,{className:"mx_RoomSummaryCard_icon_share",onClick:()=>{f.a.createTrackedDialog("share room dialog","",_.a,{target:e})}},Object(u.a)("Share room")),r.a.createElement(D,{className:"mx_RoomSummaryCard_icon_settings",onClick:U},Object(u.a)("Room settings"))),y.a.getValue(k.a.Widgets)&&r.a.createElement(M,{room:e}))}},function(e,t,n){"use strict";var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(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 o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=a(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))r.call(n,u)&&(c[u]=n[u]);if(o){s=o(n);for(var d=0;d<s.length;d++)i.call(n,s[d])&&(c[s[d]]=n[s[d]])}}return c}},function(e,t,n){"use strict";e.exports={__locale:"en",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbreviated_days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],abbreviated_months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],am:"AM",pm:"PM"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(81),c=n.n(s),l=n(91);const u=e=>{let{label:t,isExpanded:n,children:o,onClick:i,onContextMenu:s}=e,u=a()(e,["label","isExpanded","children","onClick","onContextMenu"]);return c.a.createElement(l.a,r()({},u,{onClick:i,onContextMenu:s||i,title:t,"aria-label":t,"aria-haspopup":!0,"aria-expanded":n}),o)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(81),c=n.n(s),l=n(113);const u=e=>{let{isExpanded:t,children:n,onClick:o,onContextMenu:i}=e,s=a()(e,["isExpanded","children","onClick","onContextMenu"]);return c.a.createElement(l.a,r()({},s,{onClick:o,onContextMenu:i||o,"aria-haspopup":!0,"aria-expanded":t}),n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(81),c=n.n(s);const l=e=>{let{children:t,label:n}=e,o=a()(e,["children","label"]);return c.a.createElement("div",r()({},o,{role:"group","aria-label":n}),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(81),c=n.n(s),l=n(91);const u=e=>{let{children:t,label:n}=e,o=a()(e,["children","label"]);const i=o["aria-label"]||n;return c.a.createElement(l.a,r()({},o,{role:"menuitem",tabIndex:-1,"aria-label":i}),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(81),c=n.n(s),l=n(91);const u=e=>{let{children:t,label:n,active:o,disabled:i}=e,s=a()(e,["children","label","active","disabled"]);return c.a.createElement(l.a,r()({},s,{role:"menuitemcheckbox","aria-checked":o,"aria-disabled":i,disabled:i,tabIndex:-1,"aria-label":n}),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(81),c=n.n(s),l=n(91);const u=e=>{let{children:t,label:n,active:o,disabled:i}=e,s=a()(e,["children","label","active","disabled"]);return c.a.createElement(l.a,r()({},s,{role:"menuitemradio","aria-checked":o,"aria-disabled":i,disabled:i,tabIndex:-1,"aria-label":n}),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(81),c=n.n(s),l=n(98),u=n(138);const d=e=>{let{children:t,label:n,onChange:o,onClose:i}=e,s=a()(e,["children","label","onChange","onClose"]);return c.a.createElement(u.a,r()({},s,{role:"menuitemcheckbox",tabIndex:-1,"aria-label":n,onChange:o,onKeyDown:e=>{e.key!==l.a.ENTER&&e.key!==l.a.SPACE||(e.stopPropagation(),e.preventDefault(),o(),e.key===l.a.ENTER&&i())},onKeyUp:e=>{e.key!==l.a.SPACE&&e.key!==l.a.ENTER||(e.stopPropagation(),e.preventDefault())}}),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(94),r=n.n(o),i=n(99),a=n.n(i),s=n(81),c=n.n(s),l=n(98),u=n(222);const d=e=>{let{children:t,label:n,onChange:o,onClose:i}=e,s=a()(e,["children","label","onChange","onClose"]);return c.a.createElement(u.a,r()({},s,{role:"menuitemradio",tabIndex:-1,"aria-label":n,onChange:o,onKeyDown:e=>{e.key!==l.a.ENTER&&e.key!==l.a.SPACE||(e.stopPropagation(),e.preventDefault(),o(),e.key===l.a.ENTER&&i())},onKeyUp:e=>{e.key!==l.a.SPACE&&e.key!==l.a.ENTER||(e.stopPropagation(),e.preventDefault())}}),t)}},function(e,t,n){"use strict";function o(e,t){return{msgtype:"m.text",format:"org.matrix.custom.html",body:e,formatted_body:t}}function r(e,t){return{msgtype:"m.notice",format:"org.matrix.custom.html",body:e,formatted_body:t}}function i(e,t){return{msgtype:"m.emote",format:"org.matrix.custom.html",body:e,formatted_body:t}}function a(e){return{msgtype:"m.text",body:e}}function s(e){return{msgtype:"m.notice",body:e}}function c(e){return{msgtype:"m.emote",body:e}}n.r(t),n.d(t,"makeHtmlMessage",(function(){return o})),n.d(t,"makeHtmlNotice",(function(){return r})),n.d(t,"makeHtmlEmote",(function(){return i})),n.d(t,"makeTextMessage",(function(){return a})),n.d(t,"makeNotice",(function(){return s})),n.d(t,"makeEmoteMessage",(function(){return c}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(0),r=n(264);function i(e){return"crypto.sessions/"+e}function a(e){return"crypto.session.problems/"+e}function s(e,t){return"crypto.inboundgroupsessions/"+e+"/"+t}function c(e,t){return"crypto.inboundgroupsessions.withheld/"+e+"/"+t}function l(e){return"crypto.rooms/"+e}class u extends r.a{constructor(e){super(),this.store=e}static exists(e){const t=e.length;for(let n=0;n<t;n++)if(e.key(n).startsWith("crypto."))return!0;return!1}countEndToEndSessions(e,t){let n=0;for(let e=0;e<this.store.length;++e)this.store.key(e).startsWith(i(""))&&++n;t(n)}_getEndToEndSessions(e,t,n){const o=d(this.store,i(e)),r={};for(const[e,t]of Object.entries(o||{}))r[e]="string"==typeof t?{session:t}:t;return r}getEndToEndSession(e,t,n,o){o(this._getEndToEndSessions(e)[t]||{})}getEndToEndSessions(e,t,n){n(this._getEndToEndSessions(e)||{})}getAllEndToEndSessions(e,t){for(let e=0;e<this.store.length;++e)if(this.store.key(e).startsWith(i(""))){const n=this.store.key(e).split("/")[1];for(const e of Object.values(this._getEndToEndSessions(n)))t(e)}}storeEndToEndSession(e,t,n,o){const r=this._getEndToEndSessions(e)||{};r[t]=n,h(this.store,i(e),r)}async storeEndToEndSessionProblem(e,t,n){const o=a(e),r=d(this.store,o)||[];r.push({type:t,fixed:n,time:Date.now()}),r.sort((e,t)=>e.time-t.time),h(this.store,o,r)}async getEndToEndSessionProblem(e,t){const n=a(e),o=d(this.store,n)||[];if(!o.length)return null;const r=o[o.length-1];for(const e of o)if(e.time>t)return Object.assign({},e,{fixed:r.fixed});return r.fixed?null:r}async filterOutNotifiedErrorDevices(e){const t=d(this.store,"crypto.notified_error_devices")||{},n=[];for(const o of e){const{userId:e,deviceInfo:r}=o;e in t?r.deviceId in t[e]||(n.push(o),t[e][r.deviceId]=!0):(n.push(o),t[e]={[r.deviceId]:!0})}return h(this.store,"crypto.notified_error_devices",t),n}getEndToEndInboundGroupSession(e,t,n,o){o(d(this.store,s(e,t)),d(this.store,c(e,t)))}getAllEndToEndInboundGroupSessions(e,t){for(let e=0;e<this.store.length;++e){const n=this.store.key(e);n.startsWith("crypto.inboundgroupsessions/")&&t({senderKey:n.substr("crypto.inboundgroupsessions/".length,43),sessionId:n.substr("crypto.inboundgroupsessions/".length+44),sessionData:d(this.store,n)})}t(null)}addEndToEndInboundGroupSession(e,t,n,o){d(this.store,s(e,t))||this.storeEndToEndInboundGroupSession(e,t,n,o)}storeEndToEndInboundGroupSession(e,t,n,o){h(this.store,s(e,t),n)}storeEndToEndInboundGroupSessionWithheld(e,t,n,o){h(this.store,c(e,t),n)}getEndToEndDeviceData(e,t){t(d(this.store,"crypto.device_data"))}storeEndToEndDeviceData(e,t){h(this.store,"crypto.device_data",e)}storeEndToEndRoom(e,t,n){h(this.store,l(e),t)}getEndToEndRooms(e,t){const n={},o=l("");for(let e=0;e<this.store.length;++e){const t=this.store.key(e);if(t.startsWith(o)){n[t.substr(o.length)]=d(this.store,t)}}t(n)}getSessionsNeedingBackup(e){const t=d(this.store,"crypto.sessionsneedingbackup")||{},n=[];for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const t=o.substr(0,43),r=o.substr(44);if(this.getEndToEndInboundGroupSession(t,r,null,e=>{n.push({senderKey:t,sessionId:r,sessionData:e})}),e&&o.length>=e)break}return Promise.resolve(n)}countSessionsNeedingBackup(){const e=d(this.store,"crypto.sessionsneedingbackup")||{};return Promise.resolve(Object.keys(e).length)}unmarkSessionsNeedingBackup(e){const t=d(this.store,"crypto.sessionsneedingbackup")||{};for(const n of e)delete t[n.senderKey+"/"+n.sessionId];return h(this.store,"crypto.sessionsneedingbackup",t),Promise.resolve()}markSessionsNeedingBackup(e){const t=d(this.store,"crypto.sessionsneedingbackup")||{};for(const n of e)t[n.senderKey+"/"+n.sessionId]=!0;return h(this.store,"crypto.sessionsneedingbackup",t),Promise.resolve()}deleteAllData(){return this.store.removeItem("crypto.account"),Promise.resolve()}getAccount(e,t){t(d(this.store,"crypto.account"))}storeAccount(e,t){h(this.store,"crypto.account",t)}getCrossSigningKeys(e,t){t(d(this.store,"crypto.cross_signing_keys"))}getSecretStorePrivateKey(e,t,n){t(d(this.store,"crypto.ssss_cache."+n))}storeCrossSigningKeys(e,t){h(this.store,"crypto.cross_signing_keys",t)}storeSecretStorePrivateKey(e,t,n){h(this.store,"crypto.ssss_cache."+t,n)}doTxn(e,t,n){return Promise.resolve(n(null))}}function d(e,t){try{return JSON.parse(e.getItem(t))}catch(e){o.a.log("Error: Failed to get key %s: %s",t,e.stack||e),o.a.log(e.stack)}return null}function h(e,t,n){e.setItem(t,JSON.stringify(n))}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var o=n(0),r=n(165),i=n(795);function a(e){if(void 0===e)throw new Error("payloadString undefined");if(e.length>49152){const t=new Error("Message too long ("+e.length+" bytes). The maximum for an encrypted message is 49152 bytes.");throw t.data={errcode:"M_TOO_LARGE",error:"Payload too large for encrypted message"},t}}function s(e){this._cryptoStore=e,this._pickleKey="DEFAULT_KEY",this.deviceCurve25519Key=null,this.deviceEd25519Key=null,this._maxOneTimeKeys=null,this._outboundGroupSessionStore={},this._inboundGroupSessionMessageIndexes={},this._sessionsInProgress={},this._olmPrekeyPromise=Promise.resolve()}s.prototype.init=async function(t={}){let n;const i=new e.Olm.Account,{pickleKey:a,fromExportedDevice:s}=t;try{s?(a&&o.a.warn("ignoring opts.pickleKey because opts.fromExportedDevice is present."),this._pickleKey=s.pickleKey,await async function(e,t,n,o){await t.doTxn("readwrite",[r.a.STORE_ACCOUNT,r.a.STORE_SESSIONS],n=>{t.storeAccount(n,e.pickledAccount),e.sessions.forEach(e=>{const{deviceKey:o,sessionId:r}=e,i={session:e.session,lastReceivedMessageTs:e.lastReceivedMessageTs};t.storeEndToEndSession(o,r,i,n)})}),o.unpickle(n,e.pickledAccount)}(s,this._cryptoStore,this._pickleKey,i)):(a&&(this._pickleKey=a),await async function(e,t,n){await e.doTxn("readwrite",[r.a.STORE_ACCOUNT],o=>{e.getAccount(o,r=>{null!==r?n.unpickle(t,r):(n.create(),r=n.pickle(t),e.storeAccount(o,r))})})}(this._cryptoStore,this._pickleKey,i)),n=JSON.parse(i.identity_keys()),this._maxOneTimeKeys=i.max_number_of_one_time_keys()}finally{i.free()}this.deviceCurve25519Key=n.curve25519,this.deviceEd25519Key=n.ed25519},s.getOlmVersion=function(){return e.Olm.get_library_version()},s.prototype._getAccount=function(t,n){this._cryptoStore.getAccount(t,t=>{const o=new e.Olm.Account;try{o.unpickle(this._pickleKey,t),n(o)}finally{o.free()}})},s.prototype._storeAccount=function(e,t){this._cryptoStore.storeAccount(e,t.pickle(this._pickleKey))},s.prototype.export=async function(){const e={pickleKey:this._pickleKey};return await this._cryptoStore.doTxn("readonly",[r.a.STORE_ACCOUNT,r.a.STORE_SESSIONS],t=>{this._cryptoStore.getAccount(t,t=>{e.pickledAccount=t}),e.sessions=[],this._cryptoStore.getAllEndToEndSessions(t,t=>{e.sessions.push(t)})}),e},s.prototype._getSession=function(e,t,n,o){this._cryptoStore.getEndToEndSession(e,t,n,e=>{this._unpickleSession(e,o)})},s.prototype._unpickleSession=function(t,n){const o=new e.Olm.Session;try{o.unpickle(this._pickleKey,t.session);n(Object.assign({},t,{session:o}))}finally{o.free()}},s.prototype._saveSession=function(e,t,n){const o=t.session.session_id(),r=Object.assign(t,{session:t.session.pickle(this._pickleKey)});this._cryptoStore.storeEndToEndSession(e,o,r,n)},s.prototype._getUtility=function(t){const n=new e.Olm.Utility;try{return t(n)}finally{n.free()}},s.prototype.sign=async function(e){let t;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_ACCOUNT],n=>{this._getAccount(n,n=>{t=n.sign(e)})}),t},s.prototype.getOneTimeKeys=async function(){let e;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_ACCOUNT],t=>{this._getAccount(t,t=>{e=JSON.parse(t.one_time_keys())})}),e},s.prototype.maxNumberOfOneTimeKeys=function(){return this._maxOneTimeKeys},s.prototype.markKeysAsPublished=async function(){await this._cryptoStore.doTxn("readwrite",[r.a.STORE_ACCOUNT],e=>{this._getAccount(e,t=>{t.mark_keys_as_published(),this._storeAccount(e,t)})})},s.prototype.generateOneTimeKeys=function(e){return this._cryptoStore.doTxn("readwrite",[r.a.STORE_ACCOUNT],t=>{this._getAccount(t,n=>{n.generate_one_time_keys(e),this._storeAccount(t,n)})})},s.prototype.generateFallbackKey=async function(){await this._cryptoStore.doTxn("readwrite",[r.a.STORE_ACCOUNT],e=>{this._getAccount(e,t=>{t.generate_fallback_key(),this._storeAccount(e,t)})})},s.prototype.getFallbackKey=async function(){let e;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_ACCOUNT],t=>{this._getAccount(t,t=>{e=JSON.parse(t.fallback_key())})}),e},s.prototype.createOutboundSession=async function(t,n){let o;return await this._cryptoStore.doTxn("readwrite",[r.a.STORE_ACCOUNT,r.a.STORE_SESSIONS],r=>{this._getAccount(r,i=>{const a=new e.Olm.Session;try{a.create_outbound(i,t,n),o=a.session_id(),this._storeAccount(r,i);const e={session:a,lastReceivedMessageTs:Date.now()};this._saveSession(t,e,r)}finally{a.free()}})}),o},s.prototype.createInboundSession=async function(t,n,o){if(0!==n)throw new Error("Need messageType == 0 to create inbound session");let i;return await this._cryptoStore.doTxn("readwrite",[r.a.STORE_ACCOUNT,r.a.STORE_SESSIONS],r=>{this._getAccount(r,a=>{const s=new e.Olm.Session;try{s.create_inbound_from(a,t,o),a.remove_one_time_keys(s),this._storeAccount(r,a);const e=s.decrypt(n,o),c={session:s,lastReceivedMessageTs:Date.now()};this._saveSession(t,c,r),i={payload:e,session_id:s.session_id()}}finally{s.free()}})}),i},s.prototype.getSessionIdsForDevice=async function(e){if(this._sessionsInProgress[e]){o.a.log("waiting for olm session to be created");try{await this._sessionsInProgress[e]}catch(e){}}let t;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_SESSIONS],n=>{this._cryptoStore.getEndToEndSessions(e,n,e=>{t=Object.keys(e)})}),t},s.prototype.getSessionIdForDevice=async function(e,t){const n=await this.getSessionInfoForDevice(e,t);if(0===n.length)return null;let o=0;for(let e=1;e<n.length;e++){const t=n[e],r=void 0===t.lastReceivedMessageTs?0:t.lastReceivedMessageTs,i=n[o],a=void 0===i.lastReceivedMessageTs?0:i.lastReceivedMessageTs;(r>a||r===a&&t.sessionId<i.sessionId)&&(o=e)}return n[o].sessionId},s.prototype.getSessionInfoForDevice=async function(e,t){if(this._sessionsInProgress[e]&&!t){o.a.log("waiting for olm session to be created");try{await this._sessionsInProgress[e]}catch(e){}}const n=[];return await this._cryptoStore.doTxn("readonly",[r.a.STORE_SESSIONS],t=>{this._cryptoStore.getEndToEndSessions(e,t,e=>{const t=Object.keys(e).sort();for(const o of t)this._unpickleSession(e[o],e=>{n.push({lastReceivedMessageTs:e.lastReceivedMessageTs,hasReceivedMessage:e.session.has_received_message(),sessionId:o})})})}),n},s.prototype.encryptMessage=async function(e,t,n){let i;return a(n),await this._cryptoStore.doTxn("readwrite",[r.a.STORE_SESSIONS],r=>{this._getSession(e,t,r,a=>{const s=a.session.describe();o.a.log("encryptMessage: Olm Session ID "+t+" to "+e+": "+s),i=a.session.encrypt(n),this._saveSession(e,a,r)})}),i},s.prototype.decryptMessage=async function(e,t,n,i){let a;return await this._cryptoStore.doTxn("readwrite",[r.a.STORE_SESSIONS],r=>{this._getSession(e,t,r,s=>{const c=s.session.describe();o.a.log("decryptMessage: Olm Session ID "+t+" from "+e+": "+c),a=s.session.decrypt(n,i),s.lastReceivedMessageTs=Date.now(),this._saveSession(e,s,r)})}),a},s.prototype.matchesSession=async function(e,t,n,o){if(0!==n)return!1;let i;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_SESSIONS],n=>{this._getSession(e,t,n,e=>{i=e.session.matches_inbound(o)})}),i},s.prototype.recordSessionProblem=async function(e,t,n){await this._cryptoStore.storeEndToEndSessionProblem(e,t,n)},s.prototype.sessionMayHaveProblems=async function(e,t){return await this._cryptoStore.getEndToEndSessionProblem(e,t)},s.prototype.filterOutNotifiedErrorDevices=async function(e){return await this._cryptoStore.filterOutNotifiedErrorDevices(e)},s.prototype._saveOutboundGroupSession=function(e){const t=e.pickle(this._pickleKey);this._outboundGroupSessionStore[e.session_id()]=t},s.prototype._getOutboundGroupSession=function(t,n){const o=this._outboundGroupSessionStore[t];if(void 0===o)throw new Error("Unknown outbound group session "+t);const r=new e.Olm.OutboundGroupSession;try{return r.unpickle(this._pickleKey,o),n(r)}finally{r.free()}},s.prototype.createOutboundGroupSession=function(){const t=new e.Olm.OutboundGroupSession;try{return t.create(),this._saveOutboundGroupSession(t),t.session_id()}finally{t.free()}},s.prototype.encryptGroupMessage=function(e,t){const n=this;return o.a.log("encrypting msg with megolm session "+e),a(t),this._getOutboundGroupSession(e,(function(e){const o=e.encrypt(t);return n._saveOutboundGroupSession(e),o}))},s.prototype.getOutboundGroupSessionKey=function(e){return this._getOutboundGroupSession(e,(function(e){return{chain_index:e.message_index(),key:e.session_key()}}))},s.prototype._unpickleInboundGroupSession=function(t,n){const o=new e.Olm.InboundGroupSession;try{return o.unpickle(this._pickleKey,t.session),n(o)}finally{o.free()}},s.prototype._getInboundGroupSession=function(e,t,n,o,r){this._cryptoStore.getEndToEndInboundGroupSession(t,n,o,(t,n)=>{if(null!==t){if(null!==e&&e!==t.room_id)throw new Error("Mismatched room_id for inbound group session (expected "+t.room_id+", was "+e+")");this._unpickleInboundGroupSession(t,e=>{r(e,t,n)})}else r(null,null,n)})},s.prototype.addInboundGroupSession=async function(t,n,i,a,s,c,l,u={}){await this._cryptoStore.doTxn("readwrite",[r.a.STORE_INBOUND_GROUP_SESSIONS,r.a.STORE_INBOUND_GROUP_SESSIONS_WITHHELD],r=>{this._getInboundGroupSession(t,n,a,r,(d,h)=>{const p=new e.Olm.InboundGroupSession;try{if(l?p.import_session(s):p.create(s),a!=p.session_id())throw new Error("Mismatched group session ID from senderKey: "+n);if(d&&(o.a.log("Update for megolm session "+n+"/"+a),d.first_known_index()<=p.first_known_index()&&(d.first_known_index()!=p.first_known_index()||u.untrusted||!h.untrusted)))return void o.a.log("Keeping existing megolm session "+a);o.a.info("Storing megolm session "+n+"/"+a+" with first index "+p.first_known_index());const e=Object.assign({},u,{room_id:t,session:p.pickle(this._pickleKey),keysClaimed:c,forwardingCurve25519KeyChain:i});this._cryptoStore.storeEndToEndInboundGroupSession(n,a,e,r)}finally{p.free()}})})},s.prototype.addInboundGroupSessionWithheld=async function(e,t,n,o,i){await this._cryptoStore.doTxn("readwrite",[r.a.STORE_INBOUND_GROUP_SESSIONS_WITHHELD],r=>{this._cryptoStore.storeEndToEndInboundGroupSessionWithheld(t,n,{room_id:e,code:o,reason:i},r)})};const c={"m.unverified":"The sender has disabled encrypting to unverified devices.","m.blacklisted":"The sender has blocked you.","m.unauthorised":"You are not authorised to read the message.","m.no_olm":"Unable to establish a secure channel."};function l(e){return e.code&&e.code in c?c[e.code]:e.reason?e.reason:"decryption key withheld"}s.prototype.decryptGroupMessage=async function(e,t,n,o,a,s){let c,u;if(await this._cryptoStore.doTxn("readwrite",[r.a.STORE_INBOUND_GROUP_SESSIONS,r.a.STORE_INBOUND_GROUP_SESSIONS_WITHHELD],r=>{this._getInboundGroupSession(e,t,n,r,(e,d,h)=>{if(null===e)return h&&(u=new i.b("MEGOLM_UNKNOWN_INBOUND_SESSION_ID",l(h),{session:t+"|"+n})),void(c=null);let p;try{p=e.decrypt(o)}catch(e){return void(u=e&&"OLM.UNKNOWN_MESSAGE_INDEX"===e.message&&h?new i.b("MEGOLM_UNKNOWN_INBOUND_SESSION_ID",l(h),{session:t+"|"+n}):e)}let m=p.plaintext;if(void 0===m)m=p;else{const e=t+"|"+n+"|"+p.message_index;if(e in this._inboundGroupSessionMessageIndexes){const t=this._inboundGroupSessionMessageIndexes[e];if(t.id!==a||t.timestamp!==s)return void(u=new Error("Duplicate message index, possible replay attack: "+e))}this._inboundGroupSessionMessageIndexes[e]={id:a,timestamp:s}}d.session=e.pickle(this._pickleKey),this._cryptoStore.storeEndToEndInboundGroupSession(t,n,d,r),c={result:m,keysClaimed:d.keysClaimed||{},senderKey:t,forwardingCurve25519KeyChain:d.forwardingCurve25519KeyChain||[],untrusted:d.untrusted}})}),u)throw u;return c},s.prototype.hasInboundSessionKeys=async function(e,t,n){let i;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_INBOUND_GROUP_SESSIONS,r.a.STORE_INBOUND_GROUP_SESSIONS_WITHHELD],r=>{this._cryptoStore.getEndToEndInboundGroupSession(t,n,r,r=>{null!==r?e!==r.room_id?(o.a.warn(`requested keys for inbound group session ${t}|`+n+", with incorrect room_id "+`(expected ${r.room_id}, `+`was ${e})`),i=!1):i=!0:i=!1})}),i},s.prototype.getInboundGroupSessionKey=async function(e,t,n,o){let i;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_INBOUND_GROUP_SESSIONS,r.a.STORE_INBOUND_GROUP_SESSIONS_WITHHELD],r=>{this._getInboundGroupSession(e,t,n,r,(e,t)=>{if(null===e)return void(i=null);void 0===o&&(o=e.first_known_index());const n=e.export_session(o),r=(t.keysClaimed||{}).ed25519||null;i={chain_index:o,key:n,forwarding_curve25519_key_chain:t.forwardingCurve25519KeyChain||[],sender_claimed_ed25519_key:r}})}),i},s.prototype.exportInboundGroupSession=function(e,t,n){return this._unpickleInboundGroupSession(n,o=>{const r=o.first_known_index();return{sender_key:e,sender_claimed_keys:n.keysClaimed,room_id:n.room_id,session_id:t,session_key:o.export_session(r),forwarding_curve25519_key_chain:o.forwardingCurve25519KeyChain||[],first_known_index:o.first_known_index()}})},s.prototype.verifySignature=function(e,t,n){this._getUtility((function(o){o.ed25519_verify(e,t,n)}))}}).call(this,n(5))},function(e,t,n){var o=n(31),r=o.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=o:(i(o,t),t.Buffer=a),a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=r(e);return void 0!==t?"string"==typeof n?o.fill(t,n):o.fill(t):o.fill(0),o},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},function(e,t,n){"use strict";(function(e,o){n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var r=n(201),i=n.n(r),a=n(124),s=n(165),c=n(267),l=n(316),u=n.n(l),d=n(0);const h="org.matrix.msc2697.v1.olm.libolm_pickle";class p{constructor(e){this.crypto=e,i()(this,"inProgress",!1),i()(this,"timeoutId",void 0),i()(this,"key",void 0),i()(this,"keyInfo",void 0),i()(this,"deviceDisplayName",void 0),this.getDehydrationKeyFromCache()}async getDehydrationKeyFromCache(){return await this.crypto._cryptoStore.doTxn("readonly",[s.a.STORE_ACCOUNT],t=>{this.crypto._cryptoStore.getSecretStorePrivateKey(t,async t=>{if(t){const{key:n,keyInfo:r,deviceDisplayName:i,time:s}=t,l=e.from(this.crypto._olmDevice._pickleKey),u=await Object(c.a)(n,l,h);this.key=Object(a.decodeBase64)(u),this.keyInfo=r,this.deviceDisplayName=i;const d=Date.now(),p=Math.max(1,s+6048e5-d);this.timeoutId=o.setTimeout(this.dehydrateDevice.bind(this),p)}},"dehydration")})}async setKeyAndQueueDehydration(e,t={},n){await this.setKey(e,t,n)||this.dehydrateDevice()}async setKey(e,t={},n){if(!e)return this.timeoutId&&(o.clearTimeout(this.timeoutId),this.timeoutId=void 0),await this.crypto._cryptoStore.doTxn("readwrite",[s.a.STORE_ACCOUNT],e=>{this.crypto._cryptoStore.storeSecretStorePrivateKey(e,"dehydration",null)}),this.key=void 0,void(this.keyInfo=void 0);let r=this.key&&e.length==this.key.length;for(let t=0;r&&t<e.length;t++)e[t]!=this.key[t]&&(r=!1);return r||(this.key=e,this.keyInfo=t,this.deviceDisplayName=n),r}async dehydrateDevice(){if(this.inProgress)d.a.log("Dehydration already in progress -- not starting new dehydration");else{this.inProgress=!0,this.timeoutId&&(o.clearTimeout(this.timeoutId),this.timeoutId=void 0);try{const t=e.from(this.crypto._olmDevice._pickleKey),n=await Object(c.b)(Object(a.encodeBase64)(this.key),t,h);await this.crypto._cryptoStore.doTxn("readwrite",[s.a.STORE_ACCOUNT],e=>{this.crypto._cryptoStore.storeSecretStorePrivateKey(e,"dehydration",{keyInfo:this.keyInfo,key:n,deviceDisplayName:this.deviceDisplayName,time:Date.now()})}),d.a.log("Attempting to dehydrate device"),d.a.log("Creating account");const r=new o.Olm.Account;r.create();const i=JSON.parse(r.identity_keys()),l=r.max_number_of_one_time_keys();r.generate_one_time_keys(l/2),r.generate_fallback_key();const p=JSON.parse(r.one_time_keys()),m=JSON.parse(r.fallback_key());r.mark_keys_as_published();const g=r.pickle(new Uint8Array(this.key)),f={algorithm:h,account:g};this.keyInfo.passphrase&&(f.passphrase=this.keyInfo.passphrase),d.a.log("Uploading account to server");const _=(await this.crypto._baseApis._http.authedRequest(void 0,"PUT","/dehydrated_device",void 0,{device_data:f,initial_device_display_name:this.deviceDisplayName},{prefix:"/_matrix/client/unstable/org.matrix.msc2697.v2"})).device_id;d.a.log("Preparing device keys",_);const b={algorithms:this.crypto._supportedAlgorithms,device_id:_,user_id:this.crypto._userId,keys:{["ed25519:"+_]:i.ed25519,["curve25519:"+_]:i.curve25519}},v=r.sign(u.a.stringify(b));b.signatures={[this.crypto._userId]:{["ed25519:"+_]:v}},this.crypto._crossSigningInfo.getId("self_signing")&&await this.crypto._crossSigningInfo.signObject(b,"self_signing"),d.a.log("Preparing one-time keys");const E={};for(const[e,t]of Object.entries(p.curve25519)){const n={key:t},o=r.sign(u.a.stringify(n));n.signatures={[this.crypto._userId]:{["ed25519:"+_]:o}},E["signed_curve25519:"+e]=n}d.a.log("Preparing fallback keys");const y={};for(const[e,t]of Object.entries(m.curve25519)){const n={key:t,fallback:!0},o=r.sign(u.a.stringify(n));n.signatures={[this.crypto._userId]:{["ed25519:"+_]:o}},y["signed_curve25519:"+e]=n}return d.a.log("Uploading keys to server"),await this.crypto._baseApis._http.authedRequest(void 0,"POST","/keys/upload/"+encodeURI(_),void 0,{device_keys:b,one_time_keys:E,"org.matrix.msc2732.fallback_keys":y}),d.a.log("Done dehydrating"),this.timeoutId=o.setTimeout(this.dehydrateDevice.bind(this),6048e5),_}finally{this.inProgress=!1}}}stop(){this.timeoutId&&(o.clearTimeout(this.timeoutId),this.timeoutId=void 0)}}}).call(this,n(31).Buffer,n(5))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var o=n(162);n(0);const r=function(){};function i(e,t,n){n=n||{},this._client=e,this._timelineSet=t,this._start=null,this._end=null,this._eventCount=0,this._windowLimit=n.windowLimit||1e3}function a(e,t){this.timeline=e,this.index=t}i.prototype.load=function(e,t){const n=this;t=t||20;const o=function(o){let r;const i=o.getEvents();if(e){for(let t=0;t<i.length;t++)if(i[t].getId()==e){r=t;break}if(void 0===r)throw new Error("getEventTimeline result didn't include requested event")}else r=i.length;const s=Math.min(i.length,r+Math.ceil(t/2)),c=Math.max(0,s-t);n._start=new a(o,c-o.getBaseIndex()),n._end=new a(o,s-o.getBaseIndex()),n._eventCount=s-c};if(e){const t=this._timelineSet.getTimelineForEvent(e);if(t)return o(t),Promise.resolve(t);return this._client.getEventTimeline(this._timelineSet,e).then(o)}return o(this._timelineSet.getLiveTimeline()),Promise.resolve()},i.prototype.getTimelineIndex=function(e){if(e==o.a.BACKWARDS)return this._start;if(e==o.a.FORWARDS)return this._end;throw new Error("Invalid direction '"+e+"'")},i.prototype.extend=function(e,t){const n=this.getTimelineIndex(e);if(!n)return r("TimelineWindow: no timeline yet"),!1;const i=e==o.a.BACKWARDS?n.retreat(t):n.advance(t);if(i){this._eventCount+=i,r("TimelineWindow: increased cap by "+i+" (now "+this._eventCount+")");const t=this._eventCount-this._windowLimit;return t>0&&this.unpaginate(t,e!=o.a.BACKWARDS),!0}return!1},i.prototype.canPaginate=function(e){const t=this.getTimelineIndex(e);if(!t)return r("TimelineWindow: no timeline yet"),!1;if(e==o.a.BACKWARDS){if(t.index>t.minIndex())return!0}else if(t.index<t.maxIndex())return!0;return Boolean(t.timeline.getNeighbouringTimeline(e)||t.timeline.getPaginationToken(e))},i.prototype.paginate=function(e,t,n,i){void 0===n&&(n=!0),void 0===i&&(i=5);const a=this.getTimelineIndex(e);if(!a)return r("TimelineWindow: no timeline yet"),Promise.resolve(!1);if(a.pendingPaginate)return a.pendingPaginate;if(this.extend(e,t))return Promise.resolve(!0);if(!n||0===i)return Promise.resolve(!1);if(!a.timeline.getPaginationToken(e))return r("TimelineWindow: no token"),Promise.resolve(!1);r("TimelineWindow: starting request");const s=this,c=this._client.paginateEventTimeline(a.timeline,{backwards:e==o.a.BACKWARDS,limit:t}).finally((function(){a.pendingPaginate=null})).then((function(n){return r("TimelineWindow: request completed with result "+n),!!n&&s.paginate(e,t,!0,i-1)}));return a.pendingPaginate=c,c},i.prototype.unpaginate=function(e,t){const n=t?this._start:this._end;if(e>this._eventCount||e<0)throw new Error("Attemting to unpaginate "+e+" events, but only have "+this._eventCount+" in the timeline");for(;e>0;){const o=t?n.advance(e):n.retreat(e);if(o<=0)throw new Error("Unable to unpaginate any further, but still have "+this._eventCount+" events");e-=o,this._eventCount-=o,r("TimelineWindow.unpaginate: dropped "+o+" (now "+this._eventCount+")")}},i.prototype.getEvents=function(){if(!this._start)return[];const e=[];let t=this._start.timeline;for(;;){const n=t.getEvents();let r=0,i=n.length;t===this._start.timeline&&(r=this._start.index+t.getBaseIndex()),t===this._end.timeline&&(i=this._end.index+t.getBaseIndex());for(let t=r;t<i;t++)e.push(n[t]);if(t===this._end.timeline)break;t=t.getNeighbouringTimeline(o.a.FORWARDS)}return e},a.prototype.minIndex=function(){return-1*this.timeline.getBaseIndex()},a.prototype.maxIndex=function(){return this.timeline.getEvents().length-this.timeline.getBaseIndex()},a.prototype.advance=function(e){if(!e)return 0;let t;if(e<0){if(t=Math.max(e,this.minIndex()-this.index),t<0)return this.index+=t,t}else if(t=Math.min(e,this.maxIndex()-this.index),t>0)return this.index+=t,t;const n=this.timeline.getNeighbouringTimeline(e<0?o.a.BACKWARDS:o.a.FORWARDS);return n?(this.timeline=n,this.index=e<0?this.maxIndex():this.minIndex(),r("paginate: switched to new neighbour"),this.advance(e)):0},a.prototype.retreat=function(e){return-1*this.advance(-1*e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(107),r=n.n(o),i=n(1),a=n(0);function s(e){this._matrixClient=e.matrixClient,this._data=e.authData||{},this._requestCallback=e.doRequest,this._busyChangedCallback=e.busyChanged,this._stateUpdatedCallback=e.stateUpdated||e.startAuthStage,this._resolveFunc=null,this._rejectFunc=null,this._inputs=e.inputs||{},this._requestEmailTokenCallback=e.requestEmailToken,e.sessionId&&(this._data.session=e.sessionId),this._clientSecret=e.clientSecret||this._matrixClient.generateClientSecret(),this._emailSid=e.emailSid,void 0===this._emailSid&&(this._emailSid=null),this._requestingEmailToken=!1,this._chosenFlow=null,this._currentStage=null,this._submitPromise=null}s.prototype={attemptAuth:function(){return new Promise((e,t)=>{this._resolveFunc=e,this._rejectFunc=t;if(this._data&&this._data.flows)this._startNextAuthStage();else{this._busyChangedCallback&&this._busyChangedCallback(!0);let e=null;this._data.session&&(e={session:this._data.session}),this._doRequest(e).finally(()=>{this._busyChangedCallback&&this._busyChangedCallback(!1)})}})},poll:async function(){if(!this._data.session)return;if(!this._resolveFunc)return;if(this._submitPromise)return;let e={};if("m.login.email.identity"==this._currentStage&&this._emailSid){const t={sid:this._emailSid,client_secret:this._clientSecret};if(await this._matrixClient.doesServerRequireIdServerParam()){const e=r.a.parse(this._matrixClient.getIdentityServerUrl());t.id_server=e.host}e={type:"m.login.email.identity",threepid_creds:t,threepidCreds:t}}this.submitAuthDict(e,!0)},getSessionId:function(){return this._data?this._data.session:void 0},getClientSecret:function(){return this._clientSecret},getStageParams:function(e){let t={};return this._data&&this._data.params&&(t=this._data.params),t[e]},getChosenFlow(){return this._chosenFlow},submitAuthDict:async function(e,t){if(!this._resolveFunc)throw new Error("submitAuthDict() called before attemptAuth()");for(!t&&this._busyChangedCallback&&this._busyChangedCallback(!0);this._submitPromise;)try{await this._submitPromise}catch(e){}let n;this._data.session?(n={session:this._data.session},i.i(n,e)):n=e;try{this._submitPromise=this._doRequest(n,t),await this._submitPromise}finally{this._submitPromise=null,!t&&this._busyChangedCallback&&this._busyChangedCallback(!1)}},getEmailSid:function(){return this._emailSid},setEmailSid:function(e){this._emailSid=e},_doRequest:async function(e,t){try{const n=await this._requestCallback(e,t);this._resolveFunc(n),this._resolveFunc=null,this._rejectFunc=null}catch(e){const n=e.data?e.data.flows:null,o=this._data.flows||Boolean(n);401===e.httpStatus&&e.data&&o||(t?a.a.log("Background poll request failed doing UI auth: ignoring",e):this._rejectFunc(e)),e.data.flows||e.data.completed||e.data.session||(e.data.flows=this._data.flows,e.data.completed=this._data.completed,e.data.session=this._data.session),this._data=e.data;try{this._startNextAuthStage()}catch(e){this._rejectFunc(e),this._resolveFunc=null,this._rejectFunc=null}if(!this._emailSid&&!this._requestingEmailToken&&this._chosenFlow.stages.includes("m.login.email.identity")){this._requestingEmailToken=!0;try{const e=await this._requestEmailTokenCallback(this._inputs.emailAddress,this._clientSecret,1,this._data.session);this._emailSid=e.sid}catch(e){this._rejectFunc(e),this._resolveFunc=null,this._rejectFunc=null}finally{this._requestingEmailToken=!1}}}},_startNextAuthStage:function(){const e=this._chooseStage();if(!e)throw new Error("No incomplete flows from the server");if(this._currentStage=e,"m.login.dummy"===e)return void this.submitAuthDict({type:"m.login.dummy"});if(this._data&&this._data.errcode||this._data.error)return void this._stateUpdatedCallback(e,{errcode:this._data.errcode||"",error:this._data.error||""});const t={};"m.login.email.identity"==e&&(t.emailSid=this._emailSid),this._stateUpdatedCallback(e,t)},_chooseStage:function(){null===this._chosenFlow&&(this._chosenFlow=this._chooseFlow()),a.a.log("Active flow => %s",JSON.stringify(this._chosenFlow));const e=this._firstUncompletedStage(this._chosenFlow);return a.a.log("Next stage: %s",e),e},_chooseFlow:function(){const e=this._data.flows||[],t=Boolean(this._inputs.emailAddress)||Boolean(this._emailSid),n=Boolean(this._inputs.phoneCountry)&&Boolean(this._inputs.phoneNumber);for(const o of e){let e=!1,r=!1;for(const t of o.stages)"m.login.email.identity"===t?e=!0:"m.login.msisdn"==t&&(r=!0);if(e==t&&r==n)return o}const o=new Error("No appropriate authentication flow found");throw o.name="NoAuthFlowFoundError",o.required_stages=[],t&&o.required_stages.push("m.login.email.identity"),n&&o.required_stages.push("m.login.msisdn"),o.available_flows=e,o},_firstUncompletedStage:function(e){const t=(this._data||{}).completed||[];for(let n=0;n<e.stages.length;++n){const o=e.stages[n];if(-1===t.indexOf(o))return o}}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d}));var o=n(262),r=n(1),i=n(6),a=n(25),s=n(848),c=n(200),l=n(129),u=n(0);function d(t){if(o.a.call(this,t),!t.indexedDB)throw new Error("Missing required option: indexedDB");if(t.workerScript){let n=t.workerApi;n||(n=e.Worker),this.backend=new s.a(t.workerScript,t.dbName,n)}else this.backend=new a.a(t.indexedDB,t.dbName);this.startedUp=!1,this._syncTs=0,this._userModifiedMap={}}function h(e,t){return async function(...n){try{return await e.call(this,...n)}catch(e){u.a.error("IndexedDBStore failure, degrading to MemoryStore",e),this.emit("degraded",e);try{u.a.log("IndexedDBStore trying to delete degraded data"),await this.backend.clearDatabase(),u.a.log("IndexedDBStore delete after degrading succeeeded")}catch(e){u.a.warn("IndexedDBStore delete after degrading failed",e)}if(Object.setPrototypeOf(this,o.a.prototype),t)return await o.a.prototype[t].call(this,...n)}}}r.o(d,o.a),r.i(d.prototype,i.EventEmitter.prototype),d.exists=function(e,t){return a.a.exists(e,t)},d.prototype.startup=function(){return this.startedUp?(u.a.log("IndexedDBStore.startup: already started"),Promise.resolve()):(u.a.log("IndexedDBStore.startup: connecting to backend"),this.backend.connect().then(()=>(u.a.log("IndexedDBStore.startup: loading presence events"),this.backend.getUserPresenceEvents())).then(e=>{u.a.log("IndexedDBStore.startup: processing presence events"),e.forEach(([e,t])=>{const n=new c.a(e);t&&n.setPresenceEvent(new l.b(t)),this._userModifiedMap[n.userId]=n.getLastModifiedTime(),this.storeUser(n)})}))},d.prototype.getSavedSync=h((function(){return this.backend.getSavedSync()}),"getSavedSync"),d.prototype.isNewlyCreated=h((function(){return this.backend.isNewlyCreated()}),"isNewlyCreated"),d.prototype.getSavedSyncToken=h((function(){return this.backend.getNextBatchToken()}),"getSavedSyncToken"),d.prototype.deleteAllData=h((function(){return o.a.prototype.deleteAllData.call(this),this.backend.clearDatabase().then(()=>{u.a.log("Deleted indexeddb data.")},e=>{throw u.a.error("Failed to delete indexeddb data: "+e),e})})),d.prototype.wantsSave=function(){return Date.now()-this._syncTs>3e5},d.prototype.save=function(e){return e||this.wantsSave()?this._reallySave():Promise.resolve()},d.prototype._reallySave=h((function(){this._syncTs=Date.now();const e=[];for(const t of this.getUsers())this._userModifiedMap[t.userId]!==t.getLastModifiedTime()&&t.events.presence&&(e.push([t.userId,t.events.presence.event]),this._userModifiedMap[t.userId]=t.getLastModifiedTime());return this.backend.syncToDatabase(e)})),d.prototype.setSyncData=h((function(e){return this.backend.setSyncData(e)}),"setSyncData"),d.prototype.getOutOfBandMembers=h((function(e){return this.backend.getOutOfBandMembers(e)}),"getOutOfBandMembers"),d.prototype.setOutOfBandMembers=h((function(e,t){return o.a.prototype.setOutOfBandMembers.call(this,e,t),this.backend.setOutOfBandMembers(e,t)}),"setOutOfBandMembers"),d.prototype.clearOutOfBandMembers=h((function(e){return o.a.prototype.clearOutOfBandMembers.call(this),this.backend.clearOutOfBandMembers(e)}),"clearOutOfBandMembers"),d.prototype.getClientOptions=h((function(){return this.backend.getClientOptions()}),"getClientOptions"),d.prototype.storeClientOptions=h((function(e){return o.a.prototype.storeClientOptions.call(this,e),this.backend.storeClientOptions(e)}),"storeClientOptions")}).call(this,n(5))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(1);n(0);const r="session.e2e.";function i(e){if(this.store=e,!(o.q(e.getItem)&&o.q(e.setItem)&&o.q(e.removeItem)&&o.q(e.key)&&"number"==typeof e.length))throw new Error("Supplied webStore does not meet the WebStorage API interface")}i.prototype={removeEndToEndAccount:function(){this.store.removeItem(a)},getEndToEndAccount:function(){return this.store.getItem(a)},getAllEndToEndDevices:function(){const e=u(""),t={};for(let n=0;n<this.store.length;++n){const o=this.store.key(n),r=o.substr(e.length);o.startsWith(e)&&(t[r]=p(this.store,o))}return t},getEndToEndDeviceTrackingStatus:function(){return p(this.store,c)},getEndToEndDeviceSyncToken:function(){return p(this.store,s)},removeEndToEndDeviceData:function(){g(this.store,u("")),g(this.store,c),g(this.store,s)},getEndToEndSessions:function(e){return p(this.store,d(e))},getAllEndToEndSessions:function(){const e=m(this.store,d("")),t={};for(const n of e){t[n.substr(d("").length)]=p(this.store,n)}return t},removeAllEndToEndSessions:function(){g(this.store,d(""))},getAllEndToEndInboundGroupSessionKeys:function(){const e=r+"inboundgroupsessions/",t=[];for(let n=0;n<this.store.length;n++){const o=this.store.key(n);o.startsWith(e)&&t.push({senderKey:o.substr(e.length,43),sessionId:o.substr(e.length+44)})}return t},getEndToEndInboundGroupSession:function(e,t){const n=function(e,t){return r+"inboundgroupsessions/"+e+"/"+t}(e,t);return this.store.getItem(n)},removeAllEndToEndInboundGroupSessions:function(){g(this.store,r+"inboundgroupsessions/")},getAllEndToEndRooms:function(){const e=m(this.store,h("")),t={};for(const n of e){t[n.substr(h("").length)]=p(this.store,n)}return t},removeAllEndToEndRooms:function(){g(this.store,h(""))},setLocalTrustedBackupPubKey:function(e){this.store.setItem(l,e)},getLocalTrustedBackupPubKey:function(){return this.store.getItem(l)}};const a=r+"account",s=r+"device_sync_token",c=r+"device_tracking",l=r+"trusted_backup_pubkey";function u(e){return r+"devices/"+e}function d(e){return r+"sessions/"+e}function h(e){return r+"rooms/"+e}function p(e,t){try{return JSON.parse(e.getItem(t))}catch(e){f("Failed to get key %s: %s",t,e),f(e.stack)}return null}function m(e,t){const n=[];for(let o=0;o<e.length;++o){const r=e.key(o);r.startsWith(t)&&n.push(r)}return n}function g(e,t){const n=[];for(let o=0;o<e.length;++o){const r=e.key(o);r.startsWith(t)&&n.push(r)}for(const t of n)e.removeItem(t)}function f(){0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(){this._acquired=!1,this._waitingResolvers=[]}acquireAsync(){return this._acquired?new Promise(e=>{this._waitingResolvers.push(e)}):(this._acquired=!0,Promise.resolve())}tryAcquire(){return!this._acquired&&(this._acquired=!0,!0)}release(){if(!this._acquired)throw new Error("Cannot release an unacquired lock");if(this._waitingResolvers.length>0){this._waitingResolvers.shift()()}else this._acquired=!1}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var o=n(81);const r=(e,t)=>{const n=Object(o.useRef)();Object(o.useEffect)(()=>{n.current=e},[e]),Object(o.useEffect)(()=>{const e=setTimeout(()=>{n.current()},t);return()=>clearTimeout(e)},[t])},i=(e,t,n)=>{const[r,i]=Object(o.useState)(n);return((e,t)=>{const n=Object(o.useRef)();Object(o.useEffect)(()=>{n.current=e},[e]),Object(o.useEffect)(()=>{const e=setInterval(()=>{n.current()},t);return()=>clearInterval(e)},[t])})(()=>i(e=>e-1),t),0===r&&e(),r}},function(e,t,n){"use strict";var o=n(177),r=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._dispatcher=function(e){e&&e.length||o(!1),!1;return e[0].getDispatcher()}(t);var i=t.map((function(e){return e.getDispatchToken()}));this._dispatchToken=this._dispatcher.register((function(e){r._dispatcher.waitFor(i),n()}))}return e.prototype.release=function(){this._dispatcher.unregister(this._dispatchToken)},e}();e.exports=r},function(e,t,n){"use strict";var o=n(545),r=n(859),i=n(177),a=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this._state=this.getInitialState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getState=function(){return this._state},t.prototype.getInitialState=function(){return r("FluxReduceStore","getInitialState")},t.prototype.reduce=function(e,t){return r("FluxReduceStore","reduce")},t.prototype.areEqual=function(e,t){return e===t},t.prototype.__invokeOnDispatch=function(e){this.__changed=!1;var t=this._state,n=this.reduce(t,e);void 0===n&&i(!1),this.areEqual(t,n)||(this._state=n,this.__emitChange()),this.__changed&&this.__emitter.emit(this.__changeEvent)},t}(o);e.exports=a},function(e,t,n){"use strict";var o=n(854).EventEmitter,r=n(177),i=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__className=this.constructor.name,this.__changed=!1,this.__changeEvent="change",this.__dispatcher=t,this.__emitter=new o,this._dispatchToken=t.register((function(e){n.__invokeOnDispatch(e)}))}return e.prototype.addListener=function(e){return this.__emitter.addListener(this.__changeEvent,e)},e.prototype.getDispatcher=function(){return this.__dispatcher},e.prototype.getDispatchToken=function(){return this._dispatchToken},e.prototype.hasChanged=function(){return this.__dispatcher.isDispatching()||r(!1),this.__changed},e.prototype.__emitChange=function(){this.__dispatcher.isDispatching()||r(!1),this.__changed=!0},e.prototype.__invokeOnDispatch=function(e){this.__changed=!1,this.__onDispatch(e),this.__changed&&this.__emitter.emit(this.__changeEvent)},e.prototype.__onDispatch=function(e){r(!1)},e}();e.exports=i},function(e,t,n){"use strict";var o=function(e){function t(n,o,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this.listener=o,this.context=r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n(856));e.exports=o},function(e,t,n){"use strict";e.exports=function(e,t,n,o,r,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,r,i,a,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));const o=new Map;function r(e,t){o.set(e,t)}function i(e){return o.get(e)}},function(e,t,n){e.exports={default:n(864),__esModule:!0}},function(e,t,n){e.exports=!n(182)&&!n(231)((function(){return 7!=Object.defineProperty(n(551)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var o=n(230),r=n(180).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){var o=n(204),r=n(232),i=n(398)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(179),r=n(131),i=n(231);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i((function(){n(1)})),"Object",a)}},function(e,t,n){"use strict";var o=n(871)(!0);n(555)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var o=n(326),r=n(179),i=n(556),a=n(228),s=n(272),c=n(872),l=n(405),u=n(552),d=n(151)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,m,g,f,_){c(n,t,m);var b,v,E,y=function(e){if(!h&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",T="values"==g,w=!1,C=e.prototype,x=C[d]||C["@@iterator"]||g&&C[g],O=x||y(g),k=g?T?y("entries"):O:void 0,R="Array"==t&&C.entries||x;if(R&&(E=u(R.call(new e)))!==Object.prototype&&E.next&&(l(E,S,!0),o||"function"==typeof E[d]||a(E,d,p)),T&&x&&"values"!==x.name&&(w=!0,O=function(){return x.call(this)}),o&&!_||!h&&!w&&C[d]||a(C,d,O),s[t]=O,s[S]=p,g)if(b={values:T?O:y("values"),keys:f?O:y("keys"),entries:k},_)for(v in b)v in C||i(C,v,b[v]);else r(r.P+r.F*(h||w),t,b);return b}},function(e,t,n){e.exports=n(228)},function(e,t,n){var o=n(204),r=n(233),i=n(874)(!1),a=n(398)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),c=0,l=[];for(n in s)n!=a&&o(s,n)&&l.push(n);for(;t.length>c;)o(s,n=t[c++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var o=n(403);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){var o=n(401),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){var o=n(557),r=n(404).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(328),r=n(271),i=n(233),a=n(396),s=n(204),c=n(550),l=Object.getOwnPropertyDescriptor;t.f=n(182)?l:function(e,t){if(e=i(e),t=a(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t,n){"use strict";t.__esModule=!0,t.compose=t.applyMiddleware=t.bindActionCreators=t.combineReducers=t.createStore=void 0;var o=c(n(563)),r=c(n(909)),i=c(n(910)),a=c(n(911)),s=c(n(567));c(n(566));function c(e){return e&&e.__esModule?e:{default:e}}t.createStore=o.default,t.combineReducers=r.default,t.bindActionCreators=i.default,t.applyMiddleware=a.default,t.compose=s.default},function(e,t,n){"use strict";t.__esModule=!0,t.ActionTypes=void 0,t.default=function e(t,n,i){var s;"function"==typeof n&&void 0===i&&(i=n,n=void 0);if(void 0!==i){if("function"!=typeof i)throw new Error("Expected the enhancer to be a function.");return i(e)(t,n)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var c=t,l=n,u=[],d=u,h=!1;function p(){d===u&&(d=u.slice())}function m(){return l}function g(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return p(),d.push(e),function(){if(t){t=!1,p();var n=d.indexOf(e);d.splice(n,1)}}}function f(e){if(!(0,o.default)(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(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,l=c(l,e)}finally{h=!1}for(var t=u=d,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:a.INIT}),(s={dispatch:f,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,f({type:a.INIT})}})[r.default]=function(){var e,t=g;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(m())}return n(),{unsubscribe:t(n)}}})[r.default]=function(){return this},e},s};var o=i(n(564)),r=i(n(907));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t,n){var o=n(899),r=n(904),i=n(906),a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=o(e))return!1;var t=r(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},function(e,t,n){var o=n(900).Symbol;e.exports=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};if(1===t.length)return t[0];return t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(132),i=(o=r)&&o.__esModule?o:{default:o};t.default=(0,i.default)((function(e){return e.reduce((function(e,t){return e[t.draggableId]=t,e}),{})}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(409),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e){var t=(0,i.default)(e.top,e.bottom),n=(0,i.default)(e.left,e.right);return function(o){if(t(o.top)&&t(o.bottom)&&n(o.left)&&n(o.right))return!0;var r=t(o.top)||t(o.bottom),i=n(o.left)||n(o.right);if(r&&i)return!0;var a=o.top<e.top&&o.bottom>e.bottom,s=o.left<e.left&&o.right>e.right;return!(!a||!s)||(a&&i||s&&r)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(125),i=n(274),a=n(410),s=(o=a)&&o.__esModule?o:{default:o};t.default=function(e){var t=e.draggable,n=e.destination,o=e.newCenter,a=e.viewport,c=(0,r.subtract)(o,t.page.withMargin.center),l=(0,i.offset)(t.page.withMargin,c);return(0,s.default)({target:l,destination:n,viewport:a})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.css=t.physics=void 0;var o,r=n(205),i=(o=r)&&o.__esModule?o:{default:o};var a;t.physics=(a={stiffness:1e3,damping:60,precision:.99},{standard:(0,i.default)({},a),fast:(0,i.default)({},a,{stiffness:2*a.stiffness})}),t.css={outOfTheWay:"transform 0.2s cubic-bezier(0.2, 0, 0, 1)"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lift=t.dropAnimationFinished=t.cancel=t.drop=t.completeDrop=t.prepare=t.clean=t.crossAxisMoveBackward=t.crossAxisMoveForward=t.moveForward=t.moveBackward=t.moveByWindowScroll=t.move=t.updateDroppableDimensionIsEnabled=t.updateDroppableDimensionScroll=t.publishDroppableDimensions=t.publishDraggableDimensions=t.completeLift=t.requestDimensions=void 0;var o=a(n(330)),r=a(n(949)),i=n(125);function a(e){return e&&e.__esModule?e:{default:e}}var s={x:0,y:0},c=function(e){var t=e.initial,n=e.current,o=e.droppable,r=(0,i.subtract)(t.windowScroll,n.windowScroll),a=o?o.viewport.frameScroll.diff.displacement:s;return(0,i.add)(r,a)},l=t.requestDimensions=function(e){return{type:"REQUEST_DIMENSIONS",payload:e}},u=t.completeLift=function(e,t,n,o){return{type:"COMPLETE_LIFT",payload:{id:e,client:t,windowScroll:n,isScrollAllowed:o}}},d=(t.publishDraggableDimensions=function(e){return{type:"PUBLISH_DRAGGABLE_DIMENSIONS",payload:e}},t.publishDroppableDimensions=function(e){return{type:"PUBLISH_DROPPABLE_DIMENSIONS",payload:e}},t.updateDroppableDimensionScroll=function(e,t){return{type:"UPDATE_DROPPABLE_DIMENSION_SCROLL",payload:{id:e,offset:t}}},t.updateDroppableDimensionIsEnabled=function(e,t){return{type:"UPDATE_DROPPABLE_DIMENSION_IS_ENABLED",payload:{id:e,isEnabled:t}}},t.move=function(e,t,n){return{type:"MOVE",payload:{id:e,client:t,windowScroll:n}}},t.moveByWindowScroll=function(e,t){return{type:"MOVE_BY_WINDOW_SCROLL",payload:{id:e,windowScroll:t}}},t.moveBackward=function(e){return{type:"MOVE_BACKWARD",payload:e}},t.moveForward=function(e){return{type:"MOVE_FORWARD",payload:e}},t.crossAxisMoveForward=function(e){return{type:"CROSS_AXIS_MOVE_FORWARD",payload:e}},t.crossAxisMoveBackward=function(e){return{type:"CROSS_AXIS_MOVE_BACKWARD",payload:e}},t.clean=function(){return{type:"CLEAN",payload:null}}),h=t.prepare=function(){return{type:"PREPARE",payload:null}},p=function(e){return{type:"DROP_ANIMATE",payload:{trigger:e.trigger,newHomeOffset:e.newHomeOffset,impact:e.impact,result:e.result}}},m=t.completeDrop=function(e){return{type:"DROP_COMPLETE",payload:e}};t.drop=function(){return function(e,t){var n=t();if("PREPARING"!==n.phase&&"COLLECTING_INITIAL_DIMENSIONS"!==n.phase){if("DRAGGING"!==n.phase)return console.error("not able to drop in phase: '"+n.phase+"'"),void e(d());if(!n.drag)return console.error("not able to drop when there is invalid drag state",n),void e(d());var o=n.drag,a=o.impact,s=o.initial,l=o.current,u=s.descriptor,h=n.dimension.draggable[s.descriptor.id],g=n.dimension.droppable[h.descriptor.droppableId],f=a.destination?n.dimension.droppable[a.destination.droppableId]:null,_={droppableId:u.droppableId,index:u.index},b={draggableId:u.id,type:g.descriptor.type,source:_,destination:a.destination},v=(0,r.default)({movement:a.movement,draggable:h,draggables:n.dimension.draggable,destination:f}),E=(0,i.subtract)(v,h.client.withMargin.center),y=c({initial:s,current:l,droppable:f||g}),S=(0,i.add)(E,y);e(!(0,i.isEqual)(l.client.offset,S)?p({trigger:"DROP",newHomeOffset:S,impact:a,result:b}):m(b))}else e(d())}},t.cancel=function(){return function(e,t){var n=t();if("DRAGGING"===n.phase){if(!n.drag)return console.error("invalid drag state",n),void e(d());var r=n.drag,a=r.initial,l=r.current,u=a.descriptor,h=n.dimension.droppable[u.droppableId],g={index:u.index,droppableId:u.droppableId},f={draggableId:u.id,type:h.descriptor.type,source:g,destination:null};if(!(0,i.isEqual)(l.client.offset,s)){var _=c({initial:a,current:l,droppable:h});e(p({trigger:"CANCEL",newHomeOffset:_,impact:o.default,result:f}))}else e(m(f))}else e(d())}},t.dropAnimationFinished=function(){return function(e,t){var n=t();return"DROP_ANIMATING"!==n.phase?(console.error("cannot end drop that is no longer animating",n),void e(d())):n.drop&&n.drop.pending?void e(m(n.drop.pending.result)):(console.error("cannot end drop that has no pending state",n),void e(d()))}},t.lift=function(e,t,n,o){return function(r,i){var a=i();"DROP_ANIMATING"===a.phase&&(a.drop&&a.drop.pending?r(m(a.drop.pending.result)):(console.error("cannot flush drop animation if there is no pending"),r(d()))),r(h()),setTimeout((function(){"PREPARING"===i().phase&&(r(l(e)),setTimeout((function(){"COLLECTING_INITIAL_DIMENSIONS"===i().phase&&r(u(e,t,n,o))})))}))}}},function(e,t,n){"use strict";var o=n(106),r=n(141);t.__esModule=!0;var i=r(n(952));t.Provider=i.default,t.createProvider=i.createProvider;var a=o(n(576));t.connectAdvanced=a.default;var s=o(n(957));t.connect=s.default},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";var o=n(106);t.__esModule=!0,t.storeShape=t.subscriptionShape=void 0;var r=o(n(84)),i=r.default.shape({trySubscribe:r.default.func.isRequired,tryUnsubscribe:r.default.func.isRequired,notifyNestedSubs:r.default.func.isRequired,isSubscribed:r.default.func.isRequired});t.subscriptionShape=i;var a=r.default.shape({subscribe:r.default.func.isRequired,dispatch:r.default.func.isRequired,getState:r.default.func.isRequired});t.storeShape=a},function(e,t,n){"use strict";var o=n(141),r=n(106);t.__esModule=!0,t.default=function(e,t){var n,o;void 0===t&&(t={});var r=t,v=r.getDisplayName,E=void 0===v?function(e){return"ConnectAdvanced("+e+")"}:v,y=r.methodName,S=void 0===y?"connectAdvanced":y,T=r.renderCountProp,w=void 0===T?void 0:T,C=r.shouldHandleStateChanges,x=void 0===C||C,O=r.storeKey,k=void 0===O?"store":O,R=r.withRef,A=void 0!==R&&R,I=(0,c.default)(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),D=k+"Subscription",N=f++,F=((n={})[k]=m.storeShape,n[D]=m.subscriptionShape,n),M=((o={})[D]=m.subscriptionShape,o);return function(t){(0,u.default)((0,h.isValidElementType)(t),"You must pass a component to the function returned by "+S+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=E(n),r=(0,s.default)({},I,{getDisplayName:E,methodName:S,renderCountProp:w,shouldHandleStateChanges:x,storeKey:k,withRef:A,displayName:o,wrappedComponentName:n,WrappedComponent:t}),c=function(n){function c(e,t){var r;return(r=n.call(this,e,t)||this).version=N,r.state={},r.renderCount=0,r.store=e[k]||t[k],r.propsMode=Boolean(e[k]),r.setWrappedInstance=r.setWrappedInstance.bind((0,a.default)((0,a.default)(r))),(0,u.default)(r.store,'Could not find "'+k+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+k+'" as a prop to "'+o+'".'),r.initSelector(),r.initSubscription(),r}(0,i.default)(c,n);var l=c.prototype;return l.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[D]=t||this.context[D],e},l.componentDidMount=function(){x&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},l.componentWillReceiveProps=function(e){this.selector.run(e)},l.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},l.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=b,this.store=null,this.selector.run=b,this.selector.shouldComponentUpdate=!1},l.getWrappedInstance=function(){return(0,u.default)(A,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+S+"() call."),this.wrappedInstance},l.setWrappedInstance=function(e){this.wrappedInstance=e},l.initSelector=function(){var t=e(this.store.dispatch,r);this.selector=function(e,t){var n={run:function(o){try{var r=e(t.getState(),o);(r!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=r,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},l.initSubscription=function(){if(x){var e=(this.propsMode?this.props:this.context)[D];this.subscription=new p.default(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},l.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(_)):this.notifyNestedSubs()},l.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},l.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},l.addExtraProps=function(e){if(!(A||w||this.propsMode&&this.subscription))return e;var t=(0,s.default)({},e);return A&&(t.ref=this.setWrappedInstance),w&&(t[w]=this.renderCount++),this.propsMode&&this.subscription&&(t[D]=this.subscription),t},l.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return(0,d.createElement)(t,this.addExtraProps(e.props))},c}(d.Component);return g&&(c.prototype.UNSAFE_componentWillReceiveProps=c.prototype.componentWillReceiveProps,delete c.prototype.componentWillReceiveProps),c.WrappedComponent=t,c.displayName=o,c.childContextTypes=M,c.contextTypes=F,c.propTypes=F,(0,l.default)(c,t)}};var i=r(n(411)),a=r(n(953)),s=r(n(191)),c=r(n(332)),l=r(n(954)),u=r(n(578)),d=o(n(81)),h=n(577),p=r(n(956)),m=n(575),g=void 0!==d.default.forwardRef,f=0,_={};function b(){}},function(e,t,n){"use strict";e.exports=n(955)},function(e,t,n){"use strict";e.exports=function(e,t,n,o,r,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,r,i,a,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var o=n(106);t.__esModule=!0,t.wrapMapToPropsConstant=function(e){return function(t,n){var o=e(t,n);function r(){return o}return r.dependsOnOwnProps=!1,r}},t.getDependsOnOwnProps=r,t.wrapMapToPropsFunc=function(e,t){return function(t,n){n.displayName;var o=function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e)};return o.dependsOnOwnProps=!0,o.mapToProps=function(t,n){o.mapToProps=e,o.dependsOnOwnProps=r(e);var i=o(t,n);return"function"==typeof i&&(o.mapToProps=i,o.dependsOnOwnProps=r(i),i=o(t,n)),i},o}};o(n(580));function r(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}},function(e,t,n){"use strict";var o=n(106);t.__esModule=!0,t.default=function(e,t,n){(0,r.default)(e)||(0,i.default)(n+"() in "+t+" must return a plain object. Instead received "+e+".")};var r=o(n(960)),i=o(n(412))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[],n=null,o=function(){for(var o=arguments.length,r=Array(o),i=0;i<o;i++)r[i]=arguments[i];return t=r,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return o.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(970);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(422)),i=n(334),a=(o=i)&&o.__esModule?o:{default:o};var s=[r.enter,r.tab];t.default=function(e){s.indexOf(e.keyCode)>=0&&(0,a.default)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(234),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e){return(0,i.default)(e.getBoundingClientRect()).center}},function(e,t,n){"use strict";(function(e){var o=n(82),r=n.n(o),i=n(87),a=n(6),s=n.n(a),c=n(105),l=n(88),u=n(142),d=n(173),h=n(120),p=n(145);function m(e,t){const n=Math.min(e.length,t.length);let o;for(let r=0;r<n;++r)if(e.charAt(r)!==t.charAt(r)){o=e.substr(0,r);break}void 0===o&&(o=e.substr(0,n));const r=o.indexOf(" ");return-1!==r&&(o=o.substr(0,r+1)),o.length>=2?o:""}class g extends s.a{constructor(){super(),r()(this,"_onListsUpdated",()=>{const e=this._getUpdatedTags();this._state.tags&&!Object(p.c)(this._state.tags,e)||this._setState({tags:e})}),this._state={tags:{}},this._getUpdatedTags=Object(c.throttle)(this._getUpdatedTags,500,{leading:!0,trailing:!0}),u.b.instance.on(u.a,this._onListsUpdated),i.a.register(e=>this._onDispatch(e))}getTags(){return this._state.tags}_setState(e){this._state=Object.assign(this._state,e),this.emit("change")}addListener(e){return this.on("change",e),{remove:()=>{this.removeListener("change",e)}}}getSortedTags(){const e=Object.keys(this._state.tags).sort(),t=e.map((t,n)=>{const o=0===n,r=n===e.length-1,i=o?"":m(t,e[n-1]),a=r?"":m(t,e[n+1]);return i.length>a.length?i:a});return e.map((e,n)=>{const o=d.a.instance.getListState(e);let r;o.hasUnreadCount&&(r=o);const i=e.substr(t[n].length,1);return{name:e,avatarLetter:i,badgeNotifState:r,selected:this._state.tags[e]}})}_onDispatch(e){switch(e.action){case"select_custom_room_tag":{const t=this._state.tags;if(t.hasOwnProperty(e.tag)){const n={};n[e.tag]=!t[e.tag];const o=Object.assign({},t,n);this._setState({tags:o})}}break;case"on_client_not_viable":case"on_logged_out":this._state={tags:{}},u.b.instance.off(u.a,this._onListsUpdated)}}_getUpdatedTags(){if(!l.a.getValue("feature_custom_tags"))return{};const e=Object.keys(u.b.instance.orderedLists).filter(e=>Object(h.d)(e)).sort(),t=this._state&&this._state.tags;return e.reduce((e,n)=>(e[n]=t&&t[n]||!1,e),{})}}void 0===e.singletonCustomRoomTagStore&&(e.singletonCustomRoomTagStore=new g),t.a=e.singletonCustomRoomTagStore}).call(this,n(5))},function(e,t,n){"use strict";function o(e){return Object.keys(e).filter(t=>["string","number"].includes(typeof e[t])).map(t=>e[t])}function r(e,t){return o(e).includes(t)}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}))},function(e,t,n){"use strict";function o(e,t){const n=t.getUserId();for(const t of Object.keys(e.getContent())){if(Object.keys(e.getContent()[t]["m.read"]||{}).includes(n))return!0}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n(86),r=n(276),i=n(206);function a(e){return(!e.sender||e.sender.userId!=o.a.get().credentials.userId)&&("m.room.member"!=e.getType()&&("m.room.third_party_invite"!=e.getType()&&("m.call.answer"!=e.getType()&&"m.call.hangup"!=e.getType()&&(("m.room.message"!=e.getType()||"m.notify"!=e.getContent().msgtype)&&("m.room.aliases"!=e.getType()&&"m.room.canonical_alias"!=e.getType()&&("m.room.server_acl"!=e.getType()&&Object(i.b)(e)))))))}function s(e){const t=o.a.get().credentials.userId,n=e.getEventReadUpTo(t);if(e.timeline.length&&e.timeline[e.timeline.length-1].sender&&e.timeline[e.timeline.length-1].sender.userId===t)return!1;for(let t=e.timeline.length-1;t>=0;--t){const o=e.timeline[t];if(o.getId()==n)return!1;if(!Object(r.a)(o)&&a(o))return!0}return!0}},function(e,t,n){"use strict";var o=String.prototype.replace,r=/%20/g,i=n(423),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return o.call(e,r,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var o=n(424);const r="https://matrix.to";class i extends o.b{constructor(){super()}forEvent(e,t,n){return`${r}/#/${e}/${t}${this.encodeServerCandidates(n)}`}forRoom(e,t){return`${r}/#/${e}${this.encodeServerCandidates(t)}`}forUser(e){return`${r}/#/${e}`}forGroup(e){return`${r}/#/${e}`}forEntity(e){return`${r}/#/${e}`}isPermalinkHost(e){return"matrix.to"===e}encodeServerCandidates(e){return e&&0!==e.length?"?via="+e.map(e=>encodeURIComponent(e)).join("&via="):""}parsePermalink(e){if(!e||!e.startsWith(r))throw new Error("Does not appear to be a permalink");const t=e.substring((r+"/#/").length).split("/"),n=t[0];if("@"===n[0])return o.a.forUser(n);if("+"===n[0])return o.a.forGroup(n);if("#"===n[0]||"!"===n[0]){if(1===t.length){const[e,t=""]=n.split("?"),r=t.split(/&?via=/g).filter(e=>!!e);return o.a.forRoom(e,r)}const e=t.length>1?t.slice(1).join("/"):"",[r,i=""]=e.split("?"),a=i.split(/&?via=/g).filter(e=>!!e);return o.a.forEvent(n,r,a)}throw new Error("Unknown entity type in permalink")}}},function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var o=n(336);var r=function(e){this.j=[],this.T=e||null};r.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)this.j.push([e[n],t]);return this}return this.j.push([e,t]),this},next:function(e){for(var t=0;t<this.j.length;t++){var n=this.j[t],o=n[0],r=n[1];if(this.test(e,o))return r}return this.defaultTransition},accepts:function(){return!!this.T},test:function(e,t){return e===t},emit:function(){return this.T}};var i=(0,o.inherits)(r,(function(e){this.j=[],this.T=e||null}),{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),a=(0,o.inherits)(r,(function(e){this.j=[],this.T=e||null}),{jump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});t.CharacterState=i,t.TokenState=a,t.stateify=function(e,t,n,o){for(var r=0,a=e.length,s=t,c=[],l=void 0;r<a&&(l=s.next(e[r]));)s=l,r++;if(r>=a)return[];for(;r<a-1;)l=new i(o),c.push(l),s.on(e[r],l),s=l,r++;return l=new i(n),c.push(l),s.on(e[a-1],l),c}},function(e,t,n){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},function(e,t,n){(e.exports=n(595)).version=n(1200).version},function(e,t,n){var o=n(337),r=n(341).default,i=n(341).flatten,a=n(283).isHtml,s={extend:n(627),bind:n(452),forEach:n(350),defaults:n(641)},c=[n(1101),n(1181),n(1188),n(1191),n(1197)],l=e.exports=function(e,t,n,c){return this instanceof l?(this.options=s.defaults(i(c),this.options,r),e?(n&&("string"==typeof n&&(n=o(n,this.options,!1)),this._root=l.call(this,n)),e.cheerio?e:(u(e)&&(e=[e]),Array.isArray(e)?(s.forEach(e,s.bind((function(e,t){this[t]=e}),this)),this.length=e.length,this):"string"==typeof e&&a(e)?l.call(this,o(e,this.options,!1).children):(t?"string"==typeof t?a(t)?(t=o(t,this.options,!1),t=l.call(this,t)):(e=[t,e].join(" "),t=this._root):t.cheerio||(t=l.call(this,t)):t=this._root,t?t.find(e):this))):this):new l(e,t,n,c)};s.extend(l,n(457)),l.prototype.cheerio="[cheerio object]",l.prototype.length=0,l.prototype.splice=Array.prototype.splice,l.prototype._make=function(e,t){var n=new this.constructor(e,t,this._root,this.options);return n.prevObject=this,n},l.prototype.toArray=function(){return this.get()},c.forEach((function(e){s.extend(l.prototype,e)}));var u=function(e){return e.name||"text"===e.type||"comment"===e.type}},function(e,t,n){var o=n(597),r={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},i={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:r,input:r,output:r,button:r,datalist:r,textarea:r,option:{option:!0},optgroup:{optgroup:!0}},a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},s={__proto__:null,math:!0,svg:!0},c={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0,foreignObject:!0,desc:!0,title:!0},l=/\s|\//;function u(e,t){this._options=t||{},this._cbs=e||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this._foreignContext=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(o=this._options.Tokenizer),this._tokenizer=new o(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}n(152)(u,n(6).EventEmitter),u.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},u.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},u.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in i)for(var t;(t=this._stack[this._stack.length-1])in i[e];this.onclosetag(t));!this._options.xmlMode&&e in a||(this._stack.push(e),e in s?this._foreignContext.push(!0):e in c&&this._foreignContext.push(!1)),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},u.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in a&&this._cbs.onclosetag(this._tagname),this._tagname=""},u.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),(e in s||e in c)&&this._foreignContext.pop(),!this._stack.length||e in a&&!this._options.xmlMode)this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},u.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing||this._foreignContext[this._foreignContext.length-1]?this._closeCurrentTag():this.onopentagend()},u.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},u.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},u.prototype.onattribdata=function(e){this._attribvalue+=e},u.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},u.prototype._getInstructionName=function(e){var t=e.search(l),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},u.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},u.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},u.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},u.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},u.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},u.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},u.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},u.prototype.parseComplete=function(e){this.reset(),this.end(e)},u.prototype.write=function(e){this._tokenizer.write(e)},u.prototype.end=function(e){this._tokenizer.end(e)},u.prototype.pause=function(){this._tokenizer.pause()},u.prototype.resume=function(){this._tokenizer.resume()},u.prototype.parseChunk=u.prototype.write,u.prototype.done=u.prototype.end,e.exports=u},function(e,t,n){e.exports=fe;var o=n(598),r=n(429),i=n(599),a=n(430),s=0,c=s++,l=s++,u=s++,d=s++,h=s++,p=s++,m=s++,g=s++,f=s++,_=s++,b=s++,v=s++,E=s++,y=s++,S=s++,T=s++,w=s++,C=s++,x=s++,O=s++,k=s++,R=s++,A=s++,I=s++,D=s++,N=s++,F=s++,M=s++,P=s++,L=s++,U=s++,B=s++,j=s++,G=s++,q=s++,H=s++,V=s++,z=s++,K=s++,W=s++,Y=s++,$=s++,Q=s++,X=s++,J=s++,Z=s++,ee=s++,te=s++,ne=s++,oe=s++,re=s++,ie=s++,ae=s++,se=s++,ce=s++,le=0,ue=le++,de=le++,he=le++;function pe(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function me(e,t,n){var o=e.toLowerCase();return e===o?function(e){e===o?this._state=t:(this._state=n,this._index--)}:function(r){r===o||r===e?this._state=t:(this._state=n,this._index--)}}function ge(e,t){var n=e.toLowerCase();return function(o){o===n||o===e?this._state=t:(this._state=u,this._index--)}}function fe(e,t){this._state=c,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=c,this._special=ue,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}fe.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=l,this._sectionStart=this._index):this._decodeEntities&&this._special===ue&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=c,this._state=re,this._sectionStart=this._index)},fe.prototype._stateBeforeTagName=function(e){"/"===e?this._state=h:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||this._special!==ue||pe(e)?this._state=c:"!"===e?(this._state=S,this._sectionStart=this._index+1):"?"===e?(this._state=w,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?u:U,this._sectionStart=this._index)},fe.prototype._stateInTagName=function(e){("/"===e||">"===e||pe(e))&&(this._emitToken("onopentagname"),this._state=g,this._index--)},fe.prototype._stateBeforeCloseingTagName=function(e){pe(e)||(">"===e?this._state=c:this._special!==ue?"s"===e||"S"===e?this._state=B:(this._state=c,this._index--):(this._state=p,this._sectionStart=this._index))},fe.prototype._stateInCloseingTagName=function(e){(">"===e||pe(e))&&(this._emitToken("onclosetag"),this._state=m,this._index--)},fe.prototype._stateAfterCloseingTagName=function(e){">"===e&&(this._state=c,this._sectionStart=this._index+1)},fe.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=c,this._sectionStart=this._index+1):"/"===e?this._state=d:pe(e)||(this._state=f,this._sectionStart=this._index)},fe.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=c,this._sectionStart=this._index+1):pe(e)||(this._state=g,this._index--)},fe.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||pe(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=_,this._index--)},fe.prototype._stateAfterAttributeName=function(e){"="===e?this._state=b:"/"===e||">"===e?(this._cbs.onattribend(),this._state=g,this._index--):pe(e)||(this._cbs.onattribend(),this._state=f,this._sectionStart=this._index)},fe.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=v,this._sectionStart=this._index+1):"'"===e?(this._state=E,this._sectionStart=this._index+1):pe(e)||(this._state=y,this._sectionStart=this._index,this._index--)},fe.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=g):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=re,this._sectionStart=this._index)},fe.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=g):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=re,this._sectionStart=this._index)},fe.prototype._stateInAttributeValueNoQuotes=function(e){pe(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=g,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=re,this._sectionStart=this._index)},fe.prototype._stateBeforeDeclaration=function(e){this._state="["===e?R:"-"===e?C:T},fe.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=c,this._sectionStart=this._index+1)},fe.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=c,this._sectionStart=this._index+1)},fe.prototype._stateBeforeComment=function(e){"-"===e?(this._state=x,this._sectionStart=this._index+1):this._state=T},fe.prototype._stateInComment=function(e){"-"===e&&(this._state=O)},fe.prototype._stateAfterComment1=function(e){this._state="-"===e?k:x},fe.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=c,this._sectionStart=this._index+1):"-"!==e&&(this._state=x)},fe.prototype._stateBeforeCdata1=me("C",A,T),fe.prototype._stateBeforeCdata2=me("D",I,T),fe.prototype._stateBeforeCdata3=me("A",D,T),fe.prototype._stateBeforeCdata4=me("T",N,T),fe.prototype._stateBeforeCdata5=me("A",F,T),fe.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=M,this._sectionStart=this._index+1):(this._state=T,this._index--)},fe.prototype._stateInCdata=function(e){"]"===e&&(this._state=P)},fe.prototype._stateAfterCdata1=function(e){this._state="]"===e?L:M},fe.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=c,this._sectionStart=this._index+1):"]"!==e&&(this._state=M)},fe.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=j:"t"===e||"T"===e?this._state=Q:(this._state=u,this._index--)},fe.prototype._stateBeforeSpecialEnd=function(e){this._special!==de||"c"!==e&&"C"!==e?this._special!==he||"t"!==e&&"T"!==e?this._state=c:this._state=ee:this._state=z},fe.prototype._stateBeforeScript1=ge("R",G),fe.prototype._stateBeforeScript2=ge("I",q),fe.prototype._stateBeforeScript3=ge("P",H),fe.prototype._stateBeforeScript4=ge("T",V),fe.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||pe(e))&&(this._special=de),this._state=u,this._index--},fe.prototype._stateAfterScript1=me("R",K,c),fe.prototype._stateAfterScript2=me("I",W,c),fe.prototype._stateAfterScript3=me("P",Y,c),fe.prototype._stateAfterScript4=me("T",$,c),fe.prototype._stateAfterScript5=function(e){">"===e||pe(e)?(this._special=ue,this._state=p,this._sectionStart=this._index-6,this._index--):this._state=c},fe.prototype._stateBeforeStyle1=ge("Y",X),fe.prototype._stateBeforeStyle2=ge("L",J),fe.prototype._stateBeforeStyle3=ge("E",Z),fe.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||pe(e))&&(this._special=he),this._state=u,this._index--},fe.prototype._stateAfterStyle1=me("Y",te,c),fe.prototype._stateAfterStyle2=me("L",ne,c),fe.prototype._stateAfterStyle3=me("E",oe,c),fe.prototype._stateAfterStyle4=function(e){">"===e||pe(e)?(this._special=ue,this._state=p,this._sectionStart=this._index-5,this._index--):this._state=c},fe.prototype._stateBeforeEntity=me("#",ie,ae),fe.prototype._stateBeforeNumericEntity=me("X",ce,se),fe.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var e=this._buffer.substring(this._sectionStart+1,this._index),t=this._xmlMode?a:r;t.hasOwnProperty(e)&&(this._emitPartial(t[e]),this._sectionStart=this._index+1)}},fe.prototype._parseLegacyEntity=function(){var e=this._sectionStart+1,t=this._index-e;for(t>6&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(i.hasOwnProperty(n))return this._emitPartial(i[n]),void(this._sectionStart+=t+1);t--}},fe.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(e<"a"||e>"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==c?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},fe.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var r=this._buffer.substring(n,this._index),i=parseInt(r,t);this._emitPartial(o(i)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},fe.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},fe.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},fe.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===c?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},fe.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},fe.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var e=this._buffer.charAt(this._index);this._state===c?this._stateText(e):this._state===l?this._stateBeforeTagName(e):this._state===u?this._stateInTagName(e):this._state===h?this._stateBeforeCloseingTagName(e):this._state===p?this._stateInCloseingTagName(e):this._state===m?this._stateAfterCloseingTagName(e):this._state===d?this._stateInSelfClosingTag(e):this._state===g?this._stateBeforeAttributeName(e):this._state===f?this._stateInAttributeName(e):this._state===_?this._stateAfterAttributeName(e):this._state===b?this._stateBeforeAttributeValue(e):this._state===v?this._stateInAttributeValueDoubleQuotes(e):this._state===E?this._stateInAttributeValueSingleQuotes(e):this._state===y?this._stateInAttributeValueNoQuotes(e):this._state===S?this._stateBeforeDeclaration(e):this._state===T?this._stateInDeclaration(e):this._state===w?this._stateInProcessingInstruction(e):this._state===C?this._stateBeforeComment(e):this._state===x?this._stateInComment(e):this._state===O?this._stateAfterComment1(e):this._state===k?this._stateAfterComment2(e):this._state===R?this._stateBeforeCdata1(e):this._state===A?this._stateBeforeCdata2(e):this._state===I?this._stateBeforeCdata3(e):this._state===D?this._stateBeforeCdata4(e):this._state===N?this._stateBeforeCdata5(e):this._state===F?this._stateBeforeCdata6(e):this._state===M?this._stateInCdata(e):this._state===P?this._stateAfterCdata1(e):this._state===L?this._stateAfterCdata2(e):this._state===U?this._stateBeforeSpecial(e):this._state===B?this._stateBeforeSpecialEnd(e):this._state===j?this._stateBeforeScript1(e):this._state===G?this._stateBeforeScript2(e):this._state===q?this._stateBeforeScript3(e):this._state===H?this._stateBeforeScript4(e):this._state===V?this._stateBeforeScript5(e):this._state===z?this._stateAfterScript1(e):this._state===K?this._stateAfterScript2(e):this._state===W?this._stateAfterScript3(e):this._state===Y?this._stateAfterScript4(e):this._state===$?this._stateAfterScript5(e):this._state===Q?this._stateBeforeStyle1(e):this._state===X?this._stateBeforeStyle2(e):this._state===J?this._stateBeforeStyle3(e):this._state===Z?this._stateBeforeStyle4(e):this._state===ee?this._stateAfterStyle1(e):this._state===te?this._stateAfterStyle2(e):this._state===ne?this._stateAfterStyle3(e):this._state===oe?this._stateAfterStyle4(e):this._state===re?this._stateBeforeEntity(e):this._state===ie?this._stateBeforeNumericEntity(e):this._state===ae?this._stateInNamedEntity(e):this._state===se?this._stateInNumericEntity(e):this._state===ce?this._stateInHexEntity(e):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},fe.prototype.pause=function(){this._running=!1},fe.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},fe.prototype.end=function(e){this._ended&&this._cbs.onerror(Error(".end() after done!")),e&&this.write(e),this._ended=!0,this._running&&this._finish()},fe.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},fe.prototype._handleTrailingData=function(){var e=this._buffer.substr(this._sectionStart);this._state===M||this._state===P||this._state===L?this._cbs.oncdata(e):this._state===x||this._state===O||this._state===k?this._cbs.oncomment(e):this._state!==ae||this._xmlMode?this._state!==se||this._xmlMode?this._state!==ce||this._xmlMode?this._state!==u&&this._state!==g&&this._state!==b&&this._state!==_&&this._state!==f&&this._state!==E&&this._state!==v&&this._state!==y&&this._state!==p&&this._cbs.ontext(e):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},fe.prototype.reset=function(){fe.call(this,{xmlMode:this._xmlMode,decodeEntities:this._decodeEntities},this._cbs)},fe.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},fe.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},fe.prototype._emitToken=function(e){this._cbs[e](this._getSection()),this._sectionStart=-1},fe.prototype._emitPartial=function(e){this._baseState!==c?this._cbs.onattribdata(e):this._cbs.ontext(e)}},function(e,t,n){var o=n(1012);e.exports=function(e){if(e>=55296&&e<=57343||e>1114111)return"<22>";e in o&&(e=o[e]);var t="";e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e);return t+=String.fromCharCode(e)}},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(e,t,n){var o=n(167),r=/\s+/g,i=n(601),a=n(1013);function s(e,t,n){"object"==typeof e?(n=t,t=e,e=null):"function"==typeof t&&(n=t,t=c),this._callback=e,this._options=t||c,this._elementCB=n,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var c={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1};s.prototype.onparserinit=function(e){this._parser=e},s.prototype.onreset=function(){s.call(this,this._callback,this._options,this._elementCB)},s.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},s.prototype._handleCallback=s.prototype.onerror=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},s.prototype.onclosetag=function(){var e=this._tagStack.pop();this._options.withEndIndices&&e&&(e.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(e)},s.prototype._createDomElement=function(e){if(!this._options.withDomLvl1)return e;var t;for(var n in t="tag"===e.type?Object.create(a):Object.create(i),e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},s.prototype._addDomElement=function(e){var t=this._tagStack[this._tagStack.length-1],n=t?t.children:this.dom,o=n[n.length-1];e.next=null,this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),o?(e.prev=o,o.next=e):e.prev=null,n.push(e),e.parent=t||null},s.prototype.onopentag=function(e,t){var n={type:"script"===e?o.Script:"style"===e?o.Style:o.Tag,name:e,attribs:t,children:[]},r=this._createDomElement(n);this._addDomElement(r),this._tagStack.push(r)},s.prototype.ontext=function(e){var t,n=this._options.normalizeWhitespace||this._options.ignoreWhitespace;if(!this._tagStack.length&&this.dom.length&&(t=this.dom[this.dom.length-1]).type===o.Text)n?t.data=(t.data+e).replace(r," "):t.data+=e;else if(this._tagStack.length&&(t=this._tagStack[this._tagStack.length-1])&&(t=t.children[t.children.length-1])&&t.type===o.Text)n?t.data=(t.data+e).replace(r," "):t.data+=e;else{n&&(e=e.replace(r," "));var i=this._createDomElement({data:e,type:o.Text});this._addDomElement(i)}},s.prototype.oncomment=function(e){var t=this._tagStack[this._tagStack.length-1];if(t&&t.type===o.Comment)t.data+=e;else{var n={data:e,type:o.Comment},r=this._createDomElement(n);this._addDomElement(r),this._tagStack.push(r)}},s.prototype.oncdatastart=function(){var e={children:[{data:"",type:o.Text}],type:o.CDATA},t=this._createDomElement(e);this._addDomElement(t),this._tagStack.push(t)},s.prototype.oncommentend=s.prototype.oncdataend=function(){this._tagStack.pop()},s.prototype.onprocessinginstruction=function(e,t){var n=this._createDomElement({name:e,data:t,type:o.Directive});this._addDomElement(n)},e.exports=s},function(e,t){var n=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return r[this.type]||r.element}},o={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},r={element:1,text:3,cdata:4,comment:8};Object.keys(o).forEach((function(e){var t=o[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})}))},function(e,t,n){var o=e.exports;[n(1015),n(1022),n(1023),n(1024),n(1025),n(1026)].forEach((function(e){Object.keys(e).forEach((function(t){o[t]=e[t].bind(o)}))}))},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var r=o(n(604)),i=o(n(1018)),a=o(n(605)),s=o(n(1019));function c(e){var t=Object.keys(e).join("|"),n=u(e),o=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(o,n)}}t.decodeXML=c(a.default),t.decodeHTMLStrict=c(r.default);var l=function(e,t){return e<t?1:-1};function u(e){return function(t){if("#"===t.charAt(1)){var n=t.charAt(2);return"X"===n||"x"===n?s.default(parseInt(t.substr(3),16)):s.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]}}t.decodeHTML=function(){for(var e=Object.keys(i.default).sort(l),t=Object.keys(r.default).sort(l),n=0,o=0;n<t.length;n++)e[o]===t[n]?(t[n]+=";?",o++):t[n]+=";";var a=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=u(r.default);function c(e){return";"!==e.substr(-1)&&(e+=";"),s(e)}return function(e){return String(e).replace(a,c)}}()},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"","backsim":"∽","backsimeq":"⋍","Backslash":"","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"","Bernoullis":"","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"","caps":"∩︀","caret":"","caron":"ˇ","Cayleys":"","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"","dd":"","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":"","emsp14":"","emsp":"","ENG":"Ŋ","eng":"ŋ","ensp":"","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"","Escr":"","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"","exponentiale":"","ExponentialE":"","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"","frown":"⌢","fscr":"𝒻","Fscr":"","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":"","half":"½","hamilt":"","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"","HilbertSpace":"","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"","hyphen":"","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"","Igrave":"Ì","igrave":"ì","ii":"","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"","ImaginaryI":"","imagline":"","imagpart":"","imath":"ı","Im":"","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"","lscr":"𝓁","Lscr":"","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"","lsquor":"","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":"","Mellintrf":"","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"","middot":"·","minusb":"⊟","minus":"","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":"","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"","ord":"⩝","order":"","orderof":"","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"","pointint":"⨕","popf":"𝕡","Popf":"","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"","Prime":"″","primes":"","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":"","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"","rationals":"","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"","realine":"","realpart":"","reals":"","Re":"","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"","rscr":"𝓇","Rscr":"","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"","rsquor":"","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"","setmn":"","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"","smashp":"⨳","smeparsl":"⧤","smid":"","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"","ThickSpace":"","ThinSpace":"","thinsp":"","thkap":"≈","thksim":"","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"","Vee":"","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":"","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},function(e){e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.escape=t.encodeHTML=t.encodeXML=void 0;var r=c(o(n(605)).default),i=l(r);t.encodeXML=h(r,i);var a=c(o(n(604)).default),s=l(a);function c(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function l(e){for(var t=[],n=[],o=0,r=Object.keys(e);o<r.length;o++){var i=r[o];1===i.length?t.push("\\"+i):n.push(i)}t.sort();for(var a=0;a<t.length-1;a++){for(var s=a;s<t.length-1&&t[s].charCodeAt(1)+1===t[s+1].charCodeAt(1);)s+=1;var c=1+s-a;c<3||t.splice(a,c,t[a]+"-"+t[s])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.encodeHTML=h(a,s);var u=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g;function d(e){return"&#x"+e.codePointAt(0).toString(16).toUpperCase()+";"}function h(e,t){return function(n){return n.replace(t,(function(t){return e[t]})).replace(u,d)}}var p=l(r);t.escape=function(e){return e.replace(p,d).replace(u,d)}},function(e,t,n){e.exports=s;var o=n(596),r=n(1028).Writable,i=n(432).StringDecoder,a=n(31).Buffer;function s(e,t){var n=this._parser=new o(e,t),a=this._decoder=new i;r.call(this,{decodeStrings:!1}),this.once("finish",(function(){n.end(a.end())}))}n(152)(s,r),s.prototype._write=function(e,t,n){e instanceof a&&(e=this._decoder.write(e)),this._parser.write(e),n()}},function(e,t,n){"use strict";var o=n(239),r=n(1034),i=n(1035),a=n(1036),s=n(433),c=n(434),l=n(435),u=n(611),d=n(278),h=n(153),p=h.TAG_NAMES,m=h.NAMESPACES,g=h.ATTRS,f={locationInfo:!1,treeAdapter:s},_="IN_BODY_MODE",b="TEXT_MODE",v="IN_TABLE_MODE",E="IN_ROW_MODE",y=Object.create(null);y[p.TR]=E,y[p.TBODY]=y[p.THEAD]=y[p.TFOOT]="IN_TABLE_BODY_MODE",y[p.CAPTION]="IN_CAPTION_MODE",y[p.COLGROUP]="IN_COLUMN_GROUP_MODE",y[p.TABLE]=v,y[p.BODY]=_,y[p.FRAMESET]="IN_FRAMESET_MODE";var S=Object.create(null);S[p.CAPTION]=S[p.COLGROUP]=S[p.TBODY]=S[p.TFOOT]=S[p.THEAD]=v,S[p.COL]="IN_COLUMN_GROUP_MODE",S[p.TR]="IN_TABLE_BODY_MODE",S[p.TD]=S[p.TH]=E;var T=Object.create(null);T.INITIAL_MODE=Object.create(null),T.INITIAL_MODE[o.CHARACTER_TOKEN]=T.INITIAL_MODE[o.NULL_CHARACTER_TOKEN]=L,T.INITIAL_MODE[o.WHITESPACE_CHARACTER_TOKEN]=D,T.INITIAL_MODE[o.COMMENT_TOKEN]=N,T.INITIAL_MODE[o.DOCTYPE_TOKEN]=function(e,t){e._setDocumentType(t);var n=t.forceQuirks?h.DOCUMENT_MODE.QUIRKS:l.getDocumentMode(t.name,t.publicId,t.systemId);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode="BEFORE_HTML_MODE"},T.INITIAL_MODE[o.START_TAG_TOKEN]=T.INITIAL_MODE[o.END_TAG_TOKEN]=T.INITIAL_MODE[o.EOF_TOKEN]=L,T.BEFORE_HTML_MODE=Object.create(null),T.BEFORE_HTML_MODE[o.CHARACTER_TOKEN]=T.BEFORE_HTML_MODE[o.NULL_CHARACTER_TOKEN]=U,T.BEFORE_HTML_MODE[o.WHITESPACE_CHARACTER_TOKEN]=D,T.BEFORE_HTML_MODE[o.COMMENT_TOKEN]=N,T.BEFORE_HTML_MODE[o.DOCTYPE_TOKEN]=D,T.BEFORE_HTML_MODE[o.START_TAG_TOKEN]=function(e,t){t.tagName===p.HTML?(e._insertElement(t,m.HTML),e.insertionMode="BEFORE_HEAD_MODE"):U(e,t)},T.BEFORE_HTML_MODE[o.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n!==p.HTML&&n!==p.HEAD&&n!==p.BODY&&n!==p.BR||U(e,t)},T.BEFORE_HTML_MODE[o.EOF_TOKEN]=U,T.BEFORE_HEAD_MODE=Object.create(null),T.BEFORE_HEAD_MODE[o.CHARACTER_TOKEN]=T.BEFORE_HEAD_MODE[o.NULL_CHARACTER_TOKEN]=B,T.BEFORE_HEAD_MODE[o.WHITESPACE_CHARACTER_TOKEN]=D,T.BEFORE_HEAD_MODE[o.COMMENT_TOKEN]=N,T.BEFORE_HEAD_MODE[o.DOCTYPE_TOKEN]=D,T.BEFORE_HEAD_MODE[o.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.HTML?ne(e,t):n===p.HEAD?(e._insertElement(t,m.HTML),e.headElement=e.openElements.current,e.insertionMode="IN_HEAD_MODE"):B(e,t)},T.BEFORE_HEAD_MODE[o.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n!==p.HEAD&&n!==p.BODY&&n!==p.HTML&&n!==p.BR||B(e,t)},T.BEFORE_HEAD_MODE[o.EOF_TOKEN]=B,T.IN_HEAD_MODE=Object.create(null),T.IN_HEAD_MODE[o.CHARACTER_TOKEN]=T.IN_HEAD_MODE[o.NULL_CHARACTER_TOKEN]=q,T.IN_HEAD_MODE[o.WHITESPACE_CHARACTER_TOKEN]=M,T.IN_HEAD_MODE[o.COMMENT_TOKEN]=N,T.IN_HEAD_MODE[o.DOCTYPE_TOKEN]=D,T.IN_HEAD_MODE[o.START_TAG_TOKEN]=j,T.IN_HEAD_MODE[o.END_TAG_TOKEN]=G,T.IN_HEAD_MODE[o.EOF_TOKEN]=q,T.AFTER_HEAD_MODE=Object.create(null),T.AFTER_HEAD_MODE[o.CHARACTER_TOKEN]=T.AFTER_HEAD_MODE[o.NULL_CHARACTER_TOKEN]=H,T.AFTER_HEAD_MODE[o.WHITESPACE_CHARACTER_TOKEN]=M,T.AFTER_HEAD_MODE[o.COMMENT_TOKEN]=N,T.AFTER_HEAD_MODE[o.DOCTYPE_TOKEN]=D,T.AFTER_HEAD_MODE[o.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.HTML?ne(e,t):n===p.BODY?(e._insertElement(t,m.HTML),e.framesetOk=!1,e.insertionMode=_):n===p.FRAMESET?(e._insertElement(t,m.HTML),e.insertionMode="IN_FRAMESET_MODE"):n===p.BASE||n===p.BASEFONT||n===p.BGSOUND||n===p.LINK||n===p.META||n===p.NOFRAMES||n===p.SCRIPT||n===p.STYLE||n===p.TEMPLATE||n===p.TITLE?(e.openElements.push(e.headElement),j(e,t),e.openElements.remove(e.headElement)):n!==p.HEAD&&H(e,t)},T.AFTER_HEAD_MODE[o.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.BODY||n===p.HTML||n===p.BR?H(e,t):n===p.TEMPLATE&&G(e,t)},T.AFTER_HEAD_MODE[o.EOF_TOKEN]=H,T[_]=Object.create(null),T[_][o.CHARACTER_TOKEN]=z,T[_][o.NULL_CHARACTER_TOKEN]=D,T[_][o.WHITESPACE_CHARACTER_TOKEN]=V,T[_][o.COMMENT_TOKEN]=N,T[_][o.DOCTYPE_TOKEN]=D,T[_][o.START_TAG_TOKEN]=ne,T[_][o.END_TAG_TOKEN]=ae,T[_][o.EOF_TOKEN]=se,T[b]=Object.create(null),T[b][o.CHARACTER_TOKEN]=T[b][o.NULL_CHARACTER_TOKEN]=T[b][o.WHITESPACE_CHARACTER_TOKEN]=M,T[b][o.COMMENT_TOKEN]=T[b][o.DOCTYPE_TOKEN]=T[b][o.START_TAG_TOKEN]=D,T[b][o.END_TAG_TOKEN]=function(e,t){t.tagName===p.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},T[b][o.EOF_TOKEN]=function(e,t){e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)},T[v]=Object.create(null),T[v][o.CHARACTER_TOKEN]=T[v][o.NULL_CHARACTER_TOKEN]=T[v][o.WHITESPACE_CHARACTER_TOKEN]=ce,T[v][o.COMMENT_TOKEN]=N,T[v][o.DOCTYPE_TOKEN]=D,T[v][o.START_TAG_TOKEN]=le,T[v][o.END_TAG_TOKEN]=ue,T[v][o.EOF_TOKEN]=se,T.IN_TABLE_TEXT_MODE=Object.create(null),T.IN_TABLE_TEXT_MODE[o.CHARACTER_TOKEN]=function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},T.IN_TABLE_TEXT_MODE[o.NULL_CHARACTER_TOKEN]=D,T.IN_TABLE_TEXT_MODE[o.WHITESPACE_CHARACTER_TOKEN]=function(e,t){e.pendingCharacterTokens.push(t)},T.IN_TABLE_TEXT_MODE[o.COMMENT_TOKEN]=T.IN_TABLE_TEXT_MODE[o.DOCTYPE_TOKEN]=T.IN_TABLE_TEXT_MODE[o.START_TAG_TOKEN]=T.IN_TABLE_TEXT_MODE[o.END_TAG_TOKEN]=T.IN_TABLE_TEXT_MODE[o.EOF_TOKEN]=function(e,t){var n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)de(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)},T.IN_CAPTION_MODE=Object.create(null),T.IN_CAPTION_MODE[o.CHARACTER_TOKEN]=z,T.IN_CAPTION_MODE[o.NULL_CHARACTER_TOKEN]=D,T.IN_CAPTION_MODE[o.WHITESPACE_CHARACTER_TOKEN]=V,T.IN_CAPTION_MODE[o.COMMENT_TOKEN]=N,T.IN_CAPTION_MODE[o.DOCTYPE_TOKEN]=D,T.IN_CAPTION_MODE[o.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.CAPTION||n===p.COL||n===p.COLGROUP||n===p.TBODY||n===p.TD||n===p.TFOOT||n===p.TH||n===p.THEAD||n===p.TR?e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=v,e._processToken(t)):ne(e,t)},T.IN_CAPTION_MODE[o.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.CAPTION||n===p.TABLE?e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=v,n===p.TABLE&&e._processToken(t)):n!==p.BODY&&n!==p.COL&&n!==p.COLGROUP&&n!==p.HTML&&n!==p.TBODY&&n!==p.TD&&n!==p.TFOOT&&n!==p.TH&&n!==p.THEAD&&n!==p.TR&&ae(e,t)},T.IN_CAPTION_MODE[o.EOF_TOKEN]=se,T.IN_COLUMN_GROUP_MODE=Object.create(null),T.IN_COLUMN_GROUP_MODE[o.CHARACTER_TOKEN]=T.IN_COLUMN_GROUP_MODE[o.NULL_CHARACTER_TOKEN]=he,T.IN_COLUMN_GROUP_MODE[o.WHITESPACE_CHARACTER_TOKEN]=M,T.IN_COLUMN_GROUP_MODE[o.COMMENT_TOKEN]=N,T.IN_COLUMN_GROUP_MODE[o.DOCTYPE_TOKEN]=D,T.IN_COLUMN_GROUP_MODE[o.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.HTML?ne(e,t):n===p.COL?e._appendElement(t,m.HTML):n===p.TEMPLATE?j(e,t):he(e,t)},T.IN_COLUMN_GROUP_MODE[o.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.COLGROUP?e.openElements.currentTagName===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=v):n===p.TEMPLATE?G(e,t):n!==p.COL&&he(e,t)},T.IN_COLUMN_GROUP_MODE[o.EOF_TOKEN]=se,T.IN_TABLE_BODY_MODE=Object.create(null),T.IN_TABLE_BODY_MODE[o.CHARACTER_TOKEN]=T.IN_TABLE_BODY_MODE[o.NULL_CHARACTER_TOKEN]=T.IN_TABLE_BODY_MODE[o.WHITESPACE_CHARACTER_TOKEN]=ce,T.IN_TABLE_BODY_MODE[o.COMMENT_TOKEN]=N,T.IN_TABLE_BODY_MODE[o.DOCTYPE_TOKEN]=D,T.IN_TABLE_BODY_MODE[o.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,m.HTML),e.insertionMode=E):n===p.TH||n===p.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(p.TR),e.insertionMode=E,e._processToken(t)):n===p.CAPTION||n===p.COL||n===p.COLGROUP||n===p.TBODY||n===p.TFOOT||n===p.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v,e._processToken(t)):le(e,t)},T.IN_TABLE_BODY_MODE[o.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.TBODY||n===p.TFOOT||n===p.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v):n===p.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=v,e._processToken(t)):(n!==p.BODY&&n!==p.CAPTION&&n!==p.COL&&n!==p.COLGROUP||n!==p.HTML&&n!==p.TD&&n!==p.TH&&n!==p.TR)&&ue(e,t)},T.IN_TABLE_BODY_MODE[o.EOF_TOKEN]=se,T[E]=Object.create(null),T[E][o.CHARACTER_TOKEN]=T[E][o.NULL_CHARACTER_TOKEN]=T[E][o.WHITESPACE_CHARACTER_TOKEN]=ce,T[E][o.COMMENT_TOKEN]=N,T[E][o.DOCTYPE_TOKEN]=D,T[E][o.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.TH||n===p.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,m.HTML),e.insertionMode="IN_CELL_MODE",e.activeFormattingElements.insertMarker()):n===p.CAPTION||n===p.COL||n===p.COLGROUP||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR?e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):le(e,t)},T[E][o.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.TR?e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE"):n===p.TABLE?e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):n===p.TBODY||n===p.TFOOT||n===p.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(p.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):(n!==p.BODY&&n!==p.CAPTION&&n!==p.COL&&n!==p.COLGROUP||n!==p.HTML&&n!==p.TD&&n!==p.TH)&&ue(e,t)},T[E][o.EOF_TOKEN]=se,T.IN_CELL_MODE=Object.create(null),T.IN_CELL_MODE[o.CHARACTER_TOKEN]=z,T.IN_CELL_MODE[o.NULL_CHARACTER_TOKEN]=D,T.IN_CELL_MODE[o.WHITESPACE_CHARACTER_TOKEN]=V,T.IN_CELL_MODE[o.COMMENT_TOKEN]=N,T.IN_CELL_MODE[o.DOCTYPE_TOKEN]=D,T.IN_CELL_MODE[o.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.CAPTION||n===p.COL||n===p.COLGROUP||n===p.TBODY||n===p.TD||n===p.TFOOT||n===p.TH||n===p.THEAD||n===p.TR?(e.openElements.hasInTableScope(p.TD)||e.openElements.hasInTableScope(p.TH))&&(e._closeTableCell(),e._processToken(t)):ne(e,t)},T.IN_CELL_MODE[o.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.TD||n===p.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=E):n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==p.BODY&&n!==p.CAPTION&&n!==p.COL&&n!==p.COLGROUP&&n!==p.HTML&&ae(e,t)},T.IN_CELL_MODE[o.EOF_TOKEN]=se,T.IN_SELECT_MODE=Object.create(null),T.IN_SELECT_MODE[o.CHARACTER_TOKEN]=M,T.IN_SELECT_MODE[o.NULL_CHARACTER_TOKEN]=D,T.IN_SELECT_MODE[o.WHITESPACE_CHARACTER_TOKEN]=M,T.IN_SELECT_MODE[o.COMMENT_TOKEN]=N,T.IN_SELECT_MODE[o.DOCTYPE_TOKEN]=D,T.IN_SELECT_MODE[o.START_TAG_TOKEN]=pe,T.IN_SELECT_MODE[o.END_TAG_TOKEN]=me,T.IN_SELECT_MODE[o.EOF_TOKEN]=se,T.IN_SELECT_IN_TABLE_MODE=Object.create(null),T.IN_SELECT_IN_TABLE_MODE[o.CHARACTER_TOKEN]=M,T.IN_SELECT_IN_TABLE_MODE[o.NULL_CHARACTER_TOKEN]=D,T.IN_SELECT_IN_TABLE_MODE[o.WHITESPACE_CHARACTER_TOKEN]=M,T.IN_SELECT_IN_TABLE_MODE[o.COMMENT_TOKEN]=N,T.IN_SELECT_IN_TABLE_MODE[o.DOCTYPE_TOKEN]=D,T.IN_SELECT_IN_TABLE_MODE[o.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e._processToken(t)):pe(e,t)},T.IN_SELECT_IN_TABLE_MODE[o.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e._processToken(t)):me(e,t)},T.IN_SELECT_IN_TABLE_MODE[o.EOF_TOKEN]=se,T.IN_TEMPLATE_MODE=Object.create(null),T.IN_TEMPLATE_MODE[o.CHARACTER_TOKEN]=z,T.IN_TEMPLATE_MODE[o.NULL_CHARACTER_TOKEN]=D,T.IN_TEMPLATE_MODE[o.WHITESPACE_CHARACTER_TOKEN]=V,T.IN_TEMPLATE_MODE[o.COMMENT_TOKEN]=N,T.IN_TEMPLATE_MODE[o.DOCTYPE_TOKEN]=D,T.IN_TEMPLATE_MODE[o.START_TAG_TOKEN]=function(e,t){var n=t.tagName;if(n===p.BASE||n===p.BASEFONT||n===p.BGSOUND||n===p.LINK||n===p.META||n===p.NOFRAMES||n===p.SCRIPT||n===p.STYLE||n===p.TEMPLATE||n===p.TITLE)j(e,t);else{var o=S[n]||_;e._popTmplInsertionMode(),e._pushTmplInsertionMode(o),e.insertionMode=o,e._processToken(t)}},T.IN_TEMPLATE_MODE[o.END_TAG_TOKEN]=function(e,t){t.tagName===p.TEMPLATE&&G(e,t)},T.IN_TEMPLATE_MODE[o.EOF_TOKEN]=ge,T.AFTER_BODY_MODE=Object.create(null),T.AFTER_BODY_MODE[o.CHARACTER_TOKEN]=T.AFTER_BODY_MODE[o.NULL_CHARACTER_TOKEN]=fe,T.AFTER_BODY_MODE[o.WHITESPACE_CHARACTER_TOKEN]=V,T.AFTER_BODY_MODE[o.COMMENT_TOKEN]=function(e,t){e._appendCommentNode(t,e.openElements.items[0])},T.AFTER_BODY_MODE[o.DOCTYPE_TOKEN]=D,T.AFTER_BODY_MODE[o.START_TAG_TOKEN]=function(e,t){t.tagName===p.HTML?ne(e,t):fe(e,t)},T.AFTER_BODY_MODE[o.END_TAG_TOKEN]=function(e,t){t.tagName===p.HTML?e.fragmentContext||(e.insertionMode="AFTER_AFTER_BODY_MODE"):fe(e,t)},T.AFTER_BODY_MODE[o.EOF_TOKEN]=P,T.IN_FRAMESET_MODE=Object.create(null),T.IN_FRAMESET_MODE[o.CHARACTER_TOKEN]=T.IN_FRAMESET_MODE[o.NULL_CHARACTER_TOKEN]=D,T.IN_FRAMESET_MODE[o.WHITESPACE_CHARACTER_TOKEN]=M,T.IN_FRAMESET_MODE[o.COMMENT_TOKEN]=N,T.IN_FRAMESET_MODE[o.DOCTYPE_TOKEN]=D,T.IN_FRAMESET_MODE[o.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.HTML?ne(e,t):n===p.FRAMESET?e._insertElement(t,m.HTML):n===p.FRAME?e._appendElement(t,m.HTML):n===p.NOFRAMES&&j(e,t)},T.IN_FRAMESET_MODE[o.END_TAG_TOKEN]=function(e,t){t.tagName!==p.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===p.FRAMESET||(e.insertionMode="AFTER_FRAMESET_MODE"))},T.IN_FRAMESET_MODE[o.EOF_TOKEN]=P,T.AFTER_FRAMESET_MODE=Object.create(null),T.AFTER_FRAMESET_MODE[o.CHARACTER_TOKEN]=T.AFTER_FRAMESET_MODE[o.NULL_CHARACTER_TOKEN]=D,T.AFTER_FRAMESET_MODE[o.WHITESPACE_CHARACTER_TOKEN]=M,T.AFTER_FRAMESET_MODE[o.COMMENT_TOKEN]=N,T.AFTER_FRAMESET_MODE[o.DOCTYPE_TOKEN]=D,T.AFTER_FRAMESET_MODE[o.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.HTML?ne(e,t):n===p.NOFRAMES&&j(e,t)},T.AFTER_FRAMESET_MODE[o.END_TAG_TOKEN]=function(e,t){t.tagName===p.HTML&&(e.insertionMode="AFTER_AFTER_FRAMESET_MODE")},T.AFTER_FRAMESET_MODE[o.EOF_TOKEN]=P,T.AFTER_AFTER_BODY_MODE=Object.create(null),T.AFTER_AFTER_BODY_MODE[o.CHARACTER_TOKEN]=_e,T.AFTER_AFTER_BODY_MODE[o.NULL_CHARACTER_TOKEN]=_e,T.AFTER_AFTER_BODY_MODE[o.WHITESPACE_CHARACTER_TOKEN]=V,T.AFTER_AFTER_BODY_MODE[o.COMMENT_TOKEN]=F,T.AFTER_AFTER_BODY_MODE[o.DOCTYPE_TOKEN]=D,T.AFTER_AFTER_BODY_MODE[o.START_TAG_TOKEN]=function(e,t){t.tagName===p.HTML?ne(e,t):_e(e,t)},T.AFTER_AFTER_BODY_MODE[o.END_TAG_TOKEN]=_e,T.AFTER_AFTER_BODY_MODE[o.EOF_TOKEN]=P,T.AFTER_AFTER_FRAMESET_MODE=Object.create(null),T.AFTER_AFTER_FRAMESET_MODE[o.CHARACTER_TOKEN]=T.AFTER_AFTER_FRAMESET_MODE[o.NULL_CHARACTER_TOKEN]=D,T.AFTER_AFTER_FRAMESET_MODE[o.WHITESPACE_CHARACTER_TOKEN]=V,T.AFTER_AFTER_FRAMESET_MODE[o.COMMENT_TOKEN]=F,T.AFTER_AFTER_FRAMESET_MODE[o.DOCTYPE_TOKEN]=D,T.AFTER_AFTER_FRAMESET_MODE[o.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===p.HTML?ne(e,t):n===p.NOFRAMES&&j(e,t)},T.AFTER_AFTER_FRAMESET_MODE[o.END_TAG_TOKEN]=D,T.AFTER_AFTER_FRAMESET_MODE[o.EOF_TOKEN]=P;var w=e.exports=function(e){this.options=c(f,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.locationInfo&&new a(this)};function C(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):ie(e,t),n}function x(e,t){for(var n=null,o=e.openElements.stackTop;o>=0;o--){var r=e.openElements.items[o];if(r===t.element)break;e._isSpecialElement(r)&&(n=r)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function O(e,t,n){for(var o=t,r=e.openElements.getCommonAncestor(t),i=0,a=r;a!==n;i++,a=r){r=e.openElements.getCommonAncestor(a);var s=e.activeFormattingElements.getElementEntry(a),c=s&&i>=3;!s||c?(c&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=k(e,s),o===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(o),e.treeAdapter.appendChild(a,o),o=a)}return o}function k(e,t){var n=e.treeAdapter.getNamespaceURI(t.element),o=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,o),t.element=o,o}function R(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{var o=e.treeAdapter.getTagName(t),r=e.treeAdapter.getNamespaceURI(t);o===p.TEMPLATE&&r===m.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function A(e,t,n){var o=e.treeAdapter.getNamespaceURI(n.element),r=n.token,i=e.treeAdapter.createElement(r.tagName,o,r.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i)}function I(e,t){for(var n,o=0;o<8&&(n=C(e,t));o++){var r=x(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;var i=O(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),R(e,a,i),A(e,r,n)}}function D(){}function N(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function F(e,t){e._appendCommentNode(t,e.document)}function M(e,t){e._insertCharacters(t)}function P(e){e.stopped=!0}function L(e,t){e.treeAdapter.setDocumentMode(e.document,h.DOCUMENT_MODE.QUIRKS),e.insertionMode="BEFORE_HTML_MODE",e._processToken(t)}function U(e,t){e._insertFakeRootElement(),e.insertionMode="BEFORE_HEAD_MODE",e._processToken(t)}function B(e,t){e._insertFakeElement(p.HEAD),e.headElement=e.openElements.current,e.insertionMode="IN_HEAD_MODE",e._processToken(t)}function j(e,t){var n=t.tagName;n===p.HTML?ne(e,t):n===p.BASE||n===p.BASEFONT||n===p.BGSOUND||n===p.LINK||n===p.META?e._appendElement(t,m.HTML):n===p.TITLE?e._switchToTextParsing(t,o.MODE.RCDATA):n===p.NOSCRIPT||n===p.NOFRAMES||n===p.STYLE?e._switchToTextParsing(t,o.MODE.RAWTEXT):n===p.SCRIPT?e._switchToTextParsing(t,o.MODE.SCRIPT_DATA):n===p.TEMPLATE?(e._insertTemplate(t,m.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode="IN_TEMPLATE_MODE",e._pushTmplInsertionMode("IN_TEMPLATE_MODE")):n!==p.HEAD&&q(e,t)}function G(e,t){var n=t.tagName;n===p.HEAD?(e.openElements.pop(),e.insertionMode="AFTER_HEAD_MODE"):n===p.BODY||n===p.BR||n===p.HTML?q(e,t):n===p.TEMPLATE&&e.openElements.tmplCount>0&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode())}function q(e,t){e.openElements.pop(),e.insertionMode="AFTER_HEAD_MODE",e._processToken(t)}function H(e,t){e._insertFakeElement(p.BODY),e.insertionMode=_,e._processToken(t)}function V(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function z(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function K(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,m.HTML)}function W(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,m.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Y(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Q(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,m.HTML),e.framesetOk=!1}function X(e,t){e._appendElement(t,m.HTML)}function J(e,t){e._switchToTextParsing(t,o.MODE.RAWTEXT)}function Z(e,t){e.openElements.currentTagName===p.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML)}function ee(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,m.HTML)}function te(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML)}function ne(e,t){var n=t.tagName;switch(n.length){case 1:n===p.I||n===p.S||n===p.B||n===p.U?Y(e,t):n===p.P?K(e,t):n===p.A?function(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(p.A);n&&(I(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):te(e,t);break;case 2:n===p.DL||n===p.OL||n===p.UL?K(e,t):n===p.H1||n===p.H2||n===p.H3||n===p.H4||n===p.H5||n===p.H6?function(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement();var n=e.openElements.currentTagName;n!==p.H1&&n!==p.H2&&n!==p.H3&&n!==p.H4&&n!==p.H5&&n!==p.H6||e.openElements.pop(),e._insertElement(t,m.HTML)}(e,t):n===p.LI||n===p.DD||n===p.DT?function(e,t){e.framesetOk=!1;for(var n=t.tagName,o=e.openElements.stackTop;o>=0;o--){var r=e.openElements.items[o],i=e.treeAdapter.getTagName(r),a=null;if(n===p.LI&&i===p.LI?a=p.LI:n!==p.DD&&n!==p.DT||i!==p.DD&&i!==p.DT||(a=i),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(i!==p.ADDRESS&&i!==p.DIV&&i!==p.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,m.HTML)}(e,t):n===p.EM||n===p.TT?Y(e,t):n===p.BR?Q(e,t):n===p.HR?function(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e.openElements.currentTagName===p.MENUITEM&&e.openElements.pop(),e._appendElement(t,m.HTML),e.framesetOk=!1}(e,t):n===p.RB?ee(e,t):n===p.RT||n===p.RP?function(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(p.RTC),e._insertElement(t,m.HTML)}(e,t):n!==p.TH&&n!==p.TD&&n!==p.TR&&te(e,t);break;case 3:n===p.DIV||n===p.DIR||n===p.NAV?K(e,t):n===p.PRE?W(e,t):n===p.BIG?Y(e,t):n===p.IMG||n===p.WBR?Q(e,t):n===p.XMP?function(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,o.MODE.RAWTEXT)}(e,t):n===p.SVG?function(e,t){e._reconstructActiveFormattingElements(),u.adjustTokenSVGAttrs(t),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,m.SVG):e._insertElement(t,m.SVG)}(e,t):n===p.RTC?ee(e,t):n!==p.COL&&te(e,t);break;case 4:n===p.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===p.BASE||n===p.LINK||n===p.META?j(e,t):n===p.BODY?function(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===p.MAIN?K(e,t):n===p.FORM?function(e,t){var n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,m.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===p.CODE||n===p.FONT?Y(e,t):n===p.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(p.NOBR)&&(I(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,m.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===p.AREA?Q(e,t):n===p.MATH?function(e,t){e._reconstructActiveFormattingElements(),u.adjustTokenMathMLAttrs(t),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,m.MATHML):e._insertElement(t,m.MATHML)}(e,t):n===p.MENU?function(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e.openElements.currentTagName===p.MENUITEM&&e.openElements.pop(),e._insertElement(t,m.HTML)}(e,t):n!==p.HEAD&&te(e,t);break;case 5:n===p.STYLE||n===p.TITLE?j(e,t):n===p.ASIDE?K(e,t):n===p.SMALL?Y(e,t):n===p.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==h.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,m.HTML),e.framesetOk=!1,e.insertionMode=v}(e,t):n===p.EMBED?Q(e,t):n===p.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,m.HTML);var n=o.getTokenAttr(t,g.TYPE);n&&"hidden"===n.toLowerCase()||(e.framesetOk=!1)}(e,t):n===p.PARAM||n===p.TRACK?X(e,t):n===p.IMAGE?function(e,t){t.tagName=p.IMG,Q(e,t)}(e,t):n!==p.FRAME&&n!==p.TBODY&&n!==p.TFOOT&&n!==p.THEAD&&te(e,t);break;case 6:n===p.SCRIPT?j(e,t):n===p.CENTER||n===p.FIGURE||n===p.FOOTER||n===p.HEADER||n===p.HGROUP?K(e,t):n===p.BUTTON?function(e,t){e.openElements.hasInScope(p.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML),e.framesetOk=!1}(e,t):n===p.STRIKE||n===p.STRONG?Y(e,t):n===p.APPLET||n===p.OBJECT?$(e,t):n===p.KEYGEN?Q(e,t):n===p.SOURCE?X(e,t):n===p.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,o.MODE.RAWTEXT)}(e,t):n===p.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML),e.framesetOk=!1,e.insertionMode===v||"IN_CAPTION_MODE"===e.insertionMode||"IN_TABLE_BODY_MODE"===e.insertionMode||e.insertionMode===E||"IN_CELL_MODE"===e.insertionMode?e.insertionMode="IN_SELECT_IN_TABLE_MODE":e.insertionMode="IN_SELECT_MODE"}(e,t):n===p.OPTION?Z(e,t):te(e,t);break;case 7:n===p.BGSOUND?j(e,t):n===p.DETAILS||n===p.ADDRESS||n===p.ARTICLE||n===p.SECTION||n===p.SUMMARY?K(e,t):n===p.LISTING?W(e,t):n===p.MARQUEE?$(e,t):n===p.NOEMBED?J(e,t):n!==p.CAPTION&&te(e,t);break;case 8:n===p.BASEFONT?j(e,t):n===p.MENUITEM?function(e,t){e.openElements.currentTagName===p.MENUITEM&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,m.HTML)}(e,t):n===p.FRAMESET?function(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,m.HTML),e.insertionMode="IN_FRAMESET_MODE")}(e,t):n===p.FIELDSET?K(e,t):n===p.TEXTAREA?function(e,t){e._insertElement(t,m.HTML),e.skipNextNewLine=!0,e.tokenizer.state=o.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=b}(e,t):n===p.TEMPLATE?j(e,t):n===p.NOSCRIPT?J(e,t):n===p.OPTGROUP?Z(e,t):n!==p.COLGROUP&&te(e,t);break;case 9:n===p.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,m.HTML),e.tokenizer.state=o.MODE.PLAINTEXT}(e,t):te(e,t);break;case 10:n===p.BLOCKQUOTE||n===p.FIGCAPTION?K(e,t):te(e,t);break;default:te(e,t)}}function oe(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function re(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ie(e,t){for(var n=t.tagName,o=e.openElements.stackTop;o>0;o--){var r=e.openElements.items[o];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function ae(e,t){var n=t.tagName;switch(n.length){case 1:n===p.A||n===p.B||n===p.I||n===p.S||n===p.U?I(e,t):n===p.P?function(e){e.openElements.hasInButtonScope(p.P)||e._insertFakeElement(p.P),e._closePElement()}(e):ie(e,t);break;case 2:n===p.DL||n===p.UL||n===p.OL?oe(e,t):n===p.LI?function(e){e.openElements.hasInListItemScope(p.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(p.LI),e.openElements.popUntilTagNamePopped(p.LI))}(e):n===p.DD||n===p.DT?function(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===p.H1||n===p.H2||n===p.H3||n===p.H4||n===p.H5||n===p.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===p.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(p.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===p.EM||n===p.TT?I(e,t):ie(e,t);break;case 3:n===p.BIG?I(e,t):n===p.DIR||n===p.DIV||n===p.NAV?oe(e,t):ie(e,t);break;case 4:n===p.BODY?function(e){e.openElements.hasInScope(p.BODY)&&(e.insertionMode="AFTER_BODY_MODE")}(e):n===p.HTML?function(e,t){e.openElements.hasInScope(p.BODY)&&(e.insertionMode="AFTER_BODY_MODE",e._processToken(t))}(e,t):n===p.FORM?function(e){var t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(p.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(p.FORM):e.openElements.remove(n))}(e):n===p.CODE||n===p.FONT||n===p.NOBR?I(e,t):n===p.MAIN||n===p.MENU?oe(e,t):ie(e,t);break;case 5:n===p.ASIDE?oe(e,t):n===p.SMALL?I(e,t):ie(e,t);break;case 6:n===p.CENTER||n===p.FIGURE||n===p.FOOTER||n===p.HEADER||n===p.HGROUP?oe(e,t):n===p.APPLET||n===p.OBJECT?re(e,t):n===p.STRIKE||n===p.STRONG?I(e,t):ie(e,t);break;case 7:n===p.ADDRESS||n===p.ARTICLE||n===p.DETAILS||n===p.SECTION||n===p.SUMMARY?oe(e,t):n===p.MARQUEE?re(e,t):ie(e,t);break;case 8:n===p.FIELDSET?oe(e,t):n===p.TEMPLATE?G(e,t):ie(e,t);break;case 10:n===p.BLOCKQUOTE||n===p.FIGCAPTION?oe(e,t):ie(e,t);break;default:ie(e,t)}}function se(e,t){e.tmplInsertionModeStackTop>-1?ge(e,t):e.stopped=!0}function ce(e,t){var n=e.openElements.currentTagName;n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode="IN_TABLE_TEXT_MODE",e._processToken(t)):de(e,t)}function le(e,t){var n=t.tagName;switch(n.length){case 2:n===p.TD||n===p.TH||n===p.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(p.TBODY),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)}(e,t):de(e,t);break;case 3:n===p.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(p.COLGROUP),e.insertionMode="IN_COLUMN_GROUP_MODE",e._processToken(t)}(e,t):de(e,t);break;case 4:n===p.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,m.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):de(e,t);break;case 5:n===p.TABLE?function(e,t){e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===p.STYLE?j(e,t):n===p.TBODY||n===p.TFOOT||n===p.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,m.HTML),e.insertionMode="IN_TABLE_BODY_MODE"}(e,t):n===p.INPUT?function(e,t){var n=o.getTokenAttr(t,g.TYPE);n&&"hidden"===n.toLowerCase()?e._appendElement(t,m.HTML):de(e,t)}(e,t):de(e,t);break;case 6:n===p.SCRIPT?j(e,t):de(e,t);break;case 7:n===p.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,m.HTML),e.insertionMode="IN_CAPTION_MODE"}(e,t):de(e,t);break;case 8:n===p.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,m.HTML),e.insertionMode="IN_COLUMN_GROUP_MODE"}(e,t):n===p.TEMPLATE?j(e,t):de(e,t);break;default:de(e,t)}}function ue(e,t){var n=t.tagName;n===p.TABLE?e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode()):n===p.TEMPLATE?G(e,t):n!==p.BODY&&n!==p.CAPTION&&n!==p.COL&&n!==p.COLGROUP&&n!==p.HTML&&n!==p.TBODY&&n!==p.TD&&n!==p.TFOOT&&n!==p.TH&&n!==p.THEAD&&n!==p.TR&&de(e,t)}function de(e,t){var n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function he(e,t){e.openElements.currentTagName===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=v,e._processToken(t))}function pe(e,t){var n=t.tagName;n===p.HTML?ne(e,t):n===p.OPTION?(e.openElements.currentTagName===p.OPTION&&e.openElements.pop(),e._insertElement(t,m.HTML)):n===p.OPTGROUP?(e.openElements.currentTagName===p.OPTION&&e.openElements.pop(),e.openElements.currentTagName===p.OPTGROUP&&e.openElements.pop(),e._insertElement(t,m.HTML)):n===p.INPUT||n===p.KEYGEN||n===p.TEXTAREA||n===p.SELECT?e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),n!==p.SELECT&&e._processToken(t)):n!==p.SCRIPT&&n!==p.TEMPLATE||j(e,t)}function me(e,t){var n=t.tagName;if(n===p.OPTGROUP){var o=e.openElements.items[e.openElements.stackTop-1],r=o&&e.treeAdapter.getTagName(o);e.openElements.currentTagName===p.OPTION&&r===p.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===p.OPTGROUP&&e.openElements.pop()}else n===p.OPTION?e.openElements.currentTagName===p.OPTION&&e.openElements.pop():n===p.SELECT&&e.openElements.hasInSelectScope(p.SELECT)?(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode()):n===p.TEMPLATE&&G(e,t)}function ge(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function fe(e,t){e.insertionMode=_,e._processToken(t)}function _e(e,t){e.insertionMode=_,e._processToken(t)}w.prototype.parse=function(e){var t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t},w.prototype.parseFragment=function(e,t){t||(t=this.treeAdapter.createElement(p.TEMPLATE,m.HTML,[]));var n=this.treeAdapter.createElement("documentmock",m.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===p.TEMPLATE&&this._pushTmplInsertionMode("IN_TEMPLATE_MODE"),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);var o=this.treeAdapter.getFirstChild(n),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(o,r),r},w.prototype._bootstrap=function(e,t){this.tokenizer=new o(this.options),this.stopped=!1,this.insertionMode="INITIAL_MODE",this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new r(this.document,this.treeAdapter),this.activeFormattingElements=new i(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1},w.prototype._runParsingLoop=function(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();var t=this.tokenizer.getNextToken();if(t.type===o.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===o.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}},w.prototype.runParsingLoopForCurrentChunk=function(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){var n=this.pendingScript;return this.pendingScript=null,void t(n)}e&&e()},w.prototype._setupTokenizerCDATAMode=function(){var e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==m.HTML&&!this._isIntegrationPoint(e)},w.prototype._switchToTextParsing=function(e,t){this._insertElement(e,m.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=b},w.prototype.switchToPlaintextParsing=function(){this.insertionMode=b,this.originalInsertionMode=_,this.tokenizer.state=o.MODE.PLAINTEXT},w.prototype._getAdjustedCurrentElement=function(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current},w.prototype._findFormInFragmentContext=function(){var e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===p.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)},w.prototype._initTokenizerForFragmentParsing=function(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===m.HTML){var e=this.treeAdapter.getTagName(this.fragmentContext);e===p.TITLE||e===p.TEXTAREA?this.tokenizer.state=o.MODE.RCDATA:e===p.STYLE||e===p.XMP||e===p.IFRAME||e===p.NOEMBED||e===p.NOFRAMES||e===p.NOSCRIPT?this.tokenizer.state=o.MODE.RAWTEXT:e===p.SCRIPT?this.tokenizer.state=o.MODE.SCRIPT_DATA:e===p.PLAINTEXT&&(this.tokenizer.state=o.MODE.PLAINTEXT)}},w.prototype._setDocumentType=function(e){this.treeAdapter.setDocumentType(this.document,e.name,e.publicId,e.systemId)},w.prototype._attachElementToTree=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}},w.prototype._appendElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)},w.prototype._insertElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)},w.prototype._insertFakeElement=function(e){var t=this.treeAdapter.createElement(e,m.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)},w.prototype._insertTemplate=function(e){var t=this.treeAdapter.createElement(e.tagName,m.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)},w.prototype._insertFakeRootElement=function(){var e=this.treeAdapter.createElement(p.HTML,m.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)},w.prototype._appendCommentNode=function(e,t){var n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)},w.prototype._insertCharacters=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}},w.prototype._adoptNodes=function(e,t){for(;;){var n=this.treeAdapter.getFirstChild(e);if(!n)break;this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}},w.prototype._shouldProcessTokenInForeignContent=function(e){var t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;var n=this.treeAdapter.getNamespaceURI(t);if(n===m.HTML)return!1;if(this.treeAdapter.getTagName(t)===p.ANNOTATION_XML&&n===m.MATHML&&e.type===o.START_TAG_TOKEN&&e.tagName===p.SVG)return!1;var r=e.type===o.CHARACTER_TOKEN||e.type===o.NULL_CHARACTER_TOKEN||e.type===o.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===o.START_TAG_TOKEN&&e.tagName!==p.MGLYPH&&e.tagName!==p.MALIGNMARK)&&!r||!this._isIntegrationPoint(t,m.MATHML))&&((e.type!==o.START_TAG_TOKEN&&!r||!this._isIntegrationPoint(t,m.HTML))&&e.type!==o.EOF_TOKEN)},w.prototype._processToken=function(e){T[this.insertionMode][e.type](this,e)},w.prototype._processTokenInBodyMode=function(e){T[_][e.type](this,e)},w.prototype._processTokenInForeignContent=function(e){e.type===o.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===o.NULL_CHARACTER_TOKEN?function(e,t){t.chars=d.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===o.WHITESPACE_CHARACTER_TOKEN?M(this,e):e.type===o.COMMENT_TOKEN?N(this,e):e.type===o.START_TAG_TOKEN?function(e,t){if(u.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==m.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{var n=e._getAdjustedCurrentElement(),o=e.treeAdapter.getNamespaceURI(n);o===m.MATHML?u.adjustTokenMathMLAttrs(t):o===m.SVG&&(u.adjustTokenSVGTagName(t),u.adjustTokenSVGAttrs(t)),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,o):e._insertElement(t,o)}}(this,e):e.type===o.END_TAG_TOKEN&&function(e,t){for(var n=e.openElements.stackTop;n>0;n--){var o=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(o)===m.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(o).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(o);break}}}(this,e)},w.prototype._processInputToken=function(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e)},w.prototype._isIntegrationPoint=function(e,t){var n=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e),r=this.treeAdapter.getAttrList(e);return u.isIntegrationPoint(n,o,r,t)},w.prototype._reconstructActiveFormattingElements=function(){var e=this.activeFormattingElements.length;if(e){var t=e,n=null;do{if(t--,(n=this.activeFormattingElements.entries[t]).type===i.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(var o=t;o<e;o++)n=this.activeFormattingElements.entries[o],this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}},w.prototype._closeTableCell=function(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=E},w.prototype._closePElement=function(){this.openElements.generateImpliedEndTagsWithExclusion(p.P),this.openElements.popUntilTagNamePopped(p.P)},w.prototype._resetInsertionMode=function(){for(var e=this.openElements.stackTop,t=!1;e>=0;e--){var n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));var o=this.treeAdapter.getTagName(n),r=y[o];if(r){this.insertionMode=r;break}if(!(t||o!==p.TD&&o!==p.TH)){this.insertionMode="IN_CELL_MODE";break}if(!t&&o===p.HEAD){this.insertionMode="IN_HEAD_MODE";break}if(o===p.SELECT){this._resetInsertionModeForSelect(e);break}if(o===p.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(o===p.HTML){this.insertionMode=this.headElement?"AFTER_HEAD_MODE":"BEFORE_HEAD_MODE";break}if(t){this.insertionMode=_;break}}},w.prototype._resetInsertionModeForSelect=function(e){if(e>0)for(var t=e-1;t>0;t--){var n=this.openElements.items[t],o=this.treeAdapter.getTagName(n);if(o===p.TEMPLATE)break;if(o===p.TABLE)return void(this.insertionMode="IN_SELECT_IN_TABLE_MODE")}this.insertionMode="IN_SELECT_MODE"},w.prototype._pushTmplInsertionMode=function(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e},w.prototype._popTmplInsertionMode=function(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]},w.prototype._isElementCausesFosterParenting=function(e){var t=this.treeAdapter.getTagName(e);return t===p.TABLE||t===p.TBODY||t===p.TFOOT||t===p.THEAD||t===p.TR},w.prototype._shouldFosterParentOnInsertion=function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)},w.prototype._findFosterParentingLocation=function(){for(var e={parent:null,beforeElement:null},t=this.openElements.stackTop;t>=0;t--){var n=this.openElements.items[t],o=this.treeAdapter.getTagName(n),r=this.treeAdapter.getNamespaceURI(n);if(o===p.TEMPLATE&&r===m.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(o===p.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e},w.prototype._fosterParentElement=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)},w.prototype._fosterParentText=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)},w.prototype._isSpecialElement=function(e){var t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return h.SPECIAL_ELEMENTS[n][t]}},function(e,t,n){"use strict";var o=n(338),r=n(239),i=n(610),a=n(137).inherits,s=e.exports=function(e){o.call(this,e),this.tokenizer=e,this.posTracker=new i(e.preprocessor),this.currentAttrLocation=null,this.currentTokenLocation=null};a(s,o),s.prototype._getCurrentLocation=function(){return{line:this.posTracker.line,col:this.posTracker.col,startOffset:this.posTracker.offset,endOffset:-1}},s.prototype._attachCurrentAttrLocationInfo=function(){this.currentAttrLocation.endOffset=this.posTracker.offset;var e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation},s.prototype._getOverriddenMethods=function(e,t){var n={_createStartTagToken:function(){t._createStartTagToken.call(this),this.currentToken.location=e.currentTokenLocation},_createEndTagToken:function(){t._createEndTagToken.call(this),this.currentToken.location=e.currentTokenLocation},_createCommentToken:function(){t._createCommentToken.call(this),this.currentToken.location=e.currentTokenLocation},_createDoctypeToken:function(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.currentTokenLocation},_createCharacterToken:function(n,o){t._createCharacterToken.call(this,n,o),this.currentCharacterToken.location=e.currentTokenLocation},_createAttr:function(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName:function(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue:function(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken:function(){this.currentCharacterToken&&(this.currentCharacterToken.location.endOffset=this.currentToken.location.startOffset),this.currentToken.location.endOffset=e.posTracker.offset+1,t._emitCurrentToken.call(this)},_emitCurrentCharacterToken:function(){this.currentCharacterToken&&-1===this.currentCharacterToken.location.endOffset&&(this.currentCharacterToken.location.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(r.MODE).forEach((function(o){var i=r.MODE[o];n[i]=function(n){e.currentTokenLocation=e._getCurrentLocation(),t[i].call(this,n)}})),n}},function(e,t,n){"use strict";var o=n(338),r=n(137).inherits,i=n(278).CODE_POINTS,a=e.exports=function(e){return e.__locTracker||(e.__locTracker=this,o.call(this,e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.col=-1,this.line=1),e.__locTracker};r(a,o),Object.defineProperty(a.prototype,"offset",{get:function(){return this.droppedBufferSize+this.preprocessor.pos}}),a.prototype._getOverriddenMethods=function(e,t){return{advance:function(){var n=t.advance.call(this);return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=e.offset),n===i.LINE_FEED&&(e.isEol=!0),e.col=e.offset-e.lineStartPos+1,n},retreat:function(){t.retreat.call(this),e.isEol=!1,e.col=e.offset-e.lineStartPos+1},dropParsedChunk:function(){var n=this.pos;t.dropParsedChunk.call(this),e.droppedBufferSize+=n-this.pos}}}},function(e,t,n){"use strict";var o=n(239),r=n(153),i=r.TAG_NAMES,a=r.NAMESPACES,s=r.ATTRS,c="text/html",l="application/xhtml+xml",u={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},d={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:a.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:a.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:a.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:a.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:a.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:a.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:a.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:a.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:a.XML},"xml:space":{prefix:"xml",name:"space",namespace:a.XML},xmlns:{prefix:"",name:"xmlns",namespace:a.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:a.XMLNS}},h=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},p=Object.create(null);p[i.B]=!0,p[i.BIG]=!0,p[i.BLOCKQUOTE]=!0,p[i.BODY]=!0,p[i.BR]=!0,p[i.CENTER]=!0,p[i.CODE]=!0,p[i.DD]=!0,p[i.DIV]=!0,p[i.DL]=!0,p[i.DT]=!0,p[i.EM]=!0,p[i.EMBED]=!0,p[i.H1]=!0,p[i.H2]=!0,p[i.H3]=!0,p[i.H4]=!0,p[i.H5]=!0,p[i.H6]=!0,p[i.HEAD]=!0,p[i.HR]=!0,p[i.I]=!0,p[i.IMG]=!0,p[i.LI]=!0,p[i.LISTING]=!0,p[i.MENU]=!0,p[i.META]=!0,p[i.NOBR]=!0,p[i.OL]=!0,p[i.P]=!0,p[i.PRE]=!0,p[i.RUBY]=!0,p[i.S]=!0,p[i.SMALL]=!0,p[i.SPAN]=!0,p[i.STRONG]=!0,p[i.STRIKE]=!0,p[i.SUB]=!0,p[i.SUP]=!0,p[i.TABLE]=!0,p[i.TT]=!0,p[i.U]=!0,p[i.UL]=!0,p[i.VAR]=!0,t.causesExit=function(e){var t=e.tagName;return!!(t===i.FONT&&(null!==o.getTokenAttr(e,s.COLOR)||null!==o.getTokenAttr(e,s.SIZE)||null!==o.getTokenAttr(e,s.FACE)))||p[t]},t.adjustTokenMathMLAttrs=function(e){for(var t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=function(e){for(var t=0;t<e.attrs.length;t++){var n=u[e.attrs[t].name];n&&(e.attrs[t].name=n)}},t.adjustTokenXMLAttrs=function(e){for(var t=0;t<e.attrs.length;t++){var n=d[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}},t.adjustTokenSVGTagName=function(e){var t=h[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=function(e,t,n,o){return!(o&&o!==a.HTML||!function(e,t,n){if(t===a.MATHML&&e===i.ANNOTATION_XML)for(var o=0;o<n.length;o++)if(n[o].name===s.ENCODING){var r=n[o].value.toLowerCase();return r===c||r===l}return t===a.SVG&&(e===i.FOREIGN_OBJECT||e===i.DESC||e===i.TITLE)}(e,t,n))||!(o&&o!==a.MATHML||!function(e,t){return t===a.MATHML&&(e===i.MI||e===i.MO||e===i.MN||e===i.MS||e===i.MTEXT)}(e,t))}},function(e,t,n){"use strict";var o=n(433),r=n(434),i=n(435),a=n(153),s=a.TAG_NAMES,c=a.NAMESPACES,l={treeAdapter:o},u=/&/g,d=/\u00a0/g,h=/"/g,p=/</g,m=/>/g,g=e.exports=function(e,t){this.options=r(l,t),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=e};g.escapeString=function(e,t){return e=e.replace(u,"&amp;").replace(d,"&nbsp;"),e=t?e.replace(h,"&quot;"):e.replace(p,"&lt;").replace(m,"&gt;")},g.prototype.serialize=function(){return this._serializeChildNodes(this.startNode),this.html},g.prototype._serializeChildNodes=function(e){var t=this.treeAdapter.getChildNodes(e);if(t)for(var n=0,o=t.length;n<o;n++){var r=t[n];this.treeAdapter.isElementNode(r)?this._serializeElement(r):this.treeAdapter.isTextNode(r)?this._serializeTextNode(r):this.treeAdapter.isCommentNode(r)?this._serializeCommentNode(r):this.treeAdapter.isDocumentTypeNode(r)&&this._serializeDocumentTypeNode(r)}},g.prototype._serializeElement=function(e){var t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);if(this.html+="<"+t,this._serializeAttributes(e),this.html+=">",t!==s.AREA&&t!==s.BASE&&t!==s.BASEFONT&&t!==s.BGSOUND&&t!==s.BR&&t!==s.BR&&t!==s.COL&&t!==s.EMBED&&t!==s.FRAME&&t!==s.HR&&t!==s.IMG&&t!==s.INPUT&&t!==s.KEYGEN&&t!==s.LINK&&t!==s.MENUITEM&&t!==s.META&&t!==s.PARAM&&t!==s.SOURCE&&t!==s.TRACK&&t!==s.WBR){var o=t===s.TEMPLATE&&n===c.HTML?this.treeAdapter.getTemplateContent(e):e;this._serializeChildNodes(o),this.html+="</"+t+">"}},g.prototype._serializeAttributes=function(e){for(var t=this.treeAdapter.getAttrList(e),n=0,o=t.length;n<o;n++){var r=t[n],i=g.escapeString(r.value,!0);this.html+=" ",r.namespace?r.namespace===c.XML?this.html+="xml:"+r.name:r.namespace===c.XMLNS?("xmlns"!==r.name&&(this.html+="xmlns:"),this.html+=r.name):r.namespace===c.XLINK?this.html+="xlink:"+r.name:this.html+=r.namespace+":"+r.name:this.html+=r.name,this.html+='="'+i+'"'}},g.prototype._serializeTextNode=function(e){var t=this.treeAdapter.getTextNodeContent(e),n=this.treeAdapter.getParentNode(e),o=void 0;n&&this.treeAdapter.isElementNode(n)&&(o=this.treeAdapter.getTagName(n)),o===s.STYLE||o===s.SCRIPT||o===s.XMP||o===s.IFRAME||o===s.NOEMBED||o===s.NOFRAMES||o===s.PLAINTEXT||o===s.NOSCRIPT?this.html+=t:this.html+=g.escapeString(t,!1)},g.prototype._serializeCommentNode=function(e){this.html+="\x3c!--"+this.treeAdapter.getCommentNodeContent(e)+"--\x3e"},g.prototype._serializeDocumentTypeNode=function(e){var t=this.treeAdapter.getDocumentTypeNodeName(e);this.html+="<"+i.serializeContent(t,null,null)+">"}},function(e,t,n){"use strict";var o=n(339).Writable,r=n(137).inherits,i=n(608),a=e.exports=function(e){o.call(this),this.parser=new i(e),this.lastChunkWritten=!1,this.writeCallback=null,this.pausedByScript=!1,this.document=this.parser.treeAdapter.createDocument(),this.pendingHtmlInsertions=[],this._resume=this._resume.bind(this),this._documentWrite=this._documentWrite.bind(this),this._scriptHandler=this._scriptHandler.bind(this),this.parser._bootstrap(this.document,null)};r(a,o),a.prototype._write=function(e,t,n){this.writeCallback=n,this.parser.tokenizer.write(e.toString("utf8"),this.lastChunkWritten),this._runParsingLoop()},a.prototype.end=function(e,t,n){this.lastChunkWritten=!0,o.prototype.end.call(this,e||"",t,n)},a.prototype._runParsingLoop=function(){this.parser.runParsingLoopForCurrentChunk(this.writeCallback,this._scriptHandler)},a.prototype._resume=function(){if(!this.pausedByScript)throw new Error("Parser was already resumed");for(;this.pendingHtmlInsertions.length;){var e=this.pendingHtmlInsertions.pop();this.parser.tokenizer.insertHtmlAtCurrentPos(e)}this.pausedByScript=!1,this.parser.tokenizer.active&&this._runParsingLoop()},a.prototype._documentWrite=function(e){this.parser.stopped||this.pendingHtmlInsertions.push(e)},a.prototype._scriptHandler=function(e){this.listeners("script").length?(this.pausedByScript=!0,this.emit("script",e,this._documentWrite,this._resume)):this._runParsingLoop()}},function(e,t,n){"use strict";(function(t,o){var r=n(340);e.exports=v;var i,a=n(32);v.ReadableState=b;n(6).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=n(615),l=n(437).Buffer,u=t.Uint8Array||function(){};var d=Object.create(n(279));d.inherits=n(152);var h=n(1039),p=void 0;p=h&&h.debuglog?h.debuglog("stream"):function(){};var m,g=n(1040),f=n(616);d.inherits(v,c);var _=["error","close","destroy","pause","resume"];function b(e,t){e=e||{};var o=t instanceof(i=i||n(207));this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:o&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(m||(m=n(432).StringDecoder),this.decoder=new m(e.encoding),this.encoding=e.encoding)}function v(e){if(i=i||n(207),!(this instanceof v))return new v(e);this._readableState=new b(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function E(e,t,n,o,r){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,T(e)}(e,a)):(r||(i=function(e,t){var n;o=t,l.isBuffer(o)||o instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var o;return n}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),o?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):y(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?y(e,a,t,!1):C(e,a)):y(e,a,t,!1))):o||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function y(e,t,n,o){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,o?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&T(e)),C(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=f.destroy,v.prototype._undestroy=f.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var n,o=this._readableState;return o.objectMode?n=!0:"string"==typeof e&&((t=t||o.defaultEncoding)!==o.encoding&&(e=l.from(e,t),t=""),n=!0),E(this,e,t,!1,n)},v.prototype.unshift=function(e){return E(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return m||(m=n(432).StringDecoder),this._readableState.decoder=new m(e),this._readableState.encoding=e,this};function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(w,e):w(e))}function w(e){p("emit readable"),e.emit("readable"),R(e)}function C(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(x,e,t))}function x(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function O(e){p("readable nexttick read 0"),e.read(0)}function k(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),R(e),t.flowing&&!t.reading&&e.read(0)}function R(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function A(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var o;e<t.head.data.length?(o=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):o=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,o=1,r=n.data;e-=r.length;for(;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0===(e-=a)){a===i.length?(++o,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++o}return t.length-=o,r}(e,t):function(e,t){var n=l.allocUnsafe(e),o=t.head,r=1;o.data.copy(n),e-=o.data.length;for(;o=o.next;){var i=o.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++r,o.next?t.head=o.next:t.head=t.tail=null):(t.head=o,o.data=i.slice(a));break}++r}return t.length-=r,n}(e,t);return o}(e,t.buffer,t.decoder),n);var n}function I(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,r.nextTick(D,t,e))}function D(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}v.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):T(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&I(this),null;var o,r=t.needReadable;return p("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",r=!0),t.ended||t.reading?p("reading or ended",r=!1):r&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(n,t))),null===(o=e>0?A(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&I(this)),null!==o&&this.emit("data",o),o},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,p("pipe count=%d opts=%j",i.pipesCount,t);var c=(!t||!1!==t.end)&&e!==o.stdout&&e!==o.stderr?u:v;function l(t,o){p("onunpipe"),t===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,p("cleanup"),e.removeListener("close",_),e.removeListener("finish",b),e.removeListener("drain",d),e.removeListener("error",f),e.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",v),n.removeListener("data",g),h=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function u(){p("onend"),e.end()}i.endEmitted?r.nextTick(c):n.once("end",c),e.on("unpipe",l);var d=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,R(e))}}(n);e.on("drain",d);var h=!1;var m=!1;function g(t){p("ondata"),m=!1,!1!==e.write(t)||m||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==N(i.pipes,e))&&!h&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,m=!0),n.pause())}function f(t){p("onerror",t),v(),e.removeListener("error",f),0===s(e,"error")&&e.emit("error",t)}function _(){e.removeListener("finish",b),v()}function b(){p("onfinish"),e.removeListener("close",_),v()}function v(){p("unpipe"),n.unpipe(e)}return n.on("data",g),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",_),e.once("finish",b),e.emit("pipe",n),i.flowing||(p("pipe resume"),n.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var o=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<r;i++)o[i].emit("unpipe",this,n);return this}var a=N(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},v.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var o=this._readableState;o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.emittedReadable=!1,o.reading?o.length&&T(this):r.nextTick(O,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(k,e,t))}(this,e)),this},v.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,n=this._readableState,o=!1;for(var r in e.on("end",(function(){if(p("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(r){(p("wrapped data"),n.decoder&&(r=n.decoder.write(r)),n.objectMode&&null==r)||(n.objectMode||r&&r.length)&&(t.push(r)||(o=!0,e.pause()))})),e)void 0===this[r]&&"function"==typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var i=0;i<_.length;i++)e.on(_[i],this.emit.bind(this,_[i]));return this._read=function(t){p("wrapped _read",t),o&&(o=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=A}).call(this,n(5),n(161))},function(e,t,n){e.exports=n(6).EventEmitter},function(e,t,n){"use strict";var o=n(340);function r(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||o.nextTick(r,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(o.nextTick(r,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";e.exports=a;var o=n(207),r=Object.create(n(279));function i(e,t){var n=this._transformState;n.transforming=!1;var o=n.writecb;if(!o)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),o(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);o.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){c(e,t,n)})):c(this,null,null)}function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}r.inherits=n(152),r.inherits(a,o),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,o.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var o=this._transformState;if(o.writecb=n,o.writechunk=e,o.writeencoding=t,!o.transforming){var r=this._readableState;(o.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;o.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){var o=n(439),r=n(442),i=n(443),a=n(209),s=n(342),c=n(343),l=Object.prototype.hasOwnProperty,u=i((function(e,t){if(s(t)||a(t))r(t,c(t),e);else for(var n in t)l.call(t,n)&&o(e,n,t[n])}));e.exports=u},function(e,t,n){var o=n(208),r=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(5))},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 o=n(445),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=r(i.length-t,0),c=Array(s);++a<s;)c[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=n(c),o(e,this,l)}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,o=0;return function(){var r=n(),i=16-(r-o);if(o=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var o=n(1061),r=n(344),i=n(111),a=n(449),s=n(282),c=n(450),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&r(e),d=!n&&!u&&a(e),h=!n&&!u&&!d&&c(e),p=n||u||d||h,m=p?o(e.length,String):[],g=m.length;for(var f in e)!t&&!l.call(e,f)||p&&("length"==f||d&&("offset"==f||"parent"==f)||h&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||s(f,g))||m.push(f);return m}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var o=n(167),r=n(451),i={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},s=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var n="",r=0;r<e.length;r++){var i=e[r];"root"===i.type?n+=s(i.children,t):o.isTag(i)?n+=c(i,t):i.type===o.Directive?n+=l(i):i.type===o.Comment?n+=h(i):i.type===o.CDATA?n+=d(i):n+=u(i,t)}return n};function c(e,t){"svg"===e.name&&(t={decodeEntities:t.decodeEntities,xmlMode:!0});var n="<"+e.name,o=function(e,t){if(e){var n,o="";for(var i in e)o&&(o+=" "),o+=i,(null!==(n=e[i])&&""!==n||t.xmlMode)&&(o+='="'+(t.decodeEntities?r.encodeXML(n):n)+'"');return o}}(e.attribs,t);return o&&(n+=" "+o),!t.xmlMode||e.children&&0!==e.children.length?(n+=">",e.children&&(n+=s(e.children,t)),a[e.name]&&!t.xmlMode||(n+="</"+e.name+">")):n+="/>",n}function l(e){return"<"+e.data+">"}function u(e,t){var n=e.data||"";return!t.decodeEntities||e.parent&&e.parent.name in i||(n=r.encodeXML(n)),n}function d(e){return"<![CDATA["+e.children[0].data+"]]>"}function h(e){return"\x3c!--"+e.data+"--\x3e"}},function(e,t,n){var o=n(442),r=n(443),i=n(345),a=r((function(e,t){o(t,i(t),e)}));e.exports=a},function(e,t,n){var o=n(281),r=n(629),i=r?function(e,t){return r.set(e,t),e}:o;e.exports=i},function(e,t,n){var o=n(630),r=o&&new o;e.exports=r},function(e,t,n){var o=n(208)(n(127),"WeakMap");e.exports=o},function(e,t,n){var o=n(632),r=n(633),i=n(1076),a=n(346),s=n(634),c=n(456),l=n(1091),u=n(348),d=n(127);e.exports=function e(t,n,h,p,m,g,f,_,b,v){var E=128&n,y=1&n,S=2&n,T=24&n,w=512&n,C=S?void 0:a(t);return function x(){for(var O=arguments.length,k=Array(O),R=O;R--;)k[R]=arguments[R];if(T)var A=c(x),I=i(k,A);if(p&&(k=o(k,p,m,T)),g&&(k=r(k,g,f,T)),O-=I,T&&O<v){var D=u(k,A);return s(t,n,e,x.placeholder,h,k,D,_,b,v-O)}var N=y?h:this,F=S?N[t]:t;return O=k.length,_?k=l(k,_):w&&O>1&&k.reverse(),E&&b<O&&(k.length=b),this&&this!==d&&this instanceof x&&(F=C||a(F)),F.apply(N,k)}}},function(e,t){var n=Math.max;e.exports=function(e,t,o,r){for(var i=-1,a=e.length,s=o.length,c=-1,l=t.length,u=n(a-s,0),d=Array(l+u),h=!r;++c<l;)d[c]=t[c];for(;++i<s;)(h||i<a)&&(d[o[i]]=e[i]);for(;u--;)d[c++]=e[i++];return d}},function(e,t){var n=Math.max;e.exports=function(e,t,o,r){for(var i=-1,a=e.length,s=-1,c=o.length,l=-1,u=t.length,d=n(a-c,0),h=Array(d+u),p=!r;++i<d;)h[i]=e[i];for(var m=i;++l<u;)h[m+l]=t[l];for(;++s<c;)(p||i<a)&&(h[m+o[s]]=e[i++]);return h}},function(e,t,n){var o=n(1077),r=n(637),i=n(638);e.exports=function(e,t,n,a,s,c,l,u,d,h){var p=8&t;t|=p?32:64,4&(t&=~(p?64:32))||(t&=-4);var m=[e,t,s,p?c:void 0,p?l:void 0,p?void 0:c,p?void 0:l,u,d,h],g=n.apply(void 0,m);return o(e)&&r(g,m),g.placeholder=a,i(g,e,t)}},function(e,t,n){var o=n(629),r=n(1078),i=o?function(e){return o.get(e)}:r;e.exports=i},function(e,t,n){var o=n(347),r=n(454);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=o(r.prototype),i.prototype.constructor=i,e.exports=i},function(e,t,n){var o=n(628),r=n(623)(o);e.exports=r},function(e,t,n){var o=n(1083),r=n(1084),i=n(446),a=n(1085);e.exports=function(e,t,n){var s=t+"";return i(e,r(s,a(o(s),n)))}},function(e,t){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}},function(e,t,n){var o=n(1098)();e.exports=o},function(e,t,n){var o=n(444),r=n(241),i=n(447),a=n(345),s=Object.prototype,c=s.hasOwnProperty,l=o((function(e,t){e=Object(e);var n=-1,o=t.length,l=o>2?t[2]:void 0;for(l&&i(t[0],t[1],l)&&(o=1);++n<o;)for(var u=t[n],d=a(u),h=-1,p=d.length;++h<p;){var m=d[h],g=e[m];(void 0===g||r(g,s[m])&&!c.call(e,m))&&(e[m]=u[m])}return e}));e.exports=l},function(e,t,n){"use strict";e.exports=f;var o=n(458),r=n(285),i=r.findOne,a=r.findAll,s=r.getChildren,c=r.removeSubsets,l=n(286).falseFunc,u=n(1111),d=u.compileUnsafe,h=u.compileToken;function p(e){return function(t,n,o){return"function"!=typeof t&&(t=d(t,o,n)),n=Array.isArray(n)?c(n):s(n),e(t,n)}}var m=p((function(e,t){return e!==l&&t&&0!==t.length?a(e,t):[]})),g=p((function(e,t){return e!==l&&t&&0!==t.length?i(e,t):null}));function f(e,t,n){return m(e,t,n)}f.compile=u,f.filters=o.filters,f.pseudos=o.pseudos,f.selectAll=m,f.selectOne=g,f.is=function(e,t,n){return("function"==typeof t?t:u(t,n))(e)},f.parse=u,f.iterate=m,f._compileUnsafe=d,f._compileToken=h},function(e,t,n){var o=n(285),r=o.hasAttrib,i=o.getAttributeValue,a=n(286).falseFunc,s=/[-[\]{}()*+?.,\\^$|#\s]/g,c={__proto__:null,equals:function(e,t){var n=t.name,o=t.value;return t.ignoreCase?(o=o.toLowerCase(),function(t){var r=i(t,n);return null!=r&&r.toLowerCase()===o&&e(t)}):function(t){return i(t,n)===o&&e(t)}},hyphen:function(e,t){var n=t.name,o=t.value,r=o.length;return t.ignoreCase?(o=o.toLowerCase(),function(t){var a=i(t,n);return null!=a&&(a.length===r||"-"===a.charAt(r))&&a.substr(0,r).toLowerCase()===o&&e(t)}):function(t){var a=i(t,n);return null!=a&&a.substr(0,r)===o&&(a.length===r||"-"===a.charAt(r))&&e(t)}},element:function(e,t){var n=t.name,o=t.value;if(/\s/.test(o))return a;var r="(?:^|\\s)"+(o=o.replace(s,"\\$&"))+"(?:$|\\s)",c=t.ignoreCase?"i":"",l=new RegExp(r,c);return function(t){var o=i(t,n);return null!=o&&l.test(o)&&e(t)}},exists:function(e,t){var n=t.name;return function(t){return r(t,n)&&e(t)}},start:function(e,t){var n=t.name,o=t.value,r=o.length;return 0===r?a:t.ignoreCase?(o=o.toLowerCase(),function(t){var a=i(t,n);return null!=a&&a.substr(0,r).toLowerCase()===o&&e(t)}):function(t){var a=i(t,n);return null!=a&&a.substr(0,r)===o&&e(t)}},end:function(e,t){var n=t.name,o=t.value,r=-o.length;return 0===r?a:t.ignoreCase?(o=o.toLowerCase(),function(t){var a=i(t,n);return null!=a&&a.substr(r).toLowerCase()===o&&e(t)}):function(t){var a=i(t,n);return null!=a&&a.substr(r)===o&&e(t)}},any:function(e,t){var n=t.name,o=t.value;if(""===o)return a;if(t.ignoreCase){var r=new RegExp(o.replace(s,"\\$&"),"i");return function(t){var o=i(t,n);return null!=o&&r.test(o)&&e(t)}}return function(t){var r=i(t,n);return null!=r&&r.indexOf(o)>=0&&e(t)}},not:function(e,t){var n=t.name,o=t.value;return""===o?function(t){return!!i(t,n)&&e(t)}:t.ignoreCase?(o=o.toLowerCase(),function(t){var r=i(t,n);return null!=r&&r.toLowerCase()!==o&&e(t)}):function(t){return i(t,n)!==o&&e(t)}}};e.exports={compile:function(e,t,n){if(n&&n.strict&&(t.ignoreCase||"not"===t.action))throw SyntaxError("Unsupported attribute selector");return c[t.action](e,t)},rules:c}},function(e){e.exports=JSON.parse('{"universal":50,"tag":30,"attribute":1,"pseudo":0,"descendant":-1,"child":-1,"parent":-1,"sibling":-1,"adjacent":-1}')},function(e,t,n){var o=n(440),r=n(241);e.exports=function(e,t,n){(void 0!==n&&!r(e[t],n)||void 0===n&&!(t in e))&&o(e,t,n)}},function(e,t,n){var o=n(127).Uint8Array;e.exports=o},function(e,t,n){var o=n(625)(Object.getPrototypeOf,Object);e.exports=o},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var o=n(1150),r=n(193);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:o(t,n,i,a,e,s))}},function(e,t,n){var o=n(1151),r=n(649),i=n(1154);e.exports=function(e,t,n,a,s,c){var l=1&n,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var h=c.get(e),p=c.get(t);if(h&&p)return h==t&&p==e;var m=-1,g=!0,f=2&n?new o:void 0;for(c.set(e,t),c.set(t,e);++m<u;){var _=e[m],b=t[m];if(a)var v=l?a(b,_,m,t,e,c):a(_,b,m,e,t,c);if(void 0!==v){if(v)continue;g=!1;break}if(f){if(!r(t,(function(e,t){if(!i(f,t)&&(_===e||s(_,e,n,a,c)))return f.push(t)}))){g=!1;break}}else if(_!==b&&!s(_,b,n,a,c)){g=!1;break}}return c.delete(e),c.delete(t),g}},function(e,t){e.exports=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}},function(e,t,n){var o=n(144);e.exports=function(e){return e==e&&!o(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){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}},function(e,t,n){var o=n(1175),r=n(1176);e.exports=function(e,t){return null!=e&&r(e,t,o)}},function(e,t,n){var o=n(284);e.exports=function(e,t){var n=[];return o(e,(function(e,o,r){t(e,o,r)&&n.push(e)})),n}},function(e,t,n){var o=n(1189);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},function(e,t){e.exports=/\uD83D\uDC68\u200D\u2764\uFE0F\u200D\uD83D\uDC8B\u200D\uD83D\uDC68|\uD83D\uDC69\u200D\u2764\uFE0F\u200D\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83D\uDC68\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83D\uDC68\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83D\uDC68\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83D\uDC68\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC69(?:\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFB-\uDFFE])|\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFC-\uDFFF]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68\u200D(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68\u200D\u2764\uFE0F\u200D\uD83D\uDC68|\uD83D\uDC69\u200D\u2764\uFE0F\u200D(?:\uD83D[\uDC68\uDC69])|\uD83E\uDDD1\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC68(?:\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D[\uDC67-\uDC69])\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]\uFE0F)|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83C\uDFF3\uFE0F\u200D\u26A7|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF]))\u200D[\u2695\u2696\u2708]\uFE0F|\uD83D\uDC69\u200D(?:\uD83D[\uDC67\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83D\uDC3B\u200D\u2744|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDF])\u200D[\u2640\u2642])\uFE0F|\uD83E\uDDD1\u200D[\u2695\u2696\u2708]\uFE0F|(?:\uD83D[\uDC68\uDC69])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D[\u2695\u2696\u2708]\uFE0F)|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC08\u200D\u2B1B|\uD83E\uDDD1\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDC66\uDC67\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC3\uDFC7]|\uD83D[\uDC43\uDC4A-\uDC4C\uDC4F\uDC50\uDC66-\uDC69\uDC6B-\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD7A\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270C\u270D]|\uD83C[\uDFC2\uDFC4\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC46-\uDC49\uDC4D\uDC4E\uDD74\uDD75\uDD90])(?:[\uFE0E\uFE0F]|\uD83C[\uDFFB-\uDFFF])|(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9\u23EA\u23ED-\u23EF\u23F1-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7\u26F8\u26FA\u26FD\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2753\u2757\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE1A\uDE2F\uDE37\uDF0D-\uDF0F\uDF15\uDF1C\uDF21\uDF24-\uDF2C\uDF36\uDF78\uDF7D\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFA7\uDFAC-\uDFAE\uDFC6\uDFCD\uDFCE\uDFD4-\uDFE0\uDFED\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC08\uDC15\uDC1F\uDC26\uDC3F\uDC41\uDC53\uDC6A\uDC7D\uDCA3\uDCB0\uDCB3\uDCBB\uDCBF\uDCCB\uDCDA\uDCDF\uDCE4-\uDCE6\uDCEA-\uDCED\uDCF7\uDCF9-\uDCFB\uDCFD\uDD08\uDD0D\uDD12\uDD13\uDD49\uDD4A\uDD50-\uDD67\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDE10\uDE87\uDE8D\uDE91\uDE94\uDE98\uDEAD\uDEB2\uDEB9\uDEBA\uDEBC\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])[\uFE0E\uFE0F]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]/},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=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(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(661)),s=n(6),c=new Set(["input","option","optgroup","select","button","datalist","textarea"]),l=new Set(["p"]),u={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:l,h1:l,h2:l,h3:l,h4:l,h5:l,h6:l,select:c,input:c,output:c,button:c,datalist:c,textarea:c,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:l,article:l,aside:l,blockquote:l,details:l,div:l,dl:l,fieldset:l,figcaption:l,figure:l,footer:l,form:l,header:l,hr:l,main:l,nav:l,ol:l,pre:l,section:l,table:l,ul:l,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},d=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),h=new Set(["math","svg"]),p=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=/\s|\//,g=function(e){function t(n,o){var r=e.call(this)||this;return r._tagname="",r._attribname="",r._attribvalue="",r._attribs=null,r._stack=[],r._foreignContext=[],r.startIndex=0,r.endIndex=null,r.parseChunk=t.prototype.write,r.done=t.prototype.end,r._options=o||{},r._cbs=n||{},r._tagname="",r._attribname="",r._attribvalue="",r._attribs=null,r._stack=[],r._foreignContext=[],r.startIndex=0,r.endIndex=null,r._lowerCaseTagNames="lowerCaseTags"in r._options?!!r._options.lowerCaseTags:!r._options.xmlMode,r._lowerCaseAttributeNames="lowerCaseAttributeNames"in r._options?!!r._options.lowerCaseAttributeNames:!r._options.xmlMode,r._tokenizer=new(r._options.Tokenizer||a.default)(r._options,r),r._cbs.onparserinit&&r._cbs.onparserinit(r),r}return r(t,e),t.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},t.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},t.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&Object.prototype.hasOwnProperty.call(u,e))for(var t=void 0;u[e].has(t=this._stack[this._stack.length-1]);this.onclosetag(t));!this._options.xmlMode&&d.has(e)||(this._stack.push(e),h.has(e)?this._foreignContext.push(!0):p.has(e)&&this._foreignContext.push(!1)),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},t.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&d.has(this._tagname)&&this._cbs.onclosetag(this._tagname),this._tagname=""},t.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),(h.has(e)||p.has(e))&&this._foreignContext.pop(),!this._stack.length||!this._options.xmlMode&&d.has(e))this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},t.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing||this._foreignContext[this._foreignContext.length-1]?this._closeCurrentTag():this.onopentagend()},t.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},t.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},t.prototype.onattribdata=function(e){this._attribvalue+=e},t.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},t.prototype._getInstructionName=function(e){var t=e.search(m),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},t.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},t.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},t.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},t.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},t.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},t.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.write=function(e){this._tokenizer.write(e)},t.prototype.end=function(e){this._tokenizer.end(e)},t.prototype.pause=function(){this._tokenizer.pause()},t.prototype.resume=function(){this._tokenizer.resume()},t}(s.EventEmitter);t.Parser=g},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(1203)),i=o(n(1205)),a=o(n(1206)),s=o(n(1207));function c(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function l(e,t,n){var o=e.toLowerCase();return e===o?function(e,r){r===o?e._state=t:(e._state=n,e._index--)}:function(r,i){i===o||i===e?r._state=t:(r._state=n,r._index--)}}function u(e,t){var n=e.toLowerCase();return function(o,r){r===n||r===e?o._state=t:(o._state=3,o._index--)}}var d=l("C",23,16),h=l("D",24,16),p=l("A",25,16),m=l("T",26,16),g=l("A",27,16),f=u("R",34),_=u("I",35),b=u("P",36),v=u("T",37),E=l("R",39,1),y=l("I",40,1),S=l("P",41,1),T=l("T",42,1),w=u("Y",44),C=u("L",45),x=u("E",46),O=l("Y",48,1),k=l("L",49,1),R=l("E",50,1),A=l("#",52,53),I=l("X",55,54),D=function(){function e(e,t){this._state=1,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=1,this._special=1,this._running=!0,this._ended=!1,this._cbs=t,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}return e.prototype.reset=function(){this._state=1,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=1,this._special=1,this._running=!0,this._ended=!1},e.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=2,this._sectionStart=this._index):this._decodeEntities&&1===this._special&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=1,this._state=51,this._sectionStart=this._index)},e.prototype._stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||1!==this._special||c(e)?this._state=1:"!"===e?(this._state=15,this._sectionStart=this._index+1):"?"===e?(this._state=17,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?3:31,this._sectionStart=this._index)},e.prototype._stateInTagName=function(e){("/"===e||">"===e||c(e))&&(this._emitToken("onopentagname"),this._state=8,this._index--)},e.prototype._stateBeforeClosingTagName=function(e){c(e)||(">"===e?this._state=1:1!==this._special?"s"===e||"S"===e?this._state=32:(this._state=1,this._index--):(this._state=6,this._sectionStart=this._index))},e.prototype._stateInClosingTagName=function(e){(">"===e||c(e))&&(this._emitToken("onclosetag"),this._state=7,this._index--)},e.prototype._stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this._sectionStart=this._index+1)},e.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=1,this._sectionStart=this._index+1):"/"===e?this._state=4:c(e)||(this._state=9,this._sectionStart=this._index)},e.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=1,this._sectionStart=this._index+1):c(e)||(this._state=8,this._index--)},e.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||c(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=10,this._index--)},e.prototype._stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this._cbs.onattribend(),this._state=8,this._index--):c(e)||(this._cbs.onattribend(),this._state=9,this._sectionStart=this._index)},e.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this._sectionStart=this._index+1):"'"===e?(this._state=13,this._sectionStart=this._index+1):c(e)||(this._state=14,this._sectionStart=this._index,this._index--)},e.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},e.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},e.prototype._stateInAttributeValueNoQuotes=function(e){c(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},e.prototype._stateBeforeDeclaration=function(e){this._state="["===e?22:"-"===e?18:16},e.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=1,this._sectionStart=this._index+1)},e.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=1,this._sectionStart=this._index+1)},e.prototype._stateBeforeComment=function(e){"-"===e?(this._state=19,this._sectionStart=this._index+1):this._state=16},e.prototype._stateInComment=function(e){"-"===e&&(this._state=20)},e.prototype._stateAfterComment1=function(e){this._state="-"===e?21:19},e.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=1,this._sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=28,this._sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype._stateInCdata=function(e){"]"===e&&(this._state=29)},e.prototype._stateAfterCdata1=function(e){this._state="]"===e?30:28},e.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=1,this._sectionStart=this._index+1):"]"!==e&&(this._state=28)},e.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=33:"t"===e||"T"===e?this._state=43:(this._state=3,this._index--)},e.prototype._stateBeforeSpecialEnd=function(e){2!==this._special||"c"!==e&&"C"!==e?3!==this._special||"t"!==e&&"T"!==e?this._state=1:this._state=47:this._state=38},e.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||c(e))&&(this._special=2),this._state=3,this._index--},e.prototype._stateAfterScript5=function(e){">"===e||c(e)?(this._special=1,this._state=6,this._sectionStart=this._index-6,this._index--):this._state=1},e.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||c(e))&&(this._special=3),this._state=3,this._index--},e.prototype._stateAfterStyle4=function(e){">"===e||c(e)?(this._special=1,this._state=6,this._sectionStart=this._index-5,this._index--):this._state=1},e.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var e=this._buffer.substring(this._sectionStart+1,this._index),t=this._xmlMode?s.default:i.default;Object.prototype.hasOwnProperty.call(t,e)&&(this._emitPartial(t[e]),this._sectionStart=this._index+1)}},e.prototype._parseLegacyEntity=function(){var e=this._sectionStart+1,t=this._index-e;for(t>6&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(a.default,n))return this._emitPartial(a.default[n]),void(this._sectionStart+=t+1);t--}},e.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(e<"a"||e>"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(1!==this._baseState?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},e.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var o=this._buffer.substring(n,this._index),i=parseInt(o,t);this._emitPartial(r.default(i)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},e.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},e.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},e.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(1===this._state?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},e.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},e.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var e=this._buffer.charAt(this._index);1===this._state?this._stateText(e):12===this._state?this._stateInAttributeValueDoubleQuotes(e):9===this._state?this._stateInAttributeName(e):19===this._state?this._stateInComment(e):8===this._state?this._stateBeforeAttributeName(e):3===this._state?this._stateInTagName(e):6===this._state?this._stateInClosingTagName(e):2===this._state?this._stateBeforeTagName(e):10===this._state?this._stateAfterAttributeName(e):13===this._state?this._stateInAttributeValueSingleQuotes(e):11===this._state?this._stateBeforeAttributeValue(e):5===this._state?this._stateBeforeClosingTagName(e):7===this._state?this._stateAfterClosingTagName(e):31===this._state?this._stateBeforeSpecial(e):20===this._state?this._stateAfterComment1(e):14===this._state?this._stateInAttributeValueNoQuotes(e):4===this._state?this._stateInSelfClosingTag(e):16===this._state?this._stateInDeclaration(e):15===this._state?this._stateBeforeDeclaration(e):21===this._state?this._stateAfterComment2(e):18===this._state?this._stateBeforeComment(e):32===this._state?this._stateBeforeSpecialEnd(e):38===this._state?E(this,e):39===this._state?y(this,e):40===this._state?S(this,e):33===this._state?f(this,e):34===this._state?_(this,e):35===this._state?b(this,e):36===this._state?v(this,e):37===this._state?this._stateBeforeScript5(e):41===this._state?T(this,e):42===this._state?this._stateAfterScript5(e):43===this._state?w(this,e):28===this._state?this._stateInCdata(e):44===this._state?C(this,e):45===this._state?x(this,e):46===this._state?this._stateBeforeStyle4(e):47===this._state?O(this,e):48===this._state?k(this,e):49===this._state?R(this,e):50===this._state?this._stateAfterStyle4(e):17===this._state?this._stateInProcessingInstruction(e):53===this._state?this._stateInNamedEntity(e):22===this._state?d(this,e):51===this._state?A(this,e):23===this._state?h(this,e):24===this._state?p(this,e):29===this._state?this._stateAfterCdata1(e):30===this._state?this._stateAfterCdata2(e):25===this._state?m(this,e):26===this._state?g(this,e):27===this._state?this._stateBeforeCdata6(e):55===this._state?this._stateInHexEntity(e):54===this._state?this._stateInNumericEntity(e):52===this._state?I(this,e):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},e.prototype.pause=function(){this._running=!1},e.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},e.prototype.end=function(e){this._ended&&this._cbs.onerror(Error(".end() after done!")),e&&this.write(e),this._ended=!0,this._running&&this._finish()},e.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},e.prototype._handleTrailingData=function(){var e=this._buffer.substr(this._sectionStart);28===this._state||29===this._state||30===this._state?this._cbs.oncdata(e):19===this._state||20===this._state||21===this._state?this._cbs.oncomment(e):53!==this._state||this._xmlMode?54!==this._state||this._xmlMode?55!==this._state||this._xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this._cbs.ontext(e):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},e.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},e.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},e.prototype._emitToken=function(e){this._cbs[e](this._getSection()),this._sectionStart=-1},e.prototype._emitPartial=function(e){1!==this._baseState?this._cbs.onattribdata(e):this._cbs.ontext(e)},e}();t.default=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1208);t.Node=o.Node,t.Element=o.Element,t.DataNode=o.DataNode,t.NodeWithChildren=o.NodeWithChildren;var r=/\s+/g,i={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1},a=function(){function e(e,t,n){this.dom=[],this._done=!1,this._tagStack=[],this._lastNode=null,this._parser=null,"function"==typeof t&&(n=t,t=i),"object"==typeof e&&(t=e,e=void 0),this._callback=e||null,this._options=t||i,this._elementCB=n||null}return e.prototype.onparserinit=function(e){this._parser=e},e.prototype.onreset=function(){this.dom=[],this._done=!1,this._tagStack=[],this._lastNode=null,this._parser=this._parser||null},e.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this._lastNode=null;var e=this._tagStack.pop();e&&this._parser&&(this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(e))},e.prototype.onopentag=function(e,t){var n=new o.Element(e,t);this.addNode(n),this._tagStack.push(n)},e.prototype.ontext=function(e){var t=this._options.normalizeWhitespace,n=this._lastNode;if(n&&"text"===n.type)t?n.data=(n.data+e).replace(r," "):n.data+=e;else{t&&(e=e.replace(r," "));var i=new o.DataNode("text",e);this.addNode(i),this._lastNode=i}},e.prototype.oncomment=function(e){if(this._lastNode&&"comment"===this._lastNode.type)this._lastNode.data+=e;else{var t=new o.DataNode("comment",e);this.addNode(t),this._lastNode=t}},e.prototype.oncommentend=function(){this._lastNode=null},e.prototype.oncdatastart=function(){var e=new o.DataNode("text",""),t=new o.NodeWithChildren("cdata",[e]);this.addNode(t),e.parent=t,this._lastNode=e},e.prototype.oncdataend=function(){this._lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new o.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this._tagStack[this._tagStack.length-1],n=t?t.children:this.dom,o=n[n.length-1];this._parser&&(this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withEndIndices&&(e.endIndex=this._parser.endIndex)),n.push(e),o&&(e.prev=o,o.next=e),t&&(e.parent=t),this._lastNode=null},e.prototype.addDataNode=function(e){this.addNode(e),this._lastNode=e},e}();t.DomHandler=a,t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTag=function(e){return"tag"===e.type||"script"===e.type||"style"===e.type},t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=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(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(662)),c=a(n(665)),l=n(660),u=function(e){function t(t,n){return"object"==typeof t&&null!==t&&(n=t=void 0),e.call(this,t,n)||this}return r(t,e),t.prototype.onend=function(){var e={},t=h(f,this.dom);if(t)if("feed"===t.name){var n=t.children;e.type="atom",g(e,"id","id",n),g(e,"title","title",n);var o=m("href",h("link",n));o&&(e.link=o),g(e,"description","subtitle",n),(r=p("updated",n))&&(e.updated=new Date(r)),g(e,"author","email",n,!0),e.items=d("entry",n).map((function(e){var t={},n=e.children;g(t,"id","id",n),g(t,"title","title",n);var o=m("href",h("link",n));o&&(t.link=o);var r=p("summary",n)||p("content",n);r&&(t.description=r);var i=p("updated",n);return i&&(t.pubDate=new Date(i)),t}))}else{var r;n=h("channel",t.children).children;e.type=t.name.substr(0,3),e.id="",g(e,"title","title",n),g(e,"link","link",n),g(e,"description","description",n),(r=p("lastBuildDate",n))&&(e.updated=new Date(r)),g(e,"author","managingEditor",n,!0),e.items=d("item",t.children).map((function(e){var t={},n=e.children;g(t,"id","guid",n),g(t,"title","title",n),g(t,"link","link",n),g(t,"description","description",n);var o=p("pubDate",n);return o&&(t.pubDate=new Date(o)),t}))}this.feed=e,this.handleCallback(t?null:Error("couldn't find root of feed"))},t}(s.default);function d(e,t){return c.getElementsByTagName(e,t,!0)}function h(e,t){return c.getElementsByTagName(e,t,!0,1)[0]}function p(e,t,n){return void 0===n&&(n=!1),c.getText(c.getElementsByTagName(e,t,n,1)).trim()}function m(e,t){return t?t.attribs[e]:null}function g(e,t,n,o,r){void 0===r&&(r=!1);var i=p(n,o,r);i&&(e[t]=i)}function f(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}t.FeedHandler=u;var _={xmlMode:!0};t.parseFeed=function(e,t){void 0===t&&(t=_);var n=new u(t);return new l.Parser(n,t).end(e),n.feed}},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(1209)),o(n(1210)),o(n(1211)),o(n(666)),o(n(1212)),o(n(1213)),o(n(290))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(290);function r(e,t,n,i){for(var a=[],s=0,c=t;s<c.length;s++){var l=c[s];if(e(l)&&(a.push(l),--i<=0))break;if(n&&o.hasChildren(l)&&l.children.length>0){var u=r(e,l.children,n,i);if(a.push.apply(a,u),(i-=u.length)<=0)break}}return a}t.filter=function(e,t,n,o){return void 0===n&&(n=!0),void 0===o&&(o=1/0),Array.isArray(t)||(t=[t]),r(e,t,n,o)},t.find=r,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,r){void 0===r&&(r=!0);for(var i=null,a=0;a<n.length&&!i;a++){var s=n[a];o.isTag(s)&&(t(s)?i=s:r&&s.children.length>0&&(i=e(t,s.children)))}return i},t.existsOne=function e(t,n){return n.some((function(n){return o.isTag(n)&&(t(n)||n.children.length>0&&e(t,n.children))}))},t.findAll=function(e,t){for(var n,r,i=[],a=t.filter(o.isTag);r=a.shift();){var s=null===(n=r.children)||void 0===n?void 0:n.filter(o.isTag);s&&s.length>0&&a.unshift.apply(a,s),e(r)&&i.push(r)}return i}},,function(e,t,n){"use strict";const o={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};e.exports=class{constructor(e){this.builder=e}stringify(e,t){this[e.type](e,t)}root(e){this.root=e,this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),t&&(o+=";"),this.builder(o,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{let r=(e.raws.between||"")+(t?";":"");this.builder(n+o+r,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let o=0;o<e.nodes.length;o++){let r=e.nodes[o],i=this.raw(r,"before");i&&this.builder(i),this.stringify(r,t!==o||n)}}block(e,t){let n,o=this.raw(e,"between","beforeOpen");this.builder(t+o+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}raw(e,t,n){let r;if(n||(n=t),t&&(r=e.raws[t],void 0!==r))return r;let i=e.parent;if("before"===n&&(!i||"root"===i.type&&i.first===e))return"";if(!i)return o[n];let a=e.root();if(a.rawCache||(a.rawCache={}),void 0!==a.rawCache[n])return a.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let o="raw"+((s=n)[0].toUpperCase()+s.slice(1));this[o]?r=this[o](a,e):a.walk(e=>{if(r=e.raws[t],void 0!==r)return!1})}var s;return void 0===r&&(r=o[n]),a.rawCache[n]=r,r}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let o=e.parent,r=0;for(;o&&"root"!==o.type;)r+=1,o=o.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<r;e++)n+=t}return n}rawValue(e,t){let n=e[t],o=e.raws[t];return o&&o.value===n?o.raw:n}}},function(e,t,n){"use strict";let{isClean:o}=n(467),r=n(1224),i=n(468),a=(n(1231),n(674)),s=n(676),c=n(358);const l={root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"};function u(e){return"object"==typeof e&&"function"==typeof e.then}function d(e){let t=!1,n=l[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function h(e){let t;return t="root"===e.type?["Root",0,"RootExit"]:d(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function p(e){return e[o]=!1,e.nodes&&e.nodes.forEach(e=>p(e)),e}let m={};class g{constructor(e,t,n){let o;if(this.stringified=!1,this.processed=!1,"object"==typeof t&&null!==t&&"root"===t.type)o=p(t);else if(t instanceof g||t instanceof a)o=p(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=s;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{o=e(t,n)}catch(e){this.processed=!0,this.error=e}}this.result=new a(e,o,n),this.helpers={...m,result:this.result,postcss:m},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(u(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[o];)e[o]=!0,this.walkSync(e);this.listeners.OnceExit&&this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=i;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new r(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[o]=!0;let t=d(e);for(let n of t)if(0===n)e.nodes&&e.each(e=>{e[o]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[n,o]of e){let e;this.result.lastPlugin=n;try{e=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&!t.parent)return!0;if(u(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once)return e.Once(this.result.root,this.helpers);if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(u(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[o];){e[o]=!0;let t=[h(e)];for(;t.length>0;){let e=this.visitTick(t);if(u(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n of["Root","Declaration","Rule","AtRule","Comment","DeclarationExit","RuleExit","AtRuleExit","CommentExit","RootExit","OnceExit"])if("object"==typeof t[n])for(let o in t[n])e(t,"*"===o?n:n+"-"+o.toLowerCase(),t[n][o]);else"function"==typeof t[n]&&e(t,n,t[n]);this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,o]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return o(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let r,i=t.iterator;for(;r=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!r[o])return r[o]=!0,void e.push(h(r));t.iterator=0,delete n.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[o]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}g.registerPostcss=e=>{m=e},e.exports=g,c.registerLazyResult(g)},function(e,t,n){t.SourceMapGenerator=n(671).SourceMapGenerator,t.SourceMapConsumer=n(1227).SourceMapConsumer,t.SourceNode=n(1230).SourceNode},function(e,t,n){var o=n(672),r=n(291),i=n(673).ArraySet,a=n(1226).MappingList;function s(e){e||(e={}),this._file=r.getArg(e,"file",null),this._sourceRoot=r.getArg(e,"sourceRoot",null),this._skipValidation=r.getArg(e,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new a,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var o={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(o.source=e.source,null!=t&&(o.source=r.relative(t,o.source)),o.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(o.name=e.name)),n.addMapping(o)})),e.sources.forEach((function(o){var i=o;null!==t&&(i=r.relative(t,o)),n._sources.has(i)||n._sources.add(i);var a=e.sourceContentFor(o);null!=a&&n.setSourceContent(o,a)})),n},s.prototype.addMapping=function(e){var t=r.getArg(e,"generated"),n=r.getArg(e,"original",null),o=r.getArg(e,"source",null),i=r.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,o,i),null!=o&&(o=String(o),this._sources.has(o)||this._sources.add(o)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:o,name:i})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=r.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var o=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');o=e.file}var a=this._sourceRoot;null!=a&&(o=r.relative(a,o));var s=new i,c=new i;this._mappings.unsortedForEach((function(t){if(t.source===o&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=r.join(n,t.source)),null!=a&&(t.source=r.relative(a,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var l=t.source;null==l||s.has(l)||s.add(l);var u=t.name;null==u||c.has(u)||c.add(u)}),this),this._sources=s,this._names=c,e.sources.forEach((function(t){var o=e.sourceContentFor(t);null!=o&&(null!=n&&(t=r.join(n,t)),null!=a&&(t=r.relative(a,t)),this.setSourceContent(t,o))}),this)},s.prototype._validateMapping=function(e,t,n,o){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||o)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:o}))},s.prototype._serializeMappings=function(){for(var e,t,n,i,a=0,s=1,c=0,l=0,u=0,d=0,h="",p=this._mappings.toArray(),m=0,g=p.length;m<g;m++){if(e="",(t=p[m]).generatedLine!==s)for(a=0;t.generatedLine!==s;)e+=";",s++;else if(m>0){if(!r.compareByGeneratedPositionsInflated(t,p[m-1]))continue;e+=","}e+=o.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=o.encode(i-d),d=i,e+=o.encode(t.originalLine-1-l),l=t.originalLine-1,e+=o.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=o.encode(n-u),u=n)),h+=e}return h},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=r.relative(t,e));var n=r.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},function(e,t,n){var o=n(1225);t.encode=function(e){var t,n="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),n+=o.encode(t)}while(r>0);return n},t.decode=function(e,t,n){var r,i,a,s,c=e.length,l=0,u=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=o.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&i),l+=(i&=31)<<u,u+=5}while(r);n.value=(s=(a=l)>>1,1==(1&a)?-s:s),n.rest=t}},function(e,t,n){var o=n(291),r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function a(){this._array=[],this._set=i?new Map:Object.create(null)}a.fromArray=function(e,t){for(var n=new a,o=0,r=e.length;o<r;o++)n.add(e[o],t);return n},a.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(e,t){var n=i?e:o.toSetString(e),a=i?this.has(e):r.call(this._set,n),s=this._array.length;a&&!t||this._array.push(e),a||(i?this._set.set(e,s):this._set[n]=s)},a.prototype.has=function(e){if(i)return this._set.has(e);var t=o.toSetString(e);return r.call(this._set,t)},a.prototype.indexOf=function(e){if(i){var t=this._set.get(e);if(t>=0)return t}else{var n=o.toSetString(e);if(r.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},a.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},a.prototype.toArray=function(){return this._array.slice()},t.ArraySet=a},function(e,t,n){"use strict";let o=n(675);e.exports=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new o(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}},function(e,t,n){"use strict";e.exports=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.positionBy(t);this.line=e.line,this.column=e.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}},function(e,t,n){"use strict";let o=n(1232),r=n(680),i=n(292);function a(e,t){let n=new r(e,t),i=new o(n);try{i.parse()}catch(e){throw e}return i.root}e.exports=a,i.registerParse(a)},function(e,t,n){"use strict";let o=n(292);class r extends o{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=r,o.registerAtRule(r)},function(e,t,n){"use strict";let o=n(292),r=n(679);class i extends o{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=i,o.registerRule(i)},function(e,t,n){"use strict";let o={split(e,t,n){let o=[],r="",i=!1,a=0,s=!1,c=!1;for(let n of e)s?c?c=!1:"\\"===n?c=!0:n===s&&(s=!1):'"'===n||"'"===n?s=n:"("===n?a+=1:")"===n?a>0&&(a-=1):0===a&&t.includes(n)&&(i=!0),i?(""!==r&&o.push(r.trim()),r="",i=!1):r+=n;return(n||""!==r)&&o.push(r.trim()),o},space:e=>o.split(e,[" ","\n","\t"]),comma:e=>o.split(e,[","],!0)};e.exports=o},function(e,t,n){"use strict";let{fileURLToPath:o,pathToFileURL:r}=n(107),{resolve:i,isAbsolute:a}=n(469),{nanoid:s}=n(1234),c=n(1235),l=n(667),u=n(465),d=n(1237);class h{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(/^\w+:\/\//.test(t.from)||a(t.from)?this.file=t.from:this.file=i(t.from));let n=new d(this.css,t);if(n.text){this.map=n;let e=n.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t=c(this.css);return this.fromOffset=e=>t.fromIndex(e),this.fromOffset(e)}error(e,t,n,o={}){let i;if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let a=this.origin(t,n);return i=a?new u(e,a.line,a.column,a.source,a.file,o.plugin):new u(e,t,n,this.css,this.file,o.plugin),i.input={line:t,column:n,source:this.css},this.file&&(i.input.url=r(this.file).toString(),i.input.file=this.file),i}origin(e,t){if(!this.map)return!1;let n,i=this.map.consumer(),s=i.originalPositionFor({line:e,column:t});if(!s.source)return!1;n=a(s.source)?r(s.source):new URL(s.source,this.map.consumer().sourceRoot||r(this.map.mapFile));let c={url:n.toString(),line:s.line,column:s.column};"file:"===n.protocol&&(c.file=o(n));let l=i.sourceContentFor(s.source);return l&&(c.source=l),c}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}}e.exports=h,l&&l.registerInput&&l.registerInput(h)},function(e,t){e.exports="img/icon-email-pill-avatar.575ff20.svg"},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(136),c=n(83),l=n(102),u=n(91),d=n(86),h=n(117),p=n(92),m=n(383),g=n(163),f=n(128),_=n(154),b=n(138),v=n(89),E=n(143);class y extends a.a.PureComponent{constructor(e){super(e),r()(this,"onSubmit",async e=>{e.preventDefault(),e.stopPropagation(),this.setState({busy:!0});try{const e=[...this.state.emailTargets,...this.state.userTargets],t=await Object(_.a)(this.props.roomId,e),n=d.a.get().getRoom(this.props.roomId);Object(_.d)(t.states,n,t.inviter)?this.props.onFinished(!0):this.setState({busy:!1})}catch(e){this.setState({busy:!1}),console.error(e),v.a.createTrackedDialog("Failed to invite","",E.a,{title:Object(c.a)("Failed to invite"),description:e&&e.message?e.message:Object(c.a)("Operation failed")})}}),r()(this,"onAddressChange",(e,t)=>{const n=Object(h.c)(this.state.emailTargets);t>=n.length?n.push(e.target.value):n[t]=e.target.value,this.setState({emailTargets:n})}),r()(this,"onAddressBlur",e=>{const t=Object(h.c)(this.state.emailTargets);e>=t.length||""===t[e].trim()&&(t.splice(e,1),this.setState({emailTargets:t}))}),r()(this,"onShowPeopleClick",()=>{this.setState({showPeople:!this.state.showPeople})}),r()(this,"setPersonToggle",(e,t)=>{const n=Object(h.c)(this.state.userTargets);t&&!n.includes(e.userId)?n.push(e.userId):!t&&n.includes(e.userId)&&n.splice(n.indexOf(e.userId),1),this.setState({userTargets:n})}),r()(this,"onShowMorePeople",()=>{this.setState({numPeople:this.state.numPeople+5})}),this.state={emailTargets:[],userTargets:[],showPeople:!1,people:this.buildSuggestions(),numPeople:5,busy:!1}}buildSuggestions(){const e=new Set([d.a.get().getUserId(),p.a.get().welcomeUserId]);if(this.props.roomId){const t=d.a.get().getRoom(this.props.roomId);if(!t)throw new Error("Room ID given to InviteDialog does not look like a room");t.getMembersWithMembership("invite").forEach(t=>e.add(t.userId)),t.getMembersWithMembership("join").forEach(t=>e.add(t.userId)),t.getMembersWithMembership("ban").forEach(t=>e.add(t.userId))}return m.d.buildRecents(e)}renderPerson(e,t){return a.a.createElement("div",{className:"mx_CommunityPrototypeInviteDialog_person",key:t},a.a.createElement(g.a,{url:Object(f.a)(d.a.get().getHomeserverUrl(),e.user.getMxcAvatarUrl(),36,36,"crop"),name:e.user.name,idName:e.user.userId,width:36,height:36}),a.a.createElement("div",{className:"mx_CommunityPrototypeInviteDialog_personIdentifiers"},a.a.createElement("span",{className:"mx_CommunityPrototypeInviteDialog_personName"},e.user.name),a.a.createElement("span",{className:"mx_CommunityPrototypeInviteDialog_personId"},e.userId)),a.a.createElement(b.a,{onChange:t=>this.setPersonToggle(e,t.target.checked)}))}render(){const e=[];this.state.emailTargets.forEach((t,n)=>{e.push(a.a.createElement(l.a,{key:n,value:t,onChange:e=>this.onAddressChange(e,n),label:Object(c.a)("Email address"),placeholder:Object(c.a)("Email address"),onBlur:()=>this.onAddressBlur(n)}))}),e.push(a.a.createElement(l.a,{key:e.length,value:"",onChange:t=>this.onAddressChange(t,e.length),label:e.length>0?Object(c.a)("Add another email"):Object(c.a)("Email address"),placeholder:e.length>0?Object(c.a)("Add another email"):Object(c.a)("Email address")}));let t=null;const n=[];if(this.state.showPeople){const e=this.state.people.slice(0,this.state.numPeople);e.forEach((e,t)=>{n.push(this.renderPerson(e,t))}),e.length<this.state.people.length&&n.push(a.a.createElement(u.a,{onClick:this.onShowMorePeople,kind:"link",key:"more",className:"mx_CommunityPrototypeInviteDialog_morePeople"},Object(c.a)("Show more")))}this.state.people.length>0&&(t=a.a.createElement("div",{className:"mx_CommunityPrototypeInviteDialog_people"},a.a.createElement("span",null,Object(c.a)("People you know on %(brand)s",{brand:p.a.get().brand})),a.a.createElement(u.a,{onClick:this.onShowPeopleClick},this.state.showPeople?Object(c.a)("Hide"):Object(c.a)("Show"))));let o=Object(c.a)("Skip");const r=this.state.userTargets.length+this.state.emailTargets.length;return r>0&&(o=Object(c.a)("Send %(count)s invites",{count:r})),a.a.createElement(s.a,{className:"mx_CommunityPrototypeInviteDialog",onFinished:this.props.onFinished,title:Object(c.a)("Invite people to join %(communityName)s",{communityName:this.props.communityName})},a.a.createElement("form",{onSubmit:this.onSubmit},a.a.createElement("div",{className:"mx_Dialog_content"},e,t,n,a.a.createElement(u.a,{kind:"primary",onClick:this.onSubmit,disabled:this.state.busy,className:"mx_CommunityPrototypeInviteDialog_primaryButton"},o))))}}},function(e,t,n){"use strict";var o=n(106);Object.defineProperty(t,"__esModule",{value:!0});var r={};t.default=void 0;var i=o(n(1241)),a=n(1277);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=i.default;t.default=s},function(e,t,n){"use strict";var o=n(141),r=n(106);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(191)),a=r(n(168)),s=r(n(574)),c=r(n(1243)),l=o(n(81)),u=(n(84),o(n(195))),d=n(1247),h=n(687),p=n(474);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var g=[],f=l.forwardRef((function(e,t){var n,o=l.useState(),r=(0,c.default)(o,2),f=r[0],_=r[1],b=l.useRef(),v=l.useRef(!1),E=l.useRef(null),y=e.children,S=e.disabled,T=e.noFocusGuards,w=e.persistentFocus,C=e.crossFrame,x=e.autoFocus,O=(e.allowTextSelection,e.group),k=e.className,R=e.whiteList,A=e.shards,I=void 0===A?g:A,D=e.as,N=void 0===D?"div":D,F=e.lockProps,M=void 0===F?{}:F,P=e.sideCar,L=e.returnFocus,U=e.onActivation,B=e.onDeactivation,j=l.useState({}),G=(0,c.default)(j,1)[0],q=l.useCallback((function(){E.current=E.current||document&&document.activeElement,b.current&&U&&U(b.current),v.current=!0}),[U]),H=l.useCallback((function(){v.current=!1,B&&B(b.current)}),[B]),V=l.useCallback((function(e){var t=E.current;if(Boolean(L)&&t&&t.focus){var n="object"===(0,s.default)(L)?L:void 0;E.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[L]),z=l.useCallback((function(e){v.current&&p.mediumFocus.useMedium(e)}),[]),K=p.mediumBlur.useMedium,W=l.useCallback((function(e){b.current!==e&&(b.current=e,_(e))}),[]);var Y=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}((n={},(0,a.default)(n,u.FOCUS_DISABLED,S&&"disabled"),(0,a.default)(n,u.FOCUS_GROUP,O),n),M),$=!0!==T,Q=$&&"tail"!==T,X=(0,d.useMergeRefs)([t,W]);return l.createElement(l.Fragment,null,$&&[l.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:S?-1:0,style:h.hiddenGuard}),l.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:S?-1:1,style:h.hiddenGuard})],!S&&l.createElement(P,{id:G,sideCar:p.mediumSidecar,observed:f,disabled:S,persistentFocus:w,crossFrame:C,autoFocus:x,whiteList:R,shards:I,onActivation:q,onDeactivation:H,returnFocus:V}),l.createElement(N,(0,i.default)({ref:X},Y,{className:k,onBlur:K,onFocus:z}),y),Q&&l.createElement("div",{"data-focus-guard":!0,tabIndex:S?-1:0,style:h.hiddenGuard}))}));f.propTypes={},f.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var _=f;t.default=_},function(e,t,n){var o=n(686);e.exports=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}},function(e,t,n){"use strict";var o=n(106),r=n(141);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.hiddenGuard=void 0;var i=r(n(81)),a=(o(n(84)),{width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"});t.hiddenGuard=a;var s=function(e){var t=e.children;return i.createElement(i.Fragment,null,i.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:a}),t,t&&i.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:a}))};s.propTypes={},s.defaultProps={children:null};var c=s;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(81),r=n(1255),i=new WeakMap;t.useSidecar=function(e,t){var n=t&&t.options||{};if(r.env.isNode&&!n.ssr)return[null,null];var a=r.env.forceCache||r.env.isNode&&!!n.ssr||!n.async,s=o.useState(a?function(){return i.get(e)}:void 0),c=s[0],l=s[1],u=o.useState(null),d=u[0],h=u[1];return o.useEffect((function(){c||e().then((function(n){var o,r=t?t.read():n.default||n;if(!r)throw console.error("Sidecar error: with importer",e),t?(console.error("Sidecar error: with medium",t),o=new Error("Sidecar medium was not found")):o=new Error("Sidecar was not found in exports"),h((function(){return o})),o;i.set(e,r),l((function(){return r}))}),(function(e){return h((function(){return e}))}))}),[]),[c,d]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFocusabledIn=t.newFocus=t.NEW_FOCUS=void 0;var o=n(1269),r=n(1273),i=l(r),a=l(n(475)),s=n(211),c=n(690);function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return e&&e.dataset&&e.dataset.focusGuard},d=function(e){return!u(e)},h=t.NEW_FOCUS="NEW_FOCUS",p=t.newFocus=function(e,t,n,o){var i=e.length,a=e[0],s=e[i-1],l=u(n);if(!(e.indexOf(n)>=0)){var d=t.indexOf(n),p=t.indexOf(o||d),m=e.indexOf(o),g=d-p,f=t.indexOf(a),_=t.indexOf(s),b=(0,c.correctNodes)(t),v=b.indexOf(n)-b.indexOf(o||d),E=(0,r.pickFocusable)(e,0),y=(0,r.pickFocusable)(e,i-1);return-1===d||-1===m?h:!g&&m>=0?m:d<=f&&l&&Math.abs(g)>1?y:d>=_&&l&&Math.abs(g)>1?E:g&&Math.abs(v)>1?m:d<=f?y:d>_?E:g?Math.abs(g)>1?m:(i+m+g)%i:void 0}},m=function(e,t,n){var r=(0,s.asArray)(e),i=(0,s.asArray)(t),a=r[0],c=null;return i.filter(Boolean).forEach((function(e){c=(0,o.getCommonParent)(c||e,e)||c,n.filter(Boolean).forEach((function(e){var t=(0,o.getCommonParent)(a,e);t&&(c=!c||t.contains(c)?t:(0,o.getCommonParent)(t,c))}))})),c};t.getFocusabledIn=function(e){var t=(0,a.default)(e).filter(d),n=m(e,e,t),r=(0,o.getTabbableNodes)([n],!0),i=(0,o.getTabbableNodes)(t).filter((function(e){var t=e.node;return d(t)})).map((function(e){return e.node}));return r.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:i.indexOf(t)>=0,guard:u(t)}}))};t.default=function(e,t){var n=document&&document.activeElement,r=(0,a.default)(e).filter(d),s=m(n||e,e,r),c=(0,o.getAllTabbableNodes)(r),l=(0,o.getTabbableNodes)(r).filter((function(e){var t=e.node;return d(t)}));if(l[0]||(l=c)[0]){var u,h,g,f,_=(0,o.getAllTabbableNodes)([s]).map((function(e){return e.node})),b=(u=_,h=l,g=new Map,h.forEach((function(e){return g.set(e.node,e)})),u.map((function(e){return g.get(e)})).filter(Boolean)),v=b.map((function(e){return e.node})),E=p(v,_,n,t);if("NEW_FOCUS"===E){var y=c.map((function(e){return e.node})).filter((f=function(e){return e.reduce((function(e,t){return e.concat((0,o.parentAutofocusables)(t))}),[])}(r),function(e){return!!e.autofocus||e.dataset&&!!e.dataset.autofocus||f.indexOf(e)>=0}));return{node:y&&y.length?(0,i.default)(y):(0,i.default)(v)}}return void 0===E?E:b[E]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return"INPUT"===e.tagName&&"radio"===e.type},r=t.correctNode=function(e,t){return o(e)&&e.name?function(e,t){return t.filter(o).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e};t.correctNodes=function(e){var t=new Set;return e.forEach((function(n){return t.add(r(n,e))})),e.filter((function(e){return t.has(e)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(82),r=n.n(o),i=n(335),a=n(6),s=n(1),c=n(105);class l extends a.EventEmitter{constructor(){super(),r()(this,"_search",""),r()(this,"callUpdate",Object(c.throttle)(()=>{this.emit(i.a)},200,{trailing:!0,leading:!0}))}get relativePriority(){return i.b.Highest}get search(){return this._search}set search(e){this._search=e,this.callUpdate()}isVisible(e){const t=this.search.toLowerCase();if("#"===this.search[0]){if(e.getCanonicalAlias()&&e.getCanonicalAlias().toLowerCase().startsWith(t))return!0;if(e.getAltAliases().some(e=>e.toLowerCase().startsWith(t)))return!0}return!!e.name&&this.matches(e.name)}matches(e){const t=Object(s.z)(this.search.toLowerCase()).toLowerCase();return Object(s.z)(e.toLowerCase()).toLowerCase().includes(t)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return L}));var o=n(94),r=n.n(o),i=n(82),a=n.n(i),s=n(81),c=n.n(s),l=n(90),u=n.n(l),d=n(174),h=n(91),p=n(87),m=n(98),g=n(693),f=n(83),_=n(100),b=n(120),v=n(1617),E=n(384),y=n(324),S=n(86),T=n(298),w=n(142),C=n(694),x=n(173),O=n(245),k=n(113),R=n(1286),A=n(696),I=n(697),D=n(246),N=n(156),F=n(115);const M=e=>"mx_RoomTile_messagePreview_"+e,P=e=>({left:e.left+window.pageXOffset-9,top:e.bottom+window.pageYOffset+17,chevronFace:_.a.None});class L extends c.a.PureComponent{constructor(t){super(t),a()(this,"dispatcherRef",void 0),a()(this,"roomTileRef",Object(s.createRef)()),a()(this,"notificationState",void 0),a()(this,"roomProps",void 0),a()(this,"onNotificationUpdate",()=>{this.forceUpdate()}),a()(this,"onRoomPropertyUpdate",e=>{e===A.a.NotificationVolume&&this.onNotificationUpdate()}),a()(this,"onAction",t=>{"view_room"===t.action&&t.room_id===this.props.room.roomId&&t.show_room_tile&&e(()=>{this.scrollIntoView()})}),a()(this,"onCommunityUpdate",e=>{e===this.props.room.roomId&&this.forceUpdate()}),a()(this,"onRoomPreviewChanged",e=>{this.props.room&&e.roomId===this.props.room.roomId&&this.setState({messagePreview:this.generatePreview()})}),a()(this,"scrollIntoView",()=>{this.roomTileRef.current&&this.roomTileRef.current.scrollIntoView({block:"nearest",behavior:"auto"})}),a()(this,"onTileClick",e=>{e.preventDefault(),e.stopPropagation(),p.a.dispatch({action:"view_room",show_room_tile:!0,room_id:this.props.room.roomId,clear_search:e&&(e.key===m.a.ENTER||e.key===m.a.SPACE)})}),a()(this,"onActiveRoomUpdate",e=>{this.setState({selected:e})}),a()(this,"onNotificationsMenuOpenClick",e=>{e.preventDefault(),e.stopPropagation();const t=e.target;this.setState({notificationsMenuPosition:t.getBoundingClientRect()})}),a()(this,"onCloseNotificationsMenu",()=>{this.setState({notificationsMenuPosition:null})}),a()(this,"onGeneralMenuOpenClick",e=>{e.preventDefault(),e.stopPropagation();const t=e.target;this.setState({generalMenuPosition:t.getBoundingClientRect()})}),a()(this,"onContextMenu",e=>{this.showContextMenu&&(e.preventDefault(),e.stopPropagation(),this.setState({generalMenuPosition:{left:e.clientX,bottom:e.clientY}}))}),a()(this,"onCloseGeneralMenu",()=>{this.setState({generalMenuPosition:null})}),a()(this,"onTagRoom",(e,t)=>{if(e.preventDefault(),e.stopPropagation(),t===b.a.Favourite||t===b.a.LowPriority){const e=t===b.a.Favourite?b.a.LowPriority:b.a.Favourite,n=w.b.instance.getTagsForRoom(this.props.room).includes(t),o=n?t:e,r=n?null:t;p.a.dispatch(C.a.tagRoom(S.a.get(),this.props.room,o,r,void 0,0))}else console.warn(`Unexpected tag ${t} applied to ${this.props.room.room_id}`);e.key===m.a.ENTER&&this.setState({generalMenuPosition:null})}),a()(this,"onLeaveRoomClick",e=>{e.preventDefault(),e.stopPropagation(),p.a.dispatch({action:"leave_room",room_id:this.props.room.roomId}),this.setState({generalMenuPosition:null})}),a()(this,"onForgetRoomClick",e=>{e.preventDefault(),e.stopPropagation(),p.a.dispatch({action:"forget_room",room_id:this.props.room.roomId}),this.setState({generalMenuPosition:null})}),a()(this,"onOpenRoomSettings",e=>{e.preventDefault(),e.stopPropagation(),p.a.dispatch({action:"open_room_settings",room_id:this.props.room.roomId}),this.setState({generalMenuPosition:null})}),a()(this,"onClickAllNotifs",e=>this.saveNotifState(e,y.a)),a()(this,"onClickAlertMe",e=>this.saveNotifState(e,y.b)),a()(this,"onClickMentions",e=>this.saveNotifState(e,y.c)),a()(this,"onClickMute",e=>this.saveNotifState(e,y.d)),this.state={selected:g.a.activeRoomId===this.props.room.roomId,notificationsMenuPosition:null,generalMenuPosition:null,messagePreview:this.generatePreview()},g.a.addListener(this.props.room.roomId,this.onActiveRoomUpdate),this.dispatcherRef=p.a.register(this.onAction),v.a.instance.on(v.b,this.onRoomPreviewChanged),this.notificationState=x.a.instance.getRoomState(this.props.room),this.notificationState.on(O.a,this.onNotificationUpdate),this.roomProps=R.a.forRoom(this.props.room),this.roomProps.on(I.b,this.onRoomPropertyUpdate),N.a.instance.on(F.b,this.onCommunityUpdate)}get showContextMenu(){return this.props.tag!==b.a.Invite}get showMessagePreview(){return!this.props.isMinimized&&this.props.showMessagePreview}componentDidUpdate(e,t){e.showMessagePreview!==this.props.showMessagePreview&&this.showMessagePreview&&this.setState({messagePreview:this.generatePreview()})}componentDidMount(){this.state.selected&&this.scrollIntoView()}componentWillUnmount(){this.props.room&&g.a.removeListener(this.props.room.roomId,this.onActiveRoomUpdate),p.a.unregister(this.dispatcherRef),v.a.instance.off(v.b,this.onRoomPreviewChanged),this.notificationState.off(O.a,this.onNotificationUpdate),N.a.instance.off(F.b,this.onCommunityUpdate)}generatePreview(){return this.showMessagePreview?v.a.instance.getPreviewForRoom(this.props.room,this.props.tag):null}async saveNotifState(e,t){if(e.preventDefault(),e.stopPropagation(),S.a.get().isGuest())return;this.roomProps.notificationVolume=t;e.key===m.a.ENTER&&this.setState({notificationsMenuPosition:null})}renderNotificationsMenu(e){if(S.a.get().isGuest()||this.props.tag===b.a.Archived||!this.showContextMenu||this.props.isMinimized)return null;const t=this.roomProps.notificationVolume;let n=null;this.state.notificationsMenuPosition&&(n=c.a.createElement(D.e,r()({},P(this.state.notificationsMenuPosition),{onFinished:this.onCloseNotificationsMenu,className:"mx_RoomTile_contextMenu",compact:!0}),c.a.createElement(D.c,{first:!0},c.a.createElement(D.d,{label:Object(f.a)("Use default"),active:t===y.a,iconClassName:"mx_RoomTile_iconBell",onClick:this.onClickAllNotifs}),c.a.createElement(D.d,{label:Object(f.a)("All messages"),active:t===y.b,iconClassName:"mx_RoomTile_iconBellDot",onClick:this.onClickAlertMe}),c.a.createElement(D.d,{label:Object(f.a)("Mentions & Keywords"),active:t===y.c,iconClassName:"mx_RoomTile_iconBellMentions",onClick:this.onClickMentions}),c.a.createElement(D.d,{label:Object(f.a)("None"),active:t===y.d,iconClassName:"mx_RoomTile_iconBellCrossed",onClick:this.onClickMute}))));const o=u()("mx_RoomTile_notificationsButton",{mx_RoomTile_iconBell:t===y.a,mx_RoomTile_iconBellDot:t===y.b,mx_RoomTile_iconBellMentions:t===y.c,mx_RoomTile_iconBellCrossed:t===y.d,mx_RoomTile_notificationsButton_show:t===y.d});return c.a.createElement(c.a.Fragment,null,c.a.createElement(_.d,{className:o,onClick:this.onNotificationsMenuOpenClick,title:Object(f.a)("Notification options"),isExpanded:!!this.state.notificationsMenuPosition,tabIndex:e?0:-1}),n)}renderGeneralMenu(){if(!this.showContextMenu)return null;let e=null;if(this.state.generalMenuPosition&&this.props.tag===b.a.Archived)e=c.a.createElement(D.e,r()({},P(this.state.generalMenuPosition),{onFinished:this.onCloseGeneralMenu,className:"mx_RoomTile_contextMenu",compact:!0}),c.a.createElement(D.c,{red:!0},c.a.createElement(D.b,{iconClassName:"mx_RoomTile_iconSignOut",label:Object(f.a)("Forget Room"),onClick:this.onForgetRoomClick})));else if(this.state.generalMenuPosition){const t=w.b.instance.getTagsForRoom(this.props.room),n=t.includes(b.a.Favourite),o=n?Object(f.a)("Favourited"):Object(f.a)("Favourite"),i=t.includes(b.a.LowPriority),a=Object(f.a)("Low Priority");e=c.a.createElement(D.e,r()({},P(this.state.generalMenuPosition),{onFinished:this.onCloseGeneralMenu,className:"mx_RoomTile_contextMenu",compact:!0}),c.a.createElement(D.c,null,c.a.createElement(D.a,{onClick:e=>this.onTagRoom(e,b.a.Favourite),active:n,label:o,iconClassName:"mx_RoomTile_iconStar"}),c.a.createElement(D.a,{onClick:e=>this.onTagRoom(e,b.a.LowPriority),active:i,label:a,iconClassName:"mx_RoomTile_iconArrowDown"}),c.a.createElement(D.b,{onClick:this.onOpenRoomSettings,label:Object(f.a)("Settings"),iconClassName:"mx_RoomTile_iconSettings"})),c.a.createElement(D.c,{red:!0},c.a.createElement(D.b,{onClick:this.onLeaveRoomClick,label:Object(f.a)("Leave Room"),iconClassName:"mx_RoomTile_iconSignOut"})))}return c.a.createElement(c.a.Fragment,null,c.a.createElement(_.d,{className:"mx_RoomTile_menuButton",onClick:this.onGeneralMenuOpenClick,title:Object(f.a)("Room options"),isExpanded:!!this.state.generalMenuPosition}),e)}render(){const e=u()({mx_RoomTile:!0,mx_RoomTile_selected:this.state.selected,mx_RoomTile_hasMenuOpen:!(!this.state.generalMenuPosition&&!this.state.notificationsMenuPosition),mx_RoomTile_minimized:this.props.isMinimized});let t={displayName:null,avatarMxc:null};this.props.tag===b.a.Invite&&(t=N.a.instance.getInviteProfile(this.props.room.roomId));let n=t.displayName||this.props.room.name;"string"!=typeof n&&(n=""),n=n.replace(":",":");const o=c.a.createElement(E.a,{room:this.props.room,avatarSize:32,tag:this.props.tag,displayBadge:this.props.isMinimized,oobData:{avatarUrl:t.avatarMxc}});let i;this.props.isMinimized||(i=c.a.createElement("div",{className:"mx_RoomTile_badgeContainer","aria-hidden":"true"},c.a.createElement(T.a,{notification:this.notificationState,forceCount:!1,roomId:this.props.room.roomId})));let a=null;this.showMessagePreview&&this.state.messagePreview&&(a=c.a.createElement("div",{className:"mx_RoomTile_messagePreview",id:M(this.props.room.roomId)},this.state.messagePreview));const s=u()({mx_RoomTile_name:!0,mx_RoomTile_nameWithPreview:!!a,mx_RoomTile_nameHasUnreadEvents:this.notificationState.isUnread});let l=c.a.createElement("div",{className:"mx_RoomTile_nameContainer"},c.a.createElement("div",{title:n,className:s,tabIndex:-1,dir:"auto"},n),a);this.props.isMinimized&&(l=null);let p,m=n;this.props.tag===b.a.Invite||(this.notificationState.hasMentions?m+=" "+Object(f.a)("%(count)s unread messages including mentions.",{count:this.notificationState.count}):this.notificationState.hasUnreadCount?m+=" "+Object(f.a)("%(count)s unread messages.",{count:this.notificationState.count}):this.notificationState.isUnread&&(m+=" "+Object(f.a)("Unread messages."))),this.showMessagePreview&&(p=M(this.props.room.roomId));const g={};let _=h.a;return this.props.isMinimized&&(_=k.a,g.title=n,g.forceHide=!!this.state.generalMenuPosition),c.a.createElement(c.a.Fragment,null,c.a.createElement(d.d,{inputRef:this.roomTileRef},({onFocus:t,isActive:n,ref:a})=>c.a.createElement(_,r()({},g,{onFocus:t,tabIndex:n?0:-1,inputRef:a,className:e,onClick:this.onTileClick,onContextMenu:this.onContextMenu,role:"treeitem","aria-label":m,"aria-selected":this.state.selected,"aria-describedby":p}),o,l,i,this.renderGeneralMenu(),this.renderNotificationsMenu(n))))}}}).call(this,n(149).setImmediate)},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(116);class a{constructor(){r()(this,"listeners",{}),r()(this,"_activeRoomId",i.a.getRoomId()),r()(this,"roomStoreToken",void 0),r()(this,"onRoomViewStoreUpdate",()=>{this._activeRoomId&&this.emit(this._activeRoomId,!1),this._activeRoomId=i.a.getRoomId(),this._activeRoomId&&this.emit(this._activeRoomId,!0)}),this.roomStoreToken=i.a.addListener(this.onRoomViewStoreUpdate)}get activeRoomId(){return this._activeRoomId}addListener(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}removeListener(e,t){if(this.listeners[e]){const n=this.listeners[e].indexOf(t);n>-1&&this.listeners[e].splice(n,1)}else console.warn("Unregistering unrecognised listener (roomId="+e+")")}emit(e,t){if(this.listeners[e])for(const n of this.listeners[e])n.call(null,t)}}void 0===window.mxActiveRoomObserver&&(window.mxActiveRoomObserver=new a),t.a=window.mxActiveRoomObserver},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(394),r=n(89),i=n(361),a=n(83),s=n(85),c=n(142),l=n(237),u=n(120);class d{static tagRoom(e,t,n,d,h,p){let m=null;const g=c.b.instance;if(d&&g.getTagSorting(d)===l.b.Manual){const e=[...g.orderedLists[d]];e.sort((e,t)=>e.tags[d].order-t.tags[d].order);const t=d===n&&h<p?1:0,o=t+p-1,r=t+p,i=o<=0?0:e[o].tags[d].order,a=r>=e.length?1:e[r].tags[d].order;m={order:(i+a)/2}}return Object(o.a)("RoomListActions.tagRoom",()=>{const o=[],c=t.roomId;if(void 0===n&&d===u.a.DM||n===u.a.DM&&void 0===d)return i.b(t,d===u.a.DM).catch(e=>{const t=s.getComponent("dialogs.ErrorDialog");console.error("Failed to set direct chat tag "+e),r.a.createTrackedDialog("Failed to set direct chat tag","",t,{title:Object(a.a)("Failed to set direct chat tag"),description:e&&e.message?e.message:Object(a.a)("Operation failed")})});const l=n!==d;if(n&&n!==u.a.DM&&l){const t=e.deleteRoomTag(c,n).catch((function(e){const t=s.getComponent("dialogs.ErrorDialog");console.error("Failed to remove tag "+n+" from room: "+e),r.a.createTrackedDialog("Failed to remove tag from room","",t,{title:Object(a.a)("Failed to remove tag %(tagName)s from room",{tagName:n}),description:e&&e.message?e.message:Object(a.a)("Operation failed")})}));o.push(t)}if(d&&d!==u.a.DM&&(l||m)){m=m||{};const t=e.setRoomTag(c,d,m).catch((function(e){const t=s.getComponent("dialogs.ErrorDialog");throw console.error("Failed to add tag "+d+" to room: "+e),r.a.createTrackedDialog("Failed to add tag to room","",t,{title:Object(a.a)("Failed to add tag %(tagName)s to room",{tagName:d}),description:e&&e.message?e.message:Object(a.a)("Operation failed")}),e}));o.push(t)}return Promise.all(o)},()=>({room:t,oldTag:n,newTag:d,metaData:m}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(82),r=n.n(o),i=n(696),a=n(699),s=n(139),c=n(87),l=n(700),u=n(701),d=n(702);const h=e=>"room-"+e.roomId;class p extends s.a{constructor(){super(c.a),r()(this,"caches",new Map)}static get instance(){return p._instance||(p._instance=new p),p._instance}get contexts(){return Array.from(this.caches.values()).map(e=>e.context)}getOrCreateChamberForRoom(e){if(this.caches.has(h(e)))return this.caches.get(h(e));const t=new a.a(e);t.whenAnything(()=>this.checkContexts());const n=new i.b(t);return n.setClient(this.matrixClient),this.caches.set(h(e),n),n}async checkContexts(){let e=!1;for(const t of this.caches.values())if(e=t.context.state===l.a.PendingErrors,e)break;if(e&&!this.state.toastRef){const e=u.a.instance.addToast(d.a);await this.updateState({toastRef:e})}else!e&&this.state.toastRef&&(u.a.instance.removeToast(this.state.toastRef),await this.updateState({toastRef:null}))}async onReady(){if(this.caches)for(const e of this.caches.values())e.setClient(this.matrixClient)}async onNotReady(){for(const e of this.caches.values())e.setClient(null)}async onAction(e){return Promise.resolve()}}r()(p,"_instance",void 0)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var o=n(82),r=n.n(o),i=n(697),a=n(324),s=n(83);let c;!function(e){e[e.NotificationVolume=0]="NotificationVolume"}(c||(c={}));class l extends i.a{constructor(e){super(e,e=>this.properties.get(e)),r()(this,"properties",new Map),r()(this,"onAccountData",e=>{if("m.push_rules"===e.getType()){this.properties.get(c.NotificationVolume)!==Object(a.f)(this.context.room.roomId)&&this.updateNotificationVolume()}})}onClientChanged(e,t){this.properties.clear(),e&&e.removeListener("accountData",this.onAccountData),t&&(t.on("accountData",this.onAccountData),this.updateNotificationVolume())}updateNotificationVolume(){this.properties.set(c.NotificationVolume,Object(a.f)(this.context.room.roomId)),this.markEchoReceived(c.NotificationVolume),this.emit(i.b,c.NotificationVolume)}get notificationVolume(){return this.getValue(c.NotificationVolume)}set notificationVolume(e){this.setValue(Object(s.a)("Change notification settings"),c.NotificationVolume,e,async()=>Object(a.h)(this.context.room.roomId,e),i.c)}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var o=n(82),r=n.n(o),i=n(478),a=n(6);async function s(){}const c="property_updated";class l extends a.EventEmitter{constructor(e,t){super(),this.context=e,this.lookupFn=t,r()(this,"cache",new Map),r()(this,"matrixClient",void 0)}setClient(e){const t=this.matrixClient;this.matrixClient=e,this.onClientChanged(t,e)}getValue(e){return this.cache.has(e)?this.cache.get(e).val:this.lookupFn(e)}cacheVal(e,t,n){this.cache.set(e,{txn:n,val:t}),this.emit(c,e)}decacheKey(e){this.cache.has(e)&&(this.context.disownTransaction(this.cache.get(e).txn),this.cache.delete(e),this.emit(c,e))}markEchoReceived(e){if(this.cache.has(e)){const t=this.cache.get(e).txn;this.context.disownTransaction(t),t.cancel()}this.decacheKey(e)}setValue(e,t,n,o,r){this.cache.has(t)&&this.cache.get(t).txn.cancel();const a=this.context.beginTransaction(e,o);this.cacheVal(t,n,a),a.when(i.b.Pending,()=>this.cacheVal(t,n,a)).when(i.b.Error,()=>r()),a.run()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(82),r=n.n(o),i=n(117);class a{constructor(){r()(this,"listeners",[])}when(e,t){return this.listeners.push({condition:e,fn:t}),this}whenAnyOf(e,t){for(const n of e)this.when(n,t);return this}whenAnything(e){return this.listeners.push({condition:null,fn:e}),this}notifyCondition(e){const t=Object(i.c)(this.listeners);for(const n of t)if(null===n.condition||n.condition===e)try{n.fn(this)}catch(t){console.error(`Error calling whenable listener for ${e}:`,t)}}destroy(){this.listeners=[]}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(700);class r extends o.b{constructor(e){super(),this.room=e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var o=n(82),r=n.n(o),i=n(478),a=n(117),s=n(698);let c;!function(e){e[e.NotStarted=0]="NotStarted",e[e.PendingErrors=1]="PendingErrors",e[e.AllSuccessful=2]="AllSuccessful"}(c||(c={}));class l extends s.a{constructor(...e){super(...e),r()(this,"_transactions",[]),r()(this,"_state",c.NotStarted),r()(this,"checkTransactions",()=>{let e=c.AllSuccessful;for(const t of this.transactions){if(t.status===i.b.Error||t.didPreviouslyFail){e=c.PendingErrors;break}t.status===i.b.Pending&&(e=c.NotStarted)}this._state=e,this.notifyCondition(e)})}get transactions(){return Object(a.c)(this._transactions)}get state(){return this._state}get firstFailedTime(){const e=this.transactions.find(e=>e.didPreviouslyFail||e.status===i.b.Error);return e?e.startTime:null}disownTransaction(e){const t=this._transactions.indexOf(e);t>=0&&this._transactions.splice(t,1),e.destroy(),this.checkTransactions()}beginTransaction(e,t){const n=new i.a(e,t);return this._transactions.push(n),n.whenAnything(this.checkTransactions),n.when(i.b.Success,()=>n.destroy()),n}destroy(){for(const e of this.transactions)e.destroy();this._transactions=[],super.destroy()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(82),r=n.n(o),i=n(6),a=n.n(i),s=n(115);class c extends a.a{constructor(...e){super(...e),r()(this,"toasts",new Map)}static get instance(){return c._instance||(c._instance=new c),c._instance}get components(){return Array.from(this.toasts.values())}addToast(e){const t=Symbol();return this.toasts.set(t,e),this.emit(s.b),t}removeToast(e){this.toasts.delete(e),this.emit(s.b)}}r()(c,"_instance",void 0)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(83),c=n(91),l=n(89),u=n(703);class d extends a.a.PureComponent{constructor(...e){super(...e),r()(this,"openDialog",()=>{l.a.createTrackedDialog("Local Echo Server Error","",u.a,{})})}render(){return a.a.createElement("div",{className:"mx_NonUrgentEchoFailureToast"},a.a.createElement("span",{className:"mx_NonUrgentEchoFailureToast_icon"}),Object(s.a)("Your server isn't responding to some <a>requests</a>.",{},{a:e=>a.a.createElement(c.a,{kind:"link",onClick:this.openDialog},e)}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o=n(82),r=n.n(o),i=n(81),a=n(136),s=n(83),c=n(695),l=n(126),u=n(88),d=n(699),h=n(196),p=n(478),m=n(112),g=n(91),f=n(115),_=n(86);class b extends i.PureComponent{constructor(...e){super(...e),r()(this,"onEchosUpdated",()=>{this.forceUpdate()})}componentDidMount(){c.a.instance.on(f.b,this.onEchosUpdated)}componentWillUnmount(){c.a.instance.off(f.b,this.onEchosUpdated)}renderTimeline(){return c.a.instance.contexts.map((e,t)=>{if(!e.firstFailedTime)return null;if(!(e instanceof d.a))throw new Error("Cannot render unknown context: "+e);const n=i.createElement("div",{className:"mx_ServerOfflineDialog_content_context_timeline_header"},i.createElement(h.a,{width:24,height:24,room:e.room}),i.createElement("span",null,e.room.name)),o=e.transactions.filter(e=>e.status===p.b.Error||e.didPreviouslyFail).map((e,t)=>{let n=i.createElement(m.a,{w:19,h:19});return e.status===p.b.Error&&(n=i.createElement(g.a,{kind:"link",onClick:()=>e.run()},Object(s.a)("Resend"))),i.createElement("div",{className:"mx_ServerOfflineDialog_content_context_txn",key:"txn-"+t},i.createElement("span",{className:"mx_ServerOfflineDialog_content_context_txn_desc"},e.auditName),n)});return i.createElement("div",{className:"mx_ServerOfflineDialog_content_context",key:"context-"+t},i.createElement("div",{className:"mx_ServerOfflineDialog_content_context_timestamp"},Object(l.d)(e.firstFailedTime,u.a.getValue("showTwelveHourTimestamps"))),i.createElement("div",{className:"mx_ServerOfflineDialog_content_context_timeline"},n,o))})}render(){let e=this.renderTimeline().filter(e=>!!e);0===e.length&&(e=[i.createElement("div",{key:1},Object(s.a)("You're all caught up."))]);const t=_.a.getHomeserverName();return i.createElement(a.a,{title:Object(s.a)("Server isn't responding"),className:"mx_ServerOfflineDialog",contentId:"mx_Dialog_content",onFinished:this.props.onFinished,hasCancel:!0},i.createElement("div",{className:"mx_ServerOfflineDialog_content"},i.createElement("p",null,Object(s.a)("Your server isn't responding to some of your requests. Below are some of the most likely reasons.")),i.createElement("ul",null,i.createElement("li",null,Object(s.a)("The server (%(serverName)s) took too long to respond.",{serverName:t})),i.createElement("li",null,Object(s.a)("Your firewall or anti-virus is blocking the request.")),i.createElement("li",null,Object(s.a)("A browser extension is preventing the request.")),i.createElement("li",null,Object(s.a)("The server is offline.")),i.createElement("li",null,Object(s.a)("The server has denied your request.")),i.createElement("li",null,Object(s.a)("Your area is experiencing difficulties connecting to the internet.")),i.createElement("li",null,Object(s.a)("A connection error occurred while trying to contact the server.")),i.createElement("li",null,Object(s.a)("The server is not configured to indicate what the problem is (CORS)."))),i.createElement("hr",null),i.createElement("h2",null,Object(s.a)("Recent changes that have not yet been received")),e))}}},function(e,t){e.exports="img/spinner.a5c5b3b.svg"},function(e,t){e.exports="img/spinner.0b29ec9.gif"},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(85),u=n(83),d=n(87),h=n(98);class p extends a.a.Component{constructor(e){super(e),r()(this,"onKeyDown",e=>{e.key===h.a.ESCAPE&&(e.stopPropagation(),e.preventDefault(),this.props.onFinished())}),r()(this,"onAction",e=>{"close_scalar"===e.action&&this.props.onFinished()}),r()(this,"onError",()=>{this.setState({errored:!0})}),this.state={errored:!1}}componentDidMount(){this.dispatcherRef=d.a.register(this.onAction),document.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){d.a.unregister(this.dispatcherRef),document.removeEventListener("keydown",this.onKeyDown)}render(){if(this.props.loading){const e=l.getComponent("elements.Spinner");return a.a.createElement("div",{className:"mx_IntegrationManager_loading"},a.a.createElement("h3",null,Object(u.a)("Connecting to integration manager...")),a.a.createElement(e,null))}return!this.props.connected||this.state.errored?a.a.createElement("div",{className:"mx_IntegrationManager_error"},a.a.createElement("h3",null,Object(u.a)("Cannot connect to integration manager")),a.a.createElement("p",null,Object(u.a)("The integration manager is offline or it cannot reach your homeserver."))):a.a.createElement("iframe",{src:this.props.url,onError:this.onError})}}r()(p,"propTypes",{connected:c.a.bool.isRequired,loading:c.a.bool.isRequired,url:c.a.string,onFinished:c.a.func.isRequired}),r()(p,"defaultProps",{connected:!0,loading:!1})},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(83),u=n(92),d=n(85);class h extends a.a.Component{constructor(...e){super(...e),r()(this,"_onAcknowledgeClick",()=>{this.props.onFinished()})}render(){const e=u.a.get().brand,t=d.getComponent("views.dialogs.BaseDialog"),n=d.getComponent("views.elements.DialogButtons");return a.a.createElement(t,{className:"mx_IntegrationsImpossibleDialog",hasCancel:!1,onFinished:this.props.onFinished,title:Object(l.a)("Integrations not allowed")},a.a.createElement("div",{className:"mx_IntegrationsImpossibleDialog_content"},a.a.createElement("p",null,Object(l.a)("Your %(brand)s doesn't allow you to use an Integration Manager to do this. Please contact an admin.",{brand:e}))),a.a.createElement(n,{primaryButton:Object(l.a)("OK"),onPrimaryButtonClick:this._onAcknowledgeClick,hasCancel:!1}))}}r()(h,"propTypes",{onFinished:c.a.func.isRequired})},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(160),u=n(96),d=n(85),h=n(294),p=n(90),m=n.n(p),g=n(709);class f extends a.a.Component{constructor(e){super(e),r()(this,"openManager",async(e,t=!1)=>{if(e===this.state.currentIndex&&!t)return;const n=this.state.managers[e],o=n.getScalarClient();this.setState({busy:!0,currentIndex:e,currentLoading:!0,currentConnected:!1,currentScalarClient:o}),g.a(n.uiUrl),o.setTermsInteractionCallback((e,t)=>Object(h.c)(e,t,"mx_TermsDialog_forIntegrationManager"));try{await o.connect(),o.hasCredentials()?this.setState({busy:!1,currentLoading:!1,currentConnected:!0}):this.setState({busy:!1,currentLoading:!1,currentConnected:!1})}catch(e){if(e instanceof h.b)return;console.error(e),this.setState({busy:!1,currentLoading:!1,currentConnected:!1})}}),this.state={managers:l.a.sharedInstance().getOrderedManagers(),busy:!0,currentIndex:0,currentConnected:!1,currentLoading:!0,currentScalarClient:null}}componentDidMount(){this.openManager(0,!0)}_renderTabs(){const e=d.getComponent("views.elements.AccessibleButton");return this.state.managers.map((t,n)=>{const o=m()({mx_TabbedIntegrationManagerDialog_tab:!0,mx_TabbedIntegrationManagerDialog_currentTab:this.state.currentIndex===n});return a.a.createElement(e,{className:o,onClick:()=>this.openManager(n),key:"tab_"+n,disabled:this.state.busy},t.name)})}_renderTab(){const e=d.getComponent("views.settings.IntegrationManager");let t=null;return this.state.currentScalarClient&&(t=this.state.currentScalarClient.getScalarInterfaceUrlForRoom(this.props.room,this.props.screen,this.props.integrationId)),a.a.createElement(e,{configured:!0,loading:this.state.currentLoading,connected:this.state.currentConnected,url:t,onFinished:()=>{}})}render(){return a.a.createElement("div",{className:"mx_TabbedIntegrationManagerDialog_container"},a.a.createElement("div",{className:"mx_TabbedIntegrationManagerDialog_tabs"},this._renderTabs()),a.a.createElement("div",{className:"mx_TabbedIntegrationManagerDialog_currentManager"},this._renderTab()))}}r()(f,"propTypes",{onFinished:c.a.func.isRequired,room:c.a.instanceOf(u.k),screen:c.a.string,integrationId:c.a.string})},function(e,t,n){"use strict";n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return y})),n.d(t,"a",(function(){return S}));var o=n(86),r=n(96),i=n(87),a=n(122),s=n(116),c=n(83),l=n(160),u=n(133),d=n(145);function h(e,t){const n=Object(d.a)(e.data);n.response=t,e.source.postMessage(n,e.origin)}function p(e,t,n){console.error("Action:"+e.data.action+" failed with message: "+t);const o=Object(d.a)(e.data);o.response={error:{message:t}},n&&(o.response.error._error=n),e.source.postMessage(o,e.origin)}function m(e,t){const n=e.data.widget_id;let o=e.data.type;const r=e.data.url,s=e.data.name,l=e.data.data,d=e.data.userWidget;if(n&&void 0!==r){if(null!==r){if(void 0!==s&&"string"!=typeof s)return void p(e,Object(c.a)("Unable to create widget."),new Error("Optional field 'name' must be a string."));if(void 0!==l&&!(l instanceof Object))return void p(e,Object(c.a)("Unable to create widget."),new Error("Optional field 'data' must be an Object."));if("string"!=typeof o)return void p(e,Object(c.a)("Unable to create widget."),new Error("Field 'type' must be a string."));if("string"!=typeof r)return void p(e,Object(c.a)("Unable to create widget."),new Error("Field 'url' must be a string or null."))}o=u.a.fromString(o),d?a.a.setUserWidget(n,o,r,s,l).then(()=>{h(e,{success:!0}),i.a.dispatch({action:"user_widget_updated"})}).catch(t=>{p(e,Object(c.a)("Unable to create widget."),t)}):(t||p(e,Object(c.a)("Missing roomId."),null),a.a.setRoomWidget(t,n,o,r,s,l).then(()=>{h(e,{success:!0})},t=>{p(e,Object(c.a)("Failed to send request."),t)}))}else p(e,Object(c.a)("Unable to create widget."),new Error("Missing required widget fields."))}function g(e,t){const n=o.a.get();if(!n)return void p(e,Object(c.a)("You need to be logged in."));let r=[];if(t){const o=n.getRoom(t);if(!o)return void p(e,Object(c.a)("This room is not recognised."));r=a.a.getRoomWidgets(o).map(e=>e.event)}const i=a.a.getUserWidgetsArray();r=r.concat(i),h(e,r)}function f(e,t,n,r){const i=o.a.get();if(!i)return void p(e,Object(c.a)("You need to be logged in."));const a=i.getRoom(t);if(!a)return void p(e,Object(c.a)("This room is not recognised."));const s=a.currentState.getStateEvents(n,r);h(e,s?s.getContent():null)}const _=function(e){let t,n;e.origin||(e.origin=e.originalEvent.origin);try{v||(v=l.a.sharedInstance().getPrimaryManager().uiUrl),t=new URL(v)}catch(e){return}try{n=new URL(e.origin)}catch(e){return}if(t.origin!==n.origin||!e.data.action||e.data.api)return;if("close_scalar"===e.data.action)return i.a.dispatch({action:"close_scalar"}),void h(e,null);const a=e.data.room_id,u=e.data.user_id;if(!a)return"get_widgets"===e.data.action?void g(e,null):"set_widget"===e.data.action?void m(e,null):void p(e,Object(c.a)("Missing room_id in request"));if(a===s.a.getRoomId())if("get_widgets"!==e.data.action)if("set_widget"!==e.data.action)if("join_rules_state"!==e.data.action)if("set_plumbing_state"!==e.data.action)if("get_membership_count"!==e.data.action)if("get_room_enc_state"!==e.data.action)if("can_send_event"!==e.data.action)if(u)switch(e.data.action){case"membership_state":!function(e,t,n){console.log(`membership_state of ${n} in room ${t} requested.`),f(e,t,"m.room.member",n)}(e,a,u);break;case"invite":!function(e,t,n){console.log(`Received request to invite ${n} into room ${t}`);const r=o.a.get();if(!r)return void p(e,Object(c.a)("You need to be logged in."));const i=r.getRoom(t);if(i){const t=i.getMember(n);if(t&&"invite"===t.membership)return void h(e,{success:!0})}r.invite(t,n).then((function(){h(e,{success:!0})}),(function(t){p(e,Object(c.a)("You need to be able to invite users to do that."),t)}))}(e,a,u);break;case"bot_options":!function(e,t,n){console.log(`bot_options of ${n} in room ${t} requested.`),f(e,t,"m.room.bot.options","_"+n)}(e,a,u);break;case"set_bot_options":!function(e,t,n){console.log(`Received request to set options for bot ${n} in room ${t}`);const r=o.a.get();r?r.sendStateEvent(t,"m.room.bot.options",e.data.content,"_"+n).then(()=>{h(e,{success:!0})},t=>{p(e,t.message?t.message:Object(c.a)("Failed to send request."),t)}):p(e,Object(c.a)("You need to be logged in."))}(e,a,u);break;case"set_bot_power":!function(e,t,n,i){if(!(Number.isInteger(i)&&i>=0))return void p(e,Object(c.a)("Power level must be positive integer."));console.log(`Received request to set power level to ${i} for bot ${n} in room ${t}.`);const a=o.a.get();a?a.getStateEvent(t,"m.room.power_levels","").then(o=>{const s=new r.j({type:"m.room.power_levels",content:o});a.setPowerLevel(t,n,i,s).then(()=>{h(e,{success:!0})},t=>{p(e,t.message?t.message:Object(c.a)("Failed to send request."),t)})}):p(e,Object(c.a)("You need to be logged in."))}(e,a,u,e.data.level);break;default:console.warn("Unhandled postMessage event with action '"+e.data.action+"'")}else p(e,Object(c.a)("Missing user_id in request"));else!function(e,t){const n=""+e.data.event_type,r=Boolean(e.data.is_state),i=o.a.get();if(!i)return void p(e,Object(c.a)("You need to be logged in."));const a=i.getRoom(t);if(!a)return void p(e,Object(c.a)("This room is not recognised."));if("join"!==a.getMyMembership())return void p(e,Object(c.a)("You are not in this room."));const s=i.credentials.userId;let l=!1;l=r?a.currentState.maySendStateEvent(n,s):a.currentState.maySendEvent(n,s),l?h(e,!0):p(e,Object(c.a)("You do not have permission to do that in this room."))}(e,a);else!function(e,t){const n=o.a.get();if(!n)return void p(e,Object(c.a)("You need to be logged in."));if(!n.getRoom(t))return void p(e,Object(c.a)("This room is not recognised."));h(e,o.a.get().isRoomEncrypted(t))}(e,a);else!function(e,t){const n=o.a.get();if(!n)return void p(e,Object(c.a)("You need to be logged in."));const r=n.getRoom(t);if(!r)return void p(e,Object(c.a)("This room is not recognised."));h(e,r.getJoinedMemberCount())}(e,a);else!function(e,t,n){if("string"!=typeof n)throw new Error("Plumbing state status should be a string");console.log(`Received request to set plumbing state to status "${n}" in room ${t}`);const r=o.a.get();r?r.sendStateEvent(t,"m.room.plumbing",{status:n}).then(()=>{h(e,{success:!0})},t=>{p(e,t.message?t.message:Object(c.a)("Failed to send request."),t)}):p(e,Object(c.a)("You need to be logged in."))}(e,a,e.data.status);else!function(e,t){console.log(`join_rules of ${t} requested.`),f(e,t,"m.room.join_rules","")}(e,a);else m(e,a);else g(e,a);else p(e,Object(c.a)("Room %(roomId)s not visible",{roomId:a}))};let b=0,v=null;function E(){0===b&&window.addEventListener("message",_,!1),b+=1}function y(){if(b-=1,0===b&&window.removeEventListener("message",_),b<0){const e=new Error("ScalarMessaging: mismatched startListening / stopListening detected. Negative count");console.error(e)}}function S(e){v=e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(83),u=n(85),d=n(87),h=n(93);class p extends a.a.Component{constructor(...e){super(...e),r()(this,"_onAcknowledgeClick",()=>{this.props.onFinished()}),r()(this,"_onOpenSettingsClick",()=>{this.props.onFinished(),d.a.fire(h.a.ViewUserSettings)})}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons");return a.a.createElement(e,{className:"mx_IntegrationsDisabledDialog",hasCancel:!0,onFinished:this.props.onFinished,title:Object(l.a)("Integrations are disabled")},a.a.createElement("div",{className:"mx_IntegrationsDisabledDialog_content"},a.a.createElement("p",null,Object(l.a)("Enable 'Manage Integrations' in Settings to do this."))),a.a.createElement(t,{primaryButton:Object(l.a)("Settings"),onPrimaryButtonClick:this._onOpenSettingsClick,cancelButton:Object(l.a)("OK"),onCancel:this._onAcknowledgeClick}))}}r()(p,"propTypes",{onFinished:c.a.func.isRequired})},function(e,t,n){"use strict";function o(e,t,n){if(void 0===n&&(n={}),!t.codes){t.codes={};for(var o=0;o<t.chars.length;++o)t.codes[t.chars[o]]=o}if(!n.loose&&e.length*t.bits&7)throw new SyntaxError("Invalid padding");for(var r=e.length;"="===e[r-1];)if(--r,!(n.loose||(e.length-r)*t.bits&7))throw new SyntaxError("Invalid padding");for(var i=new(n.out||Uint8Array)(r*t.bits/8|0),a=0,s=0,c=0,l=0;l<r;++l){var u=t.codes[e[l]];if(void 0===u)throw new SyntaxError("Invalid character "+e[l]);s=s<<t.bits|u,(a+=t.bits)>=8&&(a-=8,i[c++]=255&s>>a)}if(a>=t.bits||255&s<<8-a)throw new SyntaxError("Unexpected end of data");return i}function r(e,t,n){void 0===n&&(n={});for(var o=n.pad,r=void 0===o||o,i=(1<<t.bits)-1,a="",s=0,c=0,l=0;l<e.length;++l)for(c=c<<8|255&e[l],s+=8;s>t.bits;)s-=t.bits,a+=t.chars[i&c>>s];if(s&&(a+=t.chars[i&c<<t.bits-s]),r)for(;a.length*t.bits&7;)a+="=";return a}Object.defineProperty(t,"__esModule",{value:!0});var i={chars:"0123456789ABCDEF",bits:4},a={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bits:5},s={chars:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bits:5},c={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bits:6},l={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bits:6},u={parse:function(e,t){return o(e.toUpperCase(),i,t)},stringify:function(e,t){return r(e,i,t)}},d={parse:function(e,t){return void 0===t&&(t={}),o(t.loose?e.toUpperCase().replace(/0/g,"O").replace(/1/g,"L").replace(/8/g,"B"):e,a,t)},stringify:function(e,t){return r(e,a,t)}},h={parse:function(e,t){return o(e,s,t)},stringify:function(e,t){return r(e,s,t)}},p={parse:function(e,t){return o(e,c,t)},stringify:function(e,t){return r(e,c,t)}},m={parse:function(e,t){return o(e,l,t)},stringify:function(e,t){return r(e,l,t)}},g={parse:o,stringify:r};t.base16=u,t.base32=d,t.base32hex=h,t.base64=p,t.base64url=m,t.codec=g},function(e,t,n){"use strict";var o=String.prototype.replace,r=/%20/g,i=n(480),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return o.call(e,r,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t){e.exports="img/external-link.a8d3e9b.svg"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(96);const r=window.localStorage;let i;try{i=window.indexedDB}catch(e){}function a(e){const t={useAuthorizationHeader:!0};return i&&r&&(t.store=new o.g({indexedDB:i,dbName:"riot-web-sync",localStorage:r,workerScript:a.indexedDbWorkerScript})),r&&(t.sessionStore=new o.o(r)),i&&(t.cryptoStore=new o.f(i,"matrix-js-sdk:crypto")),e=Object.assign(t,e),o.p(e)}a.indexedDbWorkerScript=null},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var o=n(158),r=n(86),i=n(225);function a(){const e=new i.a(r.a.get()).getPushRuleById(".m.rule.master");return e?e.enabled&&!e.actions.includes("notify"):(console.warn("No master push rule! Notifications are disabled for this user."),!0)}function s(){let e=n(249);return e.default&&(e=e.default),e}class c extends o.a{getValueOverride(e,t,n,o){return!!s().isPossible()&&(null===n||"default"===o?!a():n)}onChange(e,t,n){s().supportsDesktopNotifications()&&s().setEnabled(n)}}class l extends o.a{getValueOverride(e,t,n){return!!s().isPossible()&&(null===n?!a():n)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var o=n(86),r=n(88),i=n(250);class a{constructor(){this.reset()}static sharedInstance(){return void 0===e.mxTypingStore&&(e.mxTypingStore=new a),e.mxTypingStore}reset(){this._typingStates={}}setSelfTyping(e,t){if(!r.a.getValue("sendTypingNotifications"))return;if(r.a.getValue("lowBandwidth"))return;let n=this._typingStates[e];!t&&!n||n&&n.isTyping===t||(n||(n=this._typingStates[e]={isTyping:t,serverTimer:new i.a(3e4),userTimer:new i.a(1e4)}),n.isTyping=t,t&&(n.serverTimer.isRunning()?n.serverTimer.restart():n.serverTimer.restart().finished().then(()=>{const t=this._typingStates[e];t&&(t.isTyping=!1)}),n.userTimer.isRunning()?n.userTimer.restart():n.userTimer.restart().finished().then(()=>{this.setSelfTyping(e,!1)})),o.a.get().sendTyping(e,t,3e4))}}}).call(this,n(5))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(485),u=n(136),d=n(83),h=n(486);function p(e){return e===h.c?n(1298):n(369)}class m extends a.a.Component{constructor(){super(),r()(this,"_onStoreUpdate",()=>{this.setState({icon:p(this.store.phase)})}),this.store=h.f.sharedInstance(),this.state={icon:p(this.store.phase)}}componentDidMount(){this.store.on("update",this._onStoreUpdate)}componentWillUnmount(){this.store.removeListener("update",this._onStoreUpdate)}render(){return a.a.createElement(u.a,{headerImage:this.state.icon,onFinished:this.props.onFinished,title:Object(d.a)("Verify this session")},a.a.createElement(l.a,{onFinished:this.props.onFinished}))}}r()(m,"propTypes",{onFinished:c.a.func.isRequired})},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o=n(82),r=n.n(o),i=n(105),a=n(90),s=n.n(a),c=n(81),l=n.n(c),u=n(84),d=n.n(u),h=n(85),p=n(86),m=n(102),g=n(91),f=n(83);class _ extends l.a.PureComponent{constructor(e){super(e),r()(this,"_onCancel",()=>{this.props.onFinished(!1)}),r()(this,"_onUseRecoveryKeyClick",()=>{this.setState({forceRecoveryKey:!0})}),r()(this,"_validateRecoveryKeyOnChange",Object(i.debounce)(()=>{this._validateRecoveryKey()},200)),r()(this,"_onRecoveryKeyChange",e=>{this.setState({recoveryKey:e.target.value,recoveryKeyFileError:null}),this._fileUpload.current&&(this._fileUpload.current.value=null),this._validateRecoveryKeyOnChange()}),r()(this,"_onRecoveryKeyFileChange",async e=>{if(0===e.target.files.length)return;const t=e.target.files[0];if(t.size>128)this.setState({recoveryKeyFileError:!0,recoveryKeyCorrect:!1,recoveryKeyValid:!1});else{const e=await t.text();/^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\s]+$/.test(e)?(this.setState({recoveryKeyFileError:null,recoveryKey:e.trim()}),this._validateRecoveryKey()):this.setState({recoveryKeyFileError:!0,recoveryKeyCorrect:!1,recoveryKeyValid:!1,recoveryKey:""})}}),r()(this,"_onRecoveryKeyFileUploadClick",()=>{this._fileUpload.current.click()}),r()(this,"_onPassPhraseNext",async e=>{if(e.preventDefault(),this.state.passPhrase.length<=0)return;this.setState({keyMatches:null});const t={passphrase:this.state.passPhrase},n=await this.props.checkPrivateKey(t);n?this.props.onFinished(t):this.setState({keyMatches:n})}),r()(this,"_onRecoveryKeyNext",async e=>{if(e.preventDefault(),!this.state.recoveryKeyValid)return;this.setState({keyMatches:null});const t={recoveryKey:this.state.recoveryKey},n=await this.props.checkPrivateKey(t);n?this.props.onFinished(t):this.setState({keyMatches:n})}),r()(this,"_onPassPhraseChange",e=>{this.setState({passPhrase:e.target.value,keyMatches:null})}),this._fileUpload=l.a.createRef(),this.state={recoveryKey:"",recoveryKeyValid:null,recoveryKeyCorrect:null,recoveryKeyFileError:null,forceRecoveryKey:!1,passPhrase:"",keyMatches:null}}async _validateRecoveryKey(){if(""!==this.state.recoveryKey)try{const e=p.a.get(),t=e.keyBackupKeyFromRecoveryKey(this.state.recoveryKey),n=await e.checkSecretStorageKey(t,this.props.keyInfo);this.setState({recoveryKeyValid:!0,recoveryKeyCorrect:n})}catch(e){this.setState({recoveryKeyValid:!1,recoveryKeyCorrect:!1})}else this.setState({recoveryKeyValid:null,recoveryKeyCorrect:null})}getKeyValidationText(){return this.state.recoveryKeyFileError?Object(f.a)("Wrong file type"):this.state.recoveryKeyCorrect?Object(f.a)("Looks good!"):this.state.recoveryKeyValid?Object(f.a)("Wrong Recovery Key"):null===this.state.recoveryKeyValid?"":Object(f.a)("Invalid Recovery Key")}render(){const e=h.getComponent("views.dialogs.BaseDialog");let t,n,o;if(this.props.keyInfo&&this.props.keyInfo.passphrase&&this.props.keyInfo.passphrase.salt&&this.props.keyInfo.passphrase.iterations&&!this.state.forceRecoveryKey){const e=h.getComponent("views.elements.DialogButtons"),r=h.getComponent("elements.AccessibleButton");let i;n=Object(f.a)("Security Phrase"),o=["mx_AccessSecretStorageDialog_titleWithIcon mx_AccessSecretStorageDialog_securePhraseTitle"],i=!1===this.state.keyMatches?l.a.createElement("div",{className:"mx_AccessSecretStorageDialog_keyStatus"},"👎 ",Object(f.a)("Unable to access secret storage. Please verify that you entered the correct recovery passphrase.")):l.a.createElement("div",{className:"mx_AccessSecretStorageDialog_keyStatus"}),t=l.a.createElement("div",null,l.a.createElement("p",null,Object(f.a)("Enter your Security Phrase or <button>Use your Security Key</button> to continue.",{},{button:e=>l.a.createElement(r,{className:"mx_linkButton",element:"span",onClick:this._onUseRecoveryKeyClick},e)})),l.a.createElement("form",{className:"mx_AccessSecretStorageDialog_primaryContainer",onSubmit:this._onPassPhraseNext},l.a.createElement("input",{type:"password",className:"mx_AccessSecretStorageDialog_passPhraseInput",onChange:this._onPassPhraseChange,value:this.state.passPhrase,autoFocus:!0,autoComplete:"new-password",placeholder:Object(f.a)("Security Phrase")}),i,l.a.createElement(e,{primaryButton:Object(f.a)("Continue"),onPrimaryButtonClick:this._onPassPhraseNext,hasCancel:!0,onCancel:this._onCancel,focus:!1,primaryDisabled:0===this.state.passPhrase.length})))}else{n=Object(f.a)("Security Key"),o=["mx_AccessSecretStorageDialog_titleWithIcon mx_AccessSecretStorageDialog_secureBackupTitle"];const e=h.getComponent("views.elements.DialogButtons"),r=s()({mx_AccessSecretStorageDialog_recoveryKeyFeedback:!0,mx_AccessSecretStorageDialog_recoveryKeyFeedback_valid:!0===this.state.recoveryKeyCorrect,mx_AccessSecretStorageDialog_recoveryKeyFeedback_invalid:!1===this.state.recoveryKeyCorrect}),i=l.a.createElement("div",{className:r},this.getKeyValidationText());t=l.a.createElement("div",null,l.a.createElement("p",null,Object(f.a)("Use your Security Key to continue.")),l.a.createElement("form",{className:"mx_AccessSecretStorageDialog_primaryContainer",onSubmit:this._onRecoveryKeyNext,spellCheck:!1,autoComplete:"off"},l.a.createElement("div",{className:"mx_AccessSecretStorageDialog_recoveryKeyEntry"},l.a.createElement("div",{className:"mx_AccessSecretStorageDialog_recoveryKeyEntry_textInput"},l.a.createElement(m.a,{type:"password",label:Object(f.a)("Security Key"),value:this.state.recoveryKey,onChange:this._onRecoveryKeyChange,forceValidity:this.state.recoveryKeyCorrect,autoComplete:"off"})),l.a.createElement("span",{className:"mx_AccessSecretStorageDialog_recoveryKeyEntry_entryControlSeparatorText"},Object(f.a)("or")),l.a.createElement("div",null,l.a.createElement("input",{type:"file",className:"mx_AccessSecretStorageDialog_recoveryKeyEntry_fileInput",ref:this._fileUpload,onChange:this._onRecoveryKeyFileChange}),l.a.createElement(g.a,{kind:"primary",onClick:this._onRecoveryKeyFileUploadClick},Object(f.a)("Upload")))),i,l.a.createElement(e,{primaryButton:Object(f.a)("Continue"),onPrimaryButtonClick:this._onRecoveryKeyNext,hasCancel:!0,cancelButton:Object(f.a)("Go Back"),cancelButtonClass:"danger",onCancel:this._onCancel,focus:!1,primaryDisabled:!this.state.recoveryKeyValid})))}return l.a.createElement(e,{className:"mx_AccessSecretStorageDialog",onFinished:this.props.onFinished,title:n,titleClass:o},l.a.createElement("div",null,t))}}r()(_,"propTypes",{keyInfo:d.a.object.isRequired,checkPrivateKey:d.a.func.isRequired})},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o,r,i,a=n(82),s=n.n(a),c=n(81),l=n.n(c),u=n(84),d=n.n(u),h=n(83),p=n(89),m=n(252),g=n(720),f=n(136),_=n(214),b=n(86),v=n(85);let E=Object(m.a)("views.dialogs.NewSessionReviewDialog")((i=r=class extends l.a.PureComponent{constructor(...e){super(...e),s()(this,"onCancelClick",()=>{const e=v.getComponent("dialogs.ErrorDialog");p.a.createTrackedDialog("Verification failed","insecure",e,{headerImage:n(369),title:Object(h.a)("Your account is not secure"),description:l.a.createElement("div",null,Object(h.a)("One of the following may be compromised:"),l.a.createElement("ul",null,l.a.createElement("li",null,Object(h.a)("Your password")),l.a.createElement("li",null,Object(h.a)("Your homeserver")),l.a.createElement("li",null,Object(h.a)("This session, or the other session")),l.a.createElement("li",null,Object(h.a)("The internet connection either session is using"))),l.a.createElement("div",null,Object(h.a)("We recommend you change your password and recovery key in Settings immediately"))),onFinished:()=>this.props.onFinished(!1)})}),s()(this,"onContinueClick",()=>{const{userId:e,device:t}=this.props,n=b.a.get(),o=n.requestVerification(e,[t.deviceId]);this.props.onFinished(!0),p.a.createTrackedDialog("New Session Verification","Starting dialog",g.a,{verificationRequestPromise:o,member:n.getUser(e)})})}render(){const{device:e}=this.props,t=l.a.createElement("span",{className:"mx_NewSessionReviewDialog_headerIcon mx_E2EIcon_warning"}),n=Object(h.a)("New session"),o=l.a.createElement("h2",{className:"mx_NewSessionReviewDialog_header"},t,n);return l.a.createElement(f.a,{title:o,onFinished:this.props.onFinished},l.a.createElement("div",{className:"mx_NewSessionReviewDialog_body"},l.a.createElement("p",null,Object(h.a)("Use this session to verify your new one, granting it access to encrypted messages:")),l.a.createElement("div",{className:"mx_NewSessionReviewDialog_deviceInfo"},l.a.createElement("div",null,l.a.createElement("span",{className:"mx_NewSessionReviewDialog_deviceName"},e.getDisplayName())," ",l.a.createElement("span",{className:"mx_NewSessionReviewDialog_deviceID"},"(",e.deviceId,")"))),l.a.createElement("p",null,Object(h.a)("If you didnt sign in to this session, your account may be compromised.")),l.a.createElement(_.a,{cancelButton:Object(h.a)("This wasn't me"),cancelButtonClass:"danger",primaryButton:Object(h.a)("Continue"),onCancel:this.onCancelClick,onPrimaryButtonClick:this.onContinueClick})))}},s()(r,"propTypes",{userId:d.a.string.isRequired,device:d.a.object.isRequired,onFinished:d.a.func.isRequired}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(86),u=n(85),d=n(83);class h extends a.a.Component{constructor(...e){super(...e),this.onFinished=this.onFinished.bind(this),this.state={},this.props.verificationRequest?this.state.verificationRequest=this.props.verificationRequest:this.props.verificationRequestPromise&&this.props.verificationRequestPromise.then(e=>{this.setState({verificationRequest:e})})}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.right_panel.EncryptionPanel"),n=this.state.verificationRequest,o=n&&n.otherUserId,r=this.props.member||o&&l.a.get().getUser(o),i=n&&n.isSelfVerification?Object(d.a)("Verify other session"):Object(d.a)("Verification Request");return a.a.createElement(e,{className:"mx_InfoDialog",onFinished:this.onFinished,contentId:"mx_Dialog_content",title:i,hasCancel:!0},a.a.createElement(t,{layout:"dialog",verificationRequest:this.props.verificationRequest,verificationRequestPromise:this.props.verificationRequestPromise,onClose:this.props.onFinished,member:r}))}async onFinished(){this.props.onFinished();let e=this.props.verificationRequest;!e&&this.props.verificationRequestPromise&&(e=await this.props.verificationRequestPromise),e.cancel()}}r()(h,"propTypes",{verificationRequest:c.a.object,verificationRequestPromise:c.a.object,onFinished:c.a.func.isRequired})},function(e,t,n){"use strict";t.a={HomePage:"home_page",RoomView:"room_view",RoomDirectory:"room_directory",UserView:"user_view",GroupView:"group_view",MyGroups:"my_groups"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var o=n(87),r=n(85),i=n(89),a=n(83);const s=/^[a-z0-9=_\-./]+$/;async function c(e){void 0===e&&(e={});const t=r.getComponent("dialogs.QuestionDialog"),n=i.a.createTrackedDialog("Registration required","",t,{hasCancelButton:!0,quitOnly:!0,title:Object(a.a)("Sign In or Create Account"),description:Object(a.a)("Use your account or create a new one to continue."),button:Object(a.a)("Create Account"),extraButtons:[React.createElement("button",{key:"start_login",onClick:()=>{n.close(),o.a.dispatch({action:"start_login",screenAfterLogin:e.screen_after})}},Object(a.a)("Sign In"))],onFinished:t=>{t?o.a.dispatch({action:"start_registration",screenAfterLogin:e.screen_after}):e.go_home_on_cancel?o.a.dispatch({action:"view_home_page"}):e.go_welcome_on_cancel&&o.a.dispatch({action:"view_welcome_page"})}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(6),r=n(105);class i extends o.EventEmitter{constructor(){super(),this._throttledMiddlePanel=Object(r.throttle)(()=>this.emit("middlePanelResized"),200),this._isResizing=!1}get isResizing(){return this._isResizing}startResizing(){this._isResizing=!0,this.emit("isResizing",!0)}stopResizing(){this._isResizing=!1,this.emit("isResizing",!1)}_noisyMiddlePanel(){this.emit("middlePanelResizedNoisy")}_updateMiddlePanel(){this._throttledMiddlePanel(),this._noisyMiddlePanel()}notifyLeftHandleResized(){this._updateMiddlePanel()}notifyRightHandleResized(){this._updateMiddlePanel()}notifyTimelineHeightChanged(){this._updateMiddlePanel()}notifyWindowResized(){this.emit("leftPanelResized"),this._updateMiddlePanel()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(82),r=n.n(o),i=n(87),a=n(88),s=n(320),c=n(93),l=n(95);class u{constructor(){r()(this,"dispatcherRef",void 0),r()(this,"onAction",e=>{e.action===c.a.UpdateFontSize?this.setRootFontSize(e.size):e.action===c.a.UpdateSystemFont&&this.setSystemFont(e)}),r()(this,"setRootFontSize",e=>{const t=Math.max(Math.min(u.MAX_SIZE,e),u.MIN_SIZE);t!==e&&a.a.setValue("baseFontSize",null,l.a.DEVICE,t),document.querySelector(":root").style.fontSize=Object(s.a)(t)}),r()(this,"setSystemFont",({useSystemFont:e,font:t})=>{document.body.style.fontFamily=e?t:""}),this.dispatcherRef=null}start(){this.setRootFontSize(a.a.getValue("baseFontSize")),this.setSystemFont({useSystemFont:a.a.getValue("useSystemFont"),font:a.a.getValue("systemFont")}),this.dispatcherRef=i.a.register(this.onAction)}stop(){i.a.unregister(this.dispatcherRef)}}r()(u,"MIN_SIZE",8),r()(u,"MAX_SIZE",15),r()(u,"SIZE_DIFF",5)},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(136),c=n(83),l=n(102),u=n(91),d=n(86),h=n(726),p=n(87),m=n(154),g=n(109);class f extends a.a.PureComponent{constructor(e){super(e),r()(this,"avatarUploadRef",a.a.createRef()),r()(this,"onNameChange",e=>{const t=(e.target.value||"").toLowerCase().replace(/[^a-z0-9.\-_]/g,"-");this.setState({name:e.target.value,localpart:t})}),r()(this,"onSubmit",async e=>{if(e.preventDefault(),e.stopPropagation(),!this.state.busy){this.setState({busy:!0});try{let e="";this.state.avatarFile&&(e=await d.a.get().uploadContent(this.state.avatarFile));const t=await d.a.get().createGroup({localpart:this.state.localpart,profile:{name:this.state.name,avatar_url:e}});p.a.dispatch({action:"deselect_tags"},!0),p.a.dispatch({action:"select_tag",tag:t.group_id}),this.props.onFinished(!0),t.room_id?(await g.a.refreshGroupRooms(t.group_id),p.a.dispatch({action:"view_room",room_id:t.room_id}),Object(m.f)(t.room_id,this.state.name)):p.a.dispatch({action:"view_group",group_id:t.group_id,group_is_new:!0})}catch(e){console.error(e),this.setState({busy:!1,error:Object(c.a)("There was an error creating your community. The name may be taken or the server is unable to process your request.")})}}}),r()(this,"onAvatarChanged",e=>{if(e.target.files&&e.target.files.length){this.setState({busy:!0});const t=e.target.files[0],n=new FileReader;n.onload=e=>{this.setState({avatarFile:t,busy:!1,avatarPreview:e.target.result})},n.readAsDataURL(t)}else this.setState({avatarFile:null})}),r()(this,"onChangeAvatar",()=>{this.avatarUploadRef.current&&this.avatarUploadRef.current.click()}),this.state={name:"",localpart:"",error:null,busy:!1,avatarFile:null,avatarPreview:null}}render(){let e=null;this.state.localpart&&(e=a.a.createElement("span",{className:"mx_CreateCommunityPrototypeDialog_communityId"},Object(c.a)("Community ID: +<localpart />:%(domain)s",{domain:d.a.getHomeserverName()},{localpart:()=>a.a.createElement("u",null,this.state.localpart)}),a.a.createElement(h.a,{tooltip:Object(c.a)("Use this when referencing your community to others. The community ID cannot be changed.")})));let t=a.a.createElement("span",{className:"mx_CreateCommunityPrototypeDialog_subtext"},Object(c.a)("You can change this later if needed."));if(this.state.error){const e="mx_CreateCommunityPrototypeDialog_subtext mx_CreateCommunityPrototypeDialog_subtext_error";t=a.a.createElement("span",{className:e},this.state.error)}let n=a.a.createElement("img",{src:this.state.avatarPreview,className:"mx_CreateCommunityPrototypeDialog_avatar"});return this.state.avatarPreview||(n=a.a.createElement("div",{className:"mx_CreateCommunityPrototypeDialog_placeholderAvatar"})),a.a.createElement(s.a,{className:"mx_CreateCommunityPrototypeDialog",onFinished:this.props.onFinished,title:Object(c.a)("What's the name of your community or team?")},a.a.createElement("form",{onSubmit:this.onSubmit},a.a.createElement("div",{className:"mx_Dialog_content"},a.a.createElement("div",{className:"mx_CreateCommunityPrototypeDialog_colName"},a.a.createElement(l.a,{value:this.state.name,onChange:this.onNameChange,placeholder:Object(c.a)("Enter name"),label:Object(c.a)("Enter name")}),t,a.a.createElement("span",{className:"mx_CreateCommunityPrototypeDialog_subtext"}," ",e),a.a.createElement(u.a,{kind:"primary",onClick:this.onSubmit,disabled:this.state.busy},Object(c.a)("Create"))),a.a.createElement("div",{className:"mx_CreateCommunityPrototypeDialog_colAvatar"},a.a.createElement("input",{type:"file",style:{display:"none"},ref:this.avatarUploadRef,accept:"image/*",onChange:this.onAvatarChanged}),a.a.createElement(u.a,{onClick:this.onChangeAvatar,className:"mx_CreateCommunityPrototypeDialog_avatarContainer"},n),a.a.createElement("div",{className:"mx_CreateCommunityPrototypeDialog_tip"},a.a.createElement("b",null,Object(c.a)("Add image (optional)")),a.a.createElement("span",null,Object(c.a)("An image will help people identify your community.")))))))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(90),c=n.n(s),l=n(314),u=n(83);class d extends a.a.PureComponent{constructor(e){super(e),r()(this,"onMouseOver",()=>{this.setState({hover:!0})}),r()(this,"onMouseLeave",()=>{this.setState({hover:!1})}),this.state={hover:!1}}render(){const{tooltip:e,children:t,tooltipClassName:n}=this.props,o=Object(u.a)("Information"),r=this.state.hover?a.a.createElement(l.a,{className:"mx_InfoTooltip_container",tooltipClassName:c()("mx_InfoTooltip_tooltip",n),label:e||o,forceOnRight:!0}):a.a.createElement("div",null);return a.a.createElement("div",{onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave,className:"mx_InfoTooltip"},a.a.createElement("span",{className:"mx_InfoTooltip_icon","aria-label":o}),t,r)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var o=n(82),r=n.n(o),i=n(6),a=n.n(i),s=n(711);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class l extends a.a{static get instance(){return l._instance||(l._instance=new l),l._instance}storeInvite(e,t){const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({roomId:e},t),o=this.generateIdOf(n);return localStorage.setItem("mx_threepid_invite_"+o,JSON.stringify(n)),this.translateInvite(n)}getWireInvites(){const e=[];for(let t=0;t<localStorage.length;t++){const n=localStorage.key(t);n.startsWith("mx_threepid_invite_")&&e.push(JSON.parse(localStorage.getItem(n)))}return e}getInvites(){return this.getWireInvites().map(e=>this.translateInvite(e))}pickBestInvite(){return this.getInvites()[0]}resolveInvite(e){localStorage.removeItem("mx_threepid_invite_"+e.id)}generateIdOf(t){return s.base32.stringify(e.from(JSON.stringify(t)))}translateInvite(e){return{id:this.generateIdOf(e),roomId:e.roomId,toEmail:e.email,signUrl:e.signurl,roomName:e.room_name,roomAvatarUrl:e.room_avatar_url,inviterName:e.inviter_name}}translateToWireFormat(e){return{email:e.toEmail,signurl:e.signUrl,room_name:e.roomName,room_avatar_url:e.roomAvatarUrl,inviter_name:e.inviterName}}}r()(l,"_instance",void 0)}).call(this,n(31).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o=n(82),r=n.n(o),i=n(81),a=n(155),s=n(83),c=n(86),l=n(91),u=n(102),d=n(729),h=n(87),p=n(89),m=n(143);class g extends i.PureComponent{constructor(e){super(e),r()(this,"onCancelClick",()=>{this.props.onFinished(!1)}),r()(this,"onChange",e=>{this.setState({value:e.target.value})}),r()(this,"onFormSubmit",e=>{e.preventDefault(),this.onDialPress()}),r()(this,"onDigitPress",e=>{this.setState({value:this.state.value+e})}),r()(this,"onDeletePress",()=>{0!==this.state.value.length&&this.setState({value:this.state.value.slice(0,-1)})}),r()(this,"onDialPress",async()=>{const e=await c.a.get().getThirdpartyUser("im.vector.protocol.pstn",{"m.id.phone":this.state.value});e&&0!==e.length&&e[0].userid||p.a.createTrackedDialog("","",m.a,{title:Object(s.a)("Unable to look up phone number"),description:Object(s.a)("There was an error looking up the phone number")});const t=e[0].userid,n=await Object(a.c)(c.a.get(),t);h.a.dispatch({action:"view_room",room_id:n}),this.props.onFinished(!0)}),this.state={value:""}}render(){return i.createElement("div",{className:"mx_DialPadModal"},i.createElement("div",{className:"mx_DialPadModal_header"},i.createElement("div",null,i.createElement("span",{className:"mx_DialPadModal_title"},Object(s.a)("Dial pad")),i.createElement(l.a,{className:"mx_DialPadModal_cancel",onClick:this.onCancelClick})),i.createElement("form",{onSubmit:this.onFormSubmit},i.createElement(u.a,{className:"mx_DialPadModal_field",id:"dialpad_number",value:this.state.value,autoFocus:!0,onChange:this.onChange}))),i.createElement("div",{className:"mx_DialPadModal_horizSep"}),i.createElement("div",{className:"mx_DialPadModal_dialPad"},i.createElement(d.a,{onDigitPress:this.onDigitPress,onDeletePress:this.onDeletePress,onDialPress:this.onDialPress})))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(82),r=n.n(o),i=n(81),a=n(91);const s=["1","2","3","4","5","6","7","8","9","*","0","#"];var c;!function(e){e[e.Digit=0]="Digit",e[e.Delete=1]="Delete",e[e.Dial=2]="Dial"}(c||(c={}));class l extends i.PureComponent{constructor(...e){super(...e),r()(this,"onClick",()=>{this.props.onButtonPress(this.props.digit)})}render(){switch(this.props.kind){case c.Digit:return i.createElement(a.a,{className:"mx_DialPad_button",onClick:this.onClick},this.props.digit);case c.Delete:return i.createElement(a.a,{className:"mx_DialPad_button mx_DialPad_deleteButton",onClick:this.onClick});case c.Dial:return i.createElement(a.a,{className:"mx_DialPad_button mx_DialPad_dialButton",onClick:this.onClick})}}}class u extends i.PureComponent{render(){const e=[];for(const t of s)e.push(i.createElement(l,{key:t,kind:c.Digit,digit:t,onButtonPress:this.props.onDigitPress}));return e.push(i.createElement(l,{key:"del",kind:c.Delete,onButtonPress:this.props.onDeletePress})),e.push(i.createElement(l,{key:"dial",kind:c.Dial,onButtonPress:this.props.onDialPress})),i.createElement("div",{className:"mx_DialPad"},e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(81),r=n.n(o),i=n(84),a=n.n(i),s=n(85),c=n(16),l=n.n(c),u=n(83);const d=["vector-im/element-web","matrix-org/matrix-react-sdk","matrix-org/matrix-js-sdk"];class h extends r.a.Component{constructor(e){super(e),this.state={}}componentDidMount(){const e=this.props.newVersion.split("-"),t=this.props.version.split("-");if(null!=e&&null!=t)for(let n=0;n<d.length;n++){const o=t[2*n],r=e[2*n],i=`https://riot.im/github/repos/${d[n]}/compare/${o}...${r}`;l()(i,(e,t,o)=>{t.statusCode<200||t.statusCode>=300?this.setState({[d[n]]:t.statusText}):this.setState({[d[n]]:JSON.parse(o).commits})})}}_elementsForCommit(e){return r.a.createElement("li",{key:e.sha,className:"mx_ChangelogDialog_li"},r.a.createElement("a",{href:e.html_url,target:"_blank",rel:"noreferrer noopener"},e.commit.message.split("\n")[0]))}render(){const e=s.getComponent("views.elements.Spinner"),t=s.getComponent("dialogs.QuestionDialog"),n=d.map(t=>{let n;return n=null==this.state[t]?r.a.createElement(e,{key:t}):"string"==typeof this.state[t]?Object(u.a)("Unable to load commit detail: %(msg)s",{msg:this.state[t]}):this.state[t].map(this._elementsForCommit),r.a.createElement("div",{key:t},r.a.createElement("h2",null,t),r.a.createElement("ul",null,n))}),o=r.a.createElement("div",{className:"mx_ChangelogDialog_content"},null==this.props.version||null==this.props.newVersion?r.a.createElement("h2",null,Object(u.a)("Unavailable")):n);return r.a.createElement(t,{title:Object(u.a)("Changelog"),description:o,button:Object(u.a)("Update"),onFinished:this.props.onFinished})}}h.propTypes={version:a.a.string.isRequired,newVersion:a.a.string.isRequired,onFinished:a.a.func.isRequired}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return f}));var o=n(1302),r=n.n(o),i=n(86),a=n(104),s=n(83),c=n(1311),l=n.n(c),u=n(492),d=n(322),h=n(88);let p=window.TextEncoder;async function m(e={},t=!0){const n=e.progressCallback||(()=>{});n(Object(s.a)("Collecting app version information"));let o="UNKNOWN";try{o=await a.a.get().getAppVersion()}catch(e){}let c="UNKNOWN";window.navigator&&window.navigator.userAgent&&(c=window.navigator.userAgent);let l="UNKNOWN";try{l=String(window.matchMedia("(display-mode: standalone)").matches)}catch(e){}let d="UNKNOWN";try{d=String(window.matchMedia("(pointer: coarse)").matches)}catch(e){}const m=i.a.get();console.log("Sending bug report.");const g=new FormData;if(g.append("text",e.userText||"User did not supply any additional text."),g.append("app","element-web"),g.append("version",o),g.append("user_agent",c),g.append("installed_pwa",l),g.append("touch_input",d),m&&(g.append("user_id",m.credentials.userId),g.append("device_id",m.deviceId),m.isCryptoEnabled())){const e=["ed25519:"+m.getDeviceEd25519Key()];m.getDeviceCurve25519Key&&e.push("curve25519:"+m.getDeviceCurve25519Key()),g.append("device_keys",e.join(", ")),g.append("cross_signing_key",m.getCrossSigningId());const t=m._crypto._crossSigningInfo,n=m._crypto._secretStorage;g.append("cross_signing_ready",String(await m.isCrossSigningReady())),g.append("cross_signing_supported_by_hs",String(await m.doesServerSupportUnstableFeature("org.matrix.e2e_cross_signing"))),g.append("cross_signing_key",t.getId()),g.append("cross_signing_pk_in_secret_storage",String(!!await t.isStoredInSecretStorage(n)));const o=m.getCrossSigningCacheCallbacks();g.append("cross_signing_master_pk_cached",String(!(!o||!await o.getCrossSigningKeyCache("master")))),g.append("cross_signing_self_signing_pk_cached",String(!(!o||!await o.getCrossSigningKeyCache("self_signing")))),g.append("cross_signing_user_signing_pk_cached",String(!(!o||!await o.getCrossSigningKeyCache("user_signing")))),g.append("secret_storage_ready",String(await m.isSecretStorageReady())),g.append("secret_storage_key_in_account",String(!!await n.hasKey())),g.append("session_backup_key_in_secret_storage",String(!!await m.isKeyBackupKeyStored()));const r=await m._crypto.getSessionBackupPrivateKey();g.append("session_backup_key_cached",String(!!r)),g.append("session_backup_key_well_formed",String(r instanceof Uint8Array))}e.label&&g.append("label",e.label);const f=h.a.getFeatureSettingNames().filter(e=>h.a.getValue(e));if(f.length&&g.append("enabled_labs",f.join(", ")),h.a.getValue("lowBandwidth")&&g.append("lowBandwidth","enabled"),navigator.storage&&navigator.storage.persisted)try{g.append("storageManager_persisted",String(await navigator.storage.persisted()))}catch(e){}else if(document.hasStorageAccess)try{g.append("storageManager_persisted",String(await document.hasStorageAccess()))}catch(e){}if(navigator.storage&&navigator.storage.estimate)try{const e=await navigator.storage.estimate();g.append("storageManager_quota",String(e.quota)),g.append("storageManager_usage",String(e.usage)),e.usageDetails&&Object.keys(e.usageDetails).forEach(t=>{g.append("storageManager_usage_"+t,String(e.usageDetails[t]))})}catch(e){}if(window.Modernizr){const e=Object.keys(window.Modernizr).filter(e=>!1===window.Modernizr[e]);e.length>0&&g.append("modernizr_missing_features",e.join(", "))}if(g.append("mx_local_settings",localStorage.getItem("mx_local_settings")),e.sendLogs){n(Object(s.a)("Collecting logs"));const e=await u.c();for(const n of e){let e=(new p).encode(n.lines);t&&(e=r.a.gzip(e)),g.append("compressed-log",new Blob([e]),n.id)}}return g}async function g(e,t={}){if(!e)throw new Error("No bug report endpoint has been set.");const n=t.progressCallback||(()=>{}),o=await m(t);n(Object(s.a)("Uploading logs")),await function(e,t,n){return new Promise((o,r)=>{const i=new XMLHttpRequest;i.open("POST",e),i.timeout=3e5,i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.LOADING)n(Object(s.a)("Waiting for response from server"));else if(i.readyState===XMLHttpRequest.DONE){if(i.status<200||i.status>=400)return void r(new Error("HTTP "+i.status));o()}},i.send(t)})}(e,o,n)}async function f(e={}){const t=e.progressCallback||(()=>{}),n=await m(e,!1);t(Object(s.a)("Downloading logs"));let o="";const r=new l.a;let i=0;for(const[e,t]of n.entries())"compressed-log"===e?await new Promise(e=>{const n=new FileReader;n.addEventListener("loadend",t=>{r.append(`log-${i++}.log`,(new TextDecoder).decode(t.target.result)),e()}),n.readAsArrayBuffer(t)}):o+=`${e} = ${t}\n`;r.append("issue.txt",o);const a=document.createElement("a");a.href="data:application/octet-stream;base64,"+btoa(function(e){let t="";for(let n=0;n<e.length;n+=1)t+=String.fromCharCode(e[n]);return t}(r.out)),a.download="rageshake.tar",document.body.appendChild(a),a.click(),document.body.removeChild(a)}p||(p=d.TextEncoder)},function(e,t,n){"use strict";e.exports=function(e,t,n,o){for(var r=65535&e|0,i=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+(r=r+t[o++]|0)|0}while(--a);r%=65521,i%=65521}return r|i<<16|0}},function(e,t,n){"use strict";var o=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var o=0;o<8;o++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t,n,r){var i=o,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}},function(e,t,n){"use strict";var o=n(198),r=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var a=new o.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function c(e,t){if(t<65534&&(e.subarray&&i||!e.subarray&&r))return String.fromCharCode.apply(null,o.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,t.string2buf=function(e){var t,n,r,i,a,s=e.length,c=0;for(i=0;i<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new o.Buf8(c),a=0,i=0;a<c;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},t.buf2binstring=function(e){return c(e,e.length)},t.binstring2buf=function(e){for(var t=new o.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},t.buf2string=function(e,t){var n,o,r,i,s=t||e.length,l=new Array(2*s);for(o=0,n=0;n<s;)if((r=e[n++])<128)l[o++]=r;else if((i=a[r])>4)l[o++]=65533,n+=i-1;else{for(r&=2===i?31:3===i?15:7;i>1&&n<s;)r=r<<6|63&e[n++],i--;i>1?l[o++]=65533:r<65536?l[o++]=r:(r-=65536,l[o++]=55296|r>>10&1023,l[o++]=56320|1023&r)}return c(l,o)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},function(e,t,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t){!function(){"use strict";var t=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function n(e){var t,n=new Uint8Array(e);for(t=0;t<e;t+=1)n[t]=0;return n}e.exports.clean=n,e.exports.pad=function(e,t,n){return e=e.toString(n||8),"000000000000".substr(e.length+12-t)+e},e.exports.extend=function(e,t,o,r){var i=n((parseInt((t+o)/r)+1)*r);return i.set(e),i},e.exports.stringToUint8=function(e,t,o){var r,i;for(t=t||n(e.length),o=o||0,r=0,i=e.length;r<i;r+=1)t[o]=e.charCodeAt(r),o+=1;return t},e.exports.uint8ToBase64=function(e){var n,o,r,i,a=e.length%3,s="";for(n=0,r=e.length-a;n<r;n+=3)o=(e[n]<<16)+(e[n+1]<<8)+e[n+2],s+=t[(i=o)>>18&63]+t[i>>12&63]+t[i>>6&63]+t[63&i];switch(s.length%4){case 1:s+="=";break;case 2:s+="=="}return s},e.exports.base64ToUint8=function(e){for(var o,r=e.match(/^([^=]+)/)[1],i=e.match(/(=*)$/)[1].length,a=0,s=r.length,c=0,l=n(.75*r.length+i);a<s;)o=0,o|=t.indexOf(r.charAt(a)||"A")<<18,a+=1,o|=t.indexOf(r.charAt(a)||"A")<<12,a+=1,o|=t.indexOf(r.charAt(a)||"A")<<6,a+=1,o|=t.indexOf(r.charAt(a)||"A"),a+=1,l[c]=o>>16&255,l[c+=1]=o>>8&255,l[c+=1]=255&o,c+=1;return l}}()},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var o=n(82),r=n.n(o),i=n(81),a=n(90),s=n.n(a),c=n(87),l=n(83),u=n(98),d=n(91),h=n(93),p=n(142),m=n(691);class g extends i.PureComponent{constructor(t){super(t),r()(this,"dispatcherRef",void 0),r()(this,"inputRef",Object(i.createRef)()),r()(this,"searchFilter",new m.a),r()(this,"onAction",e=>{"view_room"===e.action&&e.clear_search?this.clearInput():"focus_room_filter"===e.action&&this.inputRef.current&&this.inputRef.current.focus()}),r()(this,"clearInput",()=>{this.inputRef.current&&(this.inputRef.current.value="",this.onChange())}),r()(this,"openSearch",()=>{c.a.dispatch({action:"show_left_panel"}),c.a.dispatch({action:"focus_room_filter"})}),r()(this,"onChange",()=>{this.inputRef.current&&this.setState({query:this.inputRef.current.value})}),r()(this,"onFocus",e=>{this.setState({focused:!0}),e.target.select()}),r()(this,"onBlur",e=>{this.setState({focused:!1})}),r()(this,"onKeyDown",t=>{if(t.key===u.a.ESCAPE)this.clearInput(),c.a.fire(h.a.FocusComposer);else if(t.key===u.a.ARROW_UP||t.key===u.a.ARROW_DOWN)this.props.onVerticalArrow(t);else if(t.key===u.a.ENTER){this.props.onEnter(t)&&e(()=>{this.clearInput()})}}),this.state={query:"",focused:!1},this.dispatcherRef=c.a.register(this.onAction)}componentDidUpdate(e,t){if(t.query!==this.state.query){const e=!!this.searchFilter.search.trim(),t=!!this.state.query.trim();this.searchFilter.search=this.state.query,!e&&t?p.b.instance.addFilter(this.searchFilter):e&&!t&&p.b.instance.removeFilter(this.searchFilter)}}componentWillUnmount(){c.a.unregister(this.dispatcherRef)}render(){const e=s()({mx_RoomSearch:!0,mx_RoomSearch_hasQuery:this.state.query,mx_RoomSearch_focused:this.state.focused,mx_RoomSearch_minimized:this.props.isMinimized}),t=s()({mx_RoomSearch_input:!0,mx_RoomSearch_inputExpanded:this.state.query||this.state.focused});let n=i.createElement("div",{className:"mx_RoomSearch_icon"}),o=i.createElement("input",{type:"text",ref:this.inputRef,className:t,value:this.state.query,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,onKeyDown:this.onKeyDown,placeholder:Object(l.a)("Filter"),autoComplete:"off"}),r=i.createElement(d.a,{tabIndex:-1,title:Object(l.a)("Clear filter"),className:"mx_RoomSearch_clearButton",onClick:this.clearInput});return this.props.isMinimized&&(n=i.createElement(d.a,{title:Object(l.a)("Filter rooms and people"),className:"mx_RoomSearch_icon mx_RoomSearch_minimizedHandle",onClick:this.openSearch}),o=null,r=null),i.createElement("div",{className:e},n,o,r)}}}).call(this,n(149).setImmediate)},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default={disabled:!1},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var o;(o=n(84))&&o.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;a(n(84));var o=a(n(81)),r=a(n(494)),i=n(1320);function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var c=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},l=function(e){var t,n;function a(t,n){var o,r=(o=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o));return o.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},o}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=a.prototype;return l.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},l.componentWillUnmount=function(){this.mounted=!1},a.getDerivedStateFromProps=function(e,t){var n=t.children,o=t.handleExited;return{children:t.firstRender?(0,i.getInitialChildMapping)(e,o):(0,i.getNextChildMapping)(e,n,o),firstRender:!1}},l.handleExited=function(e,t){var n=(0,i.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=s({},t.children);return delete n[e.key],{children:n}})))},l.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,["component","childFactory"]),a=this.state.contextValue,s=c(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?o.default.createElement(r.default.Provider,{value:a},s):o.default.createElement(r.default.Provider,{value:a},o.default.createElement(t,i,s))},a}(o.default.Component);l.propTypes={},l.defaultProps={component:"div",childFactory:function(e){return e}};var u=l;t.default=u,e.exports=t.default},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(81);const r=(e,t)=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}},i=(e,t)=>{const n="mx_"+e,[i,a]=Object(o.useState)(r(n,t));Object(o.useEffect)(()=>{a(r(n,t))},[n,t]);return[i,Object(o.useCallback)(e=>{window.localStorage.setItem(n,JSON.stringify(e)),a(e)},[n])]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(107),u=n.n(l),d=n(85),h=n(83),p=n(92),m=n(122),g=n(86);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class b extends a.a.Component{constructor(e){super(e);const t=this.parseWidgetUrl(),n=g.a.get().getRoom(this.props.roomId);let o;n&&(o=n.getMember(this.props.creatorUserId)),this.state=_(_({},t),{},{roomMember:o})}parseWidgetUrl(){const e=u.a.parse(this.props.url),t=new URLSearchParams(e.search);if(m.a.isScalarUrl(e)&&t&&t.get("url")){const e=u.a.parse(t.get("url"));return{widgetDomain:e.host||e.hostname,isWrapped:!0}}return{widgetDomain:e.host||e.hostname,isWrapped:!1}}render(){const e=p.a.get().brand,t=d.getComponent("views.elements.AccessibleButton"),n=d.getComponent("views.avatars.MemberAvatar"),o=d.getComponent("views.avatars.BaseAvatar"),r=d.getComponent("views.elements.TextWithTooltip"),i=this.state.roomMember?this.state.roomMember.name:this.props.creatorUserId,s=i===this.props.creatorUserId?null:this.props.creatorUserId,c=this.state.roomMember?a.a.createElement(n,{member:this.state.roomMember,width:38,height:38}):a.a.createElement(o,{name:this.props.creatorUserId,width:38,height:38}),l=a.a.createElement("div",null,Object(h.a)("Any of the following data may be shared:"),a.a.createElement("ul",null,a.a.createElement("li",null,Object(h.a)("Your display name")),a.a.createElement("li",null,Object(h.a)("Your avatar URL")),a.a.createElement("li",null,Object(h.a)("Your user ID")),a.a.createElement("li",null,Object(h.a)("Your theme")),a.a.createElement("li",null,Object(h.a)("%(brand)s URL",{brand:e})),a.a.createElement("li",null,Object(h.a)("Room ID")),a.a.createElement("li",null,Object(h.a)("Widget ID")))),u=a.a.createElement(r,{tooltip:l,tooltipClass:"mx_AppPermissionWarning_tooltip mx_Tooltip_dark"},a.a.createElement("span",{className:"mx_AppPermissionWarning_helpIcon"})),m=this.state.isWrapped?Object(h.a)("Using this widget may share data <helpIcon /> with %(widgetDomain)s & your Integration Manager.",{widgetDomain:this.state.widgetDomain},{helpIcon:()=>u}):Object(h.a)("Using this widget may share data <helpIcon /> with %(widgetDomain)s.",{widgetDomain:this.state.widgetDomain},{helpIcon:()=>u}),g=this.props.isRoomEncrypted?Object(h.a)("Widgets do not use message encryption."):null;return a.a.createElement("div",{className:"mx_AppPermissionWarning"},a.a.createElement("div",{className:"mx_AppPermissionWarning_row mx_AppPermissionWarning_bolder mx_AppPermissionWarning_smallText"},Object(h.a)("Widget added by")),a.a.createElement("div",{className:"mx_AppPermissionWarning_row"},c,a.a.createElement("h4",{className:"mx_AppPermissionWarning_bolder"},i),a.a.createElement("div",{className:"mx_AppPermissionWarning_smallText"},s)),a.a.createElement("div",{className:"mx_AppPermissionWarning_row mx_AppPermissionWarning_smallText"},m),a.a.createElement("div",{className:"mx_AppPermissionWarning_row mx_AppPermissionWarning_smallText"},Object(h.a)("This widget may use cookies.")," ",g),a.a.createElement("div",{className:"mx_AppPermissionWarning_row"},a.a.createElement(t,{kind:"primary_sm",onClick:this.props.onPermissionGranted},Object(h.a)("Continue"))))}}r()(b,"propTypes",{url:c.a.string.isRequired,creatorUserId:c.a.string.isRequired,roomId:c.a.string.isRequired,onPermissionGranted:c.a.func.isRequired,isRoomEncrypted:c.a.bool}),r()(b,"defaultProps",{onPermissionGranted:()=>{}})},function(e,t,n){"use strict";var o=n(81),r=n.n(o),i=n(84);const a=e=>r.a.createElement("div",{className:"mx_AppPermissionWarning"},r.a.createElement("div",{className:"mx_AppPermissionWarningImage"},r.a.createElement("img",{src:n(255),alt:""})),r.a.createElement("div",{className:"mx_AppPermissionWarningText"},r.a.createElement("span",{className:"mx_AppPermissionWarningTextLabel"},e.errorMsg)));a.propTypes={errorMsg:n.n(i).a.string},a.defaultProps={errorMsg:"Error"},t.a=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(83),u=n(85),d=n(171),h=n(3),p=n(746);class m extends a.a.Component{constructor(){super(),r()(this,"_onAllow",()=>{this._onPermissionSelection(!0)}),r()(this,"_onDeny",()=>{this._onPermissionSelection(!1)}),r()(this,"_onRememberSelectionChange",e=>{this.setState({rememberSelection:e})}),this.state={rememberSelection:!1}}_onPermissionSelection(e){this.state.rememberSelection&&(console.log(`Remembering ${this.props.widgetId} as allowed=${e} for OpenID`),p.b.instance.setOIDCState(this.props.widget,this.props.widgetKind,this.props.inRoomId,e?p.a.Allowed:p.a.Denied)),this.props.onFinished(e)}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons");return a.a.createElement(e,{className:"mx_WidgetOpenIDPermissionsDialog",hasCancel:!0,onFinished:this.props.onFinished,title:Object(l.a)("A widget would like to verify your identity")},a.a.createElement("div",{className:"mx_WidgetOpenIDPermissionsDialog_content"},a.a.createElement("p",null,Object(l.a)("A widget located at %(widgetUrl)s would like to verify your identity. By allowing this, the widget will be able to verify your user ID, but not perform actions as you.",{widgetUrl:this.props.widget.templateUrl.split("?")[0]})),a.a.createElement(d.a,{value:this.state.rememberSelection,toggleInFront:!0,onChange:this._onRememberSelectionChange,label:Object(l.a)("Remember my selection for this widget")})),a.a.createElement(t,{primaryButton:Object(l.a)("Allow"),onPrimaryButtonClick:this._onAllow,cancelButton:Object(l.a)("Deny"),onCancel:this._onDeny}))}}r()(m,"propTypes",{onFinished:c.a.func.isRequired,widget:c.a.objectOf(h.Widget).isRequired,widgetKind:c.a.string.isRequired,inRoomId:c.a.string})},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var o=n(82),r=n.n(o),i=n(88),a=n(3),s=n(86),c=n(95);let l;!function(e){e[e.Allowed=0]="Allowed",e[e.Denied=1]="Denied",e[e.Unknown=2]="Unknown"}(l||(l={}));class u{constructor(){}static get instance(){return u.internalInstance||(u.internalInstance=new u),u.internalInstance}packSettingKey(e,t,n){let o=n;if(t!==a.WidgetKind.Room&&(o=s.a.get().getUserId()),t===a.WidgetKind.Modal&&(o="*MODAL*-"+o),!o)throw new Error("Failed to determine a location to check the widget's OIDC state with");return encodeURIComponent(`${o}::${e.templateUrl}`)}getOIDCState(e,t,n){var o,r;const a=this.packSettingKey(e,t,n),s=i.a.getValue("widgetOpenIDPermissions");return(null==s||null===(o=s.deny)||void 0===o?void 0:o.includes(a))?l.Denied:(null==s||null===(r=s.allow)||void 0===r?void 0:r.includes(a))?l.Allowed:l.Unknown}setOIDCState(e,t,n,o){const r=this.packSettingKey(e,t,n),a=i.a.getValue("widgetOpenIDPermissions");a.allow||(a.allow=[]),a.deny||(a.deny=[]),o===l.Allowed?a.allow.push(r):o===l.Denied?a.deny.push(r):(a.allow=a.allow.filter(e=>e!==r),a.deny=a.deny.filter(e=>e!==r)),i.a.setValue("widgetOpenIDPermissions",null,c.a.DEVICE,a)}}r()(u,"internalInstance",void 0)},function(e,t,n){"use strict";let o;n.d(t,"a",(function(){return o})),function(e){e.CanChangeViewedRoom="io.element.view_room"}(o||(o={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o=n(82),r=n.n(o),i=n(81),a=n(136),s=n(83),c=n(91),l=n(3),u=n(797),d=n(86),h=n(116),p=n(226),m=n(117),g=n(802);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class b extends i.PureComponent{constructor(e){super(e),r()(this,"widget",void 0),r()(this,"possibleButtons",void 0),r()(this,"appFrame",i.createRef()),r()(this,"state",{disabledButtonIds:[]}),r()(this,"onReady",()=>{this.state.messaging.sendWidgetConfig(this.props.widgetDefinition)}),r()(this,"onLoad",()=>{this.state.messaging.once("ready",this.onReady),this.state.messaging.on("action:"+l.WidgetApiFromWidgetAction.CloseModalWidget,this.onWidgetClose),this.state.messaging.on("action:"+l.WidgetApiFromWidgetAction.SetModalButtonEnabled,this.onButtonEnableToggle)}),r()(this,"onWidgetClose",e=>{this.props.onFinished(!0,e.detail.data)}),r()(this,"onButtonEnableToggle",e=>{e.preventDefault();if(e.detail.data.button===l.BuiltInModalButtonID.Close||!this.possibleButtons.includes(e.detail.data.button))return this.state.messaging.transport.reply(e.detail,{error:{message:"Invalid button"}});let t;if(e.detail.data.enabled)t=Object(m.c)(this.state.disabledButtonIds).filter(t=>t!==e.detail.data.button);else{const n=new Set(this.state.disabledButtonIds);n.add(e.detail.data.button),t=Array.from(n)}this.setState({disabledButtonIds:t}),this.state.messaging.transport.reply(e.detail,{})}),this.widget=new g.a(_(_({},this.props.widgetDefinition),{},{creatorUserId:d.a.get().getUserId(),id:"modal_"+this.props.sourceWidgetId})),this.possibleButtons=(this.props.widgetDefinition.buttons||[]).map(e=>e.id)}componentDidMount(){const e=new u.a([],this.widget,l.WidgetKind.Modal),t=new l.ClientWidgetApi(this.widget,this.appFrame.current,e);this.setState({messaging:t})}componentWillUnmount(){this.state.messaging.off("ready",this.onReady),this.state.messaging.off("action:"+l.WidgetApiFromWidgetAction.CloseModalWidget,this.onWidgetClose),this.state.messaging.stop()}render(){const e=this.widget.getCompleteUrl({currentRoomId:h.a.getRoomId(),currentUserId:d.a.get().getUserId(),userDisplayName:p.a.instance.displayName,userHttpAvatarUrl:p.a.instance.getHttpAvatarUrl()}),t=new URL(e);t.searchParams.set("widgetId",this.widget.id),t.searchParams.set("parentUrl",window.location.href.split("#",2)[0]);const o=t.toString().replace(/%24/g,"$");let r;return this.props.widgetDefinition.buttons&&(r=this.props.widgetDefinition.buttons.slice(0,3).reverse().map(e=>{let t="secondary";switch(e.kind){case l.ModalButtonKind.Primary:t="primary";break;case l.ModalButtonKind.Secondary:t="primary_outline";break;case l.ModalButtonKind.Danger:t="danger"}const n=this.state.disabledButtonIds.includes(e.id);return i.createElement(c.a,{key:e.id,kind:t,onClick:()=>{this.state.messaging.notifyModalWidgetButtonClicked(e.id)},disabled:n},e.label)})),i.createElement(a.a,{title:this.props.widgetDefinition.name||Object(s.a)("Modal Widget"),className:"mx_ModalWidgetDialog",contentId:"mx_Dialog_content",onFinished:this.props.onFinished},i.createElement("div",{className:"mx_ModalWidgetDialog_warning"},i.createElement("img",{src:n(1323),height:"16",width:"16",alt:""}),Object(s.a)("Data on this screen is shared with %(widgetDomain)s",{widgetDomain:t.hostname})),i.createElement("div",null,i.createElement("iframe",{ref:this.appFrame,sandbox:"allow-forms allow-scripts allow-same-origin",src:o,onLoad:this.onLoad})),i.createElement("div",{className:"mx_ModalWidgetDialog_buttons"},r))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(82),r=n.n(o);class i{constructor(e,t,n){this.resizer=t,this.sizer=n,r()(this,"domNode",void 0),r()(this,"id",void 0),r()(this,"reverse",void 0),this.reverse=t.isReverseResizeHandle(e),this.domNode=this.reverse?e.nextElementSibling:e.previousElementSibling,this.id=e.getAttribute("data-id")}copyWith(e,t,n){return new(0,this.constructor)(e,t,n)}advance(e){let t=this.reverse?this.domNode.previousElementSibling:this.domNode.nextElementSibling;const n=e!==this.reverse;do{t=n?t.nextElementSibling:t.previousElementSibling}while(t&&!this.resizer.isResizeHandle(t));if(t){const e=this.copyWith(t,this.resizer,this.sizer);return e.reverse=this.reverse,e}}next(){return this.advance(!0)}previous(){return this.advance(!1)}size(){return this.sizer.getItemSize(this.domNode)}offset(){return this.sizer.getItemOffset(this.domNode)}start(){this.sizer.start(this.domNode)}finish(){this.sizer.finish(this.domNode)}getSize(){return this.sizer.getDesiredItemSize(this.domNode)}setRawSize(e){this.sizer.setItemSize(this.domNode,e)}setSize(e){this.setRawSize(Math.round(e)+"px");const t=this.resizer.config.onResized;t&&t(e,this.id,this.domNode)}clearSize(){this.sizer.clearItemSize(this.domNode);const e=this.resizer.config.onResized;e&&e(null,this.id,this.domNode)}first(){const e=Array.from(this.domNode.parentElement.children).find(e=>this.resizer.isResizeHandle(e));if(e)return this.copyWith(e,this.resizer,this.sizer)}last(){const e=Array.from(this.domNode.parentElement.children).reverse().find(e=>this.resizer.isResizeHandle(e));if(e)return this.copyWith(e,this.resizer,this.sizer)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{constructor(e,t,n){this.container=e,this.vertical=t,this.reverse=n}getItemOffset(e){const t=(this.vertical?e.offsetTop:e.offsetLeft)-this.getOffset();return this.reverse?this.getTotalSize()-(t+this.getItemSize(e)):t}getItemSize(e){return this.vertical?e.offsetHeight:e.offsetWidth}getTotalSize(){return this.vertical?this.container.offsetHeight:this.container.offsetWidth}getOffset(){return this.vertical?this.container.offsetTop:this.container.offsetLeft}getPageOffset(){let e=this.container,t=0;for(;e;){t+=this.vertical?e.offsetTop:e.offsetLeft,e=e.offsetParent}return t}getDesiredItemSize(e){return this.vertical?e.style.height:e.style.width}setItemSize(e,t){this.vertical?e.style.height=t:e.style.width=t}clearItemSize(e){this.vertical?e.style.height=null:e.style.width=null}start(e){}finish(e){}offsetFromEvent(e){const t=this.vertical?e.pageY:e.pageX;return this.reverse?this.getPageOffset()+this.getTotalSize()-t:t-this.getPageOffset()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var o=n(82),r=n.n(o),i=n(90),a=n.n(i),s=n(81),c=n.n(s),l=n(88);let u;!function(e){e[e.Local=0]="Local",e[e.Remote=1]="Remote"}(u||(u={}));class d extends c.a.Component{constructor(...e){super(...e),r()(this,"vid",Object(s.createRef)()),r()(this,"onResize",e=>{this.props.onResize&&this.props.onResize(e)})}componentDidMount(){this.vid.current.addEventListener("resize",this.onResize),this.setVideoElement()}componentDidUpdate(e){this.props.call!==e.call&&this.setVideoElement()}componentWillUnmount(){this.vid.current.removeEventListener("resize",this.onResize)}setVideoElement(){this.props.type===u.Local?this.props.call.setLocalVideoElement(this.vid.current):this.props.call.setRemoteVideoElement(this.vid.current)}render(){const e={mx_VideoFeed:!0,mx_VideoFeed_local:this.props.type===u.Local,mx_VideoFeed_remote:this.props.type===u.Remote,mx_VideoFeed_mirror:this.props.type===u.Local&&l.a.getValue("VideoView.flipVideoHorizontally")};let t={};return this.props.maxHeight&&(t={maxHeight:this.props.maxHeight}),c.a.createElement("video",{className:a()(e),ref:this.vid,style:t})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(83),u=n(100),d=n(147),h=n(383),p=n(89);class m extends a.a.Component{constructor(e){super(e),r()(this,"onHoldClick",()=>{this.props.call.setRemoteOnHold(!0),this.props.onFinished()}),r()(this,"onUnholdClick",()=>{d.b.sharedInstance().setActiveCallRoomId(this.props.call.roomId),this.props.onFinished()}),r()(this,"onTransferClick",()=>{p.a.createTrackedDialog("Transfer Call","",h.d,{kind:h.a,call:this.props.call},null,!1,!0),this.props.onFinished()})}render(){const e=this.props.call.isRemoteOnHold()?Object(l.a)("Resume"):Object(l.a)("Hold"),t=this.props.call.isRemoteOnHold()?this.onUnholdClick:this.onHoldClick;let n;return this.props.call.opponentCanBeTransferred()&&(n=a.a.createElement(u.f,{className:"mx_CallContextMenu_item",onClick:this.onTransferClick},Object(l.a)("Transfer"))),a.a.createElement(u.b,this.props,a.a.createElement(u.f,{className:"mx_CallContextMenu_item",onClick:t},e),n)}}r()(m,"propTypes",{user:c.a.object})},function(e,t){function n(e){var t=String.fromCharCode.apply(null,e),n=window.btoa(t),o=e.length,r=4*Math.floor((o+2)/3)+(o+2)%3-2;return n.slice(0,r)}try{t.encryptAttachment=function(e){var t,o,r,i,a;return a=new Uint8Array(16),window.crypto.getRandomValues(a.subarray(0,8)),window.crypto.subtle.generateKey({name:"AES-CTR",length:256},!0,["encrypt","decrypt"]).then((function(e){return t=e,window.crypto.subtle.exportKey("jwk",t)})).then((function(n){return o=n,window.crypto.subtle.encrypt({name:"AES-CTR",counter:a,length:64},t,e)})).then((function(e){return r=e,window.crypto.subtle.digest("SHA-256",r)})).then((function(e){return i=e,{data:r,info:{v:"v2",key:o,iv:n(a),hashes:{sha256:n(new Uint8Array(i))}}}}))},t.decryptAttachment=function(e,t){if(void 0===t||void 0===t.key||void 0===t.iv||void 0===t.hashes||void 0===t.hashes.sha256)throw new Error("Invalid info. Missing info.key, info.iv or info.hashes.sha256 key");var o,r=function(e){for(var t=e+"===".slice(0,(4-e.length%4)%4),n=window.atob(t),o=new Uint8Array(n.length),r=0;r<n.length;r++)o[r]=n.charCodeAt(r);return o}(t.iv),i=t.hashes.sha256;return window.crypto.subtle.importKey("jwk",t.key,{name:"AES-CTR"},!1,["encrypt","decrypt"]).then((function(t){return o=t,window.crypto.subtle.digest("SHA-256",e)})).then((function(a){if(n(new Uint8Array(a))!=i)throw new Error("Mismatched SHA-256 digest");var s;return s="v1"==t.v||"v2"==t.v?64:128,window.crypto.subtle.decrypt({name:"AES-CTR",counter:r,length:s},o,e)}))}}catch(e){}},function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return _})),n.d(t,"b",(function(){return b}));var o=n(86),r=n(87),i=n(89),a=n(85),s=n(83),c=n(118),l=n(155),u=n(170),d=n(317),h=n(93);async function p(){const e=o.a.get();if(!e.isCryptoEnabled())return!1;return!!e.getCrossSigningId("user_signing")||(await Object(u.b)(),!1)}function m(e){const{device:t,user:r,onFinished:i}=e,c=a.getComponent("dialogs.BaseDialog"),l=a.getComponent("elements.AccessibleButton");let u,d;return o.a.get().getUserId()===r.userId?(d=Object(s.a)("You signed in to a new session without verifying it:"),u=Object(s.a)("Verify your other session using one of the options below.")):(d=Object(s.a)("%(name)s (%(userId)s) signed in to a new session without verifying it:",{name:r.displayName,userId:r.userId}),u=Object(s.a)("Ask this user to verify their session, or manually verify it below.")),React.createElement(c,{onFinished:i,headerImage:n(369),title:Object(s.a)("Not Trusted")},React.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},React.createElement("p",null,d),React.createElement("p",null,t.getDisplayName()," (",t.deviceId,")"),React.createElement("p",null,u)),React.createElement("div",{className:"mx_Dialog_buttons"},React.createElement(l,{element:"button",kind:"secondary",onClick:()=>i("legacy")},Object(s.a)("Manually Verify by Text")),React.createElement(l,{element:"button",kind:"secondary",onClick:()=>i("sas")},Object(s.a)("Interactively verify by Emoji")),React.createElement(l,{kind:"primary",onClick:()=>i()},Object(s.a)("Done"))))}async function g(e,t){const n=o.a.get();n.getCryptoTrustCrossSignedDevices()&&!await p()||i.a.createTrackedDialog("Verification warning","unverified session",m,{user:e,device:t,onFinished:async o=>{if("sas"===o){const o=n.legacyDeviceVerification(e.userId,t.deviceId,d.d.SAS);r.a.dispatch({action:h.a.SetRightPanelPhase,phase:c.b.EncryptionPanel,refireParams:{member:e,verificationRequestPromise:o}})}else if("legacy"===o){const n=a.getComponent("dialogs.ManualDeviceKeyVerificationDialog");i.a.createTrackedDialog("Legacy verify session","legacy verify session",n,{userId:e.userId,device:t})}}})}async function f(e){const t=o.a.get();if(t.getCryptoTrustCrossSignedDevices()&&!await p())return;const n=t.requestVerification(e.userId);r.a.dispatch({action:h.a.SetRightPanelPhase,phase:c.b.EncryptionPanel,refireParams:{member:e,verificationRequestPromise:n}})}async function _(e){if(!await p())return;const t=b(e);r.a.dispatch({action:h.a.SetRightPanelPhase,phase:c.b.EncryptionPanel,refireParams:{member:e,verificationRequest:t}})}function b(e){const t=o.a.get(),n=Object(l.d)(t,e.userId);if(n)return t.findVerificationRequestDMInProgress(n.roomId)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(81),r=n(150);function i(e,t){const[n,i]=Object(o.useState)(t?e.isRoomEncrypted(t.roomId):void 0),a=Object(o.useCallback)(n=>{t&&"m.room.encryption"===n.getType()&&i(e.isRoomEncrypted(t.roomId))},[e,t]);return Object(r.a)(t?t.currentState:void 0,"RoomState.events",a),n}},function(e,t,n){var o=n(506),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case o.L:return r[4*(e-1)+0];case o.M:return r[4*(e-1)+1];case o.Q:return r[4*(e-1)+2];case o.H:return r[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case o.L:return i[4*(e-1)+0];case o.M:return i[4*(e-1)+1];case o.Q:return i[4*(e-1)+2];case o.H:return i[4*(e-1)+3];default:return}}},function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},function(e,t){var n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",o="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp("[0-9]+","g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var r=new RegExp("^"+n+"$"),i=new RegExp("^[0-9]+$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return r.test(e)},t.testNumeric=function(e){return i.test(e)},t.testAlphanumeric=function(e){return a.test(e)}},function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,o=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:o,scale:o?4:r,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var o=t.getScale(e,n);return Math.floor((e+2*n.margin)*o)},t.qrToImageData=function(e,n,o){for(var r=n.modules.size,i=n.modules.data,a=t.getScale(r,o),s=Math.floor((r+2*o.margin)*a),c=o.margin*a,l=[o.color.light,o.color.dark],u=0;u<s;u++)for(var d=0;d<s;d++){var h=4*(u*s+d),p=o.color.light;if(u>=c&&d>=c&&u<s-c&&d<s-c)p=l[i[Math.floor((u-c)/a)*r+Math.floor((d-c)/a)]?1:0];e[h++]=p.r,e[h++]=p.g,e[h++]=p.b,e[h]=p.a}}},function(e,t,n){"use strict";var o=n(81),r=n.n(o),i=n(97),a=n(216),s=n(122),c=n(305),l=n(83),u=n(521),d=n(118),h=n(87),p=n(93),m=n(169),g=n(100),f=n(372);t.a=({room:e,widgetId:t,onClose:n})=>{const _=Object(o.useContext)(i.a),b=Object(u.b)(e).find(e=>e.id===t),v=b&&m.b.instance.isPinned(e.roomId,b.id),[E,y,S,T]=Object(g.o)();if(Object(o.useEffect)(()=>{b&&!v||h.a.dispatch({action:p.a.SetRightPanelPhase,phase:d.b.RoomSummary})},[b,v]),!b||v)return null;let w;if(E){const e=y.current.getBoundingClientRect();w=r.a.createElement(f.a,{chevronFace:g.a.None,right:window.innerWidth-e.right-12,top:e.bottom+12,onFinished:T,app:b})}const C=r.a.createElement(r.a.Fragment,null,r.a.createElement("h2",null,s.a.getWidgetName(b)),r.a.createElement(g.c,{kind:"secondary",className:"mx_WidgetCard_optionsButton",inputRef:y,onClick:S,isExpanded:E,label:Object(l.a)("Options")}),w);return r.a.createElement(a.b,{header:C,className:"mx_WidgetCard",onClose:n,previousPhase:d.b.RoomSummary,withoutScrollContainer:!0},r.a.createElement(c.a,{app:b,fullWidth:!0,show:!0,showMenubar:!1,room:e,userId:_.getUserId(),creatorUserId:b.creatorUserId,widgetPageTitle:s.a.getWidgetDataTitle(b),waitForIframeLoad:b.waitForIframeLoad}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(98),u=n(250),d=n(114);let h;h=function(){};class p extends a.a.Component{constructor(e){super(e),r()(this,"onScroll",e=>{this.props.resizeNotifier&&this.props.resizeNotifier.isResizing||(h("onScroll",this._getScrollNode().scrollTop),this._scrollTimeout.restart(),this._saveScrollState(),this.updatePreventShrinking(),this.props.onScroll(e),this.checkFillState())}),r()(this,"onResize",()=>{h("onResize"),this.checkScroll(),this.preventShrinkingState&&this.preventShrinking()}),r()(this,"checkScroll",()=>{this.unmounted||(this._restoreSavedScrollState(),this.checkFillState())}),r()(this,"isAtBottom",()=>{const e=this._getScrollNode();return Math.abs(e.scrollHeight-(e.scrollTop+e.clientHeight))<=1}),r()(this,"checkFillState",async(e=0)=>{if(this.unmounted)return;const t=0===e,n=this._getScrollNode();if(t){if(this._isFilling)return h("_isFilling: not entering while request is ongoing, marking for a subsequent request"),void(this._fillRequestWhileRunning=!0);h("_isFilling: setting"),this._isFilling=!0}const o=this._itemlist.current,r=o&&o.firstElementChild,i=r&&r.offsetTop,a=[];if((!r||n.scrollTop-i<n.clientHeight)&&a.push(this._maybeFill(e,!0)),n.scrollHeight-n.scrollTop<2*n.clientHeight&&a.push(this._maybeFill(e,!1)),a.length)try{await Promise.all(a)}catch(e){console.error(e)}t&&(h("_isFilling: clearing"),this._isFilling=!1),this._fillRequestWhileRunning&&(this._fillRequestWhileRunning=!1,this.checkFillState())}),r()(this,"getScrollState",()=>this.scrollState),r()(this,"resetScrollState",()=>{this.scrollState={stuckAtBottom:this.props.startAtBottom},this._bottomGrowth=0,this._pages=0,this._scrollTimeout=new u.a(100),this._heightUpdateInProgress=!1}),r()(this,"scrollToTop",()=>{this._getScrollNode().scrollTop=0,this._saveScrollState()}),r()(this,"scrollToBottom",()=>{const e=this._getScrollNode();e.scrollTop=e.scrollHeight,this._saveScrollState()}),r()(this,"scrollRelative",e=>{const t=this._getScrollNode(),n=e*t.clientHeight*.5;t.scrollBy(0,n),this._saveScrollState()}),r()(this,"handleScrollKey",e=>{switch(e.key){case l.a.PAGE_UP:e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||this.scrollRelative(-1);break;case l.a.PAGE_DOWN:e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||this.scrollRelative(1);break;case l.a.HOME:!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||this.scrollToTop();break;case l.a.END:!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||this.scrollToBottom()}}),r()(this,"scrollToToken",(e,t,n)=>{t=t||0,n=n||0,this.scrollState={stuckAtBottom:!1,trackedScrollToken:e};const o=this._getTrackedNode(),r=this._getScrollNode();o&&(h("scrollToken: setting scrollTop",{offsetBase:n,pixelOffset:t,offsetTop:o.offsetTop}),r.scrollTop=o.offsetTop-r.clientHeight*n+t,this._saveScrollState())}),r()(this,"_collectScroll",e=>{this._divScroll=e}),r()(this,"preventShrinking",()=>{const e=this._itemlist.current,t=e&&e.children;if(!e)return;let n;for(let e=t.length-1;e>=0;e--){const o=t[e];if(o.dataset.scrollTokens){n=o;break}}if(!n)return;this.clearPreventShrinking();const o=e.clientHeight-(n.offsetTop+n.clientHeight);this.preventShrinkingState={offsetFromBottom:o,offsetNode:n},h("prevent shrinking, last tile ",o,"px from bottom")}),r()(this,"clearPreventShrinking",()=>{const e=this._itemlist.current,t=e&&e.parentElement;t&&(t.style.paddingBottom=null),this.preventShrinkingState=null,h("prevent shrinking cleared")}),r()(this,"updatePreventShrinking",()=>{if(this.preventShrinkingState){const e=this._getScrollNode(),t=this.scrollState,n=this._itemlist.current,{offsetNode:o,offsetFromBottom:r}=this.preventShrinkingState,i=n.parentElement;let a=!o.parentElement;if(!a&&!t.stuckAtBottom){a=e.scrollHeight-(e.scrollTop+e.clientHeight)>=200}if(!a){const e=r-(n.clientHeight-(o.offsetTop+o.clientHeight));e>0?(i.style.paddingBottom=e+"px",h("update prevent shrinking ",e,"px from bottom")):e<0&&(a=!0)}a&&this.clearPreventShrinking()}}),this._pendingFillRequests={b:null,f:null},this.props.resizeNotifier&&this.props.resizeNotifier.on("middlePanelResizedNoisy",this.onResize),this.resetScrollState(),this._itemlist=Object(i.createRef)()}componentDidMount(){this.checkScroll()}componentDidUpdate(){this.checkScroll(),this.updatePreventShrinking()}componentWillUnmount(){this.unmounted=!0,this.props.resizeNotifier&&this.props.resizeNotifier.removeListener("middlePanelResizedNoisy",this.onResize)}_getExcessHeight(e){const t=this._getScrollNode(),n=this._getMessagesHeight(),o=n-this._getListHeight(),r=t.scrollTop+o;return e?r-t.clientHeight-6e3:n-(r+2*t.clientHeight)-6e3}_checkUnfillState(e){let t=this._getExcessHeight(e);if(t<=0)return;const n=t,o=this._itemlist.current.children;let r,i=null;for(let n=0;n<o.length&&(r=o[e?n:o.length-1-n],t-=r.clientHeight,!(r.clientHeight>t));n++)r.dataset.scrollTokens&&(i=r.dataset.scrollTokens.split(",")[0]);i&&(this._unfillDebouncer&&clearTimeout(this._unfillDebouncer),this._unfillDebouncer=setTimeout(()=>{this._unfillDebouncer=null,h("unfilling now",e,n),this.props.onUnfillRequest(e,i)},200))}_maybeFill(e,t){const n=t?"b":"f";if(!this._pendingFillRequests[n])return h("starting "+n+" fill"),this._pendingFillRequests[n]=!0,new Promise(e=>setTimeout(e,1)).then(()=>this.props.onFillRequest(t)).finally(()=>{this._pendingFillRequests[n]=!1}).then(o=>{if(!this.unmounted)return this._checkUnfillState(!t),h(n+" fill complete; hasMoreResults:"+o),o?this.checkFillState(e+1):void 0});h("Already a "+n+" fill in progress - not starting another")}_saveScrollState(){if(this.props.stickyBottom&&this.isAtBottom())return this.scrollState={stuckAtBottom:!0},void h("saved stuckAtBottom state");const e=this._getScrollNode(),t=e.scrollHeight-(e.scrollTop+e.clientHeight),n=this._itemlist.current.children;let o=null;for(let e=n.length-1;e>=0&&!(n[e].dataset.scrollTokens&&(o=n[e],this._topFromBottom(o)>t));--e);if(!o)return void h("unable to save scroll state: found no children in the viewport");const r=o.dataset.scrollTokens.split(",")[0];h("saving anchored scroll state to message",o&&o.innerText,r);const i=this._topFromBottom(o);this.scrollState={stuckAtBottom:!1,trackedNode:o,trackedScrollToken:r,bottomOffset:i,pixelOffset:i-t}}async _restoreSavedScrollState(){const e=this.scrollState;if(e.stuckAtBottom){const e=this._getScrollNode();e.scrollTop!==e.scrollHeight&&(e.scrollTop=e.scrollHeight)}else if(e.trackedScrollToken){const t=this._itemlist.current,n=this._getTrackedNode();if(n){const o=this._topFromBottom(n),r=o-e.bottomOffset;this._bottomGrowth+=r,e.bottomOffset=o;const i=this._getListHeight()+"px";t.style.height!==i&&(t.style.height=i),h("balancing height because messages below viewport grew by",r)}}if(this._heightUpdateInProgress)h("not updating height because request already in progress");else{this._heightUpdateInProgress=!0;try{await this._updateHeight()}finally{this._heightUpdateInProgress=!1}}}async _updateHeight(){if(this._scrollTimeout.isRunning()?(h("updateHeight waiting for scrolling to end ... "),await this._scrollTimeout.finished()):h("updateHeight getting straight to business, no scrolling going on."),this.unmounted)return;const e=this._getScrollNode(),t=this._itemlist.current,n=this._getMessagesHeight(),o=e.clientHeight,r=Math.max(o,n);this._pages=Math.ceil(r/400),this._bottomGrowth=0;const i=this._getListHeight()+"px",a=this.scrollState;if(a.stuckAtBottom)t.style.height!==i&&(t.style.height=i),e.scrollTop!==e.scrollHeight&&(e.scrollTop=e.scrollHeight),h("updateHeight to",i);else if(a.trackedScrollToken){const n=this._getTrackedNode();if(n){const o=n.offsetTop;t.style.height!==i&&(t.style.height=i);const r=n.offsetTop-o;e.scrollBy(0,r),h("updateHeight to",{newHeight:i,topDiff:r})}}}_getTrackedNode(){const e=this.scrollState,t=e.trackedNode;if(!t||!t.parentElement){let t;const n=this._itemlist.current.children,o=e.trackedScrollToken;for(let e=n.length-1;e>=0;--e){const r=n[e];if(r.dataset.scrollTokens&&-1!==r.dataset.scrollTokens.split(",").indexOf(o)){t=r;break}}t&&h("had to find tracked node again for "+e.trackedScrollToken),e.trackedNode=t}if(e.trackedNode)return e.trackedNode;h("No node with ; '"+e.trackedScrollToken+"'")}_getListHeight(){return this._bottomGrowth+400*this._pages}_getMessagesHeight(){const e=this._itemlist.current,t=e.lastElementChild;return(t?t.offsetTop+t.clientHeight:0)-(e.firstElementChild?e.firstElementChild.offsetTop:0)+36}_topFromBottom(e){return this._itemlist.current.clientHeight-e.offsetTop}_getScrollNode(){if(this.unmounted)throw new Error("ScrollPanel._getScrollNode called when unmounted");if(!this._divScroll)throw new Error("ScrollPanel._getScrollNode called before AutoHideScrollbar ref collected");return this._divScroll}render(){return a.a.createElement(d.a,{wrappedRef:this._collectScroll,onScroll:this.onScroll,className:"mx_ScrollPanel "+this.props.className,style:this.props.style},this.props.fixedChildren,a.a.createElement("div",{className:"mx_RoomView_messageListWrapper"},a.a.createElement("ol",{ref:this._itemlist,className:"mx_RoomView_MessageList","aria-live":"polite",role:"list"},this.props.children)))}}r()(p,"propTypes",{stickyBottom:c.a.bool,startAtBottom:c.a.bool,onFillRequest:c.a.func,onUnfillRequest:c.a.func,onScroll:c.a.func,className:c.a.string,style:c.a.object,resizeNotifier:c.a.object,fixedChildren:c.a.node}),r()(p,"defaultProps",{stickyBottom:!0,startAtBottom:!0,onFillRequest:function(e){return Promise.resolve(!1)},onUnfillRequest:function(e,t){},onScroll:function(){}})},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(88),a=n(81),s=n.n(a),c=n(135),l=n.n(c),u=n(84),d=n.n(u),h=n(96),p=n(83),m=n(86),g=n(365),f=n(483),_=n(89),b=n(87),v=n(85),E=n(98),y=n(250),S=n(276),T=n(763),w=n(206),C=n(101);let x=function(){};class O extends s.a.Component{constructor(e){super(e),r()(this,"onMessageListUnfillRequest",(e,t)=>{const n=e?h.c.BACKWARDS:h.c.FORWARDS;x("TimelinePanel: unpaginating events in direction",n);const o=t,r=this.state.events.findIndex(e=>e.getId()===o),i=e?r+1:this.state.events.length-r;if(i>0){x("TimelinePanel: Unpaginating",i,"in direction",n),this._timelineWindow.unpaginate(i,e);const t=e?"canBackPaginate":"canForwardPaginate",{events:o,liveEvents:r,firstVisibleEventIndex:a}=this._getEvents();this.setState({[t]:!0,events:o,liveEvents:r,firstVisibleEventIndex:a})}}),r()(this,"onPaginationRequest",(e,t,n)=>this.props.onPaginationRequest?this.props.onPaginationRequest(e,t,n):e.paginate(t,n)),r()(this,"onMessageListFillRequest",e=>{if(!this._shouldPaginate())return Promise.resolve(!1);const t=e?h.c.BACKWARDS:h.c.FORWARDS,n=e?"canBackPaginate":"canForwardPaginate",o=e?"backPaginating":"forwardPaginating";return this.state[n]?this._timelineWindow.canPaginate(t)?e&&0!==this.state.firstVisibleEventIndex?(x("TimelinePanel: won't",t,"paginate past first visible event"),Promise.resolve(!1)):(x("TimelinePanel: Initiating paginate; backwards:"+e),this.setState({[o]:!0}),this.onPaginationRequest(this._timelineWindow,t,20).then(t=>{if(this.unmounted)return;x("TimelinePanel: paginate complete backwards:"+e+"; success:"+t);const{events:r,liveEvents:i,firstVisibleEventIndex:a}=this._getEvents(),s={[o]:!1,[n]:t,events:r,liveEvents:i,firstVisibleEventIndex:a},c=e?h.c.FORWARDS:h.c.BACKWARDS,l=e?"canForwardPaginate":"canBackPaginate";return!this.state[l]&&this._timelineWindow.canPaginate(c)&&(x("TimelinePanel: can now",c,"paginate again"),s[l]=!0),new Promise(n=>{this.setState(s,()=>{n(t&&(!e||0===a))})})})):(x("TimelinePanel: can't",t,"paginate any further"),this.setState({[n]:!1}),Promise.resolve(!1)):(x("TimelinePanel: have given up",t,"paginating this timeline"),Promise.resolve(!1))}),r()(this,"onMessageListScroll",e=>{if(this.props.onScroll&&this.props.onScroll(e),this.props.manageReadMarkers){const e=this.getReadMarkerPosition();e<0&&this.setState({readMarkerVisible:!0});const t=this._readMarkerTimeout(e);this._readMarkerActivityTimer.changeTimeout(t)}}),r()(this,"onAction",e=>{if("ignore_state_changed"===e.action&&this.forceUpdate(),"edit_event"===e.action){const t=e.event?new T.a(e.event):null;this.setState({editState:t},()=>{e.event&&this._messagePanel.current&&this._messagePanel.current.scrollToEventIfNeeded(e.event.getId())})}}),r()(this,"onRoomTimeline",(e,t,n,o,r)=>{r.timeline.getTimelineSet()===this.props.timelineSet&&!n&&r&&r.liveEvent&&this._messagePanel.current&&(this._messagePanel.current.getScrollState().stuckAtBottom?this._timelineWindow.paginate(h.c.FORWARDS,1,!1).then(()=>{if(this.unmounted)return;const{events:t,liveEvents:n,firstVisibleEventIndex:o}=this._getEvents(),r=n[n.length-1],i={events:t,liveEvents:n,firstVisibleEventIndex:o};let a;if(this.props.manageReadMarkers){const t=m.a.get().credentials.userId,n=e.sender?e.sender.userId:null;a=!1,n==t||f.a.sharedInstance().userActiveRecently()?r&&0===this.getReadMarkerPosition()&&(this._setReadMarker(r.getId(),r.getTs(),!0),i.readMarkerVisible=!1,i.readMarkerEventId=r.getId(),a=!0):i.readMarkerVisible=!0}this.setState(i,()=>{this._messagePanel.current.updateTimelineMinHeight(),a&&this.props.onReadMarkerUpdated()})}):this.setState({canForwardPaginate:!0}))}),r()(this,"onRoomTimelineReset",(e,t)=>{t===this.props.timelineSet&&this._messagePanel.current&&this._messagePanel.current.isAtBottom()&&this._loadTimeline()}),r()(this,"canResetTimeline",()=>this._messagePanel.current&&this._messagePanel.current.isAtBottom()),r()(this,"onRoomRedaction",(e,t)=>{this.unmounted||t===this.props.timelineSet.room&&this.forceUpdate()}),r()(this,"onEventReplaced",(e,t)=>{this.unmounted||t===this.props.timelineSet.room&&this.forceUpdate()}),r()(this,"onRoomReceipt",(e,t)=>{this.unmounted||t===this.props.timelineSet.room&&this.forceUpdate()}),r()(this,"onLocalEchoUpdated",(e,t,n)=>{this.unmounted||t===this.props.timelineSet.room&&this._reloadEvents()}),r()(this,"onAccountData",(e,t)=>{this.unmounted||t===this.props.timelineSet.room&&"m.fully_read"===e.getType()&&this.setState({readMarkerEventId:e.getContent().event_id},this.props.onReadMarkerUpdated)}),r()(this,"onEventDecrypted",e=>{this.props.timelineSet.room&&e.getRoomId()===this.props.timelineSet.room.roomId&&this.forceUpdate()}),r()(this,"onSync",(e,t,n)=>{this.setState({clientSyncState:e})}),r()(this,"sendReadReceipt",()=>{if(i.a.getValue("lowBandwidth"))return;if(!this._messagePanel.current)return;if(!this.props.manageReadReceipts)return;const e=m.a.get();if(!e||e.isGuest())return;let t=!0;const n=this._getCurrentReadReceipt(!0),o=this._indexForEventId(n);n&&null===o&&this._timelineWindow.canPaginate(h.c.FORWARDS)&&(t=!1);const r=this._getLastDisplayedEventIndex({ignoreOwn:!0});null===r&&(t=!1);let a=this.state.events[r];t=t&&r>o&&this.lastRRSentEventId!=a.getId();const s=this.lastRMSentEventId!=this.state.readMarkerEventId;(t||s)&&(t?this.lastRRSentEventId=a.getId():a=null,this.lastRMSentEventId=this.state.readMarkerEventId,x("TimelinePanel: Sending Read Markers for ",this.props.timelineSet.room.roomId,"rm",this.state.readMarkerEventId,a?"rr "+a.getId():""),m.a.get().setRoomReadMarkers(this.props.timelineSet.room.roomId,this.state.readMarkerEventId,a,{}).catch(e=>{if("M_UNRECOGNIZED"===e.errcode&&a)return m.a.get().sendReadReceipt(a,{}).catch(e=>{console.error(e),this.lastRRSentEventId=void 0});console.error(e),this.lastRRSentEventId=void 0,this.lastRMSentEventId=void 0}),this.isAtEndOfLiveTimeline()&&(this.props.timelineSet.room.setUnreadNotificationCount("total",0),this.props.timelineSet.room.setUnreadNotificationCount("highlight",0),b.a.dispatch({action:"on_room_read",roomId:this.props.timelineSet.room.roomId})))}),r()(this,"updateReadMarker",()=>{if(!this.props.manageReadMarkers)return;if(1===this.getReadMarkerPosition())return;const e=this._getLastDisplayedEventIndex({allowPartial:!0});if(null===e)return;const t=this.state.events[e];this._setReadMarker(t.getId(),t.getTs()),this.state.readMarkerVisible&&this.setState({readMarkerVisible:!1}),this.sendReadReceipt()}),r()(this,"jumpToLiveTimeline",()=>{this._timelineWindow.canPaginate(h.c.FORWARDS)?this._loadTimeline():this._messagePanel.current&&this._messagePanel.current.scrollToBottom()}),r()(this,"jumpToReadMarker",()=>{if(!this.props.manageReadMarkers)return;if(!this._messagePanel.current)return;if(!this.state.readMarkerEventId)return;null===this._messagePanel.current.getReadMarkerPosition()?this._loadTimeline(this.state.readMarkerEventId,0,1/3):this._messagePanel.current.scrollToEvent(this.state.readMarkerEventId,0,1/3)}),r()(this,"forgetReadMarker",()=>{if(!this.props.manageReadMarkers)return;const e=this._getCurrentReadReceipt(),t=this.props.timelineSet.getTimelineForEvent(e);let n;if(t){const o=t.getEvents().find(t=>t.getId()==e);o&&(n=o.getTs())}this._setReadMarker(e,n)}),r()(this,"isAtEndOfLiveTimeline",()=>this._messagePanel.current&&this._messagePanel.current.isAtBottom()&&this._timelineWindow&&!this._timelineWindow.canPaginate(h.c.FORWARDS)),r()(this,"getScrollState",()=>this._messagePanel.current?this._messagePanel.current.getScrollState():null),r()(this,"getReadMarkerPosition",()=>{if(!this.props.manageReadMarkers)return null;if(!this._messagePanel.current)return null;const e=this._messagePanel.current.getReadMarkerPosition();if(null!==e)return e;const t=O.roomReadMarkerTsMap[this.props.timelineSet.room.roomId];return t&&this.state.events.length>0?t<this.state.events[0].getTs()?-1:1:null}),r()(this,"canJumpToReadMarker",()=>{const e=this.getReadMarkerPosition();return null!==this.state.readMarkerEventId&&(e<0||null===e)}),r()(this,"handleScrollKey",e=>{this._messagePanel.current&&(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||e.key!==E.a.END?this._messagePanel.current.handleScrollKey(e):this.jumpToLiveTimeline())}),r()(this,"getRelationsForEvent",(...e)=>this.props.timelineSet.getRelationsForEvent(...e)),x("TimelinePanel: mounting"),this.lastRRSentEventId=void 0,this.lastRMSentEventId=void 0,this._messagePanel=Object(a.createRef)();let t=null;if(this.props.manageReadMarkers){const e=this.props.timelineSet.room.getAccountData("m.fully_read");t=e?e.getContent().event_id:this._getCurrentReadReceipt()}this.state={events:[],liveEvents:[],timelineLoading:!0,firstVisibleEventIndex:0,canBackPaginate:!1,canForwardPaginate:!1,readMarkerVisible:!0,readMarkerEventId:t,backPaginating:!1,forwardPaginating:!1,clientSyncState:m.a.get().getSyncState(),isTwelveHour:i.a.getValue("showTwelveHourTimestamps"),alwaysShowTimestamps:i.a.getValue("alwaysShowTimestamps"),readMarkerInViewThresholdMs:i.a.getValue("readMarkerInViewThresholdMs"),readMarkerOutOfViewThresholdMs:i.a.getValue("readMarkerOutOfViewThresholdMs")},this.dispatcherRef=b.a.register(this.onAction),m.a.get().on("Room.timeline",this.onRoomTimeline),m.a.get().on("Room.timelineReset",this.onRoomTimelineReset),m.a.get().on("Room.redaction",this.onRoomRedaction),m.a.get().on("Room.redactionCancelled",this.onRoomRedaction),m.a.get().on("Room.receipt",this.onRoomReceipt),m.a.get().on("Room.localEchoUpdated",this.onLocalEchoUpdated),m.a.get().on("Room.accountData",this.onAccountData),m.a.get().on("Event.decrypted",this.onEventDecrypted),m.a.get().on("Event.replaced",this.onEventReplaced),m.a.get().on("sync",this.onSync)}UNSAFE_componentWillMount(){this.props.manageReadReceipts&&this.updateReadReceiptOnUserActivity(),this.props.manageReadMarkers&&this.updateReadMarkerOnUserActivity(),this._initTimeline(this.props)}UNSAFE_componentWillReceiveProps(e){if(e.timelineSet!==this.props.timelineSet&&console.warn("Replacing timelineSet on a TimelinePanel - confusion may ensue"),e.eventId!=this.props.eventId)return console.log("TimelinePanel switching to eventId "+e.eventId+" (was "+this.props.eventId+")"),this._initTimeline(e)}shouldComponentUpdate(e,t){return!g.a(this.props,e)||!g.a(this.state,t)}componentWillUnmount(){this.unmounted=!0,this._readReceiptActivityTimer&&(this._readReceiptActivityTimer.abort(),this._readReceiptActivityTimer=null),this._readMarkerActivityTimer&&(this._readMarkerActivityTimer.abort(),this._readMarkerActivityTimer=null),b.a.unregister(this.dispatcherRef);const e=m.a.get();e&&(e.removeListener("Room.timeline",this.onRoomTimeline),e.removeListener("Room.timelineReset",this.onRoomTimelineReset),e.removeListener("Room.redaction",this.onRoomRedaction),e.removeListener("Room.redactionCancelled",this.onRoomRedaction),e.removeListener("Room.receipt",this.onRoomReceipt),e.removeListener("Room.localEchoUpdated",this.onLocalEchoUpdated),e.removeListener("Room.accountData",this.onAccountData),e.removeListener("Event.decrypted",this.onEventDecrypted),e.removeListener("Event.replaced",this.onEventReplaced),e.removeListener("sync",this.onSync))}_readMarkerTimeout(e){return 0===e?this.state.readMarkerInViewThresholdMs:this.state.readMarkerOutOfViewThresholdMs}async updateReadMarkerOnUserActivity(){const e=this._readMarkerTimeout(this.getReadMarkerPosition());for(this._readMarkerActivityTimer=new y.a(e);this._readMarkerActivityTimer;){f.a.sharedInstance().timeWhileActiveRecently(this._readMarkerActivityTimer);try{await this._readMarkerActivityTimer.finished()}catch(e){continue}this.updateReadMarker()}}async updateReadReceiptOnUserActivity(){for(this._readReceiptActivityTimer=new y.a(500);this._readReceiptActivityTimer;){f.a.sharedInstance().timeWhileActiveNow(this._readReceiptActivityTimer);try{await this._readReceiptActivityTimer.finished()}catch(e){continue}this.sendReadReceipt()}}_advanceReadMarkerPastMyEvents(){if(!this.props.manageReadMarkers)return;const e=this._timelineWindow.getEvents();let t;for(t=0;t<e.length&&e[t].getId()!=this.state.readMarkerEventId;t++);if(t>=e.length)return;const n=m.a.get().credentials.userId;for(t++;t<e.length;t++){const o=e[t];if(!o.sender||o.sender.userId!=n)break}t--;const o=e[t];this._setReadMarker(o.getId(),o.getTs())}_initTimeline(e){const t=e.eventId,n=e.eventPixelOffset;let o=1;return null==n&&(o=.5),this._loadTimeline(t,n,o)}_loadTimeline(e,t,n){this._timelineWindow=new h.n(m.a.get(),this.props.timelineSet,{windowLimit:this.props.timelineCap});const o=()=>{this._messagePanel.current&&this._messagePanel.current.onTimelineReset(),this._reloadEvents(),this._advanceReadMarkerPastMyEvents(),this.setState({canBackPaginate:this._timelineWindow.canPaginate(h.c.BACKWARDS),canForwardPaginate:this._timelineWindow.canPaginate(h.c.FORWARDS),timelineLoading:!1},()=>{this._messagePanel.current?(e?this._messagePanel.current.scrollToEvent(e,t,n):this._messagePanel.current.scrollToBottom(),this.sendReadReceipt()):console.log("can't initialise scroll state because messagePanel didn't load")})},r=t=>{this.setState({timelineLoading:!1}),console.error(`Error loading timeline panel at ${e}: ${t}`);const n=v.getComponent("dialogs.ErrorDialog");let o,r;e&&(o=()=>{b.a.dispatch({action:"view_room",room_id:this.props.timelineSet.room.roomId})}),r="M_FORBIDDEN"==t.errcode?Object(p.a)("Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question."):Object(p.a)("Tried to load a specific point in this room's timeline, but was unable to find it."),_.a.createTrackedDialog("Failed to load timeline position","",n,{title:Object(p.a)("Failed to load timeline position"),description:r,onFinished:o})};if(this.props.timelineSet.getTimelineForEvent(e))this._timelineWindow.load(e,20),o();else{const t=this._timelineWindow.load(e,20);this.setState({events:[],liveEvents:[],canBackPaginate:!1,canForwardPaginate:!1,timelineLoading:!0}),t.then(o,r)}}_reloadEvents(){this.unmounted||this.setState(this._getEvents())}_getEvents(){const e=this._timelineWindow.getEvents(),t=this._checkForPreJoinUISI(e),n=[...e];return this._timelineWindow.canPaginate(h.c.FORWARDS)||e.push(...this.props.timelineSet.getPendingEvents()),{events:e,liveEvents:n,firstVisibleEventIndex:t}}_checkForPreJoinUISI(e){const t=this.props.timelineSet.room;if(0===e.length||!t||!m.a.get().isRoomEncrypted(t.roomId))return 0;const n=m.a.get().credentials.userId;let o,r="leave";for(o=e.length-1;o>=0;o--){const i=t.getTimelineForEvent(e[o].getId());if(!i){console.warn(`Event ${e[o].getId()} in room ${t.roomId} is live, but it does not have a timeline`);continue}const a=i.getState(h.c.FORWARDS).getMember(n);r=a?a.membership:"leave";const s=i.getEvents();for(let t=s.length-1;t>=0;t--){const i=s[t];if(i.getId()===e[o].getId())break;if(i.getStateKey()===n&&"m.room.member"===i.getType()){r=i.getPrevContent().membership||"leave"}}break}for(;o>=0;o--){const t=e[o];if(t.getStateKey()===n&&"m.room.member"===t.getType()){r=t.getPrevContent().membership||"leave"}else if("leave"===r&&(t.isDecryptionFailure()||t.isBeingDecrypted()))return o+1}return 0}_indexForEventId(e){for(let t=0;t<this.state.events.length;++t)if(e==this.state.events[t].getId())return t;return null}_getLastDisplayedEventIndex(e){const t=(e=e||{}).ignoreOwn||!1,n=e.allowPartial||!1,o=this._messagePanel.current;if(!o)return null;const r=l.a.findDOMNode(o);if(!r)return null;const i=r.getBoundingClientRect(),a=m.a.get().credentials.userId,s=e=>{if(e){const t=e.getBoundingClientRect();if(n&&t.top<i.bottom||!n&&t.bottom<i.bottom)return!0}return!1};let c=0;for(let e=this.state.liveEvents.length-1;e>=0;--e){const n=this.state.liveEvents[e],r=o.getNodeForEventId(n.getId()),i=s(r);if(i&&0!==c)return e+c;r&&!i&&(c=0);const l=!!n.status||t&&n.sender&&n.sender.userId==a;if(!(!Object(w.b)(n)||Object(S.a)(n))&&r){if(!l&&i)return e}else(!l||l&&0!==c)&&++c}return null}_getCurrentReadReceipt(e){const t=m.a.get();if(null==t)return null;const n=t.credentials.userId;return this.props.timelineSet.room.getEventReadUpTo(n,e)}_setReadMarker(e,t,n){const o=this.props.timelineSet.room.roomId;e!==this.state.readMarkerEventId&&(O.roomReadMarkerTsMap[o]=t,n||this.setState({readMarkerEventId:e},this.props.onReadMarkerUpdated))}_shouldPaginate(){return!this.state.events.some(e=>e.isBeingDecrypted())}render(){const e=v.getComponent("structures.MessagePanel"),t=v.getComponent("elements.Spinner");if(this.state.timelineLoading)return s.a.createElement("div",{className:"mx_RoomView_messagePanelSpinner"},s.a.createElement(t,null));if(0==this.state.events.length&&!this.state.canBackPaginate&&this.props.empty)return s.a.createElement("div",{className:this.props.className+" mx_RoomView_messageListWrapper"},s.a.createElement("div",{className:"mx_RoomView_empty"},this.props.empty));const n=!this._timelineWindow.canPaginate(h.c.FORWARDS),o=this.state.forwardPaginating||["PREPARED","CATCHUP"].includes(this.state.clientSyncState),r=this.state.firstVisibleEventIndex?this.state.events.slice(this.state.firstVisibleEventIndex):this.state.events;return s.a.createElement(e,{ref:this._messagePanel,room:this.props.timelineSet.room,permalinkCreator:this.props.permalinkCreator,hidden:this.props.hidden,backPaginating:this.state.backPaginating,forwardPaginating:o,events:r,highlightedEventId:this.props.highlightedEventId,readMarkerEventId:this.state.readMarkerEventId,readMarkerVisible:this.state.readMarkerVisible,suppressFirstDateSeparator:this.state.canBackPaginate,showUrlPreview:this.props.showUrlPreview,showReadReceipts:this.props.showReadReceipts,ourUserId:m.a.get().credentials.userId,stickyBottom:n,onScroll:this.onMessageListScroll,onFillRequest:this.onMessageListFillRequest,onUnfillRequest:this.onMessageListUnfillRequest,isTwelveHour:this.state.isTwelveHour,alwaysShowTimestamps:this.state.alwaysShowTimestamps,className:this.props.className,tileShape:this.props.tileShape,resizeNotifier:this.props.resizeNotifier,getRelationsForEvent:this.getRelationsForEvent,editState:this.state.editState,showReactions:this.props.showReactions,useIRCLayout:this.props.useIRCLayout,enableFlair:i.a.getValue(C.a.Flair)})}}r()(O,"propTypes",{timelineSet:d.a.object.isRequired,showReadReceipts:d.a.bool,manageReadReceipts:d.a.bool,manageReadMarkers:d.a.bool,hidden:d.a.bool,highlightedEventId:d.a.string,eventId:d.a.string,eventPixelOffset:d.a.number,showUrlPreview:d.a.bool,onScroll:d.a.func,onReadMarkerUpdated:d.a.func,onPaginationRequest:d.a.func,timelineCap:d.a.number,className:d.a.string,tileShape:d.a.string,empty:d.a.node,showReactions:d.a.bool,useIRCLayout:d.a.bool}),r()(O,"roomReadMarkerTsMap",{}),r()(O,"defaultProps",{timelineCap:Number.MAX_VALUE,className:"mx_RoomView_messagePanel"}),t.a=O},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{constructor(e){this._event=e,this._serializedParts=null,this.caret=null}setEditorState(e,t){this._caret=e,this._serializedParts=t}hasEditorState(){return!!this._serializedParts}getSerializedParts(){return this._serializedParts}getCaret(){return this._caret}getEvent(){return this._event}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(85),c=n(83),l=n(86),u=n(104),d=n(89),h=n(92);class p extends a.a.PureComponent{constructor(e){super(e),r()(this,"_onClearCacheAndReload",()=>{u.a.get()&&(l.a.get().stopClient(),l.a.get().store.deleteAllData().then(()=>{u.a.get().reload()}))}),r()(this,"_onBugReport",()=>{const e=s.getComponent("dialogs.BugReportDialog");e&&d.a.createTrackedDialog("Bug Report Dialog","",e,{label:"react-soft-crash"})}),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,{componentStack:t}){console.error(e),console.error("The above error occured while React was rendering the following components:",t)}render(){if(this.state.error){const e=s.getComponent("elements.AccessibleButton"),t="https://github.com/vector-im/element-web/issues/new";let n;return h.a.get().bug_report_endpoint_url&&(n=a.a.createElement(a.a.Fragment,null,a.a.createElement("p",null,Object(c.a)("Please <newIssueLink>create a new issue</newIssueLink> on GitHub so that we can investigate this bug.",{},{newIssueLink:e=>a.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:t},e)})),a.a.createElement("p",null,Object(c.a)("If you've submitted a bug via GitHub, debug logs can help us track down the problem. Debug logs contain application usage data including your username, the IDs or aliases of the rooms or groups you have visited and the usernames of other users. They do not contain messages.")),a.a.createElement(e,{onClick:this._onBugReport,kind:"primary"},Object(c.a)("Submit debug logs")))),a.a.createElement("div",{className:"mx_ErrorBoundary"},a.a.createElement("div",{className:"mx_ErrorBoundary_body"},a.a.createElement("h1",null,Object(c.a)("Something went wrong!")),n,a.a.createElement(e,{onClick:this._onClearCacheAndReload,kind:"danger"},Object(c.a)("Clear cache and reload"))))}return this.props.children}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(85),u=n(86),d=n(87),h=n(90),p=n.n(h),m=n(83),g=n(92),f=n(194),_=n(156),b=n(115);const v=Object.freeze({NotLoggedIn:"NotLoggedIn",Joining:"Joining",Loading:"Loading",Rejecting:"Rejecting",Kicked:"Kicked",Banned:"Banned",OtherThreePIDError:"OtherThreePIDError",InvitedEmailNotFoundInAccount:"InvitedEmailNotFoundInAccount",InvitedEmailNoIdentityServer:"InvitedEmailNoIdentityServer",InvitedEmailMismatch:"InvitedEmailMismatch",Invite:"Invite",ViewingRoom:"ViewingRoom",RoomNotFound:"RoomNotFound",OtherError:"OtherError"});class E extends a.a.Component{constructor(...e){super(...e),r()(this,"state",{busy:!1}),r()(this,"_onCommunityUpdate",e=>{this.props.room&&this.props.room.roomId!==e||this.forceUpdate()}),r()(this,"onLoginClick",()=>{d.a.dispatch({action:"start_login",screenAfterLogin:this._makeScreenAfterLogin()})}),r()(this,"onRegisterClick",()=>{d.a.dispatch({action:"start_registration",screenAfterLogin:this._makeScreenAfterLogin()})})}componentDidMount(){this._checkInvitedEmail(),_.a.instance.on(b.b,this._onCommunityUpdate)}componentDidUpdate(e,t){this.props.invitedEmail===e.invitedEmail&&this.props.inviterName===e.inviterName||this._checkInvitedEmail()}componentWillUnmount(){_.a.instance.off(b.b,this._onCommunityUpdate)}async _checkInvitedEmail(){if(this.props.inviterName&&this.props.invitedEmail){this.setState({busy:!0});try{const e=await u.a.get().getThreePids();if(this.setState({accountEmails:e.threepids.filter(e=>"email"===e.medium).map(e=>e.address)}),!u.a.get().getIdentityServerUrl())return void this.setState({busy:!1});const t=new f.a,n=await t.getAccessToken(),o=await u.a.get().lookupThreePid("email",this.props.invitedEmail,void 0,n);this.setState({invitedEmailMxid:o.mxid})}catch(e){this.setState({threePidFetchError:e})}this.setState({busy:!1})}}_getMessageCase(){if(u.a.get().isGuest())return v.NotLoggedIn;const e=this._getMyMember();if(e){if(e.isKicked())return v.Kicked;if("ban"===e.membership)return v.Banned}if(this.props.joining)return v.Joining;if(this.props.rejecting)return v.Rejecting;if(this.props.loading||this.state.busy)return v.Loading;if(this.props.inviterName){if(this.props.invitedEmail){if(this.state.threePidFetchError)return v.OtherThreePIDError;if(this.state.accountEmails&&!this.state.accountEmails.includes(this.props.invitedEmail))return v.InvitedEmailNotFoundInAccount;if(!u.a.get().getIdentityServerUrl())return v.InvitedEmailNoIdentityServer;if(this.state.invitedEmailMxid!=u.a.get().getUserId())return v.InvitedEmailMismatch}return v.Invite}return this.props.error?"M_NOT_FOUND"==this.props.error.errcode?v.RoomNotFound:v.OtherError:v.ViewingRoom}_getKickOrBanInfo(){const e=this._getMyMember();if(!e)return{};const t=this.props.room.currentState.getMember(e.events.member.getSender());return{memberName:t?t.name:e.events.member.getSender(),reason:e.events.member.getContent().reason}}_joinRule(){const e=this.props.room;if(e){const t=e.currentState.getStateEvents("m.room.join_rules","");if(t)return t.getContent().join_rule}}_communityProfile(){return this.props.room?_.a.instance.getInviteProfile(this.props.room.roomId):{displayName:null,avatarMxc:null}}_roomName(e=!1){let t=this.props.room?this.props.room.name:this.props.roomAlias;const n=this._communityProfile();return n.displayName&&(t=n.displayName),t||(e?Object(m.a)("This room"):Object(m.a)("this room"))}_getMyMember(){return this.props.room&&this.props.room.getMember(u.a.get().getUserId())}_getInviteMember(){const{room:e}=this.props;if(!e)return;const t=u.a.get().getUserId(),n=e.currentState.getMember(t);if(!n)return;const o=n.events.member.getSender();return e.currentState.getMember(o)}_isDMInvite(){const e=this._getMyMember();if(!e)return!1;const t=e.events.member.getContent();return"invite"===t.membership&&t.is_direct}_makeScreenAfterLogin(){return{screen:"room",params:{email:this.props.invitedEmail,signurl:this.props.signUrl,room_name:this.props.oobData?this.props.oobData.room_name:null,room_avatar_url:this.props.oobData?this.props.oobData.avatarUrl:null,inviter_name:this.props.oobData?this.props.oobData.inviterName:null}}}render(){const e=g.a.get().brand,t=l.getComponent("elements.Spinner"),n=l.getComponent("elements.AccessibleButton");let o,r,i,s,c,u,d,h=!1;const f=[],_=this._getMessageCase();switch(_){case v.Joining:o=Object(m.a)("Joining room …"),h=!0;break;case v.Loading:o=Object(m.a)("Loading …"),h=!0;break;case v.Rejecting:o=Object(m.a)("Rejecting invite …"),h=!0;break;case v.NotLoggedIn:o=Object(m.a)("Join the conversation with an account"),s=Object(m.a)("Sign Up"),i=this.onRegisterClick,u=Object(m.a)("Sign In"),c=this.onLoginClick,this.props.previewLoading&&(d=a.a.createElement("div",null,a.a.createElement(t,{w:20,h:20}),Object(m.a)("Loading room preview")));break;case v.Kicked:{const{memberName:e,reason:t}=this._getKickOrBanInfo();o=Object(m.a)("You were kicked from %(roomName)s by %(memberName)s",{memberName:e,roomName:this._roomName()}),r=t?Object(m.a)("Reason: %(reason)s",{reason:t}):null,"invite"===this._joinRule()?(s=Object(m.a)("Forget this room"),i=this.props.onForgetClick):(s=Object(m.a)("Re-join"),i=this.props.onJoinClick,u=Object(m.a)("Forget this room"),c=this.props.onForgetClick);break}case v.Banned:{const{memberName:e,reason:t}=this._getKickOrBanInfo();o=Object(m.a)("You were banned from %(roomName)s by %(memberName)s",{memberName:e,roomName:this._roomName()}),r=t?Object(m.a)("Reason: %(reason)s",{reason:t}):null,s=Object(m.a)("Forget this room"),i=this.props.onForgetClick;break}case v.OtherThreePIDError:{o=Object(m.a)("Something went wrong with your invite to %(roomName)s",{roomName:this._roomName()});const e=this._joinRule(),t=Object(m.a)("An error (%(errcode)s) was returned while trying to validate your invite. You could try to pass this information on to a room admin.",{errcode:this.state.threePidFetchError.errcode||Object(m.a)("unknown error code")});switch(e){case"invite":r=[Object(m.a)("You can only join it with a working invite."),t],s=Object(m.a)("Try to join anyway"),i=this.props.onJoinClick;break;case"public":r=Object(m.a)("You can still join it because this is a public room."),s=Object(m.a)("Join the discussion"),i=this.props.onJoinClick;break;default:r=t,s=Object(m.a)("Try to join anyway"),i=this.props.onJoinClick}break}case v.InvitedEmailNotFoundInAccount:o=Object(m.a)("This invite to %(roomName)s was sent to %(email)s which is not associated with your account",{roomName:this._roomName(),email:this.props.invitedEmail}),r=Object(m.a)("Link this email with your account in Settings to receive invites directly in %(brand)s.",{brand:e}),s=Object(m.a)("Join the discussion"),i=this.props.onJoinClick;break;case v.InvitedEmailNoIdentityServer:o=Object(m.a)("This invite to %(roomName)s was sent to %(email)s",{roomName:this._roomName(),email:this.props.invitedEmail}),r=Object(m.a)("Use an identity server in Settings to receive invites directly in %(brand)s.",{brand:e}),s=Object(m.a)("Join the discussion"),i=this.props.onJoinClick;break;case v.InvitedEmailMismatch:o=Object(m.a)("This invite to %(roomName)s was sent to %(email)s",{roomName:this._roomName(),email:this.props.invitedEmail}),r=Object(m.a)("Share this email in Settings to receive invites directly in %(brand)s.",{brand:e}),s=Object(m.a)("Join the discussion"),i=this.props.onJoinClick;break;case v.Invite:{const e=l.getComponent("views.avatars.RoomAvatar"),t=Object.assign({},this.props.oobData,{avatarUrl:this._communityProfile().avatarMxc}),d=a.a.createElement(e,{room:this.props.room,oobData:t}),h=this._getInviteMember();let p;p=h?a.a.createElement("span",null,a.a.createElement("span",{className:"mx_RoomPreviewBar_inviter"},h.rawDisplayName)," (",h.userId,")"):a.a.createElement("span",{className:"mx_RoomPreviewBar_inviter"},this.props.inviterName);this._isDMInvite()?(o=Object(m.a)("Do you want to chat with %(user)s?",{user:h.name}),r=[d,Object(m.a)("<userName/> wants to chat",{},{userName:()=>p})],s=Object(m.a)("Start chatting")):(o=Object(m.a)("Do you want to join %(roomName)s?",{roomName:this._roomName()}),r=[d,Object(m.a)("<userName/> invited you",{},{userName:()=>p})],s=Object(m.a)("Accept")),i=this.props.onJoinClick,u=Object(m.a)("Reject"),c=this.props.onRejectClick,this.props.onRejectAndIgnoreClick&&f.push(a.a.createElement(n,{kind:"secondary",onClick:this.props.onRejectAndIgnoreClick,key:"ignore"},Object(m.a)("Reject & Ignore user")));break}case v.ViewingRoom:o=this.props.canPreview?Object(m.a)("You're previewing %(roomName)s. Want to join it?",{roomName:this._roomName()}):Object(m.a)("%(roomName)s can't be previewed. Do you want to join it?",{roomName:this._roomName(!0)}),s=Object(m.a)("Join the discussion"),i=this.props.onJoinClick;break;case v.RoomNotFound:o=Object(m.a)("%(roomName)s does not exist.",{roomName:this._roomName(!0)}),r=Object(m.a)("This room doesn't exist. Are you sure you're at the right place?");break;case v.OtherError:o=Object(m.a)("%(roomName)s is not accessible at this time.",{roomName:this._roomName(!0)}),r=[Object(m.a)("Try again later, or ask a room admin to check if you have access."),Object(m.a)("%(errcode)s was returned while trying to access the room. If you think you're seeing this message in error, please <issueLink>submit a bug report</issueLink>.",{errcode:this.props.error.errcode},{issueLink:e=>a.a.createElement("a",{href:"https://github.com/vector-im/element-web/issues/new/choose",target:"_blank",rel:"noreferrer noopener"},e)})]}let b,E,y,S;r&&(Array.isArray(r)||(r=[r]),b=r.map((e,t)=>a.a.createElement("p",{key:"subTitle"+t},e))),E=h?a.a.createElement("h3",{className:"mx_RoomPreviewBar_spinnerTitle"},a.a.createElement(t,null),o):a.a.createElement("h3",null,o),i&&(y=a.a.createElement(n,{kind:"primary",onClick:i},s)),c&&(S=a.a.createElement(n,{kind:"secondary",onClick:c},u));const T=p()("mx_RoomPreviewBar","dark-panel","mx_RoomPreviewBar_"+_,{mx_RoomPreviewBar_panel:this.props.canPreview,mx_RoomPreviewBar_dialog:!this.props.canPreview});return a.a.createElement("div",{className:T},a.a.createElement("div",{className:"mx_RoomPreviewBar_message"},E,b),a.a.createElement("div",{className:"mx_RoomPreviewBar_actions"},S,f,y),a.a.createElement("div",{className:"mx_RoomPreviewBar_footer"},d))}}r()(E,"propTypes",{onJoinClick:c.a.func,onRejectClick:c.a.func,onRejectAndIgnoreClick:c.a.func,onForgetClick:c.a.func,inviterName:c.a.string,invitedEmail:c.a.string,oobData:c.a.object,signUrl:c.a.string,error:c.a.object,canPreview:c.a.bool,previewLoading:c.a.bool,room:c.a.object,spinner:c.a.bool,spinnerState:c.a.oneOf(["joining"]),loading:c.a.bool,joining:c.a.bool,rejecting:c.a.bool,roomAlias:c.a.string}),r()(E,"defaultProps",{onJoinClick(){}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(83),u=n(98);class d extends a.a.Component{constructor(...e){super(...e),r()(this,"_onKeyDown",e=>{switch(e.key){case u.a.ESCAPE:this.props.onCancelClick()}})}componentDidMount(){document.addEventListener("keydown",this._onKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this._onKeyDown)}render(){return a.a.createElement("div",{className:"mx_ForwardMessage"},a.a.createElement("h1",null,Object(l.a)("Please select the destination room for this message")))}}r()(d,"propTypes",{onCancelClick:c.a.func.isRequired})},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(91),c=n(90),l=n.n(c),u=n(83),d=n(98),h=n(508);class p extends a.a.Component{constructor(e){super(e),r()(this,"onThisRoomClick",()=>{this.setState({scope:"Room"},()=>this._searchIfQuery())}),r()(this,"onAllRoomsClick",()=>{this.setState({scope:"All"},()=>this._searchIfQuery())}),r()(this,"onSearchChange",e=>{switch(e.key){case d.a.ENTER:this.onSearch();break;case d.a.ESCAPE:this.props.onCancelClick()}}),r()(this,"onSearch",()=>{this.props.onSearch(this._search_term.current.value,this.state.scope)}),this._search_term=Object(i.createRef)(),this.state={scope:"Room"}}_searchIfQuery(){this._search_term.current.value&&this.onSearch()}render(){const e=l()("mx_SearchBar_searchButton",{mx_SearchBar_searching:this.props.searchInProgress}),t=l()("mx_SearchBar_button",{mx_SearchBar_unselected:"Room"!==this.state.scope}),n=l()("mx_SearchBar_button",{mx_SearchBar_unselected:"All"!==this.state.scope});return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"mx_SearchBar"},a.a.createElement("div",{className:"mx_SearchBar_buttons",role:"radiogroup"},a.a.createElement(s.a,{className:t,onClick:this.onThisRoomClick,"aria-checked":"Room"===this.state.scope,role:"radio"},Object(u.a)("This Room")),a.a.createElement(s.a,{className:n,onClick:this.onAllRoomsClick,"aria-checked":"All"===this.state.scope,role:"radio"},Object(u.a)("All Rooms"))),a.a.createElement("div",{className:"mx_SearchBar_input mx_textinput"},a.a.createElement("input",{ref:this._search_term,type:"text",autoFocus:!0,placeholder:Object(u.a)("Search…"),onKeyDown:this.onSearchChange}),a.a.createElement(s.a,{className:e,onClick:this.onSearch})),a.a.createElement(s.a,{className:"mx_SearchBar_cancel",onClick:this.props.onCancelClick})),a.a.createElement(h.b,{isRoomEncrypted:this.props.isRoomEncrypted,kind:h.a.Search}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(85),u=n(89),d=n(83),h=n(86);class p extends a.a.Component{constructor(e){super(e),r()(this,"_onStateEvents",(e,t)=>{if(!this.props.room||e.getRoomId()!==this.props.room.roomId)return;if("m.room.tombstone"!==e.getType())return;const n=this.props.room.currentState.getStateEvents("m.room.tombstone","");this.setState({upgraded:n&&n.getContent().replacement_room})}),r()(this,"onUpgradeClick",()=>{const e=l.getComponent("dialogs.RoomUpgradeDialog");u.a.createTrackedDialog("Upgrade Room Version","",e,{room:this.props.room})}),this.state={}}componentDidMount(){const e=this.props.room.currentState.getStateEvents("m.room.tombstone","");this.setState({upgraded:e&&e.getContent().replacement_room}),h.a.get().on("RoomState.events",this._onStateEvents)}componentWillUnmount(){const e=h.a.get();e&&e.removeListener("RoomState.events",this._onStateEvents)}render(){const e=l.getComponent("elements.AccessibleButton");let t=a.a.createElement("div",null,a.a.createElement("div",{className:"mx_RoomUpgradeWarningBar_body"},a.a.createElement("p",null,Object(d.a)("Upgrading this room will shut down the current instance of the room and create an upgraded room with the same name.")),a.a.createElement("p",null,Object(d.a)("<b>Warning</b>: Upgrading a room will <i>not automatically migrate room members to the new version of the room.</i> We'll post a link to the new room in the old version of the room - room members will have to click this link to join the new room.",{},{b:e=>a.a.createElement("b",null,e),i:e=>a.a.createElement("i",null,e)}))),a.a.createElement("p",{className:"mx_RoomUpgradeWarningBar_upgradelink"},a.a.createElement(e,{onClick:this.onUpgradeClick},Object(d.a)("Upgrade this room to the recommended room version"))));return this.state.upgraded&&(t=a.a.createElement("div",{className:"mx_RoomUpgradeWarningBar_body"},a.a.createElement("p",null,Object(d.a)("This room has already been upgraded.")))),a.a.createElement("div",{className:"mx_RoomUpgradeWarningBar"},a.a.createElement("div",{className:"mx_RoomUpgradeWarningBar_wrapped"},a.a.createElement("div",{className:"mx_RoomUpgradeWarningBar_header"},Object(d.a)("This room is running room version <roomVersion />, which this homeserver has marked as <i>unstable</i>.",{},{roomVersion:()=>a.a.createElement("code",null,this.props.room.getVersion()),i:e=>a.a.createElement("i",null,e)})),t,a.a.createElement("div",{className:"mx_RoomUpgradeWarningBar_small"},Object(d.a)("Only room administrators will see this warning"))))}}r()(p,"propTypes",{room:c.a.object.isRequired,recommendation:c.a.object.isRequired})},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(86),u=n(87),d=n(91),h=n(770),p=n(258),m=n(83),g=n(126);class f extends a.a.Component{constructor(...e){super(...e),r()(this,"onTileClicked",()=>{u.a.dispatch({action:"view_room",event_id:this.props.mxEvent.getId(),highlighted:!0,room_id:this.props.mxEvent.getRoomId()})}),r()(this,"onUnpinClicked",()=>{const e=this.props.mxRoom.currentState.getStateEvents("m.room.pinned_events","");if(e&&e.getContent().pinned){const t=e.getContent().pinned,n=t.indexOf(this.props.mxEvent.getId());-1!==n?(t.splice(n,1),l.a.get().sendStateEvent(this.props.mxRoom.roomId,"m.room.pinned_events",{pinned:t},"").then(()=>{this.props.onUnpinned&&this.props.onUnpinned()})):this.props.onUnpinned&&this.props.onUnpinned()}else this.props.onUnpinned&&this.props.onUnpinned()})}_canUnpin(){return this.props.mxRoom.currentState.mayClientSendStateEvent("m.room.pinned_events",l.a.get())}render(){const e=this.props.mxEvent.getSender(),t=this.props.mxRoom.getMember(e);let o=null;return this._canUnpin()&&(o=a.a.createElement(d.a,{onClick:this.onUnpinClicked,className:"mx_PinnedEventTile_unpinButton"},a.a.createElement("img",{src:n(1363),width:"8",height:"8",alt:Object(m.a)("Unpin Message"),title:Object(m.a)("Unpin Message")}))),a.a.createElement("div",{className:"mx_PinnedEventTile"},a.a.createElement("div",{className:"mx_PinnedEventTile_actions"},a.a.createElement(d.a,{className:"mx_PinnedEventTile_gotoButton mx_textButton",onClick:this.onTileClicked},Object(m.a)("Jump to message")),o),a.a.createElement("span",{className:"mx_PinnedEventTile_senderAvatar"},a.a.createElement(p.a,{member:t,width:40,height:40,fallbackUserId:e})),a.a.createElement("span",{className:"mx_PinnedEventTile_sender"},t?t.name:e),a.a.createElement("span",{className:"mx_PinnedEventTile_timestamp"},Object(g.b)(new Date(this.props.mxEvent.getTs()))),a.a.createElement("div",{className:"mx_PinnedEventTile_message"},a.a.createElement(h.a,{mxEvent:this.props.mxEvent,className:"mx_PinnedEventTile_body",maxImageHeight:150,onHeightChanged:()=>{}})))}}r()(f,"propTypes",{mxRoom:c.a.object.isRequired,mxEvent:c.a.object.isRequired,onUnpinned:c.a.func})},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(85),u=n(88),d=n(484),h=n(509),p=n(771);class m extends a.a.Component{constructor(e){super(e),r()(this,"getEventTileOps",()=>this._body.current&&this._body.current.getEventTileOps?this._body.current.getEventTileOps():null),r()(this,"onTileUpdate",()=>{this.forceUpdate()}),this._body=Object(i.createRef)()}render(){const e={"m.text":l.getComponent("messages.TextualBody"),"m.notice":l.getComponent("messages.TextualBody"),"m.emote":l.getComponent("messages.TextualBody"),"m.image":l.getComponent("messages.MImageBody"),"m.file":l.getComponent("messages.MFileBody"),"m.audio":l.getComponent("messages.MAudioBody"),"m.video":l.getComponent("messages.MVideoBody")},t={"m.sticker":l.getComponent("messages.MStickerBody")},n=this.props.mxEvent.getContent(),o=this.props.mxEvent.getType(),r=n.msgtype;let i=h.a;if(this.props.mxEvent.isRedacted()||(i=o&&t[o]?t[o]:r&&e[r]?e[r]:n.url?e["m.file"]:p.a),u.a.getValue("feature_mjolnir")){const e=`mx_mjolnir_render_${this.props.mxEvent.getRoomId()}__${this.props.mxEvent.getId()}`;if(!("true"===localStorage.getItem(e))){const e=this.props.mxEvent.getSender().split(":").slice(1).join(":"),t=d.a.sharedInstance().isUserBanned(this.props.mxEvent.getSender()),n=d.a.sharedInstance().isServerBanned(e);(t||n)&&(i=l.getComponent("messages.MjolnirBody"))}}return a.a.createElement(i,{ref:this._body,mxEvent:this.props.mxEvent,highlights:this.props.highlights,highlightLink:this.props.highlightLink,showUrlPreview:this.props.showUrlPreview,tileShape:this.props.tileShape,maxImageHeight:this.props.maxImageHeight,replacingEventId:this.props.replacingEventId,editState:this.props.editState,onHeightChanged:this.props.onHeightChanged,onMessageAllowed:this.onTileUpdate})}}r()(m,"propTypes",{mxEvent:c.a.object.isRequired,highlights:c.a.array,highlightLink:c.a.string,showUrlPreview:c.a.bool,onHeightChanged:c.a.func,tileShape:c.a.string,maxImageHeight:c.a.number})},function(e,t,n){"use strict";var o=n(81),r=n.n(o);t.a=Object(o.forwardRef)(({mxEvent:e},t)=>{const n=e.getContent().body;return r.a.createElement("span",{className:"mx_UnknownBody",ref:t},n)})},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(86),c=n(85),l=n(87),u=n(365),d=n(773),h=n(83),p=n(90),m=n.n(p),g=n(256),f=n(88),_=n(114),b=n(101),v=n(774);class E extends a.a.Component{constructor(e){super(e),r()(this,"onConferenceNotificationClick",(e,t)=>{l.a.dispatch({action:"place_call",type:t,room_id:this.props.room.roomId}),e.stopPropagation(),e.preventDefault()}),r()(this,"_rateLimitedUpdate",new g.a(()=>{f.a.getValue("feature_state_counters")&&this.setState({counters:this._computeCounters()})},500)),this.state={counters:this._computeCounters()}}componentDidMount(){s.a.get().on("RoomState.events",this._rateLimitedUpdate)}componentWillUnmount(){const e=s.a.get();e&&e.removeListener("RoomState.events",this._rateLimitedUpdate)}shouldComponentUpdate(e,t){return!u.a(this.props,e)||!u.a(this.state,t)}componentDidUpdate(e,t){this.props.onResize&&this.props.onResize()}_computeCounters(){const e=[];if(this.props.room&&f.a.getValue("feature_state_counters")){const t=this.props.room.currentState.getStateEvents("re.jki.counter");t.sort((e,t)=>e.getStateKey()<t.getStateKey());for(const n of t){const t=n.getContent().title,o=n.getContent().value,r=n.getContent().link,i=n.getContent().severity||"normal",a=n.getStateKey();t&&void 0!==o&&e.push({title:t,value:o,link:r,severity:i,stateKey:a})}}return e}render(){const e=c.getComponent("elements.TintableSvg");let t=null;this.props.draggingFile&&(t=a.a.createElement("div",{className:"mx_RoomView_fileDropTarget"},a.a.createElement("div",{className:"mx_RoomView_fileDropTargetLabel",title:Object(h.a)("Drop File Here")},a.a.createElement(e,{src:n(1364),width:"45",height:"59"}),a.a.createElement("br",null),Object(h.a)("Drop file here to upload"))));const o=a.a.createElement(v.a,{roomId:this.props.room.roomId,onResize:this.props.onResize,maxVideoHeight:this.props.maxHeight});let r;f.a.getValue(b.a.Widgets)&&(r=a.a.createElement(d.a,{room:this.props.room,userId:this.props.userId,maxHeight:this.props.maxHeight,showApps:this.props.showApps,resizeNotifier:this.props.resizeNotifier}));let i=null;if(this.state.counters&&f.a.getValue("feature_state_counters")){const e=[];this.state.counters.forEach((t,n)=>{const o=t.title,r=t.value,i=t.link,s=t.severity,c=t.stateKey;let l=a.a.createElement("span",null,o,": ",r);i&&(l=a.a.createElement("a",{href:i,target:"_blank",rel:"noreferrer noopener"},l)),l=a.a.createElement("span",{className:"m_RoomView_auxPanel_stateViews_span","data-severity":s,key:"x-"+c},l),e.push(l),e.push(a.a.createElement("span",{className:"m_RoomView_auxPanel_stateViews_delim",key:"delim"+n}," ─ "))}),e.length>0&&(e.pop(),i=a.a.createElement("div",{className:"m_RoomView_auxPanel_stateViews"},e))}const s=m()({mx_RoomView_auxPanel:!0,mx_RoomView_auxPanel_fullHeight:this.props.fullHeight}),l={};return this.props.fullHeight||(l.maxHeight=this.props.maxHeight),a.a.createElement(_.a,{className:s,style:l},i,r,t,o,this.props.children)}}r()(E,"defaultProps",{showApps:!0})},function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(90),u=n.n(l),d=n(366),h=n(305),p=n(87),m=n(85),g=n(709),f=n(122),_=n(300),b=n(160),v=n(88),E=n(742),y=n(723),S=n(169),T=n(497),w=n(499),C=n(498);class x extends a.a.Component{constructor(e){super(e),r()(this,"onIsResizing",e=>{this.setState({resizing:e}),e||this._relaxResizer()}),r()(this,"_collectResizer",e=>{this._resizeContainer&&this.resizer.detach(),e&&(this.resizer.container=e,this.resizer.attach()),this._resizeContainer=e,this._loadResizerPreferences()}),r()(this,"_getStorageKey",()=>"mx_apps_drawer-"+this.props.room.roomId),r()(this,"_getAppsHash",e=>e.map(e=>e.id).join("~")),r()(this,"_relaxResizer",()=>{const e=this.resizer.getDistributors();e.forEach(e=>e.start()),e.forEach(e=>e.finish())}),r()(this,"_loadResizerPreferences",()=>{try{const[[...e],...t]=JSON.parse(localStorage.getItem(this._getStorageKey()));if(this.state.apps.length<=e.length&&this.state.apps.every((t,n)=>e[n]===t.id))return void t.forEach((e,t)=>{const n=this.resizer.forHandleAt(t);n&&(n.size=e,n.finish())})}catch(e){}if(this.state.apps){const e=this.resizer.getDistributors();e.forEach(e=>e.item.clearSize()),e.forEach(e=>e.start()),e.forEach(e=>e.finish())}}),r()(this,"onAction",e=>{const t=this.props.room.roomId+"_hide_widget_drawer";switch(e.action){case"appsDrawer":e.show?localStorage.setItem(t,"false"):localStorage.setItem(t,"true")}}),r()(this,"_getApps",()=>S.b.instance.getPinnedApps(this.props.room.roomId)),r()(this,"_updateApps",()=>{this.setState({apps:this._getApps()})}),this.state={apps:this._getApps()},this._resizeContainer=null,this.resizer=this._createResizer(),this.props.resizeNotifier.on("isResizing",this.onIsResizing)}componentDidMount(){g.b(),S.b.instance.on(this.props.room.roomId,this._updateApps),this.dispatcherRef=p.a.register(this.onAction)}componentWillUnmount(){g.c(),S.b.instance.off(this.props.room.roomId,this._updateApps),this.dispatcherRef&&p.a.unregister(this.dispatcherRef),this._resizeContainer&&this.resizer.detach(),this.props.resizeNotifier.off("isResizing",this.onIsResizing)}UNSAFE_componentWillReceiveProps(e){this._updateApps()}_createResizer(){const e={onResizeStart:()=>{this._resizeContainer.classList.add("mx_AppsDrawer_resizing")},onResizeStop:()=>{this._resizeContainer.classList.remove("mx_AppsDrawer_resizing"),localStorage.setItem(this._getStorageKey(),JSON.stringify([this.state.apps.map(e=>e.id),...this.state.apps.slice(1).map((e,t)=>this.resizer.forHandleAt(t).size)]))}},t=new w.a({},C.a,e);return t.setClassNames({handle:"mx_ResizeHandle",vertical:"mx_ResizeHandle_vertical",reverse:"mx_ResizeHandle_reverse"}),t}componentDidUpdate(e,t){this._getAppsHash(this.state.apps)!==this._getAppsHash(t.apps)&&this._loadResizerPreferences()}_launchManageIntegrations(){v.a.getValue("feature_many_integration_managers")?b.a.sharedInstance().openAll():b.a.sharedInstance().getPrimaryManager().open(this.props.room,"add_integ")}render(){if(!this.props.showApps)return a.a.createElement("div",null);const e=this.state.apps.map((e,t,n)=>a.a.createElement(h.a,{key:e.id,app:e,fullWidth:n.length<2,room:this.props.room,userId:this.props.userId,creatorUserId:e.creatorUserId,widgetPageTitle:f.a.getWidgetDataTitle(e),waitForIframeLoad:e.waitForIframeLoad}));if(0===e.length)return a.a.createElement("div",null);let t;if(0===e.length&&_.a.roomHasPendingWidgets(this.props.room.roomId,f.a.getRoomWidgets(this.props.room))){const e=m.getComponent("elements.Spinner");t=a.a.createElement(e,null)}const n=u()({mx_AppsDrawer:!0,mx_AppsDrawer_fullWidth:e.length<2,mx_AppsDrawer_resizing:this.state.resizing,mx_AppsDrawer_2apps:2===e.length,mx_AppsDrawer_3apps:3===e.length});return a.a.createElement("div",{className:n},a.a.createElement(O,{id:"apps-drawer_"+this.props.room.roomId,minHeight:100,maxHeight:this.props.maxHeight?this.props.maxHeight-50:void 0,handleClass:"mx_AppsContainer_resizerHandle",className:"mx_AppsContainer_resizer",resizeNotifier:this.props.resizeNotifier},a.a.createElement("div",{className:"mx_AppsContainer",ref:this._collectResizer},e.map((t,n)=>n<1?t:a.a.createElement(a.a.Fragment,{key:t.key},a.a.createElement(T.a,{reverse:n>e.length/2}),t)))),t)}}r()(x,"propTypes",{userId:c.a.string.isRequired,room:c.a.object.isRequired,resizeNotifier:c.a.instanceOf(y.a).isRequired,showApps:c.a.bool}),r()(x,"defaultProps",{showApps:!0});const O=({id:e,minHeight:t,maxHeight:n,className:o,handleWrapperClass:r,handleClass:i,resizeNotifier:s,children:c})=>{const[l,u]=Object(E.a)("pvr_"+e,280);return a.a.createElement(d.Resizable,{size:{height:Math.min(l,n)},minHeight:t,maxHeight:n,onResizeStart:()=>{s.startResizing()},onResize:()=>{s.notifyTimelineHeightChanged()},onResizeStop:(e,t,n,o)=>{u(l+o.height),s.stopResizing()},handleWrapperClass:r,handleClasses:{bottom:i},className:o,enable:{bottom:!0}},c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(82),r=n.n(o),i=n(119),a=n(81),s=n.n(a),c=n(147),l=n(500),u=n(87);class d extends s.a.Component{constructor(e){super(e),r()(this,"dispatcherRef",void 0),r()(this,"onAction",e=>{switch(e.action){case"call_state":{const e=this.getCall();e!==this.state.call&&this.setState({call:e});break}}}),this.state={call:this.getCall()}}componentDidMount(){this.dispatcherRef=u.a.register(this.onAction)}componentWillUnmount(){u.a.unregister(this.dispatcherRef)}getCall(){const e=c.b.sharedInstance().getCallForRoom(this.props.roomId);return e&&[i.e.Ended,i.e.Ringing].includes(e.state)?null:e}render(){return this.state.call?s.a.createElement(l.a,{call:this.state.call,pipMode:!1,onResize:this.props.onResize,maxVideoHeight:this.props.maxVideoHeight}):null}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(90),u=n.n(l),d=n(83),h=n(86),p=n(256),m=n(121),g=n(776),f=n(88),_=n(777),b=n(212),v=n(384),E=n(120),y=n(113);class S extends a.a.Component{constructor(e){super(e),r()(this,"_onRoomStateEvents",(e,t)=>{this.props.room&&e.getRoomId()===this.props.room.roomId&&this._rateLimitedUpdate()}),r()(this,"_onRoomAccountData",(e,t)=>{this.props.room&&t.roomId===this.props.room.roomId&&"im.vector.room.read_pins"===e.getType()&&this._rateLimitedUpdate()}),r()(this,"_rateLimitedUpdate",new p.a((function(){this.forceUpdate()}),500)),r()(this,"_onRoomNameChange",e=>{this.forceUpdate()}),this._topic=Object(i.createRef)()}componentDidMount(){const e=h.a.get();e.on("RoomState.events",this._onRoomStateEvents),e.on("Room.accountData",this._onRoomAccountData),this.props.room&&this.props.room.on("Room.name",this._onRoomNameChange)}componentDidUpdate(){this._topic.current&&Object(m.f)(this._topic.current)}componentWillUnmount(){this.props.room&&this.props.room.removeListener("Room.name",this._onRoomNameChange);const e=h.a.get();e&&(e.removeListener("RoomState.events",this._onRoomStateEvents),e.removeListener("Room.accountData",this._onRoomAccountData))}_hasUnreadPins(){const e=this.props.room.currentState.getStateEvents("m.room.pinned_events","");if(!e)return!1;if(e.getContent().pinned&&e.getContent().pinned.length<=0)return!1;const t=this.props.room.getAccountData("im.vector.room.read_pins");if(t&&t.getContent()){const n=t.getContent().event_ids||[];if(n)return!n.includes(e.getId())}return!0}_hasPins(){const e=this.props.room.currentState.getStateEvents("m.room.pinned_events","");return!!e&&!(e.getContent().pinned&&e.getContent().pinned.length<=0)}render(){let e=null,t=null,n=null;this.props.onCancelClick&&(t=a.a.createElement(g.a,{onClick:this.props.onCancelClick})),this.props.searchInfo&&void 0!==this.props.searchInfo.searchCount&&null!==this.props.searchInfo.searchCount&&(e=a.a.createElement("div",{className:"mx_RoomHeader_searchStatus"}," ",Object(d.a)("(~%(count)s results)",{count:this.props.searchInfo.searchCount})));let o=!1;const r=this.props.room?this.props.room.getJoinedMembers():void 0;if(r&&1===r.length&&r[0].userId===h.a.get().credentials.userId){const e=this.props.room.currentState.getStateEvents("m.room.name","");e&&e.getContent().name||(o=!0)}let i=Object(d.a)("Join Room");this.props.oobData&&this.props.oobData.name?i=this.props.oobData.name:this.props.room&&(i=this.props.room.name);const s=u()("mx_RoomHeader_nametext",{mx_RoomHeader_settingsHint:o}),c=a.a.createElement("div",{className:"mx_RoomHeader_name",onClick:this.props.onSettingsClick},a.a.createElement("div",{dir:"auto",className:s,title:i},i),e);let l;if(this.props.room){const e=this.props.room.currentState.getStateEvents("m.room.topic","");e&&(l=e.getContent().topic)}const p=a.a.createElement("div",{className:"mx_RoomHeader_topic",ref:this._topic,title:l,dir:"auto"},l);let m,S,T,w;if(this.props.room&&(m=a.a.createElement(v.a,{room:this.props.room,avatarSize:32,tag:E.a.Untagged,oobData:this.props.oobData,viewAvatarOnClick:!0})),this.props.onPinnedClick&&f.a.getValue("feature_pinning")){let e=null;this._hasUnreadPins()?e=a.a.createElement("div",{className:"mx_RoomHeader_pinsIndicator mx_RoomHeader_pinsIndicatorUnread"}):this._hasPins()&&(e=a.a.createElement("div",{className:"mx_RoomHeader_pinsIndicator"})),n=a.a.createElement(y.a,{className:"mx_RoomHeader_button mx_RoomHeader_pinnedButton",onClick:this.props.onPinnedClick,title:Object(d.a)("Pinned Messages")},e)}this.props.onForgetClick&&(S=a.a.createElement(y.a,{className:"mx_RoomHeader_button mx_RoomHeader_forgetButton",onClick:this.props.onForgetClick,title:Object(d.a)("Forget room")})),this.props.onAppsClick&&(T=a.a.createElement(y.a,{className:u()("mx_RoomHeader_button mx_RoomHeader_appsButton",{mx_RoomHeader_appsButton_highlight:this.props.appsShown}),onClick:this.props.onAppsClick,title:this.props.appsShown?Object(d.a)("Hide Widgets"):Object(d.a)("Show Widgets")})),this.props.onSearchClick&&this.props.inRoom&&(w=a.a.createElement(y.a,{className:"mx_RoomHeader_button mx_RoomHeader_searchButton",onClick:this.props.onSearchClick,title:Object(d.a)("Search")}));const C=a.a.createElement("div",{className:"mx_RoomHeader_buttons"},n,S,T,w),x=this.props.e2eStatus?a.a.createElement(b.b,{status:this.props.e2eStatus}):void 0;return a.a.createElement("div",{className:"mx_RoomHeader light-panel"},a.a.createElement("div",{className:"mx_RoomHeader_wrapper","aria-owns":"mx_RightPanel"},a.a.createElement("div",{className:"mx_RoomHeader_avatar"},m),a.a.createElement("div",{className:"mx_RoomHeader_e2eIcon"},x),c,p,t,C,a.a.createElement(_.a,null)))}}r()(S,"propTypes",{room:c.a.object,oobData:c.a.object,inRoom:c.a.bool,onSettingsClick:c.a.func,onPinnedClick:c.a.func,onSearchClick:c.a.func,onLeaveClick:c.a.func,onCancelClick:c.a.func,e2eStatus:c.a.string,onAppsClick:c.a.func,appsShown:c.a.bool}),r()(S,"defaultProps",{editing:!1,inRoom:!1,onCancelClick:null})},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(91),u=n(85),d=n(83);function h(e){const{onClick:t}=e;return a.a.createElement(l.a,{className:"mx_RoomHeader_cancelButton",onClick:t},a.a.createElement("img",{src:n(219),className:"mx_filterFlipColor",width:"18",height:"18",alt:Object(d.a)("Cancel")}))}class p extends a.a.Component{render(){let e,t;if(this.props.onCancelClick&&(e=a.a.createElement(h,{onClick:this.props.onCancelClick})),this.props.icon){const e=u.getComponent("elements.TintableSvg");t=a.a.createElement(e,{className:"mx_RoomHeader_icon",src:this.props.icon,width:"25",height:"25"})}return a.a.createElement("div",{className:"mx_RoomHeader"},a.a.createElement("div",{className:"mx_RoomHeader_wrapper"},a.a.createElement("div",{className:"mx_RoomHeader_simpleHeader"},t,this.props.title,e)))}}r()(p,"propTypes",{title:c.a.string,onCancelClick:c.a.func,icon:c.a.string})},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(83),c=n(510),l=n(511),u=n(118),d=n(93),h=n(308);const p=[u.b.RoomSummary,u.b.Widget,u.b.FilePanel,u.b.RoomMemberList,u.b.RoomMemberInfo,u.b.EncryptionPanel,u.b.Room3pidMemberInfo];class m extends l.b{constructor(e){super(e,l.a.Room),r()(this,"onRoomSummaryClicked",()=>{const e=h.a.getSharedInstance().roomPanelPhase;p.includes(e)?this.state.phase===e?this.setPhase(e):this.setPhase(e,h.a.getSharedInstance().roomPanelPhaseParams):this.setPhase(u.b.RoomSummary)}),r()(this,"onNotificationsClicked",()=>{this.setPhase(u.b.NotificationPanel)})}onAction(e){e.action===d.a.ViewUser?e.member?this.setPhase(u.b.RoomMemberInfo,{member:e.member}):this.setPhase(u.b.RoomMemberList):"view_3pid_invite"===e.action&&(e.event?this.setPhase(u.b.Room3pidMemberInfo,{event:e.event}):this.setPhase(u.b.RoomMemberList))}renderButtons(){return[a.a.createElement(c.a,{key:"notifsButton",name:"notifsButton",title:Object(s.a)("Notifications"),isHighlighted:this.isPhase(u.b.NotificationPanel),onClick:this.onNotificationsClicked,analytics:["Right Panel","Notification List Button","click"]}),a.a.createElement(c.a,{key:"roomSummaryButton",name:"roomSummaryButton",title:Object(s.a)("Room Info"),isHighlighted:this.isPhase(p),onClick:this.onRoomSummaryClicked,analytics:["Right Panel","Room Summary Button","click"]})]}}},function(e,t,n){"use strict";var o=n(81),r=n.n(o),i=n(87),a=n(199);t.a=({roomWidth:e})=>{const t=Object(o.useRef)(null),s=Object(o.useRef)(new Map);return Object(o.useEffect)(()=>{const e=()=>{t.current&&(t.current.height=window.innerHeight)},o=i.a.register(e=>{if(0===e.action.indexOf("effects.")){(async e=>{if(!e)return null;let t=s.current[e]||null;if(null===t){var o;const r=null===(o=a.CHAT_EFFECTS.find(t=>t.command===e))||void 0===o?void 0:o.options;try{const{default:o}=await n(1365)("./"+e);t=new o(r),s.current[e]=t}catch(e){console.warn("Unable to load effect module at '../../../effects/${name}'.",e)}}return t})(e.action.substr("effects.".length)).then(e=>null==e?void 0:e.start(t.current))}});return t.current.height=window.innerHeight,window.addEventListener("resize",e,!0),()=>{i.a.unregister(o),window.removeEventListener("resize",e);const t=s.current;for(const e in t){const n=t[e];n&&n.isRunning&&n.stop()}}},[]),r.a.createElement("canvas",{ref:t,width:e,style:{display:"block",zIndex:999999,pointerEvents:"none",position:"fixed",top:0,right:0}})}},function(e,t,n){"use strict";const o=n(172),r=n(376),i=n(780);e.exports=class extends o{constructor(e){super(e),this.tokenizer=e,this.posTracker=o.install(e.preprocessor,i),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const n={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.ctLoc},_createCharacterToken(n,o){t._createCharacterToken.call(this,n,o),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const n=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=n.startLine,this.currentCharacterToken.location.endCol=n.startCol,this.currentCharacterToken.location.endOffset=n.startOffset),this.currentToken.type===r.EOF_TOKEN?(n.endLine=n.startLine,n.endCol=n.startCol,n.endOffset=n.startOffset):(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col+1,n.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const n=this.currentCharacterToken&&this.currentCharacterToken.location;n&&-1===n.endOffset&&(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col,n.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(r.MODE).forEach(o=>{const i=r.MODE[o];n[i]=function(n){e.ctLoc=e._getCurrentLocation(),t[i].call(this,n)}}),n}}},function(e,t,n){"use strict";const o=n(172);e.exports=class extends o{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const n=this.pos+1,o=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===o||"\r"===o&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const n=this.pos;t.dropParsedChunk.call(this);const o=n-this.pos;e.lineStartPos-=o,e.droppedBufferSize+=o,e.offset=e.droppedBufferSize+this.pos}}}}},function(e,t,n){"use strict";const{DOCUMENT_MODE:o}=n(220);t.createDocument=function(){return{nodeName:"#document",mode:o.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const r=function(e){return{nodeName:"#text",value:e,parentNode:null}},i=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=function(e,t,n){const o=e.childNodes.indexOf(n);e.childNodes.splice(o,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,o){let r=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){r=e.childNodes[t];break}r?(r.name=t,r.publicId=n,r.systemId=o):i(e,{nodeName:"#documentType",name:t,publicId:n,systemId:o})},t.setDocumentMode=function(e,t){e.mode=t},t.getDocumentMode=function(e){return e.mode},t.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if("#text"===n.nodeName)return void(n.value+=t)}i(e,r(t))},t.insertTextBefore=function(e,t,n){const o=e.childNodes[e.childNodes.indexOf(n)-1];o&&"#text"===o.nodeName?o.value+=t:a(e,r(t),n)},t.adoptAttributes=function(e,t){const n=[];for(let t=0;t<e.attrs.length;t++)n.push(e.attrs[t].name);for(let o=0;o<t.length;o++)-1===n.indexOf(t[o].name)&&e.attrs.push(t[o])},t.getFirstChild=function(e){return e.childNodes[0]},t.getChildNodes=function(e){return e.childNodes},t.getParentNode=function(e){return e.parentNode},t.getAttrList=function(e){return e.attrs},t.getTagName=function(e){return e.tagName},t.getNamespaceURI=function(e){return e.namespaceURI},t.getTextNodeContent=function(e){return e.value},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e.name},t.getDocumentTypeNodePublicId=function(e){return e.publicId},t.getDocumentTypeNodeSystemId=function(e){return e.systemId},t.isTextNode=function(e){return"#text"===e.nodeName},t.isCommentNode=function(e){return"#comment"===e.nodeName},t.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},t.isElementNode=function(e){return!!e.tagName},t.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},t.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation}},function(e,t,n){"use strict";e.exports=function(e,t){return[e,t=t||Object.create(null)].reduce((e,t)=>(Object.keys(t).forEach(n=>{e[n]=t[n]}),e),Object.create(null))}},function(e,t,n){"use strict";const{DOCUMENT_MODE:o}=n(220),r=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],i=r.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),a=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],s=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],c=s.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function l(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function u(e,t){for(let n=0;n<t.length;n++)if(0===e.indexOf(t[n]))return!0;return!1}t.isConforming=function(e){return"html"===e.name&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},t.getDocumentMode=function(e){if("html"!==e.name)return o.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return o.QUIRKS;let n=e.publicId;if(null!==n){if(n=n.toLowerCase(),a.indexOf(n)>-1)return o.QUIRKS;let e=null===t?i:r;if(u(n,e))return o.QUIRKS;if(e=null===t?s:c,u(n,e))return o.LIMITED_QUIRKS}return o.NO_QUIRKS},t.serializeContent=function(e,t,n){let o="!DOCTYPE ";return e&&(o+=e),t?o+=" PUBLIC "+l(t):n&&(o+=" SYSTEM"),null!==n&&(o+=" "+l(n)),o}},function(e,t){e.exports=/[:=](?:\'(?:\-[\(\)DO\[\]o\{\}]|[\(\)DO\[\]o\{\}])|\{>|\-[#\$&\(-\*\/3<>-@B-EJLOPSXZ-\]cjlopsxz-\}]|[#\$&\(-\*\/3<>-@B-EJLOPSXZ-\]cjlopsxz\|\}])|[Oo][:=](?:\-[\)\]\}]|[\)\]\}])|>(?:[:=](?:\-[\(\)\/\[-\]\{\}]|[\(\)\/\[-\]\{\}])|0(?:\-[\)\]\}]|[\)\]\}]))|%(?:\-[\(\[\{]|[\(\[\{])|\\[Mm]\/|D(?:\-[:=Xx]|[:=Xx])|8(?:\-[#\)D\]\}]|[#\)D\]\}])|;(?:\-[\)P\]p\}]|[\)P\]p\}])|x(?:\-[\(D\[op\{]|[\(D\[op\{])|X(?:\-[\(DOP\[\{]|[\(DOP\[\{])|<\/?3|[:=]\{/},function(e,t,n){"use strict";(function(e){var o=n(81),r=n.n(o),i=n(164),a=n(97),s=n(227),c=n(123),l=n(83),u=n(91),d=n(393),h=n(196),p=n(87),m=n(93);t.a=()=>{const t=Object(o.useContext)(a.a),{room:n,roomId:g}=Object(o.useContext)(s.a),f=c.a.shared().getUserIdForRoomId(g);let _;if(f){let e;n.getJoinedMemberCount()+n.getInvitedMemberCount()===2&&(e=Object(l.a)("Only the two of you are in this conversation, unless either of you invites anyone to join."));const t=null==n?void 0:n.getMember(f),o=(null==t?void 0:t.rawDisplayName)||f;_=r.a.createElement(r.a.Fragment,null,r.a.createElement(h.a,{room:n,width:d.a,height:d.a,onClick:()=>{p.a.dispatch({action:m.a.ViewUser,member:t||{userId:f}})}}),r.a.createElement("h2",null,n.name),r.a.createElement("p",null,Object(l.a)("This is the beginning of your direct message history with <displayName/>.",{},{displayName:()=>r.a.createElement("b",null,o)})),e&&r.a.createElement("p",null,e))}else{var b,v,E,y,S,T,w;const o=n&&"join"===n.getMyMembership(),a=null===(b=n.currentState.getStateEvents(i.a.RoomTopic,""))||void 0===b||null===(v=b.getContent())||void 0===v?void 0:v.topic,s=o&&n.currentState.maySendStateEvent(i.a.RoomTopic,t.getUserId()),c=()=>{p.a.dispatch({action:"open_room_settings",room_id:g},!0),e(()=>{window.document.getElementById("profileTopic").focus()})};let m;s&&a?m=Object(l.a)("Topic: %(topic)s (<a>edit</a>)",{topic:a},{a:e=>r.a.createElement(u.a,{kind:"link",onClick:c},e)}):a?m=Object(l.a)("Topic: %(topic)s ",{topic:a}):s&&(m=Object(l.a)("<a>Add a topic</a> to help people know what it is about.",{},{a:e=>r.a.createElement(u.a,{kind:"link",onClick:c},e)}));const f=null===(E=n.currentState.getStateEvents(i.a.RoomCreate,""))||void 0===E?void 0:E.getSender(),C=(null==n||null===(y=n.getMember(f))||void 0===y?void 0:y.rawDisplayName)||f;let x;x=f===t.getUserId()?Object(l.a)("You created this room."):Object(l.a)("%(displayName)s created this room.",{displayName:C});let O=o;const k=null===(S=n.currentState.getStateEvents(i.a.RoomPowerLevels,""))||void 0===S?void 0:S.getContent(),R=n.getMember(t.getUserId());let A;if(k&&R&&k.invite>R.powerLevel&&(O=!1),O){const e=()=>{p.a.dispatch({action:"view_invite",roomId:g})};A=r.a.createElement("div",{className:"mx_NewRoomIntro_buttons"},r.a.createElement(u.a,{className:"mx_NewRoomIntro_inviteButton",kind:"primary",onClick:e},Object(l.a)("Invite to this room")))}const I=null===(T=n.currentState.getStateEvents(i.a.RoomAvatar,""))||void 0===T||null===(w=T.getContent())||void 0===w?void 0:w.url;_=r.a.createElement(r.a.Fragment,null,r.a.createElement(d.b,{hasAvatar:!!I,noAvatarLabel:Object(l.a)("Add a photo, so people can easily spot your room."),setAvatarUrl:e=>t.sendStateEvent(g,i.a.RoomAvatar,{url:e},"")},r.a.createElement(h.a,{room:n,width:d.a,height:d.a})),r.a.createElement("h2",null,n.name),r.a.createElement("p",null,x," ",Object(l.a)("This is the start of <roomName/>.",{},{roomName:()=>r.a.createElement("b",null,n.name)})),r.a.createElement("p",null,m),A)}return r.a.createElement("div",{className:"mx_NewRoomIntro"},_)}}).call(this,n(149).setImmediate)},function(e,t,n){"use strict";var o=n(81),r=n.n(o),i=n(134),a=n(157),s=n(542);t.a=({description:e,acceptLabel:t,dismissLabel:n,onAccept:o,onDismiss:c,toastKey:l,numSeconds:u})=>{const d=()=>{c&&c(),i.a.sharedInstance().dismissToast(l)},h=Object(s.a)(d,1e3,u);let p=n;return h>0&&(p+=` (${h})`),r.a.createElement(a.a,{description:e,acceptLabel:t,onAccept:o,rejectLabel:p,onReject:d})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(16),u=n.n(l),d=n(83),h=n(356),p=n.n(h),m=n(87),g=n(86),f=n(90),_=n.n(f),b=n(97),v=n(114);class E extends a.a.PureComponent{constructor(e,t){super(e,t),r()(this,"onAction",e=>{"client_started"===e.action&&this.forceUpdate()}),this._dispatcherRef=null,this.state={page:""}}translate(e){return p()(Object(d.a)(e))}componentDidMount(){this._unmounted=!1,this.props.url&&(u()({method:"GET",url:this.props.url},(e,t,n)=>{if(!this._unmounted){if(e||t.status<200||t.status>=300)return console.warn("Error loading page: "+e),void this.setState({page:Object(d.a)("Couldn't load page")});n=n.replace(/_t\(['"]([\s\S]*?)['"]\)/gm,(e,t)=>this.translate(t)),this.props.replaceMap&&Object.keys(this.props.replaceMap).forEach(e=>{n=n.split(e).join(this.props.replaceMap[e])}),this.setState({page:n})}}),this._dispatcherRef=m.a.register(this.onAction))}componentWillUnmount(){this._unmounted=!0,null!==this._dispatcherRef&&m.a.unregister(this._dispatcherRef)}render(){const e=this.context||g.a.get(),t=!e||e.isGuest(),n=this.props.className,o=_()({[n]:!0,[n+"_guest"]:t,[n+"_loggedIn"]:!!e}),r=a.a.createElement("div",{className:n+"_body",dangerouslySetInnerHTML:{__html:this.state.page}});return this.props.scrollbar?a.a.createElement(v.a,{className:o},r):a.a.createElement("div",{className:o},r)}}r()(E,"propTypes",{url:c.a.string,className:c.a.string,scrollbar:c.a.bool,replaceMap:c.a.object}),r()(E,"contextType",b.a)},function(e,t){e.exports="img/icons-create-room.817ede2.svg"},function(e,t){e.exports="img/cancel-small.495f44c.svg"},function(e,t,n){var o=n(1384);o.registerLanguage("1c",n(1385)),o.registerLanguage("abnf",n(1386)),o.registerLanguage("accesslog",n(1387)),o.registerLanguage("actionscript",n(1388)),o.registerLanguage("ada",n(1389)),o.registerLanguage("angelscript",n(1390)),o.registerLanguage("apache",n(1391)),o.registerLanguage("applescript",n(1392)),o.registerLanguage("arcade",n(1393)),o.registerLanguage("arduino",n(1394)),o.registerLanguage("armasm",n(1395)),o.registerLanguage("xml",n(1396)),o.registerLanguage("asciidoc",n(1397)),o.registerLanguage("aspectj",n(1398)),o.registerLanguage("autohotkey",n(1399)),o.registerLanguage("autoit",n(1400)),o.registerLanguage("avrasm",n(1401)),o.registerLanguage("awk",n(1402)),o.registerLanguage("axapta",n(1403)),o.registerLanguage("bash",n(1404)),o.registerLanguage("basic",n(1405)),o.registerLanguage("bnf",n(1406)),o.registerLanguage("brainfuck",n(1407)),o.registerLanguage("c-like",n(1408)),o.registerLanguage("c",n(1409)),o.registerLanguage("cal",n(1410)),o.registerLanguage("capnproto",n(1411)),o.registerLanguage("ceylon",n(1412)),o.registerLanguage("clean",n(1413)),o.registerLanguage("clojure",n(1414)),o.registerLanguage("clojure-repl",n(1415)),o.registerLanguage("cmake",n(1416)),o.registerLanguage("coffeescript",n(1417)),o.registerLanguage("coq",n(1418)),o.registerLanguage("cos",n(1419)),o.registerLanguage("cpp",n(1420)),o.registerLanguage("crmsh",n(1421)),o.registerLanguage("crystal",n(1422)),o.registerLanguage("csharp",n(1423)),o.registerLanguage("csp",n(1424)),o.registerLanguage("css",n(1425)),o.registerLanguage("d",n(1426)),o.registerLanguage("markdown",n(1427)),o.registerLanguage("dart",n(1428)),o.registerLanguage("delphi",n(1429)),o.registerLanguage("diff",n(1430)),o.registerLanguage("django",n(1431)),o.registerLanguage("dns",n(1432)),o.registerLanguage("dockerfile",n(1433)),o.registerLanguage("dos",n(1434)),o.registerLanguage("dsconfig",n(1435)),o.registerLanguage("dts",n(1436)),o.registerLanguage("dust",n(1437)),o.registerLanguage("ebnf",n(1438)),o.registerLanguage("elixir",n(1439)),o.registerLanguage("elm",n(1440)),o.registerLanguage("ruby",n(1441)),o.registerLanguage("erb",n(1442)),o.registerLanguage("erlang-repl",n(1443)),o.registerLanguage("erlang",n(1444)),o.registerLanguage("excel",n(1445)),o.registerLanguage("fix",n(1446)),o.registerLanguage("flix",n(1447)),o.registerLanguage("fortran",n(1448)),o.registerLanguage("fsharp",n(1449)),o.registerLanguage("gams",n(1450)),o.registerLanguage("gauss",n(1451)),o.registerLanguage("gcode",n(1452)),o.registerLanguage("gherkin",n(1453)),o.registerLanguage("glsl",n(1454)),o.registerLanguage("gml",n(1455)),o.registerLanguage("go",n(1456)),o.registerLanguage("golo",n(1457)),o.registerLanguage("gradle",n(1458)),o.registerLanguage("groovy",n(1459)),o.registerLanguage("haml",n(1460)),o.registerLanguage("handlebars",n(1461)),o.registerLanguage("haskell",n(1462)),o.registerLanguage("haxe",n(1463)),o.registerLanguage("hsp",n(1464)),o.registerLanguage("htmlbars",n(1465)),o.registerLanguage("http",n(1466)),o.registerLanguage("hy",n(1467)),o.registerLanguage("inform7",n(1468)),o.registerLanguage("ini",n(1469)),o.registerLanguage("irpf90",n(1470)),o.registerLanguage("isbl",n(1471)),o.registerLanguage("java",n(1472)),o.registerLanguage("javascript",n(1473)),o.registerLanguage("jboss-cli",n(1474)),o.registerLanguage("json",n(1475)),o.registerLanguage("julia",n(1476)),o.registerLanguage("julia-repl",n(1477)),o.registerLanguage("kotlin",n(1478)),o.registerLanguage("lasso",n(1479)),o.registerLanguage("latex",n(1480)),o.registerLanguage("ldif",n(1481)),o.registerLanguage("leaf",n(1482)),o.registerLanguage("less",n(1483)),o.registerLanguage("lisp",n(1484)),o.registerLanguage("livecodeserver",n(1485)),o.registerLanguage("livescript",n(1486)),o.registerLanguage("llvm",n(1487)),o.registerLanguage("lsl",n(1488)),o.registerLanguage("lua",n(1489)),o.registerLanguage("makefile",n(1490)),o.registerLanguage("mathematica",n(1491)),o.registerLanguage("matlab",n(1492)),o.registerLanguage("maxima",n(1493)),o.registerLanguage("mel",n(1494)),o.registerLanguage("mercury",n(1495)),o.registerLanguage("mipsasm",n(1496)),o.registerLanguage("mizar",n(1497)),o.registerLanguage("perl",n(1498)),o.registerLanguage("mojolicious",n(1499)),o.registerLanguage("monkey",n(1500)),o.registerLanguage("moonscript",n(1501)),o.registerLanguage("n1ql",n(1502)),o.registerLanguage("nginx",n(1503)),o.registerLanguage("nim",n(1504)),o.registerLanguage("nix",n(1505)),o.registerLanguage("node-repl",n(1506)),o.registerLanguage("nsis",n(1507)),o.registerLanguage("objectivec",n(1508)),o.registerLanguage("ocaml",n(1509)),o.registerLanguage("openscad",n(1510)),o.registerLanguage("oxygene",n(1511)),o.registerLanguage("parser3",n(1512)),o.registerLanguage("pf",n(1513)),o.registerLanguage("pgsql",n(1514)),o.registerLanguage("php",n(1515)),o.registerLanguage("php-template",n(1516)),o.registerLanguage("plaintext",n(1517)),o.registerLanguage("pony",n(1518)),o.registerLanguage("powershell",n(1519)),o.registerLanguage("processing",n(1520)),o.registerLanguage("profile",n(1521)),o.registerLanguage("prolog",n(1522)),o.registerLanguage("properties",n(1523)),o.registerLanguage("protobuf",n(1524)),o.registerLanguage("puppet",n(1525)),o.registerLanguage("purebasic",n(1526)),o.registerLanguage("python",n(1527)),o.registerLanguage("python-repl",n(1528)),o.registerLanguage("q",n(1529)),o.registerLanguage("qml",n(1530)),o.registerLanguage("r",n(1531)),o.registerLanguage("reasonml",n(1532)),o.registerLanguage("rib",n(1533)),o.registerLanguage("roboconf",n(1534)),o.registerLanguage("routeros",n(1535)),o.registerLanguage("rsl",n(1536)),o.registerLanguage("ruleslanguage",n(1537)),o.registerLanguage("rust",n(1538)),o.registerLanguage("sas",n(1539)),o.registerLanguage("scala",n(1540)),o.registerLanguage("scheme",n(1541)),o.registerLanguage("scilab",n(1542)),o.registerLanguage("scss",n(1543)),o.registerLanguage("shell",n(1544)),o.registerLanguage("smali",n(1545)),o.registerLanguage("smalltalk",n(1546)),o.registerLanguage("sml",n(1547)),o.registerLanguage("sqf",n(1548)),o.registerLanguage("sql",n(1549)),o.registerLanguage("stan",n(1550)),o.registerLanguage("stata",n(1551)),o.registerLanguage("step21",n(1552)),o.registerLanguage("stylus",n(1553)),o.registerLanguage("subunit",n(1554)),o.registerLanguage("swift",n(1555)),o.registerLanguage("taggerscript",n(1556)),o.registerLanguage("yaml",n(1557)),o.registerLanguage("tap",n(1558)),o.registerLanguage("tcl",n(1559)),o.registerLanguage("thrift",n(1560)),o.registerLanguage("tp",n(1561)),o.registerLanguage("twig",n(1562)),o.registerLanguage("typescript",n(1563)),o.registerLanguage("vala",n(1564)),o.registerLanguage("vbnet",n(1565)),o.registerLanguage("vbscript",n(1566)),o.registerLanguage("vbscript-html",n(1567)),o.registerLanguage("verilog",n(1568)),o.registerLanguage("vhdl",n(1569)),o.registerLanguage("vim",n(1570)),o.registerLanguage("x86asm",n(1571)),o.registerLanguage("xl",n(1572)),o.registerLanguage("xquery",n(1573)),o.registerLanguage("zephir",n(1574)),e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var o=n(81),r=n.n(o),i=n(135),a=n.n(i),s=n(86),c=n(88),l=n(225),u=n(85);function d(e,t,n){const o=s.a.get().getRoom(t.getRoomId()),i=c.a.getValue("Pill.shouldShowPillAvatar");let h=e[0];for(;h;){let e=!1;if("A"===h.tagName&&h.getAttribute("href")){const t=h.getAttribute("href"),s=u.getComponent("elements.Pill");if(s.isMessagePillUrl(t)){const c=document.createElement("span"),l=r.a.createElement(s,{url:t,inMessage:!0,room:o,shouldShowPillAvatar:i});a.a.render(l,c),h.parentNode.replaceChild(c,h),n.push(c),e=!0,h=c}}else if(h.nodeType===Node.TEXT_NODE&&!h.parentElement.classList.contains("mx_AtRoomPill")){const e=u.getComponent("elements.Pill");let c=h;const d=[];for(;null!==c;){const t=e.roomNotifPos(c.textContent);let n=null;if(t>-1){let o=c;t>0&&(o=o.splitText(t)),o.textContent.length>e.roomNotifLen()&&(n=o.splitText(e.roomNotifLen())),d.push(o)}c=n}if(d.length>0){const c=new l.a(s.a.get()),u=c.getPushRuleById(".m.rule.roomnotif");if(u&&c.ruleMatchesEvent(u,t)){for(const t of d){h=t.nextSibling;const s=document.createElement("span"),c=r.a.createElement(e,{type:e.TYPE_AT_ROOM_MENTION,inMessage:!0,room:o,shouldShowPillAvatar:i});a.a.render(c,s),t.parentNode.replaceChild(s,t),n.push(s)}continue}}}h.childNodes&&h.childNodes.length&&!e&&d(h.childNodes,t,n),h=h.nextSibling}}function h(e){for(const t of e)a.a.unmountComponentAtNode(t)}},function(e,t,n){var o,r;!function(e){"use strict";if(!e.jQuery){var t=function(e,n){return new t.fn.init(e,n)};t.isWindow=function(e){return e&&e===e.window},t.type=function(e){return e?"object"==typeof e||"function"==typeof e?o[i.call(e)]||"object":typeof e:e+""},t.isArray=Array.isArray||function(e){return"array"===t.type(e)},t.isPlainObject=function(e){var n;if(!e||"object"!==t.type(e)||e.nodeType||t.isWindow(e))return!1;try{if(e.constructor&&!r.call(e,"constructor")&&!r.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(n in e);return void 0===n||r.call(e,n)},t.each=function(e,t,n){var o=0,r=e.length,i=c(e);if(n){if(i)for(;o<r&&!1!==t.apply(e[o],n);o++);else for(o in e)if(e.hasOwnProperty(o)&&!1===t.apply(e[o],n))break}else if(i)for(;o<r&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(e.hasOwnProperty(o)&&!1===t.call(e[o],o,e[o]))break;return e},t.data=function(e,o,r){if(void 0===r){var i=e[t.expando],a=i&&n[i];if(void 0===o)return a;if(a&&o in a)return a[o]}else if(void 0!==o){var s=e[t.expando]||(e[t.expando]=++t.uuid);return n[s]=n[s]||{},n[s][o]=r,r}},t.removeData=function(e,o){var r=e[t.expando],i=r&&n[r];i&&(o?t.each(o,(function(e,t){delete i[t]})):delete n[r])},t.extend=function(){var e,n,o,r,i,a,s=arguments[0]||{},c=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[c]||{},c++),"object"!=typeof s&&"function"!==t.type(s)&&(s={}),c===l&&(s=this,c--);c<l;c++)if(i=arguments[c])for(r in i)i.hasOwnProperty(r)&&(e=s[r],s!==(o=i[r])&&(u&&o&&(t.isPlainObject(o)||(n=t.isArray(o)))?(n?(n=!1,a=e&&t.isArray(e)?e:[]):a=e&&t.isPlainObject(e)?e:{},s[r]=t.extend(u,a,o)):void 0!==o&&(s[r]=o)));return s},t.queue=function(e,n,o){if(e){n=(n||"fx")+"queue";var r,i,a,s=t.data(e,n);return o?(!s||t.isArray(o)?s=t.data(e,n,(a=i||[],(r=o)&&(c(Object(r))?function(e,t){for(var n=+t.length,o=0,r=e.length;o<n;)e[r++]=t[o++];if(n!=n)for(;void 0!==t[o];)e[r++]=t[o++];e.length=r}(a,"string"==typeof r?[r]:r):[].push.call(a,r)),a)):s.push(o),s):s||[]}},t.dequeue=function(e,n){t.each(e.nodeType?[e]:e,(function(e,o){n=n||"fx";var r=t.queue(o,n),i=r.shift();"inprogress"===i&&(i=r.shift()),i&&("fx"===n&&r.unshift("inprogress"),i.call(o,(function(){t.dequeue(o,n)})))}))},t.fn=t.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){var e=this[0],n=function(e){for(var t=e.offsetParent;t&&"html"!==t.nodeName.toLowerCase()&&t.style&&"static"===t.style.position.toLowerCase();)t=t.offsetParent;return t||document}(e),o=this.offset(),r=/^(?:body|html)$/i.test(n.nodeName)?{top:0,left:0}:t(n).offset();return o.top-=parseFloat(e.style.marginTop)||0,o.left-=parseFloat(e.style.marginLeft)||0,n.style&&(r.top+=parseFloat(n.style.borderTopWidth)||0,r.left+=parseFloat(n.style.borderLeftWidth)||0),{top:o.top-r.top,left:o.left-r.left}}};var n={};t.expando="velocity"+(new Date).getTime(),t.uuid=0;for(var o={},r=o.hasOwnProperty,i=o.toString,a="Boolean Number String Function Array Date RegExp Object Error".split(" "),s=0;s<a.length;s++)o["[object "+a[s]+"]"]=a[s].toLowerCase();t.fn.init.prototype=t.fn,e.Velocity={Utilities:t}}function c(e){var n=e.length,o=t.type(e);return"function"!==o&&!t.isWindow(e)&&(!(1!==e.nodeType||!n)||("array"===o||0===n||"number"==typeof n&&n>0&&n-1 in e))}}(window),function(i){"use strict";"object"==typeof e.exports?e.exports=i():void 0===(r="function"==typeof(o=i)?o.call(t,n,t,e):o)||(e.exports=r)}((function(){"use strict";return function(e,t,n,o){var r,i=function(){if(n.documentMode)return n.documentMode;for(var e=7;e>4;e--){var t=n.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]><span></span><![endif]--\x3e",t.getElementsByTagName("span").length)return t=null,e}}(),a=(r=0,t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(e){var t,n=(new Date).getTime();return t=Math.max(0,16-(n-r)),r=n+t,setTimeout((function(){e(n+t)}),t)}),s=function(){var e=t.performance||{};if("function"!=typeof e.now){var n=e.timing&&e.timing.navigationStart?e.timing.navigationStart:(new Date).getTime();e.now=function(){return(new Date).getTime()-n}}return e}();var c=function(){var e=Array.prototype.slice;try{return e.call(n.documentElement),e}catch(t){return function(t,n){var o=this.length;if("number"!=typeof t&&(t=0),"number"!=typeof n&&(n=o),this.slice)return e.call(this,t,n);var r,i=[],a=t>=0?t:Math.max(0,o+t),s=(n<0?o+n:Math.min(n,o))-a;if(s>0)if(i=new Array(s),this.charAt)for(r=0;r<s;r++)i[r]=this.charAt(a+r);else for(r=0;r<s;r++)i[r]=this[a+r];return i}}}(),l=function(){return Array.prototype.includes?function(e,t){return e.includes(t)}:Array.prototype.indexOf?function(e,t){return e.indexOf(t)>=0}:function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}};function u(e){return h.isWrapped(e)?e=c.call(e):h.isNode(e)&&(e=[e]),e}var d,h={isNumber:function(e){return"number"==typeof e},isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isWrapped:function(e){return e&&e!==t&&h.isNumber(e.length)&&!h.isString(e)&&!h.isFunction(e)&&!h.isNode(e)&&(0===e.length||h.isNode(e[0]))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}},p=!1;if(e.fn&&e.fn.jquery?(d=e,p=!0):d=t.Velocity.Utilities,i<=8&&!p)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(i<=7)){var m={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t.navigator.userAgent),isAndroid:/Android/i.test(t.navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(t.navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(t.navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:d,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:400,easing:"swing",begin:void 0,complete:void 0,progress:void 0,display:void 0,visibility:void 0,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(e){d.data(e,"velocity",{isSVG:h.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:2},debug:!1,timestamp:!0,pauseAll:function(e){var t=(new Date).getTime();d.each(m.State.calls,(function(t,n){if(n){if(void 0!==e&&(n[2].queue!==e||!1===n[2].queue))return!0;n[5]={resume:!1}}})),d.each(m.State.delayedElements,(function(e,n){n&&y(n,t)}))},resumeAll:function(e){var t=(new Date).getTime();d.each(m.State.calls,(function(t,n){if(n){if(void 0!==e&&(n[2].queue!==e||!1===n[2].queue))return!0;n[5]&&(n[5].resume=!0)}})),d.each(m.State.delayedElements,(function(e,n){n&&S(n,t)}))}};void 0!==t.pageYOffset?(m.State.scrollAnchor=t,m.State.scrollPropertyLeft="pageXOffset",m.State.scrollPropertyTop="pageYOffset"):(m.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body,m.State.scrollPropertyLeft="scrollLeft",m.State.scrollPropertyTop="scrollTop");var g=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,n,o){var r={x:t.x+o.dx*n,v:t.v+o.dv*n,tension:t.tension,friction:t.friction};return{dx:r.v,dv:e(r)}}function n(n,o){var r={dx:n.v,dv:e(n)},i=t(n,.5*o,r),a=t(n,.5*o,i),s=t(n,o,a),c=1/6*(r.dx+2*(i.dx+a.dx)+s.dx),l=1/6*(r.dv+2*(i.dv+a.dv)+s.dv);return n.x=n.x+c*o,n.v=n.v+l*o,n}return function e(t,o,r){var i,a,s,c={x:-1,v:0,tension:null,friction:null},l=[0],u=0;for(t=parseFloat(t)||500,o=parseFloat(o)||20,r=r||null,c.tension=t,c.friction=o,a=(i=null!==r)?(u=e(t,o))/r*.016:.016;s=n(s||c,a),l.push(1+s.x),u+=16,Math.abs(s.x)>1e-4&&Math.abs(s.v)>1e-4;);return i?function(e){return l[e*(l.length-1)|0]}:u}}();m.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},d.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],(function(e,t){m.Easings[t[0]]=w.apply(null,t[1])}));var f=m.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e<f.Lists.colors.length;e++){var t="color"===f.Lists.colors[e]?"0 0 0 1":"255 255 255 1";f.Hooks.templates[f.Lists.colors[e]]=["Red Green Blue Alpha",t]}var n,o,r;if(i)for(n in f.Hooks.templates)if(f.Hooks.templates.hasOwnProperty(n)){r=(o=f.Hooks.templates[n])[0].split(" ");var a=o[1].match(f.RegEx.valueSplit);"Color"===r[0]&&(r.push(r.shift()),a.push(a.shift()),f.Hooks.templates[n]=[r.join(" "),a.join(" ")])}for(n in f.Hooks.templates)if(f.Hooks.templates.hasOwnProperty(n))for(var s in r=(o=f.Hooks.templates[n])[0].split(" "))if(r.hasOwnProperty(s)){var c=n+r[s],l=s;f.Hooks.registered[c]=[n,l]}},getRoot:function(e){var t=f.Hooks.registered[e];return t?t[0]:e},getUnit:function(e,t){var n=(e.substr(t||0,5).match(/^[a-z%]+/)||[])[0]||"";return n&&l(f.Lists.units)?n:""},fixColors:function(e){return e.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,(function(e,t,n){return f.Lists.colorNames.hasOwnProperty(n)?(t||"rgba(")+f.Lists.colorNames[n]+(t?"":",1)"):t+n}))},cleanRootPropertyValue:function(e,t){return f.RegEx.valueUnwrap.test(t)&&(t=t.match(f.RegEx.valueUnwrap)[1]),f.Values.isCSSNullValue(t)&&(t=f.Hooks.templates[e][1]),t},extractValue:function(e,t){var n=f.Hooks.registered[e];if(n){var o=n[0],r=n[1];return(t=f.Hooks.cleanRootPropertyValue(o,t)).toString().match(f.RegEx.valueSplit)[r]}return t},injectValue:function(e,t,n){var o=f.Hooks.registered[e];if(o){var r,i=o[0],a=o[1];return(r=(n=f.Hooks.cleanRootPropertyValue(i,n)).toString().match(f.RegEx.valueSplit))[a]=t,r.join(" ")}return n}},Normalizations:{registered:{clip:function(e,t,n){switch(e){case"name":return"clip";case"extract":var o;return o=f.RegEx.wrappedValueAlreadyExtracted.test(n)?n:(o=n.toString().match(f.RegEx.valueUnwrap))?o[1].replace(/,(\s+)?/g," "):n;case"inject":return"rect("+n+")"}},blur:function(e,t,n){switch(e){case"name":return m.State.isFirefox?"filter":"-webkit-filter";case"extract":var o=parseFloat(n);if(!o&&0!==o){var r=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);o=r?r[1]:0}return o;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(e,t,n){if(i<=8)switch(e){case"name":return"filter";case"extract":var o=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=o?o[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(e){case"name":return"opacity";case"extract":case"inject":return n}}},register:function(){i&&!(i>9)||m.State.isGingerbread||(f.Lists.transformsBase=f.Lists.transformsBase.concat(f.Lists.transforms3D));for(var e=0;e<f.Lists.transformsBase.length;e++)!function(){var t=f.Lists.transformsBase[e];f.Normalizations.registered[t]=function(e,n,o){switch(e){case"name":return"transform";case"extract":return void 0===E(n)||void 0===E(n).transformCache[t]?/^scale/i.test(t)?1:0:E(n).transformCache[t].replace(/[()]/g,"");case"inject":var r=!1;switch(t.substr(0,t.length-1)){case"translate":r=!/(%|px|em|rem|vw|vh|\d)$/i.test(o);break;case"scal":case"scale":m.State.isAndroid&&void 0===E(n).transformCache[t]&&o<1&&(o=1),r=!/(\d)$/i.test(o);break;case"skew":case"rotate":r=!/(deg|\d)$/i.test(o)}return r||(E(n).transformCache[t]="("+o+")"),E(n).transformCache[t]}}}();for(var t=0;t<f.Lists.colors.length;t++)!function(){var e=f.Lists.colors[t];f.Normalizations.registered[e]=function(t,n,o){switch(t){case"name":return e;case"extract":var r;if(f.RegEx.wrappedValueAlreadyExtracted.test(o))r=o;else{var a,s={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(o)?a=void 0!==s[o]?s[o]:s.black:f.RegEx.isHex.test(o)?a="rgb("+f.Values.hexToRgb(o).join(" ")+")":/^rgba?\(/i.test(o)||(a=s.black),r=(a||o).toString().match(f.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return(!i||i>8)&&3===r.split(" ").length&&(r+=" 1"),r;case"inject":return/^rgb/.test(o)?o:(i<=8?4===o.split(" ").length&&(o=o.split(/\s+/).slice(0,3).join(" ")):3===o.split(" ").length&&(o+=" 1"),(i<=8?"rgb":"rgba")+"("+o.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();function n(e,t,n){if("border-box"===f.getPropertyValue(t,"boxSizing").toString().toLowerCase()===(n||!1)){var o,r,i=0,a="width"===e?["Left","Right"]:["Top","Bottom"],s=["padding"+a[0],"padding"+a[1],"border"+a[0]+"Width","border"+a[1]+"Width"];for(o=0;o<s.length;o++)r=parseFloat(f.getPropertyValue(t,s[o])),isNaN(r)||(i+=r);return n?-i:i}return 0}function o(e,t){return function(o,r,i){switch(o){case"name":return e;case"extract":return parseFloat(i)+n(e,r,t);case"inject":return parseFloat(i)-n(e,r,t)+"px"}}}f.Normalizations.registered.innerWidth=o("width",!0),f.Normalizations.registered.innerHeight=o("height",!0),f.Normalizations.registered.outerWidth=o("width"),f.Normalizations.registered.outerHeight=o("height")}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(i||m.State.isAndroid&&!m.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(m.State.prefixMatches[e])return[m.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],n=0,o=t.length;n<o;n++){var r;if(r=0===n?e:t[n]+e.replace(/^\w/,(function(e){return e.toUpperCase()})),h.isString(m.State.prefixElement.style[r]))return m.State.prefixMatches[e]=r,[r,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t;return e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return!e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){if(e)if(e.classList)e.classList.add(t);else if(h.isString(e.className))e.className+=(e.className.length?" ":"")+t;else{var n=e.getAttribute(i<=7?"className":"class")||"";e.setAttribute("class",n+(n?" ":"")+t)}},removeClass:function(e,t){if(e)if(e.classList)e.classList.remove(t);else if(h.isString(e.className))e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ");else{var n=e.getAttribute(i<=7?"className":"class")||"";e.setAttribute("class",n.replace(new RegExp("(^|s)"+t.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(e,n,o,r){function a(e,n){var o=0;if(i<=8)o=d.css(e,n);else{var s=!1;/^(width|height)$/.test(n)&&0===f.getPropertyValue(e,"display")&&(s=!0,f.setPropertyValue(e,"display",f.Values.getDisplayType(e)));var c,l=function(){s&&f.setPropertyValue(e,"display","none")};if(!r){if("height"===n&&"border-box"!==f.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var u=e.offsetHeight-(parseFloat(f.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(f.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(f.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(f.getPropertyValue(e,"paddingBottom"))||0);return l(),u}if("width"===n&&"border-box"!==f.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var h=e.offsetWidth-(parseFloat(f.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(f.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(f.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(f.getPropertyValue(e,"paddingRight"))||0);return l(),h}}c=void 0===E(e)?t.getComputedStyle(e,null):E(e).computedStyle?E(e).computedStyle:E(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===n&&(n="borderTopColor"),""!==(o=9===i&&"filter"===n?c.getPropertyValue(n):c[n])&&null!==o||(o=e.style[n]),l()}if("auto"===o&&/^(top|right|bottom|left)$/i.test(n)){var p=a(e,"position");("fixed"===p||"absolute"===p&&/top|left/i.test(n))&&(o=d(e).position()[n]+"px")}return o}var s;if(f.Hooks.registered[n]){var c=n,l=f.Hooks.getRoot(c);void 0===o&&(o=f.getPropertyValue(e,f.Names.prefixCheck(l)[0])),f.Normalizations.registered[l]&&(o=f.Normalizations.registered[l]("extract",e,o)),s=f.Hooks.extractValue(c,o)}else if(f.Normalizations.registered[n]){var u,h;"transform"!==(u=f.Normalizations.registered[n]("name",e))&&(h=a(e,f.Names.prefixCheck(u)[0]),f.Values.isCSSNullValue(h)&&f.Hooks.templates[n]&&(h=f.Hooks.templates[n][1])),s=f.Normalizations.registered[n]("extract",e,h)}if(!/^[\d-]/.test(s)){var p=E(e);if(p&&p.isSVG&&f.Names.SVGAttribute(n))if(/^(height|width)$/i.test(n))try{s=e.getBBox()[n]}catch(e){s=0}else s=e.getAttribute(n);else s=a(e,f.Names.prefixCheck(n)[0])}return f.Values.isCSSNullValue(s)&&(s=0),m.debug>=2&&console.log("Get "+n+": "+s),s},setPropertyValue:function(e,n,o,r,a){var s=n;if("scroll"===n)a.container?a.container["scroll"+a.direction]=o:"Left"===a.direction?t.scrollTo(o,a.alternateValue):t.scrollTo(a.alternateValue,o);else if(f.Normalizations.registered[n]&&"transform"===f.Normalizations.registered[n]("name",e))f.Normalizations.registered[n]("inject",e,o),s="transform",o=E(e).transformCache[n];else{if(f.Hooks.registered[n]){var c=n,l=f.Hooks.getRoot(n);r=r||f.getPropertyValue(e,l),o=f.Hooks.injectValue(c,o,r),n=l}if(f.Normalizations.registered[n]&&(o=f.Normalizations.registered[n]("inject",e,o),n=f.Normalizations.registered[n]("name",e)),s=f.Names.prefixCheck(n)[0],i<=8)try{e.style[s]=o}catch(e){m.debug&&console.log("Browser does not support ["+o+"] for ["+s+"]")}else{var u=E(e);u&&u.isSVG&&f.Names.SVGAttribute(n)?e.setAttribute(n,o):e.style[s]=o}m.debug>=2&&console.log("Set "+n+" ("+s+"): "+o)}return[s,o]},flushTransformCache:function(e){var t="",n=E(e);if((i||m.State.isAndroid&&!m.State.isChrome)&&n&&n.isSVG){var o=function(t){return parseFloat(f.getPropertyValue(e,t))},r={translate:[o("translateX"),o("translateY")],skewX:[o("skewX")],skewY:[o("skewY")],scale:1!==o("scale")?[o("scale"),o("scale")]:[o("scaleX"),o("scaleY")],rotate:[o("rotateZ"),0,0]};d.each(E(e).transformCache,(function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),r[e]&&(t+=e+"("+r[e].join(" ")+") ",delete r[e])}))}else{var a,s;d.each(E(e).transformCache,(function(n){if(a=E(e).transformCache[n],"transformPerspective"===n)return s=a,!0;9===i&&"rotateZ"===n&&(n="rotate"),t+=n+a+" "})),s&&(t="perspective"+s+" "+t)}f.setPropertyValue(e,"transform",t)}};f.Hooks.register(),f.Normalizations.register(),m.hook=function(e,t,n){var o;return e=u(e),d.each(e,(function(e,r){if(void 0===E(r)&&m.init(r),void 0===n)void 0===o&&(o=f.getPropertyValue(r,t));else{var i=f.setPropertyValue(r,t,n);"transform"===i[0]&&m.CSS.flushTransformCache(r),o=i}})),o};var _=function(){var e;function o(){return r?b.promise||null:i}var r,i,a,s,c,p,g=arguments[0]&&(arguments[0].p||d.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||h.isString(arguments[0].properties));h.isWrapped(this)?(r=!1,a=0,s=this,i=this):(r=!0,a=1,s=g?arguments[0].elements||arguments[0].e:arguments[0]);var b={promise:null,resolver:null,rejecter:null};if(r&&m.Promise&&(b.promise=new m.Promise((function(e,t){b.resolver=e,b.rejecter=t}))),g?(c=arguments[0].properties||arguments[0].p,p=arguments[0].options||arguments[0].o):(c=arguments[a],p=arguments[a+1]),s=u(s)){var v,T=s.length,w=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(c)&&!d.isPlainObject(p)){var k=a+1;p={};for(var R=k;R<arguments.length;R++)h.isArray(arguments[R])||!/^(fast|normal|slow)$/i.test(arguments[R])&&!/^\d/.test(arguments[R])?h.isString(arguments[R])||h.isArray(arguments[R])?p.easing=arguments[R]:h.isFunction(arguments[R])&&(p.complete=arguments[R]):p.duration=arguments[R]}switch(c){case"scroll":v="scroll";break;case"reverse":v="reverse";break;case"pause":var A=(new Date).getTime();return d.each(s,(function(e,t){y(t,A)})),d.each(m.State.calls,(function(e,t){var n=!1;t&&d.each(t[1],(function(e,o){var r=void 0===p?"":p;return!0!==r&&t[2].queue!==r&&(void 0!==p||!1!==t[2].queue)||(d.each(s,(function(e,r){if(r===o)return t[5]={resume:!1},n=!0,!1})),!n&&void 0)}))})),o();case"resume":return d.each(s,(function(e,t){S(t)})),d.each(m.State.calls,(function(e,t){var n=!1;t&&d.each(t[1],(function(e,o){var r=void 0===p?"":p;return!0!==r&&t[2].queue!==r&&(void 0!==p||!1!==t[2].queue)||(!t[5]||(d.each(s,(function(e,r){if(r===o)return t[5].resume=!0,n=!0,!1})),!n&&void 0))}))})),o();case"finish":case"finishAll":case"stop":d.each(s,(function(e,t){E(t)&&E(t).delayTimer&&(clearTimeout(E(t).delayTimer.setTimeout),E(t).delayTimer.next&&E(t).delayTimer.next(),delete E(t).delayTimer),"finishAll"!==c||!0!==p&&!h.isString(p)||(d.each(d.queue(t,h.isString(p)?p:""),(function(e,t){h.isFunction(t)&&t()})),d.queue(t,h.isString(p)?p:"",[]))}));var I=[];return d.each(m.State.calls,(function(e,t){t&&d.each(t[1],(function(n,o){var r=void 0===p?"":p;if(!0!==r&&t[2].queue!==r&&(void 0!==p||!1!==t[2].queue))return!0;d.each(s,(function(n,i){if(i===o)if((!0===p||h.isString(p))&&(d.each(d.queue(i,h.isString(p)?p:""),(function(e,t){h.isFunction(t)&&t(null,!0)})),d.queue(i,h.isString(p)?p:"",[])),"stop"===c){var a=E(i);a&&a.tweensContainer&&(!0===r||""===r)&&d.each(a.tweensContainer,(function(e,t){t.endValue=t.currentValue})),I.push(e)}else"finish"!==c&&"finishAll"!==c||(t[2].duration=1)}))}))})),"stop"===c&&(d.each(I,(function(e,t){O(t,!0)})),b.promise&&b.resolver(s)),o();default:if(!d.isPlainObject(c)||h.isEmptyObject(c)){if(h.isString(c)&&m.Redirects[c]){var D=(e=d.extend({},p)).duration,N=e.delay||0;return!0===e.backwards&&(s=d.extend(!0,[],s).reverse()),d.each(s,(function(t,n){parseFloat(e.stagger)?e.delay=N+parseFloat(e.stagger)*t:h.isFunction(e.stagger)&&(e.delay=N+e.stagger.call(n,t,T)),e.drag&&(e.duration=parseFloat(D)||(/^(callout|transition)/.test(c)?1e3:400),e.duration=Math.max(e.duration*(e.backwards?1-t/T:(t+1)/T),.75*e.duration,200)),m.Redirects[c].call(n,n,e||{},t,T,s,b.promise?b:void 0)})),o()}var F="Velocity: First argument ("+c+") was not a property map, a known action, or a registered redirect. Aborting.";return b.promise?b.rejecter(new Error(F)):t.console&&console.log(F),o()}v="start"}var M={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},P=[];d.each(s,(function(e,t){h.isNode(t)&&j(t,e)})),(e=d.extend({},m.defaults,p)).loop=parseInt(e.loop,10);var L=2*e.loop-1;if(e.loop)for(var U=0;U<L;U++){var B={delay:e.delay,progress:e.progress};U===L-1&&(B.display=e.display,B.visibility=e.visibility,B.complete=e.complete),_(s,"reverse",B)}return o()}function j(e,o){var r,i,a=d.extend({},m.defaults,p),u={};switch(void 0===E(e)&&m.init(e),parseFloat(a.delay)&&!1!==a.queue&&d.queue(e,a.queue,(function(t,n){if(!0===n)return!0;m.velocityQueueEntryFlag=!0;var o=m.State.delayedElements.count++;m.State.delayedElements[o]=e;var r,i=(r=o,function(){m.State.delayedElements[r]=!1,t()});E(e).delayBegin=(new Date).getTime(),E(e).delay=parseFloat(a.delay),E(e).delayTimer={setTimeout:setTimeout(t,parseFloat(a.delay)),next:i}})),a.duration.toString().toLowerCase()){case"fast":a.duration=200;break;case"normal":a.duration=400;break;case"slow":a.duration=600;break;default:a.duration=parseFloat(a.duration)||1}function g(i){var g,_;if(a.begin&&0===w)try{a.begin.call(s,s)}catch(e){setTimeout((function(){throw e}),1)}if("scroll"===v){var y,S,O,k=/^x$/i.test(a.axis)?"Left":"Top",R=parseFloat(a.offset)||0;a.container?h.isWrapped(a.container)||h.isNode(a.container)?(a.container=a.container[0]||a.container,O=(y=a.container["scroll"+k])+d(e).position()[k.toLowerCase()]+R):a.container=null:(y=m.State.scrollAnchor[m.State["scrollProperty"+k]],S=m.State.scrollAnchor[m.State["scrollProperty"+("Left"===k?"Top":"Left")]],O=d(e).offset()[k.toLowerCase()]+R),u={scroll:{rootPropertyValue:!1,startValue:y,currentValue:y,endValue:O,unitType:"",easing:a.easing,scrollData:{container:a.container,direction:k,alternateValue:S}},element:e},m.debug&&console.log("tweensContainer (scroll): ",u.scroll,e)}else if("reverse"===v){if(!(g=E(e)))return;if(!g.tweensContainer)return void d.dequeue(e,a.queue);for(var A in"none"===g.opts.display&&(g.opts.display="auto"),"hidden"===g.opts.visibility&&(g.opts.visibility="visible"),g.opts.loop=!1,g.opts.begin=null,g.opts.complete=null,p.easing||delete a.easing,p.duration||delete a.duration,a=d.extend({},g.opts,a),_=d.extend(!0,{},g?g.tweensContainer:null))if(_.hasOwnProperty(A)&&"element"!==A){var I=_[A].startValue;_[A].startValue=_[A].currentValue=_[A].endValue,_[A].endValue=I,h.isEmptyObject(p)||(_[A].easing=a.easing),m.debug&&console.log("reverse tweensContainer ("+A+"): "+JSON.stringify(_[A]),e)}u=_}else if("start"===v){(g=E(e))&&g.tweensContainer&&!0===g.isAnimating&&(_=g.tweensContainer);var D=function(t,n){var r,i,s;return h.isFunction(t)&&(t=t.call(e,o,T)),h.isArray(t)?(r=t[0],!h.isArray(t[1])&&/^[\d-]/.test(t[1])||h.isFunction(t[1])||f.RegEx.isHex.test(t[1])?s=t[1]:h.isString(t[1])&&!f.RegEx.isHex.test(t[1])&&m.Easings[t[1]]||h.isArray(t[1])?(i=n?t[1]:C(t[1],a.duration),s=t[2]):s=t[1]||t[2]):r=t,n||(i=i||a.easing),h.isFunction(r)&&(r=r.call(e,o,T)),h.isFunction(s)&&(s=s.call(e,o,T)),[r||0,i,s]},N=function(o,i){var s,c=f.Hooks.getRoot(o),l=!1,p=i[0],b=i[1],v=i[2];if(g&&g.isSVG||"tween"===c||!1!==f.Names.prefixCheck(c)[1]||void 0!==f.Normalizations.registered[c]){(void 0!==a.display&&null!==a.display&&"none"!==a.display||void 0!==a.visibility&&"hidden"!==a.visibility)&&/opacity|filter/.test(o)&&!v&&0!==p&&(v=0),a._cacheValues&&_&&_[o]?(void 0===v&&(v=_[o].endValue+_[o].unitType),l=g.rootPropertyValueCache[c]):f.Hooks.registered[o]?void 0===v?(l=f.getPropertyValue(e,c),v=f.getPropertyValue(e,o,l)):l=f.Hooks.templates[c][1]:void 0===v&&(v=f.getPropertyValue(e,o));var E,y,S,T=!1,w=function(e,t){var n,o;return o=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,(function(e){return n=e,""})),n||(n=f.Values.getUnitType(e)),[o,n]};if(v!==p&&h.isString(v)&&h.isString(p)){s="";var C=0,x=0,O=[],k=[],R=0,A=0,I=0;for(v=f.Hooks.fixColors(v),p=f.Hooks.fixColors(p);C<v.length&&x<p.length;){var D=v[C],N=p[x];if(/[\d\.-]/.test(D)&&/[\d\.-]/.test(N)){for(var F=D,P=N,L=".",U=".";++C<v.length;){if((D=v[C])===L)L="..";else if(!/\d/.test(D))break;F+=D}for(;++x<p.length;){if((N=p[x])===U)U="..";else if(!/\d/.test(N))break;P+=N}var B=f.Hooks.getUnit(v,C),j=f.Hooks.getUnit(p,x);if(C+=B.length,x+=j.length,B===j)F===P?s+=F+B:(s+="{"+O.length+(A?"!":"")+"}"+B,O.push(parseFloat(F)),k.push(parseFloat(P)));else{var G=parseFloat(F),q=parseFloat(P);s+=(R<5?"calc":"")+"("+(G?"{"+O.length+(A?"!":"")+"}":"0")+B+" + "+(q?"{"+(O.length+(G?1:0))+(A?"!":"")+"}":"0")+j+")",G&&(O.push(G),k.push(0)),q&&(O.push(0),k.push(q))}}else{if(D!==N){R=0;break}s+=D,C++,x++,0===R&&"c"===D||1===R&&"a"===D||2===R&&"l"===D||3===R&&"c"===D||R>=4&&"("===D?R++:(R&&R<5||R>=4&&")"===D&&--R<5)&&(R=0),0===A&&"r"===D||1===A&&"g"===D||2===A&&"b"===D||3===A&&"a"===D||A>=3&&"("===D?(3===A&&"a"===D&&(I=1),A++):I&&","===D?++I>3&&(A=I=0):(I&&A<(I?5:4)||A>=(I?4:3)&&")"===D&&--A<(I?5:4))&&(A=I=0)}}C===v.length&&x===p.length||(m.debug&&console.error('Trying to pattern match mis-matched strings ["'+p+'", "'+v+'"]'),s=void 0),s&&(O.length?(m.debug&&console.log('Pattern found "'+s+'" -> ',O,k,"["+v+","+p+"]"),v=O,p=k,y=S=""):s=void 0)}s||(v=(E=w(o,v))[0],S=E[1],p=(E=w(o,p))[0].replace(/^([+-\/*])=/,(function(e,t){return T=t,""})),y=E[1],v=parseFloat(v)||0,p=parseFloat(p)||0,"%"===y&&(/^(fontSize|lineHeight)$/.test(o)?(p/=100,y="em"):/^scale/.test(o)?(p/=100,y=""):/(Red|Green|Blue)$/i.test(o)&&(p=p/100*255,y="")));if(/[\/*]/.test(T))y=S;else if(S!==y&&0!==v)if(0===p)y=S;else{r=r||function(){var o={myParent:e.parentNode||n.body,position:f.getPropertyValue(e,"position"),fontSize:f.getPropertyValue(e,"fontSize")},r=o.position===M.lastPosition&&o.myParent===M.lastParent,i=o.fontSize===M.lastFontSize;M.lastParent=o.myParent,M.lastPosition=o.position,M.lastFontSize=o.fontSize;var a={};if(i&&r)a.emToPx=M.lastEmToPx,a.percentToPxWidth=M.lastPercentToPxWidth,a.percentToPxHeight=M.lastPercentToPxHeight;else{var s=g&&g.isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");m.init(s),o.myParent.appendChild(s),d.each(["overflow","overflowX","overflowY"],(function(e,t){m.CSS.setPropertyValue(s,t,"hidden")})),m.CSS.setPropertyValue(s,"position",o.position),m.CSS.setPropertyValue(s,"fontSize",o.fontSize),m.CSS.setPropertyValue(s,"boxSizing","content-box"),d.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],(function(e,t){m.CSS.setPropertyValue(s,t,"100%")})),m.CSS.setPropertyValue(s,"paddingLeft","100em"),a.percentToPxWidth=M.lastPercentToPxWidth=(parseFloat(f.getPropertyValue(s,"width",null,!0))||1)/100,a.percentToPxHeight=M.lastPercentToPxHeight=(parseFloat(f.getPropertyValue(s,"height",null,!0))||1)/100,a.emToPx=M.lastEmToPx=(parseFloat(f.getPropertyValue(s,"paddingLeft"))||1)/100,o.myParent.removeChild(s)}return null===M.remToPx&&(M.remToPx=parseFloat(f.getPropertyValue(n.body,"fontSize"))||16),null===M.vwToPx&&(M.vwToPx=parseFloat(t.innerWidth)/100,M.vhToPx=parseFloat(t.innerHeight)/100),a.remToPx=M.remToPx,a.vwToPx=M.vwToPx,a.vhToPx=M.vhToPx,m.debug>=1&&console.log("Unit ratios: "+JSON.stringify(a),e),a}();var H=/margin|padding|left|right|width|text|word|letter/i.test(o)||/X$/.test(o)||"x"===o?"x":"y";switch(S){case"%":v*="x"===H?r.percentToPxWidth:r.percentToPxHeight;break;case"px":break;default:v*=r[S+"ToPx"]}switch(y){case"%":v*=1/("x"===H?r.percentToPxWidth:r.percentToPxHeight);break;case"px":break;default:v*=1/r[y+"ToPx"]}}switch(T){case"+":p=v+p;break;case"-":p=v-p;break;case"*":p*=v;break;case"/":p=v/p}u[o]={rootPropertyValue:l,startValue:v,currentValue:v,endValue:p,unitType:y,easing:b},s&&(u[o].pattern=s),m.debug&&console.log("tweensContainer ("+o+"): "+JSON.stringify(u[o]),e)}else m.debug&&console.log("Skipping ["+c+"] due to a lack of browser support.")};for(var F in c)if(c.hasOwnProperty(F)){var L=f.Names.camelCase(F),U=D(c[F]);if(l(f.Lists.colors)){var B=U[0],j=U[1],G=U[2];if(f.RegEx.isHex.test(B)){for(var q=["Red","Green","Blue"],H=f.Values.hexToRgb(B),V=G?f.Values.hexToRgb(G):void 0,z=0;z<q.length;z++){var K=[H[z]];j&&K.push(j),void 0!==V&&K.push(V[z]),N(L+q[z],K)}continue}}N(L,U)}u.element=e}u.element&&(f.Values.addClass(e,"velocity-animating"),P.push(u),(g=E(e))&&(""===a.queue&&(g.tweensContainer=u,g.opts=a),g.isAnimating=!0),w===T-1?(m.State.calls.push([P,s,a,null,b.resolver,null,0]),!1===m.State.isTicking&&(m.State.isTicking=!0,x())):w++)}if(!1!==m.mock&&(!0===m.mock?a.duration=a.delay=1:(a.duration*=parseFloat(m.mock)||1,a.delay*=parseFloat(m.mock)||1)),a.easing=C(a.easing,a.duration),a.begin&&!h.isFunction(a.begin)&&(a.begin=null),a.progress&&!h.isFunction(a.progress)&&(a.progress=null),a.complete&&!h.isFunction(a.complete)&&(a.complete=null),void 0!==a.display&&null!==a.display&&(a.display=a.display.toString().toLowerCase(),"auto"===a.display&&(a.display=m.CSS.Values.getDisplayType(e))),void 0!==a.visibility&&null!==a.visibility&&(a.visibility=a.visibility.toString().toLowerCase()),a.mobileHA=a.mobileHA&&m.State.isMobile&&!m.State.isGingerbread,!1===a.queue)if(a.delay){var _=m.State.delayedElements.count++;m.State.delayedElements[_]=e;var y=(i=_,function(){m.State.delayedElements[i]=!1,g()});E(e).delayBegin=(new Date).getTime(),E(e).delay=parseFloat(a.delay),E(e).delayTimer={setTimeout:setTimeout(g,parseFloat(a.delay)),next:y}}else g();else d.queue(e,a.queue,(function(e,t){if(!0===t)return b.promise&&b.resolver(s),!0;m.velocityQueueEntryFlag=!0,g()}));""!==a.queue&&"fx"!==a.queue||"inprogress"===d.queue(e)[0]||d.dequeue(e)}b.promise&&(c&&p&&!1===p.promiseRejectEmpty?b.resolver():b.rejecter())};(m=d.extend(_,m)).animate=_;var b=t.requestAnimationFrame||a;if(!m.State.isMobile&&void 0!==n.hidden){var v=function(){n.hidden?(b=function(e){return setTimeout((function(){e(!0)}),16)},x()):b=t.requestAnimationFrame||a};v(),n.addEventListener("visibilitychange",v)}return e.Velocity=m,e!==t&&(e.fn.velocity=_,e.fn.velocity.defaults=m.defaults),d.each(["Down","Up"],(function(e,t){m.Redirects["slide"+t]=function(e,n,o,r,i,a){var s=d.extend({},n),c=s.begin,l=s.complete,u={},h={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};void 0===s.display&&(s.display="Down"===t?"inline"===m.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),s.begin=function(){for(var n in 0===o&&c&&c.call(i,i),h)if(h.hasOwnProperty(n)){u[n]=e.style[n];var r=f.getPropertyValue(e,n);h[n]="Down"===t?[r,0]:[0,r]}u.overflow=e.style.overflow,e.style.overflow="hidden"},s.complete=function(){for(var t in u)u.hasOwnProperty(t)&&(e.style[t]=u[t]);o===r-1&&(l&&l.call(i,i),a&&a.resolver(i))},m(e,h,s)}})),d.each(["In","Out"],(function(e,t){m.Redirects["fade"+t]=function(e,n,o,r,i,a){var s=d.extend({},n),c=s.complete,l={opacity:"In"===t?1:0};0!==o&&(s.begin=null),s.complete=o!==r-1?null:function(){c&&c.call(i,i),a&&a.resolver(i)},void 0===s.display&&(s.display="In"===t?"auto":"none"),m(this,l,s)}})),m}function E(e){var t=d.data(e,"velocity");return null===t?void 0:t}function y(e,t){var n=E(e);n&&n.delayTimer&&!n.delayPaused&&(n.delayRemaining=n.delay-t+n.delayBegin,n.delayPaused=!0,clearTimeout(n.delayTimer.setTimeout))}function S(e,t){var n=E(e);n&&n.delayTimer&&n.delayPaused&&(n.delayPaused=!1,n.delayTimer.setTimeout=setTimeout(n.delayTimer.next,n.delayRemaining))}function T(e){return function(t){return Math.round(t*e)*(1/e)}}function w(e,n,o,r){var i=4,a=.001,s=1e-7,c=10,l=11,u=1/(l-1),d="Float32Array"in t;if(4!==arguments.length)return!1;for(var h=0;h<4;++h)if("number"!=typeof arguments[h]||isNaN(arguments[h])||!isFinite(arguments[h]))return!1;e=Math.min(e,1),o=Math.min(o,1),e=Math.max(e,0),o=Math.max(o,0);var p=d?new Float32Array(l):new Array(l);function m(e,t){return 1-3*t+3*e}function g(e,t){return 3*t-6*e}function f(e){return 3*e}function _(e,t,n){return((m(t,n)*e+g(t,n))*e+f(t))*e}function b(e,t,n){return 3*m(t,n)*e*e+2*g(t,n)*e+f(t)}function v(t,n){for(var r=0;r<i;++r){var a=b(n,e,o);if(0===a)return n;n-=(_(n,e,o)-t)/a}return n}function E(){for(var t=0;t<l;++t)p[t]=_(t*u,e,o)}function y(t,n,r){var i,a,l=0;do{(i=_(a=n+(r-n)/2,e,o)-t)>0?r=a:n=a}while(Math.abs(i)>s&&++l<c);return a}function S(t){for(var n=0,r=1,i=l-1;r!==i&&p[r]<=t;++r)n+=u;--r;var s=n+(t-p[r])/(p[r+1]-p[r])*u,c=b(s,e,o);return c>=a?v(t,s):0===c?s:y(t,n,n+u)}var T=!1;function w(){T=!0,e===n&&o===r||E()}var C=function(t){return T||w(),e===n&&o===r?t:0===t?0:1===t?1:_(S(t),n,r)};C.getControlPoints=function(){return[{x:e,y:n},{x:o,y:r}]};var x="generateBezier("+[e,n,o,r]+")";return C.toString=function(){return x},C}function C(e,t){var n=e;return h.isString(e)?m.Easings[e]||(n=!1):n=h.isArray(e)&&1===e.length?T.apply(null,e):h.isArray(e)&&2===e.length?g.apply(null,e.concat([t])):!(!h.isArray(e)||4!==e.length)&&w.apply(null,e),!1===n&&(n=m.Easings[m.defaults.easing]?m.defaults.easing:"swing"),n}function x(e){if(e){var t=m.timestamp&&!0!==e?e:s.now(),n=m.State.calls.length;n>1e4&&(m.State.calls=function(e){for(var t=-1,n=e?e.length:0,o=[];++t<n;){var r=e[t];r&&o.push(r)}return o}(m.State.calls),n=m.State.calls.length);for(var o=0;o<n;o++)if(m.State.calls[o]){var r=m.State.calls[o],a=r[0],c=r[2],l=r[3],u=!l,p=null,g=r[5],_=r[6];if(l||(l=m.State.calls[o][3]=t-16),g){if(!0!==g.resume)continue;l=r[3]=Math.round(t-_-16),r[5]=null}_=r[6]=t-l;for(var v=Math.min(_/c.duration,1),y=0,S=a.length;y<S;y++){var T=a[y],w=T.element;if(E(w)){var C=!1;if(void 0!==c.display&&null!==c.display&&"none"!==c.display){if("flex"===c.display){d.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],(function(e,t){f.setPropertyValue(w,"display",t)}))}f.setPropertyValue(w,"display",c.display)}for(var k in void 0!==c.visibility&&"hidden"!==c.visibility&&f.setPropertyValue(w,"visibility",c.visibility),T)if(T.hasOwnProperty(k)&&"element"!==k){var R,A=T[k],I=h.isString(A.easing)?m.Easings[A.easing]:A.easing;if(h.isString(A.pattern)){var D=1===v?function(e,t,n){var o=A.endValue[t];return n?Math.round(o):o}:function(e,t,n){var o=A.startValue[t],r=A.endValue[t]-o,i=o+r*I(v,c,r);return n?Math.round(i):i};R=A.pattern.replace(/{(\d+)(!)?}/g,D)}else if(1===v)R=A.endValue;else{var N=A.endValue-A.startValue;R=A.startValue+N*I(v,c,N)}if(!u&&R===A.currentValue)continue;if(A.currentValue=R,"tween"===k)p=R;else{var F;if(f.Hooks.registered[k]){F=f.Hooks.getRoot(k);var M=E(w).rootPropertyValueCache[F];M&&(A.rootPropertyValue=M)}var P=f.setPropertyValue(w,k,A.currentValue+(i<9&&0===parseFloat(R)?"":A.unitType),A.rootPropertyValue,A.scrollData);f.Hooks.registered[k]&&(f.Normalizations.registered[F]?E(w).rootPropertyValueCache[F]=f.Normalizations.registered[F]("extract",null,P[1]):E(w).rootPropertyValueCache[F]=P[1]),"transform"===P[0]&&(C=!0)}}c.mobileHA&&void 0===E(w).transformCache.translate3d&&(E(w).transformCache.translate3d="(0px, 0px, 0px)",C=!0),C&&f.flushTransformCache(w)}}void 0!==c.display&&"none"!==c.display&&(m.State.calls[o][2].display=!1),void 0!==c.visibility&&"hidden"!==c.visibility&&(m.State.calls[o][2].visibility=!1),c.progress&&c.progress.call(r[1],r[1],v,Math.max(0,l+c.duration-t),l,p),1===v&&O(o)}}m.State.isTicking&&b(x)}function O(e,t){if(!m.State.calls[e])return!1;for(var n=m.State.calls[e][0],o=m.State.calls[e][1],r=m.State.calls[e][2],i=m.State.calls[e][4],a=!1,s=0,c=n.length;s<c;s++){var l=n[s].element;t||r.loop||("none"===r.display&&f.setPropertyValue(l,"display",r.display),"hidden"===r.visibility&&f.setPropertyValue(l,"visibility",r.visibility));var u=E(l);if(!0!==r.loop&&(void 0===d.queue(l)[1]||!/\.velocityQueueEntryFlag/i.test(d.queue(l)[1]))&&u){u.isAnimating=!1,u.rootPropertyValueCache={};var h=!1;d.each(f.Lists.transforms3D,(function(e,t){var n=/^scale/.test(t)?1:0,o=u.transformCache[t];void 0!==u.transformCache[t]&&new RegExp("^\\("+n+"[^.]").test(o)&&(h=!0,delete u.transformCache[t])})),r.mobileHA&&(h=!0,delete u.transformCache.translate3d),h&&f.flushTransformCache(l),f.Values.removeClass(l,"velocity-animating")}if(!t&&r.complete&&!r.loop&&s===c-1)try{r.complete.call(o,o)}catch(e){setTimeout((function(){throw e}),1)}i&&!0!==r.loop&&i(o),u&&!0===r.loop&&!t&&(d.each(u.tweensContainer,(function(e,t){if(/^rotate/.test(e)&&(parseFloat(t.startValue)-parseFloat(t.endValue))%360==0){var n=t.startValue;t.startValue=t.endValue,t.endValue=n}/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)})),m(l,"reverse",{loop:!0,delay:r.delay})),!1!==r.queue&&d.dequeue(l,r.queue)}m.State.calls[e]=!1;for(var p=0,g=m.State.calls.length;p<g;p++)if(!1!==m.State.calls[p]){a=!0;break}!1===a&&(m.State.isTicking=!1,delete m.State.calls,m.State.calls=[])}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)}))},,,function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var o=n(0),r=n(1),i=n(124),a=n(318);const s={},c={};class l{constructor(e){this._userId=e.userId,this._deviceId=e.deviceId,this._crypto=e.crypto,this._olmDevice=e.olmDevice,this._baseApis=e.baseApis,this._roomId=e.roomId}prepareToEncrypt(e){}onRoomMembership(e,t,n){}}class u{constructor(e){this._userId=e.userId,this._crypto=e.crypto,this._olmDevice=e.olmDevice,this._baseApis=e.baseApis,this._roomId=e.roomId}onRoomKeyEvent(e){}importRoomKey(e){}hasKeysForKeyRequest(e){return Promise.resolve(!1)}shareKeysWithDevice(e){throw new Error("shareKeysWithDevice not supported for this DecryptionAlgorithm")}async retryDecryptionFromSender(e){}}class d extends Error{constructor(e,t,n){super(t),this.code=e,this.name="DecryptionError",this.detailedString=function(e,t){let n=e.name+"[msg: "+e.message;t&&(n+=", "+Object.keys(t).map(e=>e+": "+t[e]).join(", "));return n+="]",n}(this,n)}}class h extends Error{constructor(e,t){super(e),this.name="UnknownDeviceError",this.devices=t}}function p(e,t,n){s[e]=t,c[e]=n}const m=a.a.DeviceVerification;function g(e){Object(r.v)(this,l,e),this._sessionPrepared=!1,this._prepPromise=null}function f(e){Object(r.v)(this,u,e)}r.o(g,l),g.prototype._ensureSession=function(e){if(this._prepPromise)return this._prepPromise;if(this._sessionPrepared)return Promise.resolve();const t=this;return this._prepPromise=t._crypto.downloadKeys(e).then((function(n){return t._crypto.ensureOlmSessionsForUsers(e)})).then((function(){t._sessionPrepared=!0})).finally((function(){t._prepPromise=null})),this._prepPromise},g.prototype.encryptMessage=async function(e,t,n){const o=await e.getEncryptionTargetMembers(),a=r.u(o,(function(e){return e.userId})),s=this;await this._ensureSession(a);const c={room_id:e.roomId,type:t,content:n},l={algorithm:i.OLM_ALGORITHM,sender_key:s._olmDevice.deviceCurve25519Key,ciphertext:{}},u=[];for(let e=0;e<a.length;++e){const t=a[e],n=s._crypto.getStoredDevicesForUser(t);for(let e=0;e<n.length;++e){const o=n[e];o.getIdentityKey()!=s._olmDevice.deviceCurve25519Key&&(o.verified!=m.BLOCKED&&u.push(i.encryptMessageForDevice(l.ciphertext,s._userId,s._deviceId,s._olmDevice,t,o,c)))}}return await Promise.all(u).then(()=>l)},r.o(f,u),f.prototype.decryptEvent=async function(e){const t=e.getWireContent(),n=t.sender_key,o=t.ciphertext;if(!o)throw new d("OLM_MISSING_CIPHERTEXT","Missing ciphertext");if(!(this._olmDevice.deviceCurve25519Key in o))throw new d("OLM_NOT_INCLUDED_IN_RECIPIENTS","Not included in recipients");const r=o[this._olmDevice.deviceCurve25519Key];let i;try{i=await this._decryptMessage(n,r)}catch(e){throw new d("OLM_BAD_ENCRYPTED_MESSAGE","Bad Encrypted Message",{sender:n,err:e})}const a=JSON.parse(i);if(a.recipient!=this._userId)throw new d("OLM_BAD_RECIPIENT","Message was intented for "+a.recipient);if(a.recipient_keys.ed25519!=this._olmDevice.deviceEd25519Key)throw new d("OLM_BAD_RECIPIENT_KEY","Message not intended for this device",{intended:a.recipient_keys.ed25519,our_key:this._olmDevice.deviceEd25519Key});if(a.sender!=e.getSender())throw new d("OLM_FORWARDED_MESSAGE","Message forwarded from "+a.sender,{reported_sender:e.getSender()});if(a.room_id!==e.getRoomId())throw new d("OLM_BAD_ROOM","Message intended for room "+a.room_id,{reported_room:e.room_id});return{clearEvent:a,senderCurve25519Key:n,claimedEd25519Key:(a.keys||{}).ed25519||null}},f.prototype._decryptMessage=async function(e,t){if(0!==t.type)return this._reallyDecryptMessage(e,t);{const n=this._olmDevice._olmPrekeyPromise.then(()=>this._reallyDecryptMessage(e,t));return this._olmDevice._olmPrekeyPromise=n.catch(()=>{}),await n}},f.prototype._reallyDecryptMessage=async function(e,t){const n=await this._olmDevice.getSessionIdsForDevice(e),r={};for(let i=0;i<n.length;i++){const a=n[i];try{const n=await this._olmDevice.decryptMessage(e,a,t.type,t.body);return o.a.log("Decrypted Olm message from "+e+" with session "+a),n}catch(n){if(await this._olmDevice.matchesSession(e,a,t.type,t.body))throw new Error("Error decrypting prekey message with existing session id "+a+": "+n.message);r[a]=n.message}}if(0!==t.type){if(0===n.length)throw new Error("No existing sessions");throw new Error("Error decrypting non-prekey message with existing sessions: "+JSON.stringify(r))}let i;try{i=await this._olmDevice.createInboundSession(e,t.type,t.body)}catch(e){throw r["(new)"]=e.message,new Error("Error decrypting prekey message: "+JSON.stringify(r))}return o.a.log("created new inbound Olm session ID "+i.session_id+" with "+e),i.payload},p(i.OLM_ALGORITHM,g,f);var _=n(534);function b(e){this.sessionId=e,this.useCount=0,this.creationTime=(new Date).getTime(),this.sharedWithDevices={},this.blockedDevicesNotified={}}function v(e){Object(r.v)(this,l,e),this._setupPromise=Promise.resolve(),this._outboundSessions={},this._sessionRotationPeriodMsgs=100,this._sessionRotationPeriodMs=6048e5,void 0!==e.config.rotation_period_ms&&(this._sessionRotationPeriodMs=e.config.rotation_period_ms),void 0!==e.config.rotation_period_msgs&&(this._sessionRotationPeriodMsgs=e.config.rotation_period_msgs)}function E(e){Object(r.v)(this,u,e),this._pendingEvents={},this.olmlib=i}b.prototype.needsRotation=function(e,t){const n=(new Date).getTime()-this.creationTime;return(this.useCount>=e||n>=t)&&(o.a.log("Rotating megolm session after "+this.useCount+" messages, "+n+"ms"),!0)},b.prototype.markSharedWithDevice=function(e,t,n){this.sharedWithDevices[e]||(this.sharedWithDevices[e]={}),this.sharedWithDevices[e][t]=n},b.prototype.markNotifiedBlockedDevice=function(e,t){this.blockedDevicesNotified[e]||(this.blockedDevicesNotified[e]={}),this.blockedDevicesNotified[e][t]=!0},b.prototype.sharedWithTooManyDevices=function(e){for(const t in this.sharedWithDevices)if(this.sharedWithDevices.hasOwnProperty(t)){if(!e.hasOwnProperty(t))return o.a.log("Starting new megolm session because we shared with "+t),!0;for(const n in this.sharedWithDevices[t])if(this.sharedWithDevices[t].hasOwnProperty(n)&&!e[t].hasOwnProperty(n))return o.a.log("Starting new megolm session because we shared with "+t+":"+n),!0}},r.o(v,l),v.prototype._ensureOutboundSession=async function(e,t,n){let r;function a(){return r}const s=this._setupPromise.then(async a=>{r=a,r&&r.needsRotation(this._sessionRotationPeriodMsgs,this._sessionRotationPeriodMs)&&(o.a.log("Starting new megolm session because we need to rotate."),r=null),r&&r.sharedWithTooManyDevices(e)&&(r=null),r||(o.a.log("Starting new megolm session for room "+this._roomId),r=await this._prepareNewSession(),o.a.log(`Started new megolm session ${r.sessionId} for room `+this._roomId),this._outboundSessions[r.sessionId]=r);const s={};for(const[t,n]of Object.entries(e))for(const[e,o]of Object.entries(n)){o.getIdentityKey()!=this._olmDevice.deviceCurve25519Key&&(r.sharedWithDevices[t]&&void 0!==r.sharedWithDevices[t][e]||(s[t]=s[t]||[],s[t].push(o)))}const c=this._olmDevice.getOutboundGroupSessionKey(r.sessionId),l={type:"m.room_key",content:{algorithm:i.MEGOLM_ALGORITHM,room_id:this._roomId,session_id:r.sessionId,session_key:c.key,chain_index:c.chain_index}},[u,d]=await i.getExistingOlmSessions(this._olmDevice,this._baseApis,s);await Promise.all([(async()=>{await this._shareKeyWithOlmSessions(r,c,l,d)})(),(async()=>{const e=[],t=Date.now(),o=[];await this._shareKeyWithDevices(r,c,l,u,e,n?1e4:2e3,o),!n&&Date.now()-t<1e4?(async()=>{const t={},n=new Set;for(const e of o)n.add(e);const i=[];for(const{userId:o,deviceInfo:r}of e){const e=o.slice(o.indexOf(":")+1);n.has(e)?(t[o]=t[o]||[],t[o].push(r)):i.push({userId:o,deviceInfo:r})}await this._shareKeyWithDevices(r,c,l,t,i,3e4),await this._notifyFailedOlmDevices(r,c,i)})():await this._notifyFailedOlmDevices(r,c,e)})(),(async()=>{const e={};for(const[n,o]of Object.entries(t))for(const[t,i]of Object.entries(o))r.blockedDevicesNotified[n]&&void 0!==r.blockedDevicesNotified[n][t]||(e[n]=e[n]||{},e[n][t]={device:i});await this._notifyBlockedDevices(r,e)})()])});return this._setupPromise=s.then(a,a),s.then(a)},v.prototype._prepareNewSession=async function(){const e=this._olmDevice.createOutboundGroupSession(),t=this._olmDevice.getOutboundGroupSessionKey(e);return await this._olmDevice.addInboundGroupSession(this._roomId,this._olmDevice.deviceCurve25519Key,[],e,t.key,{ed25519:this._olmDevice.deviceEd25519Key}),this._crypto.backupInfo&&this._crypto.backupGroupSession(this._roomId,this._olmDevice.deviceCurve25519Key,[],e,t.key).catch(e=>{o.a.log("Failed to back up megolm session",e)}),new b(e)},v.prototype._getDevicesWithoutSessions=function(e,t,n){n=n||[];for(const[o,r]of Object.entries(t)){const t=e[o];for(const e of r){const r=e.deviceId;t[r].sessionId||(n.push({userId:o,deviceInfo:e}),delete t[r])}}return n},v.prototype._splitDevices=function(e){let t=[];const n=[t];for(const[o,r]of Object.entries(e)){for(const e of Object.values(r))t.push({userId:o,deviceInfo:e.device});t.length>20&&(t=[],n.push(t))}return 0===t.length&&n.pop(),n},v.prototype._encryptAndSendKeysToDevices=function(e,t,n,r){const a={},s=[];for(let e=0;e<n.length;e++){const t={algorithm:i.OLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key,ciphertext:{}},o=n[e],c=o.userId,l=o.deviceInfo,u=l.deviceId;a[c]||(a[c]={}),a[c][u]=t,s.push(i.encryptMessageForDevice(t.ciphertext,this._userId,this._deviceId,this._olmDevice,c,l,r))}return Promise.all(s).then(()=>{for(const e of Object.keys(a)){for(const t of Object.keys(a[e]))0===Object.keys(a[e][t].ciphertext).length&&(o.a.log("No ciphertext for device "+e+":"+t+": pruning"),delete a[e][t]);0===Object.keys(a[e]).length&&(o.a.log("Pruned all devices for user "+e),delete a[e])}if(0!==Object.keys(a).length)return this._baseApis.sendToDevice("m.room.encrypted",a).then(()=>{for(const n of Object.keys(a))for(const o of Object.keys(a[n]))e.markSharedWithDevice(n,o,t)});o.a.log("No users left to send to: aborting")})},v.prototype._sendBlockedNotificationsToDevices=async function(e,t,n){const o={};for(const e of t){const t=e.userId,r=e.deviceInfo,i=r.deviceInfo.deviceId,a=Object.assign({},n);a.code=r.code,a.reason=r.reason,"m.no_olm"===a.code&&(delete a.room_id,delete a.session_id),o[t]||(o[t]={}),o[t][i]=a}await this._baseApis.sendToDevice("org.matrix.room_key.withheld",o);for(const t of Object.keys(o))for(const n of Object.keys(o[t]))e.markNotifiedBlockedDevice(t,n)},v.prototype.reshareKeyWithDevice=async function(e,t,n,r){const a=this._outboundSessions[t];if(!a)return void o.a.debug(`megolm session ${t} not found: not re-sharing keys`);if(void 0===a.sharedWithDevices[n])return void o.a.debug(`megolm session ${t} never shared with user ${n}`);const s=a.sharedWithDevices[n][r.deviceId];if(void 0===s)return void o.a.debug("megolm session ID "+t+" never shared with device "+n+":"+r.deviceId);const c=await this._olmDevice.getInboundGroupSessionKey(this._roomId,e,t,s);if(!c)return void o.a.warn(`No inbound session key found for megolm ${t}: not re-sharing keys`);await i.ensureOlmSessionsForDevices(this._olmDevice,this._baseApis,{[n]:[r]});const l={type:"m.forwarded_room_key",content:{algorithm:i.MEGOLM_ALGORITHM,room_id:this._roomId,session_id:t,session_key:c.key,chain_index:c.chain_index,sender_key:e,sender_claimed_ed25519_key:c.sender_claimed_ed25519_key,forwarding_curve25519_key_chain:c.forwarding_curve25519_key_chain}},u={algorithm:i.OLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key,ciphertext:{}};await i.encryptMessageForDevice(u.ciphertext,this._userId,this._deviceId,this._olmDevice,n,r,l),await this._baseApis.sendToDevice("m.room.encrypted",{[n]:{[r.deviceId]:u}}),o.a.debug(`Re-shared key for megolm session ${t} with ${n}:${r.deviceId}`)},v.prototype._shareKeyWithDevices=async function(e,t,n,o,r,a,s){const c=await i.ensureOlmSessionsForDevices(this._olmDevice,this._baseApis,o,a,s);this._getDevicesWithoutSessions(c,o,r),await this._shareKeyWithOlmSessions(e,t,n,c)},v.prototype._shareKeyWithOlmSessions=async function(e,t,n,r){const i=this._splitDevices(r);for(let r=0;r<i.length;r++)try{await this._encryptAndSendKeysToDevices(e,t.chain_index,i[r],n),o.a.log(`Completed megolm keyshare for ${e.sessionId} in ${this._roomId} (slice ${r+1}/${i.length})`)}catch(t){throw o.a.log(`megolm keyshare for ${e.sessionId} in ${this._roomId} (slice ${r+1}/${i.length}) failed`),t}},v.prototype._notifyFailedOlmDevices=async function(e,t,n){for(const{userId:o,deviceInfo:r}of n){const n=r.deviceId;e.markSharedWithDevice(o,n,t.chain_index)}const o=await this._olmDevice.filterOutNotifiedErrorDevices(n),r={};for(const{userId:e,deviceInfo:t}of o)r[e]=r[e]||{},r[e][t.deviceId]={device:{code:"m.no_olm",reason:_.b["m.no_olm"],deviceInfo:t}};await this._notifyBlockedDevices(e,r)},v.prototype._notifyBlockedDevices=async function(e,t){const n={room_id:this._roomId,session_id:e.sessionId,algorithm:i.MEGOLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key},r=this._splitDevices(t);for(let t=0;t<r.length;t++)try{await this._sendBlockedNotificationsToDevices(e,r[t],n),o.a.log(`Completed blacklist notification for ${e.sessionId} in ${this._roomId} (slice ${t+1}/${r.length})`)}catch(n){throw o.a.log(`blacklist notification for ${e.sessionId} in ${this._roomId} (slice ${t+1}/${r.length}) failed`),n}},v.prototype.prepareToEncrypt=function(e){this.encryptionPreparation||(o.a.debug("Preparing to encrypt events for "+this._roomId),this.encryptionPreparation=(async()=>{const[t,n]=await this._getDevicesInRoom(e);this._crypto.getGlobalErrorOnUnknownDevices()&&this._removeUnknownDevices(t),await this._ensureOutboundSession(t,n,!0),delete this.encryptionPreparation})())},v.prototype.encryptMessage=async function(e,t,n){if(o.a.log("Starting to encrypt event for "+this._roomId),this.encryptionPreparation)try{await this.encryptionPreparation}catch(e){}const[r,a]=await this._getDevicesInRoom(e);this._crypto.getGlobalErrorOnUnknownDevices()&&this._checkForUnknownDevices(r);const s=await this._ensureOutboundSession(r,a),c={room_id:this._roomId,type:t,content:n},l=this._olmDevice.encryptGroupMessage(s.sessionId,JSON.stringify(c)),u={algorithm:i.MEGOLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key,ciphertext:l,session_id:s.sessionId,device_id:this._deviceId};return s.useCount++,u},v.prototype.forceDiscardSession=function(){this._setupPromise=this._setupPromise.then(()=>null)},v.prototype._checkForUnknownDevices=function(e){const t={};if(Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(o=>{const r=e[n][o];r.isUnverified()&&!r.isKnown()&&(t[n]||(t[n]={}),t[n][o]=r)})}),Object.keys(t).length)throw new h("This room contains unknown devices which have not been verified. We strongly recommend you verify them before continuing.",t)},v.prototype._removeUnknownDevices=function(e){for(const[t,n]of Object.entries(e)){for(const[e,t]of Object.entries(n))t.isUnverified()&&!t.isKnown()&&delete n[e];0===Object.keys(n).length&&delete e[t]}},v.prototype._getDevicesInRoom=async function(e){const t=await e.getEncryptionTargetMembers(),n=r.u(t,(function(e){return e.userId}));let o=this._crypto.getGlobalBlacklistUnverifiedDevices();"boolean"==typeof e.getBlacklistUnverifiedDevices()&&(o=e.getBlacklistUnverifiedDevices());const i=await this._crypto.downloadKeys(n,!1),a={};for(const e in i){if(!i.hasOwnProperty(e))continue;const t=i[e];for(const n in t){if(!t.hasOwnProperty(n))continue;const r=this._crypto.checkDeviceTrust(e,n);if(t[n].isBlocked()||!r.isVerified()&&o){a[e]||(a[e]={});const o=t[n].isBlocked()?{code:"m.blacklisted",reason:_.b["m.blacklisted"]}:{code:"m.unverified",reason:_.b["m.unverified"]};o.deviceInfo=t[n],a[e][n]=o,delete t[n]}}}return[i,a]},r.o(E,u);const y={no_olm:"The sender was unable to establish a secure channel.",unknown:"The secure channel with the sender was corrupted."};E.prototype.decryptEvent=async function(e){const t=e.getWireContent();if(!t.sender_key||!t.session_id||!t.ciphertext)throw new d("MEGOLM_MISSING_FIELDS","Missing fields in input");let n;this._addEventToPendingList(e);try{n=await this._olmDevice.decryptGroupMessage(e.getRoomId(),t.sender_key,t.session_id,t.ciphertext,e.getId(),e.getTs())}catch(n){if("DecryptionError"===n.name)throw n;let o="OLM_DECRYPT_GROUP_MESSAGE_ERROR";throw n&&"OLM.UNKNOWN_MESSAGE_INDEX"===n.message&&(this._requestKeysForEvent(e),o="OLM_UNKNOWN_MESSAGE_INDEX"),new d(o,n?n.toString():"Unknown Error: Error is undefined",{session:t.sender_key+"|"+t.session_id})}if(null===n){this._requestKeysForEvent(e);const n=await this._olmDevice.sessionMayHaveProblems(t.sender_key,e.getTs()-12e4);if(n){let e=y[n.type]||y.unknown;throw n.fixed&&(e+=" Trying to create a new secure channel and re-requesting the keys."),new d("MEGOLM_UNKNOWN_INBOUND_SESSION_ID",e,{session:t.sender_key+"|"+t.session_id})}throw new d("MEGOLM_UNKNOWN_INBOUND_SESSION_ID","The sender's device has not sent us the keys for this message.",{session:t.sender_key+"|"+t.session_id})}this._removeEventFromPendingList(e);const o=JSON.parse(n.result);if(o.room_id!==e.getRoomId())throw new d("MEGOLM_BAD_ROOM","Message intended for room "+o.room_id);return{clearEvent:o,senderCurve25519Key:n.senderKey,claimedEd25519Key:n.keysClaimed.ed25519,forwardingCurve25519KeyChain:n.forwardingCurve25519KeyChain,untrusted:n.untrusted}},E.prototype._requestKeysForEvent=function(e){const t=e.getWireContent(),n=e.getKeyRequestRecipients(this._userId);this._crypto.requestRoomKey({room_id:e.getRoomId(),algorithm:t.algorithm,sender_key:t.sender_key,session_id:t.session_id},n)},E.prototype._addEventToPendingList=function(e){const t=e.getWireContent(),n=t.sender_key,o=t.session_id;this._pendingEvents[n]||(this._pendingEvents[n]=new Map);const r=this._pendingEvents[n];r.has(o)||r.set(o,new Set),r.get(o).add(e)},E.prototype._removeEventFromPendingList=function(e){const t=e.getWireContent(),n=t.sender_key,o=t.session_id,r=this._pendingEvents[n],i=r&&r.get(o);i&&(i.delete(e),0===i.size&&r.delete(n),0===r.size&&delete this._pendingEvents[n])},E.prototype.onRoomKeyEvent=function(e){const t=e.getContent(),n=t.session_id;let i,a=e.getSenderKey(),s=[],c=!1;if(t.room_id&&n&&t.session_key){if(a){if("m.forwarded_room_key"==e.getType()){if(c=!0,s=t.forwarding_curve25519_key_chain,r.p(s)||(s=[]),s=s.slice(),s.push(a),a=t.sender_key,!a)return void o.a.error("forwarded_room_key event is missing sender_key field");const e=t.sender_claimed_ed25519_key;if(!e)return void o.a.error("forwarded_room_key_event is missing sender_claimed_ed25519_key field");i={ed25519:e}}else i=e.getKeysClaimed();return this._olmDevice.addInboundGroupSession(t.room_id,a,s,n,t.session_key,i,c).then(()=>{this._retryDecryption(a,n).then(e=>{e&&this._crypto.cancelRoomKeyRequest({algorithm:t.algorithm,room_id:t.room_id,session_id:t.session_id,sender_key:a})})}).then(()=>{this._crypto.backupInfo&&this._crypto.backupGroupSession(t.room_id,a,s,t.session_id,t.session_key,i,c).catch(e=>{o.a.log("Failed to back up megolm session",e)})}).catch(e=>{o.a.error("Error handling m.room_key_event: "+e)})}o.a.error("key event has no sender key (not encrypted?)")}else o.a.error("key event is missing fields")},E.prototype.onRoomKeyWithheldEvent=async function(e){const t=e.getContent(),n=t.sender_key;if("m.no_olm"===t.code){const r=e.getSender();if(o.a.warn(`${r}:${n} was unable to establish an olm session with us`),await this._olmDevice.getSessionIdForDevice(n))return o.a.debug("New session already created. Not creating a new one."),await this._olmDevice.recordSessionProblem(n,"no_olm",!0),void this.retryDecryptionFromSender(n);let a=this._crypto._deviceList.getDeviceByIdentityKey(t.algorithm,n);if(!a&&(await this._crypto.downloadKeys([r],!1),a=this._crypto._deviceList.getDeviceByIdentityKey(t.algorithm,n),!a))return o.a.info("Couldn't find device for identity key "+n+": not establishing session"),await this._olmDevice.recordSessionProblem(n,"no_olm",!1),void this.retryDecryptionFromSender(n);await i.ensureOlmSessionsForDevices(this._olmDevice,this._baseApis,{[r]:[a]},!1);const s={algorithm:i.OLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key,ciphertext:{}};await i.encryptMessageForDevice(s.ciphertext,this._userId,this._deviceId,this._olmDevice,r,a,{type:"m.dummy"}),await this._olmDevice.recordSessionProblem(n,"no_olm",!0),this.retryDecryptionFromSender(n),await this._baseApis.sendToDevice("m.room.encrypted",{[r]:{[a.deviceId]:s}})}else await this._olmDevice.addInboundGroupSessionWithheld(t.room_id,n,t.session_id,t.code,t.reason)},E.prototype.hasKeysForKeyRequest=function(e){const t=e.requestBody;return this._olmDevice.hasInboundSessionKeys(t.room_id,t.sender_key,t.session_id)},E.prototype.shareKeysWithDevice=function(e){const t=e.userId,n=e.deviceId,r=this._crypto.getStoredDevice(t,n),a=e.requestBody;this.olmlib.ensureOlmSessionsForDevices(this._olmDevice,this._baseApis,{[t]:[r]}).then(e=>e[t][n].sessionId?(o.a.log("sharing keys for session "+a.sender_key+"|"+a.session_id+" with device "+t+":"+n),this._buildKeyForwardingMessage(a.room_id,a.sender_key,a.session_id)):null).then(e=>{const o={algorithm:i.OLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key,ciphertext:{}};return this.olmlib.encryptMessageForDevice(o.ciphertext,this._userId,this._deviceId,this._olmDevice,t,r,e).then(()=>{const e={[t]:{[n]:o}};return this._baseApis.sendToDevice("m.room.encrypted",e)})})},E.prototype._buildKeyForwardingMessage=async function(e,t,n){const o=await this._olmDevice.getInboundGroupSessionKey(e,t,n);return{type:"m.forwarded_room_key",content:{algorithm:i.MEGOLM_ALGORITHM,room_id:e,sender_key:t,sender_claimed_ed25519_key:o.sender_claimed_ed25519_key,session_id:n,session_key:o.key,chain_index:o.chain_index,forwarding_curve25519_key_chain:o.forwarding_curve25519_key_chain}}},E.prototype.importRoomKey=function(e,t={}){return this._olmDevice.addInboundGroupSession(e.room_id,e.sender_key,e.forwarding_curve25519_key_chain,e.session_id,e.session_key,e.sender_claimed_keys,!0,t.untrusted?{untrusted:t.untrusted}:{}).then(()=>{this._crypto.backupInfo&&"backup"!==t.source&&this._crypto.backupGroupSession(e.room_id,e.sender_key,e.forwarding_curve25519_key_chain,e.session_id,e.session_key,e.sender_claimed_keys,!0).catch(e=>{o.a.log("Failed to back up megolm session",e)}),this._retryDecryption(e.sender_key,e.session_id)})},E.prototype._retryDecryption=async function(e,t){const n=this._pendingEvents[e];if(!n)return!0;const r=n.get(t);return!r||(o.a.debug("Retrying decryption on events",[...r]),await Promise.all([...r].map(async e=>{try{await e.attemptDecryption(this._crypto,!0)}catch(e){}})),!(this._pendingEvents[e]||{})[t])},E.prototype.retryDecryptionFromSender=async function(e){const t=this._pendingEvents[e];return!t||(delete this._pendingEvents[e],await Promise.all([...t].map(async([e,t])=>{await Promise.all([...t].map(async e=>{try{await e.attemptDecryption(this._crypto)}catch(e){}}))})),!this._pendingEvents[e])},p(i.MEGOLM_ALGORITHM,v,E)},function(e,t,n){"use strict";n.d(t,"a",(function(){return fe})),n.d(t,"b",(function(){return _e}));var o=n(94),r=n.n(o),i=n(82),a=n.n(i),s=n(81),c=n.n(s),l=n(96),u=n(202),d=n(175),h=(n(1299),n(1300),n(110)),p=n(103);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class f{constructor(e,t){this.failedEventId=e,this.errorCode=t,this.ts=Date.now()}}class _{constructor(e,t){if(a()(this,"failures",[]),a()(this,"failureCounts",{}),a()(this,"trackedEventHashMap",{}),a()(this,"checkInterval",null),a()(this,"trackInterval",null),!e||"function"!=typeof e)throw new Error("DecryptionFailureTracker requires tracking function");if(t&&"function"!=typeof t)throw new Error("DecryptionFailureTracker second constructor argument should be a function");this._trackDecryptionFailure=e,this._mapErrorCode=t}eventDecrypted(e,t){t?this.addDecryptionFailure(new f(e.getId(),t.code)):this.removeDecryptionFailuresForEvent(e)}addDecryptionFailure(e){this.failures.push(e)}removeDecryptionFailuresForEvent(e){this.failures=this.failures.filter(t=>t.failedEventId!==e.getId())}start(){this.checkInterval=setInterval(()=>this.checkFailures(Date.now()),_.CHECK_INTERVAL_MS),this.trackInterval=setInterval(()=>this.trackFailures(),_.TRACK_INTERVAL_MS)}stop(){clearInterval(this.checkInterval),clearInterval(this.trackInterval),this.failures=[],this.failureCounts={}}checkFailures(e){const t=[],n=[];for(;this.failures.length>0;){const o=this.failures.shift();e>o.ts+_.GRACE_PERIOD_MS?t.push(o):n.push(o)}this.failures=n;const o=t.reduce((e,t)=>this.trackedEventHashMap[t.failedEventId]?e:e.set(t.failedEventId,t),new Map),r=[...o.keys()];this.trackedEventHashMap=r.reduce((e,t)=>g(g({},e),{},{[t]:!0}),this.trackedEventHashMap);const i=o.values();this._aggregateFailures(i)}_aggregateFailures(e){for(const t of e){const e=t.errorCode;this.failureCounts[e]=(this.failureCounts[e]||0)+1}}trackFailures(){for(const e of Object.keys(this.failureCounts))if(this.failureCounts[e]>0){const t=this._mapErrorCode?this._mapErrorCode(e):e;this._trackDecryptionFailure(this.failureCounts[e],t),this.failureCounts[e]=0}}}a()(_,"TRACK_INTERVAL_MS",6e4),a()(_,"CHECK_INTERVAL_MS",5e3),a()(_,"GRACE_PERIOD_MS",6e4);var b=n(86),v=n(104),E=n(92),y=n(87),S=n(249),T=n(89),w=n(302),C=n(85),x=n(154),O=n(361),k=n(425),R=n(301),A=n(321);const I={deferred_action:null};class D extends A.Store{constructor(){super(y.a),this._state=I}_setState(e){this._state=Object.assign(this._state,e),this.__emitChange()}__onDispatch(e){switch(e.action){case"do_after_sync_prepared":this._setState({deferred_action:e.deferred_action});break;case"cancel_after_sync_prepared":this._setState({deferred_action:null});break;case"sync_state":{if("PREPARED"!==e.state)break;if(!this._state.deferred_action)break;const t=Object.assign({},this._state.deferred_action);this._setState({deferred_action:null}),y.a.dispatch(t);break}case"on_client_not_viable":case"on_logged_out":this.reset()}}reset(){this._state=Object.assign({},I)}}let N=null;N||(N=new D);var F=n(721),M=n(155),P=n(83),L=n(88),U=n(487),B=n(722),j=n(303),G=n(723),q=n(260),H=n(123),V=n(370),z=n(724),K=n(548),W=n(130),Y=n(134),$=n(368),Q=n(93),X=n(91),J=n(157);const Z=()=>{y.a.dispatch({action:"accept_cookies"})},ee=()=>{y.a.dispatch({action:"reject_cookies"})},te=()=>{h.a.showDetailsModal()},ne=()=>{Y.a.sharedInstance().dismissToast("analytics")};var oe=n(481),re=n(143),ie=n(173),ae=n(95),se=n(192),ce=n(725),le=n(727),ue=n(101),de=n(156),he=n(728);let pe;!function(e){e[e.LOADING=0]="LOADING",e[e.WELCOME=1]="WELCOME",e[e.LOGIN=2]="LOGIN",e[e.REGISTER=3]="REGISTER",e[e.FORGOT_PASSWORD=4]="FORGOT_PASSWORD",e[e.COMPLETE_SECURITY=5]="COMPLETE_SECURITY",e[e.E2E_SETUP=6]="E2E_SETUP",e[e.LOGGED_IN=7]="LOGGED_IN",e[e.SOFT_LOGOUT=8]="SOFT_LOGOUT"}(pe||(pe={}));const me=["register","login","forgot_password","start_sso","start_cas"],ge=[Q.a.ViewUserSettings,"view_create_chat","view_create_room","view_create_group"];class fe extends c.a.PureComponent{constructor(e,t){if(super(e,t),a()(this,"firstSyncComplete",void 0),a()(this,"firstSyncPromise",void 0),a()(this,"screenAfterLogin",void 0),a()(this,"windowWidth",void 0),a()(this,"pageChanging",void 0),a()(this,"accountPassword",void 0),a()(this,"accountPasswordTimer",void 0),a()(this,"focusComposer",void 0),a()(this,"subTitleStatus",void 0),a()(this,"loggedInView",void 0),a()(this,"dispatcherRef",void 0),a()(this,"themeWatcher",void 0),a()(this,"fontWatcher",void 0),a()(this,"onAction",e=>{const t=C.getComponent("dialogs.QuestionDialog");if(b.a.get()&&b.a.get().isGuest()&&ge.includes(e.action))return y.a.dispatch({action:"do_after_sync_prepared",deferred_action:e}),void y.a.dispatch({action:"require_registration"});switch(e.action){case"MatrixActions.accountData":if("m.identity_server"===e.event_type){const t=e.event_content?e.event_content.base_url:null;t?(b.a.get().setIdentityServerUrl(t),localStorage.removeItem("mx_is_access_token"),localStorage.setItem("mx_is_url",t)):(b.a.get().setIdentityServerUrl(null),localStorage.removeItem("mx_is_access_token"),localStorage.removeItem("mx_is_url")),y.a.dispatch({action:"id_server_changed"})}break;case"logout":R.i();break;case"require_registration":Object(B.b)(e);break;case"start_registration":if(R.g()){this.onSoftLogout();break}e.screenAfterLogin&&(this.screenAfterLogin=e.screenAfterLogin),this.startRegistration(e.params||{});break;case"start_login":if(R.g()){this.onSoftLogout();break}e.screenAfterLogin&&(this.screenAfterLogin=e.screenAfterLogin),this.setStateForNewView({view:pe.LOGIN}),this.notifyNewScreen("login"),U.a.isLogin=!0,this.themeWatcher.recheck();break;case"start_password_recovery":this.setStateForNewView({view:pe.FORGOT_PASSWORD}),this.notifyNewScreen("forgot_password");break;case"start_chat":Object(M.b)({dmUserId:e.user_id});break;case"leave_room":this.leaveRoom(e.room_id);break;case"forget_room":this.forgetRoom(e.room_id);break;case"reject_invite":T.a.createTrackedDialog("Reject invitation","",t,{title:Object(P.a)("Reject invitation"),description:Object(P.a)("Are you sure you want to reject the invitation?"),onFinished:t=>{if(t){const t=C.getComponent("elements.Spinner"),n=T.a.createDialog(t,null,"mx_Dialog_spinner");b.a.get().leave(e.room_id).then(()=>{n.close(),this.state.currentRoomId===e.room_id&&y.a.dispatch({action:"view_home_page"})},e=>{n.close(),T.a.createTrackedDialog("Failed to reject invitation","",re.a,{title:Object(P.a)("Failed to reject invitation"),description:e.toString()})})}}});break;case"view_user_info":this.viewUser(e.userId,e.subAction);break;case"view_room":{const t=this.viewRoom(e);e.deferred_action&&t.then(()=>{y.a.dispatch(e.deferred_action)});break}case Q.a.ViewUserSettings:{const t=e,n=C.getComponent("dialogs.UserSettingsDialog");T.a.createTrackedDialog("User settings","",n,{initialTabId:t.initialTabId},null,!1,!0),this.viewSomethingBehindModal();break}case"view_create_room":this.createRoom(e.public);break;case"view_create_group":{let e=C.getComponent("dialogs.CreateGroupDialog");L.a.getValue("feature_communities_v2_prototypes")&&(e=ce.a),T.a.createTrackedDialog("Create Community","",e);break}case Q.a.ViewRoomDirectory:{const t=C.getComponent("structures.RoomDirectory");T.a.createTrackedDialog("Room directory","",t,{initialText:e.initialText},"mx_RoomDirectory_dialogWrapper",!1,!0),this.viewSomethingBehindModal();break}case"view_my_groups":this.setPage(F.a.MyGroups),this.notifyNewScreen("groups");break;case"view_group":this.viewGroup(e);break;case"view_welcome_page":this.viewWelcome();break;case"view_home_page":this.viewHome(e.justRegistered);break;case"view_start_chat_or_reuse":this.chatCreateOrReuse(e.user_id);break;case"view_create_chat":Object(x.h)(e.initialText||"");break;case"view_invite":Object(x.g)(e.roomId);break;case"view_last_screen":this.showScreenAfterLogin();break;case"toggle_my_groups":this.state.page_type===F.a.MyGroups?y.a.dispatch({action:"view_last_screen"}):y.a.dispatch({action:"view_my_groups"});break;case"hide_left_panel":this.setState({collapseLhs:!0},()=>{this.state.resizeNotifier.notifyLeftHandleResized()});break;case"focus_room_filter":case"show_left_panel":this.setState({collapseLhs:!1},()=>{this.state.resizeNotifier.notifyLeftHandleResized()});break;case Q.a.OpenDialPad:T.a.createTrackedDialog("Dial pad","",he.a,{},"mx_Dialog_dialPadWrapper");break;case"on_logged_in":R.g()||this.state.view===pe.LOGIN||this.state.view===pe.REGISTER||this.state.view===pe.COMPLETE_SECURITY||this.state.view===pe.E2E_SETUP||this.onLoggedIn();break;case"on_client_not_viable":this.onSoftLogout();break;case"on_logged_out":this.onLoggedOut();break;case"will_start_client":this.setState({ready:!1},()=>{this.onWillStartClient()});break;case"client_started":this.onClientStarted();break;case"send_event":this.onSendEvent(e.room_id,e.event);break;case"aria_hide_main_app":this.setState({hideToSRUsers:!0});break;case"aria_unhide_main_app":this.setState({hideToSRUsers:!1});break;case"accept_cookies":L.a.setValue("analyticsOptIn",null,ae.a.DEVICE,!0),L.a.setValue("showCookieBar",null,ae.a.DEVICE,!1),ne(),h.a.canEnable()&&h.a.enable(),p.a.instance.canEnable()&&p.a.instance.enable(!1);break;case"reject_cookies":L.a.setValue("analyticsOptIn",null,ae.a.DEVICE,!1),L.a.setValue("showCookieBar",null,ae.a.DEVICE,!1),ne()}}),a()(this,"handleResize",()=>{this.windowWidth>1e3&&window.innerWidth<=1e3&&y.a.dispatch({action:"hide_left_panel"}),this.windowWidth<=1e3&&window.innerWidth>1e3&&y.a.dispatch({action:"show_left_panel"}),this.state.resizeNotifier.notifyWindowResized(),this.windowWidth=window.innerWidth}),a()(this,"onRegisterClick",()=>{this.showScreen("register")}),a()(this,"onLoginClick",()=>{this.showScreen("login")}),a()(this,"onForgotPasswordClick",()=>{this.showScreen("forgot_password")}),a()(this,"onRegisterFlowComplete",(e,t)=>this.onUserCompletedLoginFlow(e,t)),a()(this,"onServerConfigChange",e=>{this.setState({serverConfig:e})}),a()(this,"makeRegistrationUrl",e=>(this.props.startingFragmentQueryParams.referrer&&(e.referrer=this.props.startingFragmentQueryParams.referrer),this.props.makeRegistrationUrl(e))),a()(this,"onUserCompletedLoginFlow",async(e,t)=>{this.accountPassword=t,null!==this.accountPasswordTimer&&clearTimeout(this.accountPasswordTimer),this.accountPasswordTimer=setTimeout(()=>{this.accountPassword=null,this.accountPasswordTimer=null},3e5),await R.k(e);const n=b.a.get(),o=n.isCryptoEnabled();o||this.onLoggedIn();const r=[this.firstSyncPromise.promise];if(o&&r.push(n.downloadKeys([n.getUserId()])),this.setState({pendingInitialSync:!0}),await Promise.all(r),!o)return void this.setState({pendingInitialSync:!1});n.getStoredCrossSigningForUser(n.getUserId())?this.setStateForNewView({view:pe.COMPLETE_SECURITY}):await n.doesServerSupportUnstableFeature("org.matrix.e2e_cross_signing")?this.setStateForNewView({view:pe.E2E_SETUP}):this.onLoggedIn(),this.setState({pendingInitialSync:!1})}),a()(this,"onCompleteSecurityE2eSetupFinished",()=>{this.onLoggedIn()}),this.state={view:pe.LOADING,collapseLhs:!1,hideToSRUsers:!1,syncError:null,resizeNotifier:new G.a,ready:!1},this.loggedInView=Object(s.createRef)(),E.a.put(this.props.config),this.firstSyncComplete=!1,this.firstSyncPromise=Object(W.b)(),this.props.config.sync_timeline_limit&&(b.a.opts.initialSyncLimit=this.props.config.sync_timeline_limit),this.screenAfterLogin=this.props.initialScreenAfterLogin,this.screenAfterLogin){const e=this.screenAfterLogin.params||{};if(this.screenAfterLogin.screen.startsWith("room/")&&e.signurl&&e.email){const t=this.screenAfterLogin.screen.substring("room/".length);le.a.instance.storeInvite(t,e)}}this.windowWidth=1e4,this.handleResize(),window.addEventListener("resize",this.handleResize),this.pageChanging=!1,w.a.tint(),this.state.resizeNotifier.on("middlePanelResized",this.dispatchTimelineResize),R.g()&&R.h(),this.accountPassword=null,this.accountPasswordTimer=null,this.dispatcherRef=y.a.register(this.onAction),this.themeWatcher=new V.a,this.fontWatcher=new z.a,this.themeWatcher.start(),this.fontWatcher.start(),this.focusComposer=!1,this.subTitleStatus="",this.onAliasClick&&(k.a.onAliasClick=this.onAliasClick),this.onUserClick&&(k.a.onUserClick=this.onUserClick),this.onGroupClick&&(k.a.onGroupClick=this.onGroupClick),R.g()||R.a(this.props.realQueryParams,this.props.defaultDeviceDisplayName).then(e=>{if(e)return void this.props.onTokenLoginCompleted();const t=this.screenAfterLogin?this.screenAfterLogin.screen:null;if("login"!==t&&"register"!==t&&"forgot_password"!==t)return this.loadSession();this.showScreenAfterLogin()}),L.a.getValue("analyticsOptIn")&&h.a.enable(),p.a.instance.enable(!0)}UNSAFE_componentWillUpdate(e,t){this.shouldTrackPageChange(this.state,t)&&this.startPageChangeTimer()}componentDidUpdate(e,t){if(this.shouldTrackPageChange(t,this.state)){const e=this.stopPageChangeTimer();h.a.trackPageChange(e),p.a.instance.trackPageChange(e)}this.focusComposer&&(y.a.fire(Q.a.FocusComposer),this.focusComposer=!1)}componentWillUnmount(){R.m(),y.a.unregister(this.dispatcherRef),this.themeWatcher.stop(),this.fontWatcher.stop(),window.removeEventListener("resize",this.handleResize),this.state.resizeNotifier.removeListener("middlePanelResized",this.dispatchTimelineResize),null!==this.accountPasswordTimer&&clearTimeout(this.accountPasswordTimer)}getFallbackHsUrl(){return this.props.serverConfig&&this.props.serverConfig.isDefault?this.props.config.fallback_hs_url:null}getServerProperties(){let e=this.state.serverConfig;return e||(e=this.props.serverConfig),e||(e=E.a.get().validated_server_config),{serverConfig:e}}loadSession(){return Promise.resolve().then(()=>R.h({fragmentQueryParams:this.props.startingFragmentQueryParams,enableGuest:this.props.enableGuest,guestHsUrl:this.getServerProperties().serverConfig.hsUrl,guestIsUrl:this.getServerProperties().serverConfig.isUrl,defaultDeviceDisplayName:this.props.defaultDeviceDisplayName})).then(e=>{e?L.a.getValue("analyticsOptIn")&&p.a.instance.enable(!1):le.a.instance.pickBestInvite()?y.a.dispatch({action:"start_registration"}):y.a.dispatch({action:"view_welcome_page"})})}startPageChangeTimer(){if(!performance||!performance.mark)return null;this.pageChanging?console.warn("MatrixChat.startPageChangeTimer: timer already started"):(this.pageChanging=!0,performance.mark("element_MatrixChat_page_change_start"))}stopPageChangeTimer(){if(!performance||!performance.mark)return null;if(!this.pageChanging)return void console.warn("MatrixChat.stopPageChangeTimer: timer not started");this.pageChanging=!1,performance.mark("element_MatrixChat_page_change_stop"),performance.measure("element_MatrixChat_page_change_delta","element_MatrixChat_page_change_start","element_MatrixChat_page_change_stop"),performance.clearMarks("element_MatrixChat_page_change_start"),performance.clearMarks("element_MatrixChat_page_change_stop");const e=performance.getEntriesByName("element_MatrixChat_page_change_delta").pop();return e?e.duration:null}shouldTrackPageChange(e,t){return e.currentRoomId!==t.currentRoomId||e.view!==t.view||e.page_type!==t.page_type}setStateForNewView(e){if(void 0===e.view)throw new Error("setStateForNewView with no view!");const t={currentUserId:null,justRegistered:!1};Object.assign(t,e),this.setState(t)}setPage(e){this.setState({page_type:e})}async startRegistration(e){const t={view:pe.REGISTER};e.client_secret&&e.session_id&&e.hs_url&&e.is_url&&e.sid&&(t.serverConfig=await q.b.validateServerConfigWithStaticUrls(e.hs_url,e.is_url),t.register_client_secret=e.client_secret,t.register_session_id=e.session_id,t.register_id_sid=e.sid),this.setStateForNewView(t),U.a.isLogin=!0,this.themeWatcher.recheck(),this.notifyNewScreen("register")}viewRoom(e){this.focusComposer=!0,e.room_alias?console.log(`Switching to room alias ${e.room_alias} at event `+e.event_id):console.log(`Switching to room id ${e.room_id} at event `+e.event_id);let t=Promise.resolve(null);if(!this.firstSyncComplete){if(!this.firstSyncPromise)return void console.warn("Cannot view a room before first sync. room_id:",e.room_id);t=this.firstSyncPromise.promise}return t.then(()=>{let t=e.room_alias||e.room_id;const n=b.a.get().getRoom(e.room_id);if(n){const e=O.a(n);e&&(t=e,Object(K.b)(e,n.roomId)),localStorage&&localStorage.setItem("mx_last_room_id",n.roomId)}const o="#"===t[0]&&e.room_id===this.state.currentRoomId;e.event_id&&e.highlighted&&(t+="/"+e.event_id),this.setState({view:pe.LOGGED_IN,currentRoomId:e.room_id||null,page_type:F.a.RoomView,threepidInvite:e.threepid_invite,roomOobData:e.oob_data,viaServers:e.via_servers,ready:!0},()=>{this.notifyNewScreen("room/"+t,o)})})}async viewGroup(e){const t=e.group_id;if(!this.firstSyncComplete){if(!this.firstSyncPromise)return void console.warn("Cannot view a group before first sync. group_id:",t);await this.firstSyncPromise.promise}this.setState({view:pe.LOGGED_IN,currentGroupId:t,currentGroupIsNew:e.group_is_new}),this.setPage(F.a.GroupView),this.notifyNewScreen("group/"+t)}viewSomethingBehindModal(){this.state.view===pe.LOGGED_IN?this.state.currentGroupId||this.state.currentRoomId||this.viewHome():this.viewWelcome()}viewWelcome(){this.setStateForNewView({view:pe.WELCOME}),this.notifyNewScreen("welcome"),U.a.isLogin=!0,this.themeWatcher.recheck()}viewHome(e=!1){this.setStateForNewView({view:pe.LOGGED_IN,justRegistered:e}),this.setPage(F.a.HomePage),this.notifyNewScreen("home"),U.a.isLogin=!1,this.themeWatcher.recheck()}viewUser(e,t){(this.firstSyncPromise?this.firstSyncPromise.promise:Promise.resolve()).then(()=>{"chat"!==t?(this.notifyNewScreen("user/"+e),this.setState({currentUserId:e}),this.setPage(F.a.UserView)):this.chatCreateOrReuse(e)})}async createRoom(e=!1){const t=de.a.instance.getSelectedCommunityId();if(t&&!de.a.instance.isAdminOf(t))return void T.a.createTrackedDialog("Pre-failure to create room","",re.a,{title:Object(P.a)("Cannot create rooms in this community"),description:Object(P.a)("You do not have permission to create rooms in this community.")});const n=C.getComponent("dialogs.CreateRoomDialog"),o=T.a.createTrackedDialog("Create Room","",n,{defaultPublic:e}),[r,i]=await o.finished;r&&Object(M.b)(i)}chatCreateOrReuse(e){if(b.a.get().isGuest())return e!==this.props.config.welcomeUserId&&y.a.dispatch({action:"do_after_sync_prepared",deferred_action:{action:"view_start_chat_or_reuse",user_id:e}}),void y.a.dispatch({action:"require_registration",go_welcome_on_cancel:!0,screen_after:{screen:"user/"+this.props.config.welcomeUserId,params:{action:"chat"}}});const t=b.a.get(),n=new H.a(t).getDMRoomsForUserId(e);n.length>0?y.a.dispatch({action:"view_room",room_id:n[0]}):y.a.dispatch({action:"start_chat",user_id:e})}leaveRoomWarnings(e){const t=b.a.get().getRoom(e).currentState.getStateEvents("m.room.join_rules",""),n=[];if(t){"public"!==t.getContent().join_rule&&n.push(c.a.createElement("span",{className:"warning",key:"non_public_warning"}," ",Object(P.a)("This room is not public. You will not be able to rejoin without an invite.")))}return n}leaveRoom(e){const t=C.getComponent("dialogs.QuestionDialog"),n=b.a.get().getRoom(e),o=this.leaveRoomWarnings(e);T.a.createTrackedDialog("Leave room","",t,{title:Object(P.a)("Leave room"),description:c.a.createElement("span",null,Object(P.a)("Are you sure you want to leave the room '%(roomName)s'?",{roomName:n.name}),o),button:Object(P.a)("Leave"),onFinished:t=>{if(t){const t=Object(se.d)(e),n=C.getComponent("elements.Spinner"),o=T.a.createDialog(n,null,"mx_Dialog_spinner");t.finally(()=>o.close())}}})}forgetRoom(e){b.a.get().forget(e).then(()=>{this.state.currentRoomId===e&&y.a.dispatch({action:"view_home_page"})}).catch(e=>{const t=e.errcode||Object(P.b)("unknown error code");T.a.createTrackedDialog("Failed to forget room","",re.a,{title:Object(P.a)("Failed to forget room %(errCode)s",{errCode:t}),description:e&&e.message?e.message:Object(P.a)("Operation failed")})})}async startWelcomeUserChat(){let e;e=this.firstSyncComplete?Promise.resolve():this.firstSyncPromise.promise,await e;if(0===H.a.shared().getDMRoomsForUserId(this.props.config.welcomeUserId).length){const e=await Object(M.b)({dmUserId:this.props.config.welcomeUserId,andView:!this.state.currentRoomId,spinner:!1}),t=e=>{"m.direct"===e.getType()&&e.getContent()&&e.getContent()[this.props.config.welcomeUserId]&&(b.a.get().store.save(!0),b.a.get().removeListener("accountData",t))};return b.a.get().on("accountData",t),e}return null}async onLoggedIn(){if(U.a.isLogin=!1,this.themeWatcher.recheck(),this.setStateForNewView({view:pe.LOGGED_IN}),this.screenAfterLogin&&this.screenAfterLogin.screen)this.showScreen(this.screenAfterLogin.screen,this.screenAfterLogin.params),this.screenAfterLogin=null;else if(b.a.currentUserIsJustRegistered())if(b.a.setJustRegisteredUserId(null),this.props.config.welcomeUserId&&Object(P.d)().startsWith("en")){null===await this.startWelcomeUserChat()&&y.a.dispatch({action:"view_home_page",justRegistered:!0})}else if(le.a.instance.pickBestInvite()){const e=le.a.instance.pickBestInvite(),t=le.a.instance.translateToWireFormat(e);this.showScreen("room/"+e.roomId,t)}else y.a.dispatch({action:"view_home_page",justRegistered:!0});else this.showScreenAfterLogin();var e;($.g(),await Object(W.d)(30),L.a.getValue("showCookieBar")&&(h.a.canEnable()||p.a.instance.canEnable()))&&(e=>{const t=E.a.get().brand;Y.a.sharedInstance().addOrReplaceToast({key:"analytics",title:Object(P.a)("Help us improve %(brand)s",{brand:t}),props:{description:Object(P.a)("Send <UsageDataLink>anonymous usage data</UsageDataLink> which helps us improve %(brand)s. This will use a <PolicyLink>cookie</PolicyLink>.",{brand:t},{UsageDataLink:e=>c.a.createElement(X.a,{kind:"link",onClick:te},e),PolicyLink:t=>e?c.a.createElement("a",{target:"_blank",href:e},t):t}),acceptLabel:Object(P.a)("Yes"),onAccept:Z,rejectLabel:Object(P.a)("No"),onReject:ee},component:J.a,className:"mx_AnalyticsToast",priority:10})})(null===(e=this.props.config.piwik)||void 0===e?void 0:e.policyUrl)}showScreenAfterLogin(){this.screenAfterLogin&&this.screenAfterLogin.screen?(this.showScreen(this.screenAfterLogin.screen,this.screenAfterLogin.params),this.screenAfterLogin=null):localStorage&&localStorage.getItem("mx_last_room_id")?this.viewLastRoom():b.a.get().isGuest()?y.a.dispatch({action:"view_welcome_page"}):y.a.dispatch({action:"view_home_page"})}viewLastRoom(){y.a.dispatch({action:"view_room",room_id:localStorage.getItem("mx_last_room_id")})}onLoggedOut(){this.notifyNewScreen("login"),this.setStateForNewView({view:pe.LOGIN,ready:!1,collapseLhs:!1,currentRoomId:null}),this.subTitleStatus="",this.setPageSubtitle(),U.a.isLogin=!0,this.themeWatcher.recheck()}onSoftLogout(){this.notifyNewScreen("soft_logout"),this.setStateForNewView({view:pe.SOFT_LOGOUT,ready:!1,collapseLhs:!1,currentRoomId:null}),this.subTitleStatus="",this.setPageSubtitle()}onWillStartClient(){this.firstSyncComplete=!1,this.firstSyncPromise=Object(W.b)();const e=b.a.get();e.setCanResetTimelineCallback(e=>(console.log("Request to reset timeline in room ",e," viewing:",this.state.currentRoomId),e!==this.state.currentRoomId||(!this.loggedInView.current||this.loggedInView.current.canResetTimelineInRoom(e)))),e.on("sync",(e,t,n)=>{y.a.dispatch({action:"sync_state",prevState:t,state:e}),"ERROR"===e||"RECONNECTING"===e?(n.error instanceof u.b&&R.d(n.error),this.setState({syncError:n.error||!0})):this.state.syncError&&this.setState({syncError:null}),this.updateStatusIndicator(e,t),"SYNCING"===e&&"SYNCING"===t||(console.info("MatrixClient sync state => %s",e),"PREPARED"===e&&(this.firstSyncComplete=!0,this.firstSyncPromise.resolve(),S.default.shouldShowPrompt()&&!b.a.userRegisteredWithinLastHours(24)&&Object(oe.b)(!1),y.a.fire(Q.a.FocusComposer),this.setState({ready:!0})))}),e.on("Session.logged_out",(function(e){if(!R.f()){if(401===e.httpStatus&&e.data&&e.data.soft_logout)return console.warn("Soft logout issued by server - avoiding data deletion"),void R.l();T.a.createTrackedDialog("Signed out","",re.a,{title:Object(P.a)("Signed Out"),description:Object(P.a)("For security, this session has been signed out. Please sign in again.")}),y.a.dispatch({action:"logout"})}})),e.on("no_consent",(function(t,n){const o=C.getComponent("dialogs.QuestionDialog");T.a.createTrackedDialog("No Consent Dialog","",o,{title:Object(P.a)("Terms and Conditions"),description:c.a.createElement("div",null,c.a.createElement("p",null," ",Object(P.a)("To continue using the %(homeserverDomain)s homeserver you must review and agree to our terms and conditions.",{homeserverDomain:e.getDomain()}))),button:Object(P.a)("Review terms and conditions"),cancelButton:Object(P.a)("Dismiss"),onFinished:e=>{if(e){window.open(n,"_blank").opener=null}}},null,!0)}));const t=new _((e,t)=>{h.a.trackEvent("E2E","Decryption failure",t,e),p.a.instance.track("decryption_failure",{errorCode:t},null,{sum:e})},e=>{switch(e){case"MEGOLM_UNKNOWN_INBOUND_SESSION_ID":return"olm_keys_not_sent_error";case"OLM_UNKNOWN_MESSAGE_INDEX":return"olm_index_error";case void 0:return"unexpected_error";default:return"unspecified_error"}});t.start(),e.on("Session.logged_out",()=>t.stop()),e.on("Event.decrypted",(e,n)=>t.eventDecrypted(e,n)),e.on("Room",e=>{if(b.a.get().isCryptoEnabled()){const t=L.a.getValueAt(ae.a.ROOM_DEVICE,"blacklistUnverifiedDevices",e.roomId,!0);e.setBlacklistUnverifiedDevices(t)}}),e.on("crypto.warning",e=>{switch(e){case"CRYPTO_WARNING_OLD_VERSION_DETECTED":T.a.createTrackedDialog("Crypto migrated","",re.a,{title:Object(P.a)("Old cryptography data detected"),description:Object(P.a)("Data from an older version of %(brand)s has been detected. This will have caused end-to-end cryptography to malfunction in the older version. End-to-end encrypted messages exchanged recently whilst using the older version may not be decryptable in this version. This may also cause messages exchanged with this version to fail. If you experience problems, log out and back in again. To retain message history, export and re-import your keys.",{brand:E.a.get().brand})})}}),e.on("crypto.keyBackupFailed",async e=>{let t,o;if(b.a.get().getKeyBackupEnabled())t=!0;else try{o=await b.a.get().getKeyBackupVersion(),null!==o&&(t=!0)}catch(e){return void console.error("Saw key backup error but failed to check backup version!",e)}t?T.a.createTrackedDialogAsync("New Recovery Method","New Recovery Method",n.e(28).then(n.bind(null,1624)),{newVersionInfo:o}):T.a.createTrackedDialogAsync("Recovery Method Removed","Recovery Method Removed",n.e(29).then(n.bind(null,1625)))}),e.on("crypto.keySignatureUploadFailure",(e,t,n)=>{const o=C.getComponent("views.dialogs.KeySignatureUploadFailedDialog");T.a.createTrackedDialog("Failed to upload key signatures","Failed to upload key signatures",o,{failures:e,source:t,continuation:n})}),e.on("crypto.verification.request",e=>{if(e.verifier){const t=C.getComponent("views.dialogs.IncomingSasDialog");T.a.createTrackedDialog("Incoming Verification","",t,{verifier:e.verifier},null,!1,!0)}else e.pending&&Y.a.sharedInstance().addOrReplaceToast({key:"verifreq_"+e.channel.transactionId,title:e.isSelfVerification?Object(P.a)("Self-verification request"):Object(P.a)("Verification Request"),icon:"verification",props:{request:e},component:C.getComponent("toasts.VerificationRequestToast"),priority:90})});const o=L.a.getValue("roomColor");w.a.tint(o.primary_color,o.secondary_color)}onClientStarted(){const e=b.a.get();if(e.isCryptoEnabled()){const t=L.a.getValueAt(ae.a.DEVICE,"blacklistUnverifiedDevices");e.setGlobalBlacklistUnverifiedDevices(t),e.setGlobalErrorOnUnknownDevices(!1)}}showScreen(e,t){const n=b.a.get();if(!n||n.isGuest()||!me.includes(e))if("register"===e)y.a.dispatch({action:"start_registration",params:t});else if("login"===e)y.a.dispatch({action:"start_login",params:t});else if("forgot_password"===e)y.a.dispatch({action:"start_password_recovery",params:t});else if("soft_logout"===e)n.getUserId()&&!R.g()?this.viewLastRoom():y.a.dispatch({action:"start_login",params:t});else if("new"===e)y.a.dispatch({action:"view_create_room"});else if("settings"===e)y.a.fire(Q.a.ViewUserSettings);else if("welcome"===e)y.a.dispatch({action:"view_welcome_page"});else if("home"===e)y.a.dispatch({action:"view_home_page"});else if("start"===e)this.showScreen("home"),y.a.dispatch({action:"require_registration"});else if("directory"===e)this.state.view===pe.WELCOME&&p.a.instance.track("onboarding_room_directory"),y.a.fire(Q.a.ViewRoomDirectory);else if("start_sso"===e||"start_cas"===e){let t=b.a.get();if(!t){const{hsUrl:e,isUrl:n}=this.props.serverConfig;t=l.p({baseUrl:e,idBaseUrl:n})}const n="start_sso"===e?"sso":"cas";v.a.get().startSingleSignOn(t,n,this.getFragmentAfterLogin())}else if("groups"===e)y.a.dispatch({action:"view_my_groups"});else if(0===e.indexOf("room/")){var o,r,i;const n=e.substring(5),a=n.indexOf(":")+1;let s=n.length;n.substring(a).indexOf("/")>-1&&(s=a+n.substring(a).indexOf("/"));const c=n.substring(0,s);let l,u=n.substring(s+1);u||(u=void 0),t.signurl&&t.email&&(l=le.a.instance.storeInvite(c,t));let d=[];t.via&&(d="string"==typeof t.via?[t.via]:t.via);const h={action:"view_room",event_id:u,via_servers:d,highlighted:Boolean(u),threepid_invite:l,oob_data:{name:null===(o=l)||void 0===o?void 0:o.roomName,avatarUrl:null===(r=l)||void 0===r?void 0:r.roomAvatarUrl,inviterName:null===(i=l)||void 0===i?void 0:i.inviterName},room_alias:void 0,room_id:void 0};"#"===c[0]?h.room_alias=c:h.room_id=c,y.a.dispatch(h)}else if(0===e.indexOf("user/")){const n=e.substring(5);y.a.dispatch({action:"view_user_info",userId:n,subAction:t.action})}else if(0===e.indexOf("group/")){const t=e.substring(6);y.a.dispatch({action:"view_group",group_id:t})}else console.info("Ignoring showScreen for '%s'",e);else y.a.dispatch({action:"view_home_page"})}notifyNewScreen(e,t=!1){this.props.onNewScreen&&this.props.onNewScreen(e,t),this.setPageSubtitle()}onAliasClick(e,t){e.preventDefault(),y.a.dispatch({action:"view_room",room_alias:t})}onUserClick(e,t){e.preventDefault();const n=new d.a(null,t);n&&y.a.dispatch({action:Q.a.ViewUser,member:n})}onGroupClick(e,t){e.preventDefault(),y.a.dispatch({action:"view_group",group_id:t})}onLogoutClick(e){y.a.dispatch({action:"logout"}),e.stopPropagation(),e.preventDefault()}dispatchTimelineResize(){y.a.dispatch({action:"timeline_resize"})}onRoomCreated(e){y.a.dispatch({action:"view_room",room_id:e})}onRegistered(e){return R.k(e)}onSendEvent(e,t){const n=b.a.get();n?n.sendEvent(e,t.getType(),t.getContent()).then(()=>{y.a.dispatch({action:"message_sent"})},e=>{y.a.dispatch({action:"message_send_failed"})}):y.a.dispatch({action:"message_send_failed"})}setPageSubtitle(e=""){if(this.state.currentRoomId){const t=b.a.get(),n=t&&t.getRoom(this.state.currentRoomId);n&&(e=`${this.subTitleStatus} | ${n.name} ${e}`)}else e=`${this.subTitleStatus} ${e}`;const t=`${E.a.get().brand} ${e}`;document.title!==t&&(document.title=t)}updateStatusIndicator(e,t){const n=ie.a.instance.globalState.numUnreadStates;v.a.get()&&(v.a.get().setErrorStatus("ERROR"===e),v.a.get().setNotificationCount(n)),this.subTitleStatus="","ERROR"===e&&(this.subTitleStatus+=`[${Object(P.a)("Offline")}] `),n>0&&(this.subTitleStatus+=`[${n}]`),this.setPageSubtitle()}onCloseAllSettings(){y.a.dispatch({action:"close_settings"})}getFragmentAfterLogin(){let e="";const t=this.props.initialScreenAfterLogin;return t&&!["welcome","login","register","start_sso","start_cas"].includes(t.screen)&&(e="/"+t.screen),e}render(){const e=this.getFragmentAfterLogin();let t=null;if(this.state.view===pe.LOADING){const e=C.getComponent("elements.Spinner");t=c.a.createElement("div",{className:"mx_MatrixChat_splash"},c.a.createElement(e,null))}else if(this.state.view===pe.COMPLETE_SECURITY){const e=C.getComponent("structures.auth.CompleteSecurity");t=c.a.createElement(e,{onFinished:this.onCompleteSecurityE2eSetupFinished})}else if(this.state.view===pe.E2E_SETUP){const e=C.getComponent("structures.auth.E2eSetup");t=c.a.createElement(e,{onFinished:this.onCompleteSecurityE2eSetupFinished,accountPassword:this.accountPassword})}else if(this.state.view===pe.LOGGED_IN){const e=this.state.syncError&&this.state.syncError instanceof u.b;if(this.state.ready&&this.state.page_type&&!e){const e=C.getComponent("structures.LoggedInView");t=c.a.createElement(e,r()({},this.props,this.state,{ref:this.loggedInView,matrixClient:b.a.get(),onRoomCreated:this.onRoomCreated,onCloseAllSettings:this.onCloseAllSettings,onRegistered:this.onRegistered,currentRoomId:this.state.currentRoomId}))}else{const n=C.getComponent("elements.Spinner");let o;this.state.syncError&&!e&&(o=c.a.createElement("div",{className:"mx_MatrixChat_syncError"},Object(j.c)(this.state.syncError))),t=c.a.createElement("div",{className:"mx_MatrixChat_splash"},o,c.a.createElement(n,null),c.a.createElement("a",{href:"#",className:"mx_MatrixChat_splashButtons",onClick:this.onLogoutClick},Object(P.a)("Logout")))}}else if(this.state.view===pe.WELCOME){const e=C.getComponent("auth.Welcome");t=c.a.createElement(e,null)}else if(this.state.view===pe.REGISTER&&L.a.getValue(ue.a.Registration)){var n;const o=C.getComponent("structures.auth.Registration"),i=null===(n=le.a.instance.pickBestInvite())||void 0===n?void 0:n.toEmail;t=c.a.createElement(o,r()({clientSecret:this.state.register_client_secret,sessionId:this.state.register_session_id,idSid:this.state.register_id_sid,email:i,brand:this.props.config.brand,makeRegistrationUrl:this.makeRegistrationUrl,onLoggedIn:this.onRegisterFlowComplete,onLoginClick:this.onLoginClick,onServerConfigChange:this.onServerConfigChange,defaultDeviceDisplayName:this.props.defaultDeviceDisplayName,fragmentAfterLogin:e},this.getServerProperties()))}else if(this.state.view===pe.FORGOT_PASSWORD&&L.a.getValue(ue.a.PasswordReset)){const e=C.getComponent("structures.auth.ForgotPassword");t=c.a.createElement(e,r()({onComplete:this.onLoginClick,onLoginClick:this.onLoginClick,onServerConfigChange:this.onServerConfigChange},this.getServerProperties()))}else if(this.state.view===pe.LOGIN){const n=L.a.getValue(ue.a.PasswordReset),o=C.getComponent("structures.auth.Login");t=c.a.createElement(o,r()({isSyncing:this.state.pendingInitialSync,onLoggedIn:this.onUserCompletedLoginFlow,onRegisterClick:this.onRegisterClick,fallbackHsUrl:this.getFallbackHsUrl(),defaultDeviceDisplayName:this.props.defaultDeviceDisplayName,onForgotPasswordClick:n?this.onForgotPasswordClick:void 0,onServerConfigChange:this.onServerConfigChange,fragmentAfterLogin:e},this.getServerProperties()))}else if(this.state.view===pe.SOFT_LOGOUT){const n=C.getComponent("structures.auth.SoftLogout");t=c.a.createElement(n,{realQueryParams:this.props.realQueryParams,onTokenLoginCompleted:this.props.onTokenLoginCompleted,fragmentAfterLogin:e})}else console.error("Unknown view "+this.state.view);const o=C.getComponent("elements.ErrorBoundary");return c.a.createElement(o,null,t)}}function _e(){const e=window.matrixChat;return e&&e.state.view===pe.LOGGED_IN}a()(fe,"displayName","MatrixChat"),a()(fe,"defaultProps",{realQueryParams:{},startingFragmentQueryParams:{},config:{},onTokenLoginCompleted:()=>{}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(82),r=n.n(o),i=n(3),a=n(117);var s=n(86),c=n(693),l=n(89),u=n(745),d=n(798);const h={};var p=n(746),m=n(133),g=n(164),f=n(199),_=n(306),b=n(87);class v extends i.WidgetDriver{constructor(e,t,n,o){if(super(),this.forWidget=t,this.forWidgetKind=n,this.inRoomId=o,r()(this,"allowedCapabilities",void 0),this.allowedCapabilities=new Set([...e,i.MatrixCapabilities.Screenshots]),m.a.JITSI.matches(this.forWidget.type)&&n===i.WidgetKind.Room)this.allowedCapabilities.add(i.MatrixCapabilities.AlwaysOnScreen);else if(m.a.STICKERPICKER.matches(this.forWidget.type)&&n===i.WidgetKind.Account){const e=i.WidgetEventCapability.forRoomEvent(i.EventDirection.Send,g.a.Sticker).raw;this.allowedCapabilities.add(i.MatrixCapabilities.StickerSending),this.allowedCapabilities.add(e)}}async validateCapabilities(e){const t=(n=e,o=this.allowedCapabilities,Object(a.b)(Array.from(n),Array.from(o)));var n,o;const r=new Set(t.removed),i=new Set(this.allowedCapabilities);if(Object(d.b)(this.forWidget).forEach(e=>{i.add(e),r.delete(e)}),h.preapproveCapabilities){const t=await h.preapproveCapabilities(this.forWidget,e);t&&t.forEach(e=>{i.add(e),r.delete(e)})}if(r.size>0)try{const[e]=await l.a.createTrackedDialog("Approve Widget Caps","",d.a,{requestedCapabilities:r,widget:this.forWidget,widgetKind:this.forWidgetKind}).finished;(e.approved||[]).forEach(e=>i.add(e))}catch(e){console.error("Non-fatal error getting capabilities: ",e)}return new Set(function(e,t){return Object(a.g)(Array.from(e),Array.from(t))}(i,e))}async sendEvent(e,t,n=null){const o=s.a.get(),r=c.a.activeRoomId;if(!o||!r)throw new Error("Not in a room or not attached to a client");let i=null;return null!==n?i=await o.sendStateEvent(r,e,t,n):(i=await o.sendEvent(r,e,t),e===g.a.RoomMessage&&f.CHAT_EFFECTS.forEach(e=>{Object(_.containsEmoji)(t,e.emojis)&&b.a.dispatch({action:"effects."+e.command})})),{roomId:r,eventId:i.event_id}}async askOpenID(e){const t=p.b.instance.getOIDCState(this.forWidget,this.forWidgetKind,this.inRoomId),n=()=>s.a.get().getOpenIdToken();return t===p.a.Denied?e.update({state:i.OpenIDRequestState.Blocked}):t===p.a.Allowed?e.update({state:i.OpenIDRequestState.Allowed,token:await n()}):(e.update({state:i.OpenIDRequestState.PendingUserConfirmation}),void l.a.createTrackedDialog("OpenID widget permissions","",u.a,{widget:this.forWidget,widgetKind:this.forWidgetKind,inRoomId:this.inRoomId,onFinished:async t=>t?e.update({state:i.OpenIDRequestState.Allowed,token:await n()}):e.update({state:i.OpenIDRequestState.Blocked})}))}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return b}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(136),c=n(83),l=n(3),u=n(145),d=n(138),h=n(214),p=n(171),m=n(164),g=n(747);class f{static bylineFor(e){return e.isState?e.keyStr?Object(c.a)("with state key %(stateKey)s",{stateKey:e.keyStr}):Object(c.a)("with an empty state key"):null}static for(e,t){if(f.simpleCaps[e]){const n=f.simpleCaps[e];if(n[t])return{primary:Object(c.a)(n[t])};if(n.generic)return{primary:Object(c.a)(n.generic)}}const[n]=l.WidgetEventCapability.findEventCapabilities([e]);if(n){if(!n.isState&&n.eventType===m.a.RoomMessage)return f.forRoomMessageCap(n,t);const e=n.isState?f.stateSendRecvCaps:f.nonStateSendRecvCaps;if(e[n.eventType]){const o=e[n.eventType],r=o[t]||o.generic;if(r&&r[n.direction])return{primary:Object(c.a)(r[n.direction])}}return t===l.WidgetKind.Room?n.direction===l.EventDirection.Send?{primary:Object(c.a)("Send <b>%(eventType)s</b> events as you in this room",{eventType:n.eventType},{b:e=>a.a.createElement("b",null,e)}),byline:f.bylineFor(n)}:{primary:Object(c.a)("See <b>%(eventType)s</b> events posted to this room",{eventType:n.eventType},{b:e=>a.a.createElement("b",null,e)}),byline:f.bylineFor(n)}:n.direction===l.EventDirection.Send?{primary:Object(c.a)("Send <b>%(eventType)s</b> events as you in your active room",{eventType:n.eventType},{b:e=>a.a.createElement("b",null,e)}),byline:f.bylineFor(n)}:{primary:Object(c.a)("See <b>%(eventType)s</b> events posted to your active room",{eventType:n.eventType},{b:e=>a.a.createElement("b",null,e)}),byline:f.bylineFor(n)}}return{primary:Object(c.a)("The <b>%(capability)s</b> capability",{capability:e},{b:e=>a.a.createElement("b",null,e)})}}static forRoomMessageCap(e,t){if(!e.keyStr)return e.direction===l.EventDirection.Send?{primary:t===l.WidgetKind.Room?Object(c.a)("Send messages as you in this room"):Object(c.a)("Send messages as you in your active room")}:{primary:t===l.WidgetKind.Room?Object(c.a)("See messages posted to this room"):Object(c.a)("See messages posted to your active room")};switch(e.keyStr){case m.b.Text:return e.direction===l.EventDirection.Send?{primary:t===l.WidgetKind.Room?Object(c.a)("Send text messages as you in this room"):Object(c.a)("Send text messages as you in your active room")}:{primary:t===l.WidgetKind.Room?Object(c.a)("See text messages posted to this room"):Object(c.a)("See text messages posted to your active room")};case m.b.Emote:return e.direction===l.EventDirection.Send?{primary:t===l.WidgetKind.Room?Object(c.a)("Send emotes as you in this room"):Object(c.a)("Send emotes as you in your active room")}:{primary:t===l.WidgetKind.Room?Object(c.a)("See emotes posted to this room"):Object(c.a)("See emotes posted to your active room")};case m.b.Image:return e.direction===l.EventDirection.Send?{primary:t===l.WidgetKind.Room?Object(c.a)("Send images as you in this room"):Object(c.a)("Send images as you in your active room")}:{primary:t===l.WidgetKind.Room?Object(c.a)("See images posted to this room"):Object(c.a)("See images posted to your active room")};case m.b.Video:return e.direction===l.EventDirection.Send?{primary:t===l.WidgetKind.Room?Object(c.a)("Send videos as you in this room"):Object(c.a)("Send videos as you in your active room")}:{primary:t===l.WidgetKind.Room?Object(c.a)("See videos posted to this room"):Object(c.a)("See videos posted to your active room")};case m.b.File:return e.direction===l.EventDirection.Send?{primary:t===l.WidgetKind.Room?Object(c.a)("Send general files as you in this room"):Object(c.a)("Send general files as you in your active room")}:{primary:t===l.WidgetKind.Room?Object(c.a)("See general files posted to this room"):Object(c.a)("See general files posted to your active room")};default:{let n;return n=e.direction===l.EventDirection.Send?t===l.WidgetKind.Room?Object(c.a)("Send <b>%(msgtype)s</b> messages as you in this room",{msgtype:e.keyStr},{b:e=>a.a.createElement("b",null,e)}):Object(c.a)("Send <b>%(msgtype)s</b> messages as you in your active room",{msgtype:e.keyStr},{b:e=>a.a.createElement("b",null,e)}):t===l.WidgetKind.Room?Object(c.a)("See <b>%(msgtype)s</b> messages posted to this room",{msgtype:e.keyStr},{b:e=>a.a.createElement("b",null,e)}):Object(c.a)("See <b>%(msgtype)s</b> messages posted to your active room",{msgtype:e.keyStr},{b:e=>a.a.createElement("b",null,e)}),{primary:n}}}}}function _(e){return JSON.parse(localStorage.getItem(`widget_${e.id}_approved_caps`)||"[]")}r()(f,"simpleCaps",{[l.MatrixCapabilities.AlwaysOnScreen]:{[l.WidgetKind.Room]:Object(c.b)("Remain on your screen when viewing another room, when running"),generic:Object(c.b)("Remain on your screen while running")},[l.MatrixCapabilities.StickerSending]:{[l.WidgetKind.Room]:Object(c.b)("Send stickers into this room"),generic:Object(c.b)("Send stickers into your active room")},[g.a.CanChangeViewedRoom]:{generic:Object(c.b)("Change which room you're viewing")}}),r()(f,"stateSendRecvCaps",{[m.a.RoomTopic]:{[l.WidgetKind.Room]:{[l.EventDirection.Send]:Object(c.b)("Change the topic of this room"),[l.EventDirection.Receive]:Object(c.b)("See when the topic changes in this room")},generic:{[l.EventDirection.Send]:Object(c.b)("Change the topic of your active room"),[l.EventDirection.Receive]:Object(c.b)("See when the topic changes in your active room")}},[m.a.RoomName]:{[l.WidgetKind.Room]:{[l.EventDirection.Send]:Object(c.b)("Change the name of this room"),[l.EventDirection.Receive]:Object(c.b)("See when the name changes in this room")},generic:{[l.EventDirection.Send]:Object(c.b)("Change the name of your active room"),[l.EventDirection.Receive]:Object(c.b)("See when the name changes in your active room")}},[m.a.RoomAvatar]:{[l.WidgetKind.Room]:{[l.EventDirection.Send]:Object(c.b)("Change the avatar of this room"),[l.EventDirection.Receive]:Object(c.b)("See when the avatar changes in this room")},generic:{[l.EventDirection.Send]:Object(c.b)("Change the avatar of your active room"),[l.EventDirection.Receive]:Object(c.b)("See when the avatar changes in your active room")}}}),r()(f,"nonStateSendRecvCaps",{[m.a.Sticker]:{[l.WidgetKind.Room]:{[l.EventDirection.Send]:Object(c.b)("Send stickers to this room as you"),[l.EventDirection.Receive]:Object(c.b)("See when a sticker is posted in this room")},generic:{[l.EventDirection.Send]:Object(c.b)("Send stickers to your active room as you"),[l.EventDirection.Receive]:Object(c.b)("See when anyone posts a sticker to your active room")}}});class b extends a.a.PureComponent{constructor(e){super(e),r()(this,"eventPermissionsMap",new Map),r()(this,"onToggle",e=>{const t=Object(u.e)(this.state.booleanStates);t[e]=!t[e],this.setState({booleanStates:t})}),r()(this,"onRememberSelectionChange",e=>{this.setState({rememberSelection:e})}),r()(this,"onSubmit",async e=>{this.closeAndTryRemember(Object.entries(this.state.booleanStates).filter(([e,t])=>t).map(([e])=>e))}),r()(this,"onReject",async e=>{this.closeAndTryRemember([])});l.WidgetEventCapability.findEventCapabilities(this.props.requestedCapabilities).forEach(e=>this.eventPermissionsMap.set(e.raw,e));const t={};this.props.requestedCapabilities.forEach(e=>t[e]=!0),this.state={booleanStates:t,rememberSelection:!0}}closeAndTryRemember(e){var t,n;this.state.rememberSelection&&(t=this.props.widget,n=e,localStorage.setItem(`widget_${t.id}_approved_caps`,JSON.stringify(n))),this.props.onFinished({approved:e})}render(){const e=Object.entries(this.state.booleanStates).map(([e,t],n)=>{const o=f.for(e,this.props.widgetKind),r=o.byline?a.a.createElement("span",{className:"mx_WidgetCapabilitiesPromptDialog_byline"},o.byline):null;return a.a.createElement("div",{className:"mx_WidgetCapabilitiesPromptDialog_cap",key:e+n},a.a.createElement(d.a,{checked:t,onChange:()=>this.onToggle(e)},o.primary),r)});return a.a.createElement(s.a,{className:"mx_WidgetCapabilitiesPromptDialog",onFinished:this.props.onFinished,title:Object(c.a)("Approve widget permissions")},a.a.createElement("form",{onSubmit:this.onSubmit},a.a.createElement("div",{className:"mx_Dialog_content"},a.a.createElement("div",{className:"text-muted"},Object(c.a)("This widget would like to:")),e,a.a.createElement(h.a,{primaryButton:Object(c.a)("Approve"),cancelButton:Object(c.a)("Decline All"),onPrimaryButtonClick:this.onSubmit,onCancel:this.onReject,additive:a.a.createElement(p.a,{value:this.state.rememberSelection,toggleInFront:!0,onChange:this.onRememberSelectionChange,label:Object(c.a)("Remember my selection for this widget")})}))))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(86),u=n(91),d=n(769),h=n(83);class p extends a.a.Component{constructor(...e){super(...e),r()(this,"state",{loading:!0}),r()(this,"_onStateEvent",e=>{e.getRoomId()===this.props.room.roomId&&"m.room.pinned_events"===e.getType()&&this._updatePinnedMessages()}),r()(this,"_updatePinnedMessages",()=>{const e=this.props.room.currentState.getStateEvents("m.room.pinned_events","");if(e&&e.getContent().pinned){const t=[],n=l.a.get();e.getContent().pinned.map(e=>{t.push(n.getEventTimeline(this.props.room.getUnfilteredTimelineSet(),e,0).then(t=>{const n=t.getEvents().find(t=>t.getId()===e);return{eventId:e,timeline:t,event:n}}).catch(t=>(console.error("Error looking up pinned event "+e+" in room "+this.props.room.roomId),console.error(t),null)))}),Promise.all(t).then(e=>{const t=e.filter(e=>class{static isPinnable(e){return!!e&&("m.room.message"===e.getType()&&!e.isRedacted())}}.isPinnable(e.event));this.setState({loading:!1,pinned:t})})}else this.setState({loading:!1,pinned:[]});this._updateReadState()})}componentDidMount(){this._updatePinnedMessages(),l.a.get().on("RoomState.events",this._onStateEvent)}componentWillUnmount(){l.a.get()&&l.a.get().removeListener("RoomState.events",this._onStateEvent)}_updateReadState(){const e=this.props.room.currentState.getStateEvents("m.room.pinned_events","");if(!e)return;let t=[];const n=this.props.room.getAccountData("im.vector.room.read_pins");n&&n.getContent()&&(t=n.getContent().event_ids||[]),t.includes(e.getId())||(t.push(e.getId()),t=t.reverse().splice(0,10).reverse(),l.a.get().setRoomAccountData(this.props.room.roomId,"im.vector.room.read_pins",{event_ids:t}))}_getPinnedTiles(){return 0===this.state.pinned.length?a.a.createElement("div",null,Object(h.a)("No pinned messages.")):this.state.pinned.map(e=>a.a.createElement(d.a,{key:e.event.getId(),mxRoom:this.props.room,mxEvent:e.event,onUnpinned:this._updatePinnedMessages}))}render(){let e=a.a.createElement("div",null,Object(h.a)("Loading..."));return this.state&&!this.state.loading&&(e=this._getPinnedTiles()),a.a.createElement("div",{className:"mx_PinnedEventsPanel"},a.a.createElement("div",{className:"mx_PinnedEventsPanel_body"},a.a.createElement(u.a,{className:"mx_PinnedEventsPanel_cancel",onClick:this.props.onCancelClick},a.a.createElement("img",{className:"mx_filterFlipColor",src:n(219),width:"18",height:"18"})),a.a.createElement("h3",{className:"mx_PinnedEventsPanel_header"},Object(h.a)("Pinned Messages")),e))}}r()(p,"propTypes",{room:c.a.object.isRequired,onCancelClick:c.a.func})},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return d}));var o=n(82),r=n.n(o),i=n(1281),a=n.n(i);class s{constructor(e){r()(this,"_regex",void 0);const t=a()(e,{extended:!1,globstar:!1}).toString().replace(/\\\?/g,".");this._regex=new RegExp(t.substring(1,t.length-1))}test(e){return this._regex.test(e)}}const c="m.ban",l=[c,"org.matrix.mjolnir.ban"];function u(e,t=!0){return l.includes(e)?t?l[l.length-1]:c:null}class d{constructor(e,t,n,o){r()(this,"_glob",void 0),r()(this,"_entity",void 0),r()(this,"_action",void 0),r()(this,"_reason",void 0),r()(this,"_kind",void 0),this._glob=new s(e),this._entity=e,this._action=u(t,!1),this._reason=n,this._kind=o}get entity(){return this._entity}get reason(){return this._reason}get kind(){return this._kind}get recommendation(){return this._action}isMatch(e){return this._glob.test(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(82),r=n.n(o);class i{constructor(e){this.tagId=e,r()(this,"_n",0),r()(this,"_previews",!1),r()(this,"_collapsed",!1);const t=localStorage.getItem(this.key);if(t){const e=JSON.parse(t);this._n=e.numTiles,this._previews=e.showPreviews,this._collapsed=e.collapsed}}get isCollapsed(){return this._collapsed}set isCollapsed(e){this._collapsed=e,this.save()}get showPreviews(){return this._previews}set showPreviews(e){this._previews=e,this.save()}get tileHeight(){return 44}get key(){return`mx_sublist_layout_${this.tagId}_boxed`}get visibleTiles(){return 0===this._n?this.defaultVisibleTiles:Math.max(this._n,this.minVisibleTiles)}set visibleTiles(e){this._n=e,this.save()}get minVisibleTiles(){return 1}get defaultVisibleTiles(){return 5}tilesWithPadding(e,t){return this.pixelsToTiles(this.tilesToPixelsWithPadding(e,t))}tilesToPixelsWithPadding(e,t){return this.tilesToPixels(e)+t}tilesToPixels(e){return e*this.tileHeight}pixelsToTiles(e){return e/this.tileHeight}reset(){localStorage.removeItem(this.key)}save(){localStorage.setItem(this.key,JSON.stringify(this.serialize()))}serialize(){return{numTiles:this.visibleTiles,showPreviews:this.showPreviews,collapsed:this.isCollapsed}}}var a=n(139),s=n(87);class c extends a.a{constructor(){super(s.a),r()(this,"layoutMap",new Map)}static get instance(){return c.internalInstance||(c.internalInstance=new c),c.internalInstance}ensureLayoutExists(e){this.layoutMap.has(e)||this.layoutMap.set(e,new i(e))}getLayoutFor(e){return this.layoutMap.has(e)||this.layoutMap.set(e,new i(e)),this.layoutMap.get(e)}async resetLayouts(){console.warn("Resetting layouts for room list");for(const e of this.layoutMap.values())e.reset()}async onNotReady(){this.layoutMap.clear()}async onAction(e){return Promise.resolve()}}r()(c,"internalInstance",void 0),window.mxRoomListLayoutStore=c.instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return N}));var o=n(82),r=n.n(o),i=n(3),a=n(797),s=n(6),c=n(261),l=n(116),u=n(86),d=n(226),h=n(122),p=n(160),m=n(88),g=n(133),f=n(247),_=n(145),b=n(87),v=n(13),E=n(139),y=n(89),S=n(748);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class C extends E.a{constructor(){super(b.a,{}),r()(this,"modalInstance",null),r()(this,"openSourceWidgetId",null),r()(this,"canOpenModalWidget",()=>!this.modalInstance),r()(this,"openModalWidget",(e,t)=>{this.modalInstance||(this.openSourceWidgetId=t.id,this.modalInstance=y.a.createTrackedDialog("Modal Widget","",S.a,{widgetDefinition:w({},e),sourceWidgetId:t.id,onFinished:(e,n)=>{e?this.closeModalWidget(t,n):this.closeModalWidget(t,{"m.exited":!0}),this.openSourceWidgetId=null,this.modalInstance=null}},null,!1,!0))}),r()(this,"closeModalWidget",(e,t)=>{if(this.modalInstance&&this.openSourceWidgetId===e.id){this.openSourceWidgetId=null,this.modalInstance.close(),this.modalInstance=null;const n=c.a.instance.getMessaging(e);if(!n)return void console.error("No source widget messaging for modal widget");n.notifyModalWidgetClose(t)}})}static get instance(){return C.internalInstance}async onAction(e){}}r()(C,"internalInstance",new C),window.mxModalWidgetStore=C.instance;var x=n(370),O=n(253),k=n(103),R=n(747);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class D extends i.Widget{constructor(e){super(e),this.rawDefinition=e}get templateUrl(){var e;return g.a.JITSI.matches(this.type)?h.a.getLocalJitsiWrapperUrl({forLocalRender:!0,auth:null===(e=super.rawData)||void 0===e?void 0:e.auth}):super.templateUrl}get popoutTemplateUrl(){var e;return g.a.JITSI.matches(this.type)?h.a.getLocalJitsiWrapperUrl({forLocalRender:!1,auth:null===(e=super.rawData)||void 0===e?void 0:e.auth}):this.templateUrl}get rawData(){let e=super.rawData.conferenceId;if(void 0===e){e=new URL(super.templateUrl).searchParams.get("confId")}let t=super.rawData.domain;void 0===t&&(t="jitsi.riot.im");let n=(new x.a).getEffectiveTheme();if(n.startsWith("custom-")){const e=Object(O.c)(n.substr(7));n=e.is_dark?"dark":"light"}return n=n.includes("light")?"light":"dark",I(I({},super.rawData),{},{theme:n,conferenceId:e,domain:t})}getCompleteUrl(e,t=!1){return Object(i.runTemplate)(t?this.popoutTemplateUrl:this.templateUrl,I(I({},this.rawDefinition),{},{data:this.rawData}),e)}}class N extends s.EventEmitter{constructor(e){var t;super(),this.appTileProps=e,r()(this,"messaging",void 0),r()(this,"mockWidget",void 0),r()(this,"scalarToken",void 0),r()(this,"roomId",void 0),r()(this,"kind",void 0),r()(this,"onOpenModal",async e=>{e.preventDefault(),C.instance.canOpenModalWidget()?(C.instance.openModalWidget(e.detail.data,this.mockWidget),this.messaging.transport.reply(e.detail,{})):this.messaging.transport.reply(e.detail,{error:{message:"Unable to open modal at this time"}})}),r()(this,"onEvent",e=>{e.isBeingDecrypted()||e.isDecryptionFailure()||e.getRoomId()===this.eventListenerRoomId&&this.feedEvent(e)}),r()(this,"onEventDecrypted",e=>{e.isDecryptionFailure()||e.getRoomId()===this.eventListenerRoomId&&this.feedEvent(e)});let n=e.app;n.creatorUserId||(n=Object(_.e)(n),n.creatorUserId=u.a.get().getUserId()),this.mockWidget=new D(n),this.roomId=null===(t=e.room)||void 0===t?void 0:t.roomId,this.kind=e.userWidget?i.WidgetKind.Account:i.WidgetKind.Room}get eventListenerRoomId(){return this.roomId?this.roomId:l.a.getRoomId()}get widgetApi(){return this.messaging}get embedUrl(){return this.runUrlTemplate({asPopout:!1})}get popoutUrl(){return this.runUrlTemplate({asPopout:!0})}runUrlTemplate(e={asPopout:!1}){const t=this.mockWidget.getCompleteUrl({currentRoomId:l.a.getRoomId(),currentUserId:u.a.get().getUserId(),userDisplayName:d.a.instance.displayName,userHttpAvatarUrl:d.a.instance.getHttpAvatarUrl()},null==e?void 0:e.asPopout),n=new URL(t);return(null==e?void 0:e.asPopout)||(n.searchParams.set("widgetId",this.mockWidget.id),n.searchParams.set("parentUrl",window.location.href.split("#",2)[0]),this.scalarToken&&n.searchParams.set("scalar_token",this.scalarToken)),n.toString().replace(/%24/g,"$")}get isManagedByManager(){return!!this.scalarToken}get started(){return!!this.messaging}get widgetId(){return this.messaging.widget.id}start(e){if(this.started)return;const t=this.appTileProps.whitelistCapabilities||[],n=new a.a(t,this.mockWidget,this.kind,this.roomId);this.messaging=new i.ClientWidgetApi(this.mockWidget,e,n),this.messaging.on("preparing",()=>this.emit("preparing")),this.messaging.on("ready",()=>this.emit("ready")),this.messaging.on("action:"+i.WidgetApiFromWidgetAction.OpenModalWidget,this.onOpenModal),c.a.instance.storeMessaging(this.mockWidget,this.messaging),!this.appTileProps.userWidget&&this.appTileProps.room&&f.a.setRoomId(this.mockWidget.id,this.appTileProps.room.roomId),this.messaging.on("action:"+v.a.ViewRoom,e=>{e.preventDefault();const t=(e.detail.data||{}).room_id;return t?this.messaging.hasCapability(R.a.CanChangeViewedRoom)?(b.a.dispatch({action:"view_room",room_id:t}),void this.messaging.transport.reply(e.detail,{})):this.messaging.transport.reply(e.detail,{error:{message:"This widget does not have permission for this action (denied)."}}):this.messaging.transport.reply(e.detail,{error:{message:"Room ID not supplied."}})}),u.a.get().on("event",this.onEvent),u.a.get().on("Event.decrypted",this.onEventDecrypted),this.messaging.on("action:"+i.WidgetApiFromWidgetAction.UpdateAlwaysOnScreen,e=>{this.messaging.hasCapability(i.MatrixCapabilities.AlwaysOnScreen)&&(g.a.JITSI.matches(this.mockWidget.type)&&k.a.instance.trackJoinCall(this.appTileProps.room.roomId,!0,!0),f.a.setWidgetPersistence(this.mockWidget.id,e.detail.data.value),e.preventDefault(),this.messaging.transport.reply(e.detail,{}))}),this.messaging.on("action:"+i.WidgetApiFromWidgetAction.SendSticker,e=>{this.messaging.hasCapability(i.MatrixCapabilities.StickerSending)&&(e.preventDefault(),this.messaging.transport.reply(e.detail,{}),b.a.dispatch({action:"m.sticker",data:e.detail.data,widgetId:this.mockWidget.id}))}),g.a.STICKERPICKER.matches(this.mockWidget.type)&&this.messaging.on("action:"+v.a.OpenIntegrationManager,e=>{e.preventDefault(),this.messaging.transport.reply(e.detail,{}),b.a.dispatch({action:"stickerpicker_close"});const t=e.detail.data,n=null==t?void 0:t.integType,o=null==t?void 0:t.integId;m.a.getValue("feature_many_integration_managers")?p.a.sharedInstance().openAll(u.a.get().getRoom(l.a.getRoomId()),"type_"+n,o):p.a.sharedInstance().getPrimaryManager().open(u.a.get().getRoom(l.a.getRoomId()),"type_"+n,o)})}async prepare(){if(this.scalarToken)return;const e=c.a.instance.getMessaging(this.mockWidget);e&&(this.messaging=e);try{if(h.a.isScalarUrl(this.mockWidget.templateUrl)){const e=p.a.sharedInstance();if(e.hasManager()){const t=e.getPrimaryManager();if(h.a.isScalarUrl(t.apiUrl)){const e=t.getScalarClient();this.scalarToken=await e.getScalarToken()}}}}catch(e){console.error("Error preparing widget communications: ",e)}}stop(e={forceDestroy:!1}){(null==e?void 0:e.forceDestroy)||f.a.getPersistentWidgetId()!==this.mockWidget.id?this.started&&(c.a.instance.stopMessaging(this.mockWidget),f.a.delRoomId(this.mockWidget.id),u.a.get()&&(u.a.get().off("event",this.onEvent),u.a.get().off("Event.decrypted",this.onEventDecrypted))):console.log("Skipping destroy - persistent widget")}feedEvent(e){if(!this.messaging)return;const t=e.event;this.messaging.feedEvent(t).catch(e=>{console.error("Error sending event to widget: ",e)})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(82),r=n.n(o);const i={};class a{constructor(){}static get instance(){return a.internalInstance||(a.internalInstance=new a),a.internalInstance}isRoomVisible(e){let t=!0;const n=i.isRoomVisible;return n&&(t=n(e)),t}}r()(a,"internalInstance",void 0)},function(e,t,n){"use strict";t.a=n.p+"olm.9ddeb6b.wasm"},function(e,t){var n,o,r,i,a,s,c=(a={},r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(r=r||__filename),s=function(t){var i,s,c;if(t=t||{},i||(i=void 0!==t?t:{}),i.ready=new Promise((function(e){s=e})),"undefined"!=typeof window)c=function(e){window.crypto.getRandomValues(e)};else{if(!e.exports)throw Error("Cannot find global to attach library to");var l=require("crypto");c=function(e){var t=l.randomBytes(e.length);e.set(t)},process=global.process}if("undefined"!=typeof OLM_OPTIONS)for(var u in OLM_OPTIONS)OLM_OPTIONS.hasOwnProperty(u)&&(i[u]=OLM_OPTIONS[u]);i.onRuntimeInitialized=function(){Oe=i._olm_error(),a.PRIVATE_KEY_LENGTH=i._olm_pk_private_key_length(),n&&n()},i.onAbort=function(e){o&&o(e)};var d,h,p,m,g,f={};for(d in i)i.hasOwnProperty(d)&&(f[d]=i[d]);h="object"==typeof window,p="function"==typeof importScripts,m="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,g=!h&&!m&&!p;var _,b,v,E,y="";m?(y=p?require("path").dirname(y)+"/":__dirname+"/",_=function(e,t){return v||(v=require("fs")),E||(E=require("path")),e=E.normalize(e),v.readFileSync(e,t?null:"utf8")},b=function(e){return(e=_(e,!0)).buffer||(e=new Uint8Array(e)),e.buffer||te("Assertion failed: undefined"),e},1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),process.on("uncaughtException",(function(e){throw e})),process.on("unhandledRejection",te),i.inspect=function(){return"[Emscripten Module object]"}):g?("undefined"!=typeof read&&(_=function(e){return read(e)}),b=function(e){return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):("object"==typeof(e=read(e,"binary"))||te("Assertion failed: undefined"),e)},"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(h||p)&&(p?y=self.location.href:document.currentScript&&(y=document.currentScript.src),r&&(y=r),y=0!==y.indexOf("blob:")?y.substr(0,y.lastIndexOf("/")+1):"",_=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(b=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}));var S,T=i.print||console.log.bind(console),w=i.printErr||console.warn.bind(console);for(d in f)f.hasOwnProperty(d)&&(i[d]=f[d]);function C(e){var t="i8";switch("*"===t.charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":P[e>>0]=0;break;case"i16":U[e>>1]=0;break;case"i32":B[e>>2]=0;break;case"i64":re=[0,1<=+Q(0)?~~+X(0)>>>0:0],B[e>>2]=re[0],B[e+4>>2]=re[1];break;case"float":j[e>>2]=0;break;case"double":G[e>>3]=0;break;default:te("invalid type for setValue: "+t)}}function x(e,t){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return P[e>>0];case"i16":return U[e>>1];case"i32":case"i64":return B[e>>2];case"float":return j[e>>2];case"double":return G[e>>3];default:te("invalid type for getValue: "+t)}return null}f=null,i.wasmBinary&&(S=i.wasmBinary),i.noExitRuntime&&i.noExitRuntime,"object"!=typeof WebAssembly&&te("no native wasm support detected");var O,k=new WebAssembly.Table({initial:9,maximum:9,element:"anyfunc"}),R=!1,A="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function I(e,t){if(e){var n=L,o=e+t;for(t=e;n[t]&&!(t>=o);)++t;if(16<t-e&&n.subarray&&A)e=A.decode(n.subarray(e,t));else{for(o="";e<t;){var r=n[e++];if(128&r){var i=63&n[e++];if(192==(224&r))o+=String.fromCharCode((31&r)<<6|i);else{var a=63&n[e++];65536>(r=224==(240&r)?(15&r)<<12|i<<6|a:(7&r)<<18|i<<12|a<<6|63&n[e++])?o+=String.fromCharCode(r):(r-=65536,o+=String.fromCharCode(55296|r>>10,56320|1023&r))}}else o+=String.fromCharCode(r)}e=o}}else e="";return e}function D(e,t,n,o){if(!(0<o))return 0;var r=n;o=n+o-1;for(var i=0;i<e.length;++i){var a=e.charCodeAt(i);if(55296<=a&&57343>=a&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i)),127>=a){if(n>=o)break;t[n++]=a}else{if(2047>=a){if(n+1>=o)break;t[n++]=192|a>>6}else{if(65535>=a){if(n+2>=o)break;t[n++]=224|a>>12}else{if(n+3>=o)break;t[n++]=240|a>>18,t[n++]=128|a>>12&63}t[n++]=128|a>>6&63}t[n++]=128|63&a}}return t[n]=0,n-r}function N(e){for(var t=0,n=0;n<e.length;++n){var o=e.charCodeAt(n);55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++n)),127>=o?++t:t=2047>=o?t+2:65535>=o?t+3:t+4}return t}function F(e,t){for(var n=0;n<e.length;++n)P[t++>>0]=e.charCodeAt(n)}var M,P,L,U,B,j,G,q=i.INITIAL_MEMORY||262144;(O=i.wasmMemory?i.wasmMemory:new WebAssembly.Memory({initial:q/65536,maximum:q/65536}))&&(M=O.buffer),q=M.byteLength;var H=M;function V(e){for(;0<e.length;){var t=e.shift();if("function"==typeof t)t(i);else{var n=t.Nb;"number"==typeof n?void 0===t.Mb?i.dynCall_v(n):i.dynCall_vi(n,t.Mb):n(void 0===t.Mb?null:t.Mb)}}}M=H,i.HEAP8=P=new Int8Array(H),i.HEAP16=U=new Int16Array(H),i.HEAP32=B=new Int32Array(H),i.HEAPU8=L=new Uint8Array(H),i.HEAPU16=new Uint16Array(H),i.HEAPU32=new Uint32Array(H),i.HEAPF32=j=new Float32Array(H),i.HEAPF64=G=new Float64Array(H),B[9584]=104032;var z=[],K=[],W=[],Y=[];function $(){var e=i.preRun.shift();z.unshift(e)}var Q=Math.abs,X=Math.ceil,J=(Math.floor,Math.min,0),Z=null,ee=null;function te(e){throw i.onAbort&&i.onAbort(e),T(e),w(e),R=!0,new WebAssembly.RuntimeError("abort("+e+"). Build with -s ASSERTIONS=1 for more info.")}function ne(e){var t=ie;return String.prototype.startsWith?t.startsWith(e):0===t.indexOf(e)}function oe(){return ne("data:application/octet-stream;base64,")}i.preloadedImages={},i.preloadedAudios={};var re,ie="olm.wasm";if(!oe()){var ae=ie;ie=i.locateFile?i.locateFile(ae,y):y+ae}function se(){try{if(S)return new Uint8Array(S);if(b)return b(ie);throw"both async and sync fetching of the wasm failed"}catch(e){te(e)}}K.push({Nb:function(){le()}});var ce={a:function(e,t,n){L.copyWithin(e,t,t+n)},b:function(){te("OOM")},memory:O,table:k};!function(){function e(e){i.asm=e.exports,J--,i.monitorRunDependencies&&i.monitorRunDependencies(J),0==J&&(null!==Z&&(clearInterval(Z),Z=null),ee&&(e=ee,ee=null,e()))}function t(t){e(t.instance)}function n(e){return(S||!h&&!p||"function"!=typeof fetch||ne("file://")?new Promise((function(e){e(se())})):fetch(ie,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ie+"'";return e.arrayBuffer()})).catch((function(){return se()}))).then((function(e){return WebAssembly.instantiate(e,o)})).then(e,(function(e){w("failed to asynchronously prepare wasm: "+e),te(e)}))}var o={a:ce};if(J++,i.monitorRunDependencies&&i.monitorRunDependencies(J),i.instantiateWasm)try{return i.instantiateWasm(o,e)}catch(e){return w("Module.instantiateWasm callback failed with error: "+e),!1}!function(){if(S||"function"!=typeof WebAssembly.instantiateStreaming||oe()||ne("file://")||"function"!=typeof fetch)return n(t);fetch(ie,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,o).then(t,(function(e){return w("wasm streaming compile failed: "+e),w("falling back to ArrayBuffer instantiation"),n(t)}))}))}()}();var le=i.___wasm_call_ctors=function(){return(le=i.___wasm_call_ctors=i.asm.c).apply(null,arguments)};i._olm_pk_encryption_last_error=function(){return(i._olm_pk_encryption_last_error=i.asm.d).apply(null,arguments)},i._olm_pk_encryption_size=function(){return(i._olm_pk_encryption_size=i.asm.e).apply(null,arguments)},i._olm_pk_encryption=function(){return(i._olm_pk_encryption=i.asm.f).apply(null,arguments)},i._olm_clear_pk_encryption=function(){return(i._olm_clear_pk_encryption=i.asm.g).apply(null,arguments)},i._olm_pk_encryption_set_recipient_key=function(){return(i._olm_pk_encryption_set_recipient_key=i.asm.h).apply(null,arguments)},i._olm_pk_key_length=function(){return(i._olm_pk_key_length=i.asm.i).apply(null,arguments)},i._olm_pk_ciphertext_length=function(){return(i._olm_pk_ciphertext_length=i.asm.j).apply(null,arguments)},i._olm_pk_mac_length=function(){return(i._olm_pk_mac_length=i.asm.k).apply(null,arguments)},i._olm_pk_encrypt_random_length=function(){return(i._olm_pk_encrypt_random_length=i.asm.l).apply(null,arguments)},i._olm_pk_encrypt=function(){return(i._olm_pk_encrypt=i.asm.m).apply(null,arguments)},i._olm_pk_decryption_last_error=function(){return(i._olm_pk_decryption_last_error=i.asm.n).apply(null,arguments)},i._olm_pk_decryption_size=function(){return(i._olm_pk_decryption_size=i.asm.o).apply(null,arguments)},i._olm_pk_decryption=function(){return(i._olm_pk_decryption=i.asm.p).apply(null,arguments)},i._olm_clear_pk_decryption=function(){return(i._olm_clear_pk_decryption=i.asm.q).apply(null,arguments)},i._olm_pk_private_key_length=function(){return(i._olm_pk_private_key_length=i.asm.r).apply(null,arguments)},i._olm_pk_generate_key_random_length=function(){return(i._olm_pk_generate_key_random_length=i.asm.s).apply(null,arguments)},i._olm_pk_key_from_private=function(){return(i._olm_pk_key_from_private=i.asm.t).apply(null,arguments)},i._olm_pk_generate_key=function(){return(i._olm_pk_generate_key=i.asm.u).apply(null,arguments)},i._olm_pickle_pk_decryption_length=function(){return(i._olm_pickle_pk_decryption_length=i.asm.v).apply(null,arguments)},i._olm_pickle_pk_decryption=function(){return(i._olm_pickle_pk_decryption=i.asm.w).apply(null,arguments)},i._olm_unpickle_pk_decryption=function(){return(i._olm_unpickle_pk_decryption=i.asm.x).apply(null,arguments)},i._olm_pk_max_plaintext_length=function(){return(i._olm_pk_max_plaintext_length=i.asm.y).apply(null,arguments)},i._olm_pk_decrypt=function(){return(i._olm_pk_decrypt=i.asm.z).apply(null,arguments)},i._olm_pk_get_private_key=function(){return(i._olm_pk_get_private_key=i.asm.A).apply(null,arguments)},i._olm_pk_signing_size=function(){return(i._olm_pk_signing_size=i.asm.B).apply(null,arguments)},i._olm_pk_signing=function(){return(i._olm_pk_signing=i.asm.C).apply(null,arguments)},i._olm_pk_signing_last_error=function(){return(i._olm_pk_signing_last_error=i.asm.D).apply(null,arguments)},i._olm_clear_pk_signing=function(){return(i._olm_clear_pk_signing=i.asm.E).apply(null,arguments)},i._olm_pk_signing_seed_length=function(){return(i._olm_pk_signing_seed_length=i.asm.F).apply(null,arguments)},i._olm_pk_signing_public_key_length=function(){return(i._olm_pk_signing_public_key_length=i.asm.G).apply(null,arguments)},i._olm_pk_signing_key_from_seed=function(){return(i._olm_pk_signing_key_from_seed=i.asm.H).apply(null,arguments)},i._olm_pk_signature_length=function(){return(i._olm_pk_signature_length=i.asm.I).apply(null,arguments)},i._olm_pk_sign=function(){return(i._olm_pk_sign=i.asm.J).apply(null,arguments)},i._olm_get_library_version=function(){return(i._olm_get_library_version=i.asm.K).apply(null,arguments)},i._olm_error=function(){return(i._olm_error=i.asm.L).apply(null,arguments)},i._olm_account_last_error=function(){return(i._olm_account_last_error=i.asm.M).apply(null,arguments)},i._olm_session_last_error=function(){return(i._olm_session_last_error=i.asm.N).apply(null,arguments)},i._olm_utility_last_error=function(){return(i._olm_utility_last_error=i.asm.O).apply(null,arguments)},i._olm_account_size=function(){return(i._olm_account_size=i.asm.P).apply(null,arguments)},i._olm_session_size=function(){return(i._olm_session_size=i.asm.Q).apply(null,arguments)},i._olm_utility_size=function(){return(i._olm_utility_size=i.asm.R).apply(null,arguments)},i._olm_account=function(){return(i._olm_account=i.asm.S).apply(null,arguments)},i._olm_session=function(){return(i._olm_session=i.asm.T).apply(null,arguments)},i._olm_utility=function(){return(i._olm_utility=i.asm.U).apply(null,arguments)},i._olm_clear_account=function(){return(i._olm_clear_account=i.asm.V).apply(null,arguments)},i._olm_clear_session=function(){return(i._olm_clear_session=i.asm.W).apply(null,arguments)},i._olm_clear_utility=function(){return(i._olm_clear_utility=i.asm.X).apply(null,arguments)},i._olm_pickle_account_length=function(){return(i._olm_pickle_account_length=i.asm.Y).apply(null,arguments)},i._olm_pickle_session_length=function(){return(i._olm_pickle_session_length=i.asm.Z).apply(null,arguments)},i._olm_pickle_account=function(){return(i._olm_pickle_account=i.asm._).apply(null,arguments)},i._olm_pickle_session=function(){return(i._olm_pickle_session=i.asm.$).apply(null,arguments)},i._olm_unpickle_account=function(){return(i._olm_unpickle_account=i.asm.aa).apply(null,arguments)},i._olm_unpickle_session=function(){return(i._olm_unpickle_session=i.asm.ba).apply(null,arguments)},i._olm_create_account_random_length=function(){return(i._olm_create_account_random_length=i.asm.ca).apply(null,arguments)},i._olm_create_account=function(){return(i._olm_create_account=i.asm.da).apply(null,arguments)},i._olm_account_identity_keys_length=function(){return(i._olm_account_identity_keys_length=i.asm.ea).apply(null,arguments)},i._olm_account_identity_keys=function(){return(i._olm_account_identity_keys=i.asm.fa).apply(null,arguments)},i._olm_account_signature_length=function(){return(i._olm_account_signature_length=i.asm.ga).apply(null,arguments)},i._olm_account_sign=function(){return(i._olm_account_sign=i.asm.ha).apply(null,arguments)},i._olm_account_one_time_keys_length=function(){return(i._olm_account_one_time_keys_length=i.asm.ia).apply(null,arguments)},i._olm_account_one_time_keys=function(){return(i._olm_account_one_time_keys=i.asm.ja).apply(null,arguments)},i._olm_account_mark_keys_as_published=function(){return(i._olm_account_mark_keys_as_published=i.asm.ka).apply(null,arguments)},i._olm_account_max_number_of_one_time_keys=function(){return(i._olm_account_max_number_of_one_time_keys=i.asm.la).apply(null,arguments)},i._olm_account_generate_one_time_keys_random_length=function(){return(i._olm_account_generate_one_time_keys_random_length=i.asm.ma).apply(null,arguments)},i._olm_account_generate_one_time_keys=function(){return(i._olm_account_generate_one_time_keys=i.asm.na).apply(null,arguments)},i._olm_account_generate_fallback_key_random_length=function(){return(i._olm_account_generate_fallback_key_random_length=i.asm.oa).apply(null,arguments)},i._olm_account_generate_fallback_key=function(){return(i._olm_account_generate_fallback_key=i.asm.pa).apply(null,arguments)},i._olm_account_fallback_key_length=function(){return(i._olm_account_fallback_key_length=i.asm.qa).apply(null,arguments)},i._olm_account_fallback_key=function(){return(i._olm_account_fallback_key=i.asm.ra).apply(null,arguments)},i._olm_create_outbound_session_random_length=function(){return(i._olm_create_outbound_session_random_length=i.asm.sa).apply(null,arguments)},i._olm_create_outbound_session=function(){return(i._olm_create_outbound_session=i.asm.ta).apply(null,arguments)},i._olm_create_inbound_session=function(){return(i._olm_create_inbound_session=i.asm.ua).apply(null,arguments)},i._olm_create_inbound_session_from=function(){return(i._olm_create_inbound_session_from=i.asm.va).apply(null,arguments)},i._olm_session_id_length=function(){return(i._olm_session_id_length=i.asm.wa).apply(null,arguments)},i._olm_session_id=function(){return(i._olm_session_id=i.asm.xa).apply(null,arguments)},i._olm_session_has_received_message=function(){return(i._olm_session_has_received_message=i.asm.ya).apply(null,arguments)},i._olm_session_describe=function(){return(i._olm_session_describe=i.asm.za).apply(null,arguments)},i._olm_matches_inbound_session=function(){return(i._olm_matches_inbound_session=i.asm.Aa).apply(null,arguments)},i._olm_matches_inbound_session_from=function(){return(i._olm_matches_inbound_session_from=i.asm.Ba).apply(null,arguments)},i._olm_remove_one_time_keys=function(){return(i._olm_remove_one_time_keys=i.asm.Ca).apply(null,arguments)},i._olm_encrypt_message_type=function(){return(i._olm_encrypt_message_type=i.asm.Da).apply(null,arguments)},i._olm_encrypt_random_length=function(){return(i._olm_encrypt_random_length=i.asm.Ea).apply(null,arguments)},i._olm_encrypt_message_length=function(){return(i._olm_encrypt_message_length=i.asm.Fa).apply(null,arguments)},i._olm_encrypt=function(){return(i._olm_encrypt=i.asm.Ga).apply(null,arguments)},i._olm_decrypt_max_plaintext_length=function(){return(i._olm_decrypt_max_plaintext_length=i.asm.Ha).apply(null,arguments)},i._olm_decrypt=function(){return(i._olm_decrypt=i.asm.Ia).apply(null,arguments)},i._olm_sha256_length=function(){return(i._olm_sha256_length=i.asm.Ja).apply(null,arguments)},i._olm_sha256=function(){return(i._olm_sha256=i.asm.Ka).apply(null,arguments)},i._olm_ed25519_verify=function(){return(i._olm_ed25519_verify=i.asm.La).apply(null,arguments)},i._olm_inbound_group_session_size=function(){return(i._olm_inbound_group_session_size=i.asm.Ma).apply(null,arguments)},i._olm_inbound_group_session=function(){return(i._olm_inbound_group_session=i.asm.Na).apply(null,arguments)},i._olm_clear_inbound_group_session=function(){return(i._olm_clear_inbound_group_session=i.asm.Oa).apply(null,arguments)},i._olm_inbound_group_session_last_error=function(){return(i._olm_inbound_group_session_last_error=i.asm.Pa).apply(null,arguments)},i._olm_init_inbound_group_session=function(){return(i._olm_init_inbound_group_session=i.asm.Qa).apply(null,arguments)},i._olm_import_inbound_group_session=function(){return(i._olm_import_inbound_group_session=i.asm.Ra).apply(null,arguments)},i._olm_pickle_inbound_group_session_length=function(){return(i._olm_pickle_inbound_group_session_length=i.asm.Sa).apply(null,arguments)},i._olm_pickle_inbound_group_session=function(){return(i._olm_pickle_inbound_group_session=i.asm.Ta).apply(null,arguments)},i._olm_unpickle_inbound_group_session=function(){return(i._olm_unpickle_inbound_group_session=i.asm.Ua).apply(null,arguments)},i._olm_group_decrypt_max_plaintext_length=function(){return(i._olm_group_decrypt_max_plaintext_length=i.asm.Va).apply(null,arguments)},i._olm_group_decrypt=function(){return(i._olm_group_decrypt=i.asm.Wa).apply(null,arguments)},i._olm_inbound_group_session_id_length=function(){return(i._olm_inbound_group_session_id_length=i.asm.Xa).apply(null,arguments)},i._olm_inbound_group_session_id=function(){return(i._olm_inbound_group_session_id=i.asm.Ya).apply(null,arguments)},i._olm_inbound_group_session_first_known_index=function(){return(i._olm_inbound_group_session_first_known_index=i.asm.Za).apply(null,arguments)},i._olm_inbound_group_session_is_verified=function(){return(i._olm_inbound_group_session_is_verified=i.asm._a).apply(null,arguments)},i._olm_export_inbound_group_session_length=function(){return(i._olm_export_inbound_group_session_length=i.asm.$a).apply(null,arguments)},i._olm_export_inbound_group_session=function(){return(i._olm_export_inbound_group_session=i.asm.ab).apply(null,arguments)},i._olm_sas_last_error=function(){return(i._olm_sas_last_error=i.asm.bb).apply(null,arguments)},i._olm_sas_size=function(){return(i._olm_sas_size=i.asm.cb).apply(null,arguments)},i._olm_sas=function(){return(i._olm_sas=i.asm.db).apply(null,arguments)},i._olm_clear_sas=function(){return(i._olm_clear_sas=i.asm.eb).apply(null,arguments)},i._olm_create_sas_random_length=function(){return(i._olm_create_sas_random_length=i.asm.fb).apply(null,arguments)},i._olm_create_sas=function(){return(i._olm_create_sas=i.asm.gb).apply(null,arguments)},i._olm_sas_pubkey_length=function(){return(i._olm_sas_pubkey_length=i.asm.hb).apply(null,arguments)},i._olm_sas_get_pubkey=function(){return(i._olm_sas_get_pubkey=i.asm.ib).apply(null,arguments)},i._olm_sas_set_their_key=function(){return(i._olm_sas_set_their_key=i.asm.jb).apply(null,arguments)},i._olm_sas_is_their_key_set=function(){return(i._olm_sas_is_their_key_set=i.asm.kb).apply(null,arguments)},i._olm_sas_generate_bytes=function(){return(i._olm_sas_generate_bytes=i.asm.lb).apply(null,arguments)},i._olm_sas_mac_length=function(){return(i._olm_sas_mac_length=i.asm.mb).apply(null,arguments)},i._olm_sas_calculate_mac=function(){return(i._olm_sas_calculate_mac=i.asm.nb).apply(null,arguments)},i._olm_sas_calculate_mac_long_kdf=function(){return(i._olm_sas_calculate_mac_long_kdf=i.asm.ob).apply(null,arguments)},i._olm_outbound_group_session_size=function(){return(i._olm_outbound_group_session_size=i.asm.pb).apply(null,arguments)},i._olm_outbound_group_session=function(){return(i._olm_outbound_group_session=i.asm.qb).apply(null,arguments)},i._olm_clear_outbound_group_session=function(){return(i._olm_clear_outbound_group_session=i.asm.rb).apply(null,arguments)},i._olm_outbound_group_session_last_error=function(){return(i._olm_outbound_group_session_last_error=i.asm.sb).apply(null,arguments)},i._olm_pickle_outbound_group_session_length=function(){return(i._olm_pickle_outbound_group_session_length=i.asm.tb).apply(null,arguments)},i._olm_pickle_outbound_group_session=function(){return(i._olm_pickle_outbound_group_session=i.asm.ub).apply(null,arguments)},i._olm_unpickle_outbound_group_session=function(){return(i._olm_unpickle_outbound_group_session=i.asm.vb).apply(null,arguments)},i._olm_init_outbound_group_session_random_length=function(){return(i._olm_init_outbound_group_session_random_length=i.asm.wb).apply(null,arguments)},i._olm_init_outbound_group_session=function(){return(i._olm_init_outbound_group_session=i.asm.xb).apply(null,arguments)},i._olm_group_encrypt_message_length=function(){return(i._olm_group_encrypt_message_length=i.asm.yb).apply(null,arguments)},i._olm_group_encrypt=function(){return(i._olm_group_encrypt=i.asm.zb).apply(null,arguments)},i._olm_outbound_group_session_id_length=function(){return(i._olm_outbound_group_session_id_length=i.asm.Ab).apply(null,arguments)},i._olm_outbound_group_session_id=function(){return(i._olm_outbound_group_session_id=i.asm.Bb).apply(null,arguments)},i._olm_outbound_group_session_message_index=function(){return(i._olm_outbound_group_session_message_index=i.asm.Cb).apply(null,arguments)},i._olm_outbound_group_session_key_length=function(){return(i._olm_outbound_group_session_key_length=i.asm.Db).apply(null,arguments)},i._olm_outbound_group_session_key=function(){return(i._olm_outbound_group_session_key=i.asm.Eb).apply(null,arguments)},i._malloc=function(){return(i._malloc=i.asm.Fb).apply(null,arguments)},i._free=function(){return(i._free=i.asm.Gb).apply(null,arguments)};var ue,de=i.stackSave=function(){return(de=i.stackSave=i.asm.Hb).apply(null,arguments)},he=i.stackRestore=function(){return(he=i.stackRestore=i.asm.Ib).apply(null,arguments)},pe=i.stackAlloc=function(){return(pe=i.stackAlloc=i.asm.Jb).apply(null,arguments)};function me(){function e(){if(!ue&&(ue=!0,i.calledRun=!0,!R)){if(V(K),V(W),s(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;){var e=i.postRun.shift();Y.unshift(e)}V(Y)}}if(!(0<J)){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)$();V(z),0<J||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),e()}),1)):e())}}if(i.ALLOC_STACK=1,ee=function e(){ue||me(),ue||(ee=e)},i.run=me,i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);0<i.preInit.length;)i.preInit.pop()();function ge(){var e=i._olm_outbound_group_session_size();this.Lb=ke(e),this.Kb=i._olm_outbound_group_session(this.Lb)}function fe(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_outbound_group_session_last_error(arguments[0])),Error("OLM."+t);return t}}function _e(){var e=i._olm_inbound_group_session_size();this.Lb=ke(e),this.Kb=i._olm_inbound_group_session(this.Lb)}function be(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_inbound_group_session_last_error(arguments[0])),Error("OLM."+t);return t}}function ve(){var e=i._olm_pk_encryption_size();this.Lb=ke(e),this.Kb=i._olm_pk_encryption(this.Lb)}function Ee(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_pk_encryption_last_error(arguments[0])),Error("OLM."+t);return t}}function ye(){var e=i._olm_pk_decryption_size();this.Lb=ke(e),this.Kb=i._olm_pk_decryption(this.Lb)}function Se(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_pk_decryption_last_error(arguments[0])),Error("OLM."+t);return t}}function Te(){var e=i._olm_pk_signing_size();this.Lb=ke(e),this.Kb=i._olm_pk_signing(this.Lb)}function we(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_pk_signing_last_error(arguments[0])),Error("OLM."+t);return t}}function Ce(){var e=i._olm_sas_size(),t=i._olm_create_sas_random_length(),n=Ae(t,c);this.Lb=ke(e),this.Kb=i._olm_sas(this.Lb),i._olm_create_sas(this.Kb,n,t),Fe(n,t)}function xe(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_sas_last_error(arguments[0])),Error("OLM."+t);return t}}me(),ge.prototype.free=function(){i._olm_clear_outbound_group_session(this.Kb),Re(this.Kb)},ge.prototype.pickle=Ne((function(e){e=De(e);var t=fe(i._olm_pickle_outbound_group_session_length)(this.Kb),n=Ie(e),o=Ie(t+1);try{fe(i._olm_pickle_outbound_group_session)(this.Kb,n,e.length,o,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(o,t)})),ge.prototype.unpickle=Ne((function(e,t){var n=Ie(e=De(e)),o=Ie(t=De(t));try{fe(i._olm_unpickle_outbound_group_session)(this.Kb,n,e.length,o,t.length)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}})),ge.prototype.create=Ne((function(){var e=fe(i._olm_init_outbound_group_session_random_length)(this.Kb),t=Ae(e,c);fe(i._olm_init_outbound_group_session)(this.Kb,t,e)})),ge.prototype.encrypt=function(e){try{var t=N(e),n=fe(i._olm_group_encrypt_message_length)(this.Kb,t),o=ke(t+1);D(e,L,o,t+1);var r=ke(n+1);return fe(i._olm_group_encrypt)(this.Kb,o,t,r,n),C(r+n),I(r,n)}finally{void 0!==o&&(Fe(o,t+1),Re(o)),void 0!==r&&Re(r)}},ge.prototype.session_id=Ne((function(){var e=fe(i._olm_outbound_group_session_id_length)(this.Kb),t=Ie(e+1);return fe(i._olm_outbound_group_session_id)(this.Kb,t,e),I(t,e)})),ge.prototype.session_key=Ne((function(){var e=fe(i._olm_outbound_group_session_key_length)(this.Kb),t=Ie(e+1);fe(i._olm_outbound_group_session_key)(this.Kb,t,e);var n=I(t,e);return Fe(t,e),n})),ge.prototype.message_index=function(){return fe(i._olm_outbound_group_session_message_index)(this.Kb)},a.OutboundGroupSession=ge,_e.prototype.free=function(){i._olm_clear_inbound_group_session(this.Kb),Re(this.Kb)},_e.prototype.pickle=Ne((function(e){e=De(e);var t=be(i._olm_pickle_inbound_group_session_length)(this.Kb),n=Ie(e),o=Ie(t+1);try{be(i._olm_pickle_inbound_group_session)(this.Kb,n,e.length,o,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(o,t)})),_e.prototype.unpickle=Ne((function(e,t){var n=Ie(e=De(e)),o=Ie(t=De(t));try{be(i._olm_unpickle_inbound_group_session)(this.Kb,n,e.length,o,t.length)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}})),_e.prototype.create=Ne((function(e){var t=Ie(e=De(e));try{be(i._olm_init_inbound_group_session)(this.Kb,t,e.length)}finally{for(Fe(t,e.length),t=0;t<e.length;t++)e[t]=0}})),_e.prototype.import_session=Ne((function(e){var t=Ie(e=De(e));try{be(i._olm_import_inbound_group_session)(this.Kb,t,e.length)}finally{for(Fe(t,e.length),t=0;t<e.length;t++)e[t]=0}})),_e.prototype.decrypt=Ne((function(e){try{var t=ke(e.length);F(e,t);var n=be(i._olm_group_decrypt_max_plaintext_length)(this.Kb,t,e.length);F(e,t);var o=ke(n+1),r=Ie(4),a=be(i._olm_group_decrypt)(this.Kb,t,e.length,o,n,r);return C(o+a),{plaintext:I(o,a),message_index:x(r,"i32")}}finally{void 0!==t&&Re(t),void 0!==o&&(Fe(o,a),Re(o))}})),_e.prototype.session_id=Ne((function(){var e=be(i._olm_inbound_group_session_id_length)(this.Kb),t=Ie(e+1);return be(i._olm_inbound_group_session_id)(this.Kb,t,e),I(t,e)})),_e.prototype.first_known_index=Ne((function(){return be(i._olm_inbound_group_session_first_known_index)(this.Kb)})),_e.prototype.export_session=Ne((function(e){var t=be(i._olm_export_inbound_group_session_length)(this.Kb),n=Ie(t+1);return fe(i._olm_export_inbound_group_session)(this.Kb,n,t,e),e=I(n,t),Fe(n,t),e})),a.InboundGroupSession=_e,ve.prototype.free=function(){i._olm_clear_pk_encryption(this.Kb),Re(this.Kb)},ve.prototype.set_recipient_key=Ne((function(e){var t=Ie(e=De(e));Ee(i._olm_pk_encryption_set_recipient_key)(this.Kb,t,e.length)})),ve.prototype.encrypt=Ne((function(e){try{var t=N(e),n=ke(t+1);D(e,L,n,t+1);var o=Ee(i._olm_pk_encrypt_random_length)(),r=Ae(o,c),a=Ee(i._olm_pk_ciphertext_length)(this.Kb,t),s=ke(a+1),l=Ee(i._olm_pk_mac_length)(this.Kb),u=Ie(l+1);C(u+l);var d=Ee(i._olm_pk_key_length)(),h=Ie(d+1);return C(h+d),Ee(i._olm_pk_encrypt)(this.Kb,n,t,s,a,u,l,h,d,r,o),C(s+a),{ciphertext:I(s,a),mac:I(u,l),ephemeral:I(h,d)}}finally{void 0!==r&&Fe(r,o),void 0!==n&&(Fe(n,t+1),Re(n)),void 0!==s&&Re(s)}})),ye.prototype.free=function(){i._olm_clear_pk_decryption(this.Kb),Re(this.Kb)},ye.prototype.init_with_private_key=Ne((function(e){var t=Ie(e.length);i.HEAPU8.set(e,t);var n=Se(i._olm_pk_key_length)(),o=Ie(n+1);try{Se(i._olm_pk_key_from_private)(this.Kb,o,n,t,e.length)}finally{Fe(t,e.length)}return I(o,n)})),ye.prototype.generate_key=Ne((function(){var e=Se(i._olm_pk_private_key_length)(),t=Ae(e,c),n=Se(i._olm_pk_key_length)(),o=Ie(n+1);try{Se(i._olm_pk_key_from_private)(this.Kb,o,n,t,e)}finally{Fe(t,e)}return I(o,n)})),ye.prototype.get_private_key=Ne((function(){var e=Ee(i._olm_pk_private_key_length)(),t=Ie(e);Se(i._olm_pk_get_private_key)(this.Kb,t,e);var n=new Uint8Array(new Uint8Array(i.HEAPU8.buffer,t,e));return Fe(t,e),n})),ye.prototype.pickle=Ne((function(e){e=De(e);var t=Se(i._olm_pickle_pk_decryption_length)(this.Kb),n=Ie(e),o=Ie(t+1);try{Se(i._olm_pickle_pk_decryption)(this.Kb,n,e.length,o,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(o,t)})),ye.prototype.unpickle=Ne((function(e,t){var n=Ie(e=De(e)),o=De(t),r=Ie(o),a=Ie((t=Se(i._olm_pk_key_length)())+1);try{Se(i._olm_unpickle_pk_decryption)(this.Kb,n,e.length,r,o.length,a,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(a,t)})),ye.prototype.decrypt=Ne((function(e,t,n){try{var o=N(n),r=ke(o+1);D(n,L,r,o+1);var a=De(e),s=Ie(a),c=De(t),l=Ie(c),u=Se(i._olm_pk_max_plaintext_length)(this.Kb,o),d=ke(u+1),h=Se(i._olm_pk_decrypt)(this.Kb,s,a.length,l,c.length,r,o,d,u);return C(d+h),I(d,h)}finally{void 0!==d&&(Fe(d,h+1),Re(d)),void 0!==r&&Re(r)}})),Te.prototype.free=function(){i._olm_clear_pk_signing(this.Kb),Re(this.Kb)},Te.prototype.init_with_seed=Ne((function(e){var t=Ie(e.length);i.HEAPU8.set(e,t);var n=we(i._olm_pk_signing_public_key_length)(),o=Ie(n+1);try{we(i._olm_pk_signing_key_from_seed)(this.Kb,o,n,t,e.length)}finally{Fe(t,e.length)}return I(o,n)})),Te.prototype.generate_seed=Ne((function(){var e=we(i._olm_pk_signing_seed_length)(),t=Ae(e,c),n=new Uint8Array(new Uint8Array(i.HEAPU8.buffer,t,e));return Fe(t,e),n})),Te.prototype.sign=Ne((function(e){try{var t=N(e),n=ke(t+1);D(e,L,n,t+1);var o=we(i._olm_pk_signature_length)(),r=Ie(o+1);return we(i._olm_pk_sign)(this.Kb,n,t,r,o),I(r,o)}finally{void 0!==n&&(Fe(n,t+1),Re(n))}})),Ce.prototype.free=function(){i._olm_clear_sas(this.Kb),Re(this.Kb)},Ce.prototype.get_pubkey=Ne((function(){var e=xe(i._olm_sas_pubkey_length)(this.Kb),t=Ie(e+1);return xe(i._olm_sas_get_pubkey)(this.Kb,t,e),I(t,e)})),Ce.prototype.set_their_key=Ne((function(e){var t=Ie(e=De(e));xe(i._olm_sas_set_their_key)(this.Kb,t,e.length)})),Ce.prototype.is_their_key_set=Ne((function(){return!!xe(i._olm_sas_is_their_key_set)(this.Kb)})),Ce.prototype.generate_bytes=Ne((function(e,t){var n=Ie(e=De(e)),o=Ie(t);return xe(i._olm_sas_generate_bytes)(this.Kb,n,e.length,o,t),new Uint8Array(new Uint8Array(i.HEAPU8.buffer,o,t))})),Ce.prototype.calculate_mac=Ne((function(e,t){var n=Ie(e=De(e)),o=Ie(t=De(t)),r=xe(i._olm_sas_mac_length)(this.Kb),a=Ie(r+1);return xe(i._olm_sas_calculate_mac)(this.Kb,n,e.length,o,t.length,a,r),I(a,r)})),Ce.prototype.calculate_mac_long_kdf=Ne((function(e,t){var n=Ie(e=De(e)),o=Ie(t=De(t)),r=xe(i._olm_sas_mac_length)(this.Kb),a=Ie(r+1);return xe(i._olm_sas_calculate_mac_long_kdf)(this.Kb,n,e.length,o,t.length,a,r),I(a,r)}));var Oe,ke=i._malloc,Re=i._free;function Ae(e,t){var n=pe(e);return t(new Uint8Array(i.HEAPU8.buffer,n,e)),n}function Ie(e){return"number"==typeof e?Ae(e,(function(e){e.fill(0)})):Ae(e.length,(function(t){t.set(e)}))}function De(e){if(e instanceof Uint8Array)var t=e;else e=D(e,t=Array(N(e)+1),0,t.length),t.length=e;return t}function Ne(e){return function(){var t=de();try{return e.apply(this,arguments)}finally{he(t)}}}function Fe(e,t){for(;0<t--;)i.HEAP8[e++]=0}function Me(){var e=i._olm_account_size();this.Lb=ke(e),this.Kb=i._olm_account(this.Lb)}function Pe(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_account_last_error(arguments[0])),Error("OLM."+t);return t}}function Le(){var e=i._olm_session_size();this.Lb=ke(e),this.Kb=i._olm_session(this.Lb)}function Ue(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_session_last_error(arguments[0])),Error("OLM."+t);return t}}function Be(){var e=i._olm_utility_size();this.Lb=ke(e),this.Kb=i._olm_utility(this.Lb)}function je(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_utility_last_error(arguments[0])),Error("OLM."+t);return t}}return Me.prototype.free=function(){i._olm_clear_account(this.Kb),Re(this.Kb)},Me.prototype.create=Ne((function(){var e=Pe(i._olm_create_account_random_length)(this.Kb),t=Ae(e,c);Pe(i._olm_create_account)(this.Kb,t,e)})),Me.prototype.identity_keys=Ne((function(){var e=Pe(i._olm_account_identity_keys_length)(this.Kb),t=Ie(e+1);return Pe(i._olm_account_identity_keys)(this.Kb,t,e),I(t,e)})),Me.prototype.sign=Ne((function(e){var t=Pe(i._olm_account_signature_length)(this.Kb),n=Ie(e=De(e)),o=Ie(t+1);try{Pe(i._olm_account_sign)(this.Kb,n,e.length,o,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(o,t)})),Me.prototype.one_time_keys=Ne((function(){var e=Pe(i._olm_account_one_time_keys_length)(this.Kb),t=Ie(e+1);return Pe(i._olm_account_one_time_keys)(this.Kb,t,e),I(t,e)})),Me.prototype.mark_keys_as_published=Ne((function(){Pe(i._olm_account_mark_keys_as_published)(this.Kb)})),Me.prototype.max_number_of_one_time_keys=Ne((function(){return Pe(i._olm_account_max_number_of_one_time_keys)(this.Kb)})),Me.prototype.generate_one_time_keys=Ne((function(e){var t=Pe(i._olm_account_generate_one_time_keys_random_length)(this.Kb,e),n=Ae(t,c);Pe(i._olm_account_generate_one_time_keys)(this.Kb,e,n,t)})),Me.prototype.remove_one_time_keys=Ne((function(e){Pe(i._olm_remove_one_time_keys)(this.Kb,e.Kb)})),Me.prototype.generate_fallback_key=Ne((function(){var e=Pe(i._olm_account_generate_fallback_key_random_length)(this.Kb),t=Ae(e,c);Pe(i._olm_account_generate_fallback_key)(this.Kb,t,e)})),Me.prototype.fallback_key=Ne((function(){var e=Pe(i._olm_account_fallback_key_length)(this.Kb),t=Ie(e+1);return Pe(i._olm_account_fallback_key)(this.Kb,t,e),I(t,e)})),Me.prototype.pickle=Ne((function(e){e=De(e);var t=Pe(i._olm_pickle_account_length)(this.Kb),n=Ie(e),o=Ie(t+1);try{Pe(i._olm_pickle_account)(this.Kb,n,e.length,o,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(o,t)})),Me.prototype.unpickle=Ne((function(e,t){var n=Ie(e=De(e)),o=Ie(t=De(t));try{Pe(i._olm_unpickle_account)(this.Kb,n,e.length,o,t.length)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}})),Le.prototype.free=function(){i._olm_clear_session(this.Kb),Re(this.Kb)},Le.prototype.pickle=Ne((function(e){e=De(e);var t=Ue(i._olm_pickle_session_length)(this.Kb),n=Ie(e),o=Ie(t+1);try{Ue(i._olm_pickle_session)(this.Kb,n,e.length,o,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(o,t)})),Le.prototype.unpickle=Ne((function(e,t){var n=Ie(e=De(e)),o=Ie(t=De(t));try{Ue(i._olm_unpickle_session)(this.Kb,n,e.length,o,t.length)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}})),Le.prototype.create_outbound=Ne((function(e,t,n){var o=Ue(i._olm_create_outbound_session_random_length)(this.Kb),r=Ae(o,c);t=De(t),n=De(n);var a=Ie(t),s=Ie(n);try{Ue(i._olm_create_outbound_session)(this.Kb,e.Kb,a,t.length,s,n.length,r,o)}finally{Fe(r,o)}})),Le.prototype.create_inbound=Ne((function(e,t){var n=Ie(t=De(t));try{Ue(i._olm_create_inbound_session)(this.Kb,e.Kb,n,t.length)}finally{for(Fe(n,t.length),e=0;e<t.length;e++)t[e]=0}})),Le.prototype.create_inbound_from=Ne((function(e,t,n){var o=Ie(t=De(t)),r=Ie(n=De(n));try{Ue(i._olm_create_inbound_session_from)(this.Kb,e.Kb,o,t.length,r,n.length)}finally{for(Fe(r,n.length),e=0;e<n.length;e++)n[e]=0}})),Le.prototype.session_id=Ne((function(){var e=Ue(i._olm_session_id_length)(this.Kb),t=Ie(e+1);return Ue(i._olm_session_id)(this.Kb,t,e),I(t,e)})),Le.prototype.has_received_message=function(){return!!Ue(i._olm_session_has_received_message)(this.Kb)},Le.prototype.matches_inbound=Ne((function(e){var t=Ie(e=De(e));return!!Ue(i._olm_matches_inbound_session)(this.Kb,t,e.length)})),Le.prototype.matches_inbound_from=Ne((function(e,t){var n=Ie(e=De(e)),o=Ie(t=De(t));return!!Ue(i._olm_matches_inbound_session_from)(this.Kb,n,e.length,o,t.length)})),Le.prototype.encrypt=Ne((function(e){try{var t=Ue(i._olm_encrypt_random_length)(this.Kb),n=Ue(i._olm_encrypt_message_type)(this.Kb),o=N(e),r=Ue(i._olm_encrypt_message_length)(this.Kb,o),a=Ae(t,c),s=ke(o+1);D(e,L,s,o+1);var l=ke(r+1);return Ue(i._olm_encrypt)(this.Kb,s,o,a,t,l,r),C(l+r),{type:n,body:I(l,r)}}finally{void 0!==a&&Fe(a,t),void 0!==s&&(Fe(s,o+1),Re(s)),void 0!==l&&Re(l)}})),Le.prototype.decrypt=Ne((function(e,t){try{var n=ke(t.length);F(t,n);var o=Ue(i._olm_decrypt_max_plaintext_length)(this.Kb,e,n,t.length);F(t,n);var r=ke(o+1),a=Ue(i._olm_decrypt)(this.Kb,e,n,t.length,r,o);return C(r+a),I(r,a)}finally{void 0!==n&&Re(n),void 0!==r&&(Fe(r,o),Re(r))}})),Le.prototype.describe=Ne((function(){try{var e=ke(256);return Ue(i._olm_session_describe)(this.Kb,e,256),I(e)}finally{void 0!==e&&Re(e)}})),Be.prototype.free=function(){i._olm_clear_utility(this.Kb),Re(this.Kb)},Be.prototype.sha256=Ne((function(e){var t=je(i._olm_sha256_length)(this.Kb),n=Ie(e=De(e)),o=Ie(t+1);try{je(i._olm_sha256)(this.Kb,n,e.length,o,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(o,t)})),Be.prototype.ed25519_verify=Ne((function(e,t,n){var o=Ie(e=De(e)),r=Ie(t=De(t)),a=Ie(n=De(n));try{je(i._olm_ed25519_verify)(this.Kb,o,e.length,r,t.length,a,n.length)}finally{for(Fe(r,t.length),e=0;e<t.length;e++)t[e]=0}})),a.Account=Me,a.Session=Le,a.Utility=Be,a.PkEncryption=ve,a.PkDecryption=ye,a.PkSigning=Te,a.SAS=Ce,a.get_library_version=Ne((function(){var e=Ie(3);return i._olm_get_library_version(e,e+1,e+2),[x(e,"i8"),x(e+1,"i8"),x(e+2,"i8")]})),t.ready},"object"==typeof t&&"object"==typeof e?e.exports=s:"function"==typeof define&&define.amd?define([],(function(){return s})):"object"==typeof t&&(t.Module=s),a.init=function(e){return i||(e&&(OLM_OPTIONS=e),i=new Promise((function(e,t){n=function(){e()},o=function(e){t(e)},s()})))},a);"undefined"!=typeof window&&(window.Olm=c),"object"==typeof e&&(e.exports=c)},function(e,t,n){"use strict";var o=n(81),r=n(522),i=n(808);function a(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(!o)throw Error(a(227));function s(e,t,n,o,r,i,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var c=!1,l=null,u=!1,d=null,h={onError:function(e){c=!0,l=e}};function p(e,t,n,o,r,i,a,u,d){c=!1,l=null,s.apply(h,arguments)}var m=null,g=null,f=null;function _(e,t,n){var o=e.type||"unknown-event";e.currentTarget=f(n),function(e,t,n,o,r,i,s,h,m){if(p.apply(this,arguments),c){if(!c)throw Error(a(198));var g=l;c=!1,l=null,u||(u=!0,d=g)}}(o,t,void 0,e),e.currentTarget=null}var b=null,v={};function E(){if(b)for(var e in v){var t=v[e],n=b.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!S[n]){if(!t.extractEvents)throw Error(a(97,e));for(var o in S[n]=t,n=t.eventTypes){var r=void 0,i=n[o],s=t,c=o;if(T.hasOwnProperty(c))throw Error(a(99,c));T[c]=i;var l=i.phasedRegistrationNames;if(l){for(r in l)l.hasOwnProperty(r)&&y(l[r],s,c);r=!0}else i.registrationName?(y(i.registrationName,s,c),r=!0):r=!1;if(!r)throw Error(a(98,o,e))}}}}function y(e,t,n){if(w[e])throw Error(a(100,e));w[e]=t,C[e]=t.eventTypes[n].dependencies}var S=[],T={},w={},C={};function x(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];if(!v.hasOwnProperty(t)||v[t]!==o){if(v[t])throw Error(a(102,t));v[t]=o,n=!0}}n&&E()}var O=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),k=null,R=null,A=null;function I(e){if(e=g(e)){if("function"!=typeof k)throw Error(a(280));var t=e.stateNode;t&&(t=m(t),k(e.stateNode,e.type,t))}}function D(e){R?A?A.push(e):A=[e]:R=e}function N(){if(R){var e=R,t=A;if(A=R=null,I(e),t)for(e=0;e<t.length;e++)I(t[e])}}function F(e,t){return e(t)}function M(e,t,n,o,r){return e(t,n,o,r)}function P(){}var L=F,U=!1,B=!1;function j(){null===R&&null===A||(P(),N())}function G(e,t,n){if(B)return e(t,n);B=!0;try{return L(e,t,n)}finally{B=!1,j()}}var q=/^[: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]*$/,H=Object.prototype.hasOwnProperty,V={},z={};function K(e,t,n,o,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,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 K(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 K(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){W[e]=new K(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){W[e]=new K(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 K(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){W[e]=new K(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){W[e]=new K(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){W[e]=new K(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){W[e]=new K(e,5,!1,e.toLowerCase(),null,!1)}));var Y=/[\-:]([a-z])/g;function $(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(Y,$);W[t]=new K(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(Y,$);W[t]=new K(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Y,$);W[t]=new K(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){W[e]=new K(e,1,!1,e.toLowerCase(),null,!1)})),W.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){W[e]=new K(e,1,!1,e.toLowerCase(),null,!0)}));var Q=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,o){var r=W.hasOwnProperty(t)?W[t]:null;(null!==r?0===r.type:!o&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)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,r,o)&&(n=null),o||null===r?function(e){return!!H.call(z,e)||!H.call(V,e)&&(q.test(e)?z[e]=!0:(V[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,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,oe=Z?Symbol.for("react.strict_mode"):60108,re=Z?Symbol.for("react.profiler"):60114,ie=Z?Symbol.for("react.provider"):60109,ae=Z?Symbol.for("react.context"):60110,se=Z?Symbol.for("react.concurrent_mode"):60111,ce=Z?Symbol.for("react.forward_ref"):60112,le=Z?Symbol.for("react.suspense"):60113,ue=Z?Symbol.for("react.suspense_list"):60120,de=Z?Symbol.for("react.memo"):60115,he=Z?Symbol.for("react.lazy"):60116,pe=Z?Symbol.for("react.block"):60121,me="function"==typeof Symbol&&Symbol.iterator;function ge(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=me&&e[me]||e["@@iterator"])?e:null}function fe(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 re:return"Profiler";case oe:return"StrictMode";case le:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case ce:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return fe(e.type);case pe:return fe(e.render);case he:if(e=1===e._status?e._result:null)return fe(e)}return null}function _e(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 o=e._debugOwner,r=e._debugSource,i=fe(e.type);n=null,o&&(n=fe(o.type)),o=i,i="",r?i=" (at "+r.fileName.replace(J,"")+":"+r.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(o||"Unknown")+i}t+=n,e=e.return}while(e);return t}function be(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 Ee(e){e._valueTracker||(e._valueTracker=function(e){var t=ve(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){o=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ye(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=ve(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function Se(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Te(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=be(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function we(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Ce(e,t){we(e,t);var n=be(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?Oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&Oe(e,t.type,be(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function xe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||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 Oe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ke(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Re(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+be(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(o&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function Ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:be(n)}}function De(e,t){var n=be(t.value),o=be(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function Ne(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Fe="http://www.w3.org/1999/xhtml",Me="http://www.w3.org/2000/svg";function Pe(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 Le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ue,Be=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Me||"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 Ge(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var qe={animationend:Ge("Animation","AnimationEnd"),animationiteration:Ge("Animation","AnimationIteration"),animationstart:Ge("Animation","AnimationStart"),transitionend:Ge("Transition","TransitionEnd")},He={},Ve={};function ze(e){if(He[e])return He[e];if(!qe[e])return e;var t,n=qe[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ve)return He[e]=n[t];return e}O&&(Ve=document.createElement("div").style,"AnimationEvent"in window||(delete qe.animationend.animation,delete qe.animationiteration.animation,delete qe.animationstart.animation),"TransitionEvent"in window||delete qe.transitionend.transition);var Ke=ze("animationend"),We=ze("animationiteration"),Ye=ze("animationstart"),$e=ze("transitionend"),Qe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xe=new("function"==typeof WeakMap?WeakMap:Map);function Je(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.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(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(null===r)break;var i=r.alternate;if(null===i){if(null!==(o=r.return)){n=o;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return tt(r),e;if(i===o)return tt(r),t;i=i.sibling}throw Error(a(188))}if(n.return!==o.return)n=r,o=i;else{for(var s=!1,c=r.child;c;){if(c===n){s=!0,n=r,o=i;break}if(c===o){s=!0,o=r,n=i;break}c=c.sibling}if(!s){for(c=i.child;c;){if(c===n){s=!0,n=i,o=r;break}if(c===o){s=!0,o=i,n=r;break}c=c.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==o)throw Error(a(190))}if(3!==n.tag)throw Error(a(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 ot(e,t){if(null==t)throw Error(a(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 rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var o=0;o<t.length&&!e.isPropagationStopped();o++)_(e,t[o],n[o]);else t&&_(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(it=ot(it,e)),e=it,it=null,e){if(rt(e,at),it)throw Error(a(95));if(u)throw e=d,u=!1,d=null,e}}function ct(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function lt(e){if(!O)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 dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ut.length&&ut.push(e)}function ht(e,t,n,o){if(ut.length){var r=ut.pop();return r.topLevelType=e,r.eventSystemFlags=o,r.nativeEvent=t,r.targetInst=n,r}return{topLevelType:e,eventSystemFlags:o,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var o=n;if(3===o.tag)o=o.stateNode.containerInfo;else{for(;o.return;)o=o.return;o=3!==o.tag?null:o.stateNode.containerInfo}if(!o)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=On(o)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=ct(e.nativeEvent);o=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,c=0;c<S.length;c++){var l=S[c];l&&(l=l.extractEvents(o,t,i,r,a))&&(s=ot(s,l))}st(s)}}function mt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Yt(t,"scroll",!0);break;case"focus":case"blur":Yt(t,"focus",!0),Yt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":lt(e)&&Yt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qe.indexOf(e)&&Wt(e,t)}n.set(e,null)}}var gt,ft,_t,bt=!1,vt=[],Et=null,yt=null,St=null,Tt=new Map,wt=new Map,Ct=[],xt="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(" "),Ot="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function kt(e,t,n,o,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r,container:o}}function Rt(e,t){switch(e){case"focus":case"blur":Et=null;break;case"dragenter":case"dragleave":yt=null;break;case"mouseover":case"mouseout":St=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wt.delete(t.pointerId)}}function At(e,t,n,o,r,i){return null===e||e.nativeEvent!==i?(e=kt(t,n,o,r,i),null!==t&&(null!==(t=kn(t))&&ft(t)),e):(e.eventSystemFlags|=o,e)}function It(e){var t=On(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(){_t(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=kn(t);return null!==n&&ft(n),e.blockedOn=t,!1}return!0}function Nt(e,t,n){Dt(e)&&n.delete(t)}function Ft(){for(bt=!1;0<vt.length;){var e=vt[0];if(null!==e.blockedOn){null!==(e=kn(e.blockedOn))&&gt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:vt.shift()}null!==Et&&Dt(Et)&&(Et=null),null!==yt&&Dt(yt)&&(yt=null),null!==St&&Dt(St)&&(St=null),Tt.forEach(Nt),wt.forEach(Nt)}function Mt(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Pt(e){function t(t){return Mt(t,e)}if(0<vt.length){Mt(vt[0],e);for(var n=1;n<vt.length;n++){var o=vt[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==Et&&Mt(Et,e),null!==yt&&Mt(yt,e),null!==St&&Mt(St,e),Tt.forEach(t),wt.forEach(t),n=0;n<Ct.length;n++)(o=Ct[n]).blockedOn===e&&(o.blockedOn=null);for(;0<Ct.length&&null===(n=Ct[0]).blockedOn;)It(n),null===n.blockedOn&&Ct.shift()}var Lt={},Ut=new Map,Bt=new Map,jt=["abort","abort",Ke,"animationEnd",We,"animationIteration",Ye,"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",$e,"transitionEnd","waiting","waiting"];function Gt(e,t){for(var n=0;n<e.length;n+=2){var o=e[n],r=e[n+1],i="on"+(r[0].toUpperCase()+r.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[o],eventPriority:t},Bt.set(o,t),Ut.set(o,i),Lt[r]=i}}Gt("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),Gt("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),Gt(jt,2);for(var qt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ht=0;Ht<qt.length;Ht++)Bt.set(qt[Ht],0);var Vt=i.unstable_UserBlockingPriority,zt=i.unstable_runWithPriority,Kt=!0;function Wt(e,t){Yt(t,e,!1)}function Yt(e,t,n){var o=Bt.get(t);switch(void 0===o?2:o){case 0:o=$t.bind(null,t,1,e);break;case 1:o=Qt.bind(null,t,1,e);break;default:o=Xt.bind(null,t,1,e)}n?e.addEventListener(t,o,!0):e.addEventListener(t,o,!1)}function $t(e,t,n,o){U||P();var r=Xt,i=U;U=!0;try{M(r,e,t,n,o)}finally{(U=i)||j()}}function Qt(e,t,n,o){zt(Vt,Xt.bind(null,e,t,n,o))}function Xt(e,t,n,o){if(Kt)if(0<vt.length&&-1<xt.indexOf(e))e=kt(null,e,t,n,o),vt.push(e);else{var r=Jt(e,t,n,o);if(null===r)Rt(e,o);else if(-1<xt.indexOf(e))e=kt(r,e,t,n,o),vt.push(e);else if(!function(e,t,n,o,r){switch(t){case"focus":return Et=At(Et,e,t,n,o,r),!0;case"dragenter":return yt=At(yt,e,t,n,o,r),!0;case"mouseover":return St=At(St,e,t,n,o,r),!0;case"pointerover":var i=r.pointerId;return Tt.set(i,At(Tt.get(i)||null,e,t,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,wt.set(i,At(wt.get(i)||null,e,t,n,o,r)),!0}return!1}(r,e,t,n,o)){Rt(e,o),e=ht(e,o,null,t);try{G(pt,e)}finally{dt(e)}}}}function Jt(e,t,n,o){if(null!==(n=On(n=ct(o)))){var r=Ze(n);if(null===r)n=null;else{var i=r.tag;if(13===i){if(null!==(n=et(r)))return n;n=null}else if(3===i){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}e=ht(e,o,n,t);try{G(pt,e)}finally{dt(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 o=0===n.indexOf("--"),r=tn(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var on=r({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 rn(e,t){if(t){if(on[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function an(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 sn=Fe;function cn(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=C[t];for(var o=0;o<t.length;o++)mt(t[o],e,n)}function ln(){}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 dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hn(e,t){var n,o=dn(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=dn(o)}}function pn(){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 mn(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 gn=null,fn=null;function _n(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function bn(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,En="function"==typeof clearTimeout?clearTimeout:void 0;function yn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Sn(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 Tn=Math.random().toString(36).slice(2),wn="__reactInternalInstance$"+Tn,Cn="__reactEventHandlers$"+Tn,xn="__reactContainere$"+Tn;function On(e){var t=e[wn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xn]||n[wn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Sn(e);null!==e;){if(n=e[wn])return n;e=Sn(e)}return t}n=(e=n).parentNode}return null}function kn(e){return!(e=e[wn]||e[xn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Rn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function An(e){return e[Cn]||null}function In(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Dn(e,t){var n=e.stateNode;if(!n)return null;var o=m(n);if(!o)return null;n=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Nn(e,t,n){(t=Dn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Fn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=In(t);for(t=n.length;0<t--;)Nn(n[t],"captured",e);for(t=0;t<n.length;t++)Nn(n[t],"bubbled",e)}}function Mn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Dn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Pn(e){e&&e.dispatchConfig.registrationName&&Mn(e._targetInst,null,e)}function Ln(e){rt(e,Fn)}var Un=null,Bn=null,jn=null;function Gn(){if(jn)return jn;var e,t,n=Bn,o=n.length,r="value"in Un?Un.value:Un.textContent,i=r.length;for(e=0;e<o&&n[e]===r[e];e++);var a=o-e;for(t=1;t<=a&&n[o-t]===r[i-t];t++);return jn=r.slice(e,1<t?1-t:void 0)}function qn(){return!0}function Hn(){return!1}function Vn(e,t,n,o){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=o:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?qn:Hn,this.isPropagationStopped=Hn,this}function zn(e,t,n,o){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,o),r}return new this(e,t,n,o)}function Kn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Wn(e){e.eventPool=[],e.getPooled=zn,e.release=Kn}r(Vn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=qn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=qn)},persist:function(){this.isPersistent=qn},isPersistent:Hn,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=Hn,this._dispatchInstances=this._dispatchListeners=null}}),Vn.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},Vn.extend=function(e){function t(){}function n(){return o.apply(this,arguments)}var o=this;t.prototype=o.prototype;var i=new t;return r(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=r({},o.Interface,e),n.extend=o.extend,Wn(n),n},Wn(Vn);var Yn=Vn.extend({data:null}),$n=Vn.extend({data:null}),Qn=[9,13,27,32],Xn=O&&"CompositionEvent"in window,Jn=null;O&&"documentMode"in document&&(Jn=document.documentMode);var Zn=O&&"TextEvent"in window&&!Jn,eo=O&&(!Xn||Jn&&8<Jn&&11>=Jn),to=String.fromCharCode(32),no={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(" ")}},oo=!1;function ro(e,t){switch(e){case"keyup":return-1!==Qn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function io(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ao=!1;var so={eventTypes:no,extractEvents:function(e,t,n,o){var r;if(Xn)e:{switch(e){case"compositionstart":var i=no.compositionStart;break e;case"compositionend":i=no.compositionEnd;break e;case"compositionupdate":i=no.compositionUpdate;break e}i=void 0}else ao?ro(e,n)&&(i=no.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=no.compositionStart);return i?(eo&&"ko"!==n.locale&&(ao||i!==no.compositionStart?i===no.compositionEnd&&ao&&(r=Gn()):(Bn="value"in(Un=o)?Un.value:Un.textContent,ao=!0)),i=Yn.getPooled(i,t,n,o),r?i.data=r:null!==(r=io(n))&&(i.data=r),Ln(i),r=i):r=null,(e=Zn?function(e,t){switch(e){case"compositionend":return io(t);case"keypress":return 32!==t.which?null:(oo=!0,to);case"textInput":return(e=t.data)===to&&oo?null:e;default:return null}}(e,n):function(e,t){if(ao)return"compositionend"===e||!Xn&&ro(e,t)?(e=Gn(),jn=Bn=Un=null,ao=!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 eo&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=$n.getPooled(no.beforeInput,t,n,o)).data=e,Ln(t)):t=null,null===r?t:null===t?r:[r,t]}},co={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 lo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!co[e.type]:"textarea"===t}var uo={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function ho(e,t,n){return(e=Vn.getPooled(uo.change,e,t,n)).type="change",D(n),Ln(e),e}var po=null,mo=null;function go(e){st(e)}function fo(e){if(ye(Rn(e)))return e}function _o(e,t){if("change"===e)return t}var bo=!1;function vo(){po&&(po.detachEvent("onpropertychange",Eo),mo=po=null)}function Eo(e){if("value"===e.propertyName&&fo(mo))if(e=ho(mo,e,ct(e)),U)st(e);else{U=!0;try{F(go,e)}finally{U=!1,j()}}}function yo(e,t,n){"focus"===e?(vo(),mo=n,(po=t).attachEvent("onpropertychange",Eo)):"blur"===e&&vo()}function So(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return fo(mo)}function To(e,t){if("click"===e)return fo(t)}function wo(e,t){if("input"===e||"change"===e)return fo(t)}O&&(bo=lt("input")&&(!document.documentMode||9<document.documentMode));var Co={eventTypes:uo,_isInputEventSupported:bo,extractEvents:function(e,t,n,o){var r=t?Rn(t):window,i=r.nodeName&&r.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===r.type)var a=_o;else if(lo(r))if(bo)a=wo;else{a=So;var s=yo}else(i=r.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(a=To);if(a&&(a=a(e,t)))return ho(a,n,o);s&&s(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&Oe(r,"number",r.value)}},xo=Vn.extend({view:null,detail:null}),Oo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ko(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Oo[e])&&!!t[e]}function Ro(){return ko}var Ao=0,Io=0,Do=!1,No=!1,Fo=xo.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ro,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=Ao;return Ao=e.screenX,Do?"mousemove"===e.type?e.screenX-t:0:(Do=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Io;return Io=e.screenY,No?"mousemove"===e.type?e.screenY-t:0:(No=!0,0)}}),Mo=Fo.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Po={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Lo={eventTypes:Po,extractEvents:function(e,t,n,o,r){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&r)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;(i=o.window===o?o:(i=o.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?On(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Fo,c=Po.mouseLeave,l=Po.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Mo,c=Po.pointerLeave,l=Po.pointerEnter,u="pointer");if(e=null==a?i:Rn(a),i=null==t?i:Rn(t),(c=s.getPooled(c,a,n,o)).type=u+"leave",c.target=e,c.relatedTarget=i,(n=s.getPooled(l,t,n,o)).type=u+"enter",n.target=i,n.relatedTarget=e,u=t,(o=a)&&u)e:{for(l=u,a=0,e=s=o;e;e=In(e))a++;for(e=0,t=l;t;t=In(t))e++;for(;0<a-e;)s=In(s),a--;for(;0<e-a;)l=In(l),e--;for(;a--;){if(s===l||s===l.alternate)break e;s=In(s),l=In(l)}s=null}else s=null;for(l=s,s=[];o&&o!==l&&(null===(a=o.alternate)||a!==l);)s.push(o),o=In(o);for(o=[];u&&u!==l&&(null===(a=u.alternate)||a!==l);)o.push(u),u=In(u);for(u=0;u<s.length;u++)Mn(s[u],"bubbled",c);for(u=o.length;0<u--;)Mn(o[u],"captured",n);return 0==(64&r)?[c]:[c,n]}};var Uo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Bo=Object.prototype.hasOwnProperty;function jo(e,t){if(Uo(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!Bo.call(t,n[o])||!Uo(e[n[o]],t[n[o]]))return!1;return!0}var Go=O&&"documentMode"in document&&11>=document.documentMode,qo={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Ho=null,Vo=null,zo=null,Ko=!1;function Wo(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Ko||null==Ho||Ho!==un(n)?null:("selectionStart"in(n=Ho)&&mn(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},zo&&jo(zo,n)?null:(zo=n,(e=Vn.getPooled(qo.select,Vo,e,t)).type="select",e.target=Ho,Ln(e),e))}var Yo={eventTypes:qo,extractEvents:function(e,t,n,o,r,i){if(!(i=!(r=i||(o.window===o?o.document:9===o.nodeType?o:o.ownerDocument)))){e:{r=Je(r),i=C.onSelect;for(var a=0;a<i.length;a++)if(!r.has(i[a])){r=!1;break e}r=!0}i=!r}if(i)return null;switch(r=t?Rn(t):window,e){case"focus":(lo(r)||"true"===r.contentEditable)&&(Ho=r,Vo=t,zo=null);break;case"blur":zo=Vo=Ho=null;break;case"mousedown":Ko=!0;break;case"contextmenu":case"mouseup":case"dragend":return Ko=!1,Wo(n,o);case"selectionchange":if(Go)break;case"keydown":case"keyup":return Wo(n,o)}return null}},$o=Vn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qo=Vn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xo=xo.extend({relatedTarget:null});function Jo(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 Zo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},er={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"},tr=xo.extend({key:function(e){if(e.key){var t=Zo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?er[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ro,charCode:function(e){return"keypress"===e.type?Jo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),nr=Fo.extend({dataTransfer:null}),or=xo.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ro}),rr=Vn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ir=Fo.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}),ar={eventTypes:Lt,extractEvents:function(e,t,n,o){var r=Ut.get(e);if(!r)return null;switch(e){case"keypress":if(0===Jo(n))return null;case"keydown":case"keyup":e=tr;break;case"blur":case"focus":e=Xo;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=Fo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=nr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=or;break;case Ke:case We:case Ye:e=$o;break;case $e:e=rr;break;case"scroll":e=xo;break;case"wheel":e=ir;break;case"copy":case"cut":case"paste":e=Qo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Mo;break;default:e=Vn}return Ln(t=e.getPooled(r,t,n,o)),t}};if(b)throw Error(a(101));b=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),E(),m=An,g=kn,f=Rn,x({SimpleEventPlugin:ar,EnterLeaveEventPlugin:Lo,ChangeEventPlugin:Co,SelectEventPlugin:Yo,BeforeInputEventPlugin:so});var sr=[],cr=-1;function lr(e){0>cr||(e.current=sr[cr],sr[cr]=null,cr--)}function ur(e,t){cr++,sr[cr]=e.current,e.current=t}var dr={},hr={current:dr},pr={current:!1},mr=dr;function gr(e,t){var n=e.type.contextTypes;if(!n)return dr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function fr(e){return null!=(e=e.childContextTypes)}function _r(){lr(pr),lr(hr)}function br(e,t,n){if(hr.current!==dr)throw Error(a(168));ur(hr,t),ur(pr,n)}function vr(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var i in o=o.getChildContext())if(!(i in e))throw Error(a(108,fe(t)||"Unknown",i));return r({},n,{},o)}function Er(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dr,mr=hr.current,ur(hr,e),ur(pr,pr.current),!0}function yr(e,t,n){var o=e.stateNode;if(!o)throw Error(a(169));n?(e=vr(e,t,mr),o.__reactInternalMemoizedMergedChildContext=e,lr(pr),lr(hr),ur(hr,e)):lr(pr),ur(pr,n)}var Sr=i.unstable_runWithPriority,Tr=i.unstable_scheduleCallback,wr=i.unstable_cancelCallback,Cr=i.unstable_requestPaint,xr=i.unstable_now,Or=i.unstable_getCurrentPriorityLevel,kr=i.unstable_ImmediatePriority,Rr=i.unstable_UserBlockingPriority,Ar=i.unstable_NormalPriority,Ir=i.unstable_LowPriority,Dr=i.unstable_IdlePriority,Nr={},Fr=i.unstable_shouldYield,Mr=void 0!==Cr?Cr:function(){},Pr=null,Lr=null,Ur=!1,Br=xr(),jr=1e4>Br?xr:function(){return xr()-Br};function Gr(){switch(Or()){case kr:return 99;case Rr:return 98;case Ar:return 97;case Ir:return 96;case Dr:return 95;default:throw Error(a(332))}}function qr(e){switch(e){case 99:return kr;case 98:return Rr;case 97:return Ar;case 96:return Ir;case 95:return Dr;default:throw Error(a(332))}}function Hr(e,t){return e=qr(e),Sr(e,t)}function Vr(e,t,n){return e=qr(e),Tr(e,t,n)}function zr(e){return null===Pr?(Pr=[e],Lr=Tr(kr,Wr)):Pr.push(e),Nr}function Kr(){if(null!==Lr){var e=Lr;Lr=null,wr(e)}Wr()}function Wr(){if(!Ur&&null!==Pr){Ur=!0;var e=0;try{var t=Pr;Hr(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Pr=null}catch(t){throw null!==Pr&&(Pr=Pr.slice(e+1)),Tr(kr,Kr),t}finally{Ur=!1}}}function Yr(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function $r(e,t){if(e&&e.defaultProps)for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Qr={current:null},Xr=null,Jr=null,Zr=null;function ei(){Zr=Jr=Xr=null}function ti(e){var t=Qr.current;lr(Qr),e.type._context._currentValue=t}function ni(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 oi(e,t){Xr=e,Zr=Jr=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Aa=!0),e.firstContext=null)}function ri(e,t){if(Zr!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zr=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Jr){if(null===Xr)throw Error(a(308));Jr=t,Xr.dependencies={expirationTime:0,firstContext:t,responders:null}}else Jr=Jr.next=t;return e._currentValue}var ii=!1;function ai(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 ci(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 ui(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 di(e,t,n,o){var i=e.updateQueue;ii=!1;var a=i.baseQueue,s=i.shared.pending;if(null!==s){if(null!==a){var c=a.next;a.next=s.next,s.next=c}a=s,i.shared.pending=null,null!==(c=e.alternate)&&(null!==(c=c.updateQueue)&&(c.baseQueue=s))}if(null!==a){c=a.next;var l=i.baseState,u=0,d=null,h=null,p=null;if(null!==c)for(var m=c;;){if((s=m.expirationTime)<o){var g={expirationTime:m.expirationTime,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null};null===p?(h=p=g,d=l):p=p.next=g,s>u&&(u=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null}),ic(s,m.suspenseConfig);e:{var f=e,_=m;switch(s=t,g=n,_.tag){case 1:if("function"==typeof(f=_.payload)){l=f.call(g,l,s);break e}l=f;break e;case 3:f.effectTag=-4097&f.effectTag|64;case 0:if(null==(s="function"==typeof(f=_.payload)?f.call(g,l,s):f))break e;l=r({},l,s);break e;case 2:ii=!0}}null!==m.callback&&(e.effectTag|=32,null===(s=i.effects)?i.effects=[m]:s.push(m))}if(null===(m=m.next)||m===c){if(null===(s=i.shared.pending))break;m=a.next=s.next,s.next=c,i.baseQueue=a=s,i.shared.pending=null}}null===p?d=l:p.next=h,i.baseState=d,i.baseQueue=p,ac(u),e.expirationTime=u,e.memoizedState=l}}function hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],r=o.callback;if(null!==r){if(o.callback=null,o=r,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var pi=Q.ReactCurrentBatchConfig,mi=(new o.Component).refs;function gi(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:r({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var fi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var o=Ks(),r=pi.suspense;(r=ci(o=Ws(o,e,r),r)).payload=t,null!=n&&(r.callback=n),li(e,r),Ys(e,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var o=Ks(),r=pi.suspense;(r=ci(o=Ws(o,e,r),r)).tag=1,r.payload=t,null!=n&&(r.callback=n),li(e,r),Ys(e,o)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ks(),o=pi.suspense;(o=ci(n=Ws(n,e,o),o)).tag=2,null!=t&&(o.callback=t),li(e,o),Ys(e,n)}};function _i(e,t,n,o,r,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!jo(n,o)||!jo(r,i))}function bi(e,t,n){var o=!1,r=dr,i=t.contextType;return"object"==typeof i&&null!==i?i=ri(i):(r=fr(t)?mr:hr.current,i=(o=null!=(o=t.contextTypes))?gr(e,r):dr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=fi,e.stateNode=t,t._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function vi(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&fi.enqueueReplaceState(t,t.state,null)}function Ei(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=mi,ai(e);var i=t.contextType;"object"==typeof i&&null!==i?r.context=ri(i):(i=fr(t)?mr:hr.current,r.context=gr(e,i)),di(e,n,r,o),r.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(gi(e,t,i,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&fi.enqueueReplaceState(r,r.state,null),di(e,n,r,o),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var yi=Array.isArray;function Si(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(a(309));var o=n.stateNode}if(!o)throw Error(a(147,e));var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=o.refs;t===mi&&(t=o.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ti(e,t){if("textarea"!==e.type)throw Error(a(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 o=t.lastEffect;null!==o?(o.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(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 r(e,t){return(e=xc(e,t)).index=0,e.sibling=null,e}function i(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.effectTag=2,n):o:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,o){return null===t||6!==t.tag?((t=Rc(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function l(e,t,n,o){return null!==t&&t.elementType===n.type?((o=r(t,n.props)).ref=Si(e,t,n),o.return=e,o):((o=Oc(n.type,n.key,n.props,null,e.mode,o)).ref=Si(e,t,n),o.return=e,o)}function u(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ac(n,e.mode,o)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,o,i){return null===t||7!==t.tag?((t=kc(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Rc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Oc(t.type,t.key,t.props,null,e.mode,n)).ref=Si(e,null,t),n.return=e,n;case te:return(t=Ac(t,e.mode,n)).return=e,t}if(yi(t)||ge(t))return(t=kc(t,e.mode,n,null)).return=e,t;Ti(e,t)}return null}function p(e,t,n,o){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:c(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===r?n.type===ne?d(e,t,n.props.children,o,r):l(e,t,n,o):null;case te:return n.key===r?u(e,t,n,o):null}if(yi(n)||ge(n))return null!==r?null:d(e,t,n,o,null);Ti(e,n)}return null}function m(e,t,n,o,r){if("string"==typeof o||"number"==typeof o)return c(t,e=e.get(n)||null,""+o,r);if("object"==typeof o&&null!==o){switch(o.$$typeof){case ee:return e=e.get(null===o.key?n:o.key)||null,o.type===ne?d(t,e,o.props.children,r,o.key):l(t,e,o,r);case te:return u(t,e=e.get(null===o.key?n:o.key)||null,o,r)}if(yi(o)||ge(o))return d(t,e=e.get(n)||null,o,r,null);Ti(t,o)}return null}function g(r,a,s,c){for(var l=null,u=null,d=a,g=a=0,f=null;null!==d&&g<s.length;g++){d.index>g?(f=d,d=null):f=d.sibling;var _=p(r,d,s[g],c);if(null===_){null===d&&(d=f);break}e&&d&&null===_.alternate&&t(r,d),a=i(_,a,g),null===u?l=_:u.sibling=_,u=_,d=f}if(g===s.length)return n(r,d),l;if(null===d){for(;g<s.length;g++)null!==(d=h(r,s[g],c))&&(a=i(d,a,g),null===u?l=d:u.sibling=d,u=d);return l}for(d=o(r,d);g<s.length;g++)null!==(f=m(d,r,g,s[g],c))&&(e&&null!==f.alternate&&d.delete(null===f.key?g:f.key),a=i(f,a,g),null===u?l=f:u.sibling=f,u=f);return e&&d.forEach((function(e){return t(r,e)})),l}function f(r,s,c,l){var u=ge(c);if("function"!=typeof u)throw Error(a(150));if(null==(c=u.call(c)))throw Error(a(151));for(var d=u=null,g=s,f=s=0,_=null,b=c.next();null!==g&&!b.done;f++,b=c.next()){g.index>f?(_=g,g=null):_=g.sibling;var v=p(r,g,b.value,l);if(null===v){null===g&&(g=_);break}e&&g&&null===v.alternate&&t(r,g),s=i(v,s,f),null===d?u=v:d.sibling=v,d=v,g=_}if(b.done)return n(r,g),u;if(null===g){for(;!b.done;f++,b=c.next())null!==(b=h(r,b.value,l))&&(s=i(b,s,f),null===d?u=b:d.sibling=b,d=b);return u}for(g=o(r,g);!b.done;f++,b=c.next())null!==(b=m(g,r,f,b.value,l))&&(e&&null!==b.alternate&&g.delete(null===b.key?f:b.key),s=i(b,s,f),null===d?u=b:d.sibling=b,d=b);return e&&g.forEach((function(e){return t(r,e)})),u}return function(e,o,i,c){var l="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;l&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case ee:e:{for(u=i.key,l=o;null!==l;){if(l.key===u){switch(l.tag){case 7:if(i.type===ne){n(e,l.sibling),(o=r(l,i.props.children)).return=e,e=o;break e}break;default:if(l.elementType===i.type){n(e,l.sibling),(o=r(l,i.props)).ref=Si(e,l,i),o.return=e,e=o;break e}}n(e,l);break}t(e,l),l=l.sibling}i.type===ne?((o=kc(i.props.children,e.mode,c,i.key)).return=e,e=o):((c=Oc(i.type,i.key,i.props,null,e.mode,c)).ref=Si(e,o,i),c.return=e,e=c)}return s(e);case te:e:{for(l=i.key;null!==o;){if(o.key===l){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),(o=r(o,i.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=Ac(i,e.mode,c)).return=e,e=o}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),(o=r(o,i)).return=e,e=o):(n(e,o),(o=Rc(i,e.mode,c)).return=e,e=o),s(e);if(yi(i))return g(e,o,i,c);if(ge(i))return f(e,o,i,c);if(u&&Ti(e,i),void 0===i&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,o)}}var Ci=wi(!0),xi=wi(!1),Oi={},ki={current:Oi},Ri={current:Oi},Ai={current:Oi};function Ii(e){if(e===Oi)throw Error(a(174));return e}function Di(e,t){switch(ur(Ai,t),ur(Ri,e),ur(ki,Oi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Le(null,"");break;default:t=Le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lr(ki),ur(ki,t)}function Ni(){lr(ki),lr(Ri),lr(Ai)}function Fi(e){Ii(Ai.current);var t=Ii(ki.current),n=Le(t,e.type);t!==n&&(ur(Ri,e),ur(ki,n))}function Mi(e){Ri.current===e&&(lr(ki),lr(Ri))}var Pi={current:0};function Li(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 Ui(e,t){return{responder:e,props:t}}var Bi=Q.ReactCurrentDispatcher,ji=Q.ReactCurrentBatchConfig,Gi=0,qi=null,Hi=null,Vi=null,zi=!1;function Ki(){throw Error(a(321))}function Wi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Uo(e[n],t[n]))return!1;return!0}function Yi(e,t,n,o,r,i){if(Gi=i,qi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Bi.current=null===e||null===e.memoizedState?_a:ba,e=n(o,r),t.expirationTime===Gi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Vi=Hi=null,t.updateQueue=null,Bi.current=va,e=n(o,r)}while(t.expirationTime===Gi)}if(Bi.current=fa,t=null!==Hi&&null!==Hi.next,Gi=0,Vi=Hi=qi=null,zi=!1,t)throw Error(a(300));return e}function $i(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Vi?qi.memoizedState=Vi=e:Vi=Vi.next=e,Vi}function Qi(){if(null===Hi){var e=qi.alternate;e=null!==e?e.memoizedState:null}else e=Hi.next;var t=null===Vi?qi.memoizedState:Vi.next;if(null!==t)Vi=t,Hi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Hi=e).memoizedState,baseState:Hi.baseState,baseQueue:Hi.baseQueue,queue:Hi.queue,next:null},null===Vi?qi.memoizedState=Vi=e:Vi=Vi.next=e}return Vi}function Xi(e,t){return"function"==typeof t?t(e):t}function Ji(e){var t=Qi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var o=Hi,r=o.baseQueue,i=n.pending;if(null!==i){if(null!==r){var s=r.next;r.next=i.next,i.next=s}o.baseQueue=r=i,n.pending=null}if(null!==r){r=r.next,o=o.baseState;var c=s=i=null,l=r;do{var u=l.expirationTime;if(u<Gi){var d={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(s=c=d,i=o):c=c.next=d,u>qi.expirationTime&&(qi.expirationTime=u,ac(u))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),ic(u,l.suspenseConfig),o=l.eagerReducer===e?l.eagerState:e(o,l.action);l=l.next}while(null!==l&&l!==r);null===c?i=o:c.next=s,Uo(o,t.memoizedState)||(Aa=!0),t.memoizedState=o,t.baseState=i,t.baseQueue=c,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function Zi(e){var t=Qi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,i=t.memoizedState;if(null!==r){n.pending=null;var s=r=r.next;do{i=e(i,s.action),s=s.next}while(s!==r);Uo(i,t.memoizedState)||(Aa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function ea(e){var t=$i();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:e}).dispatch=ga.bind(null,qi,e),[t.memoizedState,e]}function ta(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=qi.updateQueue)?(t={lastEffect:null},qi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function na(){return Qi().memoizedState}function oa(e,t,n,o){var r=$i();qi.effectTag|=e,r.memoizedState=ta(1|t,n,void 0,void 0===o?null:o)}function ra(e,t,n,o){var r=Qi();o=void 0===o?null:o;var i=void 0;if(null!==Hi){var a=Hi.memoizedState;if(i=a.destroy,null!==o&&Wi(o,a.deps))return void ta(t,n,i,o)}qi.effectTag|=e,r.memoizedState=ta(1|t,n,i,o)}function ia(e,t){return oa(516,4,e,t)}function aa(e,t){return ra(516,4,e,t)}function sa(e,t){return ra(4,2,e,t)}function ca(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 la(e,t,n){return n=null!=n?n.concat([e]):null,ra(4,2,ca.bind(null,t,e),n)}function ua(){}function da(e,t){return $i().memoizedState=[e,void 0===t?null:t],e}function ha(e,t){var n=Qi();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Wi(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function pa(e,t){var n=Qi();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Wi(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function ma(e,t,n){var o=Gr();Hr(98>o?98:o,(function(){e(!0)})),Hr(97<o?97:o,(function(){var o=ji.suspense;ji.suspense=void 0===t?null:t;try{e(!1),n()}finally{ji.suspense=o}}))}function ga(e,t,n){var o=Ks(),r=pi.suspense;r={expirationTime:o=Ws(o,e,r),suspenseConfig:r,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?r.next=r:(r.next=i.next,i.next=r),t.pending=r,i=e.alternate,e===qi||null!==i&&i===qi)zi=!0,r.expirationTime=Gi,qi.expirationTime=Gi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(r.eagerReducer=i,r.eagerState=s,Uo(s,a))return}catch(e){}Ys(e,o)}}var fa={readContext:ri,useCallback:Ki,useContext:Ki,useEffect:Ki,useImperativeHandle:Ki,useLayoutEffect:Ki,useMemo:Ki,useReducer:Ki,useRef:Ki,useState:Ki,useDebugValue:Ki,useResponder:Ki,useDeferredValue:Ki,useTransition:Ki},_a={readContext:ri,useCallback:da,useContext:ri,useEffect:ia,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oa(4,2,ca.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oa(4,2,e,t)},useMemo:function(e,t){var n=$i();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=$i();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ga.bind(null,qi,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},$i().memoizedState=e},useState:ea,useDebugValue:ua,useResponder:Ui,useDeferredValue:function(e,t){var n=ea(e),o=n[0],r=n[1];return ia((function(){var n=ji.suspense;ji.suspense=void 0===t?null:t;try{r(e)}finally{ji.suspense=n}}),[e,t]),o},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[da(ma.bind(null,t,e),[t,e]),n]}},ba={readContext:ri,useCallback:ha,useContext:ri,useEffect:aa,useImperativeHandle:la,useLayoutEffect:sa,useMemo:pa,useReducer:Ji,useRef:na,useState:function(){return Ji(Xi)},useDebugValue:ua,useResponder:Ui,useDeferredValue:function(e,t){var n=Ji(Xi),o=n[0],r=n[1];return aa((function(){var n=ji.suspense;ji.suspense=void 0===t?null:t;try{r(e)}finally{ji.suspense=n}}),[e,t]),o},useTransition:function(e){var t=Ji(Xi),n=t[0];return t=t[1],[ha(ma.bind(null,t,e),[t,e]),n]}},va={readContext:ri,useCallback:ha,useContext:ri,useEffect:aa,useImperativeHandle:la,useLayoutEffect:sa,useMemo:pa,useReducer:Zi,useRef:na,useState:function(){return Zi(Xi)},useDebugValue:ua,useResponder:Ui,useDeferredValue:function(e,t){var n=Zi(Xi),o=n[0],r=n[1];return aa((function(){var n=ji.suspense;ji.suspense=void 0===t?null:t;try{r(e)}finally{ji.suspense=n}}),[e,t]),o},useTransition:function(e){var t=Zi(Xi),n=t[0];return t=t[1],[ha(ma.bind(null,t,e),[t,e]),n]}},Ea=null,ya=null,Sa=!1;function Ta(e,t){var n=wc(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 wa(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 Ca(e){if(Sa){var t=ya;if(t){var n=t;if(!wa(e,t)){if(!(t=yn(n.nextSibling))||!wa(e,t))return e.effectTag=-1025&e.effectTag|2,Sa=!1,void(Ea=e);Ta(Ea,n)}Ea=e,ya=yn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Sa=!1,Ea=e}}function xa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ea=e}function Oa(e){if(e!==Ea)return!1;if(!Sa)return xa(e),Sa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!bn(t,e.memoizedProps))for(t=ya;t;)Ta(e,t),t=yn(t.nextSibling);if(xa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ya=yn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ya=null}}else ya=Ea?yn(e.stateNode.nextSibling):null;return!0}function ka(){ya=Ea=null,Sa=!1}var Ra=Q.ReactCurrentOwner,Aa=!1;function Ia(e,t,n,o){t.child=null===e?xi(t,null,n,o):Ci(t,e.child,n,o)}function Da(e,t,n,o,r){n=n.render;var i=t.ref;return oi(t,r),o=Yi(e,t,n,o,i,r),null===e||Aa?(t.effectTag|=1,Ia(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ya(e,t,r))}function Na(e,t,n,o,r,i){if(null===e){var a=n.type;return"function"!=typeof a||Cc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Oc(n.type,null,o,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,o,r,i))}return a=e.child,r<i&&(r=a.memoizedProps,(n=null!==(n=n.compare)?n:jo)(r,o)&&e.ref===t.ref)?Ya(e,t,i):(t.effectTag|=1,(e=xc(a,o)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,o,r,i){return null!==e&&jo(e.memoizedProps,o)&&e.ref===t.ref&&(Aa=!1,r<i)?(t.expirationTime=e.expirationTime,Ya(e,t,i)):Pa(e,t,n,o,i)}function Ma(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Pa(e,t,n,o,r){var i=fr(n)?mr:hr.current;return i=gr(t,i),oi(t,r),n=Yi(e,t,n,o,i,r),null===e||Aa?(t.effectTag|=1,Ia(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ya(e,t,r))}function La(e,t,n,o,r){if(fr(n)){var i=!0;Er(t)}else i=!1;if(oi(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),bi(t,n,o),Ei(t,n,o,r),o=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=ri(l):l=gr(t,l=fr(n)?mr:hr.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==o||c!==l)&&vi(t,a,o,l),ii=!1;var h=t.memoizedState;a.state=h,di(t,o,a,r),c=t.memoizedState,s!==o||h!==c||pr.current||ii?("function"==typeof u&&(gi(t,n,u,o),c=t.memoizedState),(s=ii||_i(t,n,s,o,h,c,l))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=c),a.props=o,a.state=c,a.context=l,o=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),o=!1)}else a=t.stateNode,si(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:$r(t.type,s),c=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=ri(l):l=gr(t,l=fr(n)?mr:hr.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==o||c!==l)&&vi(t,a,o,l),ii=!1,c=t.memoizedState,a.state=c,di(t,o,a,r),h=t.memoizedState,s!==o||c!==h||pr.current||ii?("function"==typeof u&&(gi(t,n,u,o),h=t.memoizedState),(u=ii||_i(t,n,s,o,c,h,l))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(o,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(o,h,l)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=o,t.memoizedState=h),a.props=o,a.state=h,a.context=l,o=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),o=!1);return Ua(e,t,n,o,i,r)}function Ua(e,t,n,o,r,i){Ma(e,t);var a=0!=(64&t.effectTag);if(!o&&!a)return r&&yr(t,n,!1),Ya(e,t,i);o=t.stateNode,Ra.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.effectTag|=1,null!==e&&a?(t.child=Ci(t,e.child,null,i),t.child=Ci(t,null,s,i)):Ia(e,t,s,i),t.memoizedState=o.state,r&&yr(t,n,!0),t.child}function Ba(e){var t=e.stateNode;t.pendingContext?br(0,t.pendingContext,t.pendingContext!==t.context):t.context&&br(0,t.context,!1),Di(e,t.containerInfo)}var ja,Ga,qa,Ha={dehydrated:null,retryTime:0};function Va(e,t,n){var o,r=t.mode,i=t.pendingProps,a=Pi.current,s=!1;if((o=0!=(64&t.effectTag))||(o=0!=(2&a)&&(null===e||null!==e.memoizedState)),o?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ur(Pi,1&a),null===e){if(void 0!==i.fallback&&Ca(t),s){if(s=i.fallback,(i=kc(null,r,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=kc(s,r,n,null)).return=t,i.sibling=n,t.memoizedState=Ha,t.child=i,n}return r=i.children,t.memoizedState=null,t.child=xi(t,null,r,n)}if(null!==e.memoizedState){if(r=(e=e.child).sibling,s){if(i=i.fallback,(n=xc(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(r=xc(r,i)).return=t,n.sibling=r,n.childExpirationTime=0,t.memoizedState=Ha,t.child=n,r}return n=Ci(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=i.fallback,(i=kc(null,r,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=kc(s,r,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Ha,t.child=i,n}return t.memoizedState=null,t.child=Ci(t,e,i.children,n)}function za(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ni(e.return,t)}function Ka(e,t,n,o,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailExpiration:0,tailMode:r,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=o,a.tail=n,a.tailExpiration=0,a.tailMode=r,a.lastEffect=i)}function Wa(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(Ia(e,t,o.children,n),0!=(2&(o=Pi.current)))o=1&o|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&&za(e,n);else if(19===e.tag)za(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}o&=1}if(ur(Pi,o),0==(2&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===Li(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Ka(t,!1,r,n,i,t.lastEffect);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Li(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Ka(t,!0,n,null,i,t.lastEffect);break;case"together":Ka(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ya(e,t,n){null!==e&&(t.dependencies=e.dependencies);var o=t.expirationTime;if(0!==o&&ac(o),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=xc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=xc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $a(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 o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Qa(e,t,n){var o=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 fr(t.type)&&_r(),null;case 3:return Ni(),lr(pr),lr(hr),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Oa(t)||(t.effectTag|=4),null;case 5:Mi(t),n=Ii(Ai.current);var i=t.type;if(null!==e&&null!=t.stateNode)Ga(e,t,i,o,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!o){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ii(ki.current),Oa(t)){o=t.stateNode,i=t.type;var s=t.memoizedProps;switch(o[wn]=t,o[Cn]=s,i){case"iframe":case"object":case"embed":Wt("load",o);break;case"video":case"audio":for(e=0;e<Qe.length;e++)Wt(Qe[e],o);break;case"source":Wt("error",o);break;case"img":case"image":case"link":Wt("error",o),Wt("load",o);break;case"form":Wt("reset",o),Wt("submit",o);break;case"details":Wt("toggle",o);break;case"input":Te(o,s),Wt("invalid",o),cn(n,"onChange");break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Wt("invalid",o),cn(n,"onChange");break;case"textarea":Ie(o,s),Wt("invalid",o),cn(n,"onChange")}for(var c in rn(i,s),e=null,s)if(s.hasOwnProperty(c)){var l=s[c];"children"===c?"string"==typeof l?o.textContent!==l&&(e=["children",l]):"number"==typeof l&&o.textContent!==""+l&&(e=["children",""+l]):w.hasOwnProperty(c)&&null!=l&&cn(n,c)}switch(i){case"input":Ee(o),xe(o,s,!0);break;case"textarea":Ee(o),Ne(o);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(o.onclick=ln)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(c=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=Pe(i)),e===sn?"script"===i?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=c.createElement(i,{is:o.is}):(e=c.createElement(i),"select"===i&&(c=e,o.multiple?c.multiple=!0:o.size&&(c.size=o.size))):e=c.createElementNS(e,i),e[wn]=t,e[Cn]=o,ja(e,t),t.stateNode=e,c=an(i,o),i){case"iframe":case"object":case"embed":Wt("load",e),l=o;break;case"video":case"audio":for(l=0;l<Qe.length;l++)Wt(Qe[l],e);l=o;break;case"source":Wt("error",e),l=o;break;case"img":case"image":case"link":Wt("error",e),Wt("load",e),l=o;break;case"form":Wt("reset",e),Wt("submit",e),l=o;break;case"details":Wt("toggle",e),l=o;break;case"input":Te(e,o),l=Se(e,o),Wt("invalid",e),cn(n,"onChange");break;case"option":l=ke(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},l=r({},o,{value:void 0}),Wt("invalid",e),cn(n,"onChange");break;case"textarea":Ie(e,o),l=Ae(e,o),Wt("invalid",e),cn(n,"onChange");break;default:l=o}rn(i,l);var u=l;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?nn(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&Be(e,d):"children"===s?"string"==typeof d?("textarea"!==i||""!==d)&&je(e,d):"number"==typeof d&&je(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(w.hasOwnProperty(s)?null!=d&&cn(n,s):null!=d&&X(e,s,d,c))}switch(i){case"input":Ee(e),xe(e,o,!1);break;case"textarea":Ee(e),Ne(e);break;case"option":null!=o.value&&e.setAttribute("value",""+be(o.value));break;case"select":e.multiple=!!o.multiple,null!=(n=o.value)?Re(e,!!o.multiple,n,!1):null!=o.defaultValue&&Re(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=ln)}_n(i,o)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)qa(0,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(a(166));n=Ii(Ai.current),Ii(ki.current),Oa(t)?(n=t.stateNode,o=t.memoizedProps,n[wn]=t,n.nodeValue!==o&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[wn]=t,t.stateNode=n)}return null;case 13:return lr(Pi),o=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==o,o=!1,null===e?void 0!==t.memoizedProps.fallback&&Oa(t):(o=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!o&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Pi.current)?Os===Es&&(Os=ys):(Os!==Es&&Os!==ys||(Os=Ss),0!==Ds&&null!==ws&&(Nc(ws,xs),Fc(ws,Ds)))),(n||o)&&(t.effectTag|=4),null);case 4:return Ni(),null;case 10:return ti(t),null;case 17:return fr(t.type)&&_r(),null;case 19:if(lr(Pi),null===(o=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(s=o.rendering)){if(i)$a(o,!1);else if(Os!==Es||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Li(s))){for(t.effectTag|=64,$a(o,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===o.lastEffect&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=t.child;null!==o;)s=n,(i=o).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=s,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,s=e.dependencies,i.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),o=o.sibling;return ur(Pi,1&Pi.current|2),t.child}s=s.sibling}}else{if(!i)if(null!==(e=Li(s))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),$a(o,!0),null===o.tail&&"hidden"===o.tailMode&&!s.alternate)return null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null),null}else 2*jr()-o.renderingStartTime>o.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,$a(o,!1),t.expirationTime=t.childExpirationTime=n-1);o.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=o.last)?n.sibling=s:t.child=s,o.last=s)}return null!==o.tail?(0===o.tailExpiration&&(o.tailExpiration=jr()+500),n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=jr(),n.sibling=null,t=Pi.current,ur(Pi,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Xa(e){switch(e.tag){case 1:fr(e.type)&&_r();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ni(),lr(pr),lr(hr),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Mi(e),null;case 13:return lr(Pi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return lr(Pi),null;case 4:return Ni(),null;case 10:return ti(e),null;default:return null}}function Ja(e,t){return{value:e,source:t,stack:_e(t)}}ja=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}},Ga=function(e,t,n,o,i){var a=e.memoizedProps;if(a!==o){var s,c,l=t.stateNode;switch(Ii(ki.current),e=null,n){case"input":a=Se(l,a),o=Se(l,o),e=[];break;case"option":a=ke(l,a),o=ke(l,o),e=[];break;case"select":a=r({},a,{value:void 0}),o=r({},o,{value:void 0}),e=[];break;case"textarea":a=Ae(l,a),o=Ae(l,o),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof o.onClick&&(l.onclick=ln)}for(s in rn(n,o),n=null,a)if(!o.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(c in l=a[s])l.hasOwnProperty(c)&&(n||(n={}),n[c]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(w.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in o){var u=o[s];if(l=null!=a?a[s]:void 0,o.hasOwnProperty(s)&&u!==l&&(null!=u||null!=l))if("style"===s)if(l){for(c in l)!l.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in u)u.hasOwnProperty(c)&&l[c]!==u[c]&&(n||(n={}),n[c]=u[c])}else n||(e||(e=[]),e.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(s,u)):"children"===s?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(w.hasOwnProperty(s)?(null!=u&&cn(i,s),e||l===u||(e=[])):(e=e||[]).push(s,u))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},qa=function(e,t,n,o){n!==o&&(t.effectTag|=4)};var Za="function"==typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,o=t.stack;null===o&&null!==n&&(o=_e(n)),null!==n&&fe(n.type),t=t.value,null!==e&&1===e.tag&&fe(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ts(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){bc(e,t)}else t.current=null}function ns(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,o=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$r(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var o=n.destroy;n.destroy=void 0,void 0!==o&&o()}n=n.next}while(n!==t)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function is(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void rs(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var o=n.elementType===n.type?t.memoizedProps:$r(n.type,t.memoizedProps);e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&hi(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}hi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&_n(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&&Pt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(e,t,n){switch("function"==typeof Sc&&Sc(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var o=e.next;Hr(97<n?97:n,(function(){var e=o;do{var n=e.destroy;if(void 0!==n){var r=t;try{n()}catch(e){bc(r,e)}}e=e.next}while(e!==o)}))}break;case 1:ts(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){bc(e,t)}}(t,n);break;case 5:ts(t);break;case 4:us(e,t,n)}}function ss(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&&ss(t)}function cs(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:{for(var t=e.return;null!==t;){if(cs(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:case 4:t=t.containerInfo,o=!0;break;default:throw Error(a(161))}16&n.effectTag&&(je(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||cs(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}}o?function e(t,n,o){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,n?8===o.nodeType?o.parentNode.insertBefore(t,n):o.insertBefore(t,n):(8===o.nodeType?(n=o.parentNode).insertBefore(t,o):(n=o).appendChild(t),null!==(o=o._reactRootContainer)&&void 0!==o||null!==n.onclick||(n.onclick=ln));else if(4!==r&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,n,t):function e(t,n,o){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,n?o.insertBefore(t,n):o.appendChild(t);else if(4!==r&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,n,t)}function us(e,t,n){for(var o,r,i=t,s=!1;;){if(!s){s=i.return;e:for(;;){if(null===s)throw Error(a(160));switch(o=s.stateNode,s.tag){case 5:r=!1;break e;case 3:case 4:o=o.containerInfo,r=!0;break e}s=s.return}s=!0}if(5===i.tag||6===i.tag){e:for(var c=e,l=i,u=n,d=l;;)if(as(c,d,u),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===l)break e;for(;null===d.sibling;){if(null===d.return||d.return===l)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}r?(c=o,l=i.stateNode,8===c.nodeType?c.parentNode.removeChild(l):c.removeChild(l)):o.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){o=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(as(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&&(s=!1)}i.sibling.return=i.return,i=i.sibling}}function ds(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void os(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps,r=null!==e?e.memoizedProps:o;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Cn]=o,"input"===e&&"radio"===o.type&&null!=o.name&&we(n,o),an(e,r),t=an(e,o),r=0;r<i.length;r+=2){var s=i[r],c=i[r+1];"style"===s?nn(n,c):"dangerouslySetInnerHTML"===s?Be(n,c):"children"===s?je(n,c):X(n,s,c,t)}switch(e){case"input":Ce(n,o);break;case"textarea":De(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,null!=(e=o.value)?Re(n,!!o.multiple,e,!1):t!==!!o.multiple&&(null!=o.defaultValue?Re(n,!!o.multiple,o.defaultValue,!0):Re(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Pt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?o=!1:(o=!0,n=t.child,Fs=jr()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,o?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,r=null!=(r=e.memoizedProps.style)&&r.hasOwnProperty("display")?r.display:null,i.style.display=tn("display",r));else if(6===e.tag)e.stateNode.nodeValue=o?"":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 hs(t);case 19:return void hs(t);case 17:return}throw Error(a(163))}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Za),t.forEach((function(t){var o=Ec.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function ms(e,t,n){(n=ci(n,null)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Ps||(Ps=!0,Ls=o),es(e,t)},n}function gs(e,t,n){(n=ci(n,null)).tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var r=t.value;n.payload=function(){return es(e,t),o(r)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof o&&(null===Us?Us=new Set([this]):Us.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var fs,_s=Math.ceil,bs=Q.ReactCurrentDispatcher,vs=Q.ReactCurrentOwner,Es=0,ys=3,Ss=4,Ts=0,ws=null,Cs=null,xs=0,Os=Es,ks=null,Rs=1073741823,As=1073741823,Is=null,Ds=0,Ns=!1,Fs=0,Ms=null,Ps=!1,Ls=null,Us=null,Bs=!1,js=null,Gs=90,qs=null,Hs=0,Vs=null,zs=0;function Ks(){return 0!=(48&Ts)?1073741821-(jr()/10|0):0!==zs?zs:zs=1073741821-(jr()/10|0)}function Ws(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var o=Gr();if(0==(4&t))return 99===o?1073741823:1073741822;if(0!=(16&Ts))return xs;if(null!==n)e=Yr(e,0|n.timeoutMs||5e3,250);else switch(o){case 99:e=1073741823;break;case 98:e=Yr(e,150,100);break;case 97:case 96:e=Yr(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==ws&&e===xs&&--e,e}function Ys(e,t){if(50<Hs)throw Hs=0,Vs=null,Error(a(185));if(null!==(e=$s(e,t))){var n=Gr();1073741823===t?0!=(8&Ts)&&0==(48&Ts)?Zs(e):(Xs(e),0===Ts&&Kr()):Xs(e),0==(4&Ts)||98!==n&&99!==n||(null===qs?qs=new Map([[e,t]]):(void 0===(n=qs.get(e))||n>t)&&qs.set(e,t))}}function $s(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var o=e.return,r=null;if(null===o&&3===e.tag)r=e.stateNode;else for(;null!==o;){if(n=o.alternate,o.childExpirationTime<t&&(o.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===o.return&&3===o.tag){r=o.stateNode;break}o=o.return}return null!==r&&(ws===r&&(ac(t),Os===Ss&&Nc(r,xs)),Fc(r,t)),r}function Qs(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Dc(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Xs(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=zr(Zs.bind(null,e));else{var t=Qs(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var o=Ks();if(1073741823===t?o=99:1===t||2===t?o=95:o=0>=(o=10*(1073741821-t)-10*(1073741821-o))?99:250>=o?98:5250>=o?97:95,null!==n){var r=e.callbackPriority;if(e.callbackExpirationTime===t&&r>=o)return;n!==Nr&&wr(n)}e.callbackExpirationTime=t,e.callbackPriority=o,t=1073741823===t?zr(Zs.bind(null,e)):Vr(o,Js.bind(null,e),{timeout:10*(1073741821-t)-jr()}),e.callbackNode=t}}}function Js(e,t){if(zs=0,t)return Mc(e,t=Ks()),Xs(e),null;var n=Qs(e);if(0!==n){if(t=e.callbackNode,0!=(48&Ts))throw Error(a(327));if(gc(),e===ws&&n===xs||nc(e,n),null!==Cs){var o=Ts;Ts|=16;for(var r=rc();;)try{cc();break}catch(t){oc(e,t)}if(ei(),Ts=o,bs.current=r,1===Os)throw t=ks,nc(e,n),Nc(e,n),Xs(e),t;if(null===Cs)switch(r=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,o=Os,ws=null,o){case Es:case 1:throw Error(a(345));case 2:Mc(e,2<n?2:n);break;case ys:if(Nc(e,n),n===(o=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=dc(r)),1073741823===Rs&&10<(r=Fs+500-jr())){if(Ns){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,nc(e,n);break}}if(0!==(i=Qs(e))&&i!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}e.timeoutHandle=vn(hc.bind(null,e),r);break}hc(e);break;case Ss:if(Nc(e,n),n===(o=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=dc(r)),Ns&&(0===(r=e.lastPingedTime)||r>=n)){e.lastPingedTime=n,nc(e,n);break}if(0!==(r=Qs(e))&&r!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}if(1073741823!==As?o=10*(1073741821-As)-jr():1073741823===Rs?o=0:(o=10*(1073741821-Rs)-5e3,0>(o=(r=jr())-o)&&(o=0),(n=10*(1073741821-n)-r)<(o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*_s(o/1960))-o)&&(o=n)),10<o){e.timeoutHandle=vn(hc.bind(null,e),o);break}hc(e);break;case 5:if(1073741823!==Rs&&null!==Is){i=Rs;var s=Is;if(0>=(o=0|s.busyMinDurationMs)?o=0:(r=0|s.busyDelayMs,o=(i=jr()-(10*(1073741821-i)-(0|s.timeoutMs||5e3)))<=r?0:r+o-i),10<o){Nc(e,n),e.timeoutHandle=vn(hc.bind(null,e),o);break}}hc(e);break;default:throw Error(a(329))}if(Xs(e),e.callbackNode===t)return Js.bind(null,e)}}return null}function Zs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&Ts))throw Error(a(327));if(gc(),e===ws&&t===xs||nc(e,t),null!==Cs){var n=Ts;Ts|=16;for(var o=rc();;)try{sc();break}catch(t){oc(e,t)}if(ei(),Ts=n,bs.current=o,1===Os)throw n=ks,nc(e,t),Nc(e,t),Xs(e),n;if(null!==Cs)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,ws=null,hc(e),Xs(e)}return null}function ec(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&Kr()}}function tc(e,t){var n=Ts;Ts&=-2,Ts|=8;try{return e(t)}finally{0===(Ts=n)&&Kr()}}function nc(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,En(n)),null!==Cs)for(n=Cs.return;null!==n;){var o=n;switch(o.tag){case 1:null!=(o=o.type.childContextTypes)&&_r();break;case 3:Ni(),lr(pr),lr(hr);break;case 5:Mi(o);break;case 4:Ni();break;case 13:case 19:lr(Pi);break;case 10:ti(o)}n=n.return}ws=e,Cs=xc(e.current,null),xs=t,Os=Es,ks=null,As=Rs=1073741823,Is=null,Ds=0,Ns=!1}function oc(e,t){for(;;){try{if(ei(),Bi.current=fa,zi)for(var n=qi.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}if(Gi=0,Vi=Hi=qi=null,zi=!1,null===Cs||null===Cs.return)return Os=1,ks=t,Cs=null;e:{var r=e,i=Cs.return,a=Cs,s=t;if(t=xs,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s;if(0==(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=0!=(1&Pi.current),d=i;do{var h;if(h=13===d.tag){var p=d.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var m=d.memoizedProps;h=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!u)}}if(h){var g=d.updateQueue;if(null===g){var f=new Set;f.add(c),d.updateQueue=f}else g.add(c);if(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var _=ci(1073741823,null);_.tag=2,li(a,_)}a.expirationTime=1073741823;break e}s=void 0,a=t;var b=r.pingCache;if(null===b?(b=r.pingCache=new ps,s=new Set,b.set(c,s)):void 0===(s=b.get(c))&&(s=new Set,b.set(c,s)),!s.has(a)){s.add(a);var v=vc.bind(null,r,c,a);c.then(v,v)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((fe(a.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."+_e(a))}5!==Os&&(Os=2),s=Ja(s,a),d=i;do{switch(d.tag){case 3:c=s,d.effectTag|=4096,d.expirationTime=t,ui(d,ms(d,c,t));break e;case 1:c=s;var E=d.type,y=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof E.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Us||!Us.has(y)))){d.effectTag|=4096,d.expirationTime=t,ui(d,gs(d,c,t));break e}}d=d.return}while(null!==d)}Cs=uc(Cs)}catch(e){t=e;continue}break}}function rc(){var e=bs.current;return bs.current=fa,null===e?fa:e}function ic(e,t){e<Rs&&2<e&&(Rs=e),null!==t&&e<As&&2<e&&(As=e,Is=t)}function ac(e){e>Ds&&(Ds=e)}function sc(){for(;null!==Cs;)Cs=lc(Cs)}function cc(){for(;null!==Cs&&!Fr();)Cs=lc(Cs)}function lc(e){var t=fs(e.alternate,e,xs);return e.memoizedProps=e.pendingProps,null===t&&(t=uc(e)),vs.current=null,t}function uc(e){Cs=e;do{var t=Cs.alternate;if(e=Cs.return,0==(2048&Cs.effectTag)){if(t=Qa(t,Cs,xs),1===xs||1!==Cs.childExpirationTime){for(var n=0,o=Cs.child;null!==o;){var r=o.expirationTime,i=o.childExpirationTime;r>n&&(n=r),i>n&&(n=i),o=o.sibling}Cs.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Cs.firstEffect),null!==Cs.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Cs.firstEffect),e.lastEffect=Cs.lastEffect),1<Cs.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Cs:e.firstEffect=Cs,e.lastEffect=Cs))}else{if(null!==(t=Xa(Cs)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Cs.sibling))return t;Cs=e}while(null!==Cs);return Os===Es&&(Os=5),null}function dc(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function hc(e){var t=Gr();return Hr(99,pc.bind(null,e,t)),null}function pc(e,t){do{gc()}while(null!==js);if(0!=(48&Ts))throw Error(a(327));var n=e.finishedWork,o=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var r=dc(n);if(e.firstPendingTime=r,o<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:o<=e.firstSuspendedTime&&(e.firstSuspendedTime=o-1),o<=e.lastPingedTime&&(e.lastPingedTime=0),o<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===ws&&(Cs=ws=null,xs=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){var i=Ts;Ts|=32,vs.current=null,gn=Kt;var s=pn();if(mn(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(c=(c=s.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(l&&0!==l.rangeCount){c=l.anchorNode;var u=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{c.nodeType,d.nodeType}catch(e){c=null;break e}var h=0,p=-1,m=-1,g=0,f=0,_=s,b=null;t:for(;;){for(var v;_!==c||0!==u&&3!==_.nodeType||(p=h+u),_!==d||0!==l&&3!==_.nodeType||(m=h+l),3===_.nodeType&&(h+=_.nodeValue.length),null!==(v=_.firstChild);)b=_,_=v;for(;;){if(_===s)break t;if(b===c&&++g===u&&(p=h),b===d&&++f===l&&(m=h),null!==(v=_.nextSibling))break;b=(_=b).parentNode}_=v}c=-1===p||-1===m?null:{start:p,end:m}}else c=null}c=c||{start:0,end:0}}else c=null;fn={activeElementDetached:null,focusedElem:s,selectionRange:c},Kt=!1,Ms=r;do{try{mc()}catch(e){if(null===Ms)throw Error(a(330));bc(Ms,e),Ms=Ms.nextEffect}}while(null!==Ms);Ms=r;do{try{for(s=e,c=t;null!==Ms;){var E=Ms.effectTag;if(16&E&&je(Ms.stateNode,""),128&E){var y=Ms.alternate;if(null!==y){var S=y.ref;null!==S&&("function"==typeof S?S(null):S.current=null)}}switch(1038&E){case 2:ls(Ms),Ms.effectTag&=-3;break;case 6:ls(Ms),Ms.effectTag&=-3,ds(Ms.alternate,Ms);break;case 1024:Ms.effectTag&=-1025;break;case 1028:Ms.effectTag&=-1025,ds(Ms.alternate,Ms);break;case 4:ds(Ms.alternate,Ms);break;case 8:us(s,u=Ms,c),ss(u)}Ms=Ms.nextEffect}}catch(e){if(null===Ms)throw Error(a(330));bc(Ms,e),Ms=Ms.nextEffect}}while(null!==Ms);if(S=fn,y=pn(),E=S.focusedElem,c=S.selectionRange,y!==E&&E&&E.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))))}(E.ownerDocument.documentElement,E)){null!==c&&mn(E)&&(y=c.start,void 0===(S=c.end)&&(S=y),"selectionStart"in E?(E.selectionStart=y,E.selectionEnd=Math.min(S,E.value.length)):(S=(y=E.ownerDocument||document)&&y.defaultView||window).getSelection&&(S=S.getSelection(),u=E.textContent.length,s=Math.min(c.start,u),c=void 0===c.end?s:Math.min(c.end,u),!S.extend&&s>c&&(u=c,c=s,s=u),u=hn(E,s),d=hn(E,c),u&&d&&(1!==S.rangeCount||S.anchorNode!==u.node||S.anchorOffset!==u.offset||S.focusNode!==d.node||S.focusOffset!==d.offset)&&((y=y.createRange()).setStart(u.node,u.offset),S.removeAllRanges(),s>c?(S.addRange(y),S.extend(d.node,d.offset)):(y.setEnd(d.node,d.offset),S.addRange(y))))),y=[];for(S=E;S=S.parentNode;)1===S.nodeType&&y.push({element:S,left:S.scrollLeft,top:S.scrollTop});for("function"==typeof E.focus&&E.focus(),E=0;E<y.length;E++)(S=y[E]).element.scrollLeft=S.left,S.element.scrollTop=S.top}Kt=!!gn,fn=gn=null,e.current=n,Ms=r;do{try{for(E=e;null!==Ms;){var T=Ms.effectTag;if(36&T&&is(E,Ms.alternate,Ms),128&T){y=void 0;var w=Ms.ref;if(null!==w){var C=Ms.stateNode;switch(Ms.tag){case 5:y=C;break;default:y=C}"function"==typeof w?w(y):w.current=y}}Ms=Ms.nextEffect}}catch(e){if(null===Ms)throw Error(a(330));bc(Ms,e),Ms=Ms.nextEffect}}while(null!==Ms);Ms=null,Mr(),Ts=i}else e.current=n;if(Bs)Bs=!1,js=e,Gs=t;else for(Ms=r;null!==Ms;)t=Ms.nextEffect,Ms.nextEffect=null,Ms=t;if(0===(t=e.firstPendingTime)&&(Us=null),1073741823===t?e===Vs?Hs++:(Hs=0,Vs=e):Hs=0,"function"==typeof yc&&yc(n.stateNode,o),Xs(e),Ps)throw Ps=!1,e=Ls,Ls=null,e;return 0!=(8&Ts)||Kr(),null}function mc(){for(;null!==Ms;){var e=Ms.effectTag;0!=(256&e)&&ns(Ms.alternate,Ms),0==(512&e)||Bs||(Bs=!0,Vr(97,(function(){return gc(),null}))),Ms=Ms.nextEffect}}function gc(){if(90!==Gs){var e=97<Gs?97:Gs;return Gs=90,Hr(e,fc)}}function fc(){if(null===js)return!1;var e=js;if(js=null,0!=(48&Ts))throw Error(a(331));var t=Ts;for(Ts|=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:os(5,n),rs(5,n)}}catch(t){if(null===e)throw Error(a(330));bc(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Ts=t,Kr(),!0}function _c(e,t,n){li(e,t=ms(e,t=Ja(n,t),1073741823)),null!==(e=$s(e,1073741823))&&Xs(e)}function bc(e,t){if(3===e.tag)_c(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){_c(n,e,t);break}if(1===n.tag){var o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===Us||!Us.has(o))){li(n,e=gs(n,e=Ja(t,e),1073741823)),null!==(n=$s(n,1073741823))&&Xs(n);break}}n=n.return}}function vc(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),ws===e&&xs===n?Os===Ss||Os===ys&&1073741823===Rs&&jr()-Fs<500?nc(e,xs):Ns=!0:Dc(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Xs(e)))}function Ec(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Ws(t=Ks(),e,null)),null!==(e=$s(e,t))&&Xs(e)}fs=function(e,t,n){var o=t.expirationTime;if(null!==e){var r=t.pendingProps;if(e.memoizedProps!==r||pr.current)Aa=!0;else{if(o<n){switch(Aa=!1,t.tag){case 3:Ba(t),ka();break;case 5:if(Fi(t),4&t.mode&&1!==n&&r.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:fr(t.type)&&Er(t);break;case 4:Di(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value,r=t.type._context,ur(Qr,r._currentValue),r._currentValue=o;break;case 13:if(null!==t.memoizedState)return 0!==(o=t.child.childExpirationTime)&&o>=n?Va(e,t,n):(ur(Pi,1&Pi.current),null!==(t=Ya(e,t,n))?t.sibling:null);ur(Pi,1&Pi.current);break;case 19:if(o=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(o)return Wa(e,t,n);t.effectTag|=64}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null),ur(Pi,Pi.current),!o)return null}return Ya(e,t,n)}Aa=!1}}else Aa=!1;switch(t.expirationTime=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,r=gr(t,hr.current),oi(t,n),r=Yi(null,t,o,e,r,n),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,fr(o)){var i=!0;Er(t)}else i=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,ai(t);var s=o.getDerivedStateFromProps;"function"==typeof s&&gi(t,o,s,e),r.updater=fi,t.stateNode=r,r._reactInternalFiber=t,Ei(t,o,e,n),t=Ua(null,t,o,!0,i,n)}else t.tag=0,Ia(null,t,r,n),t=t.child;return t;case 16:e:{if(r=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)}))}}(r),1!==r._status)throw r._result;switch(r=r._result,t.type=r,i=t.tag=function(e){if("function"==typeof e)return Cc(e)?1:0;if(null!=e){if((e=e.$$typeof)===ce)return 11;if(e===de)return 14}return 2}(r),e=$r(r,e),i){case 0:t=Pa(null,t,r,e,n);break e;case 1:t=La(null,t,r,e,n);break e;case 11:t=Da(null,t,r,e,n);break e;case 14:t=Na(null,t,r,$r(r.type,e),o,n);break e}throw Error(a(306,r,""))}return t;case 0:return o=t.type,r=t.pendingProps,Pa(e,t,o,r=t.elementType===o?r:$r(o,r),n);case 1:return o=t.type,r=t.pendingProps,La(e,t,o,r=t.elementType===o?r:$r(o,r),n);case 3:if(Ba(t),o=t.updateQueue,null===e||null===o)throw Error(a(282));if(o=t.pendingProps,r=null!==(r=t.memoizedState)?r.element:null,si(e,t),di(t,o,null,n),(o=t.memoizedState.element)===r)ka(),t=Ya(e,t,n);else{if((r=t.stateNode.hydrate)&&(ya=yn(t.stateNode.containerInfo.firstChild),Ea=t,r=Sa=!0),r)for(n=xi(t,null,o,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ia(e,t,o,n),ka();t=t.child}return t;case 5:return Fi(t),null===e&&Ca(t),o=t.type,r=t.pendingProps,i=null!==e?e.memoizedProps:null,s=r.children,bn(o,r)?s=null:null!==i&&bn(o,i)&&(t.effectTag|=16),Ma(e,t),4&t.mode&&1!==n&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ia(e,t,s,n),t=t.child),t;case 6:return null===e&&Ca(t),null;case 13:return Va(e,t,n);case 4:return Di(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ci(t,null,o,n):Ia(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,Da(e,t,o,r=t.elementType===o?r:$r(o,r),n);case 7:return Ia(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ia(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,r=t.pendingProps,s=t.memoizedProps,i=r.value;var c=t.type._context;if(ur(Qr,c._currentValue),c._currentValue=i,null!==s)if(c=s.value,0===(i=Uo(c,i)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(c,i):1073741823))){if(s.children===r.children&&!pr.current){t=Ya(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.dependencies;if(null!==l){s=c.child;for(var u=l.firstContext;null!==u;){if(u.context===o&&0!=(u.observedBits&i)){1===c.tag&&((u=ci(n,null)).tag=2,li(c,u)),c.expirationTime<n&&(c.expirationTime=n),null!==(u=c.alternate)&&u.expirationTime<n&&(u.expirationTime=n),ni(c.return,n),l.expirationTime<n&&(l.expirationTime=n);break}u=u.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}Ia(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=(i=t.pendingProps).children,oi(t,n),o=o(r=ri(r,i.unstable_observedBits)),t.effectTag|=1,Ia(e,t,o,n),t.child;case 14:return i=$r(r=t.type,t.pendingProps),Na(e,t,r,i=$r(r.type,i),o,n);case 15:return Fa(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:$r(o,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,fr(o)?(e=!0,Er(t)):e=!1,oi(t,n),bi(t,o,r),Ei(t,o,r,n),Ua(null,t,o,!0,e,n);case 19:return Wa(e,t,n)}throw Error(a(156,t.tag))};var yc=null,Sc=null;function Tc(e,t,n,o){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=o,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function wc(e,t,n,o){return new Tc(e,t,n,o)}function Cc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function xc(e,t){var n=e.alternate;return null===n?((n=wc(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 Oc(e,t,n,o,r,i){var s=2;if(o=e,"function"==typeof e)Cc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return kc(n.children,r,i,t);case se:s=8,r|=7;break;case oe:s=8,r|=1;break;case re:return(e=wc(12,n,t,8|r)).elementType=re,e.type=re,e.expirationTime=i,e;case le:return(e=wc(13,n,t,r)).type=le,e.elementType=le,e.expirationTime=i,e;case ue:return(e=wc(19,n,t,r)).elementType=ue,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:s=10;break e;case ae:s=9;break e;case ce:s=11;break e;case de:s=14;break e;case he:s=16,o=null;break e;case pe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=wc(s,n,t,r)).elementType=e,t.type=o,t.expirationTime=i,t}function kc(e,t,n,o){return(e=wc(7,e,o,t)).expirationTime=n,e}function Rc(e,t,n){return(e=wc(6,e,null,t)).expirationTime=n,e}function Ac(e,t,n){return(t=wc(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ic(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 Dc(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Nc(e,t){var n=e.firstSuspendedTime,o=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(o>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Fc(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 Mc(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Pc(e,t,n,o){var r=t.current,i=Ks(),s=pi.suspense;i=Ws(i,r,s);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(fr(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var l=n.type;if(fr(l)){n=vr(n,l,c);break e}}n=c}else n=dr;return null===t.context?t.context=n:t.pendingContext=n,(t=ci(i,s)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),li(r,t),Ys(r,i),i}function Lc(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Uc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Bc(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}function jc(e,t,n){var o=new Ic(e,t,n=null!=n&&!0===n.hydrate),r=wc(3,null,null,2===t?7:1===t?3:0);o.current=r,r.stateNode=o,ai(r),e[xn]=o.current,n&&0!==t&&function(e,t){var n=Je(t);xt.forEach((function(e){mt(e,t,n)})),Ot.forEach((function(e){mt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=o}function Gc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function qc(e,t,n,o,r){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof r){var s=r;r=function(){var e=Lc(a);s.call(e)}}Pc(t,a,e,r)}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 jc(e,0,t?{hydrate:!0}:void 0)}(n,o),a=i._internalRoot,"function"==typeof r){var c=r;r=function(){var e=Lc(a);c.call(e)}}tc((function(){Pc(t,a,e,r)}))}return Lc(a)}function Hc(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}function Vc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gc(t))throw Error(a(200));return Hc(e,t,null,n)}jc.prototype.render=function(e){Pc(e,this._internalRoot,null,null)},jc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Pc(null,e,null,(function(){t[xn]=null}))},gt=function(e){if(13===e.tag){var t=Yr(Ks(),150,100);Ys(e,t),Bc(e,t)}},ft=function(e){13===e.tag&&(Ys(e,3),Bc(e,3))},_t=function(e){if(13===e.tag){var t=Ks();Ys(e,t=Ws(t,e,null)),Bc(e,t)}},k=function(e,t,n){switch(t){case"input":if(Ce(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 o=n[t];if(o!==e&&o.form===e.form){var r=An(o);if(!r)throw Error(a(90));ye(o),Ce(o,r)}}}break;case"textarea":De(e,n);break;case"select":null!=(t=n.value)&&Re(e,!!n.multiple,t,!1)}},F=ec,M=function(e,t,n,o,r){var i=Ts;Ts|=4;try{return Hr(98,e.bind(null,t,n,o,r))}finally{0===(Ts=i)&&Kr()}},P=function(){0==(49&Ts)&&(function(){if(null!==qs){var e=qs;qs=null,e.forEach((function(e,t){Mc(t,e),Xs(t)})),Kr()}}(),gc())},L=function(e,t){var n=Ts;Ts|=2;try{return e(t)}finally{0===(Ts=n)&&Kr()}};var zc,Kc,Wc={Events:[kn,Rn,An,x,T,Ln,function(e){rt(e,Pn)},D,N,Xt,st,gc,{current:!1}]};Kc=(zc={findFiberByHostInstance:On,bundleType:0,version:"16.13.1",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);yc=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Sc=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(r({},zc,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Kc?Kc(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wc,t.createPortal=Vc,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(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&Ts))throw Error(a(187));var n=Ts;Ts|=1;try{return Hr(99,e.bind(null,t))}finally{Ts=n,Kr()}},t.hydrate=function(e,t,n){if(!Gc(t))throw Error(a(200));return qc(null,e,t,!0,n)},t.render=function(e,t,n){if(!Gc(t))throw Error(a(200));return qc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Gc(e))throw Error(a(40));return!!e._reactRootContainer&&(tc((function(){qc(null,null,e,!1,(function(){e._reactRootContainer=null,e[xn]=null}))})),!0)},t.unstable_batchedUpdates=ec,t.unstable_createPortal=function(e,t){return Vc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!Gc(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return qc(e,t,n,!1,o)},t.version="16.13.1"},function(e,t,n){"use strict";var o=n(522),r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,f="function"==typeof Symbol&&Symbol.iterator;function _(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 b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function E(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||b}function y(){}function S(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||b}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(_(85));this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=E.prototype;var T=S.prototype=new y;T.constructor=S,o(T,E.prototype),T.isPureReactComponent=!0;var w={current:null},C=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,n){var o,r={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,o)&&!x.hasOwnProperty(o)&&(r[o]=t[o]);var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===r[o]&&(r[o]=c[o]);return{$$typeof:i,type:e,key:a,ref:s,props:r,_owner:w.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var R=/\/+/g,A=[];function I(e,t,n,o){if(A.length){var r=A.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=o,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:o,count:0}}function D(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function N(e,t,n){return null==e?0:function e(t,n,o,r){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case i:case a:c=!0}}if(c)return o(r,t,""===n?"."+F(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var u=n+F(s=t[l],l);c+=e(s,u,o,r)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=f&&t[f]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),l=0;!(s=t.next()).done;)c+=e(s=s.value,u=n+F(s,l++),o,r);else if("object"===s)throw o=""+t,Error(_(31,"[object Object]"===o?"object with keys {"+Object.keys(t).join(", ")+"}":o,""));return c}(e,"",t,n)}function F(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 M(e,t){e.func.call(e.context,t,e.count++)}function P(e,t,n){var o=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,o,n,(function(e){return e})):null!=e&&(k(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(R,"$&/")+"/")+n)),o.push(e))}function L(e,t,n,o,r){var i="";null!=n&&(i=(""+n).replace(R,"$&/")+"/"),N(e,P,t=I(t,i,o,r)),D(t)}var U={current:null};function B(){var e=U.current;if(null===e)throw Error(_(321));return e}var j={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:function(e,t,n){if(null==e)return e;var o=[];return L(e,o,null,t,n),o},forEach:function(e,t,n){if(null==e)return e;N(e,M,t=I(null,null,t,n)),D(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return L(e,t,null,(function(e){return e})),t},only:function(e){if(!k(e))throw Error(_(143));return e}},t.Component=E,t.Fragment=s,t.Profiler=l,t.PureComponent=S,t.StrictMode=c,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null==e)throw Error(_(267,e));var r=o({},e.props),a=e.key,s=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,c=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)C.call(t,u)&&!x.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){l=Array(u);for(var d=0;d<u;d++)l[d]=arguments[d+2];r.children=l}return{$$typeof:i,type:e.type,key:a,ref:s,props:r,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:h,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.13.1"},function(e,t,n){"use strict";e.exports=n(809)},function(e,t,n){"use strict";var o,r,i,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,l=null,u=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(u,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},o=function(e){null!==c?setTimeout(o,0,e):(c=e,setTimeout(u,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var h=window.performance,p=window.Date,m=window.setTimeout,g=window.clearTimeout;if("undefined"!=typeof console){var f=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 f&&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 h&&"function"==typeof h.now)t.unstable_now=function(){return h.now()};else{var _=p.now();t.unstable_now=function(){return p.now()-_}}var b=!1,v=null,E=-1,y=5,S=0;a=function(){return t.unstable_now()>=S},s=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"):y=0<e?Math.floor(1e3/e):5};var T=new MessageChannel,w=T.port2;T.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();S=e+y;try{v(!0,e)?w.postMessage(null):(b=!1,v=null)}catch(e){throw w.postMessage(null),e}}else b=!1},o=function(e){v=e,b||(b=!0,w.postMessage(null))},r=function(e,n){E=m((function(){e(t.unstable_now())}),n)},i=function(){g(E),E=-1}}function C(e,t){var n=e.length;e.push(t);e:for(;;){var o=n-1>>>1,r=e[o];if(!(void 0!==r&&0<k(r,t)))break e;e[o]=t,e[n]=r,n=o}}function x(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,r=e.length;o<r;){var i=2*(o+1)-1,a=e[i],s=i+1,c=e[s];if(void 0!==a&&0>k(a,n))void 0!==c&&0>k(c,a)?(e[o]=c,e[s]=n,o=s):(e[o]=a,e[i]=n,o=i);else{if(!(void 0!==c&&0>k(c,n)))break e;e[o]=c,e[s]=n,o=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var R=[],A=[],I=1,D=null,N=3,F=!1,M=!1,P=!1;function L(e){for(var t=x(A);null!==t;){if(null===t.callback)O(A);else{if(!(t.startTime<=e))break;O(A),t.sortIndex=t.expirationTime,C(R,t)}t=x(A)}}function U(e){if(P=!1,L(e),!M)if(null!==x(R))M=!0,o(B);else{var t=x(A);null!==t&&r(U,t.startTime-e)}}function B(e,n){M=!1,P&&(P=!1,i()),F=!0;var o=N;try{for(L(n),D=x(R);null!==D&&(!(D.expirationTime>n)||e&&!a());){var s=D.callback;if(null!==s){D.callback=null,N=D.priorityLevel;var c=s(D.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?D.callback=c:D===x(R)&&O(R),L(n)}else O(R);D=x(R)}if(null!==D)var l=!0;else{var u=x(A);null!==u&&r(U,u.startTime-n),l=!1}return l}finally{D=null,N=o,F=!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 G=s;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(){M||F||(M=!0,o(B))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return x(R)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=G,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?s+c:s,a="number"==typeof a.timeout?a.timeout:j(e)}else a=j(e),c=s;return e={id:I++,callback:n,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>s?(e.sortIndex=c,C(A,e),null===x(R)&&e===x(A)&&(P?i():P=!0,r(U,c-s))):(e.sortIndex=a,C(R,e),M||F||(M=!0,o(B))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=x(R);return n!==D&&null!==D&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<D.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},function(e,t,n){"use strict";var o=n(811),r=n(137).isArray,i=n(137).isDate,a=n(814).sprintf,s=n(6),c=n(815),l=n(817);function u(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)}function d(e){return u(e)&&":"===e[0]}function h(e,t){return t.reduce((function(e,t){return null!==(n=e)&&"[object Object]"===Object.prototype.toString.call(n)&&function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:null;var n}),e)}function p(){s.EventEmitter.apply(this),this._registry={locale:"en",interpolate:!0,fallbackLocales:[],scope:null,translations:{},interpolations:{},normalizedKeys:{},separator:".",keepTrailingDot:!1,keyTransformer:function(e){return e},generateMissingEntry:function(e){return"missing translation: "+e}},this.registerTranslations("en",n(819)),this.setMaxListeners(0)}p.prototype=s.EventEmitter.prototype,p.prototype.constructor=s.EventEmitter,p.prototype.getLocale=function(){return this._registry.locale},p.prototype.setLocale=function(e){var t=this._registry.locale;return t!=e&&(this._registry.locale=e,this.emit("localechange",e,t)),t},p.prototype.getFallbackLocale=function(){return this._registry.fallbackLocales},p.prototype.setFallbackLocale=function(e){var t=this._registry.fallbackLocales;return this._registry.fallbackLocales=[].concat(e||[]),t},p.prototype.getAvailableLocales=function(){return this._registry.availableLocales||Object.keys(this._registry.translations)},p.prototype.setAvailableLocales=function(e){var t=this.getAvailableLocales();return this._registry.availableLocales=e,t},p.prototype.getSeparator=function(){return this._registry.separator},p.prototype.setSeparator=function(e){var t=this._registry.separator;return this._registry.separator=e,t},p.prototype.setInterpolate=function(e){var t=this._registry.interpolate;return this._registry.interpolate=e,t},p.prototype.getInterpolate=function(){return this._registry.interpolate},p.prototype.setKeyTransformer=function(e){var t=this._registry.keyTransformer;return this._registry.keyTransformer=e,t},p.prototype.getKeyTransformer=function(){return this._registry.keyTransformer},p.prototype.setMissingEntryGenerator=function(e){var t=this._registry.generateMissingEntry;return this._registry.generateMissingEntry=e,t},p.prototype.getMissingEntryGenerator=function(){return this._registry.generateMissingEntry},p.prototype.registerTranslations=function(e,t){var n={};return n[e]=t,o(!0,this._registry.translations,n),n},p.prototype.registerInterpolations=function(e){return o(!0,this._registry.interpolations,e)},p.prototype.onLocaleChange=p.prototype.addLocaleChangeListener=function(e){this.addListener("localechange",e)},p.prototype.offLocaleChange=p.prototype.removeLocaleChangeListener=function(e){this.removeListener("localechange",e)},p.prototype.onTranslationNotFound=p.prototype.addTranslationNotFoundListener=function(e){this.addListener("translationnotfound",e)},p.prototype.offTranslationNotFound=p.prototype.removeTranslationNotFoundListener=function(e){this.removeListener("translationnotfound",e)},p.prototype.onError=p.prototype.addErrorListener=function(e){this.addListener("error",e)},p.prototype.offError=p.prototype.removeErrorListener=function(e){this.removeListener("error",e)},p.prototype.translate=function(e,t){if(!r(e)&&!u(e)||!e.length)throw new Error("invalid argument: key");d(e)&&(e=e.substr(1)),e=this._registry.keyTransformer(e,t);var n=(t=o(!0,{},t)).locale||this._registry.locale;delete t.locale;var i=t.scope||this._registry.scope;delete t.scope;var a=t.separator||this._registry.separator;delete t.separator;var s=[].concat(t.fallbackLocale||this._registry.fallbackLocales);delete t.fallbackLocale;var c=this._normalizeKeys(n,i,e,a),l=h(this._registry.translations,c);if(null===l&&(this.emit("translationnotfound",n,e,t.fallback,i),t.fallback&&(l=this._fallback(n,i,e,t.fallback,t))),null===l&&s.length>0&&-1===s.indexOf(n))for(var p=0,m=s.length;p<m;p++){var g=s[p],f=this._normalizeKeys(g,i,e,a);if(l=h(this._registry.translations,f)){n=g;break}}return null===l&&(l=this._registry.generateMissingEntry(c.join(a))),l=this._pluralize(n,l,t.count),!1!==this._registry.interpolate&&!1!==t.interpolate&&(l=this._interpolate(l,t)),l},p.prototype.localize=function(e,t){if(!i(e))throw new Error("invalid argument: object must be a date");var n=(t=o(!0,{},t)).locale||this._registry.locale,r=t.scope||"counterpart",a=t.type||"datetime",s=t.format||"default";return t={locale:n,scope:r,interpolate:!1},s=this.translate(["formats",a,s],o(!0,{},t)),l(e,s,this.translate("names",t))},p.prototype._pluralize=function(e,t,n){if("object"!=typeof t||null===t||"number"!=typeof n)return t;var o=this.translate("pluralize",{locale:e,scope:"counterpart"});return"[object Function]"!==Object.prototype.toString.call(o)?o:o(t,n)},p.prototype.withLocale=function(e,t,n){var o=this._registry.locale;this._registry.locale=e;var r=t.call(n);return this._registry.locale=o,r},p.prototype.withScope=function(e,t,n){var o=this._registry.scope;this._registry.scope=e;var r=t.call(n);return this._registry.scope=o,r},p.prototype.withSeparator=function(e,t,n){var o=this.setSeparator(e),r=t.call(n);return this.setSeparator(o),r},p.prototype._normalizeKeys=function(e,t,n,o){var r=[];return r=(r=(r=r.concat(this._normalizeKey(e,o))).concat(this._normalizeKey(t,o))).concat(this._normalizeKey(n,o))},p.prototype._normalizeKey=function(e,t){return this._registry.normalizedKeys[t]=this._registry.normalizedKeys[t]||{},this._registry.normalizedKeys[t][e]=this._registry.normalizedKeys[t][e]||function(e){if(r(e)){var n=e.map(function(e){return this._normalizeKey(e,t)}.bind(this));return[].concat.apply([],n)}if(null==e)return[];for(var o=e.split(t),i=o.length-1;i>=0;i--)""===o[i]&&(o.splice(i,1),!0===this._registry.keepTrailingDot&&i==o.length&&(o[o.length-1]+=""+t));return o}.bind(this)(e),this._registry.normalizedKeys[t][e]},p.prototype._interpolate=function(e,t){if("string"!=typeof e)return e;try{return a(e,o({},this._registry.interpolations,t))}catch(n){if(!(this.listenerCount("error")>0))throw n;return this.emit("error",n,e,t),null}},p.prototype._resolve=function(e,t,n,r,i){if(!1===(i=i||{}).resolve)return r;var a,s;if(d(r))a=this.translate(r,o({},i,{locale:e,scope:t}));else if("function"==typeof(s=r)||"[object Function]"===Object.prototype.toString.call(s)){var c;i.object?(c=i.object,delete i.object):c=n,a=this._resolve(e,t,n,r(c,i))}else a=r;return/^missing translation:/.test(a)?null:a},p.prototype._fallback=function(e,t,n,o,i){if(i=c(i,"fallback"),r(o)){for(var a=0,s=o.length;a<s;a++){var l=this._resolve(e,t,n,o[a],i);if(l)return l}return null}return this._resolve(e,t,n,o,i)};var m=new p;function g(){return m.translate.apply(m,arguments)}o(g,m,{Instance:p,Translator:p}),e.exports=g},function(e,t,n){"use strict";var o=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},c=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,n=o.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&o.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||o.call(e,t)},l=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!o.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,o,r,i,a,d=arguments[0],h=1,p=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)o=u(d,n),d!==(r=u(t,n))&&(m&&r&&(c(r)||(i=s(r)))?(i?(i=!1,a=o&&s(o)?o:[]):a=o&&c(o)?o:{},l(d,{name:n,newValue:e(m,a,r)})):void 0!==r&&l(d,{name:n,newValue:r}));return d}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){var o;!function(){"use strict";var r={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(e){return s(l(e),arguments)}function a(e,t){return i.apply(null,[e].concat(t||[]))}function s(e,t){var n,o,a,s,c,l,u,d,h,p=1,m=e.length,g="";for(o=0;o<m;o++)if("string"==typeof e[o])g+=e[o];else if("object"==typeof e[o]){if((s=e[o]).keys)for(n=t[p],a=0;a<s.keys.length;a++){if(null==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[a],s.keys[a-1]));n=n[s.keys[a]]}else n=s.param_no?t[s.param_no]:t[p++];if(r.not_type.test(s.type)&&r.not_primitive.test(s.type)&&n instanceof Function&&(n=n()),r.numeric_arg.test(s.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(r.number.test(s.type)&&(d=n>=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}r.json.test(s.type)?g+=n:(!r.number.test(s.type)||d&&!s.sign?h="":(h=d?"+":"-",n=n.toString().replace(r.sign,"")),l=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",u=s.width-(h+n).length,c=s.width&&u>0?l.repeat(u):"",g+=s.align?h+n+c:"0"===l?h+c+n:c+h+n)}return g}var c=Object.create(null);function l(e){if(c[e])return c[e];for(var t,n=e,o=[],i=0;n;){if(null!==(t=r.text.exec(n)))o.push(t[0]);else if(null!==(t=r.modulo.exec(n)))o.push("%");else{if(null===(t=r.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var a=[],s=t[2],l=[];if(null===(l=r.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(l[1]);""!==(s=s.substring(l[0].length));)if(null!==(l=r.key_access.exec(s)))a.push(l[1]);else{if(null===(l=r.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(l[1])}t[2]=a}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");o.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return c[e]=o}t.sprintf=i,t.vsprintf=a,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=a,void 0===(o=function(){return{sprintf:i,vsprintf:a}}.call(t,n,t,e))||(e.exports=o))}()},function(e,t,n){"use strict";var o=Array.prototype,r=o.concat,i=o.slice,a=n(816);e.exports=function(e){var t={},n=r.apply(o,i.call(arguments,1));for(var s in e)-1===a(n,s)&&(t[s]=e[s]);return t}},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var o=0;o<e.length;++o)if(e[o]===t)return o;return-1}},function(e,t,n){"use strict";var o=n(818);function r(e,t,n){"number"==typeof t&&(n=t,t="0"),null===t&&(t="0"),n=n||2;var o=String(e);if(t)for(;o.length<n;)o=t+o;return o}function i(e){var t=e.getHours();return 0===t?t=12:t>12&&(t-=12),t}function a(e,t){t=t||"sunday";var n=e.getDay();"monday"==t&&(0===n?n=6:n--);var o=new Date(e.getFullYear(),0,1),r=((e-o)/864e5+7-n)/7;return Math.floor(r)}e.exports=function e(t,n,s){var c=t.getTime();return s=s||o,n.replace(/%([-_0]?.)/g,(function(n,o){var l=null;if(2==o.length){switch(o[0]){case"-":l="";break;case"_":l=" ";break;case"0":l="0";break;default:return n}o=o[1]}switch(o){case"A":return s.days[t.getDay()];case"a":return s.abbreviated_days[t.getDay()];case"B":return s.months[t.getMonth()];case"b":return s.abbreviated_months[t.getMonth()];case"C":return r(Math.floor(t.getFullYear()/100),l);case"D":return e(t,"%m/%d/%y");case"d":return r(t.getDate(),l);case"e":return t.getDate();case"F":return e(t,"%Y-%m-%d");case"H":return r(t.getHours(),l);case"h":return s.abbreviated_months[t.getMonth()];case"I":return r(i(t),l);case"j":return r(Math.ceil((t.getTime()-new Date(t.getFullYear(),0,1).getTime())/864e5),3);case"k":return r(t.getHours(),null===l?" ":l);case"L":return r(Math.floor(c%1e3),3);case"l":return r(i(t),null===l?" ":l);case"M":return r(t.getMinutes(),l);case"m":return r(t.getMonth()+1,l);case"n":return"\n";case"o":return String(t.getDate())+function(e){var t=e%10,n=e%100;if(n>=11&&n<=13||0===t||t>=4)return"th";switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}}(t.getDate());case"P":return t.getHours()<12?s.am.toLowerCase():s.pm.toLowerCase();case"p":return t.getHours()<12?s.am.toUpperCase():s.pm.toUpperCase();case"R":return e(t,"%H:%M");case"r":return e(t,"%I:%M:%S %p");case"S":return r(t.getSeconds(),l);case"s":return Math.floor(c/1e3);case"T":return e(t,"%H:%M:%S");case"t":return"\t";case"U":return r(a(t,"sunday"),l);case"u":return 0===t.getDay()?7:t.getDay();case"v":return e(t,"%e-%b-%Y");case"W":return r(a(t,"monday"),l);case"w":return t.getDay();case"Y":return t.getFullYear();case"y":var u=String(t.getFullYear());return u.slice(u.length-2);case"Z":var d=t.toString().match(/\((\w+)\)/);return d&&d[1]||"";case"z":var h=t.getTimezoneOffset();return(h>0?"-":"+")+r(Math.round(Math.abs(h/60)),2)+":"+r(h%60,2);default:return o}}))}},function(e,t,n){"use strict";e.exports=n(523)},function(e,t,n){"use strict";e.exports={counterpart:{names:n(523),pluralize:n(820),formats:{date:{default:"%a, %e %b %Y",long:"%A, %B %o, %Y",short:"%b %e"},time:{default:"%H:%M",long:"%H:%M:%S %z",short:"%H:%M"},datetime:{default:"%a, %e %b %Y %H:%M",long:"%A, %B %o, %Y %H:%M:%S %z",short:"%e %b %H:%M"}}}}},function(e,t,n){"use strict";e.exports=function(e,t){var n;return 0===t&&"zero"in e&&(n="zero"),e[n=n||(1===t?"one":"other")]}},function(e,t,n){"use strict";(function(e){class o{constructor(){this.components=null}getComponent(e){if(!e)throw new Error("Invalid component name: "+e);if(null===this.components)throw new Error("Attempted to get a component before a skin has been loaded. This is probably because either: a) Your app has not called sdk.loadSkin(), or b) A component has called getComponent at the root level");const t=(t=>{if(!t)return null;let n=t[e];return n||(n=t["views."+e]),n})(this.components);if(!t)return null;if(!("function"==typeof t||t.render))throw new Error(`Not a valid component: ${e} (type = ${typeof t}).`);return t}load(e){if(null!==this.components)throw new Error("Attempted to load a skin while a skin is already loadedIf you want to change the active skin, call resetSkin first");this.components={};const t=Object.keys(e.components);for(let n=0;n<t.length;++n){const o=e.components[t[n]];this.addComponent(t[n],o)}const o=n(1615);if(!o||!o.components)throw new Error("Invalid react-sdk component index");for(const e in o.components)this.components[e]||(this.components[e]=o.components[e])}addComponent(e,t){let n=e;void 0!==t.replaces&&(n=t.replaces.indexOf(".")>-1?t.replaces:e.substr(0,e.lastIndexOf(".")+1)+t.replaces.split(".").pop()),this.components[n]=t}reset(){this.components=null}}void 0===e.mxSkinner&&(e.mxSkinner=new o),t.a=e.mxSkinner}).call(this,n(5))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var o,r,i,a,s,c=1,l={},u=!1,d=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?o=function(e){t.nextTick((function(){m(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){m(e.data)},o=function(e){i.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,o=function(e){var t=d.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):o=function(e){setTimeout(m,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&m(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),o=function(t){e.postMessage(a+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return l[c]=r,o(c),c++},h.clearImmediate=p}function p(e){delete l[e]}function m(e){if(u)setTimeout(m,0,e);else{var t=l[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(5),n(161))},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}},function(e,t){e.exports="img/feather-customised/check.5745b4e.svg"},function(e,t){e.exports="img/element-desktop-logo.93fc5eb.svg"},function(e,t,n){e.exports.Dispatcher=n(827)},function(e,t,n){"use strict";t.__esModule=!0;var o=n(177),r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}return e.prototype.register=function(e){var t="ID_"+this._lastID++;return this._callbacks[t]=e,t},e.prototype.unregister=function(e){this._callbacks[e]||o(!1),delete this._callbacks[e]},e.prototype.waitFor=function(e){this._isDispatching||o(!1);for(var t=0;t<e.length;t++){var n=e[t];this._isPending[n]?this._isHandled[n]||o(!1):(this._callbacks[n]||o(!1),this._invokeCallback(n))}},e.prototype.dispatch=function(e){this._isDispatching&&o(!1),this._startDispatching(e);try{for(var t in this._callbacks)this._isPending[t]||this._invokeCallback(t)}finally{this._stopDispatching()}},e.prototype.isDispatching=function(){return this._isDispatching},e.prototype._invokeCallback=function(e){this._isPending[e]=!0,this._callbacks[e](this._pendingPayload),this._isHandled[e]=!0},e.prototype._startDispatching=function(e){for(var t in this._callbacks)this._isPending[t]=!1,this._isHandled[t]=!1;this._pendingPayload=e,this._isDispatching=!0},e.prototype._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},e}();e.exports=r},function(e,t,n){(function(e,o){var r;!function(i){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof o&&o;a.global!==a&&a.window!==a&&a.self;var s,c=2147483647,l=/^xn--/,u=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,m=String.fromCharCode;function g(e){throw new RangeError(h[e])}function f(e,t){for(var n=e.length,o=[];n--;)o[n]=t(e[n]);return o}function _(e,t){var n=e.split("@"),o="";return n.length>1&&(o=n[0]+"@",e=n[1]),o+f((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t,n,o=[],r=0,i=e.length;r<i;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<i?56320==(64512&(n=e.charCodeAt(r++)))?o.push(((1023&t)<<10)+(1023&n)+65536):(o.push(t),r--):o.push(t);return o}function v(e){return f(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=m(e)})).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function y(e,t,n){var o=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;o+=36)e=p(e/35);return p(o+36*e/(e+38))}function S(e){var t,n,o,r,i,a,s,l,u,d,h,m=[],f=e.length,_=0,b=128,E=72;for((n=e.lastIndexOf("-"))<0&&(n=0),o=0;o<n;++o)e.charCodeAt(o)>=128&&g("not-basic"),m.push(e.charCodeAt(o));for(r=n>0?n+1:0;r<f;){for(i=_,a=1,s=36;r>=f&&g("invalid-input"),((l=(h=e.charCodeAt(r++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||l>p((c-_)/a))&&g("overflow"),_+=l*a,!(l<(u=s<=E?1:s>=E+26?26:s-E));s+=36)a>p(c/(d=36-u))&&g("overflow"),a*=d;E=y(_-i,t=m.length+1,0==i),p(_/t)>c-b&&g("overflow"),b+=p(_/t),_%=t,m.splice(_++,0,b)}return v(m)}function T(e){var t,n,o,r,i,a,s,l,u,d,h,f,_,v,S,T=[];for(f=(e=b(e)).length,t=128,n=0,i=72,a=0;a<f;++a)(h=e[a])<128&&T.push(m(h));for(o=r=T.length,r&&T.push("-");o<f;){for(s=c,a=0;a<f;++a)(h=e[a])>=t&&h<s&&(s=h);for(s-t>p((c-n)/(_=o+1))&&g("overflow"),n+=(s-t)*_,t=s,a=0;a<f;++a)if((h=e[a])<t&&++n>c&&g("overflow"),h==t){for(l=n,u=36;!(l<(d=u<=i?1:u>=i+26?26:u-i));u+=36)S=l-d,v=36-d,T.push(m(E(d+S%v,0))),l=p(S/v);T.push(m(E(l,0))),i=y(n,_,o==r),n=0,++o}++n,++t}return T.join("")}s={version:"1.4.1",ucs2:{decode:b,encode:v},decode:S,encode:T,toASCII:function(e){return _(e,(function(e){return u.test(e)?"xn--"+T(e):e}))},toUnicode:function(e){return _(e,(function(e){return l.test(e)?S(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)}()}).call(this,n(224)(e),n(5))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var o=n(388),r=n(0),i=n(225),a=n(1),s=n(266);function c(e,t){switch(e){case o.a.IS:return t+s.f+"/terms";case o.a.IM:return t+"/_matrix/integrations/v1/terms";default:throw new Error("Unsupported service type")}}function l(e){a.a(e,["baseUrl","request"]),this.baseUrl=e.baseUrl,this.idBaseUrl=e.idBaseUrl,this.identityServer=e.identityServer;const t={baseUrl:e.baseUrl,idBaseUrl:e.idBaseUrl,accessToken:e.accessToken,request:e.request,prefix:s.h,onlyData:!0,extraParams:e.queryParams,localTimeoutMs:e.localTimeoutMs,useAuthorizationHeader:e.useAuthorizationHeader};this._http=new s.d(this,t),this._txnCtr=0}l.prototype.getHomeserverUrl=function(){return this.baseUrl},l.prototype.getIdentityServerUrl=function(e=!1){return e&&(this.idBaseUrl.startsWith("http://")||this.idBaseUrl.startsWith("https://"))?this.idBaseUrl.split("://")[1]:this.idBaseUrl},l.prototype.setIdentityServerUrl=function(e){this.idBaseUrl=a.g(e),this._http.setIdBaseUrl(this.idBaseUrl)},l.prototype.getAccessToken=function(){return this._http.opts.accessToken||null},l.prototype.isLoggedIn=function(){return void 0!==this._http.opts.accessToken},l.prototype.makeTxnId=function(){return"m"+(new Date).getTime()+"."+this._txnCtr++},l.prototype.isUsernameAvailable=function(e){return this._http.authedRequest(void 0,"GET","/register/available",{username:e}).then(e=>e.available)},l.prototype.register=function(e,t,n,o,r,i,a,s){!0===r?r={email:!0}:null==r&&(r={}),"function"==typeof a&&(s=a,a=void 0),n&&(o.session=n);const c={auth:o};return null!=e&&(c.username=e),null!=t&&(c.password=t),r.email&&(c.bind_email=!0),r.msisdn&&(c.bind_msisdn=!0),null!=i&&(c.guest_access_token=i),null!=a&&(c.inhibit_login=a),null!=t&&(c.x_show_msisdn=!0),this.registerRequest(c,void 0,s)},l.prototype.registerGuest=function(e,t){return(e=e||{}).body=e.body||{},this.registerRequest(e.body,"guest",t)},l.prototype.registerRequest=function(e,t,n){const o={};return t&&(o.kind=t),this._http.request(n,"POST","/register",o,e)},l.prototype.loginFlows=function(e){return this._http.request(e,"GET","/login")},l.prototype.login=function(e,t,n){const o={type:e};return a.i(o,t),this._http.authedRequest((e,t)=>{t&&t.access_token&&t.user_id&&(this._http.opts.accessToken=t.access_token,this.credentials={userId:t.user_id}),n&&n(e,t)},"POST","/login",void 0,o)},l.prototype.loginWithPassword=function(e,t,n){return this.login("m.login.password",{user:e,password:t},n)},l.prototype.loginWithSAML2=function(e,t){return this.login("m.login.saml2",{relay_state:e},t)},l.prototype.getCasLoginUrl=function(e){return this.getSsoLoginUrl(e,"cas")},l.prototype.getSsoLoginUrl=function(e,t,n){void 0===t&&(t="sso");let o=s.h,r="/login/"+t+"/redirect";return n&&(r+="/"+n,o="/_matrix/client/unstable/org.matrix.msc2858"),this._http.getUrl(r,{redirectUrl:e},o)},l.prototype.loginWithToken=function(e,t){return this.login("m.login.token",{token:e},t)},l.prototype.logout=function(e){return this._http.authedRequest(e,"POST","/logout")},l.prototype.deactivateAccount=function(e,t){if("function"==typeof t)throw new Error("deactivateAccount no longer accepts a callback parameter");const n={};return e&&(n.auth=e),void 0!==t&&(n.erase=t),this._http.authedRequest(void 0,"POST","/account/deactivate",void 0,n)},l.prototype.getFallbackAuthUrl=function(e,t){const n=a.f("/auth/$loginType/fallback/web",{$loginType:e});return this._http.getUrl(n,{session:t},s.h)},l.prototype.createRoom=async function(e,t){const n=(e.invite_3pid||[]).filter(e=>!e.id_access_token);if(n.length>0&&this.identityServer&&this.identityServer.getAccessToken&&await this.doesServerAcceptIdentityAccessToken()){const e=await this.identityServer.getAccessToken();if(e)for(const t of n)t.id_access_token=e}return this._http.authedRequest(t,"POST","/createRoom",void 0,e)},l.prototype.fetchRelations=async function(e,t,n,o,r){const i={};r.from&&(i.from=r.from);const c=a.e(i),l=a.f("/rooms/$roomId/relations/$eventId/$relationType/$eventType?"+c,{$roomId:e,$eventId:t,$relationType:n,$eventType:o});return await this._http.authedRequest(void 0,"GET",l,null,null,{prefix:s.i})},l.prototype.roomState=function(e,t){const n=a.f("/rooms/$roomId/state",{$roomId:e});return this._http.authedRequest(t,"GET",n)},l.prototype.fetchRoomEvent=function(e,t,n){const o=a.f("/rooms/$roomId/event/$eventId",{$roomId:e,$eventId:t});return this._http.authedRequest(n,"GET",o)},l.prototype.members=function(e,t,n,o,r){const i={};t&&(i.membership=t),n&&(i.not_membership=n),o&&(i.at=o);const s=a.e(i),c=a.f("/rooms/$roomId/members?"+s,{$roomId:e});return this._http.authedRequest(r,"GET",c)},l.prototype.upgradeRoom=function(e,t){const n=a.f("/rooms/$roomId/upgrade",{$roomId:e});return this._http.authedRequest(void 0,"POST",n,void 0,{new_version:t})},l.prototype.getGroupSummary=function(e){const t=a.f("/groups/$groupId/summary",{$groupId:e});return this._http.authedRequest(void 0,"GET",t)},l.prototype.getGroupProfile=function(e){const t=a.f("/groups/$groupId/profile",{$groupId:e});return this._http.authedRequest(void 0,"GET",t)},l.prototype.setGroupProfile=function(e,t){const n=a.f("/groups/$groupId/profile",{$groupId:e});return this._http.authedRequest(void 0,"POST",n,void 0,t)},l.prototype.setGroupJoinPolicy=function(e,t){const n=a.f("/groups/$groupId/settings/m.join_policy",{$groupId:e});return this._http.authedRequest(void 0,"PUT",n,void 0,{"m.join_policy":t})},l.prototype.getGroupUsers=function(e){const t=a.f("/groups/$groupId/users",{$groupId:e});return this._http.authedRequest(void 0,"GET",t)},l.prototype.getGroupInvitedUsers=function(e){const t=a.f("/groups/$groupId/invited_users",{$groupId:e});return this._http.authedRequest(void 0,"GET",t)},l.prototype.getGroupRooms=function(e){const t=a.f("/groups/$groupId/rooms",{$groupId:e});return this._http.authedRequest(void 0,"GET",t)},l.prototype.inviteUserToGroup=function(e,t){const n=a.f("/groups/$groupId/admin/users/invite/$userId",{$groupId:e,$userId:t});return this._http.authedRequest(void 0,"PUT",n,void 0,{})},l.prototype.removeUserFromGroup=function(e,t){const n=a.f("/groups/$groupId/admin/users/remove/$userId",{$groupId:e,$userId:t});return this._http.authedRequest(void 0,"PUT",n,void 0,{})},l.prototype.addUserToGroupSummary=function(e,t,n){const o=a.f(n?"/groups/$groupId/summary/$roleId/users/$userId":"/groups/$groupId/summary/users/$userId",{$groupId:e,$roleId:n,$userId:t});return this._http.authedRequest(void 0,"PUT",o,void 0,{})},l.prototype.removeUserFromGroupSummary=function(e,t){const n=a.f("/groups/$groupId/summary/users/$userId",{$groupId:e,$userId:t});return this._http.authedRequest(void 0,"DELETE",n,void 0,{})},l.prototype.addRoomToGroupSummary=function(e,t,n){const o=a.f(n?"/groups/$groupId/summary/$categoryId/rooms/$roomId":"/groups/$groupId/summary/rooms/$roomId",{$groupId:e,$categoryId:n,$roomId:t});return this._http.authedRequest(void 0,"PUT",o,void 0,{})},l.prototype.removeRoomFromGroupSummary=function(e,t){const n=a.f("/groups/$groupId/summary/rooms/$roomId",{$groupId:e,$roomId:t});return this._http.authedRequest(void 0,"DELETE",n,void 0,{})},l.prototype.addRoomToGroup=function(e,t,n){void 0===n&&(n=!0);const o=a.f("/groups/$groupId/admin/rooms/$roomId",{$groupId:e,$roomId:t});return this._http.authedRequest(void 0,"PUT",o,void 0,{"m.visibility":{type:n?"public":"private"}})},l.prototype.updateGroupRoomVisibility=function(e,t,n){const o=a.f("/groups/$groupId/admin/rooms/$roomId/config/m.visibility",{$groupId:e,$roomId:t});return this._http.authedRequest(void 0,"PUT",o,void 0,{type:n?"public":"private"})},l.prototype.removeRoomFromGroup=function(e,t){const n=a.f("/groups/$groupId/admin/rooms/$roomId",{$groupId:e,$roomId:t});return this._http.authedRequest(void 0,"DELETE",n,void 0,{})},l.prototype.acceptGroupInvite=function(e,t=null){const n=a.f("/groups/$groupId/self/accept_invite",{$groupId:e});return this._http.authedRequest(void 0,"PUT",n,void 0,t||{})},l.prototype.joinGroup=function(e){const t=a.f("/groups/$groupId/self/join",{$groupId:e});return this._http.authedRequest(void 0,"PUT",t,void 0,{})},l.prototype.leaveGroup=function(e){const t=a.f("/groups/$groupId/self/leave",{$groupId:e});return this._http.authedRequest(void 0,"PUT",t,void 0,{})},l.prototype.getJoinedGroups=function(){const e=a.f("/joined_groups");return this._http.authedRequest(void 0,"GET",e)},l.prototype.createGroup=function(e){const t=a.f("/create_group");return this._http.authedRequest(void 0,"POST",t,void 0,e)},l.prototype.getPublicisedGroups=function(e){const t=a.f("/publicised_groups");return this._http.authedRequest(void 0,"POST",t,void 0,{user_ids:e})},l.prototype.setGroupPublicity=function(e,t){const n=a.f("/groups/$groupId/self/update_publicity",{$groupId:e});return this._http.authedRequest(void 0,"PUT",n,void 0,{publicise:t})},l.prototype.getStateEvent=function(e,t,n,o){const r={$roomId:e,$eventType:t,$stateKey:n};let i=a.f("/rooms/$roomId/state/$eventType",r);return void 0!==n&&(i=a.f(i+"/$stateKey",r)),this._http.authedRequest(o,"GET",i)},l.prototype.sendStateEvent=function(e,t,n,o,r){const i={$roomId:e,$eventType:t,$stateKey:o};let s=a.f("/rooms/$roomId/state/$eventType",i);return void 0!==o&&(s=a.f(s+"/$stateKey",i)),this._http.authedRequest(r,"PUT",s,void 0,n)},l.prototype.roomInitialSync=function(e,t,n){a.q(t)&&(n=t,t=void 0);const o=a.f("/rooms/$roomId/initialSync",{$roomId:e});return t||(t=30),this._http.authedRequest(n,"GET",o,{limit:t})},l.prototype.setRoomReadMarkersHttpRequest=function(e,t,n,o){const r=a.f("/rooms/$roomId/read_markers",{$roomId:e}),i={"m.fully_read":t,"m.read":n,"m.hidden":Boolean(!!o&&o.hidden)};return this._http.authedRequest(void 0,"POST",r,void 0,i)},l.prototype.getJoinedRooms=function(){const e=a.f("/joined_rooms");return this._http.authedRequest(void 0,"GET",e)},l.prototype.getJoinedRoomMembers=function(e){const t=a.f("/rooms/$roomId/joined_members",{$roomId:e});return this._http.authedRequest(void 0,"GET",t)},l.prototype.publicRooms=function(e,t){"function"==typeof e&&(t=e,e={}),void 0===e&&(e={});const n={};return e.server&&(n.server=e.server,delete e.server),0===Object.keys(e).length&&0===Object.keys(n).length?this._http.authedRequest(t,"GET","/publicRooms"):this._http.authedRequest(t,"POST","/publicRooms",n,e)},l.prototype.createAlias=function(e,t,n){const o=a.f("/directory/room/$alias",{$alias:e}),r={room_id:t};return this._http.authedRequest(n,"PUT",o,void 0,r)},l.prototype.deleteAlias=function(e,t){const n=a.f("/directory/room/$alias",{$alias:e});return this._http.authedRequest(t,"DELETE",n,void 0,void 0)},l.prototype.unstableGetLocalAliases=function(e,t){const n=a.f("/rooms/$roomId/aliases",{$roomId:e}),o=s.i+"/org.matrix.msc2432";return this._http.authedRequest(t,"GET",n,null,null,{prefix:o})},l.prototype.getRoomIdForAlias=function(e,t){const n=a.f("/directory/room/$alias",{$alias:e});return this._http.authedRequest(t,"GET",n)},l.prototype.resolveRoomAlias=function(e,t){const n=a.f("/directory/room/$alias",{$alias:e});return this._http.request(t,"GET",n)},l.prototype.getRoomDirectoryVisibility=function(e,t){const n=a.f("/directory/list/room/$roomId",{$roomId:e});return this._http.authedRequest(t,"GET",n)},l.prototype.setRoomDirectoryVisibility=function(e,t,n){const o=a.f("/directory/list/room/$roomId",{$roomId:e});return this._http.authedRequest(n,"PUT",o,void 0,{visibility:t})},l.prototype.setRoomDirectoryVisibilityAppService=function(e,t,n,o){const r=a.f("/directory/list/appservice/$networkId/$roomId",{$networkId:e,$roomId:t});return this._http.authedRequest(o,"PUT",r,void 0,{visibility:n})},l.prototype.searchUserDirectory=function(e){const t={search_term:e.term};return void 0!==e.limit&&(t.limit=e.limit),this._http.authedRequest(void 0,"POST","/user_directory/search",void 0,t)},l.prototype.uploadContent=function(e,t){return this._http.uploadContent(e,t)},l.prototype.cancelUpload=function(e){return this._http.cancelUpload(e)},l.prototype.getCurrentUploads=function(){return this._http.getCurrentUploads()},l.prototype.getProfileInfo=function(e,t,n){a.q(t)&&(n=t,t=void 0);const o=t?a.f("/profile/$userId/$info",{$userId:e,$info:t}):a.f("/profile/$userId",{$userId:e});return this._http.authedRequest(n,"GET",o)},l.prototype.getThreePids=function(e){return this._http.authedRequest(e,"GET","/account/3pid",void 0,void 0)},l.prototype.addThreePid=function(e,t,n){const o={threePidCreds:e,bind:t};return this._http.authedRequest(n,"POST","/account/3pid",null,o)},l.prototype.addThreePidOnly=async function(e){const t=await this.isVersionSupported("r0.6.0")?s.h:s.i;return this._http.authedRequest(void 0,"POST","/account/3pid/add",null,e,{prefix:t})},l.prototype.bindThreePid=async function(e){const t=await this.isVersionSupported("r0.6.0")?s.h:s.i;return this._http.authedRequest(void 0,"POST","/account/3pid/bind",null,e,{prefix:t})},l.prototype.unbindThreePid=async function(e,t){const n={medium:e,address:t,id_server:this.getIdentityServerUrl(!0)},o=await this.isVersionSupported("r0.6.0")?s.h:s.i;return this._http.authedRequest(void 0,"POST","/account/3pid/unbind",null,n,{prefix:o})},l.prototype.deleteThreePid=function(e,t){const n={medium:e,address:t};return this._http.authedRequest(void 0,"POST","/account/3pid/delete",null,n)},l.prototype.setPassword=function(e,t,n){const o={auth:e,new_password:t};return this._http.authedRequest(n,"POST","/account/password",null,o)},l.prototype.getDevices=function(){return this._http.authedRequest(void 0,"GET","/devices",void 0,void 0)},l.prototype.setDeviceDetails=function(e,t){const n=a.f("/devices/$device_id",{$device_id:e});return this._http.authedRequest(void 0,"PUT",n,void 0,t)},l.prototype.deleteDevice=function(e,t){const n=a.f("/devices/$device_id",{$device_id:e}),o={};return t&&(o.auth=t),this._http.authedRequest(void 0,"DELETE",n,void 0,o)},l.prototype.deleteMultipleDevices=function(e,t){const n={devices:e};t&&(n.auth=t);return this._http.authedRequest(void 0,"POST","/delete_devices",void 0,n)},l.prototype.getPushers=function(e){return this._http.authedRequest(e,"GET","/pushers",void 0,void 0)},l.prototype.setPusher=function(e,t){return this._http.authedRequest(t,"POST","/pushers/set",null,e)},l.prototype.getPushRules=function(e){return this._http.authedRequest(e,"GET","/pushrules/").then(e=>i.a.rewriteDefaultRules(e))},l.prototype.addPushRule=function(e,t,n,o,r){const i=a.f("/pushrules/"+e+"/$kind/$ruleId",{$kind:t,$ruleId:n});return this._http.authedRequest(r,"PUT",i,void 0,o)},l.prototype.deletePushRule=function(e,t,n,o){const r=a.f("/pushrules/"+e+"/$kind/$ruleId",{$kind:t,$ruleId:n});return this._http.authedRequest(o,"DELETE",r)},l.prototype.setPushRuleEnabled=function(e,t,n,o,r){const i=a.f("/pushrules/"+e+"/$kind/$ruleId/enabled",{$kind:t,$ruleId:n});return this._http.authedRequest(r,"PUT",i,void 0,{enabled:o})},l.prototype.setPushRuleActions=function(e,t,n,o,r){const i=a.f("/pushrules/"+e+"/$kind/$ruleId/actions",{$kind:t,$ruleId:n});return this._http.authedRequest(r,"PUT",i,void 0,{actions:o})},l.prototype.search=function(e,t){const n={};return e.next_batch&&(n.next_batch=e.next_batch),this._http.authedRequest(t,"POST","/search",n,e.body)},l.prototype.uploadKeysRequest=function(e,t,n){return this._http.authedRequest(n,"POST","/keys/upload",void 0,e)},l.prototype.uploadKeySignatures=function(e){return this._http.authedRequest(void 0,"POST","/keys/signatures/upload",void 0,e,{prefix:s.i})},l.prototype.downloadKeysForUsers=function(e,t){if(a.q(t))throw new Error("downloadKeysForUsers no longer accepts a callback parameter");const n={device_keys:{}};return"token"in(t=t||{})&&(n.token=t.token),e.forEach(e=>{n.device_keys[e]=[]}),this._http.authedRequest(void 0,"POST","/keys/query",void 0,n)},l.prototype.claimOneTimeKeys=function(e,t,n){const o={};void 0===t&&(t="signed_curve25519");for(let n=0;n<e.length;++n){const r=e[n][0],i=e[n][1],a=o[r]||{};o[r]=a,a[i]=t}const r={one_time_keys:o};n&&(r.timeout=n);return this._http.authedRequest(void 0,"POST","/keys/claim",void 0,r)},l.prototype.getKeyChanges=function(e,t){const n={from:e,to:t};return this._http.authedRequest(void 0,"GET","/keys/changes",n,void 0)},l.prototype.uploadDeviceSigningKeys=function(e,t){const n=Object.assign({},t);return e&&Object.assign(n,{auth:e}),this._http.authedRequest(void 0,"POST","/keys/device_signing/upload",void 0,n,{prefix:s.i})},l.prototype.registerWithIdentityServer=function(e){if(!this.idBaseUrl)throw new Error("No Identity Server base URL set");const t=this.idBaseUrl+s.f+"/account/register";return this._http.requestOtherUrl(void 0,"POST",t,null,e)},l.prototype.requestEmailToken=async function(e,t,n,o,r,i){const a={client_secret:t,email:e,send_attempt:n,next_link:o};return await this._http.idServerRequest(r,"POST","/validate/email/requestToken",a,s.f,i)},l.prototype.requestMsisdnToken=async function(e,t,n,o,r,i,a){const c={client_secret:n,country:e,phone_number:t,send_attempt:o,next_link:r};return await this._http.idServerRequest(i,"POST","/validate/msisdn/requestToken",c,s.f,a)},l.prototype.submitMsisdnToken=async function(e,t,n,o){const r={sid:e,client_secret:t,token:n};return await this._http.idServerRequest(void 0,"POST","/validate/msisdn/submitToken",r,s.f,o)},l.prototype.submitMsisdnTokenOtherUrl=function(e,t,n,o){const r={sid:t,client_secret:n,token:o};return this._http.requestOtherUrl(void 0,"POST",e,void 0,r)},l.prototype.getIdentityHashDetails=function(e){return this._http.idServerRequest(void 0,"GET","/hash_details",null,s.f,e)},l.prototype.identityHashedLookup=async function(t,n){const o={},r=await this.getIdentityHashDetails(n);if(!r||!r.lookup_pepper||!r.algorithms)throw new Error("Unsupported identity server: bad response");o.pepper=r.lookup_pepper;const i={};if(r.algorithms.includes("sha256")){const n=new e.Olm.Utility;o.addresses=t.map(e=>{const t=e[0].toLowerCase(),r=e[1].toLowerCase(),a=n.sha256(`${t} ${r} ${o.pepper}`).replace(/\+/g,"-").replace(/\//g,"_");return i[a]=e[0],a}),o.algorithm="sha256"}else{if(!r.algorithms.includes("none"))throw new Error("Unsupported identity server: unknown hash algorithm");o.addresses=t.map(e=>{const t=`${e[0].toLowerCase()} ${e[1].toLowerCase()}`;return i[t]=e[0],t}),o.algorithm="none"}const a=await this._http.idServerRequest(void 0,"POST","/lookup",o,s.f,n);if(!a||!a.mappings)return[];const c=[];for(const e of Object.keys(a.mappings)){const t=a.mappings[e],n=i[e];if(!n)throw new Error("Identity server returned more results than expected");c.push({address:n,mxid:t})}return c},l.prototype.lookupThreePid=async function(e,t,n,o){const r=(await this.identityHashedLookup([[t,e]],o)).find(e=>e.address===t);if(!r)return n&&n(null,{}),{};const i={address:t,medium:e,mxid:r.mxid};return n&&n(null,i),i},l.prototype.bulkLookupThreePids=async function(e,t){const n=await this.identityHashedLookup(e.map(e=>[e[1],e[0]]),t),o=[];for(const t of n){const n=e.find(e=>e[1]===t.address);if(!n)throw new Error("Identity sever returned unexpected results");o.push([n[0],t.address,t.mxid])}return{threepids:o}},l.prototype.getIdentityAccount=function(e){return this._http.idServerRequest(void 0,"GET","/account",void 0,s.f,e)},l.prototype.sendToDevice=function(e,t,n){const o=a.f("/sendToDevice/$eventType/$txnId",{$eventType:e,$txnId:n||this.makeTxnId()}),i={messages:t},s=Object.keys(t).reduce((e,n)=>(e[n]=Object.keys(t[n]),e),{});return r.a.log("PUT "+o,s),this._http.authedRequest(void 0,"PUT",o,void 0,i)},l.prototype.getThirdpartyProtocols=function(){return this._http.authedRequest(void 0,"GET","/thirdparty/protocols",void 0,void 0).then(e=>{if(!e||"object"!=typeof e)throw new Error("/thirdparty/protocols did not return an object: "+e);return e})},l.prototype.getThirdpartyLocation=function(e,t){const n=a.f("/thirdparty/location/$protocol",{$protocol:e});return this._http.authedRequest(void 0,"GET",n,t,void 0)},l.prototype.getThirdpartyUser=function(e,t){const n=a.f("/thirdparty/user/$protocol",{$protocol:e});return this._http.authedRequest(void 0,"GET",n,t,void 0)},l.prototype.getTerms=function(e,t){const n=c(e,t);return this._http.requestOtherUrl(void 0,"GET",n)},l.prototype.agreeToTerms=function(e,t,n,o){const r=c(e,t),i={Authorization:"Bearer "+n};return this._http.requestOtherUrl(void 0,"POST",r,null,{user_accepts:o},{headers:i})},l.prototype.reportEvent=function(e,t,n,o){const r=a.f("/rooms/$roomId/report/$eventId",{$roomId:e,$eventId:t});return this._http.authedRequest(void 0,"POST",r,null,{score:n,reason:o})}}).call(this,n(5))},function(e,t,n){"use strict";var o=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,r=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,a=/\\([\u000b\u0020-\u00ff])/g,s=/([\\"])/g,c=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function l(e){var t=String(e);if(i.test(t))return t;if(t.length>0&&!r.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(s,"\\$1")+'"'}function u(e){this.parameters=Object.create(null),this.type=e}t.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,n=e.type;if(!n||!c.test(n))throw new TypeError("invalid type");var o=n;if(t&&"object"==typeof t)for(var r,a=Object.keys(t).sort(),s=0;s<a.length;s++){if(r=a[s],!i.test(r))throw new TypeError("invalid parameter name");o+="; "+r+"="+l(t[r])}return o},t.parse=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.substr(0,n).trim():t.trim();if(!c.test(r))throw new TypeError("invalid media type");var i=new u(r.toLowerCase());if(-1!==n){var s,l,d;for(o.lastIndex=n;l=o.exec(t);){if(l.index!==n)throw new TypeError("invalid parameter format");n+=l[0].length,s=l[1].toLowerCase(),'"'===(d=l[2])[0]&&(d=d.substr(1,d.length-2).replace(a,"$1")),i.parameters[s]=d}if(n!==t.length)throw new TypeError("invalid parameter format")}return i}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var o=n(0);let r,i=0;const a=[];let s=Date.now;function c(e,t){(t=t||0)<0&&(t=0);const n=Array.prototype.slice.call(arguments,2),o=s()+t,r=i++,c={runAt:o,func:e,params:n,key:r},l=h(a,(function(e){return e.runAt-o}));return a.splice(l,0,c),u(),r}function l(e){if(0===a.length)return;let t;for(t=0;t<a.length;t++){if(a[t].key==e){a.splice(t,1);break}}0===t&&u()}function u(){r&&e.clearTimeout(r);const t=a[0];if(!t)return;const n=s(),o=Math.min(t.runAt-n,1e3);r=e.setTimeout(d,o)}function d(){let t;const n=s(),r=[];for(;;){const e=a[0];if(!e||e.runAt>n)break;t=a.shift(),t.key,r.push(t)}u();for(let n=0;n<r.length;n++){t=r[n];try{t.func.apply(e,t.params)}catch(e){o.a.error("Uncaught exception in callback function",e.stack||e)}}}function h(e,t){let n=0,o=e.length;for(;n<o;){const r=n+o>>1;t(e[r])>0?o=r:n=r+1}return n}}).call(this,n(5))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return m}));var o=n(200),r=n(313),i=n(315),a=n(1),s=n(382),c=n(162),l=n(225),u=n(0),d=n(202);function h(e,t){return"FILTER_SYNC_"+e+(t?"_"+t:"")}function p(...e){u.a.log(...e)}function m(e,t){this.client=e,(t=t||{}).initialSyncLimit=void 0===t.initialSyncLimit?8:t.initialSyncLimit,t.resolveInvitesToProfiles=t.resolveInvitesToProfiles||!1,t.pollTimeout=t.pollTimeout||3e4,t.pendingEventOrdering=t.pendingEventOrdering||"chronological",t.canResetEntireTimeline||(t.canResetEntireTimeline=function(e){return!1}),this.opts=t,this._peekRoomId=null,this._currentSyncRequest=null,this._syncState=null,this._syncStateData=null,this._catchingUp=!1,this._running=!1,this._keepAliveTimer=null,this._connectionReturnedDefer=null,this._notifEvents=[],this._failedSyncCount=0,this._storeIsInvalid=!1,e.getNotifTimelineSet()&&e.reEmitter.reEmit(e.getNotifTimelineSet(),["Room.timeline","Room.timelineReset"])}function g(e,t){const n=new o.a(t);return e.reEmitter.reEmit(n,["User.avatarUrl","User.displayName","User.presence","User.currentlyActive","User.lastPresenceTs"]),n}m.prototype.createRoom=function(e){const t=this.client,{timelineSupport:n,unstableClientRelationAggregation:o}=t,i=new r.a(e,t,t.getUserId(),{lazyLoadMembers:this.opts.lazyLoadMembers,pendingEventOrdering:this.opts.pendingEventOrdering,timelineSupport:n,unstableClientRelationAggregation:o});return t.reEmitter.reEmit(i,["Room.name","Room.timeline","Room.redaction","Room.redactionCancelled","Room.receipt","Room.tags","Room.timelineReset","Room.localEchoUpdated","Room.accountData","Room.myMembership","Room.replaceEvent"]),this._registerStateListeners(i),i},m.prototype.createGroup=function(e){const t=this.client,n=new i.a(e);return t.reEmitter.reEmit(n,["Group.profile","Group.myMembership"]),t.store.storeGroup(n),n},m.prototype._registerStateListeners=function(e){const t=this.client;t.reEmitter.reEmit(e.currentState,["RoomState.events","RoomState.members","RoomState.newMember"]),e.currentState.on("RoomState.newMember",(function(e,n,o){o.user=t.getUser(o.userId),t.reEmitter.reEmit(o,["RoomMember.name","RoomMember.typing","RoomMember.powerLevel","RoomMember.membership"])}))},m.prototype._deregisterStateListeners=function(e){e.currentState.removeAllListeners("RoomState.events"),e.currentState.removeAllListeners("RoomState.members"),e.currentState.removeAllListeners("RoomState.newMember")},m.prototype.syncLeftRooms=function(){const e=this.client,t=this,n=new s.a(this.client.credentials.userId);n.setTimelineLimit(1),n.setIncludeLeaveRooms(!0);const o=this.opts.pollTimeout+8e4,r={timeout:0};return e.getOrCreateFilter(h(e.credentials.userId,"LEFT_ROOMS"),n).then((function(t){return r.filter=t,e._http.authedRequest(void 0,"GET","/sync",r,void 0,o)})).then((function(n){let o=[];n.rooms&&n.rooms.leave&&(o=t._mapSyncResponseToRoomArray(n.rooms.leave));const r=[];return o.forEach((function(n){const o=n.room;if(r.push(o),!n.isBrandNewRoom)return;n.timeline=n.timeline||{};const i=t._mapSyncEventsFormat(n.timeline,o),a=t._mapSyncEventsFormat(n.state,o);o.getLiveTimeline().setPaginationToken(n.timeline.prev_batch,c.a.BACKWARDS),t._processRoomEvents(o,a,i),o.recalculate(),e.store.storeRoom(o),e.emit("Room",o),t._processEventsForNotifs(o,i)})),r}))},m.prototype.peek=function(e){const t=this,n=this.client;return this._peekRoomId=e,this.client.roomInitialSync(e,20).then((function(o){o.messages=o.messages||{},o.messages.chunk=o.messages.chunk||[],o.state=o.state||[];const r=t.createRoom(e),i=a.u(a.c(o.state),n.getEventMapper()),s=a.u(o.state,n.getEventMapper()),c=a.u(o.messages.chunk,n.getEventMapper());return o.presence&&a.p(o.presence)&&o.presence.map(n.getEventMapper()).forEach((function(e){let t=n.store.getUser(e.getContent().user_id);t?t.setPresenceEvent(e):(t=g(n,e.getContent().user_id),t.setPresenceEvent(e),n.store.storeUser(t)),n.emit("event",e)})),o.messages.start&&(r.oldState.paginationToken=o.messages.start),r.oldState.setStateEvents(i),r.currentState.setStateEvents(s),t._resolveInvites(r),r.recalculate(),r.addEventsToTimeline(c.reverse(),!0,r.getLiveTimeline(),o.messages.start),n.store.storeRoom(r),n.emit("Room",r),t._peekPoll(r),r}))},m.prototype.stopPeeking=function(){this._peekRoomId=null},m.prototype._peekPoll=function(e,t){if(this._peekRoomId!==e.roomId)return void p("Stopped peeking in room %s",e.roomId);const n=this;this.client._http.authedRequest(void 0,"GET","/events",{room_id:e.roomId,timeout:3e4,from:t},void 0,5e4).then((function(t){if(n._peekRoomId!==e.roomId)return void p("Stopped peeking in room %s",e.roomId);t.chunk.filter((function(e){return"m.presence"===e.type})).map(n.client.getEventMapper()).forEach((function(e){let t=n.client.store.getUser(e.getContent().user_id);t?t.setPresenceEvent(e):(t=g(n.client,e.getContent().user_id),t.setPresenceEvent(e),n.client.store.storeUser(t)),n.client.emit("event",e)}));const o=t.chunk.filter((function(t){return t.room_id===e.roomId&&t.event_id})).map(n.client.getEventMapper());e.addLiveEvents(o),n._peekPoll(e,t.end)}),(function(o){u.a.error("[%s] Peek poll failed: %s",e.roomId,o),setTimeout((function(){n._peekPoll(e,t)}),3e4)}))},m.prototype.getSyncState=function(){return this._syncState},m.prototype.getSyncStateData=function(){return this._syncStateData},m.prototype.recoverFromSyncStartupError=async function(e,t){await e;const n=this._startKeepAlives();this._updateSyncState("ERROR",{error:t}),await n},m.prototype._wasLazyLoadingToggled=async function(e){e=!!e;let t=!1;if(!await this.client.store.isNewlyCreated()){const n=await this.client.store.getClientOptions();return n&&(t=!!n.lazyLoadMembers),t!==e}return!1},m.prototype._shouldAbortSync=function(e){return"M_UNKNOWN_TOKEN"===e.errcode&&(u.a.warn("Token no longer valid - assuming logout"),this.stop(),!0)},m.prototype.sync=function(){const t=this.client,n=this;this._running=!0,e.window&&(this._onOnlineBound=this._onOnline.bind(this),e.window.addEventListener("online",this._onOnlineBound,!1));let o=Promise.resolve(),r=null;function i(){const e=new s.a(t.credentials.userId);return e.setTimelineLimit(n.opts.initialSyncLimit),e}const a=async()=>{if(p("Checking lazy load status..."),this.opts.lazyLoadMembers&&t.isGuest()&&(this.opts.lazyLoadMembers=!1),this.opts.lazyLoadMembers){p("Checking server lazy load support...");await t.doesServerSupportLazyLoading()?(p("Enabling lazy load on sync filter..."),this.opts.filter||(this.opts.filter=i()),this.opts.filter.setLazyLoadMembers(!0)):(p("LL: lazy loading requested but not supported by server, so disabling"),this.opts.lazyLoadMembers=!1)}p("Checking whether lazy loading has changed in store...");if(await this._wasLazyLoadingToggled(this.opts.lazyLoadMembers)){this._storeIsInvalid=!0;const e=d.b.TOGGLED_LAZY_LOADING,t=new d.b(e,!!this.opts.lazyLoadMembers);return this._updateSyncState("ERROR",{error:t}),void u.a.warn("InvalidStoreError: store is not usable: stopping sync.")}this.opts.lazyLoadMembers&&this.opts.crypto&&this.opts.crypto.enableLazyLoading();try{p("Storing client options..."),await this.client._storeClientOptions(),p("Stored client options")}catch(e){throw u.a.error("Storing client options failed",e),e}!async function e(){let a,s;p("Getting filter..."),a=n.opts.filter?n.opts.filter:i();try{s=await t.getOrCreateFilter(h(t.credentials.userId),a)}catch(t){if(u.a.error("Getting filter failed",t),n._shouldAbortSync(t))return;return p("Waiting for saved sync before retrying filter..."),await n.recoverFromSyncStartupError(o,t),void e()}t.resetNotifTimelineSet(),null===n._currentSyncRequest&&(p("Sending first sync request..."),n._currentSyncRequest=n._doSyncRequest({filterId:s},r));p("Waiting for saved sync before starting sync processing..."),await o,n._sync({filterId:s})}()};t.isGuest()?n._sync({}):(p("Getting saved sync token..."),o=t.store.getSavedSyncToken().then(e=>(p("Got saved sync token"),r=e,p("Getting saved sync..."),t.store.getSavedSync())).then(e=>{if(p("Got reply from saved sync, exists? "+!!e),e)return n._syncFromCache(e)}).catch(e=>{u.a.error("Getting saved sync failed",e)}),async function e(){try{p("Getting push rules...");const e=await t.getPushRules();p("Got push rules"),t.pushRules=e}catch(t){if(u.a.error("Getting push rules failed",t),n._shouldAbortSync(t))return;return p("Waiting for saved sync before retrying push rules..."),await n.recoverFromSyncStartupError(o,t),void e()}a()}())},m.prototype.stop=function(){p("SyncApi.stop"),e.window&&(e.window.removeEventListener("online",this._onOnlineBound,!1),this._onOnlineBound=void 0),this._running=!1,this._currentSyncRequest&&this._currentSyncRequest.abort(),this._keepAliveTimer&&(clearTimeout(this._keepAliveTimer),this._keepAliveTimer=null)},m.prototype.retryImmediately=function(){return!!this._connectionReturnedDefer&&(this._startKeepAlives(0),!0)},m.prototype._syncFromCache=async function(e){p("sync(): not doing HTTP hit, instead returning stored /sync data");const t=e.nextBatch;this.client.store.setSyncToken(t);const n={oldSyncToken:null,nextSyncToken:t,catchingUp:!1,fromCache:!0},o={next_batch:t,rooms:e.roomsData,groups:e.groupsData,account_data:{events:e.accountData}};try{await this._processSyncResponse(n,o)}catch(e){u.a.error("Error processing cached sync",e.stack||e)}this._storeIsInvalid||this._updateSyncState("PREPARED",n)},m.prototype._sync=async function(e){const t=this.client;if(!this._running)return p("Sync no longer running: exiting."),this._connectionReturnedDefer&&(this._connectionReturnedDefer.reject(),this._connectionReturnedDefer=null),void this._updateSyncState("STOPPED");const n=t.store.getSyncToken();let o;try{null===this._currentSyncRequest&&(this._currentSyncRequest=this._doSyncRequest(e,n)),o=await this._currentSyncRequest}catch(t){return void this._onSyncError(t,e)}finally{this._currentSyncRequest=null}t.store.setSyncToken(o.next_batch),this._failedSyncCount=0,await t.store.setSyncData(o);const r={oldSyncToken:n,nextSyncToken:o.next_batch,catchingUp:this._catchingUp};this.opts.crypto&&await this.opts.crypto.onSyncWillProcess(r);try{await this._processSyncResponse(r,o)}catch(e){u.a.error("Caught /sync error",e.stack||e),this.client.emit("sync.unexpectedError",e)}r.catchingUp=this._catchingUp,e.hasSyncedBefore||(this._updateSyncState("PREPARED",r),e.hasSyncedBefore=!0),this.opts.crypto&&await this.opts.crypto.onSyncCompleted(r),this._updateSyncState("SYNCING",r),t.store.wantsSave()&&(this.opts.crypto&&await this.opts.crypto.saveDeviceList(0),t.store.save()),this._sync(e)},m.prototype._doSyncRequest=function(e,t){const n=this._getSyncParams(e,t);return this.client._http.authedRequest(void 0,"GET","/sync",n,void 0,n.timeout+8e4)},m.prototype._getSyncParams=function(e,t){let n=this.opts.pollTimeout;("SYNCING"!==this.getSyncState()||this._catchingUp)&&(this._catchingUp=!0,n=0);let o=e.filterId;this.client.isGuest()&&!o&&(o=this._getGuestFilter());const r={filter:o,timeout:n};return this.opts.disablePresence&&(r.set_presence="offline"),t?r.since=t:r._cacheBuster=Date.now(),"ERROR"!=this.getSyncState()&&"RECONNECTING"!=this.getSyncState()||(r.timeout=0),r},m.prototype._onSyncError=function(e,t){if(!this._running)return p("Sync no longer running: exiting"),this._connectionReturnedDefer&&(this._connectionReturnedDefer.reject(),this._connectionReturnedDefer=null),void this._updateSyncState("STOPPED");u.a.error("/sync error %s",e),u.a.error(e),this._shouldAbortSync(e)||(this._failedSyncCount++,u.a.log("Number of consecutive failed sync requests:",this._failedSyncCount),p("Starting keep-alive"),this._startKeepAlives().then(e=>{e&&"ERROR"===this.getSyncState()&&this._updateSyncState("CATCHUP",{oldSyncToken:null,nextSyncToken:null,catchingUp:!0}),this._sync(t)}),this._currentSyncRequest=null,this._updateSyncState(this._failedSyncCount>=3?"ERROR":"RECONNECTING",{error:e}))},m.prototype._processSyncResponse=async function(e,t){const n=this.client,o=this;if(t.presence&&a.p(t.presence.events)&&t.presence.events.map(n.getEventMapper()).forEach((function(e){let t=n.store.getUser(e.getSender());t?t.setPresenceEvent(e):(t=g(n,e.getSender()),t.setPresenceEvent(e),n.store.storeUser(t)),n.emit("event",e)})),t.account_data&&a.p(t.account_data.events)){const e=t.account_data.events.map(n.getEventMapper()),o=e.reduce((e,t)=>(e[t.getId()]=n.store.getAccountData(t.getType()),e),{});n.store.storeAccountDataEvents(e),e.forEach((function(e){if("m.push_rules"===e.getType()){const t=e.getContent();n.pushRules=l.a.rewriteDefaultRules(t)}const t=o[e.getId()];return n.emit("accountData",e,t),e}))}if(t.to_device&&a.p(t.to_device.events)&&t.to_device.events.length>0){const e=[];t.to_device.events.map(n.getEventMapper()).map(t=>{if("m.key.verification.cancel"===t.getType()){const n=t.getContent().transaction_id;n&&e.push(n)}return t}).forEach((function(t){const o=t.getContent();if("m.room.message"!=t.getType()||"m.bad.encrypted"!=o.msgtype){if("m.key.verification.start"===t.getType()||"m.key.verification.request"===t.getType()){const n=o.transaction_id;e.includes(n)&&t.flagCancelled()}n.emit("toDeviceEvent",t)}else u.a.log("Ignoring undecryptable to-device event from "+t.getSender())}))}else this._catchingUp=!1;t.groups&&(t.groups.invite&&this._processGroupSyncEntry(t.groups.invite,"invite"),t.groups.join&&this._processGroupSyncEntry(t.groups.join,"join"),t.groups.leave&&this._processGroupSyncEntry(t.groups.leave,"leave"));let r=[],i=[],s=[];if(t.rooms&&(t.rooms.invite&&(r=this._mapSyncResponseToRoomArray(t.rooms.invite)),t.rooms.join&&(i=this._mapSyncResponseToRoomArray(t.rooms.join)),t.rooms.leave&&(s=this._mapSyncResponseToRoomArray(t.rooms.leave))),this._notifEvents=[],r.forEach((function(e){const t=e.room,r=o._mapSyncEventsFormat(e.invite_state,t);o._processRoomEvents(t,r),e.isBrandNewRoom&&(t.recalculate(),n.store.storeRoom(t),n.emit("Room",t)),r.forEach((function(e){n.emit("event",e)})),t.updateMyMembership("invite")})),await a.w(i,(async function(t){const r=t.room,i=o._mapSyncEventsFormat(t.state,r),s=o._mapSyncEventsFormat(t.timeline,r),l=o._mapSyncEventsFormat(t.ephemeral),u=o._mapSyncEventsFormat(t.account_data);if(t.unread_notifications){r.setUnreadNotificationCount("total",t.unread_notifications.notification_count);const e=n.isRoomEncrypted(r.roomId);(!e||e&&r.getUnreadNotificationCount("highlight")<=0)&&r.setUnreadNotificationCount("highlight",t.unread_notifications.highlight_count)}if(t.timeline=t.timeline||{},t.isBrandNewRoom)r.getLiveTimeline().setPaginationToken(t.timeline.prev_batch,c.a.BACKWARDS);else if(t.timeline.limited){let i=!0;for(let e=s.length-1;e>=0;e--){const t=s[e].getId();if(r.getTimelineForEvent(t)){p("Already have event "+t+" in limited sync - not resetting"),i=!1,s.splice(0,e);break}}i&&(o._deregisterStateListeners(r),r.resetLiveTimeline(t.timeline.prev_batch,o.opts.canResetEntireTimeline(r.roomId)?null:e.oldSyncToken),n.resetNotifTimelineSet(),o._registerStateListeners(r))}async function d(e){if(n.emit("event",e),e.isState()&&"m.room.encryption"==e.getType()&&o.opts.crypto&&await o.opts.crypto.onCryptoEvent(e),e.isState()&&"im.vector.user_status"===e.getType()){let t=n.store.getUser(e.getStateKey());t?t._unstable_updateStatusMessage(e):(t=g(n,e.getStateKey()),t._unstable_updateStatusMessage(e),n.store.storeUser(t))}}o._processRoomEvents(r,i,s,e.fromCache),t.summary&&r.setSummary(t.summary),r.addEphemeralEvents(l),r.addAccountData(u),r.recalculate(),t.isBrandNewRoom&&(n.store.storeRoom(r),n.emit("Room",r)),o._processEventsForNotifs(r,s),await a.w(i,d),await a.w(s,d),l.forEach((function(e){n.emit("event",e)})),u.forEach((function(e){n.emit("event",e)})),r.updateMyMembership("join")})),s.forEach((function(e){const t=e.room,r=o._mapSyncEventsFormat(e.state,t),i=o._mapSyncEventsFormat(e.timeline,t),a=o._mapSyncEventsFormat(e.account_data);o._processRoomEvents(t,r,i),t.addAccountData(a),t.recalculate(),e.isBrandNewRoom&&(n.store.storeRoom(t),n.emit("Room",t)),o._processEventsForNotifs(t,i),r.forEach((function(e){n.emit("event",e)})),i.forEach((function(e){n.emit("event",e)})),a.forEach((function(e){n.emit("event",e)})),t.updateMyMembership("leave")})),e.oldSyncToken&&this._notifEvents.length&&(this._notifEvents.sort((function(e,t){return e.getTs()-t.getTs()})),this._notifEvents.forEach((function(e){n.getNotifTimelineSet().addLiveEvent(e)}))),t.device_lists&&this.opts.crypto&&await this.opts.crypto.handleDeviceListChanges(e,t.device_lists),this.opts.crypto&&t.device_one_time_keys_count){const e=t.device_one_time_keys_count.signed_curve25519||0;this.opts.crypto.updateOneTimeKeyCount(e)}if(this.opts.crypto&&t["org.matrix.msc2732.device_unused_fallback_key_types"]){const e=t["org.matrix.msc2732.device_unused_fallback_key_types"];this.opts.crypto.setNeedsNewFallback(e instanceof Array&&!e.includes("signed_curve25519"))}},m.prototype._startKeepAlives=function(e){void 0===e&&(e=2e3+Math.floor(5e3*Math.random())),null!==this._keepAliveTimer&&clearTimeout(this._keepAliveTimer);const t=this;return e>0?t._keepAliveTimer=setTimeout(t._pokeKeepAlive.bind(t),e):t._pokeKeepAlive(),this._connectionReturnedDefer||(this._connectionReturnedDefer=a.d()),this._connectionReturnedDefer.promise},m.prototype._pokeKeepAlive=function(e){void 0===e&&(e=!1);const t=this;function n(){clearTimeout(t._keepAliveTimer),t._connectionReturnedDefer&&(t._connectionReturnedDefer.resolve(e),t._connectionReturnedDefer=null)}this.client._http.request(void 0,"GET","/_matrix/client/versions",void 0,void 0,{prefix:"",localTimeoutMs:15e3}).then((function(){n()}),(function(o){400==o.httpStatus||404==o.httpStatus?t._keepAliveTimer=setTimeout(n,2e3):(e=!0,t._keepAliveTimer=setTimeout(t._pokeKeepAlive.bind(t,e),5e3+Math.floor(5e3*Math.random())),t._updateSyncState("ERROR",{error:o}))}))},m.prototype._processGroupSyncEntry=function(e,t){for(const n of Object.keys(e)){const o=e[n];let r=this.client.store.getGroup(n);const i=null===r;null===r&&(r=this.createGroup(n)),o.profile&&r.setProfile(o.profile.name,o.profile.avatar_url),o.inviter&&r.setInviter({userId:o.inviter}),r.setMyMembership(t),i&&this.client.emit("Group",r)}},m.prototype._mapSyncResponseToRoomArray=function(e){const t=this.client,n=this;return a.t(e).map((function(o){const r=e[o];let i=t.store.getRoom(o),a=!1;return i||(i=n.createRoom(o),a=!0),r.room=i,r.isBrandNewRoom=a,r}))},m.prototype._mapSyncEventsFormat=function(e,t){if(!e||!a.p(e.events))return[];const n=this.client.getEventMapper();return e.events.map((function(e){return t&&(e.room_id=t.roomId),n(e)}))},m.prototype._resolveInvites=function(e){if(!e||!this.opts.resolveInvitesToProfiles)return;const t=this.client;e.getMembersWithMembership("invite").forEach((function(n){if(n._requestedProfileInfo)return;n._requestedProfileInfo=!0;const o=t.getUser(n.userId);let r;r=o?Promise.resolve({avatar_url:o.avatarUrl,displayname:o.displayName}):t.getProfileInfo(n.userId),r.then((function(t){const o=n.events.member;"invite"===o.getContent().membership&&(o.getContent().avatar_url=t.avatar_url,o.getContent().displayname=t.displayname,n.setMembershipEvent(o,e.currentState))}),(function(e){}))}))},m.prototype._processRoomEvents=function(e,t,n,o){const r=e.getLiveTimeline(),i=0==r.getEvents().length;if(i){for(const e of t)this.client.getPushActionsForEvent(e);r.initialiseState(t)}this._resolveInvites(e),e.recalculate(),i||(e.oldState.setStateEvents(t||[]),e.currentState.setStateEvents(t||[])),e.addLiveEvents(n||[],null,o)},m.prototype._processEventsForNotifs=function(e,t){if(this.client.getNotifTimelineSet())for(let e=0;e<t.length;e++){const n=this.client.getPushActionsForEvent(t[e]);n&&n.notify&&n.tweaks&&n.tweaks.highlight&&this._notifEvents.push(t[e])}},m.prototype._getGuestFilter=function(){return this.client._guestRooms?JSON.stringify({room:{timeline:{limit:20}}}):"{}"},m.prototype._updateSyncState=function(e,t){const n=this._syncState;this._syncState=e,this._syncStateData=t,this.client.emit("sync",this._syncState,n,t)},m.prototype._onOnline=function(){p("Browser thinks we are back online"),this._startKeepAlives(0)}}).call(this,n(5))},function(e,t,n){"use strict";function o(){this.fromToken=null}n.d(t,"a",(function(){return o})),o.prototype={isNewlyCreated:function(){return Promise.resolve(!0)},getSyncToken:function(){return this.fromToken},setSyncToken:function(e){this.fromToken=e},storeGroup:function(e){},getGroup:function(e){return null},getGroups:function(){return[]},storeRoom:function(e){},getRoom:function(e){return null},getRooms:function(){return[]},removeRoom:function(e){},getRoomSummaries:function(){return[]},storeUser:function(e){},getUser:function(e){return null},getUsers:function(){return[]},scrollback:function(e,t){return[]},storeEvents:function(e,t,n,o){},storeFilter:function(e){},getFilter:function(e,t){return null},getFilterIdByName:function(e){return null},setFilterIdByName:function(e,t){},storeAccountDataEvents:function(e){},getAccountData:function(e){},setSyncData:function(e){return Promise.resolve()},wantsSave:function(){return!1},save:function(){},startup:function(){return Promise.resolve()},getSavedSync:function(){return Promise.resolve(null)},getSavedSyncToken:function(){return Promise.resolve(null)},deleteAllData:function(){return Promise.resolve()},getOutOfBandMembers:function(){return Promise.resolve(null)},setOutOfBandMembers:function(){return Promise.resolve()},clearOutOfBandMembers:function(){return Promise.resolve()},getClientOptions:function(){return Promise.resolve()},storeClientOptions:function(){return Promise.resolve()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(201),r=n.n(o),i=n(0),a=n(119),s=n(164);class c{constructor(e){r()(this,"client",void 0),r()(this,"calls",void 0),r()(this,"callEventBuffer",void 0),r()(this,"candidateEventsByCall",void 0),r()(this,"evaluateEventBuffer",()=>{if("SYNCING"===this.client.getSyncState()){if(this.callEventBuffer.some(e=>e.isBeingDecrypted()))return;const e=new Set;for(const t of this.callEventBuffer)t.getType()!==s.a.CallAnswer&&t.getType()!==s.a.CallHangup||e.add(t.getContent().call_id);for(const t of this.callEventBuffer)if(t.getType()!==s.a.CallInvite||!e.has(t.getContent().call_id))try{this.handleCallEvent(t)}catch(e){i.a.error("Caught exception handling call event",e)}this.callEventBuffer=[]}}),r()(this,"onEvent",e=>{(0===e.getType().indexOf("m.call.")||e.isBeingDecrypted())&&this.callEventBuffer.push(e),(e.isBeingDecrypted()||e.isDecryptionFailure())&&e.once("Event.decrypted",()=>{if(-1!==e.getType().indexOf("m.call."))if(this.callEventBuffer.includes(e))this.evaluateEventBuffer();else try{this.handleCallEvent(e)}catch(e){i.a.error("Caught exception handling call event",e)}})}),this.client=e,this.calls=new Map,this.callEventBuffer=[],this.candidateEventsByCall=new Map,this.client.on("sync",this.evaluateEventBuffer),this.client.on("event",this.onEvent)}stop(){this.client.removeListener("sync",this.evaluateEventBuffer),this.client.removeListener("event",this.onEvent)}handleCallEvent(e){const t=e.getContent();let n=t.call_id?this.calls.get(t.call_id):void 0;if(e.getType()===s.a.CallInvite){if(e.getSender()===this.client.credentials.userId)return;if(e.getLocalAge()>t.lifetime-3e3)return;if(n&&n.state===a.e.Ended)return;if(n&&i.a.log(`WARN: Already have a MatrixCall with id ${t.call_id} but got an invite. Clobbering.`),n=Object(a.g)(this.client,e.getRoomId(),{forceTURN:this.client._forceTURN}),!n)return void i.a.log("Incoming call ID "+t.call_id+" but this client doesn't support WebRTC");if(n.callId=t.call_id,n.initWithInvite(e),this.calls.set(n.callId,n),this.candidateEventsByCall.get(n.callId))for(const e of this.candidateEventsByCall.get(n.callId))n.onRemoteIceCandidatesReceived(e);let o;for(const e of this.calls.values()){const t=[a.e.WaitLocalMedia,a.e.CreateOffer,a.e.InviteSent].includes(e.state);if(n.roomId===e.roomId&&e.direction===a.a.Outbound&&t){o=e;break}}o?o.state===a.e.WaitLocalMedia||o.state===a.e.CreateOffer||o.callId>n.callId?(i.a.log("Glare detected: answering incoming call "+n.callId+" and canceling outgoing call "+o.callId),o.replacedBy(n),n.answer()):(i.a.log("Glare detected: rejecting incoming call "+n.callId+" and keeping outgoing call "+o.callId),n.hangup(a.b.Replaced,!0)):this.client.emit("Call.incoming",n)}else if(e.getType()===s.a.CallAnswer){if(!n)return;e.getSender()===this.client.credentials.userId?n.state===a.e.Ringing&&n.onAnsweredElsewhere(t):n.onAnswerReceived(e)}else if(e.getType()===s.a.CallCandidates){if(e.getSender()===this.client.credentials.userId)return;n?n.onRemoteIceCandidatesReceived(e):(this.candidateEventsByCall.has(t.call_id)||this.candidateEventsByCall.set(t.call_id,[]),this.candidateEventsByCall.get(t.call_id).push(e))}else if([s.a.CallHangup,s.a.CallReject].includes(e.getType()))n?n.state!==a.e.Ended&&(e.getType()===s.a.CallHangup?n.onHangupReceived(t):n.onRejectReceived(t),this.calls.delete(t.call_id)):(n=Object(a.g)(this.client,e.getRoomId()),n&&(n.callId=t.call_id,n.initWithHangup(e),this.calls.set(t.call_id,n)));else if(e.getType()===s.a.CallSelectAnswer){if(!n)return;if(e.getContent().party_id===n.ourPartyId)return;n.onSelectAnswerReceived(e)}else if(e.getType()===s.a.CallNegotiate){if(!n)return;if(e.getContent().party_id===n.ourPartyId)return;n.onNegotiateReceived(e)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(165);class r{constructor(e){this._cryptoStore=e,this._roomEncryption={}}async init(){await this._cryptoStore.doTxn("readwrite",[o.a.STORE_ROOMS],e=>{this._cryptoStore.getEndToEndRooms(e,e=>{this._roomEncryption=e})})}getRoomEncryption(e){return this._roomEncryption[e]||null}isRoomEncrypted(e){return Boolean(this.getRoomEncryption(e))}async setRoomEncryption(e,t){this._roomEncryption[e]=t,await this._cryptoStore.doTxn("readwrite",[o.a.STORE_ROOMS],n=>{this._cryptoStore.storeEndToEndRoom(e,t,n)})}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s}));var o=n(0),r=n(1);const i=9;class a{constructor(e){this._db=e,e.onversionchange=t=>{o.a.log(`versionchange for indexeddb ${this._dbName}: closing`),e.close()}}getOrAddOutgoingRoomKeyRequest(e){const t=e.requestBody;return new Promise((n,r)=>{const i=this._db.transaction("outgoingRoomKeyRequests","readwrite");i.onerror=r,this._getOutgoingRoomKeyRequest(i,t,r=>{if(r)return o.a.log(`already have key request outstanding for ${t.room_id} / ${t.session_id}: not sending another`),void n(r);o.a.log(`enqueueing key request for ${t.room_id} / `+t.session_id),i.oncomplete=()=>{n(e)};i.objectStore("outgoingRoomKeyRequests").add(e)})})}getOutgoingRoomKeyRequest(e){return new Promise((t,n)=>{const o=this._db.transaction("outgoingRoomKeyRequests","readonly");o.onerror=n,this._getOutgoingRoomKeyRequest(o,e,e=>{t(e)})})}_getOutgoingRoomKeyRequest(e,t,n){e.objectStore("outgoingRoomKeyRequests").index("session").openCursor([t.room_id,t.session_id]).onsuccess=e=>{const o=e.target.result;if(!o)return void n(null);const i=o.value;r.b(i.requestBody,t)?n(i):o.continue()}}getOutgoingRoomKeyRequestByState(e){if(0===e.length)return Promise.resolve(null);let t,n=0;const o=this._db.transaction("outgoingRoomKeyRequests","readonly"),r=o.objectStore("outgoingRoomKeyRequests"),i=e[n];return r.index("state").openCursor(i).onsuccess=function o(r){const i=r.target.result;if(i)return void(t=i.value);if(n++,n>=e.length)return;const a=e[n];r.target.source.openCursor(a).onsuccess=o},l(o).then(()=>t)}getAllOutgoingRoomKeyRequestsByState(e){return new Promise((t,n)=>{const o=this._db.transaction("outgoingRoomKeyRequests","readonly").objectStore("outgoingRoomKeyRequests").index("state").getAll(e);o.onsuccess=e=>t(e.target.result),o.onerror=e=>n(e.target.error)})}getOutgoingRoomKeyRequestsByTarget(e,t,n){let o=0;const r=[];const i=this._db.transaction("outgoingRoomKeyRequests","readonly"),a=i.objectStore("outgoingRoomKeyRequests"),s=n[o];return a.index("state").openCursor(s).onsuccess=function i(a){const s=a.target.result;if(s){const n=s.value;n.recipients.includes({userId:e,deviceId:t})&&r.push(n),s.continue()}else{if(o++,o>=n.length)return;const e=n[o];a.target.source.openCursor(e).onsuccess=i}},l(i).then(()=>r)}updateOutgoingRoomKeyRequest(e,t,n){let r=null;const i=this._db.transaction("outgoingRoomKeyRequests","readwrite");return i.objectStore("outgoingRoomKeyRequests").openCursor(e).onsuccess=function(e){const i=e.target.result;if(!i)return;const a=i.value;a.state==t?(Object.assign(a,n),i.update(a),r=a):o.a.warn(`Cannot update room key request from ${t} as it was already updated to `+a.state)},l(i).then(()=>r)}deleteOutgoingRoomKeyRequest(e,t){const n=this._db.transaction("outgoingRoomKeyRequests","readwrite");return n.objectStore("outgoingRoomKeyRequests").openCursor(e).onsuccess=e=>{const n=e.target.result;if(!n)return;const r=n.value;r.state==t?n.delete():o.a.warn(`Cannot delete room key request in state ${r.state} (expected ${t})`)},l(n)}getAccount(e,t){const n=e.objectStore("account").get("-");n.onsuccess=function(){try{t(n.result||null)}catch(t){c(e,t)}}}storeAccount(e,t){e.objectStore("account").put(t,"-")}getCrossSigningKeys(e,t){const n=e.objectStore("account").get("crossSigningKeys");n.onsuccess=function(){try{t(n.result||null)}catch(t){c(e,t)}}}getSecretStorePrivateKey(e,t,n){const o=e.objectStore("account").get("ssss_cache:"+n);o.onsuccess=function(){try{t(o.result||null)}catch(t){c(e,t)}}}storeCrossSigningKeys(e,t){e.objectStore("account").put(t,"crossSigningKeys")}storeSecretStorePrivateKey(e,t,n){e.objectStore("account").put(n,"ssss_cache:"+t)}countEndToEndSessions(e,t){const n=e.objectStore("sessions").count();n.onsuccess=function(){try{t(n.result)}catch(t){c(e,t)}}}getEndToEndSessions(e,t,n){const o=t.objectStore("sessions").index("deviceKey").openCursor(e),r={};o.onsuccess=function(){const e=o.result;if(e)r[e.value.sessionId]={session:e.value.session,lastReceivedMessageTs:e.value.lastReceivedMessageTs},e.continue();else try{n(r)}catch(e){c(t,e)}}}getEndToEndSession(e,t,n,o){const r=n.objectStore("sessions").get([e,t]);r.onsuccess=function(){try{r.result?o({session:r.result.session,lastReceivedMessageTs:r.result.lastReceivedMessageTs}):o(null)}catch(e){c(n,e)}}}getAllEndToEndSessions(e,t){const n=e.objectStore("sessions").openCursor();n.onsuccess=function(){try{const e=n.result;e?(t(e.value),e.continue()):t(null)}catch(t){c(e,t)}}}storeEndToEndSession(e,t,n,o){o.objectStore("sessions").put({deviceKey:e,sessionId:t,session:n.session,lastReceivedMessageTs:n.lastReceivedMessageTs})}async storeEndToEndSessionProblem(e,t,n){const o=this._db.transaction("session_problems","readwrite");return o.objectStore("session_problems").put({deviceKey:e,type:t,fixed:n,time:Date.now()}),l(o)}async getEndToEndSessionProblem(e,t){let n;const o=this._db.transaction("session_problems","readwrite"),r=o.objectStore("session_problems").index("deviceKey").getAll(e);return r.onsuccess=e=>{const o=r.result;if(!o.length)return void(n=null);o.sort((e,t)=>e.time-t.time);const i=o[o.length-1];for(const e of o)if(e.time>t)return void(n=Object.assign({},e,{fixed:i.fixed}));n=i.fixed?null:i},await l(o),n}async filterOutNotifiedErrorDevices(e){const t=this._db.transaction("notified_error_devices","readwrite").objectStore("notified_error_devices"),n=[];return await Promise.all(e.map(e=>new Promise(o=>{const{userId:r,deviceInfo:i}=e,a=t.get([r,i.deviceId]);a.onsuccess=function(){a.result||(t.put({userId:r,deviceId:i.deviceId}),n.push(e)),o()}}))),n}getEndToEndInboundGroupSession(e,t,n,o){let r=!1,i=!1;const a=n.objectStore("inbound_group_sessions").get([e,t]);a.onsuccess=function(){try{r=a.result?a.result.session:null,!1!==i&&o(r,i)}catch(e){c(n,e)}};const s=n.objectStore("inbound_group_sessions_withheld").get([e,t]);s.onsuccess=function(){try{i=s.result?s.result.session:null,!1!==r&&o(r,i)}catch(e){c(n,e)}}}getAllEndToEndInboundGroupSessions(e,t){const n=e.objectStore("inbound_group_sessions").openCursor();n.onsuccess=function(){const o=n.result;if(o){try{t({senderKey:o.value.senderCurve25519Key,sessionId:o.value.sessionId,sessionData:o.value.session})}catch(t){c(e,t)}o.continue()}else try{t(null)}catch(t){c(e,t)}}}addEndToEndInboundGroupSession(e,t,n,r){const i=r.objectStore("inbound_group_sessions").add({senderCurve25519Key:e,sessionId:t,session:n});i.onerror=n=>{"ConstraintError"===i.error.name?(n.stopPropagation(),n.preventDefault(),o.a.log("Ignoring duplicate inbound group session: "+e+" / "+t)):c(r,new Error("Failed to add inbound group session: "+i.error))}}storeEndToEndInboundGroupSession(e,t,n,o){o.objectStore("inbound_group_sessions").put({senderCurve25519Key:e,sessionId:t,session:n})}storeEndToEndInboundGroupSessionWithheld(e,t,n,o){o.objectStore("inbound_group_sessions_withheld").put({senderCurve25519Key:e,sessionId:t,session:n})}getEndToEndDeviceData(e,t){const n=e.objectStore("device_data").get("-");n.onsuccess=function(){try{t(n.result||null)}catch(t){c(e,t)}}}storeEndToEndDeviceData(e,t){t.objectStore("device_data").put(e,"-")}storeEndToEndRoom(e,t,n){n.objectStore("rooms").put(t,e)}getEndToEndRooms(e,t){const n={},o=e.objectStore("rooms").openCursor();o.onsuccess=function(){const r=o.result;if(r)n[r.key]=r.value,r.continue();else try{t(n)}catch(t){c(e,t)}}}getSessionsNeedingBackup(e){return new Promise((t,n)=>{const o=[],r=this._db.transaction(["sessions_needing_backup","inbound_group_sessions"],"readonly");r.onerror=n,r.oncomplete=function(){t(o)};const i=r.objectStore("sessions_needing_backup"),a=r.objectStore("inbound_group_sessions"),s=i.openCursor();s.onsuccess=function(){const t=s.result;if(t){const n=a.get(t.key);n.onsuccess=function(){o.push({senderKey:n.result.senderCurve25519Key,sessionId:n.result.sessionId,sessionData:n.result.session})},(!e||o.length<e)&&t.continue()}}})}countSessionsNeedingBackup(e){e||(e=this._db.transaction("sessions_needing_backup","readonly"));const t=e.objectStore("sessions_needing_backup");return new Promise((e,n)=>{const o=t.count();o.onerror=n,o.onsuccess=()=>e(o.result)})}unmarkSessionsNeedingBackup(e,t){t||(t=this._db.transaction("sessions_needing_backup","readwrite"));const n=t.objectStore("sessions_needing_backup");return Promise.all(e.map(e=>new Promise((t,o)=>{const r=n.delete([e.senderKey,e.sessionId]);r.onsuccess=t,r.onerror=o})))}markSessionsNeedingBackup(e,t){t||(t=this._db.transaction("sessions_needing_backup","readwrite"));const n=t.objectStore("sessions_needing_backup");return Promise.all(e.map(e=>new Promise((t,o)=>{const r=n.put({senderCurve25519Key:e.senderKey,sessionId:e.sessionId});r.onsuccess=t,r.onerror=o})))}doTxn(e,t,n){const o=this._db.transaction(t,e),r=l(o),i=n(o);return r.then(()=>i)}}function s(e,t){if(o.a.log("Upgrading IndexedDBCryptoStore from version "+t+" to "+i),t<1&&function(e){const t=e.createObjectStore("outgoingRoomKeyRequests",{keyPath:"requestId"});t.createIndex("session",["requestBody.room_id","requestBody.session_id"]),t.createIndex("state","state")}(e),t<2&&e.createObjectStore("account"),t<3){e.createObjectStore("sessions",{keyPath:["deviceKey","sessionId"]}).createIndex("deviceKey","deviceKey")}if(t<4&&e.createObjectStore("inbound_group_sessions",{keyPath:["senderCurve25519Key","sessionId"]}),t<5&&e.createObjectStore("device_data"),t<6&&e.createObjectStore("rooms"),t<7&&e.createObjectStore("sessions_needing_backup",{keyPath:["senderCurve25519Key","sessionId"]}),t<8&&e.createObjectStore("inbound_group_sessions_withheld",{keyPath:["senderCurve25519Key","sessionId"]}),t<9){e.createObjectStore("session_problems",{keyPath:["deviceKey","time"]}).createIndex("deviceKey","deviceKey"),e.createObjectStore("notified_error_devices",{keyPath:["userId","deviceId"]})}}function c(e,t){e._mx_abortexception=t;try{e.abort()}catch(t){}}function l(e){return new Promise((t,n)=>{e.oncomplete=()=>{void 0!==e._mx_abortexception&&n(e._mx_abortexception),t()},e.onerror=t=>{void 0!==e._mx_abortexception?n(e._mx_abortexception):(o.a.log("Error performing indexeddb txn",t),n(t.target.error))},e.onabort=t=>{void 0!==e._mx_abortexception?n(e._mx_abortexception):(o.a.log("Error performing indexeddb txn",t),n(t.target.error))}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(6),r=n(0),i=n(318),a=n(319),s=n(124),c=n(165),l=n(1);class u extends o.EventEmitter{constructor(e,t,n){super(),this._cryptoStore=t,this._devices={},this._crossSigningInfo={},this._userByIdentityKey={},this._deviceTrackingStatus={},this._syncToken=null,this._serialiser=new d(e,n,this),this._keyDownloadsInProgressByUser={},this._dirty=!1,this._savePromise=null,this._resolveSavePromise=null,this._savePromiseTime=null,this._saveTimer=null,this._hasFetched=null}async load(){await this._cryptoStore.doTxn("readonly",[c.a.STORE_DEVICE_DATA],e=>{this._cryptoStore.getEndToEndDeviceData(e,e=>{this._hasFetched=Boolean(e&&e.devices),this._devices=e?e.devices:{},this._crossSigningInfo=e&&e.crossSigningInfo||{},this._deviceTrackingStatus=e?e.trackingStatus:{},this._syncToken=e?e.syncToken:null,this._userByIdentityKey={};for(const e of Object.keys(this._devices)){const t=this._devices[e];for(const n of Object.keys(t)){const o=t[n].keys["curve25519:"+n];void 0!==o&&(this._userByIdentityKey[o]=e)}}})});for(const e of Object.keys(this._deviceTrackingStatus))2==this._deviceTrackingStatus[e]&&(this._deviceTrackingStatus[e]=1)}stop(){null!==this._saveTimer&&clearTimeout(this._saveTimer)}async saveIfDirty(e){if(!this._dirty)return Promise.resolve(!1);void 0===e&&(e=500);const t=Date.now+e;this._savePromiseTime&&t<this._savePromiseTime&&(clearTimeout(this._saveTimer),this._saveTimer=null,this._savePromiseTime=null);let n=this._savePromise;if(null===n&&(n=new Promise((e,t)=>{this._resolveSavePromise=e}),this._savePromise=n),null===this._saveTimer){const n=this._resolveSavePromise;this._savePromiseTime=t,this._saveTimer=setTimeout(()=>{r.a.log("Saving device tracking data",this._syncToken),this._savePromiseTime=null,this._saveTimer=null,this._savePromise=null,this._resolveSavePromise=null,this._cryptoStore.doTxn("readwrite",[c.a.STORE_DEVICE_DATA],e=>{this._cryptoStore.storeEndToEndDeviceData({devices:this._devices,crossSigningInfo:this._crossSigningInfo,trackingStatus:this._deviceTrackingStatus,syncToken:this._syncToken},e)}).then(()=>{this._dirty=!1,n()},e=>{r.a.error("Failed to save device tracking data",this._syncToken),r.a.error(e)})},e)}return n}getSyncToken(){return this._syncToken}setSyncToken(e){this._syncToken=e}downloadKeys(e,t){const n=[],o=[];if(e.forEach(e=>{const i=this._deviceTrackingStatus[e];this._keyDownloadsInProgressByUser[e]?(r.a.log("downloadKeys: already have a download in progress for "+e+": awaiting its result"),o.push(this._keyDownloadsInProgressByUser[e])):(t||3!=i)&&n.push(e)}),0!=n.length){r.a.log("downloadKeys: downloading for",n);const e=this._doKeyDownload(n);o.push(e)}return 0===o.length&&r.a.log("downloadKeys: already have all necessary keys"),Promise.all(o).then(()=>this._getDevicesFromStore(e))}_getDevicesFromStore(e){const t={},n=this;return e.map((function(e){t[e]={};(n.getStoredDevicesForUser(e)||[]).map((function(n){t[e][n.deviceId]=n}))})),t}getKnownUserIds(){return Object.keys(this._devices)}getStoredDevicesForUser(e){const t=this._devices[e];if(!t)return null;const n=[];for(const e in t)t.hasOwnProperty(e)&&n.push(i.a.fromStorage(t[e],e));return n}getRawStoredDevicesForUser(e){return this._devices[e]}getStoredCrossSigningForUser(e){return this._crossSigningInfo[e]?a.a.fromStorage(this._crossSigningInfo[e],e):null}storeCrossSigningForUser(e,t){this._crossSigningInfo[e]=t,this._dirty=!0}getStoredDevice(e,t){const n=this._devices[e];if(n&&n[t])return i.a.fromStorage(n[t],t)}getUserByIdentityKey(e,t){return e!==s.OLM_ALGORITHM&&e!==s.MEGOLM_ALGORITHM?null:this._userByIdentityKey[t]}getDeviceByIdentityKey(e,t){const n=this.getUserByIdentityKey(e,t);if(!n)return null;const o=this._devices[n];if(!o)return null;for(const e in o){if(!o.hasOwnProperty(e))continue;const n=o[e];for(const o in n.keys){if(!n.keys.hasOwnProperty(o))continue;if(0!==o.indexOf("curve25519:"))continue;if(n.keys[o]==t)return i.a.fromStorage(n,e)}}return null}storeDevicesForUser(e,t){if(void 0!==this._devices[e])for(const[t,n]of Object.entries(this._devices[e])){const e=n.keys["curve25519:"+t];delete this._userByIdentityKey[e]}this._devices[e]=t;for(const[n,o]of Object.entries(t)){const t=o.keys["curve25519:"+n];this._userByIdentityKey[t]=e}this._dirty=!0}startTrackingDeviceList(e){if("string"!=typeof e)throw new Error("userId must be a string; was "+e);this._deviceTrackingStatus[e]||(r.a.log("Now tracking device list for "+e),this._deviceTrackingStatus[e]=1,this._dirty=!0)}stopTrackingDeviceList(e){this._deviceTrackingStatus[e]&&(r.a.log("No longer tracking device list for "+e),this._deviceTrackingStatus[e]=0,this._dirty=!0)}stopTrackingAllDeviceLists(){for(const e of Object.keys(this._deviceTrackingStatus))this._deviceTrackingStatus[e]=0;this._dirty=!0}invalidateUserDeviceList(e){this._deviceTrackingStatus[e]&&(r.a.log("Marking device list outdated for",e),this._deviceTrackingStatus[e]=1,this._dirty=!0)}refreshOutdatedDeviceLists(){this.saveIfDirty();const e=[];for(const t of Object.keys(this._deviceTrackingStatus)){1==this._deviceTrackingStatus[t]&&e.push(t)}return this._doKeyDownload(e)}_setRawStoredDevicesForUser(e,t){if(void 0!==this._devices[e])for(const[t,n]of Object.entries(this._devices[e])){const e=n.keys["curve25519:"+t];delete this._userByIdentityKey[e]}this._devices[e]=t;for(const[n,o]of Object.entries(t)){const t=o.keys["curve25519:"+n];this._userByIdentityKey[t]=e}}setRawStoredCrossSigningForUser(e,t){this._crossSigningInfo[e]=t}_doKeyDownload(e){if(0===e.length)return Promise.resolve();const t=this._serialiser.updateDevicesForUsers(e,this._syncToken).then(()=>{n(!0)},t=>{throw r.a.error("Error downloading keys for "+e+":",t),n(!1),t});e.forEach(e=>{this._keyDownloadsInProgressByUser[e]=t;1==this._deviceTrackingStatus[e]&&(this._deviceTrackingStatus[e]=2)});const n=n=>{this.emit("crypto.willUpdateDevices",e,!this._hasFetched),e.forEach(e=>{if(this._dirty=!0,this._keyDownloadsInProgressByUser[e]!==t)return void r.a.log("Another update in the queue for",e,"- not marking up-to-date");delete this._keyDownloadsInProgressByUser[e];2==this._deviceTrackingStatus[e]&&(n?(this._deviceTrackingStatus[e]=3,r.a.log("Device list for",e,"now up to date")):this._deviceTrackingStatus[e]=1)}),this.saveIfDirty(),this.emit("crypto.devicesUpdated",e,!this._hasFetched),this._hasFetched=!0};return t}}class d{constructor(e,t,n){this._baseApis=e,this._olmDevice=t,this._deviceList=n,this._downloadInProgress=!1,this._keyDownloadsQueuedByUser={},this._queuedQueryDeferred=null,this._syncToken=null}updateDevicesForUsers(e,t){return e.forEach(e=>{this._keyDownloadsQueuedByUser[e]=!0}),this._queuedQueryDeferred||(this._queuedQueryDeferred=Object(l.d)()),this._syncToken=t,this._downloadInProgress?(r.a.log("Queued key download for",e),this._queuedQueryDeferred.promise):this._doQueuedQueries()}_doQueuedQueries(){if(this._downloadInProgress)throw new Error("DeviceListUpdateSerialiser._doQueuedQueries called with request active");const e=Object.keys(this._keyDownloadsQueuedByUser);this._keyDownloadsQueuedByUser={};const t=this._queuedQueryDeferred;this._queuedQueryDeferred=null,r.a.log("Starting key download for",e),this._downloadInProgress=!0;const n={};return this._syncToken&&(n.token=this._syncToken),this._baseApis.downloadKeysForUsers(e,n).then(async t=>{const n=t.device_keys||{},o=t.master_keys||{},i=t.self_signing_keys||{},a=t.user_signing_keys||{};for(const t of e){await Object(l.A)(5);try{await this._processQueryResponseForUser(t,n[t],{master:o[t],self_signing:i[t],user_signing:a[t]})}catch(e){r.a.error(`Error processing keys for ${t}:`,e)}}}).then(()=>{r.a.log("Completed key download for "+e),this._downloadInProgress=!1,t.resolve(),this._queuedQueryDeferred&&this._doQueuedQueries()},n=>{r.a.warn("Error downloading keys for "+e+":",n),this._downloadInProgress=!1,t.reject(n)}),t.promise}async _processQueryResponseForUser(e,t,n){r.a.log("got device keys for "+e+":",t),r.a.log("got cross-signing keys for "+e+":",n);{const n={},o=this._deviceList.getRawStoredDevicesForUser(e);o&&Object.keys(o).forEach(e=>{const t=i.a.fromStorage(o[e],e);n[e]=t}),await async function(e,t,n,o,i,a){let s=!1;for(const e in n)if(n.hasOwnProperty(e)&&!(e in o)){if(t===i&&e===a){r.a.warn(`Local device ${e} missing from sync, skipping removal`);continue}r.a.log("Device "+t+":"+e+" has been removed"),delete n[e],s=!0}for(const i in o){if(!o.hasOwnProperty(i))continue;const a=o[i];a.user_id===t?a.device_id===i?await h(e,n,a)&&(s=!0):r.a.warn("Mismatched device_id "+a.device_id+" in keys from "+t+":"+i):r.a.warn("Mismatched user_id "+a.user_id+" in keys from "+t+":"+i)}return s}(this._olmDevice,e,n,t||{},this._baseApis.getUserId(),this._baseApis.deviceId);const a={};Object.keys(n).forEach(e=>{a[e]=n[e].toStorage()}),this._deviceList._setRawStoredDevicesForUser(e,a)}if(n&&(n.master||n.self_signing||n.user_signing)){const t=this._deviceList.getStoredCrossSigningForUser(e)||new a.a(e);t.setKeys(n),this._deviceList.setRawStoredCrossSigningForUser(e,t.toStorage()),this._deviceList.emit("userCrossSigningUpdated",e)}}}async function h(e,t,n){if(!n.keys)return!1;const o=n.device_id,a=n.user_id,c="ed25519:"+o,l=n.keys[c];if(!l)return r.a.warn("Device "+a+":"+o+" has no ed25519 key"),!1;const u=n.unsigned||{},d=n.signatures||{};try{await s.verifySignature(e,n,a,o,l)}catch(e){return r.a.warn("Unable to verify signature on device "+a+":"+o+":"+e),!1}let h;if(o in t){if(h=t[o],h.getFingerprint()!=l)return r.a.warn("Ed25519 key for device "+a+":"+o+" has changed"),!1}else t[o]=h=new i.a(o);return h.keys=n.keys||{},h.algorithms=n.algorithms||[],h.unsigned=u,h.signatures=d,!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(0),r=n(129),i=n(6),a=n(319),s=n(165),c=n(266);class l{constructor(e,t){this.accountDataClientAdapter=new d(e),this.crossSigningCallbacks=new h,this.ssssCryptoCallbacks=new p(t),this._crossSigningKeys=null,this._keySignatures=null,this._keyBackupInfo=null}addCrossSigningKeys(e,t){this._crossSigningKeys={authUpload:e,keys:t}}addSessionBackup(e){this._keyBackupInfo=e}addSessionBackupPrivateKeyToCache(e){this._sessionBackupPrivateKey=e}addKeySignature(e,t,n){this._keySignatures||(this._keySignatures={});const o=this._keySignatures[e]||{};this._keySignatures[e]=o,o[t]=n}setAccountData(e,t){return this.accountDataClientAdapter.setAccountData(e,t)}buildOperation(){const e=this.accountDataClientAdapter._values;return new u(e,this._crossSigningKeys,this._keyBackupInfo,this._keySignatures)}async persist(e){if(this._crossSigningKeys){const t=Object(a.d)(e._cryptoStore,e._olmDevice);for(const e of["master","self_signing","user_signing"]){o.a.log(`Cache ${e} cross-signing private key locally`);const n=this.crossSigningCallbacks.privateKeys.get(e);await t.storeCrossSigningKeyCache(e,n)}await e._cryptoStore.doTxn("readwrite",[s.a.STORE_ACCOUNT],t=>{e._cryptoStore.storeCrossSigningKeys(t,this._crossSigningKeys.keys)})}this._sessionBackupPrivateKey&&await e.storeSessionBackupPrivateKey(this._sessionBackupPrivateKey)}}class u{constructor(e,t,n,o){this._accountData=e,this._crossSigningKeys=t,this._keyBackupInfo=n,this._keySignatures=o}async apply(e){const t=e._baseApis;if(this._crossSigningKeys){const n={};for(const[e,t]of Object.entries(this._crossSigningKeys.keys))n[e+"_key"]=t;await this._crossSigningKeys.authUpload(e=>t.uploadDeviceSigningKeys(e,n)),e._crossSigningInfo.setKeys(this._crossSigningKeys.keys)}if(this._accountData)for(const[e,n]of this._accountData)await t.setAccountData(e,n);this._keySignatures&&await t.uploadKeySignatures(this._keySignatures),this._keyBackupInfo&&(this._keyBackupInfo.version?await t._http.authedRequest(void 0,"PUT","/room_keys/version/"+this._keyBackupInfo.version,void 0,{algorithm:this._keyBackupInfo.algorithm,auth_data:this._keyBackupInfo.auth_data},{prefix:c.i}):await t._http.authedRequest(void 0,"POST","/room_keys/version",void 0,this._keyBackupInfo,{prefix:c.i}))}}class d extends i.EventEmitter{constructor(e){super(),this._existingValues=e,this._values=new Map}getAccountDataFromServer(e){return Promise.resolve(this.getAccountData(e))}getAccountData(e){const t=this._values.get(e);if(t)return t;const n=this._existingValues[e];return n?n.getContent():null}setAccountData(e,t){const n=this._values.get(e);return this._values.set(e,t),Promise.resolve().then(()=>{const o=new r.b({type:e,content:t});this.emit("accountData",o,n)})}}class h{constructor(){this.privateKeys=new Map}getCrossSigningKeyCache(e,t){return this.getCrossSigningKey(e,t)}storeCrossSigningKeyCache(e,t){return this.privateKeys.set(e,t),Promise.resolve()}getCrossSigningKey(e,t){return Promise.resolve(this.privateKeys.get(e))}saveCrossSigningKeys(e){for(const[t,n]of Object.entries(e))this.privateKeys.set(t,n)}}class p{constructor(e){this._privateKeys=new Map,this._delegateCryptoCallbacks=e}async getSecretStorageKey({keys:e},t){for(const t of Object.keys(e)){const e=this._privateKeys.get(t);if(e)return[t,e]}if(this._delegateCryptoCallbacks){const n=await this._delegateCryptoCallbacks.getSecretStorageKey({keys:e},t);if(n){const[e,t]=n;this._privateKeys.set(e,t)}return n}}addPrivateKey(e,t,n){this._privateKeys.set(e,n),this._delegateCryptoCallbacks&&this._delegateCryptoCallbacks.cacheSecretStorageKey&&this._delegateCryptoCallbacks.cacheSecretStorageKey(e,t,n)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var o=n(6),r=n(0),i=n(124),a=n(176),s=n(267);const c="m.secret_storage.v1.aes-hmac-sha2";class l extends o.EventEmitter{constructor(e,t){super(),this._baseApis=e,this._cryptoCallbacks=t,this._requests={},this._incomingRequests={}}async getDefaultKeyId(){const e=await this._baseApis.getAccountDataFromServer("m.secret_storage.default_key");return e?e.key:null}setDefaultKeyId(e){return new Promise(async(t,n)=>{const o=n=>{"m.secret_storage.default_key"===n.getType()&&n.getContent().key===e&&(this._baseApis.removeListener("accountData",o),t())};this._baseApis.on("accountData",o);try{await this._baseApis.setAccountData("m.secret_storage.default_key",{key:e})}catch(e){this._baseApis.removeListener("accountData",o),n(e)}})}async addKey(e,t,n){const o={algorithm:e};if(t||(t={}),t.name&&(o.name=t.name),e!==c)throw new Error("Unknown key algorithm "+t.algorithm);if(t.passphrase&&(o.passphrase=t.passphrase),t.key){const{iv:e,mac:n}=await l._calculateKeyCheck(t.key);o.iv=e,o.mac=n}if(!n)do{n=Object(a.a)(32)}while(await this._baseApis.getAccountDataFromServer("m.secret_storage.key."+n));return await this._baseApis.setAccountData("m.secret_storage.key."+n,o),{keyId:n,keyInfo:o}}async getKey(e){if(e||(e=await this.getDefaultKeyId()),!e)return null;const t=await this._baseApis.getAccountDataFromServer("m.secret_storage.key."+e);return t?[e,t]:null}async hasKey(e){return!!await this.getKey(e)}async checkKey(e,t){if(t.algorithm===c){if(t.mac){const{mac:n}=await l._calculateKeyCheck(e,t.iv);return t.mac.replace(/=+$/g,"")===n.replace(/=+$/g,"")}return!0}throw new Error("Unknown algorithm")}static async _calculateKeyCheck(e,t){return await Object(s.b)("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",e,"",t)}async store(e,t,n){const o={};if(!n){const e=await this.getDefaultKeyId();if(!e)throw new Error("No keys specified and no default key present");n=[e]}if(0===n.length)throw new Error("Zero keys given to encrypt with!");for(const i of n){const n=await this._baseApis.getAccountDataFromServer("m.secret_storage.key."+i);if(!n)throw new Error("Unknown key: "+i);if(n.algorithm===c){const r={[i]:n},[,a]=await this._getSecretStorageKey(r,e);o[i]=await a.encrypt(t)}else r.a.warn("unknown algorithm for secret storage key "+i+": "+n.algorithm)}await this._baseApis.setAccountData(e,{encrypted:o})}async _fixupStoredSecret(e,t){const n=Object.keys(t);if(1===n.length&&"encrypted"!==n[0]&&t[n[0]].passthrough){if(await this.hasKey(n[0])){r.a.log("Fixing up passthrough secret: "+e),await this.storePassthrough(e,n[0]);return await this._baseApis.getAccountDataFromServer(e)}}return null}async get(e){let t=await this._baseApis.getAccountDataFromServer(e);if(!t)return;if(!t.encrypted&&(t=await this._fixupStoredSecret(e,t),!t||!t.encrypted))throw new Error("Content is not encrypted!");const n={};for(const e of Object.keys(t.encrypted)){const o=await this._baseApis.getAccountDataFromServer("m.secret_storage.key."+e),r=t.encrypted[e];o.algorithm===c&&r.iv&&r.ciphertext&&r.mac&&(n[e]=o)}if(0===Object.keys(n).length)throw new Error(`Could not decrypt ${e} because none of the keys it is encrypted with are for a supported algorithm`);let o,r;try{[o,r]=await this._getSecretStorageKey(n,e);const a=t.encrypted[o];return a.passthrough?Object(i.encodeBase64)(r.get_private_key()):await r.decrypt(a)}finally{r&&r.free&&r.free()}}async isStored(e,t){let n=await this._baseApis.getAccountDataFromServer(e);if(!n)return null;if(!n.encrypted&&(n=await this._fixupStoredSecret(e,n),!n||!n.encrypted))return null;void 0===t&&(t=!0);const o={};for(const e of Object.keys(n.encrypted)){const t=await this._baseApis.getAccountDataFromServer("m.secret_storage.key."+e);if(!t)continue;const r=n.encrypted[e];t.algorithm===c&&r.iv&&r.ciphertext&&r.mac&&(o[e]=t)}return Object.keys(o).length?o:null}request(e,t){const n=this._baseApis.makeTxnId(),o=this._requests[n]={name:e,devices:t},i=new Promise((e,t)=>{o.resolve=e,o.reject=t}),a={name:e,action:"request",requesting_device_id:this._baseApis.deviceId,request_id:n},s={};for(const e of t)s[e]=a;return r.a.info(`Request secret ${e} from ${t}, id ${n}`),this._baseApis.sendToDevice("m.secret.request",{[this._baseApis.getUserId()]:s}),{request_id:n,promise:i,cancel:e=>{const r={action:"request_cancellation",requesting_device_id:this._baseApis.deviceId,request_id:n},i={};for(const e of t)i[e]=r;this._baseApis.sendToDevice("m.secret.request",{[this._baseApis.getUserId()]:i}),o.reject(new Error(e||"Cancelled"))}}}async _onRequestReceived(e){const t=e.getSender(),n=e.getContent();if(t!==this._baseApis.getUserId()||!(n.name&&n.action&&n.requesting_device_id&&n.request_id))return;const o=n.requesting_device_id;if("request_cancellation"===n.action)this._incomingRequests[o]&&this._incomingRequests[o][n.request_id]&&(r.a.info("received request cancellation for secret ("+t+", "+o+", "+n.request_id+")"),this.baseApis.emit("crypto.secrets.requestCancelled",{user_id:t,device_id:o,request_id:n.request_id}));else if("request"===n.action){if(o===this._baseApis.deviceId)return;if(r.a.info("received request for secret ("+t+", "+o+", "+n.request_id+")"),!this._cryptoCallbacks.onSecretRequested)return;const e=await this._cryptoCallbacks.onSecretRequested(t,o,n.request_id,n.name,this._baseApis.checkDeviceTrust(t,o));if(e){r.a.info(`Preparing ${n.name} secret for ${o}`);const a={type:"m.secret.send",content:{request_id:n.request_id,secret:e}},s={algorithm:i.OLM_ALGORITHM,sender_key:this._baseApis._crypto._olmDevice.deviceCurve25519Key,ciphertext:{}};await i.ensureOlmSessionsForDevices(this._baseApis._crypto._olmDevice,this._baseApis,{[t]:[this._baseApis.getStoredDevice(t,o)]}),await i.encryptMessageForDevice(s.ciphertext,this._baseApis.getUserId(),this._baseApis.deviceId,this._baseApis._crypto._olmDevice,t,this._baseApis.getStoredDevice(t,o),a);const c={[t]:{[o]:s}};r.a.info(`Sending ${n.name} secret for ${o}`),this._baseApis.sendToDevice("m.room.encrypted",c)}else r.a.info(`Request denied for ${n.name} secret for ${o}`)}}_onSecretReceived(e){if(e.getSender()!==this._baseApis.getUserId())return;const t=e.getContent();r.a.log("got secret share for request",t.request_id);const n=this._requests[t.request_id];if(n){const o=this._baseApis._crypto._deviceList.getDeviceByIdentityKey(i.OLM_ALGORITHM,e.getSenderKey());if(!o)return void r.a.log("secret share from unknown device with key",e.getSenderKey());if(!n.devices.includes(o.deviceId))return void r.a.log("unsolicited secret share from device",o.deviceId);r.a.log(`Successfully received secret ${n.name} from `+o.deviceId),n.resolve(t.secret)}}async _getSecretStorageKey(e,t){if(!this._cryptoCallbacks.getSecretStorageKey)throw new Error("No getSecretStorageKey callback supplied");const n=await this._cryptoCallbacks.getSecretStorageKey({keys:e},t);if(!n)throw new Error("getSecretStorageKey callback returned falsey");if(n.length<2)throw new Error("getSecretStorageKey callback returned invalid data");const[o,r]=n;if(!e[o])throw new Error("App returned unknown key from getSecretStorageKey!");if(e[o].algorithm===c){return[o,{encrypt:async function(e){return await Object(s.b)(e,r,t)},decrypt:async function(e){return await Object(s.a)(e,r,t)}}]}throw new Error("Unknown key type: "+e[o].algorithm)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var o=n(0),r=n(1);const i=0,a=1,s=2,c=3;class l{constructor(e,t,n){this._baseApis=e,this._deviceId=t,this._cryptoStore=n,this._sendOutgoingRoomKeyRequestsTimer=null,this._sendOutgoingRoomKeyRequestsRunning=!1,this._clientRunning=!1}start(){this._clientRunning=!0}stop(){o.a.log("stopping OutgoingRoomKeyRequestManager"),this._clientRunning=!1}sendQueuedRequests(){this._startTimer()}async queueRoomKeyRequest(e,t,n=!1){const r=await this._cryptoStore.getOutgoingRoomKeyRequest(e);if(r)switch(r.state){case c:case i:return;case s:{const e=n?c:a;await this._cryptoStore.updateOutgoingRoomKeyRequest(r.requestId,s,{state:e,cancellationTxnId:this._baseApis.makeTxnId()});break}case a:if(n){const i=c,s=await this._cryptoStore.updateOutgoingRoomKeyRequest(r.requestId,a,{state:i,cancellationTxnId:this._baseApis.makeTxnId(),requestTxnId:this._baseApis.makeTxnId()});if(!s)return await this.queueRoomKeyRequest(e,t,n);try{await this._sendOutgoingRoomKeyRequestCancellation(s,!0)}catch(e){o.a.error("Error sending room key request cancellation; will retry later.",e)}}break;default:throw new Error("unhandled state: "+r.state)}else await this._cryptoStore.getOrAddOutgoingRoomKeyRequest({requestBody:e,recipients:t,requestId:this._baseApis.makeTxnId(),state:i})}cancelRoomKeyRequest(e){return this._cryptoStore.getOutgoingRoomKeyRequest(e).then(t=>{if(t)switch(t.state){case s:case c:return;case i:return o.a.log("deleting unnecessary room key request for "+u(e)),this._cryptoStore.deleteOutgoingRoomKeyRequest(t.requestId,i);case a:return this._cryptoStore.updateOutgoingRoomKeyRequest(t.requestId,a,{state:s,cancellationTxnId:this._baseApis.makeTxnId()}).then(t=>{t?this._sendOutgoingRoomKeyRequestCancellation(t).catch(e=>{o.a.error("Error sending room key request cancellation; will retry later.",e),this._startTimer()}):o.a.log("Tried to cancel room key request for "+u(e)+" but it was already cancelled in another tab")});default:throw new Error("unhandled state: "+t.state)}})}getOutgoingSentRoomKeyRequest(e,t){return this._cryptoStore.getOutgoingRoomKeyRequestsByTarget(e,t,[a])}async cancelAndResendAllOutgoingRequests(){const e=await this._cryptoStore.getAllOutgoingRoomKeyRequestsByState(a);return Promise.all(e.map(({requestBody:e,recipients:t})=>this.queueRoomKeyRequest(e,t,!0)))}_startTimer(){if(this._sendOutgoingRoomKeyRequestsTimer)return;this._sendOutgoingRoomKeyRequestsTimer=e.setTimeout(()=>{if(this._sendOutgoingRoomKeyRequestsRunning)throw new Error("RoomKeyRequestSend already in progress!");this._sendOutgoingRoomKeyRequestsRunning=!0,this._sendOutgoingRoomKeyRequests().finally(()=>{this._sendOutgoingRoomKeyRequestsRunning=!1}).catch(e=>{o.a.warn("error in OutgoingRoomKeyRequestManager: "+e)})},500)}_sendOutgoingRoomKeyRequests(){return this._clientRunning?this._cryptoStore.getOutgoingRoomKeyRequestByState([s,c,i]).then(e=>{if(!e)return void(this._sendOutgoingRoomKeyRequestsTimer=null);let t;switch(e.state){case i:t=this._sendOutgoingRoomKeyRequest(e);break;case s:t=this._sendOutgoingRoomKeyRequestCancellation(e);break;case c:t=this._sendOutgoingRoomKeyRequestCancellation(e,!0)}return t.then(()=>this._sendOutgoingRoomKeyRequests()).catch(e=>{o.a.error("Error sending room key request; will retry later.",e),this._sendOutgoingRoomKeyRequestsTimer=null})}):(this._sendOutgoingRoomKeyRequestsTimer=null,Promise.resolve())}_sendOutgoingRoomKeyRequest(e){o.a.log("Requesting keys for "+u(e.requestBody)+" from "+d(e.recipients)+`(id ${e.requestId})`);const t={action:"request",requesting_device_id:this._deviceId,request_id:e.requestId,body:e.requestBody};return this._sendMessageToDevices(t,e.recipients,e.requestTxnId||e.requestId).then(()=>this._cryptoStore.updateOutgoingRoomKeyRequest(e.requestId,i,{state:a}))}_sendOutgoingRoomKeyRequestCancellation(e,t){o.a.log("Sending cancellation for key request for "+u(e.requestBody)+" to "+d(e.recipients)+" "+`(cancellation id ${e.cancellationTxnId})`);const n={action:"request_cancellation",requesting_device_id:this._deviceId,request_id:e.requestId};return this._sendMessageToDevices(n,e.recipients,e.cancellationTxnId).then(()=>t?this._cryptoStore.updateOutgoingRoomKeyRequest(e.requestId,c,{state:i}):this._cryptoStore.deleteOutgoingRoomKeyRequest(e.requestId,s))}_sendMessageToDevices(e,t,n){const o={};for(const n of t)o[n.userId]||(o[n.userId]={}),o[n.userId][n.deviceId]=e;return this._baseApis.sendToDevice("m.room_key_request",o,n)}}function u(e){return e.room_id+" / "+e.session_id}function d(e){return"["+r.u(e,e=>`${e.userId}:${e.deviceId}`).join(",")+"]"}}).call(this,n(5))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return k}));var o=n(390),r=n(316),i=n.n(r),a=n(269),s=n(0);const c="m.key.verification.start",l=["m.key.verification.accept","m.key.verification.key","m.key.verification.mac"];let u;const d=Object(a.a)("m.mismatched_sas","Mismatched short authentication string"),h=Object(a.a)("m.mismatched_commitment","Mismatched commitment");const p=[["🐶","dog"],["🐱","cat"],["🦁","lion"],["🐎","horse"],["🦄","unicorn"],["🐷","pig"],["🐘","elephant"],["🐰","rabbit"],["🐼","panda"],["🐓","rooster"],["🐧","penguin"],["🐢","turtle"],["🐟","fish"],["🐙","octopus"],["🦋","butterfly"],["🌷","flower"],["🌳","tree"],["🌵","cactus"],["🍄","mushroom"],["🌏","globe"],["🌙","moon"],["☁️","cloud"],["🔥","fire"],["🍌","banana"],["🍎","apple"],["🍓","strawberry"],["🌽","corn"],["🍕","pizza"],["🎂","cake"],["❤️","heart"],["🙂","smiley"],["🤖","robot"],["🎩","hat"],["👓","glasses"],["🔧","spanner"],["🎅","santa"],["👍","thumbs up"],["☂️","umbrella"],["⌛","hourglass"],["⏰","clock"],["🎁","gift"],["💡","light bulb"],["📕","book"],["✏️","pencil"],["📎","paperclip"],["✂️","scissors"],["🔒","lock"],["🔑","key"],["🔨","hammer"],["☎️","telephone"],["🏁","flag"],["🚂","train"],["🚲","bicycle"],["✈️","aeroplane"],["🚀","rocket"],["🏆","trophy"],["⚽","ball"],["🎸","guitar"],["🎺","trumpet"],["🔔","bell"],["⚓️","anchor"],["🎧","headphones"],["📁","folder"],["📌","pin"]];const m={decimal:function(e){return[1e3+(e[0]<<5|e[1]>>3),1e3+((7&e[1])<<10|e[2]<<2|e[3]>>6),1e3+((63&e[3])<<7|e[4]>>1)]},emoji:function(e){return[e[0]>>2,(3&e[0])<<4|e[1]>>4,(15&e[1])<<2|e[2]>>6,63&e[2],e[3]>>2,(3&e[3])<<4|e[4]>>4,(15&e[4])<<2|e[5]>>6].map(e=>p[e])}};function g(e,t){const n={};for(const o of t)o in m&&(n[o]=m[o](e));return n}const f={"hkdf-hmac-sha256":"calculate_mac","hmac-sha256":"calculate_mac_long_kdf"};function _(e,t){return function(...n){const o=e[f[t]].apply(e,n);return s.a.log("SAS calculateMAC:",t,n,o),o}}const b={"curve25519-hkdf-sha256":function(e,t,n){const o=`${e._baseApis.getUserId()}|${e._baseApis.deviceId}|`+e.ourSASPubKey+"|",r=`${e.userId}|${e.deviceId}|${e.theirSASPubKey}|`,i="MATRIX_KEY_VERIFICATION_SAS|"+(e.initiatedByMe?o+r:r+o)+e._channel.transactionId;return t.generate_bytes(i,n)},curve25519:function(e,t,n){const o=`${e._baseApis.getUserId()}${e._baseApis.deviceId}`,r=`${e.userId}${e.deviceId}`,i="MATRIX_KEY_VERIFICATION_SAS"+(e.initiatedByMe?o+r:r+o)+e._channel.transactionId;return t.generate_bytes(i,n)}},v=["curve25519-hkdf-sha256","curve25519"],E=["sha256"],y=["hkdf-hmac-sha256","hmac-sha256"],S=Object.keys(m),T=new Set(v),w=new Set(E),C=new Set(y),x=new Set(S);function O(e,t){return e instanceof Array?e.filter(e=>t.has(e)):[]}class k extends o.b{static get NAME(){return"m.sas.v1"}get events(){return l}async _doVerification(){await e.Olm.init(),u=u||new e.Olm.Utility,await this._baseApis.downloadKeys([this.userId]);let t=!1;do{try{return this.initiatedByMe?await this._doSendVerification():await this._doRespondVerification()}catch(e){if(!(e instanceof o.a))throw e;this.startEvent=e.startEvent,t=!0}}while(t)}canSwitchStartEvent(e){if(e.getType()!==c)return!1;const t=e.getContent();return t&&t.method===k.NAME&&this._waitingForAccept}async _sendStart(){const e=this._channel.completeContent(c,{method:k.NAME,from_device:this._baseApis.deviceId,key_agreement_protocols:v,hashes:E,message_authentication_codes:y,short_authentication_string:S});return await this._channel.sendCompleted(c,e),e}async _doSendVerification(){let t,n;if(this._waitingForAccept=!0,t=this.startEvent?this._channel.completedContentFromEvent(this.startEvent):await this._sendStart(),!this.initiatedByMe)throw new o.a(this.startEvent);try{n=await this._waitForEvent("m.key.verification.accept")}finally{this._waitingForAccept=!1}let r=n.getContent();const s=O(r.short_authentication_string,x);if(!(T.has(r.key_agreement_protocol)&&w.has(r.hash)&&C.has(r.message_authentication_code)&&s.length))throw Object(a.g)();if("string"!=typeof r.commitment)throw Object(a.c)();const c=r.key_agreement_protocol,l=r.message_authentication_code,p=r.commitment,m=new e.Olm.SAS;try{this.ourSASPubKey=m.get_pubkey(),await this._send("m.key.verification.key",{key:this.ourSASPubKey}),n=await this._waitForEvent("m.key.verification.key"),r=n.getContent();const e=r.key+i.a.stringify(t);if(u.sha256(e)!==p)throw h();this.theirSASPubKey=r.key,m.set_their_key(r.key);const o=b[c](this,m,6),f=new Promise((e,t)=>{this.sasEvent={sas:g(o,s),confirm:async()=>{try{await this._sendMAC(m,l),e()}catch(e){t(e)}},cancel:()=>t(Object(a.h)()),mismatch:()=>t(d())},this.emit("show_sas",this.sasEvent)});[n]=await Promise.all([this._waitForEvent("m.key.verification.mac").then(e=>(this._expectedEvent="m.key.verification.done",e)),f]),r=n.getContent(),await this._checkMAC(m,r,l)}finally{m.free()}}async _doRespondVerification(){let t=this._channel.completedContentFromEvent(this.startEvent);const n=O(v,new Set(t.key_agreement_protocols))[0],o=O(E,new Set(t.hashes))[0],r=O(y,new Set(t.message_authentication_codes))[0],s=O(t.short_authentication_string,x);if(void 0===n||void 0===o||void 0===r||!s.length)throw Object(a.g)();const c=new e.Olm.SAS;try{const e=c.get_pubkey()+i.a.stringify(t);await this._send("m.key.verification.accept",{key_agreement_protocol:n,hash:o,message_authentication_code:r,short_authentication_string:s,commitment:u.sha256(e)});let l=await this._waitForEvent("m.key.verification.key");t=l.getContent(),this.theirSASPubKey=t.key,c.set_their_key(t.key),this.ourSASPubKey=c.get_pubkey(),await this._send("m.key.verification.key",{key:this.ourSASPubKey});const h=b[n](this,c,6),p=new Promise((e,t)=>{this.sasEvent={sas:g(h,s),confirm:async()=>{try{await this._sendMAC(c,r),e()}catch(e){t(e)}},cancel:()=>t(Object(a.h)()),mismatch:()=>t(d())},this.emit("show_sas",this.sasEvent)});[l]=await Promise.all([this._waitForEvent("m.key.verification.mac").then(e=>(this._expectedEvent="m.key.verification.done",e)),p]),t=l.getContent(),await this._checkMAC(c,t,r)}finally{c.free()}}_sendMAC(e,t){const n={},o=[],r="MATRIX_KEY_VERIFICATION_MAC"+this._baseApis.getUserId()+this._baseApis.deviceId+this.userId+this.deviceId+this._channel.transactionId,i="ed25519:"+this._baseApis.deviceId;n[i]=_(e,t)(this._baseApis.getDeviceEd25519Key(),r+i),o.push(i);const a=this._baseApis.getCrossSigningId();if(a){const i="ed25519:"+a;n[i]=_(e,t)(a,r+i),o.push(i)}const s=_(e,t)(o.sort().join(","),r+"KEY_IDS");return this._send("m.key.verification.mac",{mac:n,keys:s})}async _checkMAC(e,t,n){const o="MATRIX_KEY_VERIFICATION_MAC"+this.userId+this.deviceId+this._baseApis.getUserId()+this._baseApis.deviceId+this._channel.transactionId;if(t.keys!==_(e,n)(Object.keys(t.mac).sort().join(","),o+"KEY_IDS"))throw Object(a.d)();await this._verifyKeys(this.userId,t.mac,(t,r,i)=>{if(i!==_(e,n)(r.keys[t],o+t))throw Object(a.d)()})}}}).call(this,n(5))},function(e,t,n){var o=n(844);e.exports=o("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t,n){"use strict";var o=n(535).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var r=0;r<e.length;r++){var i=e.charAt(r),a=i.charCodeAt(0);if(255!==t[a])throw new TypeError(i+" is ambiguous");t[a]=r}var s=e.length,c=e.charAt(0),l=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function d(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return o.alloc(0);var n=0;if(" "!==e[n]){for(var r=0,i=0;e[n]===c;)r++,n++;for(var a=(e.length-n)*l+1>>>0,u=new Uint8Array(a);e[n];){var d=t[e.charCodeAt(n)];if(255===d)return;for(var h=0,p=a-1;(0!==d||h<i)&&-1!==p;p--,h++)d+=s*u[p]>>>0,u[p]=d%256>>>0,d=d/256>>>0;if(0!==d)throw new Error("Non-zero carry");i=h,n++}if(" "!==e[n]){for(var m=a-i;m!==a&&0===u[m];)m++;var g=o.allocUnsafe(r+(a-m));g.fill(0,0,r);for(var f=r;m!==a;)g[f++]=u[m++];return g}}}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=o.from(t)),!o.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,r=0,i=0,a=t.length;i!==a&&0===t[i];)i++,n++;for(var l=(a-i)*u+1>>>0,d=new Uint8Array(l);i!==a;){for(var h=t[i],p=0,m=l-1;(0!==h||p<r)&&-1!==m;m--,p++)h+=256*d[m]>>>0,d[m]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");r=p,i++}for(var g=l-r;g!==l&&0===d[g];)g++;for(var f=c.repeat(n);g<l;++g)f+=e.charAt(d[g]);return f},decodeUnsafe:d,decode:function(e){var t=d(e);if(t)return t;throw new Error("Non-base"+s+" character")}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var o=n(203),r=n(0);class i{constructor(e,t,n=null){this._client=e,this._roomId=t,this.userId=n,this._requestEventId=null}get receiveStartFromOtherDevices(){return!0}get roomId(){return this._roomId}get transactionId(){return this._requestEventId}static getOtherPartyUserId(e,t){if(i.getEventType(e)!==o.i)return;const n=t.getUserId(),r=e.getSender(),a=e.getContent().to;return r===n?a:a===n?r:void 0}getTimestamp(e){return e.getTs()}static canCreateRequest(e){return e===o.i}static getTransactionId(e){if(i.getEventType(e)===o.i)return e.getId();{const t=e.getRelation();if(t&&"m.reference"===t.rel_type)return t.event_id}}static validateEvent(e,t){const n=i.getTransactionId(e);if("string"!=typeof n||0===n.length)return!1;const a=i.getEventType(e),s=e.getContent();if(a===o.i){if(!s||"string"!=typeof s.to||!s.to.length)return r.a.log("InRoomChannel: validateEvent: no valid to "+(s&&s.to)),!1;if(!i.getOtherPartyUserId(e,t))return r.a.log("InRoomChannel: validateEvent: not directed to or sent by me: "+e.getSender()+", "+(s&&s.to)),!1}return o.k.validateEvent(a,e,t)}static getEventType(e){const t=e.getType();if("m.room.message"===t){const t=e.getContent();if(t){const{msgtype:e}=t;if(e===o.i)return o.i}}return t&&t!==o.i?t:""}async handleEvent(e,t,n){if(t.hasEventId(e.getId()))return;const o=i.getEventType(e);if(e.getRoomId()!==this._roomId)return;if(null===this.userId){const t=i.getOtherPartyUserId(e,this._client);t&&(this.userId=t)}const a=this._client.getUserId(),s=e.getSender();if(null!==this.userId&&s!==a&&s!==this.userId)return void r.a.log("InRoomChannel: ignoring verification event from non-participating sender "+s);null===this._requestEventId&&(this._requestEventId=i.getTransactionId(e));const c=!!e.getUnsigned().transaction_id,l=e.getSender()===this._client.getUserId();return await t.handleEvent(o,e,n,c,l)}completedContentFromEvent(e){const t=Object.assign({},e.getContent());return t["m.relates_to"]=e.getRelation(),t}completeContent(e,t){return t=Object.assign({},t),e!==o.i&&e!==o.h&&e!==o.j||(t.from_device=this._client.getDeviceId()),e===o.i?t={body:this._client.getUserId()+" is requesting to verify your key, but your client does not support in-chat key verification. You will need to use legacy key verification to verify keys.",msgtype:o.i,to:this.userId,from_device:t.from_device,methods:t.methods}:t["m.relates_to"]={rel_type:"m.reference",event_id:this.transactionId},t}send(e,t){const n=this.completeContent(e,t);return this.sendCompleted(e,n)}async sendCompleted(e,t){let n=e;e===o.i&&(n="m.room.message");const r=await this._client.sendEvent(this._roomId,n,t);e===o.i&&(this._requestEventId=r.event_id)}}class a{constructor(){this._requestsByRoomId=new Map}getRequest(e){const t=e.getRoomId(),n=i.getTransactionId(e);return this._getRequestByTxnId(t,n)}getRequestByChannel(e){return this._getRequestByTxnId(e.roomId,e.transactionId)}_getRequestByTxnId(e,t){const n=this._requestsByRoomId.get(e);if(n)return n.get(t)}setRequest(e,t){this._setRequest(e.getRoomId(),i.getTransactionId(e),t)}setRequestByChannel(e,t){this._setRequest(e.roomId,e.transactionId,t)}_setRequest(e,t,n){let o=this._requestsByRoomId.get(e);o||(o=new Map,this._requestsByRoomId.set(e,o)),o.set(t,n)}removeRequest(e){const t=e.getRoomId(),n=this._requestsByRoomId.get(t);n&&(n.delete(i.getTransactionId(e)),0===n.size&&this._requestsByRoomId.delete(t))}findRequestInProgress(e){const t=this._requestsByRoomId.get(e);if(t)for(const e of t.values())if(e.pending)return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var o=n(176),r=n(0),i=n(203),a=n(269),s=n(129);class c{constructor(e,t,n,o=null,r=null){this._client=e,this.userId=t,this._devices=n,this.transactionId=o,this._deviceId=r}isToDevices(e){if(e.length===this._devices.length){for(const t of e){if(!this._devices.find(e=>e.deviceId===t.deviceId))return!1}return!0}return!1}get deviceId(){return this._deviceId}static getEventType(e){return e.getType()}static getTransactionId(e){const t=e.getContent();return t&&t.transaction_id}static canCreateRequest(e){return e===i.i||e===i.j}static validateEvent(e,t){if(e.isCancelled())return r.a.warn("Ignoring flagged verification request from "+e.getSender()),!1;const n=e.getContent();if(!n)return r.a.warn("ToDeviceChannel.validateEvent: invalid: no content"),!1;if(!n.transaction_id)return r.a.warn("ToDeviceChannel.validateEvent: invalid: no transaction_id"),!1;const o=e.getType();if(o===i.i){if(!Number.isFinite(n.timestamp))return r.a.warn("ToDeviceChannel.validateEvent: invalid: no timestamp"),!1;if(e.getSender()===t.getUserId()&&n.from_device==t.getDeviceId())return r.a.warn("ToDeviceChannel.validateEvent: invalid: from own device"),!1}return i.k.validateEvent(o,e,t)}getTimestamp(e){const t=e.getContent();return t&&t.timestamp}async handleEvent(e,t,n){const o=e.getType(),r=e.getContent();if(o===i.i||o===i.h||o===i.j){this.transactionId||(this.transactionId=r.transaction_id);const e=r.from_device;if(!this._deviceId&&this._devices.includes(e)&&(this._deviceId=e),!this._deviceId||this._deviceId!==e){const t=this.completeContent(Object(a.b)(Object(a.f)()));return this._sendToDevices(i.a,t,[e])}}const s=t.phase===i.f||t.phase===i.d;await t.handleEvent(e.getType(),e,n,!1,!1);const c=t.phase===i.f||t.phase===i.d;if((o===i.j||o===i.h)&&!s&&c&&this._deviceId){const e=this._devices.filter(e=>e!==this._deviceId);if(e.length){const t=this.completeContent({code:"m.accepted",reason:"Verification request accepted by another device"});await this._sendToDevices(i.a,t,e)}}}completedContentFromEvent(e){return e.getContent()}completeContent(e,t){return t=Object.assign({},t),this.transactionId&&(t.transaction_id=this.transactionId),e!==i.i&&e!==i.h&&e!==i.j||(t.from_device=this._client.getDeviceId()),e===i.i&&(t.timestamp=Date.now()),t}send(e,t={}){e!==i.i&&e!==i.j||this.transactionId||(this.transactionId=c.makeTransactionId());const n=this.completeContent(e,t);return this.sendCompleted(e,n)}async sendCompleted(e,t){let n;n=e===i.i?await this._sendToDevices(e,t,this._devices):await this._sendToDevices(e,t,[this._deviceId]);const o=new s.b({sender:this._client.getUserId(),content:t,type:e});return await this._request.handleEvent(e,o,!0,!0,!0),n}_sendToDevices(e,t,n){if(n.length){const o={};for(const e of n)o[e]=t;return this._client.sendToDevice(e,{[this.userId]:o})}return Promise.resolve()}static makeTransactionId(){return Object(o.a)(32)}}class l{constructor(){this._requestsByUserId=new Map}getRequest(e){return this.getRequestBySenderAndTxnId(e.getSender(),c.getTransactionId(e))}getRequestByChannel(e){return this.getRequestBySenderAndTxnId(e.userId,e.transactionId)}getRequestBySenderAndTxnId(e,t){const n=this._requestsByUserId.get(e);if(n)return n.get(t)}setRequest(e,t){this.setRequestBySenderAndTxnId(e.getSender(),c.getTransactionId(e),t)}setRequestByChannel(e,t){this.setRequestBySenderAndTxnId(e.userId,e.transactionId,t)}setRequestBySenderAndTxnId(e,t,n){let o=this._requestsByUserId.get(e);o||(o=new Map,this._requestsByUserId.set(e,o)),o.set(t,n)}removeRequest(e){const t=e.getSender(),n=this._requestsByUserId.get(t);n&&(n.delete(c.getTransactionId(e)),0===n.size&&this._requestsByUserId.delete(t))}findRequestInProgress(e,t){const n=this._requestsByUserId.get(e);if(n)for(const e of n.values())if(e.pending&&e.channel.isToDevices(t))return e}getRequestsInProgress(e){const t=this._requestsByUserId.get(e);return t?Array.from(t.values()).filter(e=>e.pending):[]}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(390);class r extends o.b{static factory(...e){return new r(...e)}static get NAME(){return"org.matrix.illegal_method"}async _doVerification(){throw new Error("Verification is not possible with this method")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(0),r=n(1);function i(e,t,n){this._workerScript=e,this._dbName=t,this._workerApi=n,this._worker=null,this._nextSeq=0,this._inFlight={},this._startPromise=null}i.prototype={connect:function(){return this._ensureStarted().then(()=>this._doCmd("connect"))},clearDatabase:function(){return this._ensureStarted().then(()=>this._doCmd("clearDatabase"))},isNewlyCreated:function(){return this._doCmd("isNewlyCreated")},getSavedSync:function(){return this._doCmd("getSavedSync")},getNextBatchToken:function(){return this._doCmd("getNextBatchToken")},setSyncData:function(e){return this._doCmd("setSyncData",[e])},syncToDatabase:function(e){return this._doCmd("syncToDatabase",[e])},getOutOfBandMembers:function(e){return this._doCmd("getOutOfBandMembers",[e])},setOutOfBandMembers:function(e,t){return this._doCmd("setOutOfBandMembers",[e,t])},clearOutOfBandMembers:function(e){return this._doCmd("clearOutOfBandMembers",[e])},getClientOptions:function(){return this._doCmd("getClientOptions")},storeClientOptions:function(e){return this._doCmd("storeClientOptions",[e])},getUserPresenceEvents:function(){return this._doCmd("getUserPresenceEvents")},_ensureStarted:function(){return null===this._startPromise&&(this._worker=new this._workerApi(this._workerScript),this._worker.onmessage=this._onWorkerMessage.bind(this),this._startPromise=this._doCmd("_setupWorker",[this._dbName]).then(()=>{o.a.log("IndexedDB worker is ready")})),this._startPromise},_doCmd:function(e,t){return Promise.resolve().then(()=>{const n=this._nextSeq++,o=Object(r.d)();return this._inFlight[n]=o,this._worker.postMessage({command:e,seq:n,args:t}),o.promise})},_onWorkerMessage:function(e){const t=e.data;if("cmd_success"==t.command||"cmd_fail"==t.command){if(void 0===t.seq)return void o.a.error("Got reply from worker with no seq");const e=this._inFlight[t.seq];if(void 0===e)return void o.a.error("Got reply for unknown seq "+t.seq);if(delete this._inFlight[t.seq],"cmd_success"==t.command)e.resolve(t.result);else{const n=new Error(t.error.message);n.name=t.error.name,e.reject(n)}}else o.a.warn("Unrecognised message from worker: "+t)}}},function(e,t,n){"use strict";var o=n(850);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(543),s=n(177),c=n(852),l={pure:!0,withProps:!1};e.exports={create:function(e,t){var n;(n=e).getStores||s(!1),n.calculateState||s(!1);var u=o({},l,t||{}),d=function(t){function n(o){r(this,n),t.call(this,o),this.state=u.withProps?e.calculateState(null,o):e.calculateState(null,void 0)}return i(n,t),n.prototype.componentDidMount=function(){var n=this;t.prototype.componentDidMount&&t.prototype.componentDidMount.call(this);var o=e.getStores(),r=!1,i=function(){r=!0};this._fluxContainerSubscriptions=o.map((function(e){return e.addListener(i)}));this._fluxContainerStoreGroup=new a(o,(function(){r&&n.setState((function(t){return u.withProps?e.calculateState(t,n.props):e.calculateState(t,void 0)})),r=!1}))},n.prototype.componentWillReceiveProps=function(n,o){t.prototype.componentWillReceiveProps&&t.prototype.componentWillReceiveProps.call(this,n,o),u.withProps&&(u.pure&&c(this.props,n)||this.setState((function(t){return e.calculateState(t,n)})))},n.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount&&t.prototype.componentWillUnmount.call(this),this._fluxContainerStoreGroup.release();var e=this._fluxContainerSubscriptions,n=Array.isArray(e),o=0;for(e=n?e:e[Symbol.iterator]();;){var r;if(n){if(o>=e.length)break;r=e[o++]}else{if((o=e.next()).done)break;r=o.value}r.remove()}this._fluxContainerSubscriptions=[]},n}(e),h=u.pure?function(e){function t(){r(this,t),e.apply(this,arguments)}return i(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!c(this.props,e)||!c(this.state,t)},t}(d):d,p=e.displayName||e.name;return h.displayName="FluxContainer("+p+")",h}}},function(e,t,n){"use strict";var o=Object.prototype.hasOwnProperty;e.exports=function(e,t){if(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(var i=o.bind(t),a=0;a<n.length;a++)if(!i(n[a])||e[n[a]]!==t[n[a]])return!1;return!0}},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(544),i=n(860),a=n(177),s=function(e){function t(){o(this,t),e.apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getInitialState=function(){return i.Map()},t.prototype.at=function(e){return this.has(e)||a(!1),this.get(e)},t.prototype.has=function(e){return this.getState().has(e)},t.prototype.get=function(e){return this.getState().get(e)},t.prototype.getAll=function(e,t){var n=this,o=i.Set(e),r=t||i.Map();return r.withMutations((function(e){var t=r,i=Array.isArray(t),a=0;for(t=i?t:t[Symbol.iterator]();;){var s;if(i){if(a>=t.length)break;s=t[a++]}else{if((a=t.next()).done)break;s=a.value}var c=s[0];o.has(c)&&n.has(c)||e.delete(c)}var l=o,u=Array.isArray(l),d=0;for(l=u?l:l[Symbol.iterator]();;){var h;if(u){if(d>=l.length)break;h=l[d++]}else{if((d=l.next()).done)break;h=d.value}var p=h;n.has(p)&&e.set(p,n.at(p))}}))},t}(r);e.exports=s},function(e,t,n){var o={EventEmitter:n(855),EmitterSubscription:n(546)};e.exports=o},function(e,t,n){"use strict";var o=n(546),r=n(857),i=n(858),a=n(547),s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._subscriber=new r,this._currentSubscription=null}return e.prototype.addListener=function(e,t,n){return this._subscriber.addSubscription(e,new o(this._subscriber,t,n))},e.prototype.once=function(e,t,n){var o=this;return this.addListener(e,(function(){o.removeCurrentListener(),t.apply(n,arguments)}))},e.prototype.removeAllListeners=function(e){this._subscriber.removeAllSubscriptions(e)},e.prototype.removeCurrentListener=function(){this._currentSubscription||a(!1),this._subscriber.removeSubscription(this._currentSubscription)},e.prototype.listeners=function(e){var t=this._subscriber.getSubscriptionsForType(e);return t?t.filter(i.thatReturnsTrue).map((function(e){return e.listener})):[]},e.prototype.emit=function(e){var t=this._subscriber.getSubscriptionsForType(e);if(t){for(var n=Object.keys(t),o=0;o<n.length;o++){var r=n[o],i=t[r];i&&(this._currentSubscription=i,this.__emitToSubscription.apply(this,[i].concat(Array.prototype.slice.call(arguments))))}this._currentSubscription=null}},e.prototype.__emitToSubscription=function(e,t){var n=Array.prototype.slice.call(arguments,2);e.listener.apply(e.context,n)},e}();e.exports=s},function(e,t,n){"use strict";var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.subscriber=t}return e.prototype.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},e}();e.exports=o},function(e,t,n){"use strict";var o=n(547),r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._subscriptionsForType={},this._currentSubscription=null}return e.prototype.addSubscription=function(e,t){t.subscriber!==this&&o(!1),this._subscriptionsForType[e]||(this._subscriptionsForType[e]=[]);var n=this._subscriptionsForType[e].length;return this._subscriptionsForType[e].push(t),t.eventType=e,t.key=n,t},e.prototype.removeAllSubscriptions=function(e){void 0===e?this._subscriptionsForType={}:delete this._subscriptionsForType[e]},e.prototype.removeSubscription=function(e){var t=e.eventType,n=e.key,o=this._subscriptionsForType[t];o&&delete o[n]},e.prototype.getSubscriptionsForType=function(e){return this._subscriptionsForType[e]},e}();e.exports=r},function(e,t,n){"use strict";function o(e){return function(){return e}}var r=function(){};r.thatReturns=o,r.thatReturnsFalse=o(!1),r.thatReturnsTrue=o(!0),r.thatReturnsNull=o(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var o=n(177);e.exports=function(e,t){o(!1)}},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function o(e){return s(e)?e:H(e)}function r(e){return c(e)?e:V(e)}function i(e){return a(e)&&!l(e)?e:z(e)}function a(e){return!(!e||!e[d])}function s(e){return!(!e||!e[h])}function c(e){return!(!e||!e[p])}function l(e){return s(e)||c(e)}function u(e){return!(!e||!e[m])}t(o,n),t(r,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=l,n.isOrdered=u,n.Keyed=o,n.Indexed=r,n.Set=i;var d="@@__IMMUTABLE_ITERABLE__@@",h="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",m="@@__IMMUTABLE_ORDERED__@@",g={},f={value:!1},_={value:!1};function b(e){return e.value=!1,e}function v(e){e&&(e.value=!0)}function E(){}function y(e,t){t=t||0;for(var n=Math.max(0,e.length-t),o=new Array(n),r=0;r<n;r++)o[r]=e[r+t];return o}function S(e){return void 0===e.size&&(e.size=e.__iterate(w)),e.size}function T(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?S(e)+t:t}function w(){return!0}function C(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function x(e,t){return k(e,t,0)}function O(e,t){return k(e,t,t)}function k(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var R,A,I,D="function"==typeof Symbol&&Symbol.iterator,N=D||"@@iterator";function F(e){this.next=e}function M(e,t,n,o){var r=0===e?t:1===e?n:[t,n];return o?o.value=r:o={value:r,done:!1},o}function P(){return{value:void 0,done:!0}}function L(e){return!!j(e)}function U(e){return e&&"function"==typeof e.next}function B(e){var t=j(e);return t&&t.call(e)}function j(e){var t=e&&(D&&e[D]||e["@@iterator"]);if("function"==typeof t)return t}function G(e){return e&&"number"==typeof e.length}function q(e){return null==e?X():a(e)?e.toSeq():function(e){var t=ee(e)||"object"==typeof e&&new W(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function H(e){return null==e?X().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():J(e)}function V(e){return null==e?X():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():Z(e)}function z(e){return(null==e?X():a(e)?s(e)?e.entrySeq():e:Z(e)).toSetSeq()}function K(e){this._array=e,this.size=e.length}function W(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function Y(e){this._iterable=e,this.size=e.length||e.size}function $(e){this._iterator=e,this._iteratorCache=[]}function Q(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function X(){return R||(R=new K([]))}function J(e){var t=Array.isArray(e)?new K(e).fromEntrySeq():U(e)?new $(e).fromEntrySeq():L(e)?new Y(e).fromEntrySeq():"object"==typeof e?new W(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function Z(e){var t=ee(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ee(e){return G(e)?new K(e):U(e)?new $(e):L(e)?new Y(e):void 0}function te(e,t,n,o){var r=e._cache;if(r){for(var i=r.length-1,a=0;a<=i;a++){var s=r[n?i-a:a];if(!1===t(s[1],o?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function ne(e,t,n,o){var r=e._cache;if(r){var i=r.length-1,a=0;return new F((function(){var e=r[n?i-a:a];return a++>i?{value:void 0,done:!0}:M(t,o?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function oe(e,t){return t?function e(t,n,o,r){return Array.isArray(n)?t.call(r,o,V(n).map((function(o,r){return e(t,o,r,n)}))):ie(n)?t.call(r,o,H(n).map((function(o,r){return e(t,o,r,n)}))):n}(t,e,"",{"":e}):re(e)}function re(e){return Array.isArray(e)?V(e).map(re).toList():ie(e)?H(e).map(re).toMap():e}function ie(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ae(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function se(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var o=e.entries();return t.every((function(e,t){var r=o.next().value;return r&&ae(r[1],e)&&(n||ae(r[0],t))}))&&o.next().done}var r=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{r=!0;var i=e;e=t,t=i}var d=!0,h=t.__iterate((function(t,o){if(n?!e.has(t):r?!ae(t,e.get(o,g)):!ae(e.get(o,g),t))return d=!1,!1}));return d&&e.size===h}function ce(e,t){if(!(this instanceof ce))return new ce(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(A)return A;A=this}}function le(e,t){if(!e)throw new Error(t)}function ue(e,t,n){if(!(this instanceof ue))return new ue(e,t,n);if(le(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(I)return I;I=this}}function de(){throw TypeError("Abstract")}function he(){}function pe(){}function me(){}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=0,F.VALUES=1,F.ENTRIES=2,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[N]=function(){return this},t(q,n),q.of=function(){return q(arguments)},q.prototype.toSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq {","}")},q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},q.prototype.__iterate=function(e,t){return te(this,e,t,!0)},q.prototype.__iterator=function(e,t){return ne(this,e,t,!0)},t(H,q),H.prototype.toKeyedSeq=function(){return this},t(V,q),V.of=function(){return V(arguments)},V.prototype.toIndexedSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq [","]")},V.prototype.__iterate=function(e,t){return te(this,e,t,!1)},V.prototype.__iterator=function(e,t){return ne(this,e,t,!1)},t(z,q),z.of=function(){return z(arguments)},z.prototype.toSetSeq=function(){return this},q.isSeq=Q,q.Keyed=H,q.Set=z,q.Indexed=V,q.prototype["@@__IMMUTABLE_SEQ__@@"]=!0,t(K,V),K.prototype.get=function(e,t){return this.has(e)?this._array[T(this,e)]:t},K.prototype.__iterate=function(e,t){for(var n=this._array,o=n.length-1,r=0;r<=o;r++)if(!1===e(n[t?o-r:r],r,this))return r+1;return r},K.prototype.__iterator=function(e,t){var n=this._array,o=n.length-1,r=0;return new F((function(){return r>o?{value:void 0,done:!0}:M(e,r,n[t?o-r++:r++])}))},t(W,H),W.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},W.prototype.has=function(e){return this._object.hasOwnProperty(e)},W.prototype.__iterate=function(e,t){for(var n=this._object,o=this._keys,r=o.length-1,i=0;i<=r;i++){var a=o[t?r-i:i];if(!1===e(n[a],a,this))return i+1}return i},W.prototype.__iterator=function(e,t){var n=this._object,o=this._keys,r=o.length-1,i=0;return new F((function(){var a=o[t?r-i:i];return i++>r?{value:void 0,done:!0}:M(e,a,n[a])}))},W.prototype[m]=!0,t(Y,V),Y.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=B(this._iterable),o=0;if(U(n))for(var r;!(r=n.next()).done&&!1!==e(r.value,o++,this););return o},Y.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=B(this._iterable);if(!U(n))return new F(P);var o=0;return new F((function(){var t=n.next();return t.done?t:M(e,o++,t.value)}))},t($,V),$.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,o=this._iterator,r=this._iteratorCache,i=0;i<r.length;)if(!1===e(r[i],i++,this))return i;for(;!(n=o.next()).done;){var a=n.value;if(r[i]=a,!1===e(a,i++,this))break}return i},$.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,o=this._iteratorCache,r=0;return new F((function(){if(r>=o.length){var t=n.next();if(t.done)return t;o[r]=t.value}return M(e,r,o[r++])}))},t(ce,V),ce.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ce.prototype.get=function(e,t){return this.has(e)?this._value:t},ce.prototype.includes=function(e){return ae(this._value,e)},ce.prototype.slice=function(e,t){var n=this.size;return C(e,t,n)?this:new ce(this._value,O(t,n)-x(e,n))},ce.prototype.reverse=function(){return this},ce.prototype.indexOf=function(e){return ae(this._value,e)?0:-1},ce.prototype.lastIndexOf=function(e){return ae(this._value,e)?this.size:-1},ce.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ce.prototype.__iterator=function(e,t){var n=this,o=0;return new F((function(){return o<n.size?M(e,o++,n._value):{value:void 0,done:!0}}))},ce.prototype.equals=function(e){return e instanceof ce?ae(this._value,e._value):se(e)},t(ue,V),ue.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},ue.prototype.get=function(e,t){return this.has(e)?this._start+T(this,e)*this._step:t},ue.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ue.prototype.slice=function(e,t){return C(e,t,this.size)?this:(e=x(e,this.size),(t=O(t,this.size))<=e?new ue(0,0):new ue(this.get(e,this._end),this.get(t,this._end),this._step))},ue.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},ue.prototype.lastIndexOf=function(e){return this.indexOf(e)},ue.prototype.__iterate=function(e,t){for(var n=this.size-1,o=this._step,r=t?this._start+n*o:this._start,i=0;i<=n;i++){if(!1===e(r,i,this))return i+1;r+=t?-o:o}return i},ue.prototype.__iterator=function(e,t){var n=this.size-1,o=this._step,r=t?this._start+n*o:this._start,i=0;return new F((function(){var a=r;return r+=t?-o:o,i>n?{value:void 0,done:!0}:M(e,i++,a)}))},ue.prototype.equals=function(e){return e instanceof ue?this._start===e._start&&this._end===e._end&&this._step===e._step:se(this,e)},t(de,n),t(he,de),t(pe,de),t(me,de),de.Keyed=he,de.Indexed=pe,de.Set=me;var ge="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),o=65535&(t|=0);return n*o+((e>>>16)*o+n*(t>>>16)<<16>>>0)|0};function fe(e){return e>>>1&1073741824|3221225471&e}function _e(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return fe(n)}if("string"===t)return e.length>Ce?function(e){var t=ke[e];return void 0===t&&(t=be(e),Oe===xe&&(Oe=0,ke={}),Oe++,ke[e]=t),t}(e):be(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Se&&void 0!==(t=ve.get(e)))return t;if(void 0!==(t=e[we]))return t;if(!ye){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[we]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Te,1073741824&Te&&(Te=0),Se)ve.set(e,t);else{if(void 0!==Ee&&!1===Ee(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ye)Object.defineProperty(e,we,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[we]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[we]=t}}return t}(e);if("function"==typeof e.toString)return be(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function be(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return fe(t)}var ve,Ee=Object.isExtensible,ye=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Se="function"==typeof WeakMap;Se&&(ve=new WeakMap);var Te=0,we="__immutablehash__";"function"==typeof Symbol&&(we=Symbol(we));var Ce=16,xe=255,Oe=0,ke={};function Re(e){le(e!==1/0,"Cannot perform this action with an infinite size.")}function Ae(e){return null==e?Ve():Ie(e)&&!u(e)?e:Ve().withMutations((function(t){var n=o(e);Re(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ie(e){return!(!e||!e[Ne])}t(Ae,he),Ae.of=function(){var t=e.call(arguments,0);return Ve().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},Ae.prototype.toString=function(){return this.__toString("Map {","}")},Ae.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ae.prototype.set=function(e,t){return ze(this,e,t)},Ae.prototype.setIn=function(e,t){return this.updateIn(e,g,(function(){return t}))},Ae.prototype.remove=function(e){return ze(this,e,g)},Ae.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return g}))},Ae.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ae.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var o=function e(t,n,o,r){var i=t===g,a=n.next();if(a.done){var s=i?o:t,c=r(s);return c===s?t:c}le(i||t&&t.set,"invalid keyPath");var l=a.value,u=i?g:t.get(l,g),d=e(u,n,o,r);return d===u?t:d===g?t.remove(l):(i?Ve():t).set(l,d)}(this,$t(e),t,n);return o===g?void 0:o},Ae.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ve()},Ae.prototype.merge=function(){return $e(this,void 0,arguments)},Ae.prototype.mergeWith=function(t){var n=e.call(arguments,1);return $e(this,t,n)},Ae.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Ve(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ae.prototype.mergeDeep=function(){return $e(this,Qe,arguments)},Ae.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return $e(this,Xe(t),n)},Ae.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Ve(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ae.prototype.sort=function(e){return yt(Ut(this,e))},Ae.prototype.sortBy=function(e,t){return yt(Ut(this,t,e))},Ae.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ae.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new E)},Ae.prototype.asImmutable=function(){return this.__ensureOwner()},Ae.prototype.wasAltered=function(){return this.__altered},Ae.prototype.__iterator=function(e,t){return new je(this,e,t)},Ae.prototype.__iterate=function(e,t){var n=this,o=0;return this._root&&this._root.iterate((function(t){return o++,e(t[1],t[0],n)}),t),o},Ae.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?He(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ae.isMap=Ie;var De,Ne="@@__IMMUTABLE_MAP__@@",Fe=Ae.prototype;function Me(e,t){this.ownerID=e,this.entries=t}function Pe(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Le(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Ue(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Be(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function je(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&qe(e._root)}function Ge(e,t){return M(e,t[0],t[1])}function qe(e,t){return{node:e,index:0,__prev:t}}function He(e,t,n,o){var r=Object.create(Fe);return r.size=e,r._root=t,r.__ownerID=n,r.__hash=o,r.__altered=!1,r}function Ve(){return De||(De=He(0))}function ze(e,t,n){var o,r;if(e._root){var i=b(f),a=b(_);if(o=Ke(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;r=e.size+(i.value?n===g?-1:1:0)}else{if(n===g)return e;r=1,o=new Me(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=r,e._root=o,e.__hash=void 0,e.__altered=!0,e):o?He(r,o):Ve()}function Ke(e,t,n,o,r,i,a,s){return e?e.update(t,n,o,r,i,a,s):i===g?e:(v(s),v(a),new Be(t,o,[r,i]))}function We(e){return e.constructor===Be||e.constructor===Ue}function Ye(e,t,n,o,r){if(e.keyHash===o)return new Ue(t,o,[e.entry,r]);var i,a=31&(0===n?e.keyHash:e.keyHash>>>n),s=31&(0===n?o:o>>>n);return new Pe(t,1<<a|1<<s,a===s?[Ye(e,t,n+5,o,r)]:(i=new Be(t,o,r),a<s?[e,i]:[i,e]))}function $e(e,t,n){for(var r=[],i=0;i<n.length;i++){var s=n[i],c=o(s);a(s)||(c=c.map((function(e){return oe(e)}))),r.push(c)}return Je(e,t,r)}function Qe(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ae(e,t)?e:t}function Xe(e){return function(t,n,o){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var r=e(t,n,o);return ae(t,r)?t:r}}function Je(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var o=t?function(n,o){e.update(o,g,(function(e){return e===g?n:t(e,n,o)}))}:function(t,n){e.set(n,t)},r=0;r<n.length;r++)n[r].forEach(o)})):e.constructor(n[0])}function Ze(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function et(e,t,n,o){var r=o?e:y(e);return r[t]=n,r}Fe[Ne]=!0,Fe.delete=Fe.remove,Fe.removeIn=Fe.deleteIn,Me.prototype.get=function(e,t,n,o){for(var r=this.entries,i=0,a=r.length;i<a;i++)if(ae(n,r[i][0]))return r[i][1];return o},Me.prototype.update=function(e,t,n,o,r,i,a){for(var s=r===g,c=this.entries,l=0,u=c.length;l<u&&!ae(o,c[l][0]);l++);var d=l<u;if(d?c[l][1]===r:s)return this;if(v(a),(s||!d)&&v(i),!s||1!==c.length){if(!d&&!s&&c.length>=tt)return function(e,t,n,o){e||(e=new E);for(var r=new Be(e,_e(n),[n,o]),i=0;i<t.length;i++){var a=t[i];r=r.update(e,0,void 0,a[0],a[1])}return r}(e,c,o,r);var h=e&&e===this.ownerID,p=h?c:y(c);return d?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[o,r]:p.push([o,r]),h?(this.entries=p,this):new Me(e,p)}},Pe.prototype.get=function(e,t,n,o){void 0===t&&(t=_e(n));var r=1<<(31&(0===e?t:t>>>e)),i=this.bitmap;return 0==(i&r)?o:this.nodes[Ze(i&r-1)].get(e+5,t,n,o)},Pe.prototype.update=function(e,t,n,o,r,i,a){void 0===n&&(n=_e(o));var s=31&(0===t?n:n>>>t),c=1<<s,l=this.bitmap,u=0!=(l&c);if(!u&&r===g)return this;var d=Ze(l&c-1),h=this.nodes,p=u?h[d]:void 0,m=Ke(p,e,t+5,n,o,r,i,a);if(m===p)return this;if(!u&&m&&h.length>=nt)return function(e,t,n,o,r){for(var i=0,a=new Array(32),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[o]=r,new Le(e,i+1,a)}(e,h,l,s,m);if(u&&!m&&2===h.length&&We(h[1^d]))return h[1^d];if(u&&m&&1===h.length&&We(m))return m;var f=e&&e===this.ownerID,_=u?m?l:l^c:l|c,b=u?m?et(h,d,m,f):function(e,t,n){var o=e.length-1;if(n&&t===o)return e.pop(),e;for(var r=new Array(o),i=0,a=0;a<o;a++)a===t&&(i=1),r[a]=e[a+i];return r}(h,d,f):function(e,t,n,o){var r=e.length+1;if(o&&t+1===r)return e[t]=n,e;for(var i=new Array(r),a=0,s=0;s<r;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(h,d,m,f);return f?(this.bitmap=_,this.nodes=b,this):new Pe(e,_,b)},Le.prototype.get=function(e,t,n,o){void 0===t&&(t=_e(n));var r=31&(0===e?t:t>>>e),i=this.nodes[r];return i?i.get(e+5,t,n,o):o},Le.prototype.update=function(e,t,n,o,r,i,a){void 0===n&&(n=_e(o));var s=31&(0===t?n:n>>>t),c=r===g,l=this.nodes,u=l[s];if(c&&!u)return this;var d=Ke(u,e,t+5,n,o,r,i,a);if(d===u)return this;var h=this.count;if(u){if(!d&&--h<ot)return function(e,t,n,o){for(var r=0,i=0,a=new Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var u=t[s];void 0!==u&&s!==o&&(r|=c,a[i++]=u)}return new Pe(e,r,a)}(e,l,h,s)}else h++;var p=e&&e===this.ownerID,m=et(l,s,d,p);return p?(this.count=h,this.nodes=m,this):new Le(e,h,m)},Ue.prototype.get=function(e,t,n,o){for(var r=this.entries,i=0,a=r.length;i<a;i++)if(ae(n,r[i][0]))return r[i][1];return o},Ue.prototype.update=function(e,t,n,o,r,i,a){void 0===n&&(n=_e(o));var s=r===g;if(n!==this.keyHash)return s?this:(v(a),v(i),Ye(this,e,t,n,[o,r]));for(var c=this.entries,l=0,u=c.length;l<u&&!ae(o,c[l][0]);l++);var d=l<u;if(d?c[l][1]===r:s)return this;if(v(a),(s||!d)&&v(i),s&&2===u)return new Be(e,this.keyHash,c[1^l]);var h=e&&e===this.ownerID,p=h?c:y(c);return d?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[o,r]:p.push([o,r]),h?(this.entries=p,this):new Ue(e,this.keyHash,p)},Be.prototype.get=function(e,t,n,o){return ae(n,this.entry[0])?this.entry[1]:o},Be.prototype.update=function(e,t,n,o,r,i,a){var s=r===g,c=ae(o,this.entry[0]);return(c?r===this.entry[1]:s)?this:(v(a),s?void v(i):c?e&&e===this.ownerID?(this.entry[1]=r,this):new Be(e,this.keyHash,[o,r]):(v(i),Ye(this,e,t,_e(o),[o,r])))},Me.prototype.iterate=Ue.prototype.iterate=function(e,t){for(var n=this.entries,o=0,r=n.length-1;o<=r;o++)if(!1===e(n[t?r-o:o]))return!1},Pe.prototype.iterate=Le.prototype.iterate=function(e,t){for(var n=this.nodes,o=0,r=n.length-1;o<=r;o++){var i=n[t?r-o:o];if(i&&!1===i.iterate(e,t))return!1}},Be.prototype.iterate=function(e,t){return e(this.entry)},t(je,F),je.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,o=t.node,r=t.index++;if(o.entry){if(0===r)return Ge(e,o.entry)}else if(o.entries){if(r<=(n=o.entries.length-1))return Ge(e,o.entries[this._reverse?n-r:r])}else if(r<=(n=o.nodes.length-1)){var i=o.nodes[this._reverse?n-r:r];if(i){if(i.entry)return Ge(e,i.entry);t=this._stack=qe(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var tt=8,nt=16,ot=8;function rt(e){var t=mt();if(null==e)return t;if(it(e))return e;var n=r(e),o=n.size;return 0===o?t:(Re(o),o>0&&o<32?pt(0,o,5,null,new ct(n.toArray())):t.withMutations((function(e){e.setSize(o),n.forEach((function(t,n){return e.set(n,t)}))})))}function it(e){return!(!e||!e[at])}t(rt,pe),rt.of=function(){return this(arguments)},rt.prototype.toString=function(){return this.__toString("List [","]")},rt.prototype.get=function(e,t){if((e=T(this,e))>=0&&e<this.size){var n=_t(this,e+=this._origin);return n&&n.array[31&e]}return t},rt.prototype.set=function(e,t){return function(e,t,n){if((t=T(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?bt(e,t).set(0,n):bt(e,0,t+1).set(t,n)}));t+=e._origin;var o=e._tail,r=e._root,i=b(_);return t>=Et(e._capacity)?o=gt(o,e.__ownerID,0,t,n,i):r=gt(r,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=r,e._tail=o,e.__hash=void 0,e.__altered=!0,e):pt(e._origin,e._capacity,e._level,r,o):e}(this,e,t)},rt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},rt.prototype.insert=function(e,t){return this.splice(e,0,t)},rt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):mt()},rt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){bt(n,0,t+e.length);for(var o=0;o<e.length;o++)n.set(t+o,e[o])}))},rt.prototype.pop=function(){return bt(this,0,-1)},rt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){bt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},rt.prototype.shift=function(){return bt(this,1)},rt.prototype.merge=function(){return vt(this,void 0,arguments)},rt.prototype.mergeWith=function(t){var n=e.call(arguments,1);return vt(this,t,n)},rt.prototype.mergeDeep=function(){return vt(this,Qe,arguments)},rt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return vt(this,Xe(t),n)},rt.prototype.setSize=function(e){return bt(this,0,e)},rt.prototype.slice=function(e,t){var n=this.size;return C(e,t,n)?this:bt(this,x(e,n),O(t,n))},rt.prototype.__iterator=function(e,t){var n=0,o=ht(this,t);return new F((function(){var t=o();return t===dt?{value:void 0,done:!0}:M(e,n++,t)}))},rt.prototype.__iterate=function(e,t){for(var n,o=0,r=ht(this,t);(n=r())!==dt&&!1!==e(n,o++,this););return o},rt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?pt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},rt.isList=it;var at="@@__IMMUTABLE_LIST__@@",st=rt.prototype;function ct(e,t){this.array=e,this.ownerID=t}st[at]=!0,st.delete=st.remove,st.setIn=Fe.setIn,st.deleteIn=st.removeIn=Fe.removeIn,st.update=Fe.update,st.updateIn=Fe.updateIn,st.mergeIn=Fe.mergeIn,st.mergeDeepIn=Fe.mergeDeepIn,st.withMutations=Fe.withMutations,st.asMutable=Fe.asMutable,st.asImmutable=Fe.asImmutable,st.wasAltered=Fe.wasAltered,ct.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var o=n>>>t&31;if(o>=this.array.length)return new ct([],e);var r,i=0===o;if(t>0){var a=this.array[o];if((r=a&&a.removeBefore(e,t-5,n))===a&&i)return this}if(i&&!r)return this;var s=ft(this,e);if(!i)for(var c=0;c<o;c++)s.array[c]=void 0;return r&&(s.array[o]=r),s},ct.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var o,r=n-1>>>t&31;if(r>=this.array.length)return this;if(t>0){var i=this.array[r];if((o=i&&i.removeAfter(e,t-5,n))===i&&r===this.array.length-1)return this}var a=ft(this,e);return a.array.splice(r+1),o&&(a.array[r]=o),a};var lt,ut,dt={};function ht(e,t){var n=e._origin,o=e._capacity,r=Et(o),i=e._tail;return a(e._root,e._level,0);function a(e,s,c){return 0===s?function(e,a){var s=a===r?i&&i.array:e&&e.array,c=a>n?0:n-a,l=o-a;return l>32&&(l=32),function(){if(c===l)return dt;var e=t?--l:c++;return s&&s[e]}}(e,c):function(e,r,i){var s,c=e&&e.array,l=i>n?0:n-i>>r,u=1+(o-i>>r);return u>32&&(u=32),function(){for(;;){if(s){var e=s();if(e!==dt)return e;s=null}if(l===u)return dt;var n=t?--u:l++;s=a(c&&c[n],r-5,i+(n<<r))}}}(e,s,c)}}function pt(e,t,n,o,r,i,a){var s=Object.create(st);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=o,s._tail=r,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function mt(){return lt||(lt=pt(0,0,5))}function gt(e,t,n,o,r,i){var a,s=o>>>n&31,c=e&&s<e.array.length;if(!c&&void 0===r)return e;if(n>0){var l=e&&e.array[s],u=gt(l,t,n-5,o,r,i);return u===l?e:((a=ft(e,t)).array[s]=u,a)}return c&&e.array[s]===r?e:(v(i),a=ft(e,t),void 0===r&&s===a.array.length-1?a.array.pop():a.array[s]=r,a)}function ft(e,t){return t&&e&&t===e.ownerID?e:new ct(e?e.array.slice():[],t)}function _t(e,t){if(t>=Et(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,o=e._level;n&&o>0;)n=n.array[t>>>o&31],o-=5;return n}}function bt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var o=e.__ownerID||new E,r=e._origin,i=e._capacity,a=r+t,s=void 0===n?i:n<0?i+n:r+n;if(a===r&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,l=e._root,u=0;a+u<0;)l=new ct(l&&l.array.length?[void 0,l]:[],o),u+=1<<(c+=5);u&&(a+=u,r+=u,s+=u,i+=u);for(var d=Et(i),h=Et(s);h>=1<<c+5;)l=new ct(l&&l.array.length?[l]:[],o),c+=5;var p=e._tail,m=h<d?_t(e,s-1):h>d?new ct([],o):p;if(p&&h>d&&a<i&&p.array.length){for(var g=l=ft(l,o),f=c;f>5;f-=5){var _=d>>>f&31;g=g.array[_]=ft(g.array[_],o)}g.array[d>>>5&31]=p}if(s<i&&(m=m&&m.removeAfter(o,0,s)),a>=h)a-=h,s-=h,c=5,l=null,m=m&&m.removeBefore(o,0,a);else if(a>r||h<d){for(u=0;l;){var b=a>>>c&31;if(b!==h>>>c&31)break;b&&(u+=(1<<c)*b),c-=5,l=l.array[b]}l&&a>r&&(l=l.removeBefore(o,c,a-u)),l&&h<d&&(l=l.removeAfter(o,c,h-u)),u&&(a-=u,s-=u)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=l,e._tail=m,e.__hash=void 0,e.__altered=!0,e):pt(a,s,c,l,m)}function vt(e,t,n){for(var o=[],i=0,s=0;s<n.length;s++){var c=n[s],l=r(c);l.size>i&&(i=l.size),a(c)||(l=l.map((function(e){return oe(e)}))),o.push(l)}return i>e.size&&(e=e.setSize(i)),Je(e,t,o)}function Et(e){return e<32?0:e-1>>>5<<5}function yt(e){return null==e?wt():St(e)?e:wt().withMutations((function(t){var n=o(e);Re(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function St(e){return Ie(e)&&u(e)}function Tt(e,t,n,o){var r=Object.create(yt.prototype);return r.size=e?e.size:0,r._map=e,r._list=t,r.__ownerID=n,r.__hash=o,r}function wt(){return ut||(ut=Tt(Ve(),mt()))}function Ct(e,t,n){var o,r,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===g){if(!c)return e;a.size>=32&&a.size>=2*i.size?(o=(r=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(o.__ownerID=r.__ownerID=e.__ownerID)):(o=i.remove(t),r=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;o=i,r=a.set(s,[t,n])}else o=i.set(t,a.size),r=a.set(a.size,[t,n]);return e.__ownerID?(e.size=o.size,e._map=o,e._list=r,e.__hash=void 0,e):Tt(o,r)}function xt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ot(e){this._iter=e,this.size=e.size}function kt(e){this._iter=e,this.size=e.size}function Rt(e){this._iter=e,this.size=e.size}function At(e){var t=Kt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Wt,t.__iterateUncached=function(t,n){var o=this;return e.__iterate((function(e,n){return!1!==t(n,e,o)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var o=e.__iterator(t,n);return new F((function(){var e=o.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function It(e,t,n){var o=Kt(e);return o.size=e.size,o.has=function(t){return e.has(t)},o.get=function(o,r){var i=e.get(o,g);return i===g?r:t.call(n,i,o,e)},o.__iterateUncached=function(o,r){var i=this;return e.__iterate((function(e,r,a){return!1!==o(t.call(n,e,r,a),r,i)}),r)},o.__iteratorUncached=function(o,r){var i=e.__iterator(2,r);return new F((function(){var r=i.next();if(r.done)return r;var a=r.value,s=a[0];return M(o,s,t.call(n,a[1],s,e),r)}))},o}function Dt(e,t){var n=Kt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=At(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,o){return e.get(t?n:-1-n,o)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Wt,n.__iterate=function(t,n){var o=this;return e.__iterate((function(e,n){return t(e,n,o)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Nt(e,t,n,o){var r=Kt(e);return o&&(r.has=function(o){var r=e.get(o,g);return r!==g&&!!t.call(n,r,o,e)},r.get=function(o,r){var i=e.get(o,g);return i!==g&&t.call(n,i,o,e)?i:r}),r.__iterateUncached=function(r,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,r(e,o?i:s-1,a)}),i),s},r.__iteratorUncached=function(r,i){var a=e.__iterator(2,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return M(r,o?l:s++,u,i)}}))},r}function Ft(e,t,n,o){var r=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=r:n|=0),C(t,n,r))return e;var i=x(t,r),a=O(n,r);if(i!=i||a!=a)return Ft(e.toSeq().cacheResult(),t,n,o);var s,c=a-i;c==c&&(s=c<0?0:c);var l=Kt(e);return l.size=0===s?s:e.size&&s||void 0,!o&&Q(e)&&s>=0&&(l.get=function(t,n){return(t=T(this,t))>=0&&t<s?e.get(t+i,n):n}),l.__iterateUncached=function(t,n){var r=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,l=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return l++,!1!==t(e,o?n:l-1,r)&&l!==s})),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var r=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<i;)r.next();if(++c>s)return{value:void 0,done:!0};var e=r.next();return o||1===t?e:M(t,c-1,0===t?void 0:e.value[1],e)}))},l}function Mt(e,t,n,o){var r=Kt(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var s=!0,c=0;return e.__iterate((function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return c++,r(e,o?i:c-1,a)})),c},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var s=e.__iterator(2,i),c=!0,l=0;return new F((function(){var e,i,u;do{if((e=s.next()).done)return o||1===r?e:M(r,l++,0===r?void 0:e.value[1],e);var d=e.value;i=d[0],u=d[1],c&&(c=t.call(n,u,i,a))}while(c);return 2===r?e:M(r,i,u,e)}))},r}function Pt(e,t){var n=s(e),r=[e].concat(t).map((function(e){return a(e)?n&&(e=o(e)):e=n?J(e):Z(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&s(i)||c(e)&&c(i))return i}var l=new K(r);return n?l=l.toKeyedSeq():c(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}function Lt(e,t,n){var o=Kt(e);return o.__iterateUncached=function(o,r){var i=0,s=!1;return function e(c,l){var u=this;c.__iterate((function(r,c){return(!t||l<t)&&a(r)?e(r,l+1):!1===o(r,n?c:i++,u)&&(s=!0),!s}),r)}(e,0),i},o.__iteratorUncached=function(o,r){var i=e.__iterator(o,r),s=[],c=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var l=e.value;if(2===o&&(l=l[1]),t&&!(s.length<t)||!a(l))return n?e:M(o,c++,l,e);s.push(i),i=l.__iterator(o,r)}else i=s.pop()}return{value:void 0,done:!0}}))},o}function Ut(e,t,n){t||(t=Yt);var o=s(e),r=0,i=e.toSeq().map((function(t,o){return[o,t,r++,n?n(t,o,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(o?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),o?H(i):c(e)?V(i):z(i)}function Bt(e,t,n){if(t||(t=Yt),n){var o=e.toSeq().map((function(t,o){return[t,n(t,o,e)]})).reduce((function(e,n){return jt(t,e[1],n[1])?n:e}));return o&&o[0]}return e.reduce((function(e,n){return jt(t,e,n)?n:e}))}function jt(e,t,n){var o=e(n,t);return 0===o&&n!==t&&(null==n||n!=n)||o>0}function Gt(e,t,o){var r=Kt(e);return r.size=new K(o).map((function(e){return e.size})).min(),r.__iterate=function(e,t){for(var n,o=this.__iterator(1,t),r=0;!(n=o.next()).done&&!1!==e(n.value,r++,this););return r},r.__iteratorUncached=function(e,r){var i=o.map((function(e){return e=n(e),B(r?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:M(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},r}function qt(e,t){return Q(e)?t:e.constructor(t)}function Ht(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Vt(e){return Re(e.size),S(e)}function zt(e){return s(e)?o:c(e)?r:i}function Kt(e){return Object.create((s(e)?H:c(e)?V:z).prototype)}function Wt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function Yt(e,t){return e>t?1:e<t?-1:0}function $t(e){var t=B(e);if(!t){if(!G(e))throw new TypeError("Expected iterable or array-like: "+e);t=B(n(e))}return t}function Qt(e,t){var n,o=function(i){if(i instanceof o)return i;if(!(this instanceof o))return new o(i);if(!n){n=!0;var a=Object.keys(e);!function(e,t){try{t.forEach(en.bind(void 0,e))}catch(e){}}(r,a),r.size=a.length,r._name=t,r._keys=a,r._defaultValues=e}this._map=Ae(i)},r=o.prototype=Object.create(Xt);return r.constructor=o,o}t(yt,Ae),yt.of=function(){return this(arguments)},yt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},yt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},yt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):wt()},yt.prototype.set=function(e,t){return Ct(this,e,t)},yt.prototype.remove=function(e){return Ct(this,e,g)},yt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},yt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},yt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},yt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Tt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},yt.isOrderedMap=St,yt.prototype[m]=!0,yt.prototype.delete=yt.prototype.remove,t(xt,H),xt.prototype.get=function(e,t){return this._iter.get(e,t)},xt.prototype.has=function(e){return this._iter.has(e)},xt.prototype.valueSeq=function(){return this._iter.valueSeq()},xt.prototype.reverse=function(){var e=this,t=Dt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},xt.prototype.map=function(e,t){var n=this,o=It(this,e,t);return this._useKeys||(o.valueSeq=function(){return n._iter.toSeq().map(e,t)}),o},xt.prototype.__iterate=function(e,t){var n,o=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,o)}:(n=t?Vt(this):0,function(r){return e(r,t?--n:n++,o)}),t)},xt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(1,t),o=t?Vt(this):0;return new F((function(){var r=n.next();return r.done?r:M(e,t?--o:o++,r.value,r)}))},xt.prototype[m]=!0,t(Ot,V),Ot.prototype.includes=function(e){return this._iter.includes(e)},Ot.prototype.__iterate=function(e,t){var n=this,o=0;return this._iter.__iterate((function(t){return e(t,o++,n)}),t)},Ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t),o=0;return new F((function(){var t=n.next();return t.done?t:M(e,o++,t.value,t)}))},t(kt,z),kt.prototype.has=function(e){return this._iter.includes(e)},kt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},kt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new F((function(){var t=n.next();return t.done?t:M(e,t.value,t.value,t)}))},t(Rt,H),Rt.prototype.entrySeq=function(){return this._iter.toSeq()},Rt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Ht(t);var o=a(t);return e(o?t.get(1):t[1],o?t.get(0):t[0],n)}}),t)},Rt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var o=t.value;if(o){Ht(o);var r=a(o);return M(e,r?o.get(0):o[0],r?o.get(1):o[1],t)}}}))},Ot.prototype.cacheResult=xt.prototype.cacheResult=kt.prototype.cacheResult=Rt.prototype.cacheResult=Wt,t(Qt,he),Qt.prototype.toString=function(){return this.__toString(Zt(this)+" {","}")},Qt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Qt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Qt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Jt(this,Ve()))},Qt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Zt(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Jt(this,n)},Qt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Jt(this,t)},Qt.prototype.wasAltered=function(){return this._map.wasAltered()},Qt.prototype.__iterator=function(e,t){var n=this;return o(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Qt.prototype.__iterate=function(e,t){var n=this;return o(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Qt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Jt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Xt=Qt.prototype;function Jt(e,t,n){var o=Object.create(Object.getPrototypeOf(e));return o._map=t,o.__ownerID=n,o}function Zt(e){return e._name||e.constructor.name||"Record"}function en(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){le(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function tn(e){return null==e?ln():nn(e)&&!u(e)?e:ln().withMutations((function(t){var n=i(e);Re(n.size),n.forEach((function(e){return t.add(e)}))}))}function nn(e){return!(!e||!e[rn])}Xt.delete=Xt.remove,Xt.deleteIn=Xt.removeIn=Fe.removeIn,Xt.merge=Fe.merge,Xt.mergeWith=Fe.mergeWith,Xt.mergeIn=Fe.mergeIn,Xt.mergeDeep=Fe.mergeDeep,Xt.mergeDeepWith=Fe.mergeDeepWith,Xt.mergeDeepIn=Fe.mergeDeepIn,Xt.setIn=Fe.setIn,Xt.update=Fe.update,Xt.updateIn=Fe.updateIn,Xt.withMutations=Fe.withMutations,Xt.asMutable=Fe.asMutable,Xt.asImmutable=Fe.asImmutable,t(tn,me),tn.of=function(){return this(arguments)},tn.fromKeys=function(e){return this(o(e).keySeq())},tn.prototype.toString=function(){return this.__toString("Set {","}")},tn.prototype.has=function(e){return this._map.has(e)},tn.prototype.add=function(e){return sn(this,this._map.set(e,!0))},tn.prototype.remove=function(e){return sn(this,this._map.remove(e))},tn.prototype.clear=function(){return sn(this,this._map.clear())},tn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},tn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},tn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},tn.prototype.merge=function(){return this.union.apply(this,arguments)},tn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},tn.prototype.sort=function(e){return un(Ut(this,e))},tn.prototype.sortBy=function(e,t){return un(Ut(this,t,e))},tn.prototype.wasAltered=function(){return this._map.wasAltered()},tn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,o){return e(o,o,n)}),t)},tn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},tn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},tn.isSet=nn;var on,rn="@@__IMMUTABLE_SET__@@",an=tn.prototype;function sn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function cn(e,t){var n=Object.create(an);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function ln(){return on||(on=cn(Ve()))}function un(e){return null==e?gn():dn(e)?e:gn().withMutations((function(t){var n=i(e);Re(n.size),n.forEach((function(e){return t.add(e)}))}))}function dn(e){return nn(e)&&u(e)}an[rn]=!0,an.delete=an.remove,an.mergeDeep=an.merge,an.mergeDeepWith=an.mergeWith,an.withMutations=Fe.withMutations,an.asMutable=Fe.asMutable,an.asImmutable=Fe.asImmutable,an.__empty=ln,an.__make=cn,t(un,tn),un.of=function(){return this(arguments)},un.fromKeys=function(e){return this(o(e).keySeq())},un.prototype.toString=function(){return this.__toString("OrderedSet {","}")},un.isOrderedSet=dn;var hn,pn=un.prototype;function mn(e,t){var n=Object.create(pn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function gn(){return hn||(hn=mn(wt()))}function fn(e){return null==e?Sn():_n(e)?e:Sn().unshiftAll(e)}function _n(e){return!(!e||!e[vn])}pn[m]=!0,pn.__empty=gn,pn.__make=mn,t(fn,pe),fn.of=function(){return this(arguments)},fn.prototype.toString=function(){return this.__toString("Stack [","]")},fn.prototype.get=function(e,t){var n=this._head;for(e=T(this,e);n&&e--;)n=n.next;return n?n.value:t},fn.prototype.peek=function(){return this._head&&this._head.value},fn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):yn(e,t)},fn.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;Re(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):yn(t,n)},fn.prototype.pop=function(){return this.slice(1)},fn.prototype.unshift=function(){return this.push.apply(this,arguments)},fn.prototype.unshiftAll=function(e){return this.pushAll(e)},fn.prototype.shift=function(){return this.pop.apply(this,arguments)},fn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Sn()},fn.prototype.slice=function(e,t){if(C(e,t,this.size))return this;var n=x(e,this.size);if(O(t,this.size)!==this.size)return pe.prototype.slice.call(this,e,t);for(var o=this.size-n,r=this._head;n--;)r=r.next;return this.__ownerID?(this.size=o,this._head=r,this.__hash=void 0,this.__altered=!0,this):yn(o,r)},fn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?yn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},fn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,o=this._head;o&&!1!==e(o.value,n++,this);)o=o.next;return n},fn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,o=this._head;return new F((function(){if(o){var t=o.value;return o=o.next,M(e,n++,t)}return{value:void 0,done:!0}}))},fn.isStack=_n;var bn,vn="@@__IMMUTABLE_STACK__@@",En=fn.prototype;function yn(e,t,n,o){var r=Object.create(En);return r.size=e,r._head=t,r.__ownerID=n,r.__hash=o,r.__altered=!1,r}function Sn(){return bn||(bn=yn(0))}function Tn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}En[vn]=!0,En.withMutations=Fe.withMutations,En.asMutable=Fe.asMutable,En.asImmutable=Fe.asImmutable,En.wasAltered=Fe.wasAltered,n.Iterator=F,Tn(n,{toArray:function(){Re(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Ot(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new xt(this,!0)},toMap:function(){return Ae(this.toKeyedSeq())},toObject:function(){Re(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return yt(this.toKeyedSeq())},toOrderedSet:function(){return un(s(this)?this.valueSeq():this)},toSet:function(){return tn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new kt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return fn(s(this)?this.valueSeq():this)},toList:function(){return rt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return qt(this,Pt(this,t))},includes:function(e){return this.some((function(t){return ae(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Re(this.size);var n=!0;return this.__iterate((function(o,r,i){if(!e.call(t,o,r,i))return n=!1,!1})),n},filter:function(e,t){return qt(this,Nt(this,e,t,!0))},find:function(e,t,n){var o=this.findEntry(e,t);return o?o[1]:n},forEach:function(e,t){return Re(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Re(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(o){n?n=!1:t+=e,t+=null!=o?o.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return qt(this,It(this,e,t))},reduce:function(e,t,n){var o,r;return Re(this.size),arguments.length<2?r=!0:o=t,this.__iterate((function(t,i,a){r?(r=!1,o=t):o=e.call(n,o,t,i,a)})),o},reduceRight:function(e,t,n){var o=this.toKeyedSeq().reverse();return o.reduce.apply(o,arguments)},reverse:function(){return qt(this,Dt(this,!0))},slice:function(e,t){return qt(this,Ft(this,e,t,!0))},some:function(e,t){return!this.every(kn(e),t)},sort:function(e){return qt(this,Ut(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return S(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var o=Ae().asMutable();return e.__iterate((function(r,i){o.update(t.call(n,r,i,e),0,(function(e){return e+1}))})),o.asImmutable()}(this,e,t)},equals:function(e){return se(this,e)},entrySeq:function(){var e=this;if(e._cache)return new K(e._cache);var t=e.toSeq().map(On).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(kn(e),t)},findEntry:function(e,t,n){var o=n;return this.__iterate((function(n,r,i){if(e.call(t,n,r,i))return o=[r,n],!1})),o},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(w)},flatMap:function(e,t){return qt(this,function(e,t,n){var o=zt(e);return e.toSeq().map((function(r,i){return o(t.call(n,r,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return qt(this,Lt(this,e,!0))},fromEntrySeq:function(){return new Rt(this)},get:function(e,t){return this.find((function(t,n){return ae(n,e)}),void 0,t)},getIn:function(e,t){for(var n,o=this,r=$t(e);!(n=r.next()).done;){var i=n.value;if((o=o&&o.get?o.get(i,g):g)===g)return t}return o},groupBy:function(e,t){return function(e,t,n){var o=s(e),r=(u(e)?yt():Ae()).asMutable();e.__iterate((function(i,a){r.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(o?[a,i]:i),e}))}));var i=zt(e);return r.map((function(t){return qt(e,i(t))}))}(this,e,t)},has:function(e){return this.get(e,g)!==g},hasIn:function(e){return this.getIn(e,g)!==g},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ae(t,e)}))},keySeq:function(){return this.toSeq().map(xn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Bt(this,e)},maxBy:function(e,t){return Bt(this,t,e)},min:function(e){return Bt(this,e?Rn(e):Dn)},minBy:function(e,t){return Bt(this,t?Rn(t):Dn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return qt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return qt(this,Mt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(kn(e),t)},sortBy:function(e,t){return qt(this,Ut(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return qt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return qt(this,function(e,t,n){var o=Kt(e);return o.__iterateUncached=function(o,r){var i=this;if(r)return this.cacheResult().__iterate(o,r);var a=0;return e.__iterate((function(e,r,s){return t.call(n,e,r,s)&&++a&&o(e,r,i)})),a},o.__iteratorUncached=function(o,r){var i=this;if(r)return this.cacheResult().__iterator(o,r);var a=e.__iterator(2,r),s=!0;return new F((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var r=e.value,c=r[0],l=r[1];return t.call(n,l,c,i)?2===o?e:M(o,c,l,e):(s=!1,{value:void 0,done:!0})}))},o}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(kn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),o=t?1:0;return function(e,t){return t=ge(t,3432918353),t=ge(t<<15|t>>>-15,461845907),t=ge(t<<13|t>>>-13,5),t=ge((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=fe((t=ge(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){o=31*o+Nn(_e(e),_e(t))|0}:function(e,t){o=o+Nn(_e(e),_e(t))|0}:t?function(e){o=31*o+_e(e)|0}:function(e){o=o+_e(e)|0}),o)}(this))}});var wn=n.prototype;wn[d]=!0,wn[N]=wn.values,wn.__toJS=wn.toArray,wn.__toStringMapper=An,wn.inspect=wn.toSource=function(){return this.toString()},wn.chain=wn.flatMap,wn.contains=wn.includes,Tn(o,{flip:function(){return qt(this,At(this))},mapEntries:function(e,t){var n=this,o=0;return qt(this,this.toSeq().map((function(r,i){return e.call(t,[i,r],o++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return qt(this,this.toSeq().flip().map((function(o,r){return e.call(t,o,r,n)})).flip())}});var Cn=o.prototype;function xn(e,t){return t}function On(e,t){return[t,e]}function kn(e){return function(){return!e.apply(this,arguments)}}function Rn(e){return function(){return-e.apply(this,arguments)}}function An(e){return"string"==typeof e?JSON.stringify(e):String(e)}function In(){return y(arguments)}function Dn(e,t){return e<t?1:e>t?-1:0}function Nn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Cn[h]=!0,Cn[N]=wn.entries,Cn.__toJS=wn.toObject,Cn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+An(e)},Tn(r,{toKeyedSeq:function(){return new xt(this,!1)},filter:function(e,t){return qt(this,Nt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return qt(this,Dt(this,!1))},slice:function(e,t){return qt(this,Ft(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=x(e,e<0?this.count():this.size);var o=this.slice(0,e);return qt(this,1===n?o:o.concat(y(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return qt(this,Lt(this,e,!1))},get:function(e,t){return(e=T(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=T(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return qt(this,function(e,t){var n=Kt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,o){var r=this,i=0;return e.__iterate((function(e,o){return(!i||!1!==n(t,i++,r))&&!1!==n(e,i++,r)}),o),i},n.__iteratorUncached=function(n,o){var r,i=e.__iterator(1,o),a=0;return new F((function(){return(!r||a%2)&&(r=i.next()).done?r:a%2?M(n,a++,t):M(n,a++,r.value,r)}))},n}(this,e))},interleave:function(){var e=[this].concat(y(arguments)),t=Gt(this.toSeq(),V.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),qt(this,n)},keySeq:function(){return ue(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return qt(this,Mt(this,e,t,!1))},zip:function(){var e=[this].concat(y(arguments));return qt(this,Gt(this,In,e))},zipWith:function(e){var t=y(arguments);return t[0]=this,qt(this,Gt(this,e,t))}}),r.prototype[p]=!0,r.prototype[m]=!0,Tn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=wn.includes,i.prototype.contains=i.prototype.includes,Tn(H,o.prototype),Tn(V,r.prototype),Tn(z,i.prototype),Tn(he,o.prototype),Tn(pe,r.prototype),Tn(me,i.prototype),{Iterable:n,Seq:q,Collection:de,Map:Ae,OrderedMap:yt,List:rt,Stack:fn,Set:tn,OrderedSet:un,Record:Qt,Range:ue,Repeat:ce,is:ae,fromJS:oe}}()},function(e,t,n){"use strict";var o=n(543),r=n(177);e.exports=function(e){return{getInitialState:function(){return this.constructor.calculateState||r(!1),this.constructor.calculateState(null)},componentDidMount:function(){var t=this,n=!1,r=function(){n=!0};this._fluxMixinSubscriptions=e.map((function(e){return e.addListener(r)}));this._fluxMixinStoreGroup=new o(e,(function(){n&&t.setState((function(e){return t.constructor.calculateState(t.state)})),n=!1}))},componentWillUnmount:function(){this._fluxMixinStoreGroup.release();var e=this._fluxMixinSubscriptions,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var o;if(t){if(n>=e.length)break;o=e[n++]}else{if((n=e.next()).done)break;o=n.value}o.remove()}this._fluxMixinSubscriptions=[]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(863);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=v(n(166)),i=v(n(183)),a=v(n(184)),s=v(n(185)),c=v(n(186)),l=v(n(187)),u=v(n(81)),d=v(n(84)),h=v(n(898)),p=v(n(944)),m=v(n(945)),g=v(n(946)),f=v(n(948)),_=n(190),b=n(572);function v(e){return e&&e.__esModule?e:{default:e}}var E=function(e){function t(){var e,n,o,r;(0,a.default)(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=o=(0,c.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(l))),o.canLift=function(e){return(0,f.default)(o.store.getState(),e)},r=n,(0,c.default)(o,r)}return(0,l.default)(t,e),(0,s.default)(t,[{key:"getChildContext",value:function(){var e;return e={},(0,r.default)(e,_.storeKey,this.store),(0,r.default)(e,_.dimensionMarshalKey,this.dimensionMarshal),(0,r.default)(e,_.styleContextKey,this.styleMarshal.styleContext),(0,r.default)(e,_.canLiftContextKey,this.canLift),e}},{key:"componentWillMount",value:function(){var e=this;this.store=(0,h.default)(),this.styleMarshal=(0,g.default)();var t={cancel:function(){e.store.dispatch((0,b.clean)())},publishDraggables:function(t){e.store.dispatch((0,b.publishDraggableDimensions)(t))},publishDroppables:function(t){e.store.dispatch((0,b.publishDroppableDimensions)(t))},updateDroppableScroll:function(t,n){e.store.dispatch((0,b.updateDroppableDimensionScroll)(t,n))},updateDroppableIsEnabled:function(t,n){e.store.dispatch((0,b.updateDroppableDimensionIsEnabled)(t,n))}};this.dimensionMarshal=(0,m.default)(t);var n=this.store.getState();this.unsubscribe=this.store.subscribe((function(){var t=n,o=e.store.getState();if(n=o,o.phase!==t.phase){var r={onDragStart:e.props.onDragStart,onDragEnd:e.props.onDragEnd};(0,p.default)(r,t,o),e.styleMarshal.onPhaseChange(o),e.dimensionMarshal.onPhaseChange(o)}}))}},{key:"componentDidMount",value:function(){this.styleMarshal.mount()}},{key:"componentWillUnmount",value:function(){this.unsubscribe(),this.styleMarshal.unmount()}},{key:"render",value:function(){return this.props.children}}]),t}(u.default.Component);E.childContextTypes=(o={},(0,r.default)(o,_.storeKey,d.default.shape({dispatch:d.default.func.isRequired,subscribe:d.default.func.isRequired,getState:d.default.func.isRequired}).isRequired),(0,r.default)(o,_.dimensionMarshalKey,d.default.object.isRequired),(0,r.default)(o,_.styleContextKey,d.default.string.isRequired),(0,r.default)(o,_.canLiftContextKey,d.default.func.isRequired),o),t.default=E},function(e,t,n){n(865);var o=n(131).Object;e.exports=function(e,t,n){return o.defineProperty(e,t,n)}},function(e,t,n){var o=n(179);o(o.S+o.F*!n(182),"Object",{defineProperty:n(181).f})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){n(868),e.exports=n(131).Object.getPrototypeOf},function(e,t,n){var o=n(232),r=n(552);n(553)("getPrototypeOf",(function(){return function(e){return r(o(e))}}))},function(e,t,n){e.exports={default:n(870),__esModule:!0}},function(e,t,n){n(554),n(877),e.exports=n(406).f("iterator")},function(e,t,n){var o=n(401),r=n(397);e.exports=function(e){return function(t,n){var i,a,s=String(r(t)),c=o(n),l=s.length;return c<0||c>=l?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var o=n(402),r=n(271),i=n(405),a={};n(228)(a,n(151)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var o=n(181),r=n(229),i=n(273);e.exports=n(182)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),s=a.length,c=0;s>c;)o.f(e,n=a[c++],t[n]);return e}},function(e,t,n){var o=n(233),r=n(559),i=n(875);e.exports=function(e){return function(t,n,a){var s,c=o(t),l=r(c.length),u=i(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var o=n(401),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=o(e))<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(180).document;e.exports=o&&o.documentElement},function(e,t,n){n(878);for(var o=n(180),r=n(228),i=n(272),a=n(151)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],u=o[l],d=u&&u.prototype;d&&!d[a]&&r(d,a,l),i[l]=i.Array}},function(e,t,n){"use strict";var o=n(879),r=n(880),i=n(272),a=n(233);e.exports=n(555)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(882),__esModule:!0}},function(e,t,n){n(883),n(888),n(889),n(890),e.exports=n(131).Symbol},function(e,t,n){"use strict";var o=n(180),r=n(204),i=n(182),a=n(179),s=n(556),c=n(884).KEY,l=n(231),u=n(399),d=n(405),h=n(327),p=n(151),m=n(406),g=n(407),f=n(885),_=n(886),b=n(229),v=n(230),E=n(232),y=n(233),S=n(396),T=n(271),w=n(402),C=n(887),x=n(561),O=n(408),k=n(181),R=n(273),A=x.f,I=k.f,D=C.f,N=o.Symbol,F=o.JSON,M=F&&F.stringify,P=p("_hidden"),L=p("toPrimitive"),U={}.propertyIsEnumerable,B=u("symbol-registry"),j=u("symbols"),G=u("op-symbols"),q=Object.prototype,H="function"==typeof N&&!!O.f,V=o.QObject,z=!V||!V.prototype||!V.prototype.findChild,K=i&&l((function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=A(q,t);o&&delete q[t],I(e,t,n),o&&e!==q&&I(q,t,o)}:I,W=function(e){var t=j[e]=w(N.prototype);return t._k=e,t},Y=H&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},$=function(e,t,n){return e===q&&$(G,t,n),b(e),t=S(t,!0),b(n),r(j,t)?(n.enumerable?(r(e,P)&&e[P][t]&&(e[P][t]=!1),n=w(n,{enumerable:T(0,!1)})):(r(e,P)||I(e,P,T(1,{})),e[P][t]=!0),K(e,t,n)):I(e,t,n)},Q=function(e,t){b(e);for(var n,o=f(t=y(t)),r=0,i=o.length;i>r;)$(e,n=o[r++],t[n]);return e},X=function(e){var t=U.call(this,e=S(e,!0));return!(this===q&&r(j,e)&&!r(G,e))&&(!(t||!r(this,e)||!r(j,e)||r(this,P)&&this[P][e])||t)},J=function(e,t){if(e=y(e),t=S(t,!0),e!==q||!r(j,t)||r(G,t)){var n=A(e,t);return!n||!r(j,t)||r(e,P)&&e[P][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=D(y(e)),o=[],i=0;n.length>i;)r(j,t=n[i++])||t==P||t==c||o.push(t);return o},ee=function(e){for(var t,n=e===q,o=D(n?G:y(e)),i=[],a=0;o.length>a;)!r(j,t=o[a++])||n&&!r(q,t)||i.push(j[t]);return i};H||(s((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call(G,n),r(this,P)&&r(this[P],e)&&(this[P][e]=!1),K(this,e,T(1,n))};return i&&z&&K(q,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",(function(){return this._k})),x.f=J,k.f=$,n(560).f=C.f=Z,n(328).f=X,O.f=ee,i&&!n(326)&&s(q,"propertyIsEnumerable",X,!0),m.f=function(e){return W(p(e))}),a(a.G+a.W+a.F*!H,{Symbol:N});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var oe=R(p.store),re=0;oe.length>re;)g(oe[re++]);a(a.S+a.F*!H,"Symbol",{for:function(e){return r(B,e+="")?B[e]:B[e]=N(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!H,"Object",{create:function(e,t){return void 0===t?w(e):Q(w(e),t)},defineProperty:$,defineProperties:Q,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var ie=l((function(){O.f(1)}));a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return O.f(E(e))}}),F&&a(a.S+a.F*(!H||l((function(){var e=N();return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=t=o[1],(v(t)||void 0!==e)&&!Y(e))return _(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),o[1]=t,M.apply(F,o)}}),N.prototype[L]||n(228)(N.prototype,L,N.prototype.valueOf),d(N,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){var o=n(327)("meta"),r=n(230),i=n(204),a=n(181).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(231)((function(){return c(Object.preventExtensions({}))})),u=function(e){a(e,o,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[o].i},getWeak:function(e,t){if(!i(e,o)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[o].w},onFreeze:function(e){return l&&d.NEED&&c(e)&&!i(e,o)&&u(e),e}}},function(e,t,n){var o=n(273),r=n(408),i=n(328);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,s=n(e),c=i.f,l=0;s.length>l;)c.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){var o=n(403);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(233),r=n(560).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return r(e)}catch(e){return a.slice()}}(e):r(o(e))}},function(e,t){},function(e,t,n){n(407)("asyncIterator")},function(e,t,n){n(407)("observable")},function(e,t,n){e.exports={default:n(892),__esModule:!0}},function(e,t,n){n(893),e.exports=n(131).Object.setPrototypeOf},function(e,t,n){var o=n(179);o(o.S,"Object",{setPrototypeOf:n(894).set})},function(e,t,n){var o=n(230),r=n(229),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=n(395)(Function.call,n(561).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){e.exports={default:n(896),__esModule:!0}},function(e,t,n){n(897);var o=n(131).Object;e.exports=function(e,t){return o.create(e,t)}},function(e,t,n){var o=n(179);o(o.S,"Object",{create:n(402)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=s(n(400)),r=n(562),i=s(n(912)),a=s(n(913));function s(e){return e&&e.__esModule?e:{default:e}}var c="object"===("undefined"==typeof window?"undefined":(0,o.default)(window))&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:r.compose;t.default=function(){return(0,r.createStore)(a.default,c((0,r.applyMiddleware)(i.default)))}},function(e,t,n){var o=n(565),r=n(902),i=n(903),a=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):i(e)}},function(e,t,n){var o=n(901),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();e.exports=i},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(5))},function(e,t,n){var o=n(565),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,s=o?o.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var o=!0}catch(e){}var r=a.call(e);return o&&(t?e[s]=n:delete e[s]),r}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var o=n(905)(Object.getPrototypeOf,Object);e.exports=o},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";(function(e,o){Object.defineProperty(t,"__esModule",{value:!0});var r,i,a=n(908),s=(r=a)&&r.__esModule?r:{default:r};i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:o;var c=(0,s.default)(i);t.default=c}).call(this,n(5),n(224)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.Symbol;"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable";return t}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(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 s=Object.keys(n);0;var c=void 0;try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:o.ActionTypes.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+o.ActionTypes.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){c=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(c)throw c;for(var o=!1,r={},a=0;a<s.length;a++){var l=s[a],u=n[l],d=e[l],h=u(d,t);if(void 0===h){var p=i(l,t);throw new Error(p)}r[l]=h,o=o||h!==d}return o?r:e}};var o=n(563);r(n(564)),r(n(566));function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}},function(e,t,n){"use strict";function o(e,t){return function(){return t(e.apply(void 0,arguments))}}t.__esModule=!0,t.default=function(e,t){if("function"==typeof e)return o(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},i=0;i<n.length;i++){var a=n[i],s=e[a];"function"==typeof s&&(r[a]=o(s,t))}return r}},function(e,t,n){"use strict";t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,i){var s,c=e(n,r,i),l=c.dispatch,u={getState:c.getState,dispatch:function(e){return l(e)}};return s=t.map((function(e){return e(u)})),l=a.default.apply(void 0,s)(c.dispatch),o({},c,{dispatch:l})}}};var r,i=n(567),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";function o(e){return function(t){var n=t.dispatch,o=t.getState;return function(t){return function(r){return"function"==typeof r?r(n,o,e):t(r)}}}}t.__esModule=!0;var r=o();r.withExtraArgument=o,t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=p(n(188)),r=p(n(166)),i=p(n(205)),a=p(n(132)),s=n(125),c=n(330),l=p(n(929)),u=p(n(935)),d=p(n(938)),h=n(331);function p(e){return e&&e.__esModule?e:{default:e}}var m={request:null,draggable:{},droppable:{}},g={x:0,y:0},f=(0,a.default)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"IDLE";return{phase:e,drag:null,drop:null,dimension:m}})),_=function(e){return-1===["IDLE","DROP_ANIMATING","DROP_COMPLETE"].indexOf(e)},b=function(e){var t=e.state,n=e.clientSelection,o=e.shouldAnimate,r=e.windowScroll,a=e.impact;if("DRAGGING"!==t.phase)return console.error("cannot move while not dragging"),f();var c=t.drag;if(null==c)return console.error("cannot move if there is no drag information"),f();var u,d=c.current,h=c.initial,p=r||d.windowScroll,m={offset:u=(0,s.subtract)(n,h.client.selection),selection:n,center:(0,s.add)(u,h.client.center)},g={selection:(0,s.add)(m.selection,p),offset:(0,s.add)(m.offset,p),center:(0,s.add)(m.center,p)},_={client:m,page:g,shouldAnimate:o,windowScroll:p},b=a||(0,l.default)({pageCenter:g.center,draggable:t.dimension.draggable[h.descriptor.id],draggables:t.dimension.draggable,droppables:t.dimension.droppable,previousImpact:c.impact}),v={initial:h,impact:b,current:_};return(0,i.default)({},t,{drag:v})},v=function(e){return"COLLECTING_INITIAL_DIMENSIONS"===e.phase||"DRAGGING"!==e.phase?e:e.drag?b({state:e,clientSelection:e.drag.current.client.selection,shouldAnimate:e.drag.current.shouldAnimate}):(console.error("cannot update a draggable dimension in an existing drag as there is invalid drag state"),f())};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f("IDLE"),t=arguments[1];if("CLEAN"===t.type)return f();if("PREPARE"===t.type)return f("PREPARING");if("REQUEST_DIMENSIONS"===t.type){if("PREPARING"!==e.phase)return console.error("trying to start a lift while not preparing for a lift"),f();var n=t.payload;return{phase:"COLLECTING_INITIAL_DIMENSIONS",drag:null,drop:null,dimension:{request:n,draggable:{},droppable:{}}}}if("PUBLISH_DRAGGABLE_DIMENSIONS"===t.type){var a=t.payload;if(!_(e.phase))return console.warn("dimensions rejected as no longer allowing dimension capture in phase",e.phase),e;var l=a.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{}),p=(0,i.default)({},e,{dimension:{request:e.dimension.request,droppable:e.dimension.droppable,draggable:(0,i.default)({},e.dimension.draggable,l)}});return v(p)}if("PUBLISH_DROPPABLE_DIMENSIONS"===t.type){var E=t.payload;if(!_(e.phase))return console.warn("dimensions rejected as no longer allowing dimension capture in phase",e.phase),e;var y=E.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{}),S=(0,i.default)({},e,{dimension:{request:e.dimension.request,draggable:e.dimension.draggable,droppable:(0,i.default)({},e.dimension.droppable,y)}});return v(S)}if("COMPLETE_LIFT"===t.type){if("COLLECTING_INITIAL_DIMENSIONS"!==e.phase)return console.error("trying complete lift without collecting dimensions"),e;var T=t.payload,w=T.id,C=T.client,x=T.windowScroll,O=T.isScrollAllowed,k={selection:(0,s.add)(C.selection,x),center:(0,s.add)(C.center,x)},R=e.dimension.draggable[w];if(!R)return console.error("could not find draggable in store after lift"),f();var A=R.descriptor,I={descriptor:A,isScrollAllowed:O,client:C,page:k,windowScroll:x},D={client:{selection:C.selection,center:C.center,offset:g},page:{selection:k.selection,center:k.center,offset:g},windowScroll:x,shouldAnimate:!1},N=e.dimension.droppable[A.droppableId];if(!N)return console.error("Cannot find home dimension for initial lift"),f();var F={index:A.index,droppableId:A.droppableId},M={movement:c.noMovement,direction:N.axis.direction,destination:F};return(0,i.default)({},e,{phase:"DRAGGING",drag:{initial:I,current:D,impact:M}})}if("UPDATE_DROPPABLE_DIMENSION_SCROLL"===t.type){if("DRAGGING"!==e.phase)return console.error("cannot update a droppable dimensions scroll when not dragging"),f();if(null==e.drag)return console.error("invalid store state"),f();if(!e.drag.initial.isScrollAllowed)return f();var P=t.payload,L=P.id,U=P.offset,B=e.dimension.droppable[L];if(!B)return console.warn("cannot update scroll for droppable as it has not yet been collected"),e;var j=(0,h.scrollDroppable)(B,U),G=(0,i.default)({},e,{dimension:{request:e.dimension.request,draggable:e.dimension.draggable,droppable:(0,i.default)({},e.dimension.droppable,(0,r.default)({},L,j))}});return v(G)}if("UPDATE_DROPPABLE_DIMENSION_IS_ENABLED"===t.type){if(!(0,o.default)(e.dimension.droppable).length)return e;var q=t.payload,H=q.id,V=q.isEnabled,z=e.dimension.droppable[H];if(!z)return console.warn("cannot update enabled state for droppable as it has not yet been collected"),e;if(z.isEnabled===V)return console.warn("trying to set droppable isEnabled to "+String(V)+" but it is already "+String(V)),e;var K=(0,i.default)({},z,{isEnabled:V}),W=(0,i.default)({},e,{dimension:(0,i.default)({},e.dimension,{droppable:(0,i.default)({},e.dimension.droppable,(0,r.default)({},H,K))})});return v(W)}if("MOVE"===t.type){var Y=t.payload,$=Y.client,Q=Y.windowScroll;return b({state:e,clientSelection:$,windowScroll:Q,shouldAnimate:!1})}if("MOVE_BY_WINDOW_SCROLL"===t.type){var X=t.payload.windowScroll;return e.drag?b({state:e,clientSelection:e.drag.current.client.selection,windowScroll:X,shouldAnimate:!1}):(console.error("cannot move with window scrolling if no current drag"),f())}if("MOVE_FORWARD"===t.type||"MOVE_BACKWARD"===t.type){if("DRAGGING"!==e.phase)return console.error("cannot move while not dragging",t),f();if(!e.drag)return console.error("cannot move if there is no drag information"),f();var J=e.drag,Z="MOVE_FORWARD"===t.type;if(!J.impact.destination)return console.error("cannot move if there is no previous destination"),f();var ee=e.dimension.droppable[J.impact.destination.droppableId],te=(0,u.default)({isMovingForward:Z,draggableId:J.initial.descriptor.id,droppable:ee,draggables:e.dimension.draggable,previousImpact:J.impact});if(!te)return e;var ne=te.impact,oe=te.pageCenter,re=(0,s.subtract)(oe,J.current.windowScroll);return b({state:e,impact:ne,clientSelection:re,shouldAnimate:!0})}if("CROSS_AXIS_MOVE_FORWARD"===t.type||"CROSS_AXIS_MOVE_BACKWARD"===t.type){if("DRAGGING"!==e.phase)return console.error("cannot move cross axis when not dragging"),f();if(!e.drag)return console.error("cannot move cross axis if there is no drag information"),f();if(!e.drag.impact.destination)return console.error("cannot move cross axis if not in a droppable"),f();var ie=e.drag.current,ae=e.drag.initial.descriptor,se=ae.id,ce=ie.page.center,le=e.drag.impact.destination.droppableId,ue={index:ae.index,droppableId:ae.droppableId},de=(0,d.default)({isMovingForward:"CROSS_AXIS_MOVE_FORWARD"===t.type,pageCenter:ce,draggableId:se,droppableId:le,home:ue,draggables:e.dimension.draggable,droppables:e.dimension.droppable,previousImpact:e.drag.impact});if(!de)return e;var he=de.pageCenter,pe=(0,s.subtract)(he,ie.windowScroll);return b({state:e,clientSelection:pe,impact:de.impact,shouldAnimate:!0})}if("DROP_ANIMATE"===t.type){var me=t.payload,ge=me.trigger,fe=me.newHomeOffset,_e=me.impact,be=me.result;if("DRAGGING"!==e.phase)return console.error("cannot animate drop while not dragging",t),e;if(!e.drag)return console.error("cannot animate drop - invalid drag state"),f();var ve={trigger:ge,newHomeOffset:fe,result:be,impact:_e};return{phase:"DROP_ANIMATING",drag:null,drop:{pending:ve,result:null},dimension:e.dimension}}if("DROP_COMPLETE"===t.type){var Ee=t.payload;return{phase:"DROP_COMPLETE",drag:null,drop:{pending:null,result:Ee},dimension:m}}return e}},function(e,t,n){n(915),e.exports=n(131).Object.keys},function(e,t,n){var o=n(232),r=n(273);n(553)("keys",(function(){return function(e){return r(o(e))}}))},function(e,t,n){e.exports={default:n(917),__esModule:!0}},function(e,t,n){n(918),e.exports=n(131).Object.assign},function(e,t,n){var o=n(179);o(o.S+o.F,"Object",{assign:n(919)})},function(e,t,n){"use strict";var o=n(182),r=n(273),i=n(408),a=n(328),s=n(232),c=n(558),l=Object.assign;e.exports=!l||n(231)((function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=o}))?function(e,t){for(var n=s(e),l=arguments.length,u=1,d=i.f,h=a.f;l>u;)for(var p,m=c(arguments[u++]),g=d?r(m).concat(d(m)):r(m),f=g.length,_=0;f>_;)p=g[_++],o&&!h.call(m,p)||(n[p]=m[p]);return n}:l},function(e,t,n){e.exports={default:n(921),__esModule:!0}},function(e,t,n){n(554),n(922),e.exports=n(131).Array.from},function(e,t,n){"use strict";var o=n(395),r=n(179),i=n(232),a=n(923),s=n(924),c=n(559),l=n(925),u=n(926);r(r.S+r.F*!n(928)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,r,d,h=i(e),p="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,f=void 0!==g,_=0,b=u(h);if(f&&(g=o(g,m>2?arguments[2]:void 0,2)),null==b||p==Array&&s(b))for(n=new p(t=c(h.length));t>_;_++)l(n,_,f?g(h[_],_):h[_]);else for(d=b.call(h),n=new p;!(r=d.next()).done;_++)l(n,_,f?a(d,g,[r.value,_],!0):r.value);return n.length=_,n}})},function(e,t,n){var o=n(229);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&o(i.call(e)),t}}},function(e,t,n){var o=n(272),r=n(151)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[r]===e)}},function(e,t,n){"use strict";var o=n(181),r=n(271);e.exports=function(e,t,n){t in e?o.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var o=n(927),r=n(151)("iterator"),i=n(272);e.exports=n(131).getIteratorMethod=function(e){if(null!=e)return e[r]||e["@@iterator"]||i[o(e)]}},function(e,t,n){var o=n(403),r=n(151)("toStringTag"),i="Arguments"==o(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:i?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var o=n(151)("iterator"),r=!1;try{var i=[7][o]();i.return=function(){r=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i=[7],a=i[o]();a.next=function(){return{done:n=!0}},i[o]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=c(n(930)),r=c(n(235)),i=c(n(330)),a=c(n(933)),s=c(n(934));function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.pageCenter,n=e.draggable,c=e.draggables,l=e.droppables,u=e.previousImpact,d=u.destination&&u.destination.droppableId,h=(0,o.default)({target:t,draggable:n,draggables:c,droppables:l,previousDroppableOverId:d});if(!h)return i.default;var p=l[h];if(!p.isEnabled)return i.default;var m=l[n.descriptor.droppableId],g=m.descriptor.id===h,f=(0,r.default)(p,c);return g?(0,a.default)({pageCenter:t,draggable:n,home:m,insideHome:f,previousImpact:u||i.default}):(0,s.default)({pageCenter:t,draggable:n,destination:p,insideDestination:f,previousImpact:u||i.default})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=d(n(188)),r=d(n(132)),i=d(n(234)),a=d(n(235)),s=d(n(931)),c=n(125),l=n(274),u=n(331);function d(e){return e&&e.__esModule?e:{default:e}}var h=(0,r.default)((function(e,t,n){var o=function(t){var o=e.page.withMargin[n.axis.size];return o<=t?null:(0,c.patch)(n.axis.line,o-t)},r=(0,a.default)(n,t);if(!r.length)return o(n.page.withMargin[n.axis.size]);var i=r[r.length-1].page.withMargin[n.axis.end];return o(n.page.withMargin[n.axis.end]-i)})),p=(0,r.default)((function(e,t){return(0,i.default)((0,l.addPosition)(e,t))}));t.default=function(e){var t=e.target,n=e.draggable,r=e.draggables,i=e.droppables,a=e.previousDroppableOverId,c=(0,o.default)(i).map((function(e){return i[e]})).filter((function(e){return e.isEnabled})).find((function(e){var o=function(e){var t=e.draggable,n=e.draggables,o=e.droppable,r=e.previousDroppableOverId,i=t.descriptor.droppableId===o.descriptor.id,a=Boolean(r&&r===o.descriptor.id),s=o.viewport.subject,c=o.viewport.frame,l=o.viewport.clipped;if(!l)return l;if(i||!a)return l;var d=h(t,n,o);if(!d)return l;var m=s[o.axis.size]!==c[o.axis.size],g=p(l,d);return m?(0,u.clip)(c,g):g}({draggable:n,draggables:r,droppable:e,previousDroppableOverId:a});return!!o&&(0,s.default)(o)(t)}));return c?c.descriptor.id:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(409),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e){var t=(0,i.default)(e.top,e.bottom),n=(0,i.default)(e.left,e.right);return function(e){return t(e.y)&&t(e.y)&&n(e.x)&&n(e.x)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.vertical={direction:"vertical",line:"y",crossLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},t.horizontal={direction:"horizontal",line:"x",crossLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(125),r=a(n(236)),i=a(n(189));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t,n,a=e.pageCenter,s=e.draggable,c=e.home,l=e.insideHome,u=e.previousImpact,d=(0,i.default)(),h=c.axis,p=s.page.withoutMargin.center,m=c.viewport.frameScroll.diff.value,g=(0,o.add)(a,m),f=g[h.line]-p[h.line]>0,_=(0,o.patch)(h.line,s.client.withMargin[h.size]),b=l.filter((function(e){if(e===s)return!1;var t=e.page.withoutMargin;return f?!(t.center[h.line]<p[h.line])&&g[h.line]>t[h.start]:!(p[h.line]<t.center[h.line])&&g[h.line]<t[h.end]})).map((function(e){return(0,r.default)({draggable:e,destination:c,previousImpact:u,viewport:d})})),v=f?b.reverse():b,E=(t=l.indexOf(s),(n=v.length)?f?t+n:t-n:t);return{movement:{amount:_,displaced:v,isBeyondStartPosition:f},direction:h.direction,destination:{droppableId:c.descriptor.id,index:E}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(125),r=a(n(236)),i=a(n(189));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.pageCenter,n=e.draggable,a=e.destination,s=e.insideDestination,c=e.previousImpact,l=a.axis,u=(0,i.default)(),d=a.viewport.frameScroll.diff.value,h=(0,o.add)(t,d),p=s.filter((function(e){return e.page.withoutMargin[l.end]>h[l.line]})).map((function(e){return(0,r.default)({draggable:e,destination:a,previousImpact:c,viewport:u})})),m=s.length-p.length;return{movement:{amount:(0,o.patch)(l.line,n.page.withMargin[l.size]),displaced:p,isBeyondStartPosition:!1},direction:l.direction,destination:{droppableId:a.descriptor.id,index:m}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(936)),r=i(n(937));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.draggableId,n=e.draggables,i=e.droppable,a=n[t].descriptor.droppableId===i.descriptor.id;return i.isEnabled?a?(0,o.default)(e):(0,r.default)(e):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=d(n(329)),r=d(n(132)),i=d(n(235)),a=n(125),s=d(n(570)),c=d(n(189)),l=d(n(275)),u=d(n(236));function d(e){return e&&e.__esModule?e:{default:e}}var h=(0,r.default)((function(e,t){return e.indexOf(t)}));t.default=function(e){var t=e.isMovingForward,n=e.draggableId,r=e.previousImpact,d=e.droppable,p=e.draggables,m=r.destination;if(!m)return console.error("cannot move to next index when there is not previous destination"),null;var g=p[n],f=d.axis,_=(0,i.default)(d,p),b=h(_,g),v=m.index,E=t?v+1:v-1;if(-1===b)return console.error("could not find draggable inside current droppable"),null;if(E>_.length-1)return null;if(E<0)return null;var y=_[E],S=t&&E<=b||!t&&E>=b,T=S?t?"start":"end":t?"end":"start",w=(0,l.default)({source:g.page.withoutMargin,sourceEdge:T,destination:y.page.withoutMargin,destinationEdge:T,destinationAxis:d.axis}),C=(0,c.default)();if(!(0,s.default)({draggable:g,destination:d,newCenter:w,viewport:C}))return null;var x={draggableId:y.descriptor.id,isVisible:!0,shouldAnimate:!0};return{pageCenter:w,impact:{movement:{displaced:(S?r.movement.displaced.slice(1,r.movement.displaced.length):[x].concat((0,o.default)(r.movement.displaced))).map((function(e){var t=p[e.draggableId];return(0,u.default)({draggable:t,destination:d,previousImpact:r,viewport:C})})),amount:(0,a.patch)(f.line,g.page.withMargin[f.size]),isBeyondStartPosition:E>b},destination:{droppableId:d.descriptor.id,index:E},direction:d.axis.direction}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=u(n(329)),r=u(n(235)),i=n(125),a=u(n(275)),s=u(n(236)),c=u(n(189)),l=u(n(570));function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,n=e.draggableId,u=e.previousImpact,d=e.droppable,h=e.draggables;if(!u.destination)return console.error("cannot move to next index when there is not previous destination"),null;var p=u.destination,m=h[n],g=d.axis,f=(0,r.default)(d,h),_=p.index,b=t?_+1:_-1,v=f.length-1;if(b>f.length)return null;if(b<0)return null;var E=f[Math.min(b,v)],y=b>v,S=y?"end":"start",T=(0,c.default)(),w=(0,a.default)({source:m.page.withoutMargin,sourceEdge:"start",destination:E.page.withMargin,destinationEdge:S,destinationAxis:d.axis});if(!(!!y||(0,l.default)({draggable:m,destination:d,newCenter:w,viewport:T})))return null;var C={draggableId:E.descriptor.id,isVisible:!0,shouldAnimate:!0},x={movement:{displaced:(t?u.movement.displaced.slice(1,u.movement.displaced.length):[C].concat((0,o.default)(u.movement.displaced))).map((function(e){if(e===C)return e;var t=h[e.draggableId];return(0,s.default)({draggable:t,destination:d,viewport:T,previousImpact:u})})),amount:(0,i.patch)(g.line,m.page.withMargin[g.size]),isBeyondStartPosition:!1},destination:{droppableId:d.descriptor.id,index:b},direction:d.axis.direction};return{pageCenter:w,impact:x}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=c(n(939)),r=c(n(940)),i=c(n(941)),a=c(n(330)),s=c(n(235));function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,n=e.pageCenter,c=e.draggableId,l=e.droppableId,u=e.home,d=e.draggables,h=e.droppables,p=e.previousImpact,m=d[c],g=h[l],f=(0,o.default)({isMovingForward:t,pageCenter:n,source:g,droppables:h});if(!f)return null;var _=(0,s.default)(f,d),b=(0,r.default)({axis:f.axis,pageCenter:n,destination:f,insideDestination:_});return _.length&&!b?null:(0,i.default)({pageCenter:n,destination:f,draggable:m,target:b,insideDestination:_,home:u,previousImpact:p||a.default})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=l(n(188)),r=n(125),i=l(n(409)),a=n(274),s=l(n(189)),c=l(n(569));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t=e.viewport.clipped;if(!t)throw new Error("cannot get clipped area from droppable");return t};t.default=function(e){var t=e.isMovingForward,n=e.pageCenter,l=e.source,d=e.droppables,h=l.viewport.clipped;if(!h)return null;var p=l.axis,m=(0,i.default)(h[p.start],h[p.end]),g=(0,s.default)(),f=(0,o.default)(d).map((function(e){return d[e]})).filter((function(e){return e!==l})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.viewport.clipped)})).filter((function(e){return(0,c.default)(g)(e.viewport.frame)})).filter((function(e){var n=u(e);return t?h[p.crossAxisEnd]<=n[p.crossAxisStart]:n[p.crossAxisEnd]<=h[p.crossAxisStart]})).filter((function(e){var t=u(e),n=(0,i.default)(t[p.start],t[p.end]);return m(t[p.start])||m(t[p.end])||n(h[p.start])||n(h[p.end])})).sort((function(e,n){var o=u(e)[p.crossAxisStart],r=u(n)[p.crossAxisStart];return t?o-r:r-o})).filter((function(e,t,n){return u(e)[p.crossAxisStart]===u(n[0])[p.crossAxisStart]}));if(!f.length)return null;if(1===f.length)return f[0];var _=f.filter((function(e){return(0,i.default)(u(e)[p.start],u(e)[p.end])(n[p.line])}));return 1===_.length?_[0]:_.length>1?_.sort((function(e,t){return u(e)[p.start]-u(t)[p.start]}))[0]:f.sort((function(e,t){var o=(0,r.closest)(n,(0,a.getCorners)(u(e))),i=(0,r.closest)(n,(0,a.getCorners)(u(t)));return o!==i?o-i:u(e)[p.start]-u(t)[p.start]}))[0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(125),r=a(n(189)),i=a(n(410));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.axis,n=e.pageCenter,a=e.destination,s=e.insideDestination;if(!s.length)return null;var c=(0,r.default)(),l=s.filter((function(e){return(0,i.default)({target:e.page.withMargin,destination:a,viewport:c})})).sort((function(e,r){var i=(0,o.distance)(n,e.page.withMargin.center),a=(0,o.distance)(n,r.page.withMargin.center);return i<a?-1:a<i?1:e.page.withMargin[t.start]-r.page.withMargin[t.start]}));return l.length?l[0]:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(942)),r=a(n(943)),i=n(125);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.pageCenter,n=e.destination,a=e.draggable,s=e.target,c=e.home,l=e.insideDestination,u=e.previousImpact,d=(0,i.patch)(n.axis.line,a.client.withMargin[n.axis.size]);return n.descriptor.id===a.descriptor.droppableId?(0,o.default)({amount:d,originalIndex:c.index,target:s,insideDroppable:l,draggable:a,droppable:n,previousImpact:u}):(0,r.default)({amount:d,pageCenter:t,target:s,insideDroppable:l,draggable:a,droppable:n,previousImpact:u})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(275)),r=a(n(189)),i=a(n(236));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.amount,n=e.originalIndex,a=e.target,s=e.insideDroppable,c=e.draggable,l=e.droppable,u=e.previousImpact;if(!a)return console.error("there will always be a target in the original list"),null;var d=l.axis,h=s.indexOf(a);if(-1===h)return console.error("unable to find target in destination droppable"),null;if(h===n)return{pageCenter:c.page.withoutMargin.center,impact:{movement:{displaced:[],amount:t,isBeyondStartPosition:!1},direction:l.axis.direction,destination:{droppableId:l.descriptor.id,index:n}}};var p=h>n,m=p?"end":"start",g=(0,o.default)({source:c.page.withoutMargin,sourceEdge:m,destination:p?a.page.withoutMargin:a.page.withMargin,destinationEdge:m,destinationAxis:d}),f=function(){if(!p)return s.slice(h,n);var e=n+1,t=h+1;return s.slice(e,t).reverse()}(),_=(0,r.default)();return{pageCenter:g,impact:{movement:{displaced:f.map((function(e){return(0,i.default)({draggable:e,destination:l,previousImpact:u,viewport:_})})),amount:t,isBeyondStartPosition:p},direction:d.direction,destination:{droppableId:l.descriptor.id,index:h}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(275)),r=a(n(236)),i=a(n(189));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.amount,n=e.pageCenter,a=e.target,s=e.insideDroppable,c=e.draggable,l=e.droppable,u=e.previousImpact,d=l.axis,h=Boolean(a&&n[l.axis.line]<a.page.withMargin.center[l.axis.line]);if(!a)return{pageCenter:(0,o.default)({source:c.page.withoutMargin,sourceEdge:"start",destination:l.page.withMarginAndPadding,destinationEdge:"start",destinationAxis:d}),impact:{movement:{displaced:[],amount:t,isBeyondStartPosition:!1},direction:d.direction,destination:{droppableId:l.descriptor.id,index:0}}};var p=s.indexOf(a),m=h?p:p+1;if(-1===p)return console.error("could not find target inside destination"),null;var g=(0,o.default)({source:c.page.withoutMargin,sourceEdge:"start",destination:a.page.withMargin,destinationEdge:h?"start":"end",destinationAxis:d}),f=(0,i.default)();return{pageCenter:g,impact:{movement:{displaced:s.slice(m,s.length).map((function(e){return(0,r.default)({draggable:e,destination:l,viewport:f,previousImpact:u})})),amount:t,isBeyondStartPosition:!1},direction:d.direction,destination:{droppableId:l.descriptor.id,index:m}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=e.onDragStart,r=e.onDragEnd,i=n.phase,a=t.phase;if(i!==a)if("DRAGGING"!==i||"DRAGGING"===a){if("DROP_COMPLETE"===i&&"DROP_COMPLETE"!==a){if(!n.drop||!n.drop.result)return void console.error("cannot fire onDragEnd hook without drag state",{current:n,previous:t});var s=n.drop.result,c=s.source,l=s.destination,u=s.draggableId,d=s.type;return l?c.droppableId!==l.droppableId||c.index!==l.index?void r(n.drop.result):void r({draggableId:u,type:d,source:c,destination:null}):void r(n.drop.result)}if("IDLE"!==i||"DRAGGING"!==a){if("IDLE"===i&&"DROP_ANIMATING"===a){if(!t.drop||!t.drop.pending)return void console.error("cannot fire onDragEnd for cancel because cannot find previous pending drop");r({draggableId:t.drop.pending.result.draggableId,type:t.drop.pending.result.type,source:t.drop.pending.result.source,destination:null})}}else{if(!t.drag)return void console.error("cannot fire onDragEnd for cancel because cannot find previous drag");var h=t.drag.initial.descriptor,p=t.dimension.droppable[h.droppableId];if(!p)return void console.error("cannot find dimension for home droppable");var m={index:h.index,droppableId:h.droppableId};r({draggableId:h.id,type:p.descriptor.type,source:m,destination:null})}}else{if(!o)return;if(!n.drag)return void console.error("cannot fire onDragStart hook without drag state",{current:n,previous:t});var g=n.drag.initial.descriptor,f=n.dimension.droppable[g.droppableId];if(!f)return void console.error("cannot find dimension for home droppable");var _={index:g.index,droppableId:g.droppableId};o({draggableId:g.id,type:f.descriptor.type,source:_})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=s(n(329)),r=s(n(188)),i=s(n(166)),a=s(n(205));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t={droppables:{},draggables:{},isCollecting:!1,request:null,frameId:null},n=function(e){var n=(0,a.default)({},t,e);t=n},s=function(){var n;(n=console).error.apply(n,arguments),t.isCollecting&&(u(),e.cancel())},c=function(e){n({frameId:e})},l=function(){if(t.isCollecting){var n=function(){var e=t.draggables,n=t.droppables,i=t.request;if(!i)return console.error("cannot find request in state"),[];var a=e[i].descriptor,s=n[a.droppableId].descriptor,c=(0,r.default)(e).map((function(t){return e[t].descriptor})).filter((function(e){return e.id!==a.id})).filter((function(e){var t=n[e.droppableId];return t?t.descriptor.type===s.type:(console.warn("Orphan Draggable found "+e.id+" which says it belongs to unknown Droppable "+e.droppableId),!1)})),l=(0,r.default)(n).map((function(e){return n[e].descriptor})).filter((function(e){return e.id!==s.id})).filter((function(e){return n[e.id].descriptor.type===s.type}));return[].concat((0,o.default)(l),(0,o.default)(c))}(),i=requestAnimationFrame((function(){var o=n.map((function(e){return e.type?t.droppables[e.id].callbacks.getDimension():t.draggables[e.id].getDimension()})),r=requestAnimationFrame((function(){var n=o.reduce((function(e,t){return t.placeholder?e.draggables.push(t):e.droppables.push(t),e}),{draggables:[],droppables:[]});n.droppables.length&&e.publishDroppables(n.droppables),n.draggables.length&&e.publishDraggables(n.draggables),n.droppables.forEach((function(e){t.droppables[e.descriptor.id].callbacks.watchScroll()})),c(null)}));c(r)}));c(i)}else s("Cannot collect secondary dimensions when collection is not occurring")},u=function(){(0,r.default)(t.droppables).forEach((function(e){return t.droppables[e].callbacks.unwatchScroll()})),t.frameId&&cancelAnimationFrame(t.frameId),n({isCollecting:!1,request:null,frameId:null})};return{registerDraggable:function(e,o){var r=e.id;if(t.droppables[e.droppableId]){var c={descriptor:e,getDimension:o},l=(0,a.default)({},t.draggables,(0,i.default)({},r,c));n({draggables:l}),t.isCollecting&&console.warn("Adding a draggable during a drag is currently not supported")}else s("Cannot register Draggable "+r+" as there is no entry for the Droppable "+e.droppableId)},unregisterDraggable:function(e){var o=t.draggables[e.id];if(o){if(o.descriptor===e){var r=(0,a.default)({},t.draggables);delete r[e.id],n({draggables:r}),t.isCollecting&&console.warn("currently not supporting unmounting a Draggable during a drag")}}else s("Cannot unregister Draggable with id "+e.id+" as it is not registered")},registerDroppable:function(e,o){var r=e.id,s={descriptor:e,callbacks:o},c=(0,a.default)({},t.droppables,(0,i.default)({},r,s));n({droppables:c}),t.isCollecting&&console.warn("Currently not supporting updating Droppables during a drag")},unregisterDroppable:function(e){var o=t.droppables[e.id];if(o){if(o.descriptor===e){var r=(0,a.default)({},t.droppables);delete r[e.id],n({droppables:r}),t.isCollecting&&console.warn("currently not supporting unmounting a Droppable during a drag")}}else s("Cannot unregister Droppable with id "+e.id+" as as it is not registered")},updateDroppableIsEnabled:function(n,o){t.droppables[n]?t.isCollecting&&e.updateDroppableIsEnabled(n,o):s("Cannot update the scroll on Droppable "+n+" as it is not registered")},updateDroppableScroll:function(n,o){t.droppables[n]?t.isCollecting&&e.updateDroppableScroll(n,o):s("Cannot update the scroll on Droppable "+n+" as it is not registered")},onPhaseChange:function(o){var r=o.phase;if("COLLECTING_INITIAL_DIMENSIONS"!==r)return"DRAGGING"===r?o.dimension.request!==t.request?void s("Request in local state does not match that of the store"):void l():void("DROP_ANIMATING"!==r&&"DROP_COMPLETE"!==r?"IDLE"===r&&t.isCollecting&&u():t.isCollecting&&u());!function(o){if(t.isCollecting)s("Cannot start capturing dimensions for a drag it is already dragging");else if(o){n({isCollecting:!0,request:o});var r=t.draggables,i=t.droppables,a=r[o];if(a){var c=i[a.descriptor.droppableId];if(c){var l=c.callbacks.getDimension(),u=a.getDimension();e.publishDroppables([l]),e.publishDraggables([u]),c.callbacks.watchScroll()}else s("Cannot find home Droppable [id:"+a.descriptor.droppableId+"] for Draggable [id:"+o+"]")}else s("Cannot find Draggable with id "+o+" to start collecting dimensions")}else s("Cannot start capturing dimensions with an invalid request",o)}(o.dimension.request)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(132)),r=i(n(947));function i(e){return e&&e.__esModule?e:{default:e}}var a=0;t.default=function(){var e=""+a++,t=(0,r.default)(e),n={el:null},i=function(e){n=e},s=(0,o.default)((function(e){n.el?n.el.innerHTML=e:console.error("cannot set style of style tag if not mounted")}));return{onPhaseChange:function(e){if(n.el){var o=e.phase;if("DRAGGING"!==o){if("DROP_ANIMATING"===o)return e.drop&&e.drop.pending?"DROP"===e.drop.pending.trigger?void s(t.dropAnimating):void s(t.userCancel):void console.error("Invalid state found in style-marshal");s(t.resting)}else s(t.dragging)}else console.error("cannot update styles until style marshal is mounted")},styleContext:e,mount:function(){if(n.el)console.error("Style marshal already mounted");else{var o=document.createElement("style");o.type="text/css",o.setAttribute("data-react-beautiful-dnd",e);var r=document.querySelector("head");if(!r)throw new Error("Cannot find the head to append a style to");r.appendChild(o),i({el:o}),s(t.resting)}},unmount:function(){if(n.el){var e=n.el;i({el:null}),e.parentNode?e.parentNode.removeChild(e):console.error("Cannot unmount style marshal as cannot find parent")}else console.error("Cannot unmount style marshal as it is already unmounted")}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(571),r="data-react-beautiful-dnd";t.default=function(e){var t="["+r+'-drag-handle="'+e+'"]',n={base:"\n "+t+" {\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n }\n ",grabCursor:"\n "+t+" {\n cursor: -webkit-grab;\n cursor: grab;\n }\n ",blockPointerEvents:"\n "+t+" {\n pointer-events: none;\n }\n "},i={animateMovement:"\n "+("["+r+'-draggable="'+e+'"]')+" {\n transition: "+o.css.outOfTheWay+";\n }\n "};return{resting:[n.base,n.grabCursor].join(""),dragging:[n.base,n.blockPointerEvents,i.animateMovement,"\n body {\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n }\n "].join(""),dropAnimating:[n.base,n.grabCursor,i.animateMovement].join(""),userCancel:[n.base,i.animateMovement].join("")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.phase;return"IDLE"===n||"DROP_COMPLETE"===n||"PREPARING"!==n&&"COLLECTING_INITIAL_DIMENSIONS"!==n&&"DRAGGING"!==n&&("DROP_ANIMATING"===n?e.drop&&e.drop.pending?e.drop.pending.result.draggableId!==t&&"DROP"===e.drop.pending.trigger:(console.error("Invalid state shape for drop animating"),!1):(console.warn("unhandled phase "+n+" in canLift check"),!1))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(275)),r=i(n(235));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.movement,n=e.draggable,i=e.draggables,a=e.destination,s=n.client.withMargin.center;if(null==a)return s;var c=t.displaced,l=t.isBeyondStartPosition,u=a.axis,d=a.descriptor.id===n.descriptor.droppableId;if(d&&!c.length)return s;var h=(0,r.default)(a,i),p=d||c.length?i[c[0].draggableId].client.withMargin:h.length?h[h.length-1].client.withMargin:a.client.withMarginAndPadding,m=d?l?{sourceEdge:"end",destinationEdge:"end"}:{sourceEdge:"start",destinationEdge:"start"}:!c.length&&h.length?{sourceEdge:"start",destinationEdge:"end"}:{sourceEdge:"start",destinationEdge:"start"},g=m.sourceEdge,f=m.destinationEdge,_=n.client.withMargin;return(0,o.default)({source:_,sourceEdge:g,destination:p,destinationEdge:f,destinationAxis:u})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(951);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeSelector=void 0;var o=n(573),r=n(413),i=l(n(132)),a=n(190),s=n(965),c=l(n(966));function l(e){return e&&e.__esModule?e:{default:e}}var u=t.makeSelector=function(){var e=(0,i.default)((function(e,t){return!!t&&t.droppableId===e})),t=(0,i.default)((function(e,t,n){return n&&t?e===n.descriptor.droppableId||e!==t.droppableId?null:n.placeholder:null})),n=(0,i.default)((function(e,t){return{isDraggingOver:e,placeholder:t}}));return(0,r.createSelector)([s.phaseSelector,s.dragSelector,s.draggingDraggableSelector,s.pendingDropSelector,function(e,t){return t.droppableId},function(e,t){return t.isDropDisabled||!1}],(function(o,r,i,a,s,c){if(c)return n(!1,null);if("DRAGGING"===o){if(!r)return console.error("cannot determine dragging over as there is not drag"),n(!1,null);var l=e(s,r.impact.destination),u=t(s,r.impact.destination,i);return n(l,u)}if("DROP_ANIMATING"===o){if(!a)return console.error("cannot determine dragging over as there is no pending result"),n(!1,null);var d=e(s,a.impact.destination),h=t(s,a.result.destination,i);return n(d,h)}return n(!1,null)}))};t.default=(0,o.connect)((function(){var e=u();return function(t,n){return e(t,n)}}),null,null,{storeKey:a.storeKey})(c.default)},function(e,t,n){"use strict";var o=n(141),r=n(106);t.__esModule=!0,t.createProvider=l,t.default=void 0;var i=r(n(411)),a=o(n(81)),s=r(n(84)),c=n(575);r(n(412)),a.default.forwardRef;function l(e){var t;void 0===e&&(e="store");var n=e+"Subscription",o=function(t){(0,i.default)(r,t);var o=r.prototype;function r(n,o){var r;return(r=t.call(this,n,o)||this)[e]=n.store,r}return o.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},o.render=function(){return a.Children.only(this.props.children)},r}(a.Component);return o.propTypes={store:c.storeShape.isRequired,children:s.default.element.isRequired},o.childContextTypes=((t={})[e]=c.storeShape.isRequired,t[n]=c.subscriptionShape,t),o}var u=l();t.default=u},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";var o=n(577),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var r=p(n);r&&r!==m&&e(t,r,o)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=c(t),g=c(n),f=0;f<a.length;++f){var _=a[f];if(!(i[_]||o&&o[_]||g&&g[_]||s&&s[_])){var b=h(n,_);try{l(t,_,b)}catch(e){}}}}return t}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,u=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.async_mode"):60111,h=o?Symbol.for("react.concurrent_mode"):60111,p=o?Symbol.for("react.forward_ref"):60112,m=o?Symbol.for("react.suspense"):60113,g=o?Symbol.for("react.suspense_list"):60120,f=o?Symbol.for("react.memo"):60115,_=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.block"):60121,v=o?Symbol.for("react.fundamental"):60117,E=o?Symbol.for("react.responder"):60118,y=o?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case d:case h:case a:case c:case s:case m:return e;default:switch(e=e&&e.$$typeof){case u:case p:case _:case f:case l:return e;default:return t}}case i:return t}}}function T(e){return S(e)===h}t.AsyncMode=d,t.ConcurrentMode=h,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=_,t.Memo=f,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=m,t.isAsyncMode=function(e){return T(e)||S(e)===d},t.isConcurrentMode=T,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===_},t.isMemo=function(e){return S(e)===f},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===c},t.isStrictMode=function(e){return S(e)===s},t.isSuspense=function(e){return S(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===h||e===c||e===s||e===m||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===f||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===v||e.$$typeof===E||e.$$typeof===y||e.$$typeof===b)},t.typeOf=S},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o={notify:function(){}};var r=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=o}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=null,e=null},notify:function(){for(var n=e=t,o=0;o<n.length;o++)n[o]()},get:function(){return t},subscribe:function(n){var o=!0;return t===e&&(t=e.slice()),t.push(n),function(){o&&null!==e&&(o=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=o)},e}();t.default=r},function(e,t,n){"use strict";var o=n(106);t.__esModule=!0,t.createConnect=m,t.default=void 0;var r=o(n(191)),i=o(n(332)),a=o(n(576)),s=o(n(958)),c=o(n(959)),l=o(n(961)),u=o(n(962)),d=o(n(963));function h(e,t,n){for(var o=t.length-1;o>=0;o--){var r=t[o](e);if(r)return r}return function(t,o){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+o.wrappedComponentName+".")}}function p(e,t){return e===t}function m(e){var t=void 0===e?{}:e,n=t.connectHOC,o=void 0===n?a.default:n,m=t.mapStateToPropsFactories,g=void 0===m?l.default:m,f=t.mapDispatchToPropsFactories,_=void 0===f?c.default:f,b=t.mergePropsFactories,v=void 0===b?u.default:b,E=t.selectorFactory,y=void 0===E?d.default:E;return function(e,t,n,a){void 0===a&&(a={});var c=a,l=c.pure,u=void 0===l||l,d=c.areStatesEqual,m=void 0===d?p:d,f=c.areOwnPropsEqual,b=void 0===f?s.default:f,E=c.areStatePropsEqual,S=void 0===E?s.default:E,T=c.areMergedPropsEqual,w=void 0===T?s.default:T,C=(0,i.default)(c,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),x=h(e,g,"mapStateToProps"),O=h(t,_,"mapDispatchToProps"),k=h(n,v,"mergeProps");return o(y,(0,r.default)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:O,initMergeProps:k,pure:u,areStatesEqual:m,areOwnPropsEqual:b,areStatePropsEqual:S,areMergedPropsEqual:w},C))}}var g=m();t.default=g},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var a=0;a<n.length;a++)if(!o.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0};var o=Object.prototype.hasOwnProperty;function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";t.__esModule=!0,t.whenMapDispatchToPropsIsFunction=i,t.whenMapDispatchToPropsIsMissing=a,t.whenMapDispatchToPropsIsObject=s,t.default=void 0;var o=n(562),r=n(579);function i(e){return"function"==typeof e?(0,r.wrapMapToPropsFunc)(e,"mapDispatchToProps"):void 0}function a(e){return e?void 0:(0,r.wrapMapToPropsConstant)((function(e){return{dispatch:e}}))}function s(e){return e&&"object"==typeof e?(0,r.wrapMapToPropsConstant)((function(t){return(0,o.bindActionCreators)(e,t)})):void 0}var c=[i,a,s];t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}},function(e,t,n){"use strict";t.__esModule=!0,t.whenMapStateToPropsIsFunction=r,t.whenMapStateToPropsIsMissing=i,t.default=void 0;var o=n(579);function r(e){return"function"==typeof e?(0,o.wrapMapToPropsFunc)(e,"mapStateToProps"):void 0}function i(e){return e?void 0:(0,o.wrapMapToPropsConstant)((function(){return{}}))}var a=[r,i];t.default=a},function(e,t,n){"use strict";var o=n(106);t.__esModule=!0,t.defaultMergeProps=i,t.wrapMergePropsFunc=a,t.whenMergePropsIsFunction=s,t.whenMergePropsIsOmitted=c,t.default=void 0;var r=o(n(191));o(n(580));function i(e,t,n){return(0,r.default)({},n,e,t)}function a(e){return function(t,n){n.displayName;var o,r=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var c=e(t,n,s);return a?r&&i(c,o)||(o=c):(a=!0,o=c),o}}}function s(e){return"function"==typeof e?a(e):void 0}function c(e){return e?void 0:function(){return i}}var l=[s,c];t.default=l},function(e,t,n){"use strict";var o=n(106);t.__esModule=!0,t.impureFinalPropsSelectorFactory=i,t.pureFinalPropsSelectorFactory=a,t.default=function(e,t){var n=t.initMapStateToProps,o=t.initMapDispatchToProps,s=t.initMergeProps,c=(0,r.default)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),l=n(e,c),u=o(e,c),d=s(e,c);0;return(c.pure?a:i)(l,u,d,e,c)};var r=o(n(332));o(n(964));function i(e,t,n,o){return function(r,i){return n(e(r,i),t(o,i),i)}}function a(e,t,n,o,r){var i,a,s,c,l,u=r.areStatesEqual,d=r.areOwnPropsEqual,h=r.areStatePropsEqual,p=!1;function m(r,p){var m,g,f=!d(p,a),_=!u(r,i);return i=r,a=p,f&&_?(s=e(i,a),t.dependsOnOwnProps&&(c=t(o,a)),l=n(s,c,a)):f?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(c=t(o,a)),l=n(s,c,a)):_?(m=e(i,a),g=!h(m,s),s=m,g&&(l=n(s,c,a)),l):l}return function(r,u){return p?m(r,u):(s=e(i=r,a=u),c=t(o,a),l=n(s,c,a),p=!0,l)}}},function(e,t,n){"use strict";var o=n(106);t.__esModule=!0,t.default=function(e,t,n,o){i(e,"mapStateToProps",o),i(t,"mapDispatchToProps",o),i(n,"mergeProps",o)};var r=o(n(412));function i(e,t,n){if(!e)throw new Error("Unexpected value for "+t+" in "+n+".");"mapStateToProps"!==t&&"mapDispatchToProps"!==t||e.hasOwnProperty("dependsOnOwnProps")||(0,r.default)("The selector for "+t+" of "+n+" did not specify a value for dependsOnOwnProps.")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.draggingDraggableSelector=t.dragSelector=t.pendingDropSelector=t.phaseSelector=void 0;var o=n(413),r=t.phaseSelector=function(e){return e.phase},i=t.pendingDropSelector=function(e){return e.drop&&e.drop.pending?e.drop.pending:null},a=t.dragSelector=function(e){return e.drag};t.draggingDraggableSelector=(0,o.createSelector)([r,a,i,function(e){return e.dimension.draggable}],(function(e,t,n,o){return"DRAGGING"===e?t?o[t.initial.descriptor.id]:(console.error("cannot get placeholder dimensions as there is an invalid drag state"),null):"DROP_ANIMATING"===e?n?n.result.destination?o[n.result.draggableId]:null:(console.error("cannot get placeholder dimensions as there is an invalid drag state"),null):null}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=g(n(166)),r=g(n(183)),i=g(n(184)),a=g(n(185)),s=g(n(186)),c=g(n(187)),l=n(81),u=g(l),d=g(n(84)),h=g(n(967)),p=g(n(582)),m=n(190);function g(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){var e,n,o,a;(0,i.default)(this,t);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return n=o=(0,s.default)(this,(e=t.__proto__||(0,r.default)(t)).call.apply(e,[this].concat(l))),o.state={ref:null},o.setRef=function(e){null!==e&&e!==o.state.ref&&o.setState({ref:e})},a=n,(0,s.default)(o,a)}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getChildContext",value:function(){return(0,o.default)({},m.droppableIdKey,this.props.droppableId)}},{key:"getPlaceholder",value:function(){return this.props.placeholder?u.default.createElement(p.default,{placeholder:this.props.placeholder}):null}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.direction,o=e.droppableId,r=e.ignoreContainerClipping,i=e.isDraggingOver,a=e.isDropDisabled,s=e.type,c={innerRef:this.setRef,placeholder:this.getPlaceholder()},l={isDraggingOver:i};return u.default.createElement(h.default,{droppableId:o,type:s,direction:n,ignoreContainerClipping:r,isDropDisabled:a,targetRef:this.state.ref},t(c,l))}}]),t}(l.Component);f.defaultProps={type:"DEFAULT",isDropDisabled:!1,direction:"vertical",ignoreContainerClipping:!1},f.childContextTypes=(0,o.default)({},m.droppableIdKey,d.default.string.isRequired),t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(968);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=b(n(166)),r=b(n(183)),i=b(n(184)),a=b(n(185)),s=b(n(186)),c=b(n(187)),l=n(81),u=b(n(84)),d=b(n(132)),h=b(n(581)),p=b(n(414)),m=b(n(234)),g=n(331),f=b(n(969)),_=n(190);function b(e){return e&&e.__esModule?e:{default:e}}var v={x:0,y:0},E=function(e){function t(e,n){(0,i.default)(this,t);var o=(0,s.default)(this,(t.__proto__||(0,r.default)(t)).call(this,e,n));o.closestScrollable=null,o.isWatchingScroll=!1,o.publishedDescriptor=null,o.getScrollOffset=function(){return o.closestScrollable?{x:o.closestScrollable.scrollLeft,y:o.closestScrollable.scrollTop}:v},o.memoizedUpdateScroll=(0,d.default)((function(e,t){if(o.publishedDescriptor){var n={x:e,y:t};o.context[_.dimensionMarshalKey].updateDroppableScroll(o.publishedDescriptor.id,n)}else console.error("Cannot update scroll on unpublished droppable")})),o.scheduleScrollUpdate=(0,h.default)((function(e){o.isWatchingScroll&&o.memoizedUpdateScroll(e.x,e.y)})),o.onClosestScroll=function(){o.scheduleScrollUpdate(o.getScrollOffset())},o.watchScroll=function(){o.props.targetRef?null!=o.closestScrollable&&(o.isWatchingScroll||(o.isWatchingScroll=!0,o.closestScrollable.addEventListener("scroll",o.onClosestScroll,{passive:!0}))):console.error("cannot watch droppable scroll if not in the dom")},o.unwatchScroll=function(){o.isWatchingScroll&&(o.isWatchingScroll=!1,o.closestScrollable?o.closestScrollable.removeEventListener("scroll",o.onClosestScroll):console.error("cannot unbind event listener if element is null"))},o.getMemoizedDescriptor=(0,d.default)((function(e,t){return{id:e,type:t}})),o.unpublish=function(){o.publishedDescriptor?(o.context[_.dimensionMarshalKey].unregisterDroppable(o.publishedDescriptor),o.publishedDescriptor=null):console.error("cannot unpublish descriptor when none is published")},o.publish=function(e){e!==o.publishedDescriptor&&(o.publishedDescriptor&&o.unpublish(),o.context[_.dimensionMarshalKey].registerDroppable(e,o.callbacks),o.publishedDescriptor=e)},o.getDimension=function(){var e=o.props,t=e.direction,n=e.ignoreContainerClipping,r=e.isDropDisabled,i=e.targetRef;if(!i)throw new Error("DimensionPublisher cannot calculate a dimension when not attached to the DOM");if(o.isWatchingScroll)throw new Error("Attempting to recapture Droppable dimension while already watching scroll on previous capture");var a=o.publishedDescriptor;if(!a)throw new Error("Cannot get dimension for unpublished droppable");o.closestScrollable=(0,f.default)(i);var s=o.getScrollOffset(),c=window.getComputedStyle(i),l={top:parseInt(c.marginTop,10),right:parseInt(c.marginRight,10),bottom:parseInt(c.marginBottom,10),left:parseInt(c.marginLeft,10)},u={top:parseInt(c.paddingTop,10),right:parseInt(c.paddingRight,10),bottom:parseInt(c.paddingBottom,10),left:parseInt(c.paddingLeft,10)},d=(0,m.default)(i.getBoundingClientRect()),h=n?null:o.closestScrollable?o.closestScrollable===i?null:(0,m.default)(o.closestScrollable.getBoundingClientRect()):null;return(0,g.getDroppableDimension)({descriptor:a,direction:t,client:d,frameClient:h,frameScroll:s,margin:l,padding:u,windowScroll:(0,p.default)(),isEnabled:!r})};var a={getDimension:o.getDimension,watchScroll:o.watchScroll,unwatchScroll:o.unwatchScroll};return o.callbacks=a,o}return(0,c.default)(t,e),(0,a.default)(t,[{key:"componentWillReceiveProps",value:function(e){if(e.targetRef){var t=e.droppableId,n=e.type,o=this.getMemoizedDescriptor(t,n);if(this.publish(o),this.props.isDropDisabled!==e.isDropDisabled)this.context[_.dimensionMarshalKey].updateDroppableIsEnabled(e.droppableId,!e.isDropDisabled)}else console.error("Cannot update droppable dimension publisher without a target ref")}},{key:"componentWillUnmount",value:function(){this.isWatchingScroll&&(console.warn("unmounting droppable while it was watching scroll"),this.unwatchScroll()),this.unpublish()}},{key:"render",value:function(){return this.props.children}}]),t}(l.Component);E.contextTypes=(0,o.default)({},_.dimensionMarshalKey,u.default.object.isRequired),t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=window.getComputedStyle(e);return function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return"auto"===e||"scroll"===e}))}(t.overflow,t.overflowY,t.overflowX)};t.default=function e(t){return null==t?null:o(t)?t:e(t.parentElement)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=u(n(183)),r=u(n(184)),i=u(n(185)),a=u(n(186)),s=u(n(187)),c=n(81),l=u(c);function u(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(){return(0,r.default)(this,t),(0,a.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,i.default)(t,[{key:"render",value:function(){var e=this.props.placeholder,t=e.margin,n=t.top,o=t.left,r=t.bottom,i=t.right,a=e.withoutMargin,s={width:a.width,height:a.height,marginTop:n,marginLeft:o,marginBottom:r,marginRight:i,pointerEvents:"none",boxSizing:"border-box"};return l.default.createElement("div",{style:s})}}]),t}(c.PureComponent);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(972);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeSelector=void 0;var o=d(n(132)),r=n(573),i=n(413),a=d(n(973)),s=n(190),c=n(125),l=d(n(568)),u=n(572);function d(e){return e&&e.__esModule?e:{default:e}}var h={isDropAnimating:!1,isDragging:!1,offset:{x:0,y:0},shouldAnimateDragMovement:!1,shouldAnimateDisplacement:!0,dimension:null,direction:null},p=t.makeSelector=function(){var e=(0,o.default)((function(e,t){return{x:e,y:t}})),t=(0,o.default)((function(e,t){return{isDropAnimating:!1,isDragging:!1,offset:e,shouldAnimateDisplacement:t,shouldAnimateDragMovement:!1,dimension:null,direction:null}})),n=(0,o.default)((function(e,t,n,o){return{isDragging:!0,isDropAnimating:!1,shouldAnimateDisplacement:!1,offset:e,shouldAnimateDragMovement:t,dimension:n,direction:o}})),r=function(n,o){var r=(0,l.default)(o.displaced)[n];if(!r)return null;if(!r.isVisible)return null;var i=o.isBeyondStartPosition?(0,c.negate)(o.amount):o.amount;return t(e(i.x,i.y),r.shouldAnimate)};return(0,i.createSelector)([function(t,o){if("DRAGGING"!==t.phase&&"DROP_ANIMATING"!==t.phase)return null;if("DRAGGING"===t.phase){if(!t.drag)return console.error("invalid drag state found in selector"),null;if(t.drag.initial.descriptor.id!==o.draggableId)return null;var r=t.drag.current.client.offset,i=t.dimension.draggable[o.draggableId],a=t.drag.impact.direction,s=t.drag.current.shouldAnimate;return n(e(r.x,r.y),s,i,a)}return t.drop&&t.drop.pending?t.drop.pending.result.draggableId!==o.draggableId?null:{isDragging:!1,isDropAnimating:!0,offset:t.drop.pending.newHomeOffset,dimension:t.dimension.draggable[o.draggableId],direction:null,shouldAnimateDragMovement:!1,shouldAnimateDisplacement:!1}:(console.error("cannot provide props for dropping item when there is invalid state"),null)},function(e,t){return"DRAGGING"!==e.phase&&"DROP_ANIMATING"!==e.phase?null:"DRAGGING"===e.phase?e.drag?e.drag.initial.descriptor.id===t.draggableId?null:r(t.draggableId,e.drag.impact.movement):(console.error("cannot correctly move item out of the way when there is invalid state"),null):e.drop&&e.drop.pending?e.drop.pending.result.draggableId===t.draggableId?null:r(t.draggableId,e.drop.pending.impact.movement):(console.error("cannot provide props for dropping item when there is invalid state"),null)}],(function(e,t){return e||(t||h)}))},m={lift:u.lift,move:u.move,moveForward:u.moveForward,moveBackward:u.moveBackward,crossAxisMoveForward:u.crossAxisMoveForward,crossAxisMoveBackward:u.crossAxisMoveBackward,moveByWindowScroll:u.moveByWindowScroll,drop:u.drop,dropAnimationFinished:u.dropAnimationFinished,cancel:u.cancel};t.default=(0,r.connect)((function(){var e=p();return function(t,n){return e(t,n)}}),m,null,{storeKey:s.storeKey})(a.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zIndexOptions=void 0;var o,r=S(n(166)),i=S(n(183)),a=S(n(184)),s=S(n(185)),c=S(n(186)),l=S(n(187)),u=n(81),d=S(u),h=S(n(84)),p=S(n(132)),m=S(n(578)),g=S(n(974)),f=S(n(976)),_=S(n(986)),b=S(n(414)),v=S(n(585)),E=S(n(582)),y=n(190);function S(e){return e&&e.__esModule?e:{default:e}}var T=t.zIndexOptions={dragging:5e3,dropAnimating:4500},w=function(e){function t(e,n){(0,a.default)(this,t);var o=(0,c.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e,n));o.state={ref:null},o.onMoveEnd=function(){o.props.isDropAnimating&&o.props.dropAnimationFinished()},o.onLift=function(e){o.throwIfCannotDrag();var t=e.client,n=e.isScrollAllowed,r=o.props,i=r.lift,a=r.draggableId,s=o.state.ref;if(!s)throw new Error("cannot lift at this time");i(a,{selection:t,center:(0,v.default)(s)},(0,b.default)(),n)},o.onMove=function(e){o.throwIfCannotDrag();var t=o.props,n=t.draggableId,r=t.dimension,i=t.move;r&&i(n,e,(0,b.default)())},o.onMoveForward=function(){o.throwIfCannotDrag(),o.props.moveForward(o.props.draggableId)},o.onMoveBackward=function(){o.throwIfCannotDrag(),o.props.moveBackward(o.props.draggableId)},o.onCrossAxisMoveForward=function(){o.throwIfCannotDrag(),o.props.crossAxisMoveForward(o.props.draggableId)},o.onCrossAxisMoveBackward=function(){o.throwIfCannotDrag(),o.props.crossAxisMoveBackward(o.props.draggableId)},o.onWindowScroll=function(){o.throwIfCannotDrag();var e=(0,b.default)();o.props.moveByWindowScroll(o.props.draggableId,e)},o.onDrop=function(){o.throwIfCannotDrag(),o.props.drop()},o.onCancel=function(){o.props.cancel()},o.setRef=function(e){null!==e&&e!==o.state.ref&&o.setState({ref:e})},o.getDraggableRef=function(){return o.state.ref},o.getDraggingStyle=(0,p.default)((function(e,t,n){var o=e.client.withoutMargin,r=o.width,i=o.height,a=o.top,s=o.left;return{position:"fixed",boxSizing:"border-box",zIndex:t?T.dropAnimating:T.dragging,width:r,height:i,top:a,left:s,margin:0,pointerEvents:"none",transition:"none",transform:n.transform?""+n.transform:null}})),o.getNotDraggingStyle=(0,p.default)((function(e,t){return{transform:e.transform,transition:t?null:"none"}})),o.getProvided=(0,p.default)((function(e,t,n,r,i,a){var s=e||t,c=s?((0,m.default)(r,"draggable dimension required for dragging"),o.getDraggingStyle(r,t,a)):o.getNotDraggingStyle(a,n);return{innerRef:o.setRef,draggableProps:{"data-react-beautiful-dnd-draggable":o.styleContext,style:c},dragHandleProps:i,placeholder:s?o.getPlaceholder():null}})),o.getSnapshot=(0,p.default)((function(e,t){return{isDragging:e||t}})),o.getSpeed=(0,p.default)((function(e,t,n){return n?"STANDARD":e&&t?"FAST":"INSTANT"}));var r={onLift:o.onLift,onMove:o.onMove,onDrop:o.onDrop,onCancel:o.onCancel,onMoveBackward:o.onMoveBackward,onMoveForward:o.onMoveForward,onCrossAxisMoveForward:o.onCrossAxisMoveForward,onCrossAxisMoveBackward:o.onCrossAxisMoveBackward,onWindowScroll:o.onWindowScroll};return o.callbacks=r,o.styleContext=n[y.styleContextKey],o}return(0,l.default)(t,e),(0,s.default)(t,[{key:"throwIfCannotDrag",value:function(){(0,m.default)(this.state.ref,"Draggable: cannot drag as no DOM node has been provided"),(0,m.default)(!this.props.isDragDisabled,"Draggable: cannot drag as dragging is not enabled")}},{key:"getPlaceholder",value:function(){var e=this.props.dimension;return(0,m.default)(e,"cannot get a drag placeholder when not dragging"),d.default.createElement(E.default,{placeholder:e.placeholder})}},{key:"render",value:function(){var e=this,t=this.props,n=t.draggableId,o=t.index,r=t.offset,i=t.isDragging,a=t.isDropAnimating,s=t.isDragDisabled,c=t.dimension,l=t.children,u=t.direction,h=t.shouldAnimateDragMovement,p=t.shouldAnimateDisplacement,m=t.disableInteractiveElementBlocking,b=this.context[y.droppableIdKey],v=this.getSpeed(i,h,a);return d.default.createElement(g.default,{draggableId:n,droppableId:b,index:o,targetRef:this.state.ref},d.default.createElement(f.default,{speed:v,destination:r,onMoveEnd:this.onMoveEnd},(function(t){return d.default.createElement(_.default,{draggableId:n,isDragging:i,direction:u,isEnabled:!s,callbacks:e.callbacks,getDraggableRef:e.getDraggableRef,canDragInteractiveElements:m},(function(n){return l(e.getProvided(i,a,p,c,n,t),e.getSnapshot(i,a))}))})))}}]),t}(u.Component);w.defaultProps={isDragDisabled:!1,disableInteractiveElementBlocking:!1},w.contextTypes=(o={},(0,r.default)(o,y.droppableIdKey,h.default.string.isRequired),(0,r.default)(o,y.styleContextKey,h.default.string.isRequired),o),t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(975);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=f(n(166)),r=f(n(183)),i=f(n(184)),a=f(n(185)),s=f(n(186)),c=f(n(187)),l=n(81),u=f(n(84)),d=f(n(132)),h=f(n(414)),p=n(331),m=n(190),g=f(n(234));function f(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(){var e,n,o,a;(0,i.default)(this,t);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return n=o=(0,s.default)(this,(e=t.__proto__||(0,r.default)(t)).call.apply(e,[this].concat(l))),o.publishedDescriptor=null,o.getMemoizedDescriptor=(0,d.default)((function(e,t,n){return{id:e,droppableId:t,index:n}})),o.unpublish=function(){o.publishedDescriptor?(o.context[m.dimensionMarshalKey].unregisterDraggable(o.publishedDescriptor),o.publishedDescriptor=null):console.error("cannot unpublish descriptor when none is published")},o.publish=function(e){e!==o.publishedDescriptor&&(o.publishedDescriptor&&o.unpublish(),o.context[m.dimensionMarshalKey].registerDraggable(e,o.getDimension),o.publishedDescriptor=e)},o.getDimension=function(){var e=o.props.targetRef;if(!e)throw new Error("DraggableDimensionPublisher cannot calculate a dimension when not attached to the DOM");var t=o.publishedDescriptor;if(!t)throw new Error("Cannot get dimension for unpublished draggable");var n=window.getComputedStyle(e),r={top:parseInt(n.marginTop,10),right:parseInt(n.marginRight,10),bottom:parseInt(n.marginBottom,10),left:parseInt(n.marginLeft,10)},i=(0,g.default)(e.getBoundingClientRect());return(0,p.getDraggableDimension)({descriptor:t,client:i,margin:r,windowScroll:(0,h.default)()})},a=n,(0,s.default)(o,a)}return(0,c.default)(t,e),(0,a.default)(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.draggableId,n=e.droppableId,o=e.index;if(e.targetRef){var r=this.getMemoizedDescriptor(t,n,o);this.publish(r)}else console.error("Updating draggable dimension handler without a targetRef")}},{key:"componentWillUnmount",value:function(){this.unpublish()}},{key:"render",value:function(){return this.props.children}}]),t}(l.Component);_.contextTypes=(0,o.default)({},m.dimensionMarshalKey,u.default.object.isRequired),t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(977);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=h(n(183)),r=h(n(184)),i=h(n(185)),a=h(n(186)),s=h(n(187)),c=n(81),l=h(c),u=n(978),d=n(571);function h(e){return e&&e.__esModule?e:{default:e}}var p={x:0,y:0},m={transform:null},g=function(e){return e.x===p.x&&e.y===p.y},f=function(e){function t(){var e,n,i,s;(0,r.default)(this,t);for(var c=arguments.length,l=Array(c),h=0;h<c;h++)l[h]=arguments[h];return n=i=(0,a.default)(this,(e=t.__proto__||(0,o.default)(t)).call.apply(e,[this].concat(l))),i.onRest=function(){var e=i.props.onMoveEnd;e&&setTimeout((function(){return e()}))},i.getFinal=function(){var e=i.props.destination,t=i.props.speed;if("INSTANT"===t)return e;var n="FAST"===t?d.physics.fast:d.physics.standard;return{x:(0,u.spring)(e.x,n),y:(0,u.spring)(e.y,n)}},s=n,(0,a.default)(i,s)}return(0,s.default)(t,e),(0,i.default)(t,[{key:"render",value:function(){var e=this,t=this.getFinal(),n=g(t);return l.default.createElement(u.Motion,{defaultStyle:p,style:t,onRest:this.onRest},(function(t){return e.props.children(function(e,t,n){if(e)return m;var o={x:t,y:n};return g(o)?m:{transform:"translate("+o.x+"px, "+o.y+"px)"}}(n,t.x,t.y))}))}}]),t}(c.Component);f.defaultProps={destination:p},t.default=f},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var r=n(979);t.Motion=o(r);var i=n(981);t.StaggeredMotion=o(i);var a=n(982);t.TransitionMotion=o(a);var s=n(984);t.spring=o(s);var c=n(583);t.presets=o(c);var l=n(333);t.stripStyle=o(l);var u=n(985);t.reorderKeys=o(u)},function(e,t,n){"use strict";t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(n(415)),s=i(n(333)),c=i(n(416)),l=i(n(417)),u=i(n(418)),d=i(n(419)),h=i(n(81)),p=i(n(84)),m=function(e){function t(n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this.wasAnimating=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyle=null,this.clearUnreadPropStyle=function(e){var t=!1,n=r.state,i=n.currentStyle,a=n.currentVelocity,s=n.lastIdealStyle,c=n.lastIdealVelocity;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var u=e[l];"number"==typeof u&&(t||(t=!0,i=o({},i),a=o({},a),s=o({},s),c=o({},c)),i[l]=u,a[l]=0,s[l]=u,c[l]=0)}t&&r.setState({currentStyle:i,currentVelocity:a,lastIdealStyle:s,lastIdealVelocity:c})},this.startAnimationIfNecessary=function(){r.animationID=u.default((function(e){var t=r.props.style;if(d.default(r.state.currentStyle,t,r.state.currentVelocity))return r.wasAnimating&&r.props.onRest&&r.props.onRest(),r.animationID=null,r.wasAnimating=!1,void(r.accumulatedTime=0);r.wasAnimating=!0;var n=e||l.default(),o=n-r.prevTime;if(r.prevTime=n,r.accumulatedTime=r.accumulatedTime+o,r.accumulatedTime>1e3/60*10&&(r.accumulatedTime=0),0===r.accumulatedTime)return r.animationID=null,void r.startAnimationIfNecessary();var i=(r.accumulatedTime-Math.floor(r.accumulatedTime/(1e3/60))*(1e3/60))/(1e3/60),a=Math.floor(r.accumulatedTime/(1e3/60)),s={},u={},h={},p={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var g=t[m];if("number"==typeof g)h[m]=g,p[m]=0,s[m]=g,u[m]=0;else{for(var f=r.state.lastIdealStyle[m],_=r.state.lastIdealVelocity[m],b=0;b<a;b++){var v=c.default(1e3/60/1e3,f,_,g.val,g.stiffness,g.damping,g.precision);f=v[0],_=v[1]}var E=c.default(1e3/60/1e3,f,_,g.val,g.stiffness,g.damping,g.precision),y=E[0],S=E[1];h[m]=f+(y-f)*i,p[m]=_+(S-_)*i,s[m]=f,u[m]=_}}r.animationID=null,r.accumulatedTime-=a*(1e3/60),r.setState({currentStyle:h,currentVelocity:p,lastIdealStyle:s,lastIdealVelocity:u}),r.unreadPropStyle=null,r.startAnimationIfNecessary()}))},this.state=this.defaultState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"propTypes",value:{defaultStyle:p.default.objectOf(p.default.number),style:p.default.objectOf(p.default.oneOfType([p.default.number,p.default.object])).isRequired,children:p.default.func.isRequired,onRest:p.default.func},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyle,n=e.style,o=t||s.default(n),r=a.default(o);return{currentStyle:o,currentVelocity:r,lastIdealStyle:o,lastIdealVelocity:r}},t.prototype.componentDidMount=function(){this.prevTime=l.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=l.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(u.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyle);return e&&h.default.Children.only(e)},t}(h.default.Component);t.default=m,e.exports=t.default},function(e,t,n){(function(t){(function(){var n,o,r,i,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},o=t.hrtime,i=(n=function(){var e;return 1e9*(e=o())[0]+e[1]})(),s=1e9*t.uptime(),a=i-s):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)}).call(this,n(161))},function(e,t,n){"use strict";t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(n(415)),s=i(n(333)),c=i(n(416)),l=i(n(417)),u=i(n(418)),d=i(n(419)),h=i(n(81)),p=i(n(84));var m=function(e){function t(n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=r.state,n=t.currentStyles,i=t.currentVelocities,a=t.lastIdealStyles,s=t.lastIdealVelocities,c=!1,l=0;l<e.length;l++){var u=e[l],d=!1;for(var h in u)if(Object.prototype.hasOwnProperty.call(u,h)){var p=u[h];"number"==typeof p&&(d||(d=!0,c=!0,n[l]=o({},n[l]),i[l]=o({},i[l]),a[l]=o({},a[l]),s[l]=o({},s[l])),n[l][h]=p,i[l][h]=0,a[l][h]=p,s[l][h]=0)}}c&&r.setState({currentStyles:n,currentVelocities:i,lastIdealStyles:a,lastIdealVelocities:s})},this.startAnimationIfNecessary=function(){r.animationID=u.default((function(e){var t=r.props.styles(r.state.lastIdealStyles);if(function(e,t,n){for(var o=0;o<e.length;o++)if(!d.default(e[o],t[o],n[o]))return!1;return!0}(r.state.currentStyles,t,r.state.currentVelocities))return r.animationID=null,void(r.accumulatedTime=0);var n=e||l.default(),o=n-r.prevTime;if(r.prevTime=n,r.accumulatedTime=r.accumulatedTime+o,r.accumulatedTime>1e3/60*10&&(r.accumulatedTime=0),0===r.accumulatedTime)return r.animationID=null,void r.startAnimationIfNecessary();for(var i=(r.accumulatedTime-Math.floor(r.accumulatedTime/(1e3/60))*(1e3/60))/(1e3/60),a=Math.floor(r.accumulatedTime/(1e3/60)),s=[],u=[],h=[],p=[],m=0;m<t.length;m++){var g=t[m],f={},_={},b={},v={};for(var E in g)if(Object.prototype.hasOwnProperty.call(g,E)){var y=g[E];if("number"==typeof y)f[E]=y,_[E]=0,b[E]=y,v[E]=0;else{for(var S=r.state.lastIdealStyles[m][E],T=r.state.lastIdealVelocities[m][E],w=0;w<a;w++){var C=c.default(1e3/60/1e3,S,T,y.val,y.stiffness,y.damping,y.precision);S=C[0],T=C[1]}var x=c.default(1e3/60/1e3,S,T,y.val,y.stiffness,y.damping,y.precision),O=x[0],k=x[1];f[E]=S+(O-S)*i,_[E]=T+(k-T)*i,b[E]=S,v[E]=T}}h[m]=f,p[m]=_,s[m]=b,u[m]=v}r.animationID=null,r.accumulatedTime-=a*(1e3/60),r.setState({currentStyles:h,currentVelocities:p,lastIdealStyles:s,lastIdealVelocities:u}),r.unreadPropStyles=null,r.startAnimationIfNecessary()}))},this.state=this.defaultState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"propTypes",value:{defaultStyles:p.default.arrayOf(p.default.objectOf(p.default.number)),styles:p.default.func.isRequired,children:p.default.func.isRequired},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,n=e.styles,o=t||n().map(s.default),r=o.map((function(e){return a.default(e)}));return{currentStyles:o,currentVelocities:r,lastIdealStyles:o,lastIdealVelocities:r}},t.prototype.componentDidMount=function(){this.prevTime=l.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=l.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(u.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyles);return e&&h.default.Children.only(e)},t}(h.default.Component);t.default=m,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(n(415)),s=i(n(333)),c=i(n(416)),l=i(n(983)),u=i(n(417)),d=i(n(418)),h=i(n(419)),p=i(n(81)),m=i(n(84));function g(e,t,n){var o=t;return null==o?e.map((function(e,t){return{key:e.key,data:e.data,style:n[t]}})):e.map((function(e,t){for(var r=0;r<o.length;r++)if(o[r].key===e.key)return{key:o[r].key,data:o[r].data,style:n[t]};return{key:e.key,data:e.data,style:n[t]}}))}function f(e,t,n,o,r,i,s,c,u){for(var d=l.default(o,r,(function(e,o){var r=t(o);return null==r||h.default(i[e],r,s[e])?(n({key:o.key,data:o.data}),null):{key:o.key,data:o.data,style:r}})),p=[],m=[],g=[],f=[],_=0;_<d.length;_++){for(var b=d[_],v=null,E=0;E<o.length;E++)if(o[E].key===b.key){v=E;break}if(null==v){var y=e(b);p[_]=y,g[_]=y;var S=a.default(b.style);m[_]=S,f[_]=S}else p[_]=i[v],g[_]=c[v],m[_]=s[v],f[_]=u[v]}return[d,p,m,g,f]}var _=function(e){function t(n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this.unmounting=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=f(r.props.willEnter,r.props.willLeave,r.props.didLeave,r.state.mergedPropsStyles,e,r.state.currentStyles,r.state.currentVelocities,r.state.lastIdealStyles,r.state.lastIdealVelocities),n=t[0],i=t[1],a=t[2],s=t[3],c=t[4],l=0;l<e.length;l++){var u=e[l].style,d=!1;for(var h in u)if(Object.prototype.hasOwnProperty.call(u,h)){var p=u[h];"number"==typeof p&&(d||(d=!0,i[l]=o({},i[l]),a[l]=o({},a[l]),s[l]=o({},s[l]),c[l]=o({},c[l]),n[l]={key:n[l].key,data:n[l].data,style:o({},n[l].style)}),i[l][h]=p,a[l][h]=0,s[l][h]=p,c[l][h]=0,n[l].style[h]=p)}}r.setState({currentStyles:i,currentVelocities:a,mergedPropsStyles:n,lastIdealStyles:s,lastIdealVelocities:c})},this.startAnimationIfNecessary=function(){r.unmounting||(r.animationID=d.default((function(e){if(!r.unmounting){var t=r.props.styles,n="function"==typeof t?t(g(r.state.mergedPropsStyles,r.unreadPropStyles,r.state.lastIdealStyles)):t;if(function(e,t,n,o){if(o.length!==t.length)return!1;for(var r=0;r<o.length;r++)if(o[r].key!==t[r].key)return!1;for(r=0;r<o.length;r++)if(!h.default(e[r],t[r].style,n[r]))return!1;return!0}(r.state.currentStyles,n,r.state.currentVelocities,r.state.mergedPropsStyles))return r.animationID=null,void(r.accumulatedTime=0);var o=e||u.default(),i=o-r.prevTime;if(r.prevTime=o,r.accumulatedTime=r.accumulatedTime+i,r.accumulatedTime>1e3/60*10&&(r.accumulatedTime=0),0===r.accumulatedTime)return r.animationID=null,void r.startAnimationIfNecessary();for(var a=(r.accumulatedTime-Math.floor(r.accumulatedTime/(1e3/60))*(1e3/60))/(1e3/60),s=Math.floor(r.accumulatedTime/(1e3/60)),l=f(r.props.willEnter,r.props.willLeave,r.props.didLeave,r.state.mergedPropsStyles,n,r.state.currentStyles,r.state.currentVelocities,r.state.lastIdealStyles,r.state.lastIdealVelocities),d=l[0],p=l[1],m=l[2],_=l[3],b=l[4],v=0;v<d.length;v++){var E=d[v].style,y={},S={},T={},w={};for(var C in E)if(Object.prototype.hasOwnProperty.call(E,C)){var x=E[C];if("number"==typeof x)y[C]=x,S[C]=0,T[C]=x,w[C]=0;else{for(var O=_[v][C],k=b[v][C],R=0;R<s;R++){var A=c.default(1e3/60/1e3,O,k,x.val,x.stiffness,x.damping,x.precision);O=A[0],k=A[1]}var I=c.default(1e3/60/1e3,O,k,x.val,x.stiffness,x.damping,x.precision),D=I[0],N=I[1];y[C]=O+(D-O)*a,S[C]=k+(N-k)*a,T[C]=O,w[C]=k}}_[v]=T,b[v]=w,p[v]=y,m[v]=S}r.animationID=null,r.accumulatedTime-=s*(1e3/60),r.setState({currentStyles:p,currentVelocities:m,lastIdealStyles:_,lastIdealVelocities:b,mergedPropsStyles:d}),r.unreadPropStyles=null,r.startAnimationIfNecessary()}})))},this.state=this.defaultState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"propTypes",value:{defaultStyles:m.default.arrayOf(m.default.shape({key:m.default.string.isRequired,data:m.default.any,style:m.default.objectOf(m.default.number).isRequired})),styles:m.default.oneOfType([m.default.func,m.default.arrayOf(m.default.shape({key:m.default.string.isRequired,data:m.default.any,style:m.default.objectOf(m.default.oneOfType([m.default.number,m.default.object])).isRequired}))]).isRequired,children:m.default.func.isRequired,willEnter:m.default.func,willLeave:m.default.func,didLeave:m.default.func},enumerable:!0},{key:"defaultProps",value:{willEnter:function(e){return s.default(e.style)},willLeave:function(){return null},didLeave:function(){}},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,n=e.styles,o=e.willEnter,r=e.willLeave,i=e.didLeave,c="function"==typeof n?n(t):n,l=void 0;l=null==t?c:t.map((function(e){for(var t=0;t<c.length;t++)if(c[t].key===e.key)return c[t];return e}));var u=null==t?c.map((function(e){return s.default(e.style)})):t.map((function(e){return s.default(e.style)})),d=null==t?c.map((function(e){return a.default(e.style)})):t.map((function(e){return a.default(e.style)})),h=f(o,r,i,l,c,u,d,u,d),p=h[0];return{currentStyles:h[1],currentVelocities:h[2],lastIdealStyles:h[3],lastIdealVelocities:h[4],mergedPropsStyles:p}},t.prototype.componentDidMount=function(){this.prevTime=u.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;this.unreadPropStyles="function"==typeof t?t(g(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):t,null==this.animationID&&(this.prevTime=u.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){this.unmounting=!0,null!=this.animationID&&(d.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=g(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&p.default.Children.only(t)},t}(p.default.Component);t.default=_,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){for(var o={},r=0;r<e.length;r++)o[e[r].key]=r;var i={};for(r=0;r<t.length;r++)i[t[r].key]=r;var a=[];for(r=0;r<t.length;r++)a[r]=t[r];for(r=0;r<e.length;r++)if(!Object.prototype.hasOwnProperty.call(i,e[r].key)){var s=n(r,e[r]);null!=s&&a.push(s)}return a.sort((function(e,n){var r=i[e.key],a=i[n.key],s=o[e.key],c=o[n.key];if(null!=r&&null!=a)return i[e.key]-i[n.key];if(null!=s&&null!=c)return o[e.key]-o[n.key];if(null!=r){for(var l=0;l<t.length;l++){var u=t[l].key;if(Object.prototype.hasOwnProperty.call(o,u)){if(r<i[u]&&c>o[u])return-1;if(r>i[u]&&c<o[u])return 1}}return 1}for(l=0;l<t.length;l++){u=t[l].key;if(Object.prototype.hasOwnProperty.call(o,u)){if(a<i[u]&&s>o[u])return 1;if(a>i[u]&&s<o[u])return-1}}return-1}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.default=function(e,t){return o({},s,t,{val:e})};var r,i=n(583),a=(r=i)&&r.__esModule?r:{default:r},s=o({},a.default.noWobble,{precision:.01});e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){0};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(987);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=b(n(166)),i=b(n(183)),a=b(n(184)),s=b(n(185)),c=b(n(186)),l=b(n(187)),u=n(81),d=b(n(84)),h=b(n(132)),p=n(190),m=b(n(988)),g=b(n(989)),f=b(n(991)),_=b(n(992));function b(e){return e&&e.__esModule?e:{default:e}}var v=function(){return!1},E=function(e){function t(e,n){(0,a.default)(this,t);var o=(0,c.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e,n));o.onKeyDown=function(e){o.mouseSensor.isCapturing()||o.keyboardSensor.onKeyDown(e,o.props)},o.onMouseDown=function(e){o.keyboardSensor.isCapturing()||o.mouseSensor.isCapturing()||o.mouseSensor.onMouseDown(e)},o.onTouchStart=function(e){o.mouseSensor.isCapturing()||o.keyboardSensor.isCapturing()?console.error("mouse or keyboard already listening when attempting to touch drag"):o.touchSensor.onTouchStart(e)},o.onTouchMove=function(e){o.touchSensor.onTouchMove(e)},o.onClick=function(e){o.mouseSensor.onClick(e),o.touchSensor.onClick(e)},o.canStartCapturing=function(e){return!o.isAnySensorCapturing()&&(!!o.canLift(o.props.draggableId)&&(0,m.default)(e,o.props))},o.isAnySensorDragging=function(){return o.sensors.some((function(e){return e.isDragging()}))},o.isAnySensorCapturing=function(){return o.sensors.some((function(e){return e.isCapturing()}))},o.getProvided=(0,h.default)((function(e,t){return e?{onMouseDown:o.onMouseDown,onKeyDown:o.onKeyDown,onTouchStart:o.onTouchStart,onTouchMove:o.onTouchMove,onClick:o.onClick,tabIndex:0,"aria-grabbed":t,"data-react-beautiful-dnd-drag-handle":o.styleContext,draggable:!1,onDragStart:v,onDrop:v}:null}));var r={callbacks:o.props.callbacks,getDraggableRef:o.props.getDraggableRef,canStartCapturing:o.canStartCapturing};return o.mouseSensor=(0,g.default)(r),o.keyboardSensor=(0,f.default)(r),o.touchSensor=(0,_.default)(r),o.sensors=[o.mouseSensor,o.keyboardSensor,o.touchSensor],o.styleContext=n[p.styleContextKey],o.canLift=n[p.canLiftContextKey],o}return(0,l.default)(t,e),(0,s.default)(t,[{key:"componentWillUnmount",value:function(){var e=this;this.sensors.forEach((function(t){var n=t.isCapturing(),o=t.isDragging();n&&t.kill(),o&&e.props.callbacks.onCancel()}))}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.isAnySensorCapturing()&&(this.props.isDragging&&!e.isDragging?this.sensors.forEach((function(e){e.isCapturing()&&e.kill()})):e.isEnabled||this.sensors.forEach((function(e){if(e.isCapturing()){var n=e.isDragging();e.kill(),n&&t.props.callbacks.onCancel()}})))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled;return t(this.getProvided(n,this.isAnySensorDragging()))}}]),t}(u.Component);E.contextTypes=(o={},(0,r.default)(o,p.styleContextKey,d.default.string.isRequired),(0,r.default)(o,p.canLiftContextKey,d.default.func.isRequired),o),t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=t.interactiveTagNames=["input","button","textarea","select","option","optgroup","video","audio"];t.default=function(e,t){if(t.canDragInteractiveElements)return!0;var n=e.target,r=e.currentTarget;return!(n instanceof HTMLElement&&r instanceof HTMLElement)||!(-1!==o.indexOf(n.tagName.toLowerCase()))&&!function e(t,n){if(null==n)return!1;var o=n.getAttribute("contenteditable");return"true"===o||""===o||n!==t&&e(t,n.parentElement)}(r,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=d(n(188)),r=d(n(205)),i=d(n(334)),a=d(n(420)),s=d(n(990)),c=d(n(421)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(422)),u=d(n(584));function d(e){return e&&e.__esModule?e:{default:e}}var h=function(){};t.default=function(e){var t=e.callbacks,n=e.getDraggableRef,d=e.canStartCapturing,p={isDragging:!1,pending:null,preventClick:!1},m=function(e){var t=(0,r.default)({},p,e);p=t},g=function(){return p.isDragging},f=function(){return Boolean(p.pending||p.isDragging)},_=(0,a.default)(t,g),b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;C(),m({isDragging:!1,pending:null}),e()},v=function(){m({preventClick:!1}),b()},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;p.pending?v():b(e)},y=function(){E(t.onCancel)},S={mousemove:function(e){var n=e.button,o=e.clientX,r=e.clientY;if(0===n){var i={x:o,y:r};p.isDragging?_.move(i):p.pending?(0,s.default)(p.pending,i)&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;m({pending:null,isDragging:!0,preventClick:!0}),e()}((function(){return t.onLift({client:i,isScrollAllowed:!0})})):console.error("invalid state")}},mouseup:function(){p.pending?v():b(t.onDrop)},mousedown:function(){b(t.onCancel)},keydown:function(e){if(e.keyCode===l.escape)return(0,i.default)(e),void y();(0,u.default)(e)},resize:y,scroll:function(){p.pending?v():_.windowScrollMove()},webkitmouseforcechanged:function(e){if(null!=e.webkitForce&&null!=MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN){var t=MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN;e.webkitForce>=t&&y()}else console.error("handling a mouse force changed event when it is not supported")}},T=(0,o.default)(S),w=function(){var e=(0,c.default)(n());T.forEach((function(t){"scroll"!==t?e.addEventListener(t,S[t]):e.addEventListener(t,S.scroll,{passive:!0})}))},C=function(){var e=(0,c.default)(n());T.forEach((function(t){return e.removeEventListener(t,S[t])}))};return{onMouseDown:function(e){if(d(e)){if(f())return console.error("should not be able to perform a mouse down while a drag or pending drag is occurring"),void y();var t=e.button,n=e.clientX,o=e.clientY;if(0===t)(0,i.default)(e),function(e){m({pending:e,isDragging:!1}),w()}({x:n,y:o})}},onClick:function(e){p.preventClick&&(m({preventClick:!1}),(0,i.default)(e))},kill:E,isCapturing:f,isDragging:g}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=t.sloppyClickThreshold=5;t.default=function(e,t){return Math.abs(t.x-e.x)>=o||Math.abs(t.y-e.y)>=o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=u(n(188)),r=u(n(334)),i=u(n(420)),a=u(n(584)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(422)),c=u(n(421)),l=u(n(585));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(){};t.default=function(e){var t=e.callbacks,n=e.getDraggableRef,u=e.canStartCapturing,h={isDragging:!1},p=function(e){h=e},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;y(),p({isDragging:!1}),e()},g=function(){m(t.onCancel)},f=function(){return h.isDragging},_=(0,i.default)(t,f),b={mousedown:g,resize:g,scroll:g},v=(0,o.default)(b),E=function(){var e=(0,c.default)(n());v.forEach((function(t){e.addEventListener(t,b[t])}))},y=function(){var e=(0,c.default)(n());v.forEach((function(t){e.removeEventListener(t,b[t])}))};return{onKeyDown:function(e,o){var i=o.direction;if(f()){if(e.keyCode===s.escape)return(0,r.default)(e),void g();if(e.keyCode===s.space)return(0,r.default)(e),void m(t.onDrop);if(!i)return console.error("Cannot handle keyboard movement event if direction is not provided"),(0,r.default)(e),void g();var c=function(e){"vertical"!==i?e.horizontal():e.vertical()};if(e.keyCode===s.arrowDown)return(0,r.default)(e),void c({vertical:_.moveForward,horizontal:_.crossAxisMoveForward});if(e.keyCode===s.arrowUp)return(0,r.default)(e),void c({vertical:_.moveBackward,horizontal:_.crossAxisMoveBackward});if(e.keyCode===s.arrowRight)return(0,r.default)(e),void c({vertical:_.crossAxisMoveForward,horizontal:_.moveForward});e.keyCode===s.arrowLeft&&((0,r.default)(e),c({vertical:_.crossAxisMoveBackward,horizontal:_.moveBackward})),(0,a.default)(e)}else{if(!u(e))return;if(e.keyCode!==s.space)return;(0,r.default)(e);var h=n();if(!h)return void console.error("cannot start a keyboard drag without a draggable ref");var b=(0,l.default)(h);!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;p({isDragging:!0}),E(),e()}((function(){return t.onLift({client:b,isScrollAllowed:!1})}))}},kill:function(){return m()},isDragging:f,isCapturing:f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forcePressThreshold=t.timeForLongPress=void 0;var o=c(n(188)),r=c(n(205)),i=c(n(334)),a=c(n(420)),s=c(n(421));function c(e){return e&&e.__esModule?e:{default:e}}var l=t.timeForLongPress=150,u=t.forcePressThreshold=.15,d=function(){},h={isDragging:!1,pending:null,hasMoved:!1,preventClick:!1,longPressTimerId:null};t.default=function(e){var t=e.callbacks,n=e.getDraggableRef,c=e.canStartCapturing,p=h,m=function(e){p=(0,r.default)({},p,e)},g=function(){return p.isDragging},f=function(){return Boolean(p.pending||p.isDragging||p.longPressTimerId)},_=(0,a.default)(t,g),b=function(){var e=p.pending;if(!e)return console.error("cannot start a touch drag without a pending position"),void y();m({isDragging:!0,hasMoved:!1,pending:null,longPressTimerId:null}),t.onLift({client:e,isScrollAllowed:!1})},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;x(),m((0,r.default)({},h,{preventClick:!0})),e()},E=function(){clearTimeout(p.longPressTimerId),x(),m(h)},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;p.pending?E():v(e)},S=function(){y(t.onCancel)},T={touchmove:function(e){if(p.pending)E();else{p.hasMoved||m({hasMoved:!0}),(0,i.default)(e);var t=e.touches[0],n={x:t.clientX,y:t.clientY};_.move(n)}},touchend:function(e){p.pending?E():(v(t.onDrop),(0,i.default)(e))},touchcancel:S,touchstart:function(){g()&&(console.error("touch start fired while already dragging"),S())},orientationchange:S,resize:S,scroll:S,contextmenu:i.default,keydown:S,touchforcechange:function(e){p.hasMoved||e.touches[0].force>=u&&S()}},w=(0,o.default)(T),C=function(){var e=(0,s.default)(n());w.forEach((function(t){var n=T[t];"touchmove"!==t?e.addEventListener(t,n):e.addEventListener(t,n,{passive:!1})}))},x=function(){var e=(0,s.default)(n());w.forEach((function(t){return e.removeEventListener(t,T[t])}))};return{onTouchStart:function(e){if(c(e)){if(f())return console.error("should not be able to perform a touch start while a drag or pending drag is occurring"),void S();e.stopPropagation(),function(e){var t=e.touches[0],n={x:t.clientX,y:t.clientY},o=setTimeout(b,l);m({longPressTimerId:o,pending:n,isDragging:!1,hasMoved:!1}),C()}(e)}},onTouchMove:function(){p.pending&&E()},onClick:function(e){p.preventClick&&((0,i.default)(e),m(h))},kill:y,isCapturing:f,isDragging:g}}},function(e,t,n){"use strict";var o=n(994),r=n(995),i=n(590);e.exports={formats:i,parse:r,stringify:o}},function(e,t,n){"use strict";var o=n(423),r=n(590),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=r.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:r.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,r,i,a,c,u,d,p,m,g,f,_){var b,v=t;if("function"==typeof u?v=u(n,v):v instanceof Date?v=m(v):"comma"===r&&s(v)&&(v=o.maybeMap(v,(function(e){return e instanceof Date?m(e):e})).join(",")),null===v){if(i)return c&&!f?c(n,h.encoder,_,"key"):n;v=""}if("string"==typeof(b=v)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||o.isBuffer(v))return c?[g(f?n:c(n,h.encoder,_,"key"))+"="+g(c(v,h.encoder,_,"value"))]:[g(n)+"="+g(String(v))];var E,y=[];if(void 0===v)return y;if(s(u))E=u;else{var S=Object.keys(v);E=d?S.sort(d):S}for(var T=0;T<E.length;++T){var w=E[T],C=v[w];if(!a||null!==C){var x=s(v)?"function"==typeof r?r(n,w):n:n+(p?"."+w:"["+w+"]");l(y,e(C,x,r,i,a,c,u,d,p,m,g,f,_))}}return y};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return h;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=r.default;if(void 0!==e.format){if(!i.call(r.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=r.formatters[n],a=h.filter;return("function"==typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:a,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):s(c.filter)&&(n=c.filter);var u,d=[];if("object"!=typeof o||null===o)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[u];n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var g=0;g<n.length;++g){var f=n[g];c.skipNulls&&null===o[f]||l(d,p(o[f],f,m,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var _=d.join(c.delimiter),b=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),_.length>0?b+_:""}},function(e,t,n){"use strict";var o=n(423),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),l=s?i.slice(0,s.index):i,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var d=0;n.depth>0&&null!==(s=a.exec(i))&&d<n.depth;){if(d+=1,!n.plainObjects&&r.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),function(e,t,n,o){for(var r=o?t:c(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=r:a[l]=r:a={0:r}}r=a}return r}(u,t,n,o)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,h=u.split(t.delimiter,d),p=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<h.length;++n)0===h[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[n]?m="utf-8":"utf8=%26%2310003%3B"===h[n]&&(m="iso-8859-1"),p=n,n=h.length);for(n=0;n<h.length;++n)if(n!==p){var g,f,_=h[n],b=_.indexOf("]="),v=-1===b?_.indexOf("="):b+1;-1===v?(g=t.decoder(_,a.decoder,m,"key"),f=t.strictNullHandling?null:""):(g=t.decoder(_.slice(0,v),a.decoder,m,"key"),f=o.maybeMap(c(_.slice(v+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),f&&t.interpretNumericEntities&&"iso-8859-1"===m&&(f=s(f)),_.indexOf("[]=")>-1&&(f=i(f)?[f]:f),r.call(l,g)?l[g]=o.combine(l[g],f):l[g]=f}return l}(e,n):e,d=n.plainObjects?Object.create(null):{},h=Object.keys(u),p=0;p<h.length;++p){var m=h[p],g=l(m,u[m],n,"string"==typeof e);d=o.merge(d,g,n)}return o.compact(d)}},function(e,t,n){"use strict";const o=n(997),r=e.exports=e=>o({exact:!0}).test(e);r.v4=e=>o.v4({exact:!0}).test(e),r.v6=e=>o.v6({exact:!0}).test(e)},function(e,t,n){"use strict";const o="(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])){3}",r="[0-9a-fA-F]{1,4}",i=`\n(\n(?:${r}:){7}(?:${r}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${r}:){6}(?:${o}|:${r}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${r}:){5}(?::${o}|(:${r}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${r}:){4}(?:(:${r}){0,1}:${o}|(:${r}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${r}:){3}(?:(:${r}){0,2}:${o}|(:${r}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${r}:){2}(?:(:${r}){0,3}:${o}|(:${r}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${r}:){1}(?:(:${r}){0,4}:${o}|(:${r}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::((?::${r}){0,5}:${o}|(?::${r}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=e.exports=e=>e&&e.exact?new RegExp(`(?:^${o}$)|(?:^${i}$)`):new RegExp(`(?:${o})|(?:${i})`,"g");a.v4=e=>e&&e.exact?new RegExp(`^${o}$`):new RegExp(o,"g"),a.v6=e=>e&&e.exact?new RegExp(`^${i}$`):new RegExp(i,"g")},function(e,t,n){"use strict";var o=/["'&<>]/;e.exports=function(e){var t,n=""+e,r=o.exec(n);if(!r)return n;var i="",a=0,s=0;for(a=r.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}s!==a&&(i+=n.substring(s,a)),s=a+1,i+=t}return s!==a?i+n.substring(s,a):i}},function(e,t,n){e.exports=n(426)},function(e,t,n){"use strict";t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:r.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:r.events,this.format=e.hasOwnProperty("format")?e.format:r.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:r.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:r.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:r.tagName,this.target=e.hasOwnProperty("target")?e.target:r.target,this.validate=e.hasOwnProperty("validate")?e.validate:r.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||r.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||r.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:r.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=r,t.Options=i,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},i.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var i=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":o(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:r[e])?i(t,n.type):i}return a},getObject:function(e,t,n){var o=this[e];return"function"==typeof o?o(t,n.type):o}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var o=n(592),r=n(427),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),s="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),l=[" ","\f","\r","\t","\v"," ","",""],u=[],d=function(e){return new o.CharacterState(e)},h=d(),p=d(r.NUM),m=d(r.DOMAIN),g=d(),f=d(r.WS);h.on("@",d(r.AT)).on(".",d(r.DOT)).on("+",d(r.PLUS)).on("#",d(r.POUND)).on("?",d(r.QUERY)).on("/",d(r.SLASH)).on("_",d(r.UNDERSCORE)).on(":",d(r.COLON)).on("{",d(r.OPENBRACE)).on("[",d(r.OPENBRACKET)).on("<",d(r.OPENANGLEBRACKET)).on("(",d(r.OPENPAREN)).on("}",d(r.CLOSEBRACE)).on("]",d(r.CLOSEBRACKET)).on(">",d(r.CLOSEANGLEBRACKET)).on(")",d(r.CLOSEPAREN)).on("&",d(r.AMPERSAND)).on([",",";","!",'"',"'"],d(r.PUNCTUATION)),h.on("\n",d(r.NL)).on(l,f),f.on(l,f);for(var _=0;_<a.length;_++){var b=(0,o.stateify)(a[_],h,r.TLD,r.DOMAIN);u.push.apply(u,b)}var v=(0,o.stateify)("file",h,r.DOMAIN,r.DOMAIN),E=(0,o.stateify)("ftp",h,r.DOMAIN,r.DOMAIN),y=(0,o.stateify)("http",h,r.DOMAIN,r.DOMAIN),S=(0,o.stateify)("mailto",h,r.DOMAIN,r.DOMAIN);u.push.apply(u,v),u.push.apply(u,E),u.push.apply(u,y),u.push.apply(u,S);var T=v.pop(),w=E.pop(),C=y.pop(),x=S.pop(),O=d(r.DOMAIN),k=d(r.PROTOCOL),R=d(r.MAILTO);w.on("s",O).on(":",k),C.on("s",O).on(":",k),u.push(O),T.on(":",k),O.on(":",k),x.on(":",R);var A=(0,o.stateify)("localhost",h,r.LOCALHOST,r.DOMAIN);u.push.apply(u,A),h.on(s,p),p.on("-",g).on(s,p).on(c,m),m.on("-",g).on(c,m);for(var I=0;I<u.length;I++)u[I].on("-",g).on(c,m);g.on("-",g).on(s,m).on(c,m),h.defaultTransition=d(r.SYM);var D=h;t.State=o.CharacterState,t.TOKENS=i,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,o=[],r=0;r<n;){for(var i=h,a=null,s=0,c=null,l=-1;r<n&&(a=i.next(t[r]));)(i=a).accepts()?(l=0,c=i):l>=0&&l++,s++,r++;if(!(l<0)){r-=l,s-=l;var u=c.emit();o.push(new u(e.substr(r-s,s)))}}return o},t.start=D},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var o=n(592),r=n(1003),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n(427);var s=function(e){return new o.TokenState(e)},c=s(),l=s(),u=s(),d=s(),h=s(),p=s(),m=s(),g=s(r.URL),f=s(),_=s(r.URL),b=s(r.URL),v=s(),E=s(),y=s(),S=s(),T=s(),w=s(r.URL),C=s(r.URL),x=s(r.URL),O=s(r.URL),k=s(),R=s(),A=s(),I=s(),D=s(),N=s(),F=s(r.EMAIL),M=s(),P=s(r.EMAIL),L=s(r.MAILTOEMAIL),U=s(),B=s(),j=s(),G=s(),q=s(r.NL);c.on(a.NL,q).on(a.PROTOCOL,l).on(a.MAILTO,u).on(a.SLASH,d),l.on(a.SLASH,d),d.on(a.SLASH,h),c.on(a.TLD,p).on(a.DOMAIN,p).on(a.LOCALHOST,g).on(a.NUM,p),h.on(a.TLD,b).on(a.DOMAIN,b).on(a.NUM,b).on(a.LOCALHOST,b),p.on(a.DOT,m),D.on(a.DOT,N),m.on(a.TLD,g).on(a.DOMAIN,p).on(a.NUM,p).on(a.LOCALHOST,p),N.on(a.TLD,F).on(a.DOMAIN,D).on(a.NUM,D).on(a.LOCALHOST,D),g.on(a.DOT,m),F.on(a.DOT,N),g.on(a.COLON,f).on(a.SLASH,b),f.on(a.NUM,_),_.on(a.SLASH,b),F.on(a.COLON,M),M.on(a.NUM,P);var H=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],V=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];b.on(a.OPENBRACE,E).on(a.OPENBRACKET,y).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,T),v.on(a.OPENBRACE,E).on(a.OPENBRACKET,y).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,T),E.on(a.CLOSEBRACE,b),y.on(a.CLOSEBRACKET,b),S.on(a.CLOSEANGLEBRACKET,b),T.on(a.CLOSEPAREN,b),w.on(a.CLOSEBRACE,b),C.on(a.CLOSEBRACKET,b),x.on(a.CLOSEANGLEBRACKET,b),O.on(a.CLOSEPAREN,b),k.on(a.CLOSEBRACE,b),R.on(a.CLOSEBRACKET,b),A.on(a.CLOSEANGLEBRACKET,b),I.on(a.CLOSEPAREN,b),E.on(H,w),y.on(H,C),S.on(H,x),T.on(H,O),E.on(V,k),y.on(V,R),S.on(V,A),T.on(V,I),w.on(H,w),C.on(H,C),x.on(H,x),O.on(H,O),w.on(V,w),C.on(V,C),x.on(V,x),O.on(V,O),k.on(H,w),R.on(H,C),A.on(H,x),I.on(H,O),k.on(V,k),R.on(V,R),A.on(V,A),I.on(V,I),b.on(H,b),v.on(H,b),b.on(V,v),v.on(V,v),u.on(a.TLD,L).on(a.DOMAIN,L).on(a.NUM,L).on(a.LOCALHOST,L),L.on(H,L).on(V,U),U.on(H,L).on(V,U);var z=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];p.on(z,B).on(a.AT,j),g.on(z,B).on(a.AT,j),m.on(z,B),B.on(z,B).on(a.AT,j).on(a.DOT,G),G.on(z,B),j.on(a.TLD,D).on(a.DOMAIN,D).on(a.LOCALHOST,F);t.State=o.TokenState,t.TOKENS=i,t.run=function(e){for(var t=e.length,n=0,o=[],i=[];n<t;){for(var a=c,s=null,l=null,u=0,d=null,h=-1;n<t&&!(s=a.next(e[n]));)i.push(e[n++]);for(;n<t&&(l=s||a.next(e[n]));)s=null,(a=l).accepts()?(h=0,d=a):h>=0&&h++,n++,u++;if(h<0)for(var p=n-u;p<n;p++)i.push(e[p]);else{i.length>0&&(o.push(new r.TEXT(i)),i=[]),n-=h,u-=h;var m=d.emit();o.push(new m(e.slice(n-u,n)))}}return i.length>0&&o.push(new r.TEXT(i)),o},t.start=c},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var o=n(593),r=n(336),i=n(427);function a(e){return e instanceof i.DOMAIN||e instanceof i.TLD}var s=(0,o.createTokenClass)();s.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var c=(0,r.inherits)(s,(0,o.createTokenClass)(),{type:"email",isLink:!0}),l=(0,r.inherits)(s,(0,o.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),u=(0,r.inherits)(s,(0,o.createTokenClass)(),{type:"text"}),d=(0,r.inherits)(s,(0,o.createTokenClass)(),{type:"nl"}),h=(0,r.inherits)(s,(0,o.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,o=this.v,r=[],s=0;o[s]instanceof i.PROTOCOL;)t=!0,r.push(o[s].toString().toLowerCase()),s++;for(;o[s]instanceof i.SLASH;)n=!0,r.push(o[s].toString()),s++;for(;a(o[s]);)r.push(o[s].toString().toLowerCase()),s++;for(;s<o.length;s++)r.push(o[s].toString());return r=r.join(""),t||n||(r=e+"://"+r),r},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});t.Base=s,t.MAILTOEMAIL=c,t.EMAIL=l,t.NL=d,t.TEXT=u,t.URL=h},function(e,t,n){e.exports=n(1005).default},function(e,t,n){"use strict";(function(e){t.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(426));var r=o.tokenize,i=o.options,a=i.Options,s=o.parser.TOKENS.TEXT;function c(e,t,n){var o=n[n.length-1];e.replaceChild(o,t);for(var r=n.length-2;r>=0;r--)e.insertBefore(n[r],o),o=n[r]}function l(e,t,n){var o=[],r=e,i=Array.isArray(r),a=0;for(r=i?r:r[Symbol.iterator]();;){var s;if(i){if(a>=r.length)break;s=r[a++]}else{if((a=r.next()).done)break;s=a.value}var c=s;if("nl"===c.type&&t.nl2br)o.push(n.createElement("br"));else if(c.isLink&&t.check(c)){var l=t.resolve(c),u=l.formatted,d=l.formattedHref,h=l.tagName,p=l.className,m=l.target,g=l.events,f=l.attributes,_=n.createElement(h);if(_.setAttribute("href",d),p&&_.setAttribute("class",p),m&&_.setAttribute("target",m),f)for(var b in f)_.setAttribute(b,f[b]);if(g)for(var v in g)_.addEventListener?_.addEventListener(v,g[v]):_.attachEvent&&_.attachEvent("on"+v,g[v]);_.appendChild(n.createTextNode(u)),o.push(_)}else o.push(n.createTextNode(c.toString()))}return o}function u(e,t,n){if(!e||1!==e.nodeType)throw new Error("Cannot linkify "+e+" - Invalid DOM Node type");var o=t.ignoreTags;if("A"===e.tagName||i.contains(o,e.tagName))return e;for(var a=e.firstChild;a;){var d=void 0,h=void 0,p=void 0;switch(a.nodeType){case 1:u(a,t,n);break;case 3:if(d=a.nodeValue,0===(h=r(d)).length||1===h.length&&h[0]instanceof s)break;c(e,a,p=l(h,t,n)),a=p[p.length-1]}a=a.nextSibling}return e}function d(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{o=o||document||window&&window.document||e&&e.document}catch(e){}if(!o)throw new Error("Cannot find document implementation. If you are in a non-browser environment like Node.js, pass the document implementation as the third argument to linkifyElement.");return u(t,n=new a(n),o)}d.helper=u,d.normalize=function(e){return new a(e)},t.default=d}).call(this,n(5))},function(e,t,n){e.exports=n(1007).default},function(e,t,n){"use strict";t.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(426));var r=o.tokenize,i=o.options.Options;function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(e){return e.replace(/"/g,"&quot;")}function c(e){if(!e)return"";var t=[];for(var n in e){var o=e[n]+"";t.push(n+'="'+s(o)+'"')}return t.join(" ")}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new i(t);for(var n=r(e),o=[],l=0;l<n.length;l++){var u=n[l];if("nl"===u.type&&t.nl2br)o.push("<br>\n");else if(u.isLink&&t.check(u)){var d=t.resolve(u),h=d.formatted,p=d.formattedHref,m=d.tagName,g=d.className,f=d.target,_=d.attributes,b="<"+m+' href="'+s(p)+'"';g&&(b+=' class="'+s(g)+'"'),f&&(b+=' target="'+s(f)+'"'),_&&(b+=" "+c(_)),b+=">"+a(h)+"</"+m+">",o.push(b)}else o.push(a(u.toString()))}return o.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return l(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return l(this,e)})}t.default=l},function(e,t,n){var o;"undefined"!=typeof self&&self,o=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){},function(e,t,n){"use strict";n.r(t),n(0);var o=function(){function e(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}return e.range=function(t,n){return n?t&&t.loc&&n.loc&&t.loc.lexer===n.loc.lexer?new e(t.loc.lexer,t.loc.start,n.loc.end):null:t&&t.loc},e}(),r=function(){function e(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}return e.prototype.range=function(t,n){return new e(n,o.range(this,t))},e}(),i=function e(t,n){this.position=void 0;var o,r="KaTeX parse error: "+t,i=n&&n.loc;if(i&&i.start<=i.end){var a=i.lexer.input;o=i.start;var s=i.end;o===a.length?r+=" at end of input: ":r+=" at position "+(o+1)+": ";var c=a.slice(o,s).replace(/[^]/g,"$&̲");r+=(o>15?"…"+a.slice(o-15,o):a.slice(0,o))+c+(s+15<a.length?a.slice(s,s+15)+"…":a.slice(s))}var l=new Error(r);return l.name="ParseError",l.__proto__=e.prototype,l.position=o,l};i.prototype.__proto__=Error.prototype;var a=i,s=/([A-Z])/g,c={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},l=/[&><"']/g,u=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},d={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(l,(function(e){return c[e]}))},hyphenate:function(e){return e.replace(s,"-$1").toLowerCase()},getBaseElem:u,isCharacterBox:function(e){var t=u(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},h=function(){function e(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},this.displayMode=d.deflt(e.displayMode,!1),this.output=d.deflt(e.output,"htmlAndMathml"),this.leqno=d.deflt(e.leqno,!1),this.fleqn=d.deflt(e.fleqn,!1),this.throwOnError=d.deflt(e.throwOnError,!0),this.errorColor=d.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,d.deflt(e.minRuleThickness,0)),this.colorIsTextColor=d.deflt(e.colorIsTextColor,!1),this.strict=d.deflt(e.strict,"warn"),this.trust=d.deflt(e.trust,!1),this.maxSize=Math.max(0,d.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,d.deflt(e.maxExpand,1e3)),this.globalGroup=d.deflt(e.globalGroup,!1)}var t=e.prototype;return t.reportNonstrict=function(e,t,n){var o=this.strict;if("function"==typeof o&&(o=o(e,t,n)),o&&"ignore"!==o){if(!0===o||"error"===o)throw new a("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===o?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+o+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,n){var o=this.strict;if("function"==typeof o)try{o=o(e,t,n)}catch(e){o="error"}return!(!o||"ignore"===o||!0!==o&&"error"!==o&&("warn"===o?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+o+"': "+t+" ["+e+"]"),1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=d.protocolFromUrl(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),p=function(){function e(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}var t=e.prototype;return t.sup=function(){return m[g[this.id]]},t.sub=function(){return m[f[this.id]]},t.fracNum=function(){return m[_[this.id]]},t.fracDen=function(){return m[b[this.id]]},t.cramp=function(){return m[v[this.id]]},t.text=function(){return m[E[this.id]]},t.isTight=function(){return this.size>=2},e}(),m=[new p(0,0,!1),new p(1,0,!0),new p(2,1,!1),new p(3,1,!0),new p(4,2,!1),new p(5,2,!0),new p(6,3,!1),new p(7,3,!0)],g=[4,5,4,5,6,7,6,7],f=[5,5,5,5,7,7,7,7],_=[2,3,4,5,6,7,6,7],b=[3,3,5,5,7,7,7,7],v=[1,1,3,3,5,5,7,7],E=[0,1,2,3,2,3,2,3],y={DISPLAY:m[0],TEXT:m[2],SCRIPT:m[4],SCRIPTSCRIPT:m[6]},S=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],T=[];function w(e){for(var t=0;t<T.length;t+=2)if(e>=T[t]&&e<=T[t+1])return!0;return!1}S.forEach((function(e){return e.blocks.forEach((function(e){return T.push.apply(T,e)}))}));var C={leftParenInner:"M291 0 H417 V300 H291 z",rightParenInner:"M457 0 H583 V300 H457 z",doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},x=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return d.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e},t.toMarkup=function(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e},t.toText=function(){var e=function(e){return e.toText()};return this.children.map(e).join("")},e}(),O=function(e){return e.filter((function(e){return e})).join(" ")},k=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var o=t.getColor();o&&(this.style.color=o)}},R=function(e){var t=document.createElement(e);for(var n in t.className=O(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var o in this.attributes)this.attributes.hasOwnProperty(o)&&t.setAttribute(o,this.attributes[o]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},A=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+d.escape(O(this.classes))+'"');var n="";for(var o in this.style)this.style.hasOwnProperty(o)&&(n+=d.hyphenate(o)+":"+this.style[o]+";");for(var r in n&&(t+=' style="'+d.escape(n)+'"'),this.attributes)this.attributes.hasOwnProperty(r)&&(t+=" "+r+'="'+d.escape(this.attributes[r])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"},I=function(){function e(e,t,n,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,k.call(this,e,n,o),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return d.contains(this.classes,e)},t.toNode=function(){return R.call(this,"span")},t.toMarkup=function(){return A.call(this,"span")},e}(),D=function(){function e(e,t,n,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,k.call(this,t,o),this.children=n||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return d.contains(this.classes,e)},t.toNode=function(){return R.call(this,"a")},t.toMarkup=function(){return A.call(this,"a")},e}(),N=function(){function e(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}var t=e.prototype;return t.hasClass=function(e){return d.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e="<img src='"+this.src+" 'alt='"+this.alt+"' ",t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=d.hyphenate(n)+":"+this.style[n]+";");return t&&(e+=' style="'+d.escape(t)+'"'),e+="'/>"},e}(),F={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"},M=function(){function e(e,t,n,o,r,i,a,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=o||0,this.skew=r||0,this.width=i||0,this.classes=a||[],this.style=s||{},this.maxFontSize=0;var c=function(e){for(var t=0;t<S.length;t++)for(var n=S[t],o=0;o<n.blocks.length;o++){var r=n.blocks[o];if(e>=r[0]&&e<=r[1])return n.name}return null}(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=F[this.text])}var t=e.prototype;return t.hasClass=function(e){return d.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&((t=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((t=t||document.createElement("span")).className=O(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=d.escape(O(this.classes)),t+='"');var n="";for(var o in this.italic>0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(o)&&(n+=d.hyphenate(o)+":"+this.style[o]+";");n&&(e=!0,t+=' style="'+d.escape(n)+'"');var r=d.escape(this.text);return e?(t+=">",t+=r,t+="</span>"):r},e}(),P=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e="<svg";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>"},e}(),L=function(){function e(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",C[this.pathName]),e},t.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+C[this.pathName]+"'/>"},e}(),U=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+="/>"},e}();function B(e){if(e instanceof M)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var j={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},G={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},q={"Å":"A","Ç":"C","Ð":"D","Þ":"o","å":"a","ç":"c","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function H(e,t,n){if(!j[t])throw new Error("Font metrics not found for font: "+t+".");var o=e.charCodeAt(0),r=j[t][o];if(!r&&e[0]in q&&(o=q[e[0]].charCodeAt(0),r=j[t][o]),r||"text"!==n||w(o)&&(r=j[t][77]),r)return{depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]}}var V={},z={bin:1,close:1,inner:1,open:1,punct:1,rel:1},K={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},W={math:{},text:{}},Y=W;function $(e,t,n,o,r,i){W[e][r]={font:t,group:n,replace:o},i&&o&&(W[e][o]=W[e][r])}var Q="main",X="ams",J="bin",Z="mathord",ee="op-token",te="rel";$("math",Q,te,"≡","\\equiv",!0),$("math",Q,te,"≺","\\prec",!0),$("math",Q,te,"≻","\\succ",!0),$("math",Q,te,"","\\sim",!0),$("math",Q,te,"⊥","\\perp"),$("math",Q,te,"⪯","\\preceq",!0),$("math",Q,te,"⪰","\\succeq",!0),$("math",Q,te,"≃","\\simeq",!0),$("math",Q,te,"","\\mid",!0),$("math",Q,te,"≪","\\ll",!0),$("math",Q,te,"≫","\\gg",!0),$("math",Q,te,"≍","\\asymp",!0),$("math",Q,te,"∥","\\parallel"),$("math",Q,te,"⋈","\\bowtie",!0),$("math",Q,te,"⌣","\\smile",!0),$("math",Q,te,"⊑","\\sqsubseteq",!0),$("math",Q,te,"⊒","\\sqsupseteq",!0),$("math",Q,te,"≐","\\doteq",!0),$("math",Q,te,"⌢","\\frown",!0),$("math",Q,te,"∋","\\ni",!0),$("math",Q,te,"∝","\\propto",!0),$("math",Q,te,"⊢","\\vdash",!0),$("math",Q,te,"⊣","\\dashv",!0),$("math",Q,te,"∋","\\owns"),$("math",Q,"punct",".","\\ldotp"),$("math",Q,"punct","⋅","\\cdotp"),$("math",Q,"textord","#","\\#"),$("text",Q,"textord","#","\\#"),$("math",Q,"textord","&","\\&"),$("text",Q,"textord","&","\\&"),$("math",Q,"textord","ℵ","\\aleph",!0),$("math",Q,"textord","∀","\\forall",!0),$("math",Q,"textord","ℏ","\\hbar",!0),$("math",Q,"textord","∃","\\exists",!0),$("math",Q,"textord","∇","\\nabla",!0),$("math",Q,"textord","♭","\\flat",!0),$("math",Q,"textord","","\\ell",!0),$("math",Q,"textord","♮","\\natural",!0),$("math",Q,"textord","♣","\\clubsuit",!0),$("math",Q,"textord","℘","\\wp",!0),$("math",Q,"textord","♯","\\sharp",!0),$("math",Q,"textord","♢","\\diamondsuit",!0),$("math",Q,"textord","","\\Re",!0),$("math",Q,"textord","♡","\\heartsuit",!0),$("math",Q,"textord","","\\Im",!0),$("math",Q,"textord","♠","\\spadesuit",!0),$("text",Q,"textord","§","\\S",!0),$("text",Q,"textord","¶","\\P",!0),$("math",Q,"textord","†","\\dag"),$("text",Q,"textord","†","\\dag"),$("text",Q,"textord","†","\\textdagger"),$("math",Q,"textord","‡","\\ddag"),$("text",Q,"textord","‡","\\ddag"),$("text",Q,"textord","‡","\\textdaggerdbl"),$("math",Q,"close","⎱","\\rmoustache",!0),$("math",Q,"open","⎰","\\lmoustache",!0),$("math",Q,"close","⟯","\\rgroup",!0),$("math",Q,"open","⟮","\\lgroup",!0),$("math",Q,J,"∓","\\mp",!0),$("math",Q,J,"⊖","\\ominus",!0),$("math",Q,J,"⊎","\\uplus",!0),$("math",Q,J,"⊓","\\sqcap",!0),$("math",Q,J,"","\\ast"),$("math",Q,J,"⊔","\\sqcup",!0),$("math",Q,J,"◯","\\bigcirc"),$("math",Q,J,"∙","\\bullet"),$("math",Q,J,"‡","\\ddagger"),$("math",Q,J,"≀","\\wr",!0),$("math",Q,J,"⨿","\\amalg"),$("math",Q,J,"&","\\And"),$("math",Q,te,"⟵","\\longleftarrow",!0),$("math",Q,te,"⇐","\\Leftarrow",!0),$("math",Q,te,"⟸","\\Longleftarrow",!0),$("math",Q,te,"⟶","\\longrightarrow",!0),$("math",Q,te,"⇒","\\Rightarrow",!0),$("math",Q,te,"⟹","\\Longrightarrow",!0),$("math",Q,te,"↔","\\leftrightarrow",!0),$("math",Q,te,"⟷","\\longleftrightarrow",!0),$("math",Q,te,"⇔","\\Leftrightarrow",!0),$("math",Q,te,"⟺","\\Longleftrightarrow",!0),$("math",Q,te,"↦","\\mapsto",!0),$("math",Q,te,"⟼","\\longmapsto",!0),$("math",Q,te,"↗","\\nearrow",!0),$("math",Q,te,"↩","\\hookleftarrow",!0),$("math",Q,te,"↪","\\hookrightarrow",!0),$("math",Q,te,"↘","\\searrow",!0),$("math",Q,te,"↼","\\leftharpoonup",!0),$("math",Q,te,"⇀","\\rightharpoonup",!0),$("math",Q,te,"↙","\\swarrow",!0),$("math",Q,te,"↽","\\leftharpoondown",!0),$("math",Q,te,"⇁","\\rightharpoondown",!0),$("math",Q,te,"↖","\\nwarrow",!0),$("math",Q,te,"⇌","\\rightleftharpoons",!0),$("math",X,te,"≮","\\nless",!0),$("math",X,te,"","\\@nleqslant"),$("math",X,te,"","\\@nleqq"),$("math",X,te,"⪇","\\lneq",!0),$("math",X,te,"≨","\\lneqq",!0),$("math",X,te,"","\\@lvertneqq"),$("math",X,te,"⋦","\\lnsim",!0),$("math",X,te,"⪉","\\lnapprox",!0),$("math",X,te,"⊀","\\nprec",!0),$("math",X,te,"⋠","\\npreceq",!0),$("math",X,te,"⋨","\\precnsim",!0),$("math",X,te,"⪹","\\precnapprox",!0),$("math",X,te,"≁","\\nsim",!0),$("math",X,te,"","\\@nshortmid"),$("math",X,te,"∤","\\nmid",!0),$("math",X,te,"⊬","\\nvdash",!0),$("math",X,te,"⊭","\\nvDash",!0),$("math",X,te,"⋪","\\ntriangleleft"),$("math",X,te,"⋬","\\ntrianglelefteq",!0),$("math",X,te,"⊊","\\subsetneq",!0),$("math",X,te,"","\\@varsubsetneq"),$("math",X,te,"⫋","\\subsetneqq",!0),$("math",X,te,"","\\@varsubsetneqq"),$("math",X,te,"≯","\\ngtr",!0),$("math",X,te,"","\\@ngeqslant"),$("math",X,te,"","\\@ngeqq"),$("math",X,te,"⪈","\\gneq",!0),$("math",X,te,"≩","\\gneqq",!0),$("math",X,te,"","\\@gvertneqq"),$("math",X,te,"⋧","\\gnsim",!0),$("math",X,te,"⪊","\\gnapprox",!0),$("math",X,te,"⊁","\\nsucc",!0),$("math",X,te,"⋡","\\nsucceq",!0),$("math",X,te,"⋩","\\succnsim",!0),$("math",X,te,"⪺","\\succnapprox",!0),$("math",X,te,"≆","\\ncong",!0),$("math",X,te,"","\\@nshortparallel"),$("math",X,te,"∦","\\nparallel",!0),$("math",X,te,"⊯","\\nVDash",!0),$("math",X,te,"⋫","\\ntriangleright"),$("math",X,te,"⋭","\\ntrianglerighteq",!0),$("math",X,te,"","\\@nsupseteqq"),$("math",X,te,"⊋","\\supsetneq",!0),$("math",X,te,"","\\@varsupsetneq"),$("math",X,te,"⫌","\\supsetneqq",!0),$("math",X,te,"","\\@varsupsetneqq"),$("math",X,te,"⊮","\\nVdash",!0),$("math",X,te,"⪵","\\precneqq",!0),$("math",X,te,"⪶","\\succneqq",!0),$("math",X,te,"","\\@nsubseteqq"),$("math",X,J,"⊴","\\unlhd"),$("math",X,J,"⊵","\\unrhd"),$("math",X,te,"↚","\\nleftarrow",!0),$("math",X,te,"↛","\\nrightarrow",!0),$("math",X,te,"⇍","\\nLeftarrow",!0),$("math",X,te,"⇏","\\nRightarrow",!0),$("math",X,te,"↮","\\nleftrightarrow",!0),$("math",X,te,"⇎","\\nLeftrightarrow",!0),$("math",X,te,"△","\\vartriangle"),$("math",X,"textord","ℏ","\\hslash"),$("math",X,"textord","▽","\\triangledown"),$("math",X,"textord","◊","\\lozenge"),$("math",X,"textord","Ⓢ","\\circledS"),$("math",X,"textord","®","\\circledR"),$("text",X,"textord","®","\\circledR"),$("math",X,"textord","∡","\\measuredangle",!0),$("math",X,"textord","∄","\\nexists"),$("math",X,"textord","℧","\\mho"),$("math",X,"textord","Ⅎ","\\Finv",!0),$("math",X,"textord","⅁","\\Game",!0),$("math",X,"textord","","\\backprime"),$("math",X,"textord","▲","\\blacktriangle"),$("math",X,"textord","▼","\\blacktriangledown"),$("math",X,"textord","■","\\blacksquare"),$("math",X,"textord","⧫","\\blacklozenge"),$("math",X,"textord","★","\\bigstar"),$("math",X,"textord","∢","\\sphericalangle",!0),$("math",X,"textord","∁","\\complement",!0),$("math",X,"textord","ð","\\eth",!0),$("text",Q,"textord","ð","ð"),$("math",X,"textord","","\\diagup"),$("math",X,"textord","╲","\\diagdown"),$("math",X,"textord","□","\\square"),$("math",X,"textord","□","\\Box"),$("math",X,"textord","◊","\\Diamond"),$("math",X,"textord","¥","\\yen",!0),$("text",X,"textord","¥","\\yen",!0),$("math",X,"textord","✓","\\checkmark",!0),$("text",X,"textord","✓","\\checkmark"),$("math",X,"textord","ℶ","\\beth",!0),$("math",X,"textord","ℸ","\\daleth",!0),$("math",X,"textord","ℷ","\\gimel",!0),$("math",X,"textord","ϝ","\\digamma",!0),$("math",X,"textord","ϰ","\\varkappa"),$("math",X,"open","┌","\\@ulcorner",!0),$("math",X,"close","┐","\\@urcorner",!0),$("math",X,"open","└","\\@llcorner",!0),$("math",X,"close","┘","\\@lrcorner",!0),$("math",X,te,"≦","\\leqq",!0),$("math",X,te,"⩽","\\leqslant",!0),$("math",X,te,"⪕","\\eqslantless",!0),$("math",X,te,"≲","\\lesssim",!0),$("math",X,te,"⪅","\\lessapprox",!0),$("math",X,te,"≊","\\approxeq",!0),$("math",X,J,"⋖","\\lessdot"),$("math",X,te,"⋘","\\lll",!0),$("math",X,te,"≶","\\lessgtr",!0),$("math",X,te,"⋚","\\lesseqgtr",!0),$("math",X,te,"⪋","\\lesseqqgtr",!0),$("math",X,te,"≑","\\doteqdot"),$("math",X,te,"≓","\\risingdotseq",!0),$("math",X,te,"≒","\\fallingdotseq",!0),$("math",X,te,"∽","\\backsim",!0),$("math",X,te,"⋍","\\backsimeq",!0),$("math",X,te,"⫅","\\subseteqq",!0),$("math",X,te,"⋐","\\Subset",!0),$("math",X,te,"⊏","\\sqsubset",!0),$("math",X,te,"≼","\\preccurlyeq",!0),$("math",X,te,"⋞","\\curlyeqprec",!0),$("math",X,te,"≾","\\precsim",!0),$("math",X,te,"⪷","\\precapprox",!0),$("math",X,te,"⊲","\\vartriangleleft"),$("math",X,te,"⊴","\\trianglelefteq"),$("math",X,te,"⊨","\\vDash",!0),$("math",X,te,"⊪","\\Vvdash",!0),$("math",X,te,"⌣","\\smallsmile"),$("math",X,te,"⌢","\\smallfrown"),$("math",X,te,"≏","\\bumpeq",!0),$("math",X,te,"≎","\\Bumpeq",!0),$("math",X,te,"≧","\\geqq",!0),$("math",X,te,"⩾","\\geqslant",!0),$("math",X,te,"⪖","\\eqslantgtr",!0),$("math",X,te,"≳","\\gtrsim",!0),$("math",X,te,"⪆","\\gtrapprox",!0),$("math",X,J,"⋗","\\gtrdot"),$("math",X,te,"⋙","\\ggg",!0),$("math",X,te,"≷","\\gtrless",!0),$("math",X,te,"⋛","\\gtreqless",!0),$("math",X,te,"⪌","\\gtreqqless",!0),$("math",X,te,"≖","\\eqcirc",!0),$("math",X,te,"≗","\\circeq",!0),$("math",X,te,"≜","\\triangleq",!0),$("math",X,te,"","\\thicksim"),$("math",X,te,"≈","\\thickapprox"),$("math",X,te,"⫆","\\supseteqq",!0),$("math",X,te,"⋑","\\Supset",!0),$("math",X,te,"⊐","\\sqsupset",!0),$("math",X,te,"≽","\\succcurlyeq",!0),$("math",X,te,"⋟","\\curlyeqsucc",!0),$("math",X,te,"≿","\\succsim",!0),$("math",X,te,"⪸","\\succapprox",!0),$("math",X,te,"⊳","\\vartriangleright"),$("math",X,te,"⊵","\\trianglerighteq"),$("math",X,te,"⊩","\\Vdash",!0),$("math",X,te,"","\\shortmid"),$("math",X,te,"∥","\\shortparallel"),$("math",X,te,"≬","\\between",!0),$("math",X,te,"⋔","\\pitchfork",!0),$("math",X,te,"∝","\\varpropto"),$("math",X,te,"◀","\\blacktriangleleft"),$("math",X,te,"∴","\\therefore",!0),$("math",X,te,"∍","\\backepsilon"),$("math",X,te,"▶","\\blacktriangleright"),$("math",X,te,"∵","\\because",!0),$("math",X,te,"⋘","\\llless"),$("math",X,te,"⋙","\\gggtr"),$("math",X,J,"⊲","\\lhd"),$("math",X,J,"⊳","\\rhd"),$("math",X,te,"≂","\\eqsim",!0),$("math",Q,te,"⋈","\\Join"),$("math",X,te,"≑","\\Doteq",!0),$("math",X,J,"∔","\\dotplus",!0),$("math",X,J,"","\\smallsetminus"),$("math",X,J,"⋒","\\Cap",!0),$("math",X,J,"⋓","\\Cup",!0),$("math",X,J,"⩞","\\doublebarwedge",!0),$("math",X,J,"⊟","\\boxminus",!0),$("math",X,J,"⊞","\\boxplus",!0),$("math",X,J,"⋇","\\divideontimes",!0),$("math",X,J,"⋉","\\ltimes",!0),$("math",X,J,"⋊","\\rtimes",!0),$("math",X,J,"⋋","\\leftthreetimes",!0),$("math",X,J,"⋌","\\rightthreetimes",!0),$("math",X,J,"⋏","\\curlywedge",!0),$("math",X,J,"⋎","\\curlyvee",!0),$("math",X,J,"⊝","\\circleddash",!0),$("math",X,J,"⊛","\\circledast",!0),$("math",X,J,"⋅","\\centerdot"),$("math",X,J,"⊺","\\intercal",!0),$("math",X,J,"⋒","\\doublecap"),$("math",X,J,"⋓","\\doublecup"),$("math",X,J,"⊠","\\boxtimes",!0),$("math",X,te,"⇢","\\dashrightarrow",!0),$("math",X,te,"⇠","\\dashleftarrow",!0),$("math",X,te,"⇇","\\leftleftarrows",!0),$("math",X,te,"⇆","\\leftrightarrows",!0),$("math",X,te,"⇚","\\Lleftarrow",!0),$("math",X,te,"↞","\\twoheadleftarrow",!0),$("math",X,te,"↢","\\leftarrowtail",!0),$("math",X,te,"↫","\\looparrowleft",!0),$("math",X,te,"⇋","\\leftrightharpoons",!0),$("math",X,te,"↶","\\curvearrowleft",!0),$("math",X,te,"↺","\\circlearrowleft",!0),$("math",X,te,"↰","\\Lsh",!0),$("math",X,te,"⇈","\\upuparrows",!0),$("math",X,te,"↿","\\upharpoonleft",!0),$("math",X,te,"⇃","\\downharpoonleft",!0),$("math",X,te,"⊸","\\multimap",!0),$("math",X,te,"↭","\\leftrightsquigarrow",!0),$("math",X,te,"⇉","\\rightrightarrows",!0),$("math",X,te,"⇄","\\rightleftarrows",!0),$("math",X,te,"↠","\\twoheadrightarrow",!0),$("math",X,te,"↣","\\rightarrowtail",!0),$("math",X,te,"↬","\\looparrowright",!0),$("math",X,te,"↷","\\curvearrowright",!0),$("math",X,te,"↻","\\circlearrowright",!0),$("math",X,te,"↱","\\Rsh",!0),$("math",X,te,"⇊","\\downdownarrows",!0),$("math",X,te,"↾","\\upharpoonright",!0),$("math",X,te,"⇂","\\downharpoonright",!0),$("math",X,te,"⇝","\\rightsquigarrow",!0),$("math",X,te,"⇝","\\leadsto"),$("math",X,te,"⇛","\\Rrightarrow",!0),$("math",X,te,"↾","\\restriction"),$("math",Q,"textord","","`"),$("math",Q,"textord","$","\\$"),$("text",Q,"textord","$","\\$"),$("text",Q,"textord","$","\\textdollar"),$("math",Q,"textord","%","\\%"),$("text",Q,"textord","%","\\%"),$("math",Q,"textord","_","\\_"),$("text",Q,"textord","_","\\_"),$("text",Q,"textord","_","\\textunderscore"),$("math",Q,"textord","∠","\\angle",!0),$("math",Q,"textord","∞","\\infty",!0),$("math",Q,"textord","","\\prime"),$("math",Q,"textord","△","\\triangle"),$("math",Q,"textord","Γ","\\Gamma",!0),$("math",Q,"textord","Δ","\\Delta",!0),$("math",Q,"textord","Θ","\\Theta",!0),$("math",Q,"textord","Λ","\\Lambda",!0),$("math",Q,"textord","Ξ","\\Xi",!0),$("math",Q,"textord","Π","\\Pi",!0),$("math",Q,"textord","Σ","\\Sigma",!0),$("math",Q,"textord","Υ","\\Upsilon",!0),$("math",Q,"textord","Φ","\\Phi",!0),$("math",Q,"textord","Ψ","\\Psi",!0),$("math",Q,"textord","Ω","\\Omega",!0),$("math",Q,"textord","A","Α"),$("math",Q,"textord","B","Β"),$("math",Q,"textord","E","Ε"),$("math",Q,"textord","Z","Ζ"),$("math",Q,"textord","H","Η"),$("math",Q,"textord","I","Ι"),$("math",Q,"textord","K","Κ"),$("math",Q,"textord","M","Μ"),$("math",Q,"textord","N","Ν"),$("math",Q,"textord","O","Ο"),$("math",Q,"textord","P","Ρ"),$("math",Q,"textord","T","Τ"),$("math",Q,"textord","X","Χ"),$("math",Q,"textord","¬","\\neg",!0),$("math",Q,"textord","¬","\\lnot"),$("math",Q,"textord","","\\top"),$("math",Q,"textord","⊥","\\bot"),$("math",Q,"textord","∅","\\emptyset"),$("math",X,"textord","∅","\\varnothing"),$("math",Q,Z,"α","\\alpha",!0),$("math",Q,Z,"β","\\beta",!0),$("math",Q,Z,"γ","\\gamma",!0),$("math",Q,Z,"δ","\\delta",!0),$("math",Q,Z,"ϵ","\\epsilon",!0),$("math",Q,Z,"ζ","\\zeta",!0),$("math",Q,Z,"η","\\eta",!0),$("math",Q,Z,"θ","\\theta",!0),$("math",Q,Z,"ι","\\iota",!0),$("math",Q,Z,"κ","\\kappa",!0),$("math",Q,Z,"λ","\\lambda",!0),$("math",Q,Z,"μ","\\mu",!0),$("math",Q,Z,"ν","\\nu",!0),$("math",Q,Z,"ξ","\\xi",!0),$("math",Q,Z,"ο","\\omicron",!0),$("math",Q,Z,"π","\\pi",!0),$("math",Q,Z,"ρ","\\rho",!0),$("math",Q,Z,"σ","\\sigma",!0),$("math",Q,Z,"τ","\\tau",!0),$("math",Q,Z,"υ","\\upsilon",!0),$("math",Q,Z,"ϕ","\\phi",!0),$("math",Q,Z,"χ","\\chi",!0),$("math",Q,Z,"ψ","\\psi",!0),$("math",Q,Z,"ω","\\omega",!0),$("math",Q,Z,"ε","\\varepsilon",!0),$("math",Q,Z,"ϑ","\\vartheta",!0),$("math",Q,Z,"ϖ","\\varpi",!0),$("math",Q,Z,"ϱ","\\varrho",!0),$("math",Q,Z,"ς","\\varsigma",!0),$("math",Q,Z,"φ","\\varphi",!0),$("math",Q,J,"","*"),$("math",Q,J,"+","+"),$("math",Q,J,"","-"),$("math",Q,J,"⋅","\\cdot",!0),$("math",Q,J,"∘","\\circ"),$("math",Q,J,"÷","\\div",!0),$("math",Q,J,"±","\\pm",!0),$("math",Q,J,"×","\\times",!0),$("math",Q,J,"∩","\\cap",!0),$("math",Q,J,"","\\cup",!0),$("math",Q,J,"","\\setminus"),$("math",Q,J,"∧","\\land"),$("math",Q,J,"","\\lor"),$("math",Q,J,"∧","\\wedge",!0),$("math",Q,J,"","\\vee",!0),$("math",Q,"textord","√","\\surd"),$("math",Q,"open","⟨","\\langle",!0),$("math",Q,"open","","\\lvert"),$("math",Q,"open","∥","\\lVert"),$("math",Q,"close","?","?"),$("math",Q,"close","!","!"),$("math",Q,"close","⟩","\\rangle",!0),$("math",Q,"close","","\\rvert"),$("math",Q,"close","∥","\\rVert"),$("math",Q,te,"=","="),$("math",Q,te,":",":"),$("math",Q,te,"≈","\\approx",!0),$("math",Q,te,"≅","\\cong",!0),$("math",Q,te,"≥","\\ge"),$("math",Q,te,"≥","\\geq",!0),$("math",Q,te,"←","\\gets"),$("math",Q,te,">","\\gt",!0),$("math",Q,te,"∈","\\in",!0),$("math",Q,te,"","\\@not"),$("math",Q,te,"⊂","\\subset",!0),$("math",Q,te,"⊃","\\supset",!0),$("math",Q,te,"⊆","\\subseteq",!0),$("math",Q,te,"⊇","\\supseteq",!0),$("math",X,te,"⊈","\\nsubseteq",!0),$("math",X,te,"⊉","\\nsupseteq",!0),$("math",Q,te,"⊨","\\models"),$("math",Q,te,"←","\\leftarrow",!0),$("math",Q,te,"≤","\\le"),$("math",Q,te,"≤","\\leq",!0),$("math",Q,te,"<","\\lt",!0),$("math",Q,te,"→","\\rightarrow",!0),$("math",Q,te,"→","\\to"),$("math",X,te,"≱","\\ngeq",!0),$("math",X,te,"≰","\\nleq",!0),$("math",Q,"spacing"," ","\\ "),$("math",Q,"spacing"," ","~"),$("math",Q,"spacing"," ","\\space"),$("math",Q,"spacing"," ","\\nobreakspace"),$("text",Q,"spacing"," ","\\ "),$("text",Q,"spacing"," "," "),$("text",Q,"spacing"," ","~"),$("text",Q,"spacing"," ","\\space"),$("text",Q,"spacing"," ","\\nobreakspace"),$("math",Q,"spacing",null,"\\nobreak"),$("math",Q,"spacing",null,"\\allowbreak"),$("math",Q,"punct",",",","),$("math",Q,"punct",";",";"),$("math",X,J,"⊼","\\barwedge",!0),$("math",X,J,"⊻","\\veebar",!0),$("math",Q,J,"⊙","\\odot",!0),$("math",Q,J,"⊕","\\oplus",!0),$("math",Q,J,"⊗","\\otimes",!0),$("math",Q,"textord","∂","\\partial",!0),$("math",Q,J,"⊘","\\oslash",!0),$("math",X,J,"⊚","\\circledcirc",!0),$("math",X,J,"⊡","\\boxdot",!0),$("math",Q,J,"△","\\bigtriangleup"),$("math",Q,J,"▽","\\bigtriangledown"),$("math",Q,J,"†","\\dagger"),$("math",Q,J,"⋄","\\diamond"),$("math",Q,J,"⋆","\\star"),$("math",Q,J,"◃","\\triangleleft"),$("math",Q,J,"▹","\\triangleright"),$("math",Q,"open","{","\\{"),$("text",Q,"textord","{","\\{"),$("text",Q,"textord","{","\\textbraceleft"),$("math",Q,"close","}","\\}"),$("text",Q,"textord","}","\\}"),$("text",Q,"textord","}","\\textbraceright"),$("math",Q,"open","{","\\lbrace"),$("math",Q,"close","}","\\rbrace"),$("math",Q,"open","[","\\lbrack",!0),$("text",Q,"textord","[","\\lbrack",!0),$("math",Q,"close","]","\\rbrack",!0),$("text",Q,"textord","]","\\rbrack",!0),$("math",Q,"open","(","\\lparen",!0),$("math",Q,"close",")","\\rparen",!0),$("text",Q,"textord","<","\\textless",!0),$("text",Q,"textord",">","\\textgreater",!0),$("math",Q,"open","⌊","\\lfloor",!0),$("math",Q,"close","⌋","\\rfloor",!0),$("math",Q,"open","⌈","\\lceil",!0),$("math",Q,"close","⌉","\\rceil",!0),$("math",Q,"textord","\\","\\backslash"),$("math",Q,"textord","","|"),$("math",Q,"textord","","\\vert"),$("text",Q,"textord","|","\\textbar",!0),$("math",Q,"textord","∥","\\|"),$("math",Q,"textord","∥","\\Vert"),$("text",Q,"textord","∥","\\textbardbl"),$("text",Q,"textord","~","\\textasciitilde"),$("text",Q,"textord","\\","\\textbackslash"),$("text",Q,"textord","^","\\textasciicircum"),$("math",Q,te,"↑","\\uparrow",!0),$("math",Q,te,"⇑","\\Uparrow",!0),$("math",Q,te,"↓","\\downarrow",!0),$("math",Q,te,"⇓","\\Downarrow",!0),$("math",Q,te,"↕","\\updownarrow",!0),$("math",Q,te,"⇕","\\Updownarrow",!0),$("math",Q,ee,"∐","\\coprod"),$("math",Q,ee,"","\\bigvee"),$("math",Q,ee,"⋀","\\bigwedge"),$("math",Q,ee,"⨄","\\biguplus"),$("math",Q,ee,"⋂","\\bigcap"),$("math",Q,ee,"","\\bigcup"),$("math",Q,ee,"∫","\\int"),$("math",Q,ee,"∫","\\intop"),$("math",Q,ee,"∬","\\iint"),$("math",Q,ee,"∭","\\iiint"),$("math",Q,ee,"∏","\\prod"),$("math",Q,ee,"∑","\\sum"),$("math",Q,ee,"⨂","\\bigotimes"),$("math",Q,ee,"⨁","\\bigoplus"),$("math",Q,ee,"⨀","\\bigodot"),$("math",Q,ee,"∮","\\oint"),$("math",Q,ee,"⨆","\\bigsqcup"),$("math",Q,ee,"∫","\\smallint"),$("text",Q,"inner","…","\\textellipsis"),$("math",Q,"inner","…","\\mathellipsis"),$("text",Q,"inner","…","\\ldots",!0),$("math",Q,"inner","…","\\ldots",!0),$("math",Q,"inner","⋯","\\@cdots",!0),$("math",Q,"inner","⋱","\\ddots",!0),$("math",Q,"textord","⋮","\\varvdots"),$("math",Q,"accent-token","ˊ","\\acute"),$("math",Q,"accent-token","ˋ","\\grave"),$("math",Q,"accent-token","¨","\\ddot"),$("math",Q,"accent-token","~","\\tilde"),$("math",Q,"accent-token","ˉ","\\bar"),$("math",Q,"accent-token","˘","\\breve"),$("math",Q,"accent-token","ˇ","\\check"),$("math",Q,"accent-token","^","\\hat"),$("math",Q,"accent-token","⃗","\\vec"),$("math",Q,"accent-token","˙","\\dot"),$("math",Q,"accent-token","˚","\\mathring"),$("math",Q,Z,"","\\@imath"),$("math",Q,Z,"","\\@jmath"),$("math",Q,"textord","ı","ı"),$("math",Q,"textord","ȷ","ȷ"),$("text",Q,"textord","ı","\\i",!0),$("text",Q,"textord","ȷ","\\j",!0),$("text",Q,"textord","ß","\\ss",!0),$("text",Q,"textord","æ","\\ae",!0),$("text",Q,"textord","œ","\\oe",!0),$("text",Q,"textord","ø","\\o",!0),$("text",Q,"textord","Æ","\\AE",!0),$("text",Q,"textord","Œ","\\OE",!0),$("text",Q,"textord","Ø","\\O",!0),$("text",Q,"accent-token","ˊ","\\'"),$("text",Q,"accent-token","ˋ","\\`"),$("text",Q,"accent-token","ˆ","\\^"),$("text",Q,"accent-token","˜","\\~"),$("text",Q,"accent-token","ˉ","\\="),$("text",Q,"accent-token","˘","\\u"),$("text",Q,"accent-token","˙","\\."),$("text",Q,"accent-token","˚","\\r"),$("text",Q,"accent-token","ˇ","\\v"),$("text",Q,"accent-token","¨",'\\"'),$("text",Q,"accent-token","˝","\\H"),$("text",Q,"accent-token","◯","\\textcircled");var ne={"--":!0,"---":!0,"``":!0,"''":!0};$("text",Q,"textord","","--",!0),$("text",Q,"textord","","\\textendash"),$("text",Q,"textord","—","---",!0),$("text",Q,"textord","—","\\textemdash"),$("text",Q,"textord","","`",!0),$("text",Q,"textord","","\\textquoteleft"),$("text",Q,"textord","","'",!0),$("text",Q,"textord","","\\textquoteright"),$("text",Q,"textord","“","``",!0),$("text",Q,"textord","“","\\textquotedblleft"),$("text",Q,"textord","”","''",!0),$("text",Q,"textord","”","\\textquotedblright"),$("math",Q,"textord","°","\\degree",!0),$("text",Q,"textord","°","\\degree"),$("text",Q,"textord","°","\\textdegree",!0),$("math",Q,"textord","£","\\pounds"),$("math",Q,"textord","£","\\mathsterling",!0),$("text",Q,"textord","£","\\pounds"),$("text",Q,"textord","£","\\textsterling",!0),$("math",X,"textord","✠","\\maltese"),$("text",X,"textord","✠","\\maltese");for(var oe=0;oe<'0123456789/@."'.length;oe++){var re='0123456789/@."'.charAt(oe);$("math",Q,"textord",re,re)}for(var ie=0;ie<'0123456789!@*()-=+";:?/.,'.length;ie++){var ae='0123456789!@*()-=+";:?/.,'.charAt(ie);$("text",Q,"textord",ae,ae)}for(var se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ce=0;ce<se.length;ce++){var le=se.charAt(ce);$("math",Q,Z,le,le),$("text",Q,"textord",le,le)}$("math",X,"textord","C",""),$("text",X,"textord","C",""),$("math",X,"textord","H",""),$("text",X,"textord","H",""),$("math",X,"textord","N",""),$("text",X,"textord","N",""),$("math",X,"textord","P",""),$("text",X,"textord","P",""),$("math",X,"textord","Q",""),$("text",X,"textord","Q",""),$("math",X,"textord","R",""),$("text",X,"textord","R",""),$("math",X,"textord","Z",""),$("text",X,"textord","Z",""),$("math",Q,Z,"h",""),$("text",Q,Z,"h","");for(var ue="",de=0;de<se.length;de++){var he=se.charAt(de);$("math",Q,Z,he,ue=String.fromCharCode(55349,56320+de)),$("text",Q,"textord",he,ue),$("math",Q,Z,he,ue=String.fromCharCode(55349,56372+de)),$("text",Q,"textord",he,ue),$("math",Q,Z,he,ue=String.fromCharCode(55349,56424+de)),$("text",Q,"textord",he,ue),$("math",Q,Z,he,ue=String.fromCharCode(55349,56580+de)),$("text",Q,"textord",he,ue),$("math",Q,Z,he,ue=String.fromCharCode(55349,56736+de)),$("text",Q,"textord",he,ue),$("math",Q,Z,he,ue=String.fromCharCode(55349,56788+de)),$("text",Q,"textord",he,ue),$("math",Q,Z,he,ue=String.fromCharCode(55349,56840+de)),$("text",Q,"textord",he,ue),$("math",Q,Z,he,ue=String.fromCharCode(55349,56944+de)),$("text",Q,"textord",he,ue),de<26&&($("math",Q,Z,he,ue=String.fromCharCode(55349,56632+de)),$("text",Q,"textord",he,ue),$("math",Q,Z,he,ue=String.fromCharCode(55349,56476+de)),$("text",Q,"textord",he,ue))}$("math",Q,Z,"k",ue=String.fromCharCode(55349,56668)),$("text",Q,"textord","k",ue);for(var pe=0;pe<10;pe++){var me=pe.toString();$("math",Q,Z,me,ue=String.fromCharCode(55349,57294+pe)),$("text",Q,"textord",me,ue),$("math",Q,Z,me,ue=String.fromCharCode(55349,57314+pe)),$("text",Q,"textord",me,ue),$("math",Q,Z,me,ue=String.fromCharCode(55349,57324+pe)),$("text",Q,"textord",me,ue),$("math",Q,Z,me,ue=String.fromCharCode(55349,57334+pe)),$("text",Q,"textord",me,ue)}for(var ge=0;ge<"ÇÐÞçþ".length;ge++){var fe="ÇÐÞçþ".charAt(ge);$("math",Q,Z,fe,fe),$("text",Q,"textord",fe,fe)}var _e=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],be=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],ve=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ee=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ye=function(e,t){return t.size<2?e:ve[e-1][t.size-1]},Se=function(){function e(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Ee[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var t=e.prototype;return t.extend=function(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);return new e(n)},t.havingStyle=function(e){return this.style===e?this:this.extend({style:e,size:ye(this.textSize,e)})},t.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},t.havingSize=function(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Ee[e-1]})},t.havingBaseStyle=function(t){t=t||this.style.text();var n=ye(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})},t.havingBaseSizing=function(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})},t.withColor=function(e){return this.extend({color:e})},t.withPhantom=function(){return this.extend({phantom:!0})},t.withFont=function(e){return this.extend({font:e})},t.withTextFontFamily=function(e){return this.extend({fontFamily:e,font:""})},t.withTextFontWeight=function(e){return this.extend({fontWeight:e,font:""})},t.withTextFontShape=function(e){return this.extend({fontShape:e,font:""})},t.sizingClasses=function(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]},t.baseSizingClasses=function(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]},t.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!V[t=e>=5?0:e>=3?1:2]){var n=V[t]={cssEmPerMu:G.quad[t]/18};for(var o in G)G.hasOwnProperty(o)&&(n[o]=G[o][t])}return V[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();Se.BASESIZE=6;var Te=Se,we={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Ce={ex:!0,em:!0,mu:!0},xe=function(e){return"string"!=typeof e&&(e=e.unit),e in we||e in Ce||"ex"===e},Oe=function(e,t){var n;if(e.unit in we)n=we[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var o;if(o=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=o.fontMetrics().xHeight;else{if("em"!==e.unit)throw new a("Invalid unit: '"+e.unit+"'");n=o.fontMetrics().quad}o!==t&&(n*=o.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},ke=function(e,t,n){return Y[n][e]&&Y[n][e].replace&&(e=Y[n][e].replace),{value:e,metrics:H(e,t,n)}},Re=function(e,t,n,o,r){var i,a=ke(e,t,n),s=a.metrics;if(e=a.value,s){var c=s.italic;("text"===n||o&&"mathit"===o.font)&&(c=0),i=new M(e,s.height,s.depth,c,s.skew,s.width,r)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),i=new M(e,0,0,0,0,0,r);if(o){i.maxFontSize=o.sizeMultiplier,o.style.isTight()&&i.classes.push("mtight");var l=o.getColor();l&&(i.style.color=l)}return i},Ae=function(e,t){if(O(e.classes)!==O(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&e.style[o]!==t.style[o])return!1;return!0},Ie=function(e){for(var t=0,n=0,o=0,r=0;r<e.children.length;r++){var i=e.children[r];i.height>t&&(t=i.height),i.depth>n&&(n=i.depth),i.maxFontSize>o&&(o=i.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=o},De=function(e,t,n,o){var r=new I(e,t,n,o);return Ie(r),r},Ne=function(e,t,n,o){return new I(e,t,n,o)},Fe=function(e){var t=new x(e);return Ie(t),t},Me=function(e,t,n){var o="";switch(e){case"amsrm":o="AMS";break;case"textrm":o="Main";break;case"textsf":o="SansSerif";break;case"texttt":o="Typewriter";break;default:o=e}return o+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Pe={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Le={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659],leftParenInner:["leftParenInner",.875,.3],rightParenInner:["rightParenInner",.875,.3]},Ue={fontMap:Pe,makeSymbol:Re,mathsym:function(e,t,n,o){return void 0===o&&(o=[]),"boldsymbol"===n.font&&ke(e,"Main-Bold",t).metrics?Re(e,"Main-Bold",t,n,o.concat(["mathbf"])):"\\"===e||"main"===Y[t][e].font?Re(e,"Main-Regular",t,n,o):Re(e,"AMS-Regular",t,n,o.concat(["amsrm"]))},makeSpan:De,makeSvgSpan:Ne,makeLineSpan:function(e,t,n){var o=De([e],[],t);return o.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),o.style.borderBottomWidth=o.height+"em",o.maxFontSize=1,o},makeAnchor:function(e,t,n,o){var r=new D(e,t,n,o);return Ie(r),r},makeFragment:Fe,wrapFragment:function(e,t){return e instanceof x?De([],[e],t):e},makeVList:function(e,t){for(var n=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],o=-t[0].shift-t[0].elem.depth,r=o,i=1;i<t.length;i++){var a=-t[i].shift-r-t[i].elem.depth,s=a-(t[i-1].elem.height+t[i-1].elem.depth);r+=a,n.push({type:"kern",size:s}),n.push(t[i])}return{children:n,depth:o}}var c;if("top"===e.positionType){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-="kern"===d.type?d.size:d.elem.height+d.elem.depth}c=l}else if("bottom"===e.positionType)c=-e.positionData;else{var h=e.children[0];if("elem"!==h.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)c=-h.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");c=-h.elem.depth}}return{children:e.children,depth:c}}(e),o=n.children,r=n.depth,i=0,a=0;a<o.length;a++){var s=o[a];if("elem"===s.type){var c=s.elem;i=Math.max(i,c.maxFontSize,c.height)}}i+=2;var l=De(["pstrut"],[]);l.style.height=i+"em";for(var u=[],d=r,h=r,p=r,m=0;m<o.length;m++){var g=o[m];if("kern"===g.type)p+=g.size;else{var f=g.elem,_=g.wrapperClasses||[],b=g.wrapperStyle||{},v=De(_,[l,f],void 0,b);v.style.top=-i-p-f.depth+"em",g.marginLeft&&(v.style.marginLeft=g.marginLeft),g.marginRight&&(v.style.marginRight=g.marginRight),u.push(v),p+=f.height+f.depth}d=Math.min(d,p),h=Math.max(h,p)}var E,y=De(["vlist"],u);if(y.style.height=h+"em",d<0){var S=De([],[]),T=De(["vlist"],[S]);T.style.height=-d+"em";var w=De(["vlist-s"],[new M("")]);E=[De(["vlist-r"],[y,w]),De(["vlist-r"],[T])]}else E=[De(["vlist-r"],[y])];var C=De(["vlist-t"],E);return 2===E.length&&C.classes.push("vlist-t2"),C.height=h,C.depth=-d,C},makeOrd:function(e,t,n){var o=e.mode,r=e.text,i=["mord"],s="math"===o||"text"===o&&t.font,c=s?t.font:t.fontFamily;if(55349===r.charCodeAt(0)){var l=function(e,t){var n=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,o="math"===t?0:1;if(119808<=n&&n<120484){var r=Math.floor((n-119808)/26);return[_e[r][2],_e[r][o]]}if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return[be[i][2],be[i][o]]}if(120485===n||120486===n)return[_e[0][2],_e[0][o]];if(120486<n&&n<120782)return["",""];throw new a("Unsupported character: "+e)}(r,o),u=l[0],d=l[1];return Re(r,u,o,t,i.concat(d))}if(c){var h,p;if("boldsymbol"===c){var m=function(e,t,n,o,r){return"textord"!==r&&ke(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(r,o,0,0,n);h=m.fontName,p=[m.fontClass]}else s?(h=Pe[c].fontName,p=[c]):(h=Me(c,t.fontWeight,t.fontShape),p=[c,t.fontWeight,t.fontShape]);if(ke(r,h,o).metrics)return Re(r,h,o,t,i.concat(p));if(ne.hasOwnProperty(r)&&"Typewriter"===h.substr(0,10)){for(var g=[],f=0;f<r.length;f++)g.push(Re(r[f],h,o,t,i.concat(p)));return Fe(g)}}if("mathord"===n)return Re(r,"Math-Italic",o,t,i.concat(["mathnormal"]));if("textord"===n){var _=Y[o][r]&&Y[o][r].font;if("ams"===_){var b=Me("amsrm",t.fontWeight,t.fontShape);return Re(r,b,o,t,i.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==_&&_){var v=Me(_,t.fontWeight,t.fontShape);return Re(r,v,o,t,i.concat(v,t.fontWeight,t.fontShape))}var E=Me("textrm",t.fontWeight,t.fontShape);return Re(r,E,o,t,i.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+n+" in makeOrd")},makeGlue:function(e,t){var n=De(["mspace"],[],t),o=Oe(e,t);return n.style.marginRight=o+"em",n},staticSvg:function(e,t){var n=Le[e],o=n[0],r=n[1],i=n[2],a=new L(o),s=new P([a],{width:r+"em",height:i+"em",style:"width:"+r+"em",viewBox:"0 0 "+1e3*r+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),c=Ne(["overlay"],[s],t);return c.height=i,c.style.height=i+"em",c.style.width=r+"em",c},svgData:Le,tryCombineChars:function(e){for(var t=0;t<e.length-1;t++){var n=e[t],o=e[t+1];n instanceof M&&o instanceof M&&Ae(n,o)&&(n.text+=o.text,n.height=Math.max(n.height,o.height),n.depth=Math.max(n.depth,o.depth),n.italic=o.italic,e.splice(t+1,1),t--)}return e}},Be={number:3,unit:"mu"},je={number:4,unit:"mu"},Ge={number:5,unit:"mu"},qe={mord:{mop:Be,mbin:je,mrel:Ge,minner:Be},mop:{mord:Be,mop:Be,mrel:Ge,minner:Be},mbin:{mord:je,mop:je,mopen:je,minner:je},mrel:{mord:Ge,mop:Ge,mopen:Ge,minner:Ge},mopen:{},mclose:{mop:Be,mbin:je,mrel:Ge,minner:Be},mpunct:{mord:Be,mop:Be,mrel:Ge,mopen:Be,mclose:Be,mpunct:Be,minner:Be},minner:{mord:Be,mop:Be,mbin:je,mrel:Ge,mopen:Be,mpunct:Be,minner:Be}},He={mord:{mop:Be},mop:{mord:Be,mop:Be},mbin:{},mrel:{},mopen:{},mclose:{mop:Be},mpunct:{},minner:{mop:Be}},Ve={},ze={},Ke={};function We(e){for(var t=e.type,n=e.names,o=e.props,r=e.handler,i=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:o.numArgs,argTypes:o.argTypes,greediness:void 0===o.greediness?1:o.greediness,allowedInText:!!o.allowedInText,allowedInMath:void 0===o.allowedInMath||o.allowedInMath,numOptionalArgs:o.numOptionalArgs||0,infix:!!o.infix,handler:r},c=0;c<n.length;++c)Ve[n[c]]=s;t&&(i&&(ze[t]=i),a&&(Ke[t]=a))}function Ye(e){We({type:e.type,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:e.htmlBuilder,mathmlBuilder:e.mathmlBuilder})}var $e=function(e){return"ordgroup"===e.type?e.body:[e]},Qe=Ue.makeSpan,Xe=["leftmost","mbin","mopen","mrel","mop","mpunct"],Je=["rightmost","mrel","mclose","mpunct"],Ze={display:y.DISPLAY,text:y.TEXT,script:y.SCRIPT,scriptscript:y.SCRIPTSCRIPT},et={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},tt=function(e,t,n,o){void 0===o&&(o=[null,null]);for(var r=[],i=0;i<e.length;i++){var a=at(e[i],t);if(a instanceof x){var s=a.children;r.push.apply(r,s)}else r.push(a)}if(!n)return r;var c=t;if(1===e.length){var l=e[0];"sizing"===l.type?c=t.havingSize(l.size):"styling"===l.type&&(c=t.havingStyle(Ze[l.style]))}var u=Qe([o[0]||"leftmost"],[],t),h=Qe([o[1]||"rightmost"],[],t),p="root"===n;return nt(r,(function(e,t){var n=t.classes[0],o=e.classes[0];"mbin"===n&&d.contains(Je,o)?t.classes[0]="mord":"mbin"===o&&d.contains(Xe,n)&&(e.classes[0]="mord")}),{node:u},h,p),nt(r,(function(e,t){var n=rt(t),o=rt(e),r=n&&o?e.hasClass("mtight")?He[n][o]:qe[n][o]:null;if(r)return Ue.makeGlue(r,c)}),{node:u},h,p),r},nt=function e(t,n,o,r,i){r&&t.push(r);for(var a=0;a<t.length;a++){var s=t[a],c=ot(s);if(c)e(c.children,n,o,null,i);else{var l=!s.hasClass("mspace");if(l){var u=n(s,o.node);u&&(o.insertAfter?o.insertAfter(u):(t.unshift(u),a++))}l?o.node=s:i&&s.hasClass("newline")&&(o.node=Qe(["leftmost"])),o.insertAfter=function(e){return function(n){t.splice(e+1,0,n),a++}}(a)}}r&&t.pop()},ot=function(e){return e instanceof x||e instanceof D||e instanceof I&&e.hasClass("enclosing")?e:null},rt=function(e,t){return e?(t&&(e=function e(t,n){var o=ot(t);if(o){var r=o.children;if(r.length){if("right"===n)return e(r[r.length-1],"right");if("left"===n)return e(r[0],"left")}}return t}(e,t)),et[e.classes[0]]||null):null},it=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return Qe(t.concat(n))},at=function(e,t,n){if(!e)return Qe();if(ze[e.type]){var o=ze[e.type](e,t);if(n&&t.size!==n.size){o=Qe(t.sizingClasses(n),[o],t);var r=t.sizeMultiplier/n.sizeMultiplier;o.height*=r,o.depth*=r}return o}throw new a("Got group of unknown type: '"+e.type+"'")};function st(e,t){var n=Qe(["base"],e,t),o=Qe(["strut"]);return o.style.height=n.height+n.depth+"em",o.style.verticalAlign=-n.depth+"em",n.children.unshift(o),n}function ct(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);for(var o,r=tt(e,t,"root"),i=[],a=[],s=0;s<r.length;s++)if(a.push(r[s]),r[s].hasClass("mbin")||r[s].hasClass("mrel")||r[s].hasClass("allowbreak")){for(var c=!1;s<r.length-1&&r[s+1].hasClass("mspace")&&!r[s+1].hasClass("newline");)s++,a.push(r[s]),r[s].hasClass("nobreak")&&(c=!0);c||(i.push(st(a,t)),a=[])}else r[s].hasClass("newline")&&(a.pop(),a.length>0&&(i.push(st(a,t)),a=[]),i.push(r[s]));a.length>0&&i.push(st(a,t)),n&&((o=st(tt(n,t,!0))).classes=["tag"],i.push(o));var l=Qe(["katex-html"],i);if(l.setAttribute("aria-hidden","true"),o){var u=o.children[0];u.style.height=l.height+l.depth+"em",u.style.verticalAlign=-l.depth+"em"}return l}function lt(e){return new x(e)}var ut=function(){function e(e,t){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=e,this.attributes={},this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=d.escape(this.attributes[t]),e+='"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">"},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),dt=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return d.escape(this.toText())},t.toText=function(){return this.text},e}(),ht={MathNode:ut,TextNode:dt,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?"":e>=.1666&&e<=.1667?"":e>=.2222&&e<=.2223?"":e>=.2777&&e<=.2778?"":e>=-.05556&&e<=-.05555?"":e>=-.1667&&e<=-.1666?"":e>=-.2223&&e<=-.2222?"":e>=-.2778&&e<=-.2777?"":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:lt},pt=function(e,t,n){return!Y[t][e]||!Y[t][e].replace||55349===e.charCodeAt(0)||ne.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=Y[t][e].replace),new ht.TextNode(e)},mt=function(e){return 1===e.length?e[0]:new ht.MathNode("mrow",e)},gt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var o=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var r=e.text;return d.contains(["\\imath","\\jmath"],r)?null:(Y[o][r]&&Y[o][r].replace&&(r=Y[o][r].replace),H(r,Ue.fontMap[n].fontName,o)?Ue.fontMap[n].variant:null)},ft=function(e,t,n){if(1===e.length){var o=bt(e[0],t);return n&&o instanceof ut&&"mo"===o.type&&(o.setAttribute("lspace","0em"),o.setAttribute("rspace","0em")),[o]}for(var r,i=[],a=0;a<e.length;a++){var s=bt(e[a],t);if(s instanceof ut&&r instanceof ut){if("mtext"===s.type&&"mtext"===r.type&&s.getAttribute("mathvariant")===r.getAttribute("mathvariant")){var c;(c=r.children).push.apply(c,s.children);continue}if("mn"===s.type&&"mn"===r.type){var l;(l=r.children).push.apply(l,s.children);continue}if("mi"===s.type&&1===s.children.length&&"mn"===r.type){var u=s.children[0];if(u instanceof dt&&"."===u.text){var d;(d=r.children).push.apply(d,s.children);continue}}else if("mi"===r.type&&1===r.children.length){var h=r.children[0];if(h instanceof dt&&"̸"===h.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var p=s.children[0];p instanceof dt&&p.text.length>0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),i.pop())}}}i.push(s),r=s}return i},_t=function(e,t,n){return mt(ft(e,t,n))},bt=function(e,t){if(!e)return new ht.MathNode("mrow");if(Ke[e.type])return Ke[e.type](e,t);throw new a("Got group of unknown type: '"+e.type+"'")};function vt(e,t,n,o,r){var i,a=ft(e,n);i=1===a.length&&a[0]instanceof ut&&d.contains(["mrow","mtable"],a[0].type)?a[0]:new ht.MathNode("mrow",a);var s=new ht.MathNode("annotation",[new ht.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var c=new ht.MathNode("semantics",[i,s]),l=new ht.MathNode("math",[c]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),o&&l.setAttribute("display","block");var u=r?"katex":"katex-mathml";return Ue.makeSpan([u],[l])}var Et=function(e){return new Te({style:e.displayMode?y.DISPLAY:y.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},yt=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=Ue.makeSpan(n,[e])}return e},St=function(e,t,n){var o,r=Et(n);if("mathml"===n.output)return vt(e,t,r,n.displayMode,!0);if("html"===n.output){var i=ct(e,r);o=Ue.makeSpan(["katex"],[i])}else{var a=vt(e,t,r,n.displayMode,!1),s=ct(e,r);o=Ue.makeSpan(["katex"],[a,s])}return yt(o,n)},Tt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋"},wt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ct=function(e,t,n,o){var r,i=e.height+e.depth+2*n;if(/fbox|color/.test(t)){if(r=Ue.makeSpan(["stretchy",t],[],o),"fbox"===t){var a=o.color&&o.getColor();a&&(r.style.borderColor=a)}}else{var s=[];/^[bx]cancel$/.test(t)&&s.push(new U({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&s.push(new U({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new P(s,{width:"100%",height:i+"em"});r=Ue.makeSvgSpan([],[c],o)}return r.height=i,r.style.height=i+"em",r},xt=function(e){var t=new ht.MathNode("mo",[new ht.TextNode(Tt[e.substr(1)])]);return t.setAttribute("stretchy","true"),t},Ot=function(e,t){var n=function(){var n=4e5,o=e.label.substr(1);if(d.contains(["widehat","widecheck","widetilde","utilde"],o)){var r,i,a,s="ordgroup"===(m=e.base).type?m.body.length:1;if(s>5)"widehat"===o||"widecheck"===o?(r=420,n=2364,a=.42,i=o+"4"):(r=312,n=2340,a=.34,i="tilde4");else{var c=[1,1,2,2,3,3][s];"widehat"===o||"widecheck"===o?(n=[0,1062,2364,2364,2364][c],r=[0,239,300,360,420][c],a=[0,.24,.3,.3,.36,.42][c],i=o+c):(n=[0,600,1033,2339,2340][c],r=[0,260,286,306,312][c],a=[0,.26,.286,.3,.306,.34][c],i="tilde"+c)}var l=new L(i),u=new P([l],{width:"100%",height:a+"em",viewBox:"0 0 "+n+" "+r,preserveAspectRatio:"none"});return{span:Ue.makeSvgSpan([],[u],t),minWidth:0,height:a}}var h,p,m,g=[],f=wt[o],_=f[0],b=f[1],v=f[2],E=v/1e3,y=_.length;if(1===y)h=["hide-tail"],p=[f[3]];else if(2===y)h=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==y)throw new Error("Correct katexImagesData or update code here to support\n "+y+" children.");h=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var S=0;S<y;S++){var T=new L(_[S]),w=new P([T],{width:"400em",height:E+"em",viewBox:"0 0 "+n+" "+v,preserveAspectRatio:p[S]+" slice"}),C=Ue.makeSvgSpan([h[S]],[w],t);if(1===y)return{span:C,minWidth:b,height:E};C.style.height=E+"em",g.push(C)}return{span:Ue.makeSpan(["stretchy"],g,t),minWidth:b,height:E}}(),o=n.span,r=n.minWidth,i=n.height;return o.height=i,o.style.height=i+"em",r>0&&(o.style.minWidth=r+"em"),o};function kt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Rt(e){var t=At(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function At(e){return e&&("atom"===e.type||K.hasOwnProperty(e.type))?e:null}var It=function(e,t){var n,o,r;e&&"supsub"===e.type?(n=(o=kt(e.base,"accent")).base,e.base=n,r=function(e){if(e instanceof I)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(at(e,t)),e.base=o):n=(o=kt(e,"accent")).base;var i=at(n,t.havingCrampedStyle()),a=0;if(o.isShifty&&d.isCharacterBox(n)){var s=d.getBaseElem(n);a=B(at(s,t.havingCrampedStyle())).skew}var c,l=Math.min(i.height,t.fontMetrics().xHeight);if(o.isStretchy)c=Ot(o,t),c=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+2*a+"em)",marginLeft:2*a+"em"}:void 0}]},t);else{var u,h;"\\vec"===o.label?(u=Ue.staticSvg("vec",t),h=Ue.svgData.vec[1]):((u=B(u=Ue.makeOrd({mode:o.mode,text:o.label},t,"textord"))).italic=0,h=u.width),c=Ue.makeSpan(["accent-body"],[u]);var p="\\textcircled"===o.label;p&&(c.classes.push("accent-full"),l=i.height);var m=a;p||(m-=h/2),c.style.left=m+"em","\\textcircled"===o.label&&(c.style.top=".2em"),c=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-l},{type:"elem",elem:c}]},t)}var g=Ue.makeSpan(["mord","accent"],[c],t);return r?(r.children[0]=g,r.height=Math.max(g.height,r.height),r.classes[0]="mord",r):g},Dt=function(e,t){var n=e.isStretchy?xt(e.label):new ht.MathNode("mo",[pt(e.label,e.mode)]),o=new ht.MathNode("mover",[bt(e.base,t),n]);return o.setAttribute("accent","true"),o},Nt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));We({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var n=t[0],o=!Nt.test(e.funcName),r=!o||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:o,isShifty:r,base:n}},htmlBuilder:It,mathmlBuilder:Dt}),We({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=t[0];return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:It,mathmlBuilder:Dt}),We({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,o=e.funcName,r=t[0];return{type:"accentUnder",mode:n.mode,label:o,base:r}},htmlBuilder:function(e,t){var n=at(e.base,t),o=Ot(e,t),r="\\utilde"===e.label?.12:0,i=Ue.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:o,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:n}]},t);return Ue.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:function(e,t){var n=xt(e.label),o=new ht.MathNode("munder",[bt(e.base,t),n]);return o.setAttribute("accentunder","true"),o}});var Ft=function(e){var t=new ht.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};We({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var o=e.parser,r=e.funcName;return{type:"xArrow",mode:o.mode,label:r,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,o=t.style,r=t.havingStyle(o.sup()),i=Ue.wrapFragment(at(e.body,r,t),t);i.classes.push("x-arrow-pad"),e.below&&(r=t.havingStyle(o.sub()),(n=Ue.wrapFragment(at(e.below,r,t),t)).classes.push("x-arrow-pad"));var a,s=Ot(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(l-=i.depth),n){var u=-t.fontMetrics().axisHeight+n.height+.5*s.height+.111;a=Ue.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:s,shift:c},{type:"elem",elem:n,shift:u}]},t)}else a=Ue.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:s,shift:c}]},t);return a.children[0].children[0].children[1].classes.push("svg-align"),Ue.makeSpan(["mrel","x-arrow"],[a],t)},mathmlBuilder:function(e,t){var n,o=xt(e.label);if(e.body){var r=Ft(bt(e.body,t));if(e.below){var i=Ft(bt(e.below,t));n=new ht.MathNode("munderover",[o,i,r])}else n=new ht.MathNode("mover",[o,r])}else if(e.below){var a=Ft(bt(e.below,t));n=new ht.MathNode("munder",[o,a])}else n=Ft(),n=new ht.MathNode("mover",[o,n]);return n}}),We({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var n=e.parser,o=kt(t[0],"ordgroup").body,r="",i=0;i<o.length;i++)r+=kt(o[i],"textord").text;var s=parseInt(r);if(isNaN(s))throw new a("\\@char has non-numeric argument "+r);return{type:"textord",mode:n.mode,text:String.fromCharCode(s)}}});var Mt=function(e,t){var n=tt(e.body,t.withColor(e.color),!1);return Ue.makeFragment(n)},Pt=function(e,t){var n=ft(e.body,t.withColor(e.color)),o=new ht.MathNode("mstyle",n);return o.setAttribute("mathcolor",e.color),o};We({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(e,t){var n=e.parser,o=kt(t[0],"color-token").color,r=t[1];return{type:"color",mode:n.mode,color:o,body:$e(r)}},htmlBuilder:Mt,mathmlBuilder:Pt}),We({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(e,t){var n=e.parser,o=e.breakOnTokenText,r=kt(t[0],"color-token").color;n.gullet.macros.set("\\current@color",r);var i=n.parseExpression(!0,o);return{type:"color",mode:n.mode,color:r,body:i}},htmlBuilder:Mt,mathmlBuilder:Pt}),We({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t,n){var o=e.parser,r=e.funcName,i=n[0],a="\\cr"===r,s=!1;return a||(s=!o.settings.displayMode||!o.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")),{type:"cr",mode:o.mode,newLine:s,newRow:a,size:i&&kt(i,"size").value}},htmlBuilder:function(e,t){if(e.newRow)throw new a("\\cr valid only within a tabular/array environment");var n=Ue.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Oe(e.size,t)+"em")),n},mathmlBuilder:function(e,t){var n=new ht.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Oe(e.size,t)+"em")),n}});var Lt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Ut=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new a("Expected a control sequence",e);return t},Bt=function(e,t,n,o){var r=e.gullet.macros.get(n.text);null==r&&(n.noexpand=!0,r={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,r,o)};We({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var o=t.fetch();if(Lt[o.text])return"\\global"!==n&&"\\\\globallong"!==n||(o.text=Lt[o.text]),kt(t.parseFunction(),"internal");throw new a("Invalid token after macro prefix",o)}}),We({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName,o=t.gullet.consumeArgs(1)[0];if(1!==o.length)throw new a("\\gdef's first argument must be a macro name");var r=o[0].text,i=0;for(o=t.gullet.consumeArgs(1)[0];1===o.length&&"#"===o[0].text;){if(1!==(o=t.gullet.consumeArgs(1)[0]).length)throw new a('Invalid argument number length "'+o.length+'"');if(!/^[1-9]$/.test(o[0].text))throw new a('Invalid argument number "'+o[0].text+'"');if(i++,parseInt(o[0].text)!==i)throw new a('Argument number "'+o[0].text+'" out of order');o=t.gullet.consumeArgs(1)[0]}return"\\edef"!==n&&"\\xdef"!==n||(o=t.gullet.expandTokens(o)).reverse(),t.gullet.macros.set(r,{tokens:o,numArgs:i},n===Lt[n]),{type:"internal",mode:t.mode}}}),We({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName,o=Ut(t.gullet.popToken());t.gullet.consumeSpaces();var r=function(e){var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t}(t);return Bt(t,o,r,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),We({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName,o=Ut(t.gullet.popToken()),r=t.gullet.popToken(),i=t.gullet.popToken();return Bt(t,o,i,"\\\\globalfuture"===n),t.gullet.pushToken(i),t.gullet.pushToken(r),{type:"internal",mode:t.mode}}});var jt=function(e,t,n){var o=H(Y.math[e]&&Y.math[e].replace||e,t,n);if(!o)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return o},Gt=function(e,t,n,o){var r=n.havingBaseStyle(t),i=Ue.makeSpan(o.concat(r.sizingClasses(n)),[e],n),a=r.sizeMultiplier/n.sizeMultiplier;return i.height*=a,i.depth*=a,i.maxFontSize=r.sizeMultiplier,i},qt=function(e,t,n){var o=t.havingBaseStyle(n),r=(1-t.sizeMultiplier/o.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=r+"em",e.height-=r,e.depth+=r},Ht=function(e,t,n,o,r,i){var a=function(e,t,n,o){return Ue.makeSymbol(e,"Size"+t+"-Regular",n,o)}(e,t,r,o),s=Gt(Ue.makeSpan(["delimsizing","size"+t],[a],o),y.TEXT,o,i);return n&&qt(s,o,y.TEXT),s},Vt=function(e,t,n){var o;return o="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:Ue.makeSpan(["delimsizinginner",o],[Ue.makeSpan([],[Ue.makeSymbol(e,t,n)])])}},zt={type:"kern",size:-.005},Kt=function(e,t,n,o,r,i){var a,s,c,l;a=c=l=e,s=null;var u="Size1-Regular";"\\uparrow"===e?c=l="⏐":"\\Uparrow"===e?c=l="‖":"\\downarrow"===e?a=c="⏐":"\\Downarrow"===e?a=c="‖":"\\updownarrow"===e?(a="\\uparrow",c="⏐",l="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",c="‖",l="\\Downarrow"):"["===e||"\\lbrack"===e?(a="⎡",c="⎢",l="⎣",u="Size4-Regular"):"]"===e||"\\rbrack"===e?(a="⎤",c="⎥",l="⎦",u="Size4-Regular"):"\\lfloor"===e||"⌊"===e?(c=a="⎢",l="⎣",u="Size4-Regular"):"\\lceil"===e||"⌈"===e?(a="⎡",c=l="⎢",u="Size4-Regular"):"\\rfloor"===e||"⌋"===e?(c=a="⎥",l="⎦",u="Size4-Regular"):"\\rceil"===e||"⌉"===e?(a="⎤",c=l="⎥",u="Size4-Regular"):"("===e||"\\lparen"===e?(a="⎛",c="⎜",l="⎝",u="Size4-Regular"):")"===e||"\\rparen"===e?(a="⎞",c="⎟",l="⎠",u="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(a="⎧",s="⎨",l="⎩",c="⎪",u="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="⎫",s="⎬",l="⎭",c="⎪",u="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a="⎧",l="⎩",c="⎪",u="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a="⎫",l="⎭",c="⎪",u="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a="⎧",l="⎭",c="⎪",u="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(a="⎫",l="⎩",c="⎪",u="Size4-Regular");var d=jt(a,u,r),h=d.height+d.depth,p=jt(c,u,r),m=p.height+p.depth,g=jt(l,u,r),f=g.height+g.depth,_=0,b=1;if(null!==s){var v=jt(s,u,r);_=v.height+v.depth,b=2}var E=h+f+_,S=Math.max(0,Math.ceil((t-E)/(b*m))),T=E+S*b*m,w=o.fontMetrics().axisHeight;n&&(w*=o.sizeMultiplier);var C=T/2-w,x=.005*(S+1)-m,O=[];if(O.push(Vt(l,u,r)),null===s)for(var k=0;k<S;k++)O.push(zt),O.push(Vt(c,u,r));else{for(var R=0;R<S;R++)O.push(zt),O.push(Vt(c,u,r));O.push({type:"kern",size:x}),O.push(Vt(c,u,r)),O.push(zt),O.push(Vt(s,u,r));for(var A=0;A<S;A++)O.push(zt),O.push(Vt(c,u,r))}if("⎜"!==c&&"⎟"!==c||0!==S)O.push({type:"kern",size:x}),O.push(Vt(c,u,r)),O.push(zt);else{var I=Ue.svgData.leftParenInner[2]/2;O.push({type:"kern",size:-I});var D="⎜"===c?"leftParenInner":"rightParenInner",N=Ue.staticSvg(D,o);O.push({type:"elem",elem:N}),O.push({type:"kern",size:-I})}O.push(Vt(a,u,r));var F=o.havingBaseStyle(y.TEXT),M=Ue.makeVList({positionType:"bottom",positionData:C,children:O},F);return Gt(Ue.makeSpan(["delimsizing","mult"],[M],F),y.TEXT,o,i)},Wt=function(e,t,n,o,r){var i=function(e,t,n){t*=1e3;var o="";switch(e){case"sqrtMain":o=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize1":o=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize2":o=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize3":o=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize4":o=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,80);break;case"sqrtTall":o=function(e,t,n){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(n-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,80,n)}return o}(e,o,n),a=new L(e,i),s=new P([a],{width:"400em",height:t+"em",viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Ue.makeSvgSpan(["hide-tail"],[s],r)},Yt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],$t=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Qt=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Xt=[0,1.2,1.8,2.4,3],Jt=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Zt=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"stack"}],en=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],tn=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},nn=function(e,t,n,o){for(var r=Math.min(2,3-o.style.size);r<n.length&&"stack"!==n[r].type;r++){var i=jt(e,tn(n[r]),"math"),a=i.height+i.depth;if("small"===n[r].type&&(a*=o.havingBaseStyle(n[r].style).sizeMultiplier),a>t)return n[r]}return n[n.length-1]},on=function(e,t,n,o,r,i){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=d.contains(Qt,e)?Jt:d.contains(Yt,e)?en:Zt;var s=nn(e,t,a,o);return"small"===s.type?function(e,t,n,o,r,i){var a=Ue.makeSymbol(e,"Main-Regular",r,o),s=Gt(a,t,o,i);return n&&qt(s,o,t),s}(e,s.style,n,o,r,i):"large"===s.type?Ht(e,s.size,n,o,r,i):Kt(e,t,n,o,r,i)},rn=function(e,t){var n,o,r=t.havingBaseSizing(),i=nn("\\surd",e*r.sizeMultiplier,en,r),a=r.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),c=0,l=0,u=0;return"small"===i.type?(e<1?a=1:e<1.4&&(a=.7),l=(1+s)/a,(n=Wt("sqrtMain",c=(1+s+.08)/a,u=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",o=.833/a):"large"===i.type?(u=1080*Xt[i.size],l=(Xt[i.size]+s)/a,c=(Xt[i.size]+s+.08)/a,(n=Wt("sqrtSize"+i.size,c,u,s,t)).style.minWidth="1.02em",o=1/a):(c=e+s+.08,l=e+s,u=Math.floor(1e3*e+s)+80,(n=Wt("sqrtTall",c,u,s,t)).style.minWidth="0.742em",o=1.056),n.height=l,n.style.height=c+"em",{span:n,advanceWidth:o,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*a}},an=function(e,t,n,o,r){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),d.contains(Yt,e)||d.contains(Qt,e))return Ht(e,t,!1,n,o,r);if(d.contains($t,e))return Kt(e,Xt[t],!1,n,o,r);throw new a("Illegal delimiter: '"+e+"'")},sn=on,cn=function(e,t,n,o,r,i){var a=o.fontMetrics().axisHeight*o.sizeMultiplier,s=5/o.fontMetrics().ptPerEm,c=Math.max(t-a,n+a),l=Math.max(c/500*901,2*c-s);return on(e,l,!0,o,r,i)},ln={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},un=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function dn(e,t){var n=At(e);if(n&&d.contains(un,n.text))return n;throw new a(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function hn(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}We({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(e,t){var n=dn(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:ln[e.funcName].size,mclass:ln[e.funcName].mclass,delim:n.text}},htmlBuilder:function(e,t){return"."===e.delim?Ue.makeSpan([e.mclass]):an(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(pt(e.delim,e.mode));var n=new ht.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),We({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(e,t){var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new a("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:dn(t[0],e).text,color:n}}}),We({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(e,t){var n=dn(t[0],e),o=e.parser;++o.leftrightDepth;var r=o.parseExpression(!1);--o.leftrightDepth,o.expect("\\right",!1);var i=kt(o.parseFunction(),"leftright-right");return{type:"leftright",mode:o.mode,body:r,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:function(e,t){hn(e);for(var n,o,r=tt(e.body,t,!0,["mopen","mclose"]),i=0,a=0,s=!1,c=0;c<r.length;c++)r[c].isMiddle?s=!0:(i=Math.max(r[c].height,i),a=Math.max(r[c].depth,a));if(i*=t.sizeMultiplier,a*=t.sizeMultiplier,n="."===e.left?it(t,["mopen"]):cn(e.left,i,a,t,e.mode,["mopen"]),r.unshift(n),s)for(var l=1;l<r.length;l++){var u=r[l].isMiddle;u&&(r[l]=cn(u.delim,i,a,u.options,e.mode,[]))}if("."===e.right)o=it(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;o=cn(e.right,i,a,d,e.mode,["mclose"])}return r.push(o),Ue.makeSpan(["minner"],r,t)},mathmlBuilder:function(e,t){hn(e);var n=ft(e.body,t);if("."!==e.left){var o=new ht.MathNode("mo",[pt(e.left,e.mode)]);o.setAttribute("fence","true"),n.unshift(o)}if("."!==e.right){var r=new ht.MathNode("mo",[pt(e.right,e.mode)]);r.setAttribute("fence","true"),e.rightColor&&r.setAttribute("mathcolor",e.rightColor),n.push(r)}return mt(n)}}),We({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(e,t){var n=dn(t[0],e);if(!e.parser.leftrightDepth)throw new a("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:function(e,t){var n;if("."===e.delim)n=it(t,[]);else{n=an(e.delim,1,t,e.mode,[]);var o={delim:e.delim,options:t};n.isMiddle=o}return n},mathmlBuilder:function(e,t){var n="\\vert"===e.delim||"|"===e.delim?pt("|","text"):pt(e.delim,e.mode),o=new ht.MathNode("mo",[n]);return o.setAttribute("fence","true"),o.setAttribute("lspace","0.05em"),o.setAttribute("rspace","0.05em"),o}});var pn=function(e,t){var n,o,r=Ue.wrapFragment(at(e.body,t),t),i=e.label.substr(1),a=t.sizeMultiplier,s=0,c=d.isCharacterBox(e.body);if("sout"===i)(n=Ue.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/a,s=-.5*t.fontMetrics().xHeight;else{/cancel/.test(i)?c||r.classes.push("cancel-pad"):r.classes.push("boxpad");var l=0,u=0;/box/.test(i)?(u=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),l=t.fontMetrics().fboxsep+("colorbox"===i?0:u)):l=c?.2:0,n=Ct(r,i,l,t),/fbox|boxed|fcolorbox/.test(i)&&(n.style.borderStyle="solid",n.style.borderWidth=u+"em"),s=r.depth+l,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}return o=e.backgroundColor?Ue.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:r,shift:0}]},t):Ue.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:/cancel/.test(i)?["svg-align"]:[]}]},t),/cancel/.test(i)&&(o.height=r.height,o.depth=r.depth),/cancel/.test(i)&&!c?Ue.makeSpan(["mord","cancel-lap"],[o],t):Ue.makeSpan(["mord"],[o],t)},mn=function(e,t){var n=0,o=new ht.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[bt(e.body,t)]);switch(e.label){case"\\cancel":o.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":o.setAttribute("notation","downdiagonalstrike");break;case"\\sout":o.setAttribute("notation","horizontalstrike");break;case"\\fbox":o.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,o.setAttribute("width","+"+2*n+"pt"),o.setAttribute("height","+"+2*n+"pt"),o.setAttribute("lspace",n+"pt"),o.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var r=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);o.setAttribute("style","border: "+r+"em solid "+String(e.borderColor))}break;case"\\xcancel":o.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&o.setAttribute("mathbackground",e.backgroundColor),o};We({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(e,t,n){var o=e.parser,r=e.funcName,i=kt(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:o.mode,label:r,backgroundColor:i,body:a}},htmlBuilder:pn,mathmlBuilder:mn}),We({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(e,t,n){var o=e.parser,r=e.funcName,i=kt(t[0],"color-token").color,a=kt(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:o.mode,label:r,backgroundColor:a,borderColor:i,body:s}},htmlBuilder:pn,mathmlBuilder:mn}),We({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),We({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(e,t,n){var o=e.parser,r=e.funcName,i=t[0];return{type:"enclose",mode:o.mode,label:r,body:i}},htmlBuilder:pn,mathmlBuilder:mn});var gn={};function fn(e){for(var t=e.type,n=e.names,o=e.props,r=e.handler,i=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:o.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:r},c=0;c<n.length;++c)gn[n[c]]=s;i&&(ze[t]=i),a&&(Ke[t]=a)}function _n(e){var t=[];e.consumeSpaces();for(var n=e.fetch().text;"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}function bn(e,t,n){var o=t.hskipBeforeAndAfter,r=t.addJot,i=t.cols,s=t.arraystretch,c=t.colSeparationType;if(e.gullet.beginGroup(),e.gullet.macros.set("\\\\","\\cr"),!s){var l=e.gullet.expandMacroAsText("\\arraystretch");if(null==l)s=1;else if(!(s=parseFloat(l))||s<0)throw new a("Invalid \\arraystretch: "+l)}e.gullet.beginGroup();var u=[],d=[u],h=[],p=[];for(p.push(_n(e));;){var m=e.parseExpression(!1,"\\cr");e.gullet.endGroup(),e.gullet.beginGroup(),m={type:"ordgroup",mode:e.mode,body:m},n&&(m={type:"styling",mode:e.mode,style:n,body:[m]}),u.push(m);var g=e.fetch().text;if("&"===g)e.consume();else{if("\\end"===g){1===u.length&&"styling"===m.type&&0===m.body[0].body.length&&d.pop(),p.length<d.length+1&&p.push([]);break}if("\\cr"!==g)throw new a("Expected & or \\\\ or \\cr or \\end",e.nextToken);var f=kt(e.parseFunction(),"cr");h.push(f.size),p.push(_n(e)),u=[],d.push(u)}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:r,arraystretch:s,body:d,cols:i,rowGaps:h,hskipBeforeAndAfter:o,hLinesBeforeRow:p,colSeparationType:c}}function vn(e){return"d"===e.substr(0,1)?"display":"text"}var En=function(e,t){var n,o,r=e.body.length,i=e.hLinesBeforeRow,s=0,c=new Array(r),l=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),h=1/t.fontMetrics().ptPerEm,p=5*h;e.colSeparationType&&"small"===e.colSeparationType&&(p=t.havingStyle(y.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var m=12*h,g=3*h,f=e.arraystretch*m,_=.7*f,b=.3*f,v=0;function E(e){for(var t=0;t<e.length;++t)t>0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(E(i[0]),n=0;n<e.body.length;++n){var S=e.body[n],T=_,w=b;s<S.length&&(s=S.length);var C=new Array(S.length);for(o=0;o<S.length;++o){var x=at(S[o],t);w<x.depth&&(w=x.depth),T<x.height&&(T=x.height),C[o]=x}var O=e.rowGaps[n],k=0;O&&(k=Oe(O,t))>0&&(w<(k+=b)&&(w=k),k=0),e.addJot&&(w+=g),C.height=T,C.depth=w,v+=T,C.pos=v,v+=w+k,c[n]=C,E(i[n+1])}var R,A,I=v/2+t.fontMetrics().axisHeight,D=e.cols||[],N=[];for(o=0,A=0;o<s||A<D.length;++o,++A){for(var F=D[A]||{},M=!0;"separator"===F.type;){if(M||((R=Ue.makeSpan(["arraycolsep"],[])).style.width=t.fontMetrics().doubleRuleSep+"em",N.push(R)),"|"!==F.separator&&":"!==F.separator)throw new a("Invalid separator type: "+F.separator);var P="|"===F.separator?"solid":"dashed",L=Ue.makeSpan(["vertical-separator"],[],t);L.style.height=v+"em",L.style.borderRightWidth=u+"em",L.style.borderRightStyle=P,L.style.margin="0 -"+u/2+"em",L.style.verticalAlign=-(v-I)+"em",N.push(L),F=D[++A]||{},M=!1}if(!(o>=s)){var U=void 0;(o>0||e.hskipBeforeAndAfter)&&0!==(U=d.deflt(F.pregap,p))&&((R=Ue.makeSpan(["arraycolsep"],[])).style.width=U+"em",N.push(R));var B=[];for(n=0;n<r;++n){var j=c[n],G=j[o];if(G){var q=j.pos-I;G.depth=j.depth,G.height=j.height,B.push({type:"elem",elem:G,shift:q})}}B=Ue.makeVList({positionType:"individualShift",children:B},t),B=Ue.makeSpan(["col-align-"+(F.align||"c")],[B]),N.push(B),(o<s-1||e.hskipBeforeAndAfter)&&0!==(U=d.deflt(F.postgap,p))&&((R=Ue.makeSpan(["arraycolsep"],[])).style.width=U+"em",N.push(R))}}if(c=Ue.makeSpan(["mtable"],N),l.length>0){for(var H=Ue.makeLineSpan("hline",t,u),V=Ue.makeLineSpan("hdashline",t,u),z=[{type:"elem",elem:c,shift:0}];l.length>0;){var K=l.pop(),W=K.pos-I;K.isDashed?z.push({type:"elem",elem:V,shift:W}):z.push({type:"elem",elem:H,shift:W})}c=Ue.makeVList({positionType:"individualShift",children:z},t)}return Ue.makeSpan(["mord"],[c],t)},yn={c:"center ",l:"left ",r:"right "},Sn=function(e,t){var n=new ht.MathNode("mtable",e.body.map((function(e){return new ht.MathNode("mtr",e.map((function(e){return new ht.MathNode("mtd",[bt(e,t)])})))}))),o=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);n.setAttribute("rowspacing",o+"em");var r="",i="";if(e.cols&&e.cols.length>0){var a=e.cols,s="",c=!1,l=0,u=a.length;"separator"===a[0].type&&(r+="top ",l=1),"separator"===a[a.length-1].type&&(r+="bottom ",u-=1);for(var d=l;d<u;d++)"align"===a[d].type?(i+=yn[a[d].align],c&&(s+="none "),c=!0):"separator"===a[d].type&&c&&(s+="|"===a[d].separator?"solid ":"dashed ",c=!1);n.setAttribute("columnalign",i.trim()),/[sd]/.test(s)&&n.setAttribute("columnlines",s.trim())}if("align"===e.colSeparationType){for(var h=e.cols||[],p="",m=1;m<h.length;m++)p+=m%2?"0em ":"1em ";n.setAttribute("columnspacing",p.trim())}else"alignat"===e.colSeparationType?n.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?n.setAttribute("columnspacing","0.2778em"):n.setAttribute("columnspacing","1em");var g="",f=e.hLinesBeforeRow;r+=f[0].length>0?"left ":"",r+=f[f.length-1].length>0?"right ":"";for(var _=1;_<f.length-1;_++)g+=0===f[_].length?"none ":f[_][0]?"dashed ":"solid ";return/[sd]/.test(g)&&n.setAttribute("rowlines",g.trim()),""!==r&&(n=new ht.MathNode("menclose",[n])).setAttribute("notation",r.trim()),e.arraystretch&&e.arraystretch<1&&(n=new ht.MathNode("mstyle",[n])).setAttribute("scriptlevel","1"),n},Tn=function(e,t){var n,o=[],r=bn(e.parser,{cols:o,addJot:!0},"display"),i=0,s={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",l=0;l<t[0].body.length;l++)c+=kt(t[0].body[l],"textord").text;n=Number(c),i=2*n}var u=!i;r.body.forEach((function(e){for(var t=1;t<e.length;t+=2){var o=kt(e[t],"styling");kt(o.body[0],"ordgroup").body.unshift(s)}if(u)i<e.length&&(i=e.length);else{var r=e.length/2;if(n<r)throw new a("Too many math in a row: expected "+n+", but got "+r,e[0])}}));for(var d=0;d<i;++d){var h="r",p=0;d%2==1?h="l":d>0&&u&&(p=1),o[d]={type:"align",align:h,pregap:p,postgap:0}}return r.colSeparationType=u?"align":"alignat",r};fn({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n={cols:(At(t[0])?[t[0]]:kt(t[0],"ordgroup").body).map((function(e){var t=Rt(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new a("Unknown column alignment: "+t,e)})),hskipBeforeAndAfter:!0};return bn(e.parser,n,vn(e.envName))},htmlBuilder:En,mathmlBuilder:Sn}),fn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName],n=bn(e.parser,{hskipBeforeAndAfter:!1},vn(e.envName));return t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:En,mathmlBuilder:Sn}),fn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=bn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:En,mathmlBuilder:Sn}),fn({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=(At(t[0])?[t[0]]:kt(t[0],"ordgroup").body).map((function(e){var t=Rt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new a("Unknown column alignment: "+t,e)}));if(n.length>1)throw new a("{subarray} can contain only one column");var o={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((o=bn(e.parser,o,"script")).body.length>0&&o.body[0].length>1)throw new a("{subarray} can contain only one column");return o},htmlBuilder:En,mathmlBuilder:Sn}),fn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t=bn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},vn(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:En,mathmlBuilder:Sn}),fn({type:"array",names:["aligned"],props:{numArgs:0},handler:Tn,htmlBuilder:En,mathmlBuilder:Sn}),fn({type:"array",names:["gathered"],props:{numArgs:0},handler:function(e){return bn(e.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:En,mathmlBuilder:Sn}),fn({type:"array",names:["alignedat"],props:{numArgs:1},handler:Tn,htmlBuilder:En,mathmlBuilder:Sn}),We({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new a(e.funcName+" valid only within array environment")}});var wn=gn;We({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,o=e.funcName,r=t[0];if("ordgroup"!==r.type)throw new a("Invalid environment name",r);for(var i="",s=0;s<r.body.length;++s)i+=kt(r.body[s],"textord").text;if("\\begin"===o){if(!wn.hasOwnProperty(i))throw new a("No such environment: "+i,r);var c=wn[i],l=n.parseArguments("\\begin{"+i+"}",c),u=l.args,d=l.optArgs,h={mode:n.mode,envName:i,parser:n},p=c.handler(h,u,d);n.expect("\\end",!1);var m=n.nextToken,g=kt(n.parseFunction(),"environment");if(g.name!==i)throw new a("Mismatch: \\begin{"+i+"} matched by \\end{"+g.name+"}",m);return p}return{type:"environment",mode:n.mode,name:i,nameGroup:r}}});var Cn=Ue.makeSpan;function xn(e,t){var n=tt(e.body,t,!0);return Cn([e.mclass],n,t)}function On(e,t){var n,o=ft(e.body,t);return"minner"===e.mclass?ht.newDocumentFragment(o):("mord"===e.mclass?e.isCharacterBox?(n=o[0]).type="mi":n=new ht.MathNode("mi",o):(e.isCharacterBox?(n=o[0]).type="mo":n=new ht.MathNode("mo",o),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"!==e.mclass&&"mclose"!==e.mclass||(n.attributes.lspace="0em",n.attributes.rspace="0em")),n)}We({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(e,t){var n=e.parser,o=e.funcName,r=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+o.substr(5),body:$e(r),isCharacterBox:d.isCharacterBox(r)}},htmlBuilder:xn,mathmlBuilder:On});var kn=function(e){var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};We({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){return{type:"mclass",mode:e.parser.mode,mclass:kn(t[0]),body:[t[1]],isCharacterBox:d.isCharacterBox(t[1])}}}),We({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var n,o=e.parser,r=e.funcName,i=t[1],a=t[0];n="\\stackrel"!==r?kn(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==r,body:$e(i)},c={type:"supsub",mode:a.mode,base:s,sup:"\\underset"===r?null:a,sub:"\\underset"===r?a:null};return{type:"mclass",mode:o.mode,mclass:n,body:[c],isCharacterBox:d.isCharacterBox(c)}},htmlBuilder:xn,mathmlBuilder:On});var Rn=function(e,t){var n=e.font,o=t.withFont(n);return at(e.body,o)},An=function(e,t){var n=e.font,o=t.withFont(n);return bt(e.body,o)},In={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};We({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(e,t){var n=e.parser,o=e.funcName,r=t[0],i=o;return i in In&&(i=In[i]),{type:"font",mode:n.mode,font:i.slice(1),body:r}},htmlBuilder:Rn,mathmlBuilder:An}),We({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(e,t){var n=e.parser,o=t[0],r=d.isCharacterBox(o);return{type:"mclass",mode:n.mode,mclass:kn(o),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:o}],isCharacterBox:r}}}),We({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.parser,o=e.funcName,r=e.breakOnTokenText,i=n.mode,a=n.parseExpression(!0,r);return{type:"font",mode:i,font:"math"+o.slice(1),body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:Rn,mathmlBuilder:An});var Dn=function(e,t){var n=t;return"display"===e?n=n.id>=y.SCRIPT.id?n.text():y.DISPLAY:"text"===e&&n.size===y.DISPLAY.size?n=y.TEXT:"script"===e?n=y.SCRIPT:"scriptscript"===e&&(n=y.SCRIPTSCRIPT),n},Nn=function(e,t){var n,o=Dn(e.size,t.style),r=o.fracNum(),i=o.fracDen();n=t.havingStyle(r);var a=at(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<c?c:a.depth}n=t.havingStyle(i);var l,u,d,h,p,m,g,f,_,b,v=at(e.denom,n,t);if(e.hasBarLine?(e.barSize?(u=Oe(e.barSize,t),l=Ue.makeLineSpan("frac-line",t,u)):l=Ue.makeLineSpan("frac-line",t),u=l.height,d=l.height):(l=null,u=0,d=t.fontMetrics().defaultRuleThickness),o.size===y.DISPLAY.size||"display"===e.size?(h=t.fontMetrics().num1,p=u>0?3*d:7*d,m=t.fontMetrics().denom1):(u>0?(h=t.fontMetrics().num2,p=d):(h=t.fontMetrics().num3,p=3*d),m=t.fontMetrics().denom2),l){var E=t.fontMetrics().axisHeight;h-a.depth-(E+.5*u)<p&&(h+=p-(h-a.depth-(E+.5*u))),E-.5*u-(v.height-m)<p&&(m+=p-(E-.5*u-(v.height-m)));var S=-(E-.5*u);g=Ue.makeVList({positionType:"individualShift",children:[{type:"elem",elem:v,shift:m},{type:"elem",elem:l,shift:S},{type:"elem",elem:a,shift:-h}]},t)}else{var T=h-a.depth-(v.height-m);T<p&&(h+=.5*(p-T),m+=.5*(p-T)),g=Ue.makeVList({positionType:"individualShift",children:[{type:"elem",elem:v,shift:m},{type:"elem",elem:a,shift:-h}]},t)}return n=t.havingStyle(o),g.height*=n.sizeMultiplier/t.sizeMultiplier,g.depth*=n.sizeMultiplier/t.sizeMultiplier,f=o.size===y.DISPLAY.size?t.fontMetrics().delim1:t.fontMetrics().delim2,_=null==e.leftDelim?it(t,["mopen"]):sn(e.leftDelim,f,!0,t.havingStyle(o),e.mode,["mopen"]),b=e.continued?Ue.makeSpan([]):null==e.rightDelim?it(t,["mclose"]):sn(e.rightDelim,f,!0,t.havingStyle(o),e.mode,["mclose"]),Ue.makeSpan(["mord"].concat(n.sizingClasses(t)),[_,Ue.makeSpan(["mfrac"],[g]),b],t)},Fn=function(e,t){var n=new ht.MathNode("mfrac",[bt(e.numer,t),bt(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var o=Oe(e.barSize,t);n.setAttribute("linethickness",o+"em")}}else n.setAttribute("linethickness","0px");var r=Dn(e.size,t.style);if(r.size!==t.style.size){n=new ht.MathNode("mstyle",[n]);var i=r.size===y.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",i),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var a=[];if(null!=e.leftDelim){var s=new ht.MathNode("mo",[new ht.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(n),null!=e.rightDelim){var c=new ht.MathNode("mo",[new ht.TextNode(e.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),a.push(c)}return mt(a)}return n};We({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(e,t){var n,o=e.parser,r=e.funcName,i=t[0],a=t[1],s=null,c=null,l="auto";switch(r){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",c=")";break;case"\\\\bracefrac":n=!1,s="\\{",c="\\}";break;case"\\\\brackfrac":n=!1,s="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\cfrac":case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text"}return{type:"genfrac",mode:o.mode,continued:"\\cfrac"===r,numer:i,denom:a,hasBarLine:n,leftDelim:s,rightDelim:c,size:l,barSize:null}},htmlBuilder:Nn,mathmlBuilder:Fn}),We({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(e){var t,n=e.parser,o=e.funcName,r=e.token;switch(o){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:r}}});var Mn=["display","text","script","scriptscript"],Pn=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};We({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n,o=e.parser,r=t[4],i=t[5],a="atom"===t[0].type&&"open"===t[0].family?Pn(t[0].text):null,s="atom"===t[1].type&&"close"===t[1].family?Pn(t[1].text):null,c=kt(t[2],"size"),l=null;n=!!c.isBlank||(l=c.value).number>0;var u="auto",d=t[3];if("ordgroup"===d.type){if(d.body.length>0){var h=kt(d.body[0],"textord");u=Mn[Number(h.text)]}}else d=kt(d,"textord"),u=Mn[Number(d.text)];return{type:"genfrac",mode:o.mode,numer:r,denom:i,continued:!1,hasBarLine:n,barSize:l,leftDelim:a,rightDelim:s,size:u}},htmlBuilder:Nn,mathmlBuilder:Fn}),We({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var n=e.parser,o=(e.funcName,e.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:kt(t[0],"size").value,token:o}}}),We({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser,o=(e.funcName,t[0]),r=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(kt(t[1],"infix").size),i=t[2],a=r.number>0;return{type:"genfrac",mode:n.mode,numer:o,denom:i,continued:!1,hasBarLine:a,barSize:r,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Nn,mathmlBuilder:Fn});var Ln=function(e,t){var n,o,r=t.style;"supsub"===e.type?(n=e.sup?at(e.sup,t.havingStyle(r.sup()),t):at(e.sub,t.havingStyle(r.sub()),t),o=kt(e.base,"horizBrace")):o=kt(e,"horizBrace");var i,a=at(o.base,t.havingBaseStyle(y.DISPLAY)),s=Ot(o,t);if(o.isOver?(i=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=Ue.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var c=Ue.makeSpan(["mord",o.isOver?"mover":"munder"],[i],t);i=o.isOver?Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:n}]},t):Ue.makeVList({positionType:"bottom",positionData:c.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:c}]},t)}return Ue.makeSpan(["mord",o.isOver?"mover":"munder"],[i],t)};We({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var n=e.parser,o=e.funcName;return{type:"horizBrace",mode:n.mode,label:o,isOver:/^\\over/.test(o),base:t[0]}},htmlBuilder:Ln,mathmlBuilder:function(e,t){var n=xt(e.label);return new ht.MathNode(e.isOver?"mover":"munder",[bt(e.base,t),n])}}),We({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,o=t[1],r=kt(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:n.mode,href:r,body:$e(o)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=tt(e.body,t,!1);return Ue.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=_t(e.body,t);return n instanceof ut||(n=new ut("mrow",[n])),n.setAttribute("href",e.href),n}}),We({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,o=kt(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:o}))return n.formatUnsupportedCmd("\\url");for(var r=[],i=0;i<o.length;i++){var a=o[i];"~"===a&&(a="\\textasciitilde"),r.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:n.mode,font:"\\texttt",body:r};return{type:"href",mode:n.mode,href:o,body:$e(s)}}}),We({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:function(e,t){var n,o=e.parser,r=e.funcName,i=(e.token,kt(t[0],"raw").string),s=t[1];o.settings.strict&&o.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var c={};switch(r){case"\\htmlClass":c.class=i,n={command:"\\htmlClass",class:i};break;case"\\htmlId":c.id=i,n={command:"\\htmlId",id:i};break;case"\\htmlStyle":c.style=i,n={command:"\\htmlStyle",style:i};break;case"\\htmlData":for(var l=i.split(","),u=0;u<l.length;u++){var d=l[u].split("=");if(2!==d.length)throw new a("Error parsing key-value for \\htmlData");c["data-"+d[0].trim()]=d[1].trim()}n={command:"\\htmlData",attributes:c};break;default:throw new Error("Unrecognized html command")}return o.settings.isTrusted(n)?{type:"html",mode:o.mode,attributes:c,body:$e(s)}:o.formatUnsupportedCmd(r)},htmlBuilder:function(e,t){var n=tt(e.body,t,!1),o=["enclosing"];e.attributes.class&&o.push.apply(o,e.attributes.class.trim().split(/\s+/));var r=Ue.makeSpan(o,n,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&r.setAttribute(i,e.attributes[i]);return r},mathmlBuilder:function(e,t){return _t(e.body,t)}}),We({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(e,t){return{type:"htmlmathml",mode:e.parser.mode,html:$e(t[0]),mathml:$e(t[1])}},htmlBuilder:function(e,t){var n=tt(e.html,t,!1);return Ue.makeFragment(n)},mathmlBuilder:function(e,t){return _t(e.mathml,t)}});var Un=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new a("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!xe(n))throw new a("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};We({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(e,t,n){var o=e.parser,r={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},c="";if(n[0])for(var l=kt(n[0],"raw").string.split(","),u=0;u<l.length;u++){var d=l[u].split("=");if(2===d.length){var h=d[1].trim();switch(d[0].trim()){case"alt":c=h;break;case"width":r=Un(h);break;case"height":i=Un(h);break;case"totalheight":s=Un(h);break;default:throw new a("Invalid key: '"+d[0]+"' in \\includegraphics.")}}}var p=kt(t[0],"url").url;return""===c&&(c=(c=(c=p).replace(/^.*[\\/]/,"")).substring(0,c.lastIndexOf("."))),o.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:o.mode,alt:c,width:r,height:i,totalheight:s,src:p}:o.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(e,t){var n=Oe(e.height,t),o=0;e.totalheight.number>0&&(o=Oe(e.totalheight,t)-n,o=Number(o.toFixed(2)));var r=0;e.width.number>0&&(r=Oe(e.width,t));var i={height:n+o+"em"};r>0&&(i.width=r+"em"),o>0&&(i.verticalAlign=-o+"em");var a=new N(e.src,e.alt,i);return a.height=n,a.depth=o,a},mathmlBuilder:function(e,t){var n=new ht.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var o=Oe(e.height,t),r=0;if(e.totalheight.number>0&&(r=(r=Oe(e.totalheight,t)-o).toFixed(2),n.setAttribute("valign","-"+r+"em")),n.setAttribute("height",o+r+"em"),e.width.number>0){var i=Oe(e.width,t);n.setAttribute("width",i+"em")}return n.setAttribute("src",e.src),n}}),We({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t){var n=e.parser,o=e.funcName,r=kt(t[0],"size");if(n.settings.strict){var i="m"===o[1],a="mu"===r.value.unit;i?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" supports only mu units, not "+r.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:r.value}},htmlBuilder:function(e,t){return Ue.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=Oe(e.dimension,t);return new ht.SpaceNode(n)}}),We({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,o=e.funcName,r=t[0];return{type:"lap",mode:n.mode,alignment:o.slice(5),body:r}},htmlBuilder:function(e,t){var n;"clap"===e.alignment?(n=Ue.makeSpan([],[at(e.body,t)]),n=Ue.makeSpan(["inner"],[n],t)):n=Ue.makeSpan(["inner"],[at(e.body,t)]);var o=Ue.makeSpan(["fix"],[]),r=Ue.makeSpan([e.alignment],[n,o],t),i=Ue.makeSpan(["strut"]);return i.style.height=r.height+r.depth+"em",i.style.verticalAlign=-r.depth+"em",r.children.unshift(i),r=Ue.makeSpan(["thinbox"],[r],t),Ue.makeSpan(["mord","vbox"],[r],t)},mathmlBuilder:function(e,t){var n=new ht.MathNode("mpadded",[bt(e.body,t)]);if("rlap"!==e.alignment){var o="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",o+"width")}return n.setAttribute("width","0px"),n}}),We({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=e.funcName,o=e.parser,r=o.mode;o.switchMode("math");var i="\\("===n?"\\)":"$",a=o.parseExpression(!1,i);return o.expect(i),o.switchMode(r),{type:"styling",mode:o.mode,style:"text",body:a}}}),We({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new a("Mismatched "+e.funcName)}});var Bn=function(e,t){switch(t.style.size){case y.DISPLAY.size:return e.display;case y.TEXT.size:return e.text;case y.SCRIPT.size:return e.script;case y.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};We({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:$e(t[0]),text:$e(t[1]),script:$e(t[2]),scriptscript:$e(t[3])}},htmlBuilder:function(e,t){var n=Bn(e,t),o=tt(n,t,!1);return Ue.makeFragment(o)},mathmlBuilder:function(e,t){var n=Bn(e,t);return _t(n,t)}});var jn=function(e,t,n,o,r,i,a){var s,c,l;if(e=Ue.makeSpan([],[e]),t){var u=at(t,o.havingStyle(r.sup()),o);c={elem:u,kern:Math.max(o.fontMetrics().bigOpSpacing1,o.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=at(n,o.havingStyle(r.sub()),o);s={elem:d,kern:Math.max(o.fontMetrics().bigOpSpacing2,o.fontMetrics().bigOpSpacing4-d.height)}}if(c&&s){var h=o.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;l=Ue.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:o.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-i+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:i+"em"},{type:"kern",size:o.fontMetrics().bigOpSpacing5}]},o)}else if(s){var p=e.height-a;l=Ue.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:o.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-i+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e}]},o)}else{if(!c)return e;var m=e.depth+a;l=Ue.makeVList({positionType:"bottom",positionData:m,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:i+"em"},{type:"kern",size:o.fontMetrics().bigOpSpacing5}]},o)}return Ue.makeSpan(["mop","op-limits"],[l],o)},Gn=["\\smallint"],qn=function(e,t){var n,o,r,i=!1;"supsub"===e.type?(n=e.sup,o=e.sub,r=kt(e.base,"op"),i=!0):r=kt(e,"op");var a,s=t.style,c=!1;if(s.size===y.DISPLAY.size&&r.symbol&&!d.contains(Gn,r.name)&&(c=!0),r.symbol){var l=c?"Size2-Regular":"Size1-Regular",u="";if("\\oiint"!==r.name&&"\\oiiint"!==r.name||(u=r.name.substr(1),r.name="oiint"===u?"\\iint":"\\iiint"),a=Ue.makeSymbol(r.name,l,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),u.length>0){var h=a.italic,p=Ue.staticSvg(u+"Size"+(c?"2":"1"),t);a=Ue.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:p,shift:c?.08:0}]},t),r.name="\\"+u,a.classes.unshift("mop"),a.italic=h}}else if(r.body){var m=tt(r.body,t,!0);1===m.length&&m[0]instanceof M?(a=m[0]).classes[0]="mop":a=Ue.makeSpan(["mop"],Ue.tryCombineChars(m),t)}else{for(var g=[],f=1;f<r.name.length;f++)g.push(Ue.mathsym(r.name[f],r.mode,t));a=Ue.makeSpan(["mop"],g,t)}var _=0,b=0;return(a instanceof M||"\\oiint"===r.name||"\\oiiint"===r.name)&&!r.suppressBaseShift&&(_=(a.height-a.depth)/2-t.fontMetrics().axisHeight,b=a.italic),i?jn(a,n,o,t,s,b,_):(_&&(a.style.position="relative",a.style.top=_+"em"),a)},Hn=function(e,t){var n;if(e.symbol)n=new ut("mo",[pt(e.name,e.mode)]),d.contains(Gn,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ut("mo",ft(e.body,t));else{n=new ut("mi",[new dt(e.name.slice(1))]);var o=new ut("mo",[pt("","text")]);n=e.parentIsSupSub?new ut("mo",[n,o]):lt([n,o])}return n},Vn={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","":"\\bigvee","⋂":"\\bigcap","":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};We({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","","⋂","","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:function(e,t){var n=e.parser,o=e.funcName;return 1===o.length&&(o=Vn[o]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:qn,mathmlBuilder:Hn}),We({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(e,t){var n=e.parser,o=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:$e(o)}},htmlBuilder:qn,mathmlBuilder:Hn});var zn={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};We({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:qn,mathmlBuilder:Hn}),We({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:qn,mathmlBuilder:Hn}),We({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return 1===n.length&&(n=zn[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:qn,mathmlBuilder:Hn});var Kn=function(e,t){var n,o,r,i,a=!1;if("supsub"===e.type?(n=e.sup,o=e.sub,r=kt(e.base,"operatorname"),a=!0):r=kt(e,"operatorname"),r.body.length>0){for(var s=r.body.map((function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),c=tt(s,t.withFont("mathrm"),!0),l=0;l<c.length;l++){var u=c[l];u instanceof M&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=Ue.makeSpan(["mop"],c,t)}else i=Ue.makeSpan(["mop"],[],t);return a?jn(i,n,o,t,t.style,0,0):i};function Wn(e,t,n){for(var o=tt(e,t,!1),r=t.sizeMultiplier/n.sizeMultiplier,i=0;i<o.length;i++){var a=o[i].classes.indexOf("sizing");a<0?Array.prototype.push.apply(o[i].classes,t.sizingClasses(n)):o[i].classes[a+1]==="reset-size"+t.size&&(o[i].classes[a+1]="reset-size"+n.size),o[i].height*=r,o[i].depth*=r}return Ue.makeFragment(o)}We({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(e,t){var n=e.parser,o=e.funcName,r=t[0];return{type:"operatorname",mode:n.mode,body:$e(r),alwaysHandleSupSub:"\\operatorname*"===o,limits:!1,parentIsSupSub:!1}},htmlBuilder:Kn,mathmlBuilder:function(e,t){for(var n=ft(e.body,t.withFont("mathrm")),o=!0,r=0;r<n.length;r++){var i=n[r];if(i instanceof ht.SpaceNode);else if(i instanceof ht.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var a=i.children[0];1===i.children.length&&a instanceof ht.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):o=!1;break;default:o=!1}else o=!1}if(o){var s=n.map((function(e){return e.toText()})).join("");n=[new ht.TextNode(s)]}var c=new ht.MathNode("mi",n);c.setAttribute("mathvariant","normal");var l=new ht.MathNode("mo",[pt("","text")]);return e.parentIsSupSub?new ht.MathNode("mo",[c,l]):ht.newDocumentFragment([c,l])}}),Ye({type:"ordgroup",htmlBuilder:function(e,t){return e.semisimple?Ue.makeFragment(tt(e.body,t,!1)):Ue.makeSpan(["mord"],tt(e.body,t,!0),t)},mathmlBuilder:function(e,t){return _t(e.body,t,!0)}}),We({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(e,t){var n=e.parser,o=t[0];return{type:"overline",mode:n.mode,body:o}},htmlBuilder:function(e,t){var n=at(e.body,t.havingCrampedStyle()),o=Ue.makeLineSpan("overline-line",t),r=t.fontMetrics().defaultRuleThickness,i=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*r},{type:"elem",elem:o},{type:"kern",size:r}]},t);return Ue.makeSpan(["mord","overline"],[i],t)},mathmlBuilder:function(e,t){var n=new ht.MathNode("mo",[new ht.TextNode("‾")]);n.setAttribute("stretchy","true");var o=new ht.MathNode("mover",[bt(e.body,t),n]);return o.setAttribute("accent","true"),o}}),We({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,o=t[0];return{type:"phantom",mode:n.mode,body:$e(o)}},htmlBuilder:function(e,t){var n=tt(e.body,t.withPhantom(),!1);return Ue.makeFragment(n)},mathmlBuilder:function(e,t){var n=ft(e.body,t);return new ht.MathNode("mphantom",n)}}),We({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,o=t[0];return{type:"hphantom",mode:n.mode,body:o}},htmlBuilder:function(e,t){var n=Ue.makeSpan([],[at(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var o=0;o<n.children.length;o++)n.children[o].height=0,n.children[o].depth=0;return n=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),Ue.makeSpan(["mord"],[n],t)},mathmlBuilder:function(e,t){var n=ft($e(e.body),t),o=new ht.MathNode("mphantom",n),r=new ht.MathNode("mpadded",[o]);return r.setAttribute("height","0px"),r.setAttribute("depth","0px"),r}}),We({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,o=t[0];return{type:"vphantom",mode:n.mode,body:o}},htmlBuilder:function(e,t){var n=Ue.makeSpan(["inner"],[at(e.body,t.withPhantom())]),o=Ue.makeSpan(["fix"],[]);return Ue.makeSpan(["mord","rlap"],[n,o],t)},mathmlBuilder:function(e,t){var n=ft($e(e.body),t),o=new ht.MathNode("mphantom",n),r=new ht.MathNode("mpadded",[o]);return r.setAttribute("width","0px"),r}}),We({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(e,t){var n=e.parser,o=kt(t[0],"size").value,r=t[1];return{type:"raisebox",mode:n.mode,dy:o,body:r}},htmlBuilder:function(e,t){var n=at(e.body,t),o=Oe(e.dy,t);return Ue.makeVList({positionType:"shift",positionData:-o,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(e,t){var n=new ht.MathNode("mpadded",[bt(e.body,t)]),o=e.dy.number+e.dy.unit;return n.setAttribute("voffset",o),n}}),We({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(e,t,n){var o=e.parser,r=n[0],i=kt(t[0],"size"),a=kt(t[1],"size");return{type:"rule",mode:o.mode,shift:r&&kt(r,"size").value,width:i.value,height:a.value}},htmlBuilder:function(e,t){var n=Ue.makeSpan(["mord","rule"],[],t),o=Oe(e.width,t),r=Oe(e.height,t),i=e.shift?Oe(e.shift,t):0;return n.style.borderRightWidth=o+"em",n.style.borderTopWidth=r+"em",n.style.bottom=i+"em",n.width=o,n.height=r+i,n.depth=-i,n.maxFontSize=1.125*r*t.sizeMultiplier,n},mathmlBuilder:function(e,t){var n=Oe(e.width,t),o=Oe(e.height,t),r=e.shift?Oe(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new ht.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",n+"em"),a.setAttribute("height",o+"em");var s=new ht.MathNode("mpadded",[a]);return r>=0?s.setAttribute("height","+"+r+"em"):(s.setAttribute("height",r+"em"),s.setAttribute("depth","+"+-r+"em")),s.setAttribute("voffset",r+"em"),s}});var Yn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];We({type:"sizing",names:Yn,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,o=e.funcName,r=e.parser,i=r.parseExpression(!1,n);return{type:"sizing",mode:r.mode,size:Yn.indexOf(o)+1,body:i}},htmlBuilder:function(e,t){var n=t.havingSize(e.size);return Wn(e.body,n,t)},mathmlBuilder:function(e,t){var n=t.havingSize(e.size),o=ft(e.body,n),r=new ht.MathNode("mstyle",o);return r.setAttribute("mathsize",n.sizeMultiplier+"em"),r}}),We({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var o=e.parser,r=!1,i=!1,a=n[0]&&kt(n[0],"ordgroup");if(a)for(var s="",c=0;c<a.body.length;++c)if("t"===(s=a.body[c].text))r=!0;else{if("b"!==s){r=!1,i=!1;break}i=!0}else r=!0,i=!0;var l=t[0];return{type:"smash",mode:o.mode,body:l,smashHeight:r,smashDepth:i}},htmlBuilder:function(e,t){var n=Ue.makeSpan([],[at(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var o=0;o<n.children.length;o++)n.children[o].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].depth=0;var i=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return Ue.makeSpan(["mord"],[i],t)},mathmlBuilder:function(e,t){var n=new ht.MathNode("mpadded",[bt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),We({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var o=e.parser,r=n[0],i=t[0];return{type:"sqrt",mode:o.mode,body:i,index:r}},htmlBuilder:function(e,t){var n=at(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=Ue.wrapFragment(n,t);var o=t.fontMetrics().defaultRuleThickness,r=o;t.style.id<y.TEXT.id&&(r=t.fontMetrics().xHeight);var i=o+r/4,a=n.height+n.depth+i+o,s=rn(a,t),c=s.span,l=s.ruleWidth,u=s.advanceWidth,d=c.height-l;d>n.height+n.depth+i&&(i=(i+d-n.height-n.depth)/2);var h=c.height-n.height-i-l;n.style.paddingLeft=u+"em";var p=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:c},{type:"kern",size:l}]},t);if(e.index){var m=t.havingStyle(y.SCRIPTSCRIPT),g=at(e.index,m,t),f=.6*(p.height-p.depth),_=Ue.makeVList({positionType:"shift",positionData:-f,children:[{type:"elem",elem:g}]},t),b=Ue.makeSpan(["root"],[_]);return Ue.makeSpan(["mord","sqrt"],[b,p],t)}return Ue.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder:function(e,t){var n=e.body,o=e.index;return o?new ht.MathNode("mroot",[bt(n,t),bt(o,t)]):new ht.MathNode("msqrt",[bt(n,t)])}});var $n={display:y.DISPLAY,text:y.TEXT,script:y.SCRIPT,scriptscript:y.SCRIPTSCRIPT};We({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,o=e.funcName,r=e.parser,i=r.parseExpression(!0,n),a=o.slice(1,o.length-5);return{type:"styling",mode:r.mode,style:a,body:i}},htmlBuilder:function(e,t){var n=$n[e.style],o=t.havingStyle(n).withFont("");return Wn(e.body,o,t)},mathmlBuilder:function(e,t){var n=$n[e.style],o=t.havingStyle(n),r=ft(e.body,o),i=new ht.MathNode("mstyle",r),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}}),Ye({type:"supsub",htmlBuilder:function(e,t){var n=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===y.DISPLAY.size||n.alwaysHandleSupSub)?qn:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===y.DISPLAY.size||n.limits)?Kn:null:"accent"===n.type?d.isCharacterBox(n.base)?It:null:"horizBrace"===n.type&&!e.sub===n.isOver?Ln:null:null}(e,t);if(n)return n(e,t);var o,r,i,a=e.base,s=e.sup,c=e.sub,l=at(a,t),u=t.fontMetrics(),h=0,p=0,m=a&&d.isCharacterBox(a);if(s){var g=t.havingStyle(t.style.sup());o=at(s,g,t),m||(h=l.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(c){var f=t.havingStyle(t.style.sub());r=at(c,f,t),m||(p=l.depth+f.fontMetrics().subDrop*f.sizeMultiplier/t.sizeMultiplier)}i=t.style===y.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var _,b=t.sizeMultiplier,v=.5/u.ptPerEm/b+"em",E=null;if(r){var S=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(l instanceof M||S)&&(E=-l.italic+"em")}if(o&&r){h=Math.max(h,i,o.depth+.25*u.xHeight),p=Math.max(p,u.sub2);var T=4*u.defaultRuleThickness;if(h-o.depth-(r.height-p)<T){p=T-(h-o.depth)+r.height;var w=.8*u.xHeight-(h-o.depth);w>0&&(h+=w,p-=w)}var C=[{type:"elem",elem:r,shift:p,marginRight:v,marginLeft:E},{type:"elem",elem:o,shift:-h,marginRight:v}];_=Ue.makeVList({positionType:"individualShift",children:C},t)}else if(r){p=Math.max(p,u.sub1,r.height-.8*u.xHeight);var x=[{type:"elem",elem:r,marginLeft:E,marginRight:v}];_=Ue.makeVList({positionType:"shift",positionData:p,children:x},t)}else{if(!o)throw new Error("supsub must have either sup or sub.");h=Math.max(h,i,o.depth+.25*u.xHeight),_=Ue.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:o,marginRight:v}]},t)}var O=rt(l,"right")||"mord";return Ue.makeSpan([O],[l,Ue.makeSpan(["msupsub"],[_])],t)},mathmlBuilder:function(e,t){var n,o=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(o=!0,n=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var r,i=[bt(e.base,t)];if(e.sub&&i.push(bt(e.sub,t)),e.sup&&i.push(bt(e.sup,t)),o)r=n?"mover":"munder";else if(e.sub)if(e.sup){var a=e.base;r=a&&"op"===a.type&&a.limits&&t.style===y.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===y.DISPLAY||a.limits)?"munderover":"msubsup"}else{var s=e.base;r=s&&"op"===s.type&&s.limits&&(t.style===y.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===y.DISPLAY)?"munder":"msub"}else{var c=e.base;r=c&&"op"===c.type&&c.limits&&(t.style===y.DISPLAY||c.alwaysHandleSupSub)||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||t.style===y.DISPLAY)?"mover":"msup"}return new ht.MathNode(r,i)}}),Ye({type:"atom",htmlBuilder:function(e,t){return Ue.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new ht.MathNode("mo",[pt(e.text,e.mode)]);if("bin"===e.family){var o=gt(e,t);"bold-italic"===o&&n.setAttribute("mathvariant",o)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var Qn={mi:"italic",mn:"normal",mtext:"normal"};Ye({type:"mathord",htmlBuilder:function(e,t){return Ue.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new ht.MathNode("mi",[pt(e.text,e.mode,t)]),o=gt(e,t)||"italic";return o!==Qn[n.type]&&n.setAttribute("mathvariant",o),n}}),Ye({type:"textord",htmlBuilder:function(e,t){return Ue.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,o=pt(e.text,e.mode,t),r=gt(e,t)||"normal";return n="text"===e.mode?new ht.MathNode("mtext",[o]):/[0-9]/.test(e.text)?new ht.MathNode("mn",[o]):"\\prime"===e.text?new ht.MathNode("mo",[o]):new ht.MathNode("mi",[o]),r!==Qn[n.type]&&n.setAttribute("mathvariant",r),n}});var Xn={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Jn={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ye({type:"spacing",htmlBuilder:function(e,t){if(Jn.hasOwnProperty(e.text)){var n=Jn[e.text].className||"";if("text"===e.mode){var o=Ue.makeOrd(e,t,"textord");return o.classes.push(n),o}return Ue.makeSpan(["mspace",n],[Ue.mathsym(e.text,e.mode,t)],t)}if(Xn.hasOwnProperty(e.text))return Ue.makeSpan(["mspace",Xn[e.text]],[],t);throw new a('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!Jn.hasOwnProperty(e.text)){if(Xn.hasOwnProperty(e.text))return new ht.MathNode("mspace");throw new a('Unknown type of space "'+e.text+'"')}return new ht.MathNode("mtext",[new ht.TextNode(" ")])}});var Zn=function(){var e=new ht.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Ye({type:"tag",mathmlBuilder:function(e,t){var n=new ht.MathNode("mtable",[new ht.MathNode("mtr",[Zn(),new ht.MathNode("mtd",[_t(e.body,t)]),Zn(),new ht.MathNode("mtd",[_t(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var eo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},to={"\\textbf":"textbf","\\textmd":"textmd"},no={"\\textit":"textit","\\textup":"textup"},oo=function(e,t){var n=e.font;return n?eo[n]?t.withTextFontFamily(eo[n]):to[n]?t.withTextFontWeight(to[n]):t.withTextFontShape(no[n]):t};We({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(e,t){var n=e.parser,o=e.funcName,r=t[0];return{type:"text",mode:n.mode,body:$e(r),font:o}},htmlBuilder:function(e,t){var n=oo(e,t),o=tt(e.body,n,!0);return Ue.makeSpan(["mord","text"],Ue.tryCombineChars(o),n)},mathmlBuilder:function(e,t){var n=oo(e,t);return _t(e.body,n)}}),We({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var n=at(e.body,t),o=Ue.makeLineSpan("underline-line",t),r=t.fontMetrics().defaultRuleThickness,i=Ue.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:r},{type:"elem",elem:o},{type:"kern",size:3*r},{type:"elem",elem:n}]},t);return Ue.makeSpan(["mord","underline"],[i],t)},mathmlBuilder:function(e,t){var n=new ht.MathNode("mo",[new ht.TextNode("‾")]);n.setAttribute("stretchy","true");var o=new ht.MathNode("munder",[bt(e.body,t),n]);return o.setAttribute("accentunder","true"),o}}),We({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new a("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=ro(e),o=[],r=t.havingStyle(t.style.text()),i=0;i<n.length;i++){var a=n[i];"~"===a&&(a="\\textasciitilde"),o.push(Ue.makeSymbol(a,"Typewriter-Regular",e.mode,r,["mord","texttt"]))}return Ue.makeSpan(["mord","text"].concat(r.sizingClasses(t)),Ue.tryCombineChars(o),r)},mathmlBuilder:function(e,t){var n=new ht.TextNode(ro(e)),o=new ht.MathNode("mtext",[n]);return o.setAttribute("mathvariant","monospace"),o}});var ro=function(e){return e.body.replace(/ /g,e.star?"␣":" ")},io=Ve,ao=new RegExp("^(\\\\[a-zA-Z@]+)[ \r\n\t]*$"),so=new RegExp("[̀-ͯ]+$"),co=function(){function e(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|([!-\\[\\]-‧‪-퟿豈-￿][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*|\\\\[a-zA-Z@]+[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14}}var t=e.prototype;return t.setCatcode=function(e,t){this.catcodes[e]=t},t.lex=function(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new r("EOF",new o(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new a("Unexpected character: '"+e[t]+"'",new r(e[t],new o(this,t,t+1)));var i=n[2]||" ";if(14===this.catcodes[i]){var s=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===s?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}var c=i.match(ao);return c&&(i=c[1]),new r(i,new o(this,t,this.tokenRegex.lastIndex))},e}(),lo=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}var t=e.prototype;return t.beginGroup=function(){this.undefStack.push({})},t.endGroup=function(){if(0===this.undefStack.length)throw new a("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,n){if(void 0===n&&(n=!1),n){for(var o=0;o<this.undefStack.length;o++)delete this.undefStack[o][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var r=this.undefStack[this.undefStack.length-1];r&&!r.hasOwnProperty(e)&&(r[e]=this.current[e])}this.current[e]=t},e}(),uo={},ho=uo;function po(e,t){uo[e]=t}po("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),po("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),po("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),po("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),po("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),po("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),po("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var mo={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};po("\\char",(function(e){var t,n=e.popToken(),o="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])o=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new a("\\char` missing argument");o=n.text.charCodeAt(0)}else t=10;if(t){if(null==(o=mo[n.text])||o>=t)throw new a("Invalid base-"+t+" digit "+n.text);for(var r;null!=(r=mo[e.future().text])&&r<t;)o*=t,o+=r,e.popToken()}return"\\@char{"+o+"}"}));var go=function(e,t,n){var o=e.consumeArgs(1)[0];if(1!==o.length)throw new a("\\newcommand's first argument must be a macro name");var r=o[0].text,i=e.isDefined(r);if(i&&!t)throw new a("\\newcommand{"+r+"} attempting to redefine "+r+"; use \\renewcommand");if(!i&&!n)throw new a("\\renewcommand{"+r+"} when command "+r+" does not yet exist; use \\newcommand");var s=0;if(1===(o=e.consumeArgs(1)[0]).length&&"["===o[0].text){for(var c="",l=e.expandNextToken();"]"!==l.text&&"EOF"!==l.text;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new a("Invalid number of arguments: "+c);s=parseInt(c),o=e.consumeArgs(1)[0]}return e.macros.set(r,{tokens:o,numArgs:s}),""};po("\\newcommand",(function(e){return go(e,!1,!0)})),po("\\renewcommand",(function(e){return go(e,!0,!1)})),po("\\providecommand",(function(e){return go(e,!0,!0)})),po("\\message",(function(e){var t=e.consumeArgs(1)[0];return console.log(t.reverse().map((function(e){return e.text})).join("")),""})),po("\\errmessage",(function(e){var t=e.consumeArgs(1)[0];return console.error(t.reverse().map((function(e){return e.text})).join("")),""})),po("\\show",(function(e){var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),io[n],Y.math[n],Y.text[n]),""})),po("\\bgroup","{"),po("\\egroup","}"),po("\\lq","`"),po("\\rq","'"),po("\\aa","\\r a"),po("\\AA","\\r A"),po("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),po("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),po("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),po("","\\mathscr{B}"),po("","\\mathscr{E}"),po("","\\mathscr{F}"),po("","\\mathscr{H}"),po("","\\mathscr{I}"),po("","\\mathscr{L}"),po("","\\mathscr{M}"),po("","\\mathscr{R}"),po("","\\mathfrak{C}"),po("","\\mathfrak{H}"),po("","\\mathfrak{Z}"),po("\\Bbbk","\\Bbb{k}"),po("·","\\cdotp"),po("\\llap","\\mathllap{\\textrm{#1}}"),po("\\rlap","\\mathrlap{\\textrm{#1}}"),po("\\clap","\\mathclap{\\textrm{#1}}"),po("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),po("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),po("\\ne","\\neq"),po("≠","\\neq"),po("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),po("∉","\\notin"),po("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),po("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),po("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),po("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),po("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),po("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),po("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),po("⟂","\\perp"),po("‼","\\mathclose{!\\mkern-0.8mu!}"),po("∌","\\notni"),po("⌜","\\ulcorner"),po("⌝","\\urcorner"),po("⌞","\\llcorner"),po("⌟","\\lrcorner"),po("©","\\copyright"),po("®","\\textregistered"),po("","\\textregistered"),po("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),po("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),po("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),po("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),po("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),po("⋮","\\vdots"),po("\\varGamma","\\mathit{\\Gamma}"),po("\\varDelta","\\mathit{\\Delta}"),po("\\varTheta","\\mathit{\\Theta}"),po("\\varLambda","\\mathit{\\Lambda}"),po("\\varXi","\\mathit{\\Xi}"),po("\\varPi","\\mathit{\\Pi}"),po("\\varSigma","\\mathit{\\Sigma}"),po("\\varUpsilon","\\mathit{\\Upsilon}"),po("\\varPhi","\\mathit{\\Phi}"),po("\\varPsi","\\mathit{\\Psi}"),po("\\varOmega","\\mathit{\\Omega}"),po("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),po("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),po("\\boxed","\\fbox{$\\displaystyle{#1}$}"),po("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),po("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),po("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var fo={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};po("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in fo?t=fo[n]:("\\not"===n.substr(0,4)||n in Y.math&&d.contains(["bin","rel"],Y.math[n].group))&&(t="\\dotsb"),t}));var _o={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};po("\\dotso",(function(e){return e.future().text in _o?"\\ldots\\,":"\\ldots"})),po("\\dotsc",(function(e){var t=e.future().text;return t in _o&&","!==t?"\\ldots\\,":"\\ldots"})),po("\\cdots",(function(e){return e.future().text in _o?"\\@cdots\\,":"\\@cdots"})),po("\\dotsb","\\cdots"),po("\\dotsm","\\cdots"),po("\\dotsi","\\!\\cdots"),po("\\dotsx","\\ldots\\,"),po("\\DOTSI","\\relax"),po("\\DOTSB","\\relax"),po("\\DOTSX","\\relax"),po("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),po("\\,","\\tmspace+{3mu}{.1667em}"),po("\\thinspace","\\,"),po("\\>","\\mskip{4mu}"),po("\\:","\\tmspace+{4mu}{.2222em}"),po("\\medspace","\\:"),po("\\;","\\tmspace+{5mu}{.2777em}"),po("\\thickspace","\\;"),po("\\!","\\tmspace-{3mu}{.1667em}"),po("\\negthinspace","\\!"),po("\\negmedspace","\\tmspace-{4mu}{.2222em}"),po("\\negthickspace","\\tmspace-{5mu}{.277em}"),po("\\enspace","\\kern.5em "),po("\\enskip","\\hskip.5em\\relax"),po("\\quad","\\hskip1em\\relax"),po("\\qquad","\\hskip2em\\relax"),po("\\tag","\\@ifstar\\tag@literal\\tag@paren"),po("\\tag@paren","\\tag@literal{({#1})}"),po("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new a("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),po("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),po("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),po("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),po("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),po("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),po("\\\\","\\newline"),po("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var bo=j["Main-Regular"]["T".charCodeAt(0)][1]-.7*j["Main-Regular"]["A".charCodeAt(0)][1]+"em";po("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+bo+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),po("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+bo+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),po("\\hspace","\\@ifstar\\@hspacer\\@hspace"),po("\\@hspace","\\hskip #1\\relax"),po("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),po("\\ordinarycolon",":"),po("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),po("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),po("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),po("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),po("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),po("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),po("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),po("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),po("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),po("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),po("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),po("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),po("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),po("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),po("∷","\\dblcolon"),po("∹","\\eqcolon"),po("≔","\\coloneqq"),po("≕","\\eqqcolon"),po("⩴","\\Coloneqq"),po("\\ratio","\\vcentcolon"),po("\\coloncolon","\\dblcolon"),po("\\colonequals","\\coloneqq"),po("\\coloncolonequals","\\Coloneqq"),po("\\equalscolon","\\eqqcolon"),po("\\equalscoloncolon","\\Eqqcolon"),po("\\colonminus","\\coloneq"),po("\\coloncolonminus","\\Coloneq"),po("\\minuscolon","\\eqcolon"),po("\\minuscoloncolon","\\Eqcolon"),po("\\coloncolonapprox","\\Colonapprox"),po("\\coloncolonsim","\\Colonsim"),po("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),po("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),po("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),po("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),po("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),po("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),po("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),po("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),po("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),po("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),po("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),po("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),po("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),po("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),po("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),po("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),po("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),po("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),po("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),po("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),po("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),po("\\imath","\\html@mathml{\\@imath}{ı}"),po("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),po("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),po("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),po("⟦","\\llbracket"),po("⟧","\\rrbracket"),po("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),po("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),po("⦃","\\lBrace"),po("⦄","\\rBrace"),po("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),po("⦵","\\minuso"),po("\\darr","\\downarrow"),po("\\dArr","\\Downarrow"),po("\\Darr","\\Downarrow"),po("\\lang","\\langle"),po("\\rang","\\rangle"),po("\\uarr","\\uparrow"),po("\\uArr","\\Uparrow"),po("\\Uarr","\\Uparrow"),po("\\N","\\mathbb{N}"),po("\\R","\\mathbb{R}"),po("\\Z","\\mathbb{Z}"),po("\\alef","\\aleph"),po("\\alefsym","\\aleph"),po("\\Alpha","\\mathrm{A}"),po("\\Beta","\\mathrm{B}"),po("\\bull","\\bullet"),po("\\Chi","\\mathrm{X}"),po("\\clubs","\\clubsuit"),po("\\cnums","\\mathbb{C}"),po("\\Complex","\\mathbb{C}"),po("\\Dagger","\\ddagger"),po("\\diamonds","\\diamondsuit"),po("\\empty","\\emptyset"),po("\\Epsilon","\\mathrm{E}"),po("\\Eta","\\mathrm{H}"),po("\\exist","\\exists"),po("\\harr","\\leftrightarrow"),po("\\hArr","\\Leftrightarrow"),po("\\Harr","\\Leftrightarrow"),po("\\hearts","\\heartsuit"),po("\\image","\\Im"),po("\\infin","\\infty"),po("\\Iota","\\mathrm{I}"),po("\\isin","\\in"),po("\\Kappa","\\mathrm{K}"),po("\\larr","\\leftarrow"),po("\\lArr","\\Leftarrow"),po("\\Larr","\\Leftarrow"),po("\\lrarr","\\leftrightarrow"),po("\\lrArr","\\Leftrightarrow"),po("\\Lrarr","\\Leftrightarrow"),po("\\Mu","\\mathrm{M}"),po("\\natnums","\\mathbb{N}"),po("\\Nu","\\mathrm{N}"),po("\\Omicron","\\mathrm{O}"),po("\\plusmn","\\pm"),po("\\rarr","\\rightarrow"),po("\\rArr","\\Rightarrow"),po("\\Rarr","\\Rightarrow"),po("\\real","\\Re"),po("\\reals","\\mathbb{R}"),po("\\Reals","\\mathbb{R}"),po("\\Rho","\\mathrm{P}"),po("\\sdot","\\cdot"),po("\\sect","\\S"),po("\\spades","\\spadesuit"),po("\\sub","\\subset"),po("\\sube","\\subseteq"),po("\\supe","\\supseteq"),po("\\Tau","\\mathrm{T}"),po("\\thetasym","\\vartheta"),po("\\weierp","\\wp"),po("\\Zeta","\\mathrm{Z}"),po("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),po("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),po("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),po("\\bra","\\mathinner{\\langle{#1}|}"),po("\\ket","\\mathinner{|{#1}\\rangle}"),po("\\braket","\\mathinner{\\langle{#1}\\rangle}"),po("\\Bra","\\left\\langle#1\\right|"),po("\\Ket","\\left|#1\\right\\rangle"),po("\\blue","\\textcolor{##6495ed}{#1}"),po("\\orange","\\textcolor{##ffa500}{#1}"),po("\\pink","\\textcolor{##ff00af}{#1}"),po("\\red","\\textcolor{##df0030}{#1}"),po("\\green","\\textcolor{##28ae7b}{#1}"),po("\\gray","\\textcolor{gray}{#1}"),po("\\purple","\\textcolor{##9d38bd}{#1}"),po("\\blueA","\\textcolor{##ccfaff}{#1}"),po("\\blueB","\\textcolor{##80f6ff}{#1}"),po("\\blueC","\\textcolor{##63d9ea}{#1}"),po("\\blueD","\\textcolor{##11accd}{#1}"),po("\\blueE","\\textcolor{##0c7f99}{#1}"),po("\\tealA","\\textcolor{##94fff5}{#1}"),po("\\tealB","\\textcolor{##26edd5}{#1}"),po("\\tealC","\\textcolor{##01d1c1}{#1}"),po("\\tealD","\\textcolor{##01a995}{#1}"),po("\\tealE","\\textcolor{##208170}{#1}"),po("\\greenA","\\textcolor{##b6ffb0}{#1}"),po("\\greenB","\\textcolor{##8af281}{#1}"),po("\\greenC","\\textcolor{##74cf70}{#1}"),po("\\greenD","\\textcolor{##1fab54}{#1}"),po("\\greenE","\\textcolor{##0d923f}{#1}"),po("\\goldA","\\textcolor{##ffd0a9}{#1}"),po("\\goldB","\\textcolor{##ffbb71}{#1}"),po("\\goldC","\\textcolor{##ff9c39}{#1}"),po("\\goldD","\\textcolor{##e07d10}{#1}"),po("\\goldE","\\textcolor{##a75a05}{#1}"),po("\\redA","\\textcolor{##fca9a9}{#1}"),po("\\redB","\\textcolor{##ff8482}{#1}"),po("\\redC","\\textcolor{##f9685d}{#1}"),po("\\redD","\\textcolor{##e84d39}{#1}"),po("\\redE","\\textcolor{##bc2612}{#1}"),po("\\maroonA","\\textcolor{##ffbde0}{#1}"),po("\\maroonB","\\textcolor{##ff92c6}{#1}"),po("\\maroonC","\\textcolor{##ed5fa6}{#1}"),po("\\maroonD","\\textcolor{##ca337c}{#1}"),po("\\maroonE","\\textcolor{##9e034e}{#1}"),po("\\purpleA","\\textcolor{##ddd7ff}{#1}"),po("\\purpleB","\\textcolor{##c6b9fc}{#1}"),po("\\purpleC","\\textcolor{##aa87ff}{#1}"),po("\\purpleD","\\textcolor{##7854ab}{#1}"),po("\\purpleE","\\textcolor{##543b78}{#1}"),po("\\mintA","\\textcolor{##f5f9e8}{#1}"),po("\\mintB","\\textcolor{##edf2df}{#1}"),po("\\mintC","\\textcolor{##e0e5cc}{#1}"),po("\\grayA","\\textcolor{##f6f7f7}{#1}"),po("\\grayB","\\textcolor{##f0f1f2}{#1}"),po("\\grayC","\\textcolor{##e3e5e6}{#1}"),po("\\grayD","\\textcolor{##d6d8da}{#1}"),po("\\grayE","\\textcolor{##babec2}{#1}"),po("\\grayF","\\textcolor{##888d93}{#1}"),po("\\grayG","\\textcolor{##626569}{#1}"),po("\\grayH","\\textcolor{##3b3e40}{#1}"),po("\\grayI","\\textcolor{##21242c}{#1}"),po("\\kaBlue","\\textcolor{##314453}{#1}"),po("\\kaGreen","\\textcolor{##71B307}{#1}");var vo={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Eo=function(){function e(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new lo(ho,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new co(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArgs=function(e){for(var t=[],n=0;n<e;++n){this.consumeSpaces();var o=this.popToken();if("{"===o.text){for(var r=[],i=1;0!==i;){var s=this.popToken();if(r.push(s),"{"===s.text)++i;else if("}"===s.text)--i;else if("EOF"===s.text)throw new a("End of input in macro argument",o)}r.pop(),r.reverse(),t[n]=r}else{if("EOF"===o.text)throw new a("End of input expecting macro argument");t[n]=[o]}}return t},t.expandOnce=function(e){var t=this.popToken(),n=t.text,o=t.noexpand?null:this._getExpansion(n);if(null==o||e&&o.unexpandable){if(e&&null==o&&"\\"===n[0]&&!this.isDefined(n))throw new a("Undefined control sequence: "+n);return this.pushToken(t),t}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new a("Too many expansions: infinite loop or need to increase maxExpand setting");var r=o.tokens;if(o.numArgs)for(var i=this.consumeArgs(o.numArgs),s=(r=r.slice()).length-1;s>=0;--s){var c=r[s];if("#"===c.text){if(0===s)throw new a("Incomplete placeholder at end of macro body",c);if("#"===(c=r[--s]).text)r.splice(s+1,1);else{if(!/^[1-9]$/.test(c.text))throw new a("Not a valid argument number",c);var l;(l=r).splice.apply(l,[s,2].concat(i[+c.text-1]))}}}return this.pushTokens(r),r},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof r){if("\\relax"!==e.text&&!e.treatAsRelax)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){return this.macros.has(e)?this.expandTokens([new r(e)]):void 0},t.expandTokens=function(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;){var o=this.expandOnce(!0);o instanceof r&&(o.treatAsRelax&&(o.noexpand=!1,o.treatAsRelax=!1),t.push(this.stack.pop()))}return t},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;var n="function"==typeof t?t(this):t;if("string"==typeof n){var o=0;if(-1!==n.indexOf("#"))for(var r=n.replace(/##/g,"");-1!==r.indexOf("#"+(o+1));)++o;for(var i=new co(n,this.settings),a=[],s=i.lex();"EOF"!==s.text;)a.push(s),s=i.lex();return a.reverse(),{tokens:a,numArgs:o}}return n},t.isDefined=function(e){return this.macros.has(e)||io.hasOwnProperty(e)||Y.math.hasOwnProperty(e)||Y.text.hasOwnProperty(e)||vo.hasOwnProperty(e)},t.isExpandable=function(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:io.hasOwnProperty(e)},e}(),yo={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"}},So={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","č":"č","ĉ":"ĉ","ċ":"ċ","ď":"ď","ḋ":"ḋ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ĺ":"ĺ","ľ":"ľ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ď":"Ď","Ḋ":"Ḋ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ĺ":"Ĺ","Ľ":"Ľ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ť":"Ť","Ṫ":"Ṫ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},To=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Eo(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new a("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e},t.parseExpression=function(t,n){for(var o=[];;){"math"===this.mode&&this.consumeSpaces();var r=this.fetch();if(-1!==e.endOfExpression.indexOf(r.text))break;if(n&&r.text===n)break;if(t&&io[r.text]&&io[r.text].infix)break;var i=this.parseAtom(n);if(!i)break;"internal"!==i.type&&o.push(i)}return"text"===this.mode&&this.formLigatures(o),this.handleInfixNodes(o)},t.handleInfixNodes=function(e){for(var t,n=-1,o=0;o<e.length;o++)if("infix"===e[o].type){if(-1!==n)throw new a("only one infix operator per group",e[o].token);n=o,t=e[o].replaceWith}if(-1!==n&&t){var r,i,s=e.slice(0,n),c=e.slice(n+1);return r=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},i=1===c.length&&"ordgroup"===c[0].type?c[0]:{type:"ordgroup",mode:this.mode,body:c},["\\\\abovefrac"===t?this.callFunction(t,[r,e[n],i],[]):this.callFunction(t,[r,i],[])]}return e},t.handleSupSubscript=function(t){var n=this.fetch(),o=n.text;this.consume();var r=this.parseGroup(t,!1,e.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!r)throw new a("Expected group after '"+o+"'",n);return r},t.formatUnsupportedCmd=function(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var o={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[o]}},t.parseAtom=function(e){var t,n,o=this.parseGroup("atom",!1,null,e);if("text"===this.mode)return o;for(;;){this.consumeSpaces();var r=this.fetch();if("\\limits"===r.text||"\\nolimits"===r.text){if(o&&"op"===o.type){var i="\\limits"===r.text;o.limits=i,o.alwaysHandleSupSub=!0}else{if(!o||"operatorname"!==o.type||!o.alwaysHandleSupSub)throw new a("Limit controls must follow a math operator",r);var s="\\limits"===r.text;o.limits=s}this.consume()}else if("^"===r.text){if(t)throw new a("Double superscript",r);t=this.handleSupSubscript("superscript")}else if("_"===r.text){if(n)throw new a("Double subscript",r);n=this.handleSupSubscript("subscript")}else{if("'"!==r.text)break;if(t)throw new a("Double superscript",r);var c={type:"textord",mode:this.mode,text:"\\prime"},l=[c];for(this.consume();"'"===this.fetch().text;)l.push(c),this.consume();"^"===this.fetch().text&&l.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:l}}}return t||n?{type:"supsub",mode:this.mode,base:o,sup:t,sub:n}:o},t.parseFunction=function(e,t,n){var o=this.fetch(),r=o.text,i=io[r];if(!i)return null;if(this.consume(),null!=n&&i.greediness<=n)throw new a("Got function '"+r+"' with no arguments"+(t?" as "+t:""),o);if("text"===this.mode&&!i.allowedInText)throw new a("Can't use function '"+r+"' in text mode",o);if("math"===this.mode&&!1===i.allowedInMath)throw new a("Can't use function '"+r+"' in math mode",o);var s=this.parseArguments(r,i),c=s.args,l=s.optArgs;return this.callFunction(r,c,l,o,e)},t.callFunction=function(e,t,n,o,r){var i={funcName:e,parser:this,token:o,breakOnTokenText:r},s=io[e];if(s&&s.handler)return s.handler(i,t,n);throw new a("No function handler for "+e)},t.parseArguments=function(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var o=t.greediness,r=[],i=[],s=0;s<n;s++){var c=t.argTypes&&t.argTypes[s],l=s<t.numOptionalArgs,u=s>0&&!l||0===s&&!l&&"math"===this.mode,d=this.parseGroupOfType("argument to '"+e+"'",c,l,o,u);if(!d){if(l){i.push(null);continue}throw new a("Expected group after '"+e+"'",this.fetch())}(l?i:r).push(d)}return{args:r,optArgs:i}},t.parseGroupOfType=function(e,t,n,o,r){switch(t){case"color":return r&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return r&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,r);case"math":case"text":return this.parseGroup(e,n,o,void 0,t,r);case"hbox":var i=this.parseGroup(e,n,o,void 0,"text",r);return i?{type:"styling",mode:i.mode,body:[i],style:"text"}:i;case"raw":if(r&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var s=this.parseStringGroup("raw",n,!0);if(s)return{type:"raw",mode:"text",string:s.text};throw new a("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(e,n,o,void 0,void 0,r);default:throw new a("Unknown group type as "+e,this.fetch())}},t.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},t.parseStringGroup=function(e,t,n){var o=t?"[":"{",r=t?"]":"}",i=this.fetch();if(i.text!==o){if(t)return null;if(n&&"EOF"!==i.text&&/[^{}[\]]/.test(i.text))return this.consume(),i}var s=this.mode;this.mode="text",this.expect(o);for(var c,l="",u=this.fetch(),d=0,h=u;(c=this.fetch()).text!==r||n&&d>0;){switch(c.text){case"EOF":throw new a("Unexpected end of input in "+e,u.range(h,l));case o:d++;break;case r:d--}l+=(h=c).text,this.consume()}return this.expect(r),this.mode=s,u.range(h,l)},t.parseRegexGroup=function(e,t){var n=this.mode;this.mode="text";for(var o,r=this.fetch(),i=r,s="";"EOF"!==(o=this.fetch()).text&&e.test(s+o.text);)s+=(i=o).text,this.consume();if(""===s)throw new a("Invalid "+t+": '"+r.text+"'",r);return this.mode=n,r.range(i,s)},t.parseColorGroup=function(e){var t=this.parseStringGroup("color",e);if(!t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new a("Invalid color: '"+t.text+"'",t);var o=n[0];return/^[0-9a-f]{6}$/i.test(o)&&(o="#"+o),{type:"color-token",mode:this.mode,color:o}},t.parseSizeGroup=function(e){var t,n=!1;if(!(t=e||"{"===this.fetch().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!o)throw new a("Invalid size: '"+t.text+"'",t);var r={number:+(o[1]+o[2]),unit:o[3]};if(!xe(r))throw new a("Invalid unit: '"+r.unit+"'",t);return{type:"size",mode:this.mode,value:r,isBlank:n}},t.parseUrlGroup=function(e,t){this.gullet.lexer.setCatcode("%",13);var n=this.parseStringGroup("url",e,!0);if(this.gullet.lexer.setCatcode("%",14),!n)return null;var o=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:o}},t.parseGroup=function(t,n,r,i,s,c){var l=this.mode;s&&this.switchMode(s),c&&this.consumeSpaces();var u,d=this.fetch(),h=d.text;if(n?"["===h:"{"===h||"\\begingroup"===h){this.consume();var p=e.endOfGroup[h];this.gullet.beginGroup();var m=this.parseExpression(!1,p),g=this.fetch();this.expect(p),this.gullet.endGroup(),u={type:"ordgroup",mode:this.mode,loc:o.range(d,g),body:m,semisimple:"\\begingroup"===h||void 0}}else if(n)u=null;else if(null==(u=this.parseFunction(i,t,r)||this.parseSymbol())&&"\\"===h[0]&&!vo.hasOwnProperty(h)){if(this.settings.throwOnError)throw new a("Undefined control sequence: "+h,d);u=this.formatUnsupportedCmd(h),this.consume()}return s&&this.switchMode(l),u},t.formLigatures=function(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n],i=r.text;"-"===i&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:o.range(r,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:o.range(r,e[n+1]),text:"--"}),t-=1)),"'"!==i&&"`"!==i||e[n+1].text!==i||(e.splice(n,2,{type:"textord",mode:"text",loc:o.range(r,e[n+1]),text:i+i}),t-=1)}},t.parseSymbol=function(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r="*"===n.charAt(0);if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new a("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:r}}So.hasOwnProperty(t[0])&&!Y[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=So[t[0]]+t.substr(1));var i,s=so.exec(t);if(s&&("i"===(t=t.substring(0,s.index))?t="ı":"j"===t&&(t="ȷ")),Y[this.mode][t]){this.settings.strict&&"math"===this.mode&&"ÇÐÞçþ".indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var c,l=Y[this.mode][t].group,u=o.range(e);if(z.hasOwnProperty(l)){var d=l;c={type:"atom",mode:this.mode,family:d,loc:u,text:t}}else c={type:l,mode:this.mode,loc:u,text:t};i=c}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(w(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:o.range(e),text:t}}if(this.consume(),s)for(var h=0;h<s[0].length;h++){var p=s[0][h];if(!yo[p])throw new a("Unknown accent ' "+p+"'",e);var m=yo[p][this.mode];if(!m)throw new a("Accent "+p+" unsupported in "+this.mode+" mode",e);i={type:"accent",mode:this.mode,loc:o.range(e),label:m,isStretchy:!1,isShifty:!0,base:i}}return i},e}();To.endOfExpression=["}","\\endgroup","\\end","\\right","&"],To.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},To.SUPSUB_GREEDINESS=1;var wo=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new To(e,t);delete n.gullet.macros.current["\\df@tag"];var o=n.parse();if(n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new a("\\tag works only in display equations");n.gullet.feed("\\df@tag"),o=[{type:"tag",mode:"text",body:o,tag:n.parse()}]}return o},Co=function(e,t,n){t.textContent="";var o=Oo(e,n).toNode();t.appendChild(o)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Co=function(){throw new a("KaTeX doesn't work in quirks mode.")});var xo=function(e,t,n){if(n.throwOnError||!(e instanceof a))throw e;var o=Ue.makeSpan(["katex-error"],[new M(t)]);return o.setAttribute("title",e.toString()),o.setAttribute("style","color:"+n.errorColor),o},Oo=function(e,t){var n=new h(t);try{var o=wo(e,n);return St(o,e,n)}catch(t){return xo(t,e,n)}},ko={version:"0.12.0",render:Co,renderToString:function(e,t){return Oo(e,t).toMarkup()},ParseError:a,__parse:function(e,t){var n=new h(t);return wo(e,n)},__renderToDomTree:Oo,__renderToHTMLTree:function(e,t){var n=new h(t);try{return function(e,t,n){var o=ct(e,Et(n)),r=Ue.makeSpan(["katex"],[o]);return yt(r,n)}(wo(e,n),0,n)}catch(t){return xo(t,e,n)}},__setFontMetrics:function(e,t){j[e]=t},__defineSymbol:$,__defineMacro:po,__domTree:{Span:I,Anchor:D,SymbolNode:M,SvgNode:P,PathNode:L,LineNode:U}};t.default=ko}]).default},e.exports=o()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={"&lt":"<","&gt":">","&quot":'"',"&apos":"'","&amp":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&amp;":"&"},r={60:"lt",62:"gt",34:"quot",39:"apos",38:"amp"},i={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","&":"&amp;"},a=function(){function e(){}return e.prototype.encode=function(e){return e&&e.length?e.replace(/[<>"'&]/g,(function(e){return i[e]})):""},e.encode=function(t){return(new e).encode(t)},e.prototype.decode=function(e){return e&&e.length?e.replace(/&#?[0-9a-zA-Z]+;?/g,(function(e){if("#"===e.charAt(1)){var t="x"===e.charAt(2).toLowerCase()?parseInt(e.substr(3),16):parseInt(e.substr(2));return isNaN(t)||t<-32768||t>65535?"":String.fromCharCode(t)}return o[e]||e})):""},e.decode=function(t){return(new e).decode(t)},e.prototype.encodeNonUTF=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",o=0;o<t;){var i=e.charCodeAt(o),a=r[i];a?(n+="&"+a+";",o++):(n+=i<32||i>126?"&#"+i+";":e.charAt(o),o++)}return n},e.encodeNonUTF=function(t){return(new e).encodeNonUTF(t)},e.prototype.encodeNonASCII=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",o=0;o<t;){var r=e.charCodeAt(o);r<=255?n+=e[o++]:(n+="&#"+r+";",o++)}return n},e.encodeNonASCII=function(t){return(new e).encodeNonASCII(t)},e}();t.XmlEntities=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=["apos","nbsp","iexcl","cent","pound","curren","yen","brvbar","sect","uml","copy","ordf","laquo","not","shy","reg","macr","deg","plusmn","sup2","sup3","acute","micro","para","middot","cedil","sup1","ordm","raquo","frac14","frac12","frac34","iquest","Agrave","Aacute","Acirc","Atilde","Auml","Aring","Aelig","Ccedil","Egrave","Eacute","Ecirc","Euml","Igrave","Iacute","Icirc","Iuml","ETH","Ntilde","Ograve","Oacute","Ocirc","Otilde","Ouml","times","Oslash","Ugrave","Uacute","Ucirc","Uuml","Yacute","THORN","szlig","agrave","aacute","acirc","atilde","auml","aring","aelig","ccedil","egrave","eacute","ecirc","euml","igrave","iacute","icirc","iuml","eth","ntilde","ograve","oacute","ocirc","otilde","ouml","divide","oslash","ugrave","uacute","ucirc","uuml","yacute","thorn","yuml","quot","amp","lt","gt","OElig","oelig","Scaron","scaron","Yuml","circ","tilde","ensp","emsp","thinsp","zwnj","zwj","lrm","rlm","ndash","mdash","lsquo","rsquo","sbquo","ldquo","rdquo","bdquo","dagger","Dagger","permil","lsaquo","rsaquo","euro","fnof","Alpha","Beta","Gamma","Delta","Epsilon","Zeta","Eta","Theta","Iota","Kappa","Lambda","Mu","Nu","Xi","Omicron","Pi","Rho","Sigma","Tau","Upsilon","Phi","Chi","Psi","Omega","alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","mu","nu","xi","omicron","pi","rho","sigmaf","sigma","tau","upsilon","phi","chi","psi","omega","thetasym","upsih","piv","bull","hellip","prime","Prime","oline","frasl","weierp","image","real","trade","alefsym","larr","uarr","rarr","darr","harr","crarr","lArr","uArr","rArr","dArr","hArr","forall","part","exist","empty","nabla","isin","notin","ni","prod","sum","minus","lowast","radic","prop","infin","ang","and","or","cap","cup","int","there4","sim","cong","asymp","ne","equiv","le","ge","sub","sup","nsub","sube","supe","oplus","otimes","perp","sdot","lceil","rceil","lfloor","rfloor","lang","rang","loz","spades","clubs","hearts","diams"],r=[39,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,34,38,60,62,338,339,352,353,376,710,732,8194,8195,8201,8204,8205,8206,8207,8211,8212,8216,8217,8218,8220,8221,8222,8224,8225,8240,8249,8250,8364,402,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,977,978,982,8226,8230,8242,8243,8254,8260,8472,8465,8476,8482,8501,8592,8593,8594,8595,8596,8629,8656,8657,8658,8659,8660,8704,8706,8707,8709,8711,8712,8713,8715,8719,8721,8722,8727,8730,8733,8734,8736,8743,8744,8745,8746,8747,8756,8764,8773,8776,8800,8801,8804,8805,8834,8835,8836,8838,8839,8853,8855,8869,8901,8968,8969,8970,8971,9001,9002,9674,9824,9827,9829,9830],i={},a={};!function(){for(var e=0,t=o.length;e<t;){var n=o[e],s=r[e];i[n]=String.fromCharCode(s),a[s]=n,e++}}();var s=function(){function e(){}return e.prototype.decode=function(e){return e&&e.length?e.replace(/&(#?[\w\d]+);?/g,(function(e,t){var n;if("#"===t.charAt(0)){var o="x"===t.charAt(1).toLowerCase()?parseInt(t.substr(2),16):parseInt(t.substr(1));isNaN(o)||o<-32768||o>65535||(n=String.fromCharCode(o))}else n=i[t];return n||e})):""},e.decode=function(t){return(new e).decode(t)},e.prototype.encode=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",o=0;o<t;){var r=a[e.charCodeAt(o)];n+=r?"&"+r+";":e.charAt(o),o++}return n},e.encode=function(t){return(new e).encode(t)},e.prototype.encodeNonUTF=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",o=0;o<t;){var r=e.charCodeAt(o),i=a[r];n+=i?"&"+i+";":r<32||r>126?"&#"+r+";":e.charAt(o),o++}return n},e.encodeNonUTF=function(t){return(new e).encodeNonUTF(t)},e.prototype.encodeNonASCII=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",o=0;o<t;){var r=e.charCodeAt(o);r<=255?n+=e[o++]:(n+="&#"+r+";",o++)}return n},e.encodeNonASCII=function(t){return(new e).encodeNonASCII(t)},e}();t.Html4Entities=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=[["Aacute",[193]],["aacute",[225]],["Abreve",[258]],["abreve",[259]],["ac",[8766]],["acd",[8767]],["acE",[8766,819]],["Acirc",[194]],["acirc",[226]],["acute",[180]],["Acy",[1040]],["acy",[1072]],["AElig",[198]],["aelig",[230]],["af",[8289]],["Afr",[120068]],["afr",[120094]],["Agrave",[192]],["agrave",[224]],["alefsym",[8501]],["aleph",[8501]],["Alpha",[913]],["alpha",[945]],["Amacr",[256]],["amacr",[257]],["amalg",[10815]],["amp",[38]],["AMP",[38]],["andand",[10837]],["And",[10835]],["and",[8743]],["andd",[10844]],["andslope",[10840]],["andv",[10842]],["ang",[8736]],["ange",[10660]],["angle",[8736]],["angmsdaa",[10664]],["angmsdab",[10665]],["angmsdac",[10666]],["angmsdad",[10667]],["angmsdae",[10668]],["angmsdaf",[10669]],["angmsdag",[10670]],["angmsdah",[10671]],["angmsd",[8737]],["angrt",[8735]],["angrtvb",[8894]],["angrtvbd",[10653]],["angsph",[8738]],["angst",[197]],["angzarr",[9084]],["Aogon",[260]],["aogon",[261]],["Aopf",[120120]],["aopf",[120146]],["apacir",[10863]],["ap",[8776]],["apE",[10864]],["ape",[8778]],["apid",[8779]],["apos",[39]],["ApplyFunction",[8289]],["approx",[8776]],["approxeq",[8778]],["Aring",[197]],["aring",[229]],["Ascr",[119964]],["ascr",[119990]],["Assign",[8788]],["ast",[42]],["asymp",[8776]],["asympeq",[8781]],["Atilde",[195]],["atilde",[227]],["Auml",[196]],["auml",[228]],["awconint",[8755]],["awint",[10769]],["backcong",[8780]],["backepsilon",[1014]],["backprime",[8245]],["backsim",[8765]],["backsimeq",[8909]],["Backslash",[8726]],["Barv",[10983]],["barvee",[8893]],["barwed",[8965]],["Barwed",[8966]],["barwedge",[8965]],["bbrk",[9141]],["bbrktbrk",[9142]],["bcong",[8780]],["Bcy",[1041]],["bcy",[1073]],["bdquo",[8222]],["becaus",[8757]],["because",[8757]],["Because",[8757]],["bemptyv",[10672]],["bepsi",[1014]],["bernou",[8492]],["Bernoullis",[8492]],["Beta",[914]],["beta",[946]],["beth",[8502]],["between",[8812]],["Bfr",[120069]],["bfr",[120095]],["bigcap",[8898]],["bigcirc",[9711]],["bigcup",[8899]],["bigodot",[10752]],["bigoplus",[10753]],["bigotimes",[10754]],["bigsqcup",[10758]],["bigstar",[9733]],["bigtriangledown",[9661]],["bigtriangleup",[9651]],["biguplus",[10756]],["bigvee",[8897]],["bigwedge",[8896]],["bkarow",[10509]],["blacklozenge",[10731]],["blacksquare",[9642]],["blacktriangle",[9652]],["blacktriangledown",[9662]],["blacktriangleleft",[9666]],["blacktriangleright",[9656]],["blank",[9251]],["blk12",[9618]],["blk14",[9617]],["blk34",[9619]],["block",[9608]],["bne",[61,8421]],["bnequiv",[8801,8421]],["bNot",[10989]],["bnot",[8976]],["Bopf",[120121]],["bopf",[120147]],["bot",[8869]],["bottom",[8869]],["bowtie",[8904]],["boxbox",[10697]],["boxdl",[9488]],["boxdL",[9557]],["boxDl",[9558]],["boxDL",[9559]],["boxdr",[9484]],["boxdR",[9554]],["boxDr",[9555]],["boxDR",[9556]],["boxh",[9472]],["boxH",[9552]],["boxhd",[9516]],["boxHd",[9572]],["boxhD",[9573]],["boxHD",[9574]],["boxhu",[9524]],["boxHu",[9575]],["boxhU",[9576]],["boxHU",[9577]],["boxminus",[8863]],["boxplus",[8862]],["boxtimes",[8864]],["boxul",[9496]],["boxuL",[9563]],["boxUl",[9564]],["boxUL",[9565]],["boxur",[9492]],["boxuR",[9560]],["boxUr",[9561]],["boxUR",[9562]],["boxv",[9474]],["boxV",[9553]],["boxvh",[9532]],["boxvH",[9578]],["boxVh",[9579]],["boxVH",[9580]],["boxvl",[9508]],["boxvL",[9569]],["boxVl",[9570]],["boxVL",[9571]],["boxvr",[9500]],["boxvR",[9566]],["boxVr",[9567]],["boxVR",[9568]],["bprime",[8245]],["breve",[728]],["Breve",[728]],["brvbar",[166]],["bscr",[119991]],["Bscr",[8492]],["bsemi",[8271]],["bsim",[8765]],["bsime",[8909]],["bsolb",[10693]],["bsol",[92]],["bsolhsub",[10184]],["bull",[8226]],["bullet",[8226]],["bump",[8782]],["bumpE",[10926]],["bumpe",[8783]],["Bumpeq",[8782]],["bumpeq",[8783]],["Cacute",[262]],["cacute",[263]],["capand",[10820]],["capbrcup",[10825]],["capcap",[10827]],["cap",[8745]],["Cap",[8914]],["capcup",[10823]],["capdot",[10816]],["CapitalDifferentialD",[8517]],["caps",[8745,65024]],["caret",[8257]],["caron",[711]],["Cayleys",[8493]],["ccaps",[10829]],["Ccaron",[268]],["ccaron",[269]],["Ccedil",[199]],["ccedil",[231]],["Ccirc",[264]],["ccirc",[265]],["Cconint",[8752]],["ccups",[10828]],["ccupssm",[10832]],["Cdot",[266]],["cdot",[267]],["cedil",[184]],["Cedilla",[184]],["cemptyv",[10674]],["cent",[162]],["centerdot",[183]],["CenterDot",[183]],["cfr",[120096]],["Cfr",[8493]],["CHcy",[1063]],["chcy",[1095]],["check",[10003]],["checkmark",[10003]],["Chi",[935]],["chi",[967]],["circ",[710]],["circeq",[8791]],["circlearrowleft",[8634]],["circlearrowright",[8635]],["circledast",[8859]],["circledcirc",[8858]],["circleddash",[8861]],["CircleDot",[8857]],["circledR",[174]],["circledS",[9416]],["CircleMinus",[8854]],["CirclePlus",[8853]],["CircleTimes",[8855]],["cir",[9675]],["cirE",[10691]],["cire",[8791]],["cirfnint",[10768]],["cirmid",[10991]],["cirscir",[10690]],["ClockwiseContourIntegral",[8754]],["clubs",[9827]],["clubsuit",[9827]],["colon",[58]],["Colon",[8759]],["Colone",[10868]],["colone",[8788]],["coloneq",[8788]],["comma",[44]],["commat",[64]],["comp",[8705]],["compfn",[8728]],["complement",[8705]],["complexes",[8450]],["cong",[8773]],["congdot",[10861]],["Congruent",[8801]],["conint",[8750]],["Conint",[8751]],["ContourIntegral",[8750]],["copf",[120148]],["Copf",[8450]],["coprod",[8720]],["Coproduct",[8720]],["copy",[169]],["COPY",[169]],["copysr",[8471]],["CounterClockwiseContourIntegral",[8755]],["crarr",[8629]],["cross",[10007]],["Cross",[10799]],["Cscr",[119966]],["cscr",[119992]],["csub",[10959]],["csube",[10961]],["csup",[10960]],["csupe",[10962]],["ctdot",[8943]],["cudarrl",[10552]],["cudarrr",[10549]],["cuepr",[8926]],["cuesc",[8927]],["cularr",[8630]],["cularrp",[10557]],["cupbrcap",[10824]],["cupcap",[10822]],["CupCap",[8781]],["cup",[8746]],["Cup",[8915]],["cupcup",[10826]],["cupdot",[8845]],["cupor",[10821]],["cups",[8746,65024]],["curarr",[8631]],["curarrm",[10556]],["curlyeqprec",[8926]],["curlyeqsucc",[8927]],["curlyvee",[8910]],["curlywedge",[8911]],["curren",[164]],["curvearrowleft",[8630]],["curvearrowright",[8631]],["cuvee",[8910]],["cuwed",[8911]],["cwconint",[8754]],["cwint",[8753]],["cylcty",[9005]],["dagger",[8224]],["Dagger",[8225]],["daleth",[8504]],["darr",[8595]],["Darr",[8609]],["dArr",[8659]],["dash",[8208]],["Dashv",[10980]],["dashv",[8867]],["dbkarow",[10511]],["dblac",[733]],["Dcaron",[270]],["dcaron",[271]],["Dcy",[1044]],["dcy",[1076]],["ddagger",[8225]],["ddarr",[8650]],["DD",[8517]],["dd",[8518]],["DDotrahd",[10513]],["ddotseq",[10871]],["deg",[176]],["Del",[8711]],["Delta",[916]],["delta",[948]],["demptyv",[10673]],["dfisht",[10623]],["Dfr",[120071]],["dfr",[120097]],["dHar",[10597]],["dharl",[8643]],["dharr",[8642]],["DiacriticalAcute",[180]],["DiacriticalDot",[729]],["DiacriticalDoubleAcute",[733]],["DiacriticalGrave",[96]],["DiacriticalTilde",[732]],["diam",[8900]],["diamond",[8900]],["Diamond",[8900]],["diamondsuit",[9830]],["diams",[9830]],["die",[168]],["DifferentialD",[8518]],["digamma",[989]],["disin",[8946]],["div",[247]],["divide",[247]],["divideontimes",[8903]],["divonx",[8903]],["DJcy",[1026]],["djcy",[1106]],["dlcorn",[8990]],["dlcrop",[8973]],["dollar",[36]],["Dopf",[120123]],["dopf",[120149]],["Dot",[168]],["dot",[729]],["DotDot",[8412]],["doteq",[8784]],["doteqdot",[8785]],["DotEqual",[8784]],["dotminus",[8760]],["dotplus",[8724]],["dotsquare",[8865]],["doublebarwedge",[8966]],["DoubleContourIntegral",[8751]],["DoubleDot",[168]],["DoubleDownArrow",[8659]],["DoubleLeftArrow",[8656]],["DoubleLeftRightArrow",[8660]],["DoubleLeftTee",[10980]],["DoubleLongLeftArrow",[10232]],["DoubleLongLeftRightArrow",[10234]],["DoubleLongRightArrow",[10233]],["DoubleRightArrow",[8658]],["DoubleRightTee",[8872]],["DoubleUpArrow",[8657]],["DoubleUpDownArrow",[8661]],["DoubleVerticalBar",[8741]],["DownArrowBar",[10515]],["downarrow",[8595]],["DownArrow",[8595]],["Downarrow",[8659]],["DownArrowUpArrow",[8693]],["DownBreve",[785]],["downdownarrows",[8650]],["downharpoonleft",[8643]],["downharpoonright",[8642]],["DownLeftRightVector",[10576]],["DownLeftTeeVector",[10590]],["DownLeftVectorBar",[10582]],["DownLeftVector",[8637]],["DownRightTeeVector",[10591]],["DownRightVectorBar",[10583]],["DownRightVector",[8641]],["DownTeeArrow",[8615]],["DownTee",[8868]],["drbkarow",[10512]],["drcorn",[8991]],["drcrop",[8972]],["Dscr",[119967]],["dscr",[119993]],["DScy",[1029]],["dscy",[1109]],["dsol",[10742]],["Dstrok",[272]],["dstrok",[273]],["dtdot",[8945]],["dtri",[9663]],["dtrif",[9662]],["duarr",[8693]],["duhar",[10607]],["dwangle",[10662]],["DZcy",[1039]],["dzcy",[1119]],["dzigrarr",[10239]],["Eacute",[201]],["eacute",[233]],["easter",[10862]],["Ecaron",[282]],["ecaron",[283]],["Ecirc",[202]],["ecirc",[234]],["ecir",[8790]],["ecolon",[8789]],["Ecy",[1069]],["ecy",[1101]],["eDDot",[10871]],["Edot",[278]],["edot",[279]],["eDot",[8785]],["ee",[8519]],["efDot",[8786]],["Efr",[120072]],["efr",[120098]],["eg",[10906]],["Egrave",[200]],["egrave",[232]],["egs",[10902]],["egsdot",[10904]],["el",[10905]],["Element",[8712]],["elinters",[9191]],["ell",[8467]],["els",[10901]],["elsdot",[10903]],["Emacr",[274]],["emacr",[275]],["empty",[8709]],["emptyset",[8709]],["EmptySmallSquare",[9723]],["emptyv",[8709]],["EmptyVerySmallSquare",[9643]],["emsp13",[8196]],["emsp14",[8197]],["emsp",[8195]],["ENG",[330]],["eng",[331]],["ensp",[8194]],["Eogon",[280]],["eogon",[281]],["Eopf",[120124]],["eopf",[120150]],["epar",[8917]],["eparsl",[10723]],["eplus",[10865]],["epsi",[949]],["Epsilon",[917]],["epsilon",[949]],["epsiv",[1013]],["eqcirc",[8790]],["eqcolon",[8789]],["eqsim",[8770]],["eqslantgtr",[10902]],["eqslantless",[10901]],["Equal",[10869]],["equals",[61]],["EqualTilde",[8770]],["equest",[8799]],["Equilibrium",[8652]],["equiv",[8801]],["equivDD",[10872]],["eqvparsl",[10725]],["erarr",[10609]],["erDot",[8787]],["escr",[8495]],["Escr",[8496]],["esdot",[8784]],["Esim",[10867]],["esim",[8770]],["Eta",[919]],["eta",[951]],["ETH",[208]],["eth",[240]],["Euml",[203]],["euml",[235]],["euro",[8364]],["excl",[33]],["exist",[8707]],["Exists",[8707]],["expectation",[8496]],["exponentiale",[8519]],["ExponentialE",[8519]],["fallingdotseq",[8786]],["Fcy",[1060]],["fcy",[1092]],["female",[9792]],["ffilig",[64259]],["fflig",[64256]],["ffllig",[64260]],["Ffr",[120073]],["ffr",[120099]],["filig",[64257]],["FilledSmallSquare",[9724]],["FilledVerySmallSquare",[9642]],["fjlig",[102,106]],["flat",[9837]],["fllig",[64258]],["fltns",[9649]],["fnof",[402]],["Fopf",[120125]],["fopf",[120151]],["forall",[8704]],["ForAll",[8704]],["fork",[8916]],["forkv",[10969]],["Fouriertrf",[8497]],["fpartint",[10765]],["frac12",[189]],["frac13",[8531]],["frac14",[188]],["frac15",[8533]],["frac16",[8537]],["frac18",[8539]],["frac23",[8532]],["frac25",[8534]],["frac34",[190]],["frac35",[8535]],["frac38",[8540]],["frac45",[8536]],["frac56",[8538]],["frac58",[8541]],["frac78",[8542]],["frasl",[8260]],["frown",[8994]],["fscr",[119995]],["Fscr",[8497]],["gacute",[501]],["Gamma",[915]],["gamma",[947]],["Gammad",[988]],["gammad",[989]],["gap",[10886]],["Gbreve",[286]],["gbreve",[287]],["Gcedil",[290]],["Gcirc",[284]],["gcirc",[285]],["Gcy",[1043]],["gcy",[1075]],["Gdot",[288]],["gdot",[289]],["ge",[8805]],["gE",[8807]],["gEl",[10892]],["gel",[8923]],["geq",[8805]],["geqq",[8807]],["geqslant",[10878]],["gescc",[10921]],["ges",[10878]],["gesdot",[10880]],["gesdoto",[10882]],["gesdotol",[10884]],["gesl",[8923,65024]],["gesles",[10900]],["Gfr",[120074]],["gfr",[120100]],["gg",[8811]],["Gg",[8921]],["ggg",[8921]],["gimel",[8503]],["GJcy",[1027]],["gjcy",[1107]],["gla",[10917]],["gl",[8823]],["glE",[10898]],["glj",[10916]],["gnap",[10890]],["gnapprox",[10890]],["gne",[10888]],["gnE",[8809]],["gneq",[10888]],["gneqq",[8809]],["gnsim",[8935]],["Gopf",[120126]],["gopf",[120152]],["grave",[96]],["GreaterEqual",[8805]],["GreaterEqualLess",[8923]],["GreaterFullEqual",[8807]],["GreaterGreater",[10914]],["GreaterLess",[8823]],["GreaterSlantEqual",[10878]],["GreaterTilde",[8819]],["Gscr",[119970]],["gscr",[8458]],["gsim",[8819]],["gsime",[10894]],["gsiml",[10896]],["gtcc",[10919]],["gtcir",[10874]],["gt",[62]],["GT",[62]],["Gt",[8811]],["gtdot",[8919]],["gtlPar",[10645]],["gtquest",[10876]],["gtrapprox",[10886]],["gtrarr",[10616]],["gtrdot",[8919]],["gtreqless",[8923]],["gtreqqless",[10892]],["gtrless",[8823]],["gtrsim",[8819]],["gvertneqq",[8809,65024]],["gvnE",[8809,65024]],["Hacek",[711]],["hairsp",[8202]],["half",[189]],["hamilt",[8459]],["HARDcy",[1066]],["hardcy",[1098]],["harrcir",[10568]],["harr",[8596]],["hArr",[8660]],["harrw",[8621]],["Hat",[94]],["hbar",[8463]],["Hcirc",[292]],["hcirc",[293]],["hearts",[9829]],["heartsuit",[9829]],["hellip",[8230]],["hercon",[8889]],["hfr",[120101]],["Hfr",[8460]],["HilbertSpace",[8459]],["hksearow",[10533]],["hkswarow",[10534]],["hoarr",[8703]],["homtht",[8763]],["hookleftarrow",[8617]],["hookrightarrow",[8618]],["hopf",[120153]],["Hopf",[8461]],["horbar",[8213]],["HorizontalLine",[9472]],["hscr",[119997]],["Hscr",[8459]],["hslash",[8463]],["Hstrok",[294]],["hstrok",[295]],["HumpDownHump",[8782]],["HumpEqual",[8783]],["hybull",[8259]],["hyphen",[8208]],["Iacute",[205]],["iacute",[237]],["ic",[8291]],["Icirc",[206]],["icirc",[238]],["Icy",[1048]],["icy",[1080]],["Idot",[304]],["IEcy",[1045]],["iecy",[1077]],["iexcl",[161]],["iff",[8660]],["ifr",[120102]],["Ifr",[8465]],["Igrave",[204]],["igrave",[236]],["ii",[8520]],["iiiint",[10764]],["iiint",[8749]],["iinfin",[10716]],["iiota",[8489]],["IJlig",[306]],["ijlig",[307]],["Imacr",[298]],["imacr",[299]],["image",[8465]],["ImaginaryI",[8520]],["imagline",[8464]],["imagpart",[8465]],["imath",[305]],["Im",[8465]],["imof",[8887]],["imped",[437]],["Implies",[8658]],["incare",[8453]],["in",[8712]],["infin",[8734]],["infintie",[10717]],["inodot",[305]],["intcal",[8890]],["int",[8747]],["Int",[8748]],["integers",[8484]],["Integral",[8747]],["intercal",[8890]],["Intersection",[8898]],["intlarhk",[10775]],["intprod",[10812]],["InvisibleComma",[8291]],["InvisibleTimes",[8290]],["IOcy",[1025]],["iocy",[1105]],["Iogon",[302]],["iogon",[303]],["Iopf",[120128]],["iopf",[120154]],["Iota",[921]],["iota",[953]],["iprod",[10812]],["iquest",[191]],["iscr",[119998]],["Iscr",[8464]],["isin",[8712]],["isindot",[8949]],["isinE",[8953]],["isins",[8948]],["isinsv",[8947]],["isinv",[8712]],["it",[8290]],["Itilde",[296]],["itilde",[297]],["Iukcy",[1030]],["iukcy",[1110]],["Iuml",[207]],["iuml",[239]],["Jcirc",[308]],["jcirc",[309]],["Jcy",[1049]],["jcy",[1081]],["Jfr",[120077]],["jfr",[120103]],["jmath",[567]],["Jopf",[120129]],["jopf",[120155]],["Jscr",[119973]],["jscr",[119999]],["Jsercy",[1032]],["jsercy",[1112]],["Jukcy",[1028]],["jukcy",[1108]],["Kappa",[922]],["kappa",[954]],["kappav",[1008]],["Kcedil",[310]],["kcedil",[311]],["Kcy",[1050]],["kcy",[1082]],["Kfr",[120078]],["kfr",[120104]],["kgreen",[312]],["KHcy",[1061]],["khcy",[1093]],["KJcy",[1036]],["kjcy",[1116]],["Kopf",[120130]],["kopf",[120156]],["Kscr",[119974]],["kscr",[12e4]],["lAarr",[8666]],["Lacute",[313]],["lacute",[314]],["laemptyv",[10676]],["lagran",[8466]],["Lambda",[923]],["lambda",[955]],["lang",[10216]],["Lang",[10218]],["langd",[10641]],["langle",[10216]],["lap",[10885]],["Laplacetrf",[8466]],["laquo",[171]],["larrb",[8676]],["larrbfs",[10527]],["larr",[8592]],["Larr",[8606]],["lArr",[8656]],["larrfs",[10525]],["larrhk",[8617]],["larrlp",[8619]],["larrpl",[10553]],["larrsim",[10611]],["larrtl",[8610]],["latail",[10521]],["lAtail",[10523]],["lat",[10923]],["late",[10925]],["lates",[10925,65024]],["lbarr",[10508]],["lBarr",[10510]],["lbbrk",[10098]],["lbrace",[123]],["lbrack",[91]],["lbrke",[10635]],["lbrksld",[10639]],["lbrkslu",[10637]],["Lcaron",[317]],["lcaron",[318]],["Lcedil",[315]],["lcedil",[316]],["lceil",[8968]],["lcub",[123]],["Lcy",[1051]],["lcy",[1083]],["ldca",[10550]],["ldquo",[8220]],["ldquor",[8222]],["ldrdhar",[10599]],["ldrushar",[10571]],["ldsh",[8626]],["le",[8804]],["lE",[8806]],["LeftAngleBracket",[10216]],["LeftArrowBar",[8676]],["leftarrow",[8592]],["LeftArrow",[8592]],["Leftarrow",[8656]],["LeftArrowRightArrow",[8646]],["leftarrowtail",[8610]],["LeftCeiling",[8968]],["LeftDoubleBracket",[10214]],["LeftDownTeeVector",[10593]],["LeftDownVectorBar",[10585]],["LeftDownVector",[8643]],["LeftFloor",[8970]],["leftharpoondown",[8637]],["leftharpoonup",[8636]],["leftleftarrows",[8647]],["leftrightarrow",[8596]],["LeftRightArrow",[8596]],["Leftrightarrow",[8660]],["leftrightarrows",[8646]],["leftrightharpoons",[8651]],["leftrightsquigarrow",[8621]],["LeftRightVector",[10574]],["LeftTeeArrow",[8612]],["LeftTee",[8867]],["LeftTeeVector",[10586]],["leftthreetimes",[8907]],["LeftTriangleBar",[10703]],["LeftTriangle",[8882]],["LeftTriangleEqual",[8884]],["LeftUpDownVector",[10577]],["LeftUpTeeVector",[10592]],["LeftUpVectorBar",[10584]],["LeftUpVector",[8639]],["LeftVectorBar",[10578]],["LeftVector",[8636]],["lEg",[10891]],["leg",[8922]],["leq",[8804]],["leqq",[8806]],["leqslant",[10877]],["lescc",[10920]],["les",[10877]],["lesdot",[10879]],["lesdoto",[10881]],["lesdotor",[10883]],["lesg",[8922,65024]],["lesges",[10899]],["lessapprox",[10885]],["lessdot",[8918]],["lesseqgtr",[8922]],["lesseqqgtr",[10891]],["LessEqualGreater",[8922]],["LessFullEqual",[8806]],["LessGreater",[8822]],["lessgtr",[8822]],["LessLess",[10913]],["lesssim",[8818]],["LessSlantEqual",[10877]],["LessTilde",[8818]],["lfisht",[10620]],["lfloor",[8970]],["Lfr",[120079]],["lfr",[120105]],["lg",[8822]],["lgE",[10897]],["lHar",[10594]],["lhard",[8637]],["lharu",[8636]],["lharul",[10602]],["lhblk",[9604]],["LJcy",[1033]],["ljcy",[1113]],["llarr",[8647]],["ll",[8810]],["Ll",[8920]],["llcorner",[8990]],["Lleftarrow",[8666]],["llhard",[10603]],["lltri",[9722]],["Lmidot",[319]],["lmidot",[320]],["lmoustache",[9136]],["lmoust",[9136]],["lnap",[10889]],["lnapprox",[10889]],["lne",[10887]],["lnE",[8808]],["lneq",[10887]],["lneqq",[8808]],["lnsim",[8934]],["loang",[10220]],["loarr",[8701]],["lobrk",[10214]],["longleftarrow",[10229]],["LongLeftArrow",[10229]],["Longleftarrow",[10232]],["longleftrightarrow",[10231]],["LongLeftRightArrow",[10231]],["Longleftrightarrow",[10234]],["longmapsto",[10236]],["longrightarrow",[10230]],["LongRightArrow",[10230]],["Longrightarrow",[10233]],["looparrowleft",[8619]],["looparrowright",[8620]],["lopar",[10629]],["Lopf",[120131]],["lopf",[120157]],["loplus",[10797]],["lotimes",[10804]],["lowast",[8727]],["lowbar",[95]],["LowerLeftArrow",[8601]],["LowerRightArrow",[8600]],["loz",[9674]],["lozenge",[9674]],["lozf",[10731]],["lpar",[40]],["lparlt",[10643]],["lrarr",[8646]],["lrcorner",[8991]],["lrhar",[8651]],["lrhard",[10605]],["lrm",[8206]],["lrtri",[8895]],["lsaquo",[8249]],["lscr",[120001]],["Lscr",[8466]],["lsh",[8624]],["Lsh",[8624]],["lsim",[8818]],["lsime",[10893]],["lsimg",[10895]],["lsqb",[91]],["lsquo",[8216]],["lsquor",[8218]],["Lstrok",[321]],["lstrok",[322]],["ltcc",[10918]],["ltcir",[10873]],["lt",[60]],["LT",[60]],["Lt",[8810]],["ltdot",[8918]],["lthree",[8907]],["ltimes",[8905]],["ltlarr",[10614]],["ltquest",[10875]],["ltri",[9667]],["ltrie",[8884]],["ltrif",[9666]],["ltrPar",[10646]],["lurdshar",[10570]],["luruhar",[10598]],["lvertneqq",[8808,65024]],["lvnE",[8808,65024]],["macr",[175]],["male",[9794]],["malt",[10016]],["maltese",[10016]],["Map",[10501]],["map",[8614]],["mapsto",[8614]],["mapstodown",[8615]],["mapstoleft",[8612]],["mapstoup",[8613]],["marker",[9646]],["mcomma",[10793]],["Mcy",[1052]],["mcy",[1084]],["mdash",[8212]],["mDDot",[8762]],["measuredangle",[8737]],["MediumSpace",[8287]],["Mellintrf",[8499]],["Mfr",[120080]],["mfr",[120106]],["mho",[8487]],["micro",[181]],["midast",[42]],["midcir",[10992]],["mid",[8739]],["middot",[183]],["minusb",[8863]],["minus",[8722]],["minusd",[8760]],["minusdu",[10794]],["MinusPlus",[8723]],["mlcp",[10971]],["mldr",[8230]],["mnplus",[8723]],["models",[8871]],["Mopf",[120132]],["mopf",[120158]],["mp",[8723]],["mscr",[120002]],["Mscr",[8499]],["mstpos",[8766]],["Mu",[924]],["mu",[956]],["multimap",[8888]],["mumap",[8888]],["nabla",[8711]],["Nacute",[323]],["nacute",[324]],["nang",[8736,8402]],["nap",[8777]],["napE",[10864,824]],["napid",[8779,824]],["napos",[329]],["napprox",[8777]],["natural",[9838]],["naturals",[8469]],["natur",[9838]],["nbsp",[160]],["nbump",[8782,824]],["nbumpe",[8783,824]],["ncap",[10819]],["Ncaron",[327]],["ncaron",[328]],["Ncedil",[325]],["ncedil",[326]],["ncong",[8775]],["ncongdot",[10861,824]],["ncup",[10818]],["Ncy",[1053]],["ncy",[1085]],["ndash",[8211]],["nearhk",[10532]],["nearr",[8599]],["neArr",[8663]],["nearrow",[8599]],["ne",[8800]],["nedot",[8784,824]],["NegativeMediumSpace",[8203]],["NegativeThickSpace",[8203]],["NegativeThinSpace",[8203]],["NegativeVeryThinSpace",[8203]],["nequiv",[8802]],["nesear",[10536]],["nesim",[8770,824]],["NestedGreaterGreater",[8811]],["NestedLessLess",[8810]],["nexist",[8708]],["nexists",[8708]],["Nfr",[120081]],["nfr",[120107]],["ngE",[8807,824]],["nge",[8817]],["ngeq",[8817]],["ngeqq",[8807,824]],["ngeqslant",[10878,824]],["nges",[10878,824]],["nGg",[8921,824]],["ngsim",[8821]],["nGt",[8811,8402]],["ngt",[8815]],["ngtr",[8815]],["nGtv",[8811,824]],["nharr",[8622]],["nhArr",[8654]],["nhpar",[10994]],["ni",[8715]],["nis",[8956]],["nisd",[8954]],["niv",[8715]],["NJcy",[1034]],["njcy",[1114]],["nlarr",[8602]],["nlArr",[8653]],["nldr",[8229]],["nlE",[8806,824]],["nle",[8816]],["nleftarrow",[8602]],["nLeftarrow",[8653]],["nleftrightarrow",[8622]],["nLeftrightarrow",[8654]],["nleq",[8816]],["nleqq",[8806,824]],["nleqslant",[10877,824]],["nles",[10877,824]],["nless",[8814]],["nLl",[8920,824]],["nlsim",[8820]],["nLt",[8810,8402]],["nlt",[8814]],["nltri",[8938]],["nltrie",[8940]],["nLtv",[8810,824]],["nmid",[8740]],["NoBreak",[8288]],["NonBreakingSpace",[160]],["nopf",[120159]],["Nopf",[8469]],["Not",[10988]],["not",[172]],["NotCongruent",[8802]],["NotCupCap",[8813]],["NotDoubleVerticalBar",[8742]],["NotElement",[8713]],["NotEqual",[8800]],["NotEqualTilde",[8770,824]],["NotExists",[8708]],["NotGreater",[8815]],["NotGreaterEqual",[8817]],["NotGreaterFullEqual",[8807,824]],["NotGreaterGreater",[8811,824]],["NotGreaterLess",[8825]],["NotGreaterSlantEqual",[10878,824]],["NotGreaterTilde",[8821]],["NotHumpDownHump",[8782,824]],["NotHumpEqual",[8783,824]],["notin",[8713]],["notindot",[8949,824]],["notinE",[8953,824]],["notinva",[8713]],["notinvb",[8951]],["notinvc",[8950]],["NotLeftTriangleBar",[10703,824]],["NotLeftTriangle",[8938]],["NotLeftTriangleEqual",[8940]],["NotLess",[8814]],["NotLessEqual",[8816]],["NotLessGreater",[8824]],["NotLessLess",[8810,824]],["NotLessSlantEqual",[10877,824]],["NotLessTilde",[8820]],["NotNestedGreaterGreater",[10914,824]],["NotNestedLessLess",[10913,824]],["notni",[8716]],["notniva",[8716]],["notnivb",[8958]],["notnivc",[8957]],["NotPrecedes",[8832]],["NotPrecedesEqual",[10927,824]],["NotPrecedesSlantEqual",[8928]],["NotReverseElement",[8716]],["NotRightTriangleBar",[10704,824]],["NotRightTriangle",[8939]],["NotRightTriangleEqual",[8941]],["NotSquareSubset",[8847,824]],["NotSquareSubsetEqual",[8930]],["NotSquareSuperset",[8848,824]],["NotSquareSupersetEqual",[8931]],["NotSubset",[8834,8402]],["NotSubsetEqual",[8840]],["NotSucceeds",[8833]],["NotSucceedsEqual",[10928,824]],["NotSucceedsSlantEqual",[8929]],["NotSucceedsTilde",[8831,824]],["NotSuperset",[8835,8402]],["NotSupersetEqual",[8841]],["NotTilde",[8769]],["NotTildeEqual",[8772]],["NotTildeFullEqual",[8775]],["NotTildeTilde",[8777]],["NotVerticalBar",[8740]],["nparallel",[8742]],["npar",[8742]],["nparsl",[11005,8421]],["npart",[8706,824]],["npolint",[10772]],["npr",[8832]],["nprcue",[8928]],["nprec",[8832]],["npreceq",[10927,824]],["npre",[10927,824]],["nrarrc",[10547,824]],["nrarr",[8603]],["nrArr",[8655]],["nrarrw",[8605,824]],["nrightarrow",[8603]],["nRightarrow",[8655]],["nrtri",[8939]],["nrtrie",[8941]],["nsc",[8833]],["nsccue",[8929]],["nsce",[10928,824]],["Nscr",[119977]],["nscr",[120003]],["nshortmid",[8740]],["nshortparallel",[8742]],["nsim",[8769]],["nsime",[8772]],["nsimeq",[8772]],["nsmid",[8740]],["nspar",[8742]],["nsqsube",[8930]],["nsqsupe",[8931]],["nsub",[8836]],["nsubE",[10949,824]],["nsube",[8840]],["nsubset",[8834,8402]],["nsubseteq",[8840]],["nsubseteqq",[10949,824]],["nsucc",[8833]],["nsucceq",[10928,824]],["nsup",[8837]],["nsupE",[10950,824]],["nsupe",[8841]],["nsupset",[8835,8402]],["nsupseteq",[8841]],["nsupseteqq",[10950,824]],["ntgl",[8825]],["Ntilde",[209]],["ntilde",[241]],["ntlg",[8824]],["ntriangleleft",[8938]],["ntrianglelefteq",[8940]],["ntriangleright",[8939]],["ntrianglerighteq",[8941]],["Nu",[925]],["nu",[957]],["num",[35]],["numero",[8470]],["numsp",[8199]],["nvap",[8781,8402]],["nvdash",[8876]],["nvDash",[8877]],["nVdash",[8878]],["nVDash",[8879]],["nvge",[8805,8402]],["nvgt",[62,8402]],["nvHarr",[10500]],["nvinfin",[10718]],["nvlArr",[10498]],["nvle",[8804,8402]],["nvlt",[60,8402]],["nvltrie",[8884,8402]],["nvrArr",[10499]],["nvrtrie",[8885,8402]],["nvsim",[8764,8402]],["nwarhk",[10531]],["nwarr",[8598]],["nwArr",[8662]],["nwarrow",[8598]],["nwnear",[10535]],["Oacute",[211]],["oacute",[243]],["oast",[8859]],["Ocirc",[212]],["ocirc",[244]],["ocir",[8858]],["Ocy",[1054]],["ocy",[1086]],["odash",[8861]],["Odblac",[336]],["odblac",[337]],["odiv",[10808]],["odot",[8857]],["odsold",[10684]],["OElig",[338]],["oelig",[339]],["ofcir",[10687]],["Ofr",[120082]],["ofr",[120108]],["ogon",[731]],["Ograve",[210]],["ograve",[242]],["ogt",[10689]],["ohbar",[10677]],["ohm",[937]],["oint",[8750]],["olarr",[8634]],["olcir",[10686]],["olcross",[10683]],["oline",[8254]],["olt",[10688]],["Omacr",[332]],["omacr",[333]],["Omega",[937]],["omega",[969]],["Omicron",[927]],["omicron",[959]],["omid",[10678]],["ominus",[8854]],["Oopf",[120134]],["oopf",[120160]],["opar",[10679]],["OpenCurlyDoubleQuote",[8220]],["OpenCurlyQuote",[8216]],["operp",[10681]],["oplus",[8853]],["orarr",[8635]],["Or",[10836]],["or",[8744]],["ord",[10845]],["order",[8500]],["orderof",[8500]],["ordf",[170]],["ordm",[186]],["origof",[8886]],["oror",[10838]],["orslope",[10839]],["orv",[10843]],["oS",[9416]],["Oscr",[119978]],["oscr",[8500]],["Oslash",[216]],["oslash",[248]],["osol",[8856]],["Otilde",[213]],["otilde",[245]],["otimesas",[10806]],["Otimes",[10807]],["otimes",[8855]],["Ouml",[214]],["ouml",[246]],["ovbar",[9021]],["OverBar",[8254]],["OverBrace",[9182]],["OverBracket",[9140]],["OverParenthesis",[9180]],["para",[182]],["parallel",[8741]],["par",[8741]],["parsim",[10995]],["parsl",[11005]],["part",[8706]],["PartialD",[8706]],["Pcy",[1055]],["pcy",[1087]],["percnt",[37]],["period",[46]],["permil",[8240]],["perp",[8869]],["pertenk",[8241]],["Pfr",[120083]],["pfr",[120109]],["Phi",[934]],["phi",[966]],["phiv",[981]],["phmmat",[8499]],["phone",[9742]],["Pi",[928]],["pi",[960]],["pitchfork",[8916]],["piv",[982]],["planck",[8463]],["planckh",[8462]],["plankv",[8463]],["plusacir",[10787]],["plusb",[8862]],["pluscir",[10786]],["plus",[43]],["plusdo",[8724]],["plusdu",[10789]],["pluse",[10866]],["PlusMinus",[177]],["plusmn",[177]],["plussim",[10790]],["plustwo",[10791]],["pm",[177]],["Poincareplane",[8460]],["pointint",[10773]],["popf",[120161]],["Popf",[8473]],["pound",[163]],["prap",[10935]],["Pr",[10939]],["pr",[8826]],["prcue",[8828]],["precapprox",[10935]],["prec",[8826]],["preccurlyeq",[8828]],["Precedes",[8826]],["PrecedesEqual",[10927]],["PrecedesSlantEqual",[8828]],["PrecedesTilde",[8830]],["preceq",[10927]],["precnapprox",[10937]],["precneqq",[10933]],["precnsim",[8936]],["pre",[10927]],["prE",[10931]],["precsim",[8830]],["prime",[8242]],["Prime",[8243]],["primes",[8473]],["prnap",[10937]],["prnE",[10933]],["prnsim",[8936]],["prod",[8719]],["Product",[8719]],["profalar",[9006]],["profline",[8978]],["profsurf",[8979]],["prop",[8733]],["Proportional",[8733]],["Proportion",[8759]],["propto",[8733]],["prsim",[8830]],["prurel",[8880]],["Pscr",[119979]],["pscr",[120005]],["Psi",[936]],["psi",[968]],["puncsp",[8200]],["Qfr",[120084]],["qfr",[120110]],["qint",[10764]],["qopf",[120162]],["Qopf",[8474]],["qprime",[8279]],["Qscr",[119980]],["qscr",[120006]],["quaternions",[8461]],["quatint",[10774]],["quest",[63]],["questeq",[8799]],["quot",[34]],["QUOT",[34]],["rAarr",[8667]],["race",[8765,817]],["Racute",[340]],["racute",[341]],["radic",[8730]],["raemptyv",[10675]],["rang",[10217]],["Rang",[10219]],["rangd",[10642]],["range",[10661]],["rangle",[10217]],["raquo",[187]],["rarrap",[10613]],["rarrb",[8677]],["rarrbfs",[10528]],["rarrc",[10547]],["rarr",[8594]],["Rarr",[8608]],["rArr",[8658]],["rarrfs",[10526]],["rarrhk",[8618]],["rarrlp",[8620]],["rarrpl",[10565]],["rarrsim",[10612]],["Rarrtl",[10518]],["rarrtl",[8611]],["rarrw",[8605]],["ratail",[10522]],["rAtail",[10524]],["ratio",[8758]],["rationals",[8474]],["rbarr",[10509]],["rBarr",[10511]],["RBarr",[10512]],["rbbrk",[10099]],["rbrace",[125]],["rbrack",[93]],["rbrke",[10636]],["rbrksld",[10638]],["rbrkslu",[10640]],["Rcaron",[344]],["rcaron",[345]],["Rcedil",[342]],["rcedil",[343]],["rceil",[8969]],["rcub",[125]],["Rcy",[1056]],["rcy",[1088]],["rdca",[10551]],["rdldhar",[10601]],["rdquo",[8221]],["rdquor",[8221]],["CloseCurlyDoubleQuote",[8221]],["rdsh",[8627]],["real",[8476]],["realine",[8475]],["realpart",[8476]],["reals",[8477]],["Re",[8476]],["rect",[9645]],["reg",[174]],["REG",[174]],["ReverseElement",[8715]],["ReverseEquilibrium",[8651]],["ReverseUpEquilibrium",[10607]],["rfisht",[10621]],["rfloor",[8971]],["rfr",[120111]],["Rfr",[8476]],["rHar",[10596]],["rhard",[8641]],["rharu",[8640]],["rharul",[10604]],["Rho",[929]],["rho",[961]],["rhov",[1009]],["RightAngleBracket",[10217]],["RightArrowBar",[8677]],["rightarrow",[8594]],["RightArrow",[8594]],["Rightarrow",[8658]],["RightArrowLeftArrow",[8644]],["rightarrowtail",[8611]],["RightCeiling",[8969]],["RightDoubleBracket",[10215]],["RightDownTeeVector",[10589]],["RightDownVectorBar",[10581]],["RightDownVector",[8642]],["RightFloor",[8971]],["rightharpoondown",[8641]],["rightharpoonup",[8640]],["rightleftarrows",[8644]],["rightleftharpoons",[8652]],["rightrightarrows",[8649]],["rightsquigarrow",[8605]],["RightTeeArrow",[8614]],["RightTee",[8866]],["RightTeeVector",[10587]],["rightthreetimes",[8908]],["RightTriangleBar",[10704]],["RightTriangle",[8883]],["RightTriangleEqual",[8885]],["RightUpDownVector",[10575]],["RightUpTeeVector",[10588]],["RightUpVectorBar",[10580]],["RightUpVector",[8638]],["RightVectorBar",[10579]],["RightVector",[8640]],["ring",[730]],["risingdotseq",[8787]],["rlarr",[8644]],["rlhar",[8652]],["rlm",[8207]],["rmoustache",[9137]],["rmoust",[9137]],["rnmid",[10990]],["roang",[10221]],["roarr",[8702]],["robrk",[10215]],["ropar",[10630]],["ropf",[120163]],["Ropf",[8477]],["roplus",[10798]],["rotimes",[10805]],["RoundImplies",[10608]],["rpar",[41]],["rpargt",[10644]],["rppolint",[10770]],["rrarr",[8649]],["Rrightarrow",[8667]],["rsaquo",[8250]],["rscr",[120007]],["Rscr",[8475]],["rsh",[8625]],["Rsh",[8625]],["rsqb",[93]],["rsquo",[8217]],["rsquor",[8217]],["CloseCurlyQuote",[8217]],["rthree",[8908]],["rtimes",[8906]],["rtri",[9657]],["rtrie",[8885]],["rtrif",[9656]],["rtriltri",[10702]],["RuleDelayed",[10740]],["ruluhar",[10600]],["rx",[8478]],["Sacute",[346]],["sacute",[347]],["sbquo",[8218]],["scap",[10936]],["Scaron",[352]],["scaron",[353]],["Sc",[10940]],["sc",[8827]],["sccue",[8829]],["sce",[10928]],["scE",[10932]],["Scedil",[350]],["scedil",[351]],["Scirc",[348]],["scirc",[349]],["scnap",[10938]],["scnE",[10934]],["scnsim",[8937]],["scpolint",[10771]],["scsim",[8831]],["Scy",[1057]],["scy",[1089]],["sdotb",[8865]],["sdot",[8901]],["sdote",[10854]],["searhk",[10533]],["searr",[8600]],["seArr",[8664]],["searrow",[8600]],["sect",[167]],["semi",[59]],["seswar",[10537]],["setminus",[8726]],["setmn",[8726]],["sext",[10038]],["Sfr",[120086]],["sfr",[120112]],["sfrown",[8994]],["sharp",[9839]],["SHCHcy",[1065]],["shchcy",[1097]],["SHcy",[1064]],["shcy",[1096]],["ShortDownArrow",[8595]],["ShortLeftArrow",[8592]],["shortmid",[8739]],["shortparallel",[8741]],["ShortRightArrow",[8594]],["ShortUpArrow",[8593]],["shy",[173]],["Sigma",[931]],["sigma",[963]],["sigmaf",[962]],["sigmav",[962]],["sim",[8764]],["simdot",[10858]],["sime",[8771]],["simeq",[8771]],["simg",[10910]],["simgE",[10912]],["siml",[10909]],["simlE",[10911]],["simne",[8774]],["simplus",[10788]],["simrarr",[10610]],["slarr",[8592]],["SmallCircle",[8728]],["smallsetminus",[8726]],["smashp",[10803]],["smeparsl",[10724]],["smid",[8739]],["smile",[8995]],["smt",[10922]],["smte",[10924]],["smtes",[10924,65024]],["SOFTcy",[1068]],["softcy",[1100]],["solbar",[9023]],["solb",[10692]],["sol",[47]],["Sopf",[120138]],["sopf",[120164]],["spades",[9824]],["spadesuit",[9824]],["spar",[8741]],["sqcap",[8851]],["sqcaps",[8851,65024]],["sqcup",[8852]],["sqcups",[8852,65024]],["Sqrt",[8730]],["sqsub",[8847]],["sqsube",[8849]],["sqsubset",[8847]],["sqsubseteq",[8849]],["sqsup",[8848]],["sqsupe",[8850]],["sqsupset",[8848]],["sqsupseteq",[8850]],["square",[9633]],["Square",[9633]],["SquareIntersection",[8851]],["SquareSubset",[8847]],["SquareSubsetEqual",[8849]],["SquareSuperset",[8848]],["SquareSupersetEqual",[8850]],["SquareUnion",[8852]],["squarf",[9642]],["squ",[9633]],["squf",[9642]],["srarr",[8594]],["Sscr",[119982]],["sscr",[120008]],["ssetmn",[8726]],["ssmile",[8995]],["sstarf",[8902]],["Star",[8902]],["star",[9734]],["starf",[9733]],["straightepsilon",[1013]],["straightphi",[981]],["strns",[175]],["sub",[8834]],["Sub",[8912]],["subdot",[10941]],["subE",[10949]],["sube",[8838]],["subedot",[10947]],["submult",[10945]],["subnE",[10955]],["subne",[8842]],["subplus",[10943]],["subrarr",[10617]],["subset",[8834]],["Subset",[8912]],["subseteq",[8838]],["subseteqq",[10949]],["SubsetEqual",[8838]],["subsetneq",[8842]],["subsetneqq",[10955]],["subsim",[10951]],["subsub",[10965]],["subsup",[10963]],["succapprox",[10936]],["succ",[8827]],["succcurlyeq",[8829]],["Succeeds",[8827]],["SucceedsEqual",[10928]],["SucceedsSlantEqual",[8829]],["SucceedsTilde",[8831]],["succeq",[10928]],["succnapprox",[10938]],["succneqq",[10934]],["succnsim",[8937]],["succsim",[8831]],["SuchThat",[8715]],["sum",[8721]],["Sum",[8721]],["sung",[9834]],["sup1",[185]],["sup2",[178]],["sup3",[179]],["sup",[8835]],["Sup",[8913]],["supdot",[10942]],["supdsub",[10968]],["supE",[10950]],["supe",[8839]],["supedot",[10948]],["Superset",[8835]],["SupersetEqual",[8839]],["suphsol",[10185]],["suphsub",[10967]],["suplarr",[10619]],["supmult",[10946]],["supnE",[10956]],["supne",[8843]],["supplus",[10944]],["supset",[8835]],["Supset",[8913]],["supseteq",[8839]],["supseteqq",[10950]],["supsetneq",[8843]],["supsetneqq",[10956]],["supsim",[10952]],["supsub",[10964]],["supsup",[10966]],["swarhk",[10534]],["swarr",[8601]],["swArr",[8665]],["swarrow",[8601]],["swnwar",[10538]],["szlig",[223]],["Tab",[9]],["target",[8982]],["Tau",[932]],["tau",[964]],["tbrk",[9140]],["Tcaron",[356]],["tcaron",[357]],["Tcedil",[354]],["tcedil",[355]],["Tcy",[1058]],["tcy",[1090]],["tdot",[8411]],["telrec",[8981]],["Tfr",[120087]],["tfr",[120113]],["there4",[8756]],["therefore",[8756]],["Therefore",[8756]],["Theta",[920]],["theta",[952]],["thetasym",[977]],["thetav",[977]],["thickapprox",[8776]],["thicksim",[8764]],["ThickSpace",[8287,8202]],["ThinSpace",[8201]],["thinsp",[8201]],["thkap",[8776]],["thksim",[8764]],["THORN",[222]],["thorn",[254]],["tilde",[732]],["Tilde",[8764]],["TildeEqual",[8771]],["TildeFullEqual",[8773]],["TildeTilde",[8776]],["timesbar",[10801]],["timesb",[8864]],["times",[215]],["timesd",[10800]],["tint",[8749]],["toea",[10536]],["topbot",[9014]],["topcir",[10993]],["top",[8868]],["Topf",[120139]],["topf",[120165]],["topfork",[10970]],["tosa",[10537]],["tprime",[8244]],["trade",[8482]],["TRADE",[8482]],["triangle",[9653]],["triangledown",[9663]],["triangleleft",[9667]],["trianglelefteq",[8884]],["triangleq",[8796]],["triangleright",[9657]],["trianglerighteq",[8885]],["tridot",[9708]],["trie",[8796]],["triminus",[10810]],["TripleDot",[8411]],["triplus",[10809]],["trisb",[10701]],["tritime",[10811]],["trpezium",[9186]],["Tscr",[119983]],["tscr",[120009]],["TScy",[1062]],["tscy",[1094]],["TSHcy",[1035]],["tshcy",[1115]],["Tstrok",[358]],["tstrok",[359]],["twixt",[8812]],["twoheadleftarrow",[8606]],["twoheadrightarrow",[8608]],["Uacute",[218]],["uacute",[250]],["uarr",[8593]],["Uarr",[8607]],["uArr",[8657]],["Uarrocir",[10569]],["Ubrcy",[1038]],["ubrcy",[1118]],["Ubreve",[364]],["ubreve",[365]],["Ucirc",[219]],["ucirc",[251]],["Ucy",[1059]],["ucy",[1091]],["udarr",[8645]],["Udblac",[368]],["udblac",[369]],["udhar",[10606]],["ufisht",[10622]],["Ufr",[120088]],["ufr",[120114]],["Ugrave",[217]],["ugrave",[249]],["uHar",[10595]],["uharl",[8639]],["uharr",[8638]],["uhblk",[9600]],["ulcorn",[8988]],["ulcorner",[8988]],["ulcrop",[8975]],["ultri",[9720]],["Umacr",[362]],["umacr",[363]],["uml",[168]],["UnderBar",[95]],["UnderBrace",[9183]],["UnderBracket",[9141]],["UnderParenthesis",[9181]],["Union",[8899]],["UnionPlus",[8846]],["Uogon",[370]],["uogon",[371]],["Uopf",[120140]],["uopf",[120166]],["UpArrowBar",[10514]],["uparrow",[8593]],["UpArrow",[8593]],["Uparrow",[8657]],["UpArrowDownArrow",[8645]],["updownarrow",[8597]],["UpDownArrow",[8597]],["Updownarrow",[8661]],["UpEquilibrium",[10606]],["upharpoonleft",[8639]],["upharpoonright",[8638]],["uplus",[8846]],["UpperLeftArrow",[8598]],["UpperRightArrow",[8599]],["upsi",[965]],["Upsi",[978]],["upsih",[978]],["Upsilon",[933]],["upsilon",[965]],["UpTeeArrow",[8613]],["UpTee",[8869]],["upuparrows",[8648]],["urcorn",[8989]],["urcorner",[8989]],["urcrop",[8974]],["Uring",[366]],["uring",[367]],["urtri",[9721]],["Uscr",[119984]],["uscr",[120010]],["utdot",[8944]],["Utilde",[360]],["utilde",[361]],["utri",[9653]],["utrif",[9652]],["uuarr",[8648]],["Uuml",[220]],["uuml",[252]],["uwangle",[10663]],["vangrt",[10652]],["varepsilon",[1013]],["varkappa",[1008]],["varnothing",[8709]],["varphi",[981]],["varpi",[982]],["varpropto",[8733]],["varr",[8597]],["vArr",[8661]],["varrho",[1009]],["varsigma",[962]],["varsubsetneq",[8842,65024]],["varsubsetneqq",[10955,65024]],["varsupsetneq",[8843,65024]],["varsupsetneqq",[10956,65024]],["vartheta",[977]],["vartriangleleft",[8882]],["vartriangleright",[8883]],["vBar",[10984]],["Vbar",[10987]],["vBarv",[10985]],["Vcy",[1042]],["vcy",[1074]],["vdash",[8866]],["vDash",[8872]],["Vdash",[8873]],["VDash",[8875]],["Vdashl",[10982]],["veebar",[8891]],["vee",[8744]],["Vee",[8897]],["veeeq",[8794]],["vellip",[8942]],["verbar",[124]],["Verbar",[8214]],["vert",[124]],["Vert",[8214]],["VerticalBar",[8739]],["VerticalLine",[124]],["VerticalSeparator",[10072]],["VerticalTilde",[8768]],["VeryThinSpace",[8202]],["Vfr",[120089]],["vfr",[120115]],["vltri",[8882]],["vnsub",[8834,8402]],["vnsup",[8835,8402]],["Vopf",[120141]],["vopf",[120167]],["vprop",[8733]],["vrtri",[8883]],["Vscr",[119985]],["vscr",[120011]],["vsubnE",[10955,65024]],["vsubne",[8842,65024]],["vsupnE",[10956,65024]],["vsupne",[8843,65024]],["Vvdash",[8874]],["vzigzag",[10650]],["Wcirc",[372]],["wcirc",[373]],["wedbar",[10847]],["wedge",[8743]],["Wedge",[8896]],["wedgeq",[8793]],["weierp",[8472]],["Wfr",[120090]],["wfr",[120116]],["Wopf",[120142]],["wopf",[120168]],["wp",[8472]],["wr",[8768]],["wreath",[8768]],["Wscr",[119986]],["wscr",[120012]],["xcap",[8898]],["xcirc",[9711]],["xcup",[8899]],["xdtri",[9661]],["Xfr",[120091]],["xfr",[120117]],["xharr",[10231]],["xhArr",[10234]],["Xi",[926]],["xi",[958]],["xlarr",[10229]],["xlArr",[10232]],["xmap",[10236]],["xnis",[8955]],["xodot",[10752]],["Xopf",[120143]],["xopf",[120169]],["xoplus",[10753]],["xotime",[10754]],["xrarr",[10230]],["xrArr",[10233]],["Xscr",[119987]],["xscr",[120013]],["xsqcup",[10758]],["xuplus",[10756]],["xutri",[9651]],["xvee",[8897]],["xwedge",[8896]],["Yacute",[221]],["yacute",[253]],["YAcy",[1071]],["yacy",[1103]],["Ycirc",[374]],["ycirc",[375]],["Ycy",[1067]],["ycy",[1099]],["yen",[165]],["Yfr",[120092]],["yfr",[120118]],["YIcy",[1031]],["yicy",[1111]],["Yopf",[120144]],["yopf",[120170]],["Yscr",[119988]],["yscr",[120014]],["YUcy",[1070]],["yucy",[1102]],["yuml",[255]],["Yuml",[376]],["Zacute",[377]],["zacute",[378]],["Zcaron",[381]],["zcaron",[382]],["Zcy",[1047]],["zcy",[1079]],["Zdot",[379]],["zdot",[380]],["zeetrf",[8488]],["ZeroWidthSpace",[8203]],["Zeta",[918]],["zeta",[950]],["zfr",[120119]],["Zfr",[8488]],["ZHcy",[1046]],["zhcy",[1078]],["zigrarr",[8669]],["zopf",[120171]],["Zopf",[8484]],["Zscr",[119989]],["zscr",[120015]],["zwj",[8205]],["zwnj",[8204]]],r={},i={};!function(e,t){var n=o.length;for(;n--;){var r=o[n],i=r[0],a=r[1],s=a[0],c=s<32||s>126||62===s||60===s||38===s||34===s||39===s,l=void 0;if(c&&(l=t[s]=t[s]||{}),a[1]){var u=a[1];e[i]=String.fromCharCode(s)+String.fromCharCode(u),c&&(l[u]=i)}else e[i]=String.fromCharCode(s),c&&(l[""]=i)}}(r,i);var a=function(){function e(){}return e.prototype.decode=function(e){return e&&e.length?e.replace(/&(#?[\w\d]+);?/g,(function(e,t){var n;if("#"===t.charAt(0)){var o="x"===t.charAt(1)?parseInt(t.substr(2).toLowerCase(),16):parseInt(t.substr(1));isNaN(o)||o<-32768||o>65535||(n=String.fromCharCode(o))}else n=r[t];return n||e})):""},e.decode=function(t){return(new e).decode(t)},e.prototype.encode=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",o=0;o<t;){var r=i[e.charCodeAt(o)];if(r){var a=r[e.charCodeAt(o+1)];if(a?o++:a=r[""],a){n+="&"+a+";",o++;continue}}n+=e.charAt(o),o++}return n},e.encode=function(t){return(new e).encode(t)},e.prototype.encodeNonUTF=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",o=0;o<t;){var r=e.charCodeAt(o),a=i[r];if(a){var s=a[e.charCodeAt(o+1)];if(s?o++:s=a[""],s){n+="&"+s+";",o++;continue}}n+=r<32||r>126?"&#"+r+";":e.charAt(o),o++}return n},e.encodeNonUTF=function(t){return(new e).encodeNonUTF(t)},e.prototype.encodeNonASCII=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",o=0;o<t;){var r=e.charCodeAt(o);r<=255?n+=e[o++]:(n+="&#"+r+";",o++)}return n},e.encodeNonASCII=function(t){return(new e).encodeNonASCII(t)},e}();t.Html5Entities=a},function(e){e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},function(e,t,n){var o=n(601),r=e.exports=Object.create(o),i={tagName:"name"};Object.keys(i).forEach((function(e){var t=i[e];Object.defineProperty(r,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})}))},function(e,t,n){var o=n(600),r=n(602);function i(e,t){this.init(e,t)}function a(e,t){return r.getElementsByTagName(e,t,!0)}function s(e,t){return r.getElementsByTagName(e,t,!0,1)[0]}function c(e,t,n){return r.getText(r.getElementsByTagName(e,t,n,1)).trim()}function l(e,t,n,o,r){var i=c(n,o,r);i&&(e[t]=i)}n(152)(i,o),i.prototype.init=o;var u=function(e){return"rss"===e||"feed"===e||"rdf:RDF"===e};i.prototype.onend=function(){var e,t,n={},r=s(u,this.dom);r&&("feed"===r.name?(t=r.children,n.type="atom",l(n,"id","id",t),l(n,"title","title",t),(e=s("link",t))&&(e=e.attribs)&&(e=e.href)&&(n.link=e),l(n,"description","subtitle",t),(e=c("updated",t))&&(n.updated=new Date(e)),l(n,"author","email",t,!0),n.items=a("entry",t).map((function(e){var t,n={};return l(n,"id","id",e=e.children),l(n,"title","title",e),(t=s("link",e))&&(t=t.attribs)&&(t=t.href)&&(n.link=t),(t=c("summary",e)||c("content",e))&&(n.description=t),(t=c("updated",e))&&(n.pubDate=new Date(t)),n}))):(t=s("channel",r.children).children,n.type=r.name.substr(0,3),n.id="",l(n,"title","title",t),l(n,"link","link",t),l(n,"description","description",t),(e=c("lastBuildDate",t))&&(n.updated=new Date(e)),l(n,"author","managingEditor",t,!0),n.items=a("item",r.children).map((function(e){var t,n={};return l(n,"id","guid",e=e.children),l(n,"title","title",e),l(n,"link","link",e),l(n,"description","description",e),(t=c("pubDate",e))&&(n.pubDate=new Date(t)),n})))),this.dom=n,o.prototype._handleCallback.call(this,r?null:Error("couldn't find root of feed"))},e.exports=i},function(e,t,n){var o=n(167),r=n(431),i=o.isTag;e.exports={getInnerHTML:function(e,t){return e.children?e.children.map((function(e){return r(e,t)})).join(""):""},getOuterHTML:r,getText:function e(t){return Array.isArray(t)?t.map(e).join(""):i(t)?"br"===t.name?"\n":e(t.children):t.type===o.CDATA?e(t.children):t.type===o.Text?t.data:""}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTag=function(e){return"tag"===e.type||"script"===e.type||"style"===e.type},t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encode=t.decodeStrict=t.decode=void 0;var o=n(603),r=n(606);t.decode=function(e,t){return(!t||t<=0?o.decodeXML:o.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?o.decodeXML:o.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?r.encodeXML:r.encodeHTML)(e)};var i=n(606);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return i.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return i.escape}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return i.encodeHTML}});var a=n(603);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return a.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return a.decodeXML}})},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(1020));t.default=function(e){if(e>=55296&&e<=57343||e>1114111)return"<22>";e in r.default&&(e=r.default[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}},function(e){e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},function(e){e.exports=JSON.parse('{"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}}')},function(e,t){var n=t.getChildren=function(e){return e.children},o=t.getParent=function(e){return e.parent};t.getSiblings=function(e){var t=o(e);return t?n(t):[e]},t.getAttributeValue=function(e,t){return e.attribs&&e.attribs[t]},t.hasAttrib=function(e,t){return!!e.attribs&&hasOwnProperty.call(e.attribs,t)},t.getName=function(e){return e.name}},function(e,t){t.removeElement=function(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}},t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var o=t.next=e.next;o&&(o.prev=t);var r=t.parent=e.parent;if(r){var i=r.children;i[i.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(t.parent=e,1!==e.children.push(t)){var n=e.children[e.children.length-2];n.next=t,t.prev=n,t.next=null}},t.append=function(e,t){var n=e.parent,o=e.next;if(t.next=o,t.prev=e,e.next=t,t.parent=n,o){if(o.prev=t,n){var r=n.children;r.splice(r.lastIndexOf(o),0,t)}}else n&&n.children.push(t)},t.prepend=function(e,t){var n=e.parent;if(n){var o=n.children;o.splice(o.lastIndexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},function(e,t,n){var o=n(167).isTag;function r(e,t,n,o){for(var i,a=[],s=0,c=t.length;s<c&&!(e(t[s])&&(a.push(t[s]),--o<=0))&&(i=t[s].children,!(n&&i&&i.length>0&&(i=r(e,i,n,o),a=a.concat(i),(o-=i.length)<=0)));s++);return a}e.exports={filter:function(e,t,n,o){Array.isArray(t)||(t=[t]);"number"==typeof o&&isFinite(o)||(o=1/0);return r(e,t,!1!==n,o)},find:r,findOneChild:function(e,t){for(var n=0,o=t.length;n<o;n++)if(e(t[n]))return t[n];return null},findOne:function e(t,n){for(var r=null,i=0,a=n.length;i<a&&!r;i++)o(n[i])&&(t(n[i])?r=n[i]:n[i].children.length>0&&(r=e(t,n[i].children)));return r},existsOne:function e(t,n){for(var r=0,i=n.length;r<i;r++)if(o(n[r])&&(t(n[r])||n[r].children.length>0&&e(t,n[r].children)))return!0;return!1},findAll:function(e,t){var n=[],r=t.slice();for(;r.length;){var i=r.shift();o(i)&&(i.children&&i.children.length>0&&r.unshift.apply(r,i.children),e(i)&&n.push(i))}return n}}},function(e,t,n){var o=n(167),r=t.isTag=o.isTag;t.testElement=function(e,t){for(var n in e)if(e.hasOwnProperty(n)){if("tag_name"===n){if(!r(t)||!e.tag_name(t.name))return!1}else if("tag_type"===n){if(!e.tag_type(t.type))return!1}else if("tag_contains"===n){if(r(t)||!e.tag_contains(t.data))return!1}else if(!t.attribs||!e[n](t.attribs[n]))return!1}else;return!0};var i={tag_name:function(e){return"function"==typeof e?function(t){return r(t)&&e(t.name)}:"*"===e?r:function(t){return r(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return!r(t)&&e(t.data)}:function(t){return!r(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(n){return n.attribs&&t(n.attribs[e])}:function(n){return n.attribs&&n.attribs[e]===t}}function s(e,t){return function(n){return e(n)||t(n)}}t.getElements=function(e,t,n,o){var r=Object.keys(e).map((function(t){var n=e[t];return t in i?i[t](n):a(t,n)}));return 0===r.length?[]:this.filter(r.reduce(s),t,n,o)},t.getElementById=function(e,t,n){return Array.isArray(t)||(t=[t]),this.findOne(a("id",e),t,!1!==n)},t.getElementsByTagName=function(e,t,n,o){return this.filter(i.tag_name(e),t,n,o)},t.getElementsByTagType=function(e,t,n,o){return this.filter(i.tag_type(e),t,n,o)}},function(e,t){t.removeSubsets=function(e){for(var t,n,o,r=e.length;--r>-1;){for(t=n=e[r],e[r]=null,o=!0;n;){if(e.indexOf(n)>-1){o=!1,e.splice(r,1);break}n=n.parent}o&&(e[r]=t)}return e};var n=1,o=2,r=4,i=8,a=16,s=t.compareDocumentPosition=function(e,t){var s,c,l,u,d,h,p=[],m=[];if(e===t)return 0;for(s=e;s;)p.unshift(s),s=s.parent;for(s=t;s;)m.unshift(s),s=s.parent;for(h=0;p[h]===m[h];)h++;return 0===h?n:(l=(c=p[h-1]).children,u=p[h],d=m[h],l.indexOf(u)>l.indexOf(d)?c===t?r|a:r:c===e?o|i:o)};t.uniqueSort=function(e){var t,n,i=e.length;for(e=e.slice();--i>-1;)t=e[i],(n=e.indexOf(t))>-1&&n<i&&e.splice(i,1);return e.sort((function(e,t){var n=s(e,t);return n&o?-1:n&r?1:0})),e}},function(e,t,n){e.exports=r;var o=n(607);function r(e){o.call(this,new i(this),e)}function i(e){this.scope=e}n(152)(r,o),r.prototype.readable=!0;var a=n(277).EVENTS;Object.keys(a).forEach((function(e){if(0===a[e])i.prototype["on"+e]=function(){this.scope.emit(e)};else if(1===a[e])i.prototype["on"+e]=function(t){this.scope.emit(e,t)};else{if(2!==a[e])throw Error("wrong number of arguments!");i.prototype["on"+e]=function(t,n){this.scope.emit(e,t,n)}}}))},,function(e,t,n){function o(e){this._cbs=e||{}}e.exports=o;var r=n(277).EVENTS;Object.keys(r).forEach((function(e){if(0===r[e])e="on"+e,o.prototype[e]=function(){this._cbs[e]&&this._cbs[e]()};else if(1===r[e])e="on"+e,o.prototype[e]=function(t){this._cbs[e]&&this._cbs[e](t)};else{if(2!==r[e])throw Error("wrong number of arguments");e="on"+e,o.prototype[e]=function(t,n){this._cbs[e]&&this._cbs[e](t,n)}}}))},function(e,t,n){function o(e){this._cbs=e||{},this.events=[]}e.exports=o;var r=n(277).EVENTS;Object.keys(r).forEach((function(e){if(0===r[e])e="on"+e,o.prototype[e]=function(){this.events.push([e]),this._cbs[e]&&this._cbs[e]()};else if(1===r[e])e="on"+e,o.prototype[e]=function(t){this.events.push([e,t]),this._cbs[e]&&this._cbs[e](t)};else{if(2!==r[e])throw Error("wrong number of arguments");e="on"+e,o.prototype[e]=function(t,n){this.events.push([e,t,n]),this._cbs[e]&&this._cbs[e](t,n)}}})),o.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},o.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var e=0,t=this.events.length;e<t;e++)if(this._cbs[this.events[e][0]]){var n=this.events[e].length;1===n?this._cbs[this.events[e][0]]():2===n?this._cbs[this.events[e][0]](this.events[e][1]):this._cbs[this.events[e][0]](this.events[e][1],this.events[e][2])}}},function(e,t,n){"use strict";var o=n(608),r=n(612);t.parse=function(e,t){return new o(t).parse(e)},t.parseFragment=function(e,t,n){return"string"==typeof e&&(n=t,t=e,e=null),new o(n).parseFragment(t,e)},t.serialize=function(e,t){return new r(e,t).serialize()},t.treeAdapters={default:n(433),htmlparser2:n(1038)},t.ParserStream=n(613),t.PlainTextConversionStream=n(1048),t.SerializerStream=n(1049),t.SAXParser=n(1050)},function(e,t,n){"use strict";var o=n(278).CODE_POINTS;var r=e.exports=function(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536};r.prototype.dropParsedChunk=function(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])},r.prototype._addGap=function(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos},r.prototype._processHighRangeCodePoint=function(e){if(this.pos!==this.lastCharPos){var t=this.html.charCodeAt(this.pos+1);r=t,(n=e)>=55296&&n<=56319&&r>=56320&&r<=57343&&(this.pos++,e=function(e,t){return 1024*(e-55296)+9216+t}(e,t),this._addGap())}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,o.EOF;var n,r;return e},r.prototype.write=function(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t},r.prototype.insertHtmlAtCurrentPos=function(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1},r.prototype.advance=function(){if(this.pos++,this.pos>this.lastCharPos)return this.lastChunkWritten||(this.endOfChunkHit=!0),o.EOF;var e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===o.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===o.CARRIAGE_RETURN?(this.skipNextNewLine=!0,o.LINE_FEED):(this.skipNextNewLine=!1,e>=55296?this._processHighRangeCodePoint(e):e)},r.prototype.retreat=function(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}},function(e,t,n){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},function(e,t,n){"use strict";var o=n(153),r=o.TAG_NAMES,i=o.NAMESPACES;function a(e){switch(e.length){case 1:return e===r.P;case 2:return e===r.RB||e===r.RP||e===r.RT||e===r.DD||e===r.DT||e===r.LI;case 3:return e===r.RTC;case 6:return e===r.OPTION;case 8:return e===r.OPTGROUP||e===r.MENUITEM}return!1}function s(e,t){switch(e.length){case 2:if(e===r.TD||e===r.TH)return t===i.HTML;if(e===r.MI||e===r.MO||e===r.MN||e===r.MS)return t===i.MATHML;break;case 4:if(e===r.HTML)return t===i.HTML;if(e===r.DESC)return t===i.SVG;break;case 5:if(e===r.TABLE)return t===i.HTML;if(e===r.MTEXT)return t===i.MATHML;if(e===r.TITLE)return t===i.SVG;break;case 6:return(e===r.APPLET||e===r.OBJECT)&&t===i.HTML;case 7:return(e===r.CAPTION||e===r.MARQUEE)&&t===i.HTML;case 8:return e===r.TEMPLATE&&t===i.HTML;case 13:return e===r.FOREIGN_OBJECT&&t===i.SVG;case 14:return e===r.ANNOTATION_XML&&t===i.MATHML}return!1}var c=e.exports=function(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t};c.prototype._indexOf=function(e){for(var t=-1,n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t},c.prototype._isInTemplate=function(){return this.currentTagName===r.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===i.HTML},c.prototype._updateCurrentElement=function(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null},c.prototype.push=function(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++},c.prototype.pop=function(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()},c.prototype.replace=function(e,t){var n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()},c.prototype.insertAfter=function(e,t){var n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()},c.prototype.popUntilTagNamePopped=function(e){for(;this.stackTop>-1;){var t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===i.HTML)break}},c.prototype.popUntilElementPopped=function(e){for(;this.stackTop>-1;){var t=this.current;if(this.pop(),t===e)break}},c.prototype.popUntilNumberedHeaderPopped=function(){for(;this.stackTop>-1;){var e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===r.H1||e===r.H2||e===r.H3||e===r.H4||e===r.H5||e===r.H6&&t===i.HTML)break}},c.prototype.popUntilTableCellPopped=function(){for(;this.stackTop>-1;){var e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===r.TD||e===r.TH&&t===i.HTML)break}},c.prototype.popAllUpToHtmlElement=function(){this.stackTop=0,this._updateCurrentElement()},c.prototype.clearBackToTableContext=function(){for(;this.currentTagName!==r.TABLE&&this.currentTagName!==r.TEMPLATE&&this.currentTagName!==r.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()},c.prototype.clearBackToTableBodyContext=function(){for(;this.currentTagName!==r.TBODY&&this.currentTagName!==r.TFOOT&&this.currentTagName!==r.THEAD&&this.currentTagName!==r.TEMPLATE&&this.currentTagName!==r.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()},c.prototype.clearBackToTableRowContext=function(){for(;this.currentTagName!==r.TR&&this.currentTagName!==r.TEMPLATE&&this.currentTagName!==r.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()},c.prototype.remove=function(e){for(var t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}},c.prototype.tryPeekProperlyNestedBodyElement=function(){var e=this.items[1];return e&&this.treeAdapter.getTagName(e)===r.BODY?e:null},c.prototype.contains=function(e){return this._indexOf(e)>-1},c.prototype.getCommonAncestor=function(e){var t=this._indexOf(e);return--t>=0?this.items[t]:null},c.prototype.isRootHtmlElementCurrent=function(){return 0===this.stackTop&&this.currentTagName===r.HTML},c.prototype.hasInScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]),o=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&o===i.HTML)return!0;if(s(n,o))return!1}return!0},c.prototype.hasNumberedHeaderInScope=function(){for(var e=this.stackTop;e>=0;e--){var t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===r.H1||t===r.H2||t===r.H3||t===r.H4||t===r.H5||t===r.H6)&&n===i.HTML)return!0;if(s(t,n))return!1}return!0},c.prototype.hasInListItemScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]),o=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&o===i.HTML)return!0;if((n===r.UL||n===r.OL)&&o===i.HTML||s(n,o))return!1}return!0},c.prototype.hasInButtonScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]),o=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&o===i.HTML)return!0;if(n===r.BUTTON&&o===i.HTML||s(n,o))return!1}return!0},c.prototype.hasInTableScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===i.HTML){if(n===e)return!0;if(n===r.TABLE||n===r.TEMPLATE||n===r.HTML)return!1}}return!0},c.prototype.hasTableBodyContextInTableScope=function(){for(var e=this.stackTop;e>=0;e--){var t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===i.HTML){if(t===r.TBODY||t===r.THEAD||t===r.TFOOT)return!0;if(t===r.TABLE||t===r.HTML)return!1}}return!0},c.prototype.hasInSelectScope=function(e){for(var t=this.stackTop;t>=0;t--){var n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===i.HTML){if(n===e)return!0;if(n!==r.OPTION&&n!==r.OPTGROUP)return!1}}return!0},c.prototype.generateImpliedEndTags=function(){for(;a(this.currentTagName);)this.pop()},c.prototype.generateImpliedEndTagsWithExclusion=function(e){for(;a(this.currentTagName)&&this.currentTagName!==e;)this.pop()}},function(e,t,n){"use strict";var o=e.exports=function(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null};o.MARKER_ENTRY="MARKER_ENTRY",o.ELEMENT_ENTRY="ELEMENT_ENTRY",o.prototype._getNoahArkConditionCandidates=function(e){var t=[];if(this.length>=3)for(var n=this.treeAdapter.getAttrList(e).length,r=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e),a=this.length-1;a>=0;a--){var s=this.entries[a];if(s.type===o.MARKER_ENTRY)break;var c=s.element,l=this.treeAdapter.getAttrList(c);this.treeAdapter.getTagName(c)===r&&this.treeAdapter.getNamespaceURI(c)===i&&l.length===n&&t.push({idx:a,attrs:l})}return t.length<3?[]:t},o.prototype._ensureNoahArkCondition=function(e){var t=this._getNoahArkConditionCandidates(e),n=t.length;if(n){for(var o=this.treeAdapter.getAttrList(e),r=o.length,i=Object.create(null),a=0;a<r;a++){var s=o[a];i[s.name]=s.value}for(a=0;a<r;a++)for(var c=0;c<n;c++){var l=t[c].attrs[a];if(i[l.name]!==l.value&&(t.splice(c,1),n--),t.length<3)return}for(a=n-1;a>=2;a--)this.entries.splice(t[a].idx,1),this.length--}},o.prototype.insertMarker=function(){this.entries.push({type:o.MARKER_ENTRY}),this.length++},o.prototype.pushElement=function(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:o.ELEMENT_ENTRY,element:e,token:t}),this.length++},o.prototype.insertElementAfterBookmark=function(e,t){for(var n=this.length-1;n>=0&&this.entries[n]!==this.bookmark;n--);this.entries.splice(n+1,0,{type:o.ELEMENT_ENTRY,element:e,token:t}),this.length++},o.prototype.removeEntry=function(e){for(var t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}},o.prototype.clearToLastMarker=function(){for(;this.length;){var e=this.entries.pop();if(this.length--,e.type===o.MARKER_ENTRY)break}},o.prototype.getElementEntryInScopeWithTagName=function(e){for(var t=this.length-1;t>=0;t--){var n=this.entries[t];if(n.type===o.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(n.element)===e)return n}return null},o.prototype.getElementEntry=function(e){for(var t=this.length-1;t>=0;t--){var n=this.entries[t];if(n.type===o.ELEMENT_ENTRY&&n.element===e)return n}return null}},function(e,t,n){"use strict";var o=n(338),r=n(239),i=n(609),a=n(610),s=n(1037),c=n(153),l=n(137).inherits,u=c.TAG_NAMES,d=e.exports=function(e){o.call(this,e),this.parser=e,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null};l(d,o),d.prototype._setStartLocation=function(e){this.lastStartTagToken?(e.__location=Object.create(this.lastStartTagToken.location),e.__location.startTag=this.lastStartTagToken.location):e.__location=null},d.prototype._setEndLocation=function(e,t){var n=e.__location;if(n)if(t.location){var o=t.location,i=this.parser.treeAdapter.getTagName(e);t.type===r.END_TAG_TOKEN&&i===t.tagName?(n.endTag=Object.create(o),n.endOffset=o.endOffset):n.endOffset=o.startOffset}else t.type===r.EOF_TOKEN&&(n.endOffset=this.posTracker.offset)},d.prototype._getOverriddenMethods=function(e,t){return{_bootstrap:function(n,o){t._bootstrap.call(this,n,o),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null,e.posTracker=new a(this.tokenizer.preprocessor),new i(this.tokenizer),new s(this.openElements,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop:function(n){t._runParsingLoop.call(this,n);for(var o=this.openElements.stackTop;o>=0;o--)e._setEndLocation(this.openElements.items[o],e.currentToken)},_processTokenInForeignContent:function(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken:function(n){if(e.currentToken=n,t._processToken.call(this,n),n.type===r.END_TAG_TOKEN&&(n.tagName===u.HTML||n.tagName===u.BODY&&this.openElements.hasInScope(u.BODY)))for(var o=this.openElements.stackTop;o>=0;o--){var i=this.openElements.items[o];if(this.treeAdapter.getTagName(i)===n.tagName){e._setEndLocation(i,n);break}}},_setDocumentType:function(e){t._setDocumentType.call(this,e);for(var n=this.treeAdapter.getChildNodes(this.document),o=n.length,r=0;r<o;r++){var i=n[r];if(this.treeAdapter.isDocumentTypeNode(i)){i.__location=e.location;break}}},_attachElementToTree:function(n){e._setStartLocation(n),e.lastStartTagToken=null,t._attachElementToTree.call(this,n)},_appendElement:function(n,o){e.lastStartTagToken=n,t._appendElement.call(this,n,o)},_insertElement:function(n,o){e.lastStartTagToken=n,t._insertElement.call(this,n,o)},_insertTemplate:function(n){e.lastStartTagToken=n,t._insertTemplate.call(this,n),this.treeAdapter.getTemplateContent(this.openElements.current).__location=null},_insertFakeRootElement:function(){t._insertFakeRootElement.call(this),this.openElements.current.__location=null},_appendCommentNode:function(e,n){t._appendCommentNode.call(this,e,n);var o=this.treeAdapter.getChildNodes(n);o[o.length-1].__location=e.location},_findFosterParentingLocation:function(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters:function(n){t._insertCharacters.call(this,n);var o=this._shouldFosterParentOnInsertion(),r=o&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,i=this.treeAdapter.getChildNodes(r),a=o&&e.lastFosterParentingLocation.beforeElement?i.indexOf(e.lastFosterParentingLocation.beforeElement)-1:i.length-1,s=i[a];s.__location?s.__location.endOffset=n.location.endOffset:s.__location=n.location}}}},function(e,t,n){"use strict";var o=n(338),r=n(137).inherits,i=e.exports=function(e,t){o.call(this,e),this.onItemPop=t.onItemPop};r(i,o),i.prototype._getOverriddenMethods=function(e,t){return{pop:function(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement:function(){for(var n=this.stackTop;n>0;n--)e.onItemPop(this.items[n]);t.popAllUpToHtmlElement.call(this)},remove:function(n){e.onItemPop(this.current),t.remove.call(this,n)}}}},function(e,t,n){"use strict";var o=n(435),r=n(153).DOCUMENT_MODE,i={element:1,text:3,cdata:4,comment:8},a={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},s=function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])};s.prototype={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return i[this.type]||i.element}},Object.keys(a).forEach((function(e){var t=a[e];Object.defineProperty(s.prototype,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})),t.createDocument=function(){return new s({type:"root",name:"root",parent:null,prev:null,next:null,children:[],"x-mode":r.NO_QUIRKS})},t.createDocumentFragment=function(){return new s({type:"root",name:"root",parent:null,prev:null,next:null,children:[]})},t.createElement=function(e,t,n){for(var o=Object.create(null),r=Object.create(null),i=Object.create(null),a=0;a<n.length;a++){var c=n[a].name;o[c]=n[a].value,r[c]=n[a].namespace,i[c]=n[a].prefix}return new s({type:"script"===e||"style"===e?e:"tag",name:e,namespace:t,attribs:o,"x-attribsNamespace":r,"x-attribsPrefix":i,children:[],parent:null,prev:null,next:null})},t.createCommentNode=function(e){return new s({type:"comment",data:e,parent:null,prev:null,next:null})};var c=function(e){return new s({type:"text",data:e,parent:null,prev:null,next:null})},l=t.appendChild=function(e,t){var n=e.children[e.children.length-1];n&&(n.next=t,t.prev=n),e.children.push(t),t.parent=e},u=t.insertBefore=function(e,t,n){var o=e.children.indexOf(n),r=n.prev;r&&(r.next=t,t.prev=r),n.prev=t,t.next=n,e.children.splice(o,0,t),t.parent=e};t.setTemplateContent=function(e,t){l(e,t)},t.getTemplateContent=function(e){return e.children[0]},t.setDocumentType=function(e,t,n,r){for(var i=o.serializeContent(t,n,r),a=null,c=0;c<e.children.length;c++)if("directive"===e.children[c].type&&"!doctype"===e.children[c].name){a=e.children[c];break}a?(a.data=i,a["x-name"]=t,a["x-publicId"]=n,a["x-systemId"]=r):l(e,new s({type:"directive",name:"!doctype",data:i,"x-name":t,"x-publicId":n,"x-systemId":r}))},t.setDocumentMode=function(e,t){e["x-mode"]=t},t.getDocumentMode=function(e){return e["x-mode"]},t.detachNode=function(e){if(e.parent){var t=e.parent.children.indexOf(e),n=e.prev,o=e.next;e.prev=null,e.next=null,n&&(n.next=o),o&&(o.prev=n),e.parent.children.splice(t,1),e.parent=null}},t.insertText=function(e,t){var n=e.children[e.children.length-1];n&&"text"===n.type?n.data+=t:l(e,c(t))},t.insertTextBefore=function(e,t,n){var o=e.children[e.children.indexOf(n)-1];o&&"text"===o.type?o.data+=t:u(e,c(t),n)},t.adoptAttributes=function(e,t){for(var n=0;n<t.length;n++){var o=t[n].name;void 0===e.attribs[o]&&(e.attribs[o]=t[n].value,e["x-attribsNamespace"][o]=t[n].namespace,e["x-attribsPrefix"][o]=t[n].prefix)}},t.getFirstChild=function(e){return e.children[0]},t.getChildNodes=function(e){return e.children},t.getParentNode=function(e){return e.parent},t.getAttrList=function(e){var t=[];for(var n in e.attribs)t.push({name:n,value:e.attribs[n],namespace:e["x-attribsNamespace"][n],prefix:e["x-attribsPrefix"][n]});return t},t.getTagName=function(e){return e.name},t.getNamespaceURI=function(e){return e.namespace},t.getTextNodeContent=function(e){return e.data},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e["x-name"]},t.getDocumentTypeNodePublicId=function(e){return e["x-publicId"]},t.getDocumentTypeNodeSystemId=function(e){return e["x-systemId"]},t.isTextNode=function(e){return"text"===e.type},t.isCommentNode=function(e){return"comment"===e.type},t.isDocumentTypeNode=function(e){return"directive"===e.type&&"!doctype"===e.name},t.isElementNode=function(e){return!!e.attribs}},,function(e,t,n){"use strict";var o=n(437).Buffer,r=n(1041);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,t.copy(n,r),s+=a.data.length,a=a.next;return i},e}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})},,function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var o=!1;return function(){if(!o){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),o=!0}return e.apply(this,arguments)}}}).call(this,n(5))},function(e,t,n){"use strict";e.exports=i;var o=n(617),r=Object.create(n(279));function i(e){if(!(this instanceof i))return new i(e);o.call(this,e)}r.inherits=n(152),r.inherits(i,o),i.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(438)},function(e,t,n){e.exports=n(207)},function(e,t,n){e.exports=n(436).Transform},function(e,t,n){e.exports=n(436).PassThrough},function(e,t,n){"use strict";var o=n(613),r=n(137).inherits,i=n(153).TAG_NAMES;r(e.exports=function(e){o.call(this,e),this.parser._insertFakeElement(i.HTML),this.parser._insertFakeElement(i.HEAD),this.parser.openElements.pop(),this.parser._insertFakeElement(i.BODY),this.parser._insertFakeElement(i.PRE),this.parser.treeAdapter.insertText(this.parser.openElements.current,"\n"),this.parser.switchToPlaintextParsing()},o)},function(e,t,n){"use strict";var o=n(339).Readable,r=n(137).inherits,i=n(612),a=e.exports=function(e,t){o.call(this),this.serializer=new i(e,t),Object.defineProperty(this.serializer,"html",{get:function(){return""},set:this.push.bind(this)})};r(a,o),a.prototype._read=function(){this.serializer.serialize(),this.push(null)}},function(e,t,n){"use strict";var o=n(339).Transform,r=n(1051),i=n(137).inherits,a=n(239),s=n(609),c=n(1052),l=n(434),u={locationInfo:!1},d=e.exports=function(e){o.call(this),this.options=l(u,e),this.tokenizer=new a(e),this.options.locationInfo&&new s(this.tokenizer),this.parserFeedbackSimulator=new c(this.tokenizer),this.pendingText=null,this.currentTokenLocation=void 0,this.lastChunkWritten=!1,this.stopped=!1,this.pipe(new r)};i(d,o),d.prototype._transform=function(e,t,n){this.stopped||(this.tokenizer.write(e.toString("utf8"),this.lastChunkWritten),this._runParsingLoop()),this.push(e),n()},d.prototype._flush=function(e){e()},d.prototype.end=function(e,t,n){this.lastChunkWritten=!0,o.prototype.end.call(this,e,t,n)},d.prototype.stop=function(){this.stopped=!0},d.prototype._runParsingLoop=function(){do{var e=this.parserFeedbackSimulator.getNextToken();if(e.type===a.HIBERNATION_TOKEN)break;e.type===a.CHARACTER_TOKEN||e.type===a.WHITESPACE_CHARACTER_TOKEN||e.type===a.NULL_CHARACTER_TOKEN?(this.options.locationInfo&&(null===this.pendingText?this.currentTokenLocation=e.location:this.currentTokenLocation.endOffset=e.location.endOffset),this.pendingText=(this.pendingText||"")+e.chars):(this._emitPendingText(),this._handleToken(e))}while(!this.stopped&&e.type!==a.EOF_TOKEN)},d.prototype._handleToken=function(e){this.options.locationInfo&&(this.currentTokenLocation=e.location),e.type===a.START_TAG_TOKEN?this.emit("startTag",e.tagName,e.attrs,e.selfClosing,this.currentTokenLocation):e.type===a.END_TAG_TOKEN?this.emit("endTag",e.tagName,this.currentTokenLocation):e.type===a.COMMENT_TOKEN?this.emit("comment",e.data,this.currentTokenLocation):e.type===a.DOCTYPE_TOKEN&&this.emit("doctype",e.name,e.publicId,e.systemId,this.currentTokenLocation)},d.prototype._emitPendingText=function(){null!==this.pendingText&&(this.emit("text",this.pendingText,this.currentTokenLocation),this.pendingText=null)}},function(e,t,n){"use strict";var o=n(339).Writable,r=n(137),i=e.exports=function(){o.call(this)};r.inherits(i,o),i.prototype._write=function(e,t,n){n()}},function(e,t,n){"use strict";var o=n(239),r=n(611),i=n(278),a=n(153),s=a.TAG_NAMES,c=a.NAMESPACES,l=e.exports=function(e){this.tokenizer=e,this.namespaceStack=[],this.namespaceStackTop=-1,this._enterNamespace(c.HTML)};l.prototype.getNextToken=function(){var e=this.tokenizer.getNextToken();if(e.type===o.START_TAG_TOKEN)this._handleStartTagToken(e);else if(e.type===o.END_TAG_TOKEN)this._handleEndTagToken(e);else if(e.type===o.NULL_CHARACTER_TOKEN&&this.inForeignContent)e.type=o.CHARACTER_TOKEN,e.chars=i.REPLACEMENT_CHARACTER;else if(this.skipNextNewLine&&(e.type!==o.HIBERNATION_TOKEN&&(this.skipNextNewLine=!1),e.type===o.WHITESPACE_CHARACTER_TOKEN&&"\n"===e.chars[0])){if(1===e.chars.length)return this.getNextToken();e.chars=e.chars.substr(1)}return e},l.prototype._enterNamespace=function(e){this.namespaceStackTop++,this.namespaceStack.push(e),this.inForeignContent=e!==c.HTML,this.currentNamespace=e,this.tokenizer.allowCDATA=this.inForeignContent},l.prototype._leaveCurrentNamespace=function(){this.namespaceStackTop--,this.namespaceStack.pop(),this.currentNamespace=this.namespaceStack[this.namespaceStackTop],this.inForeignContent=this.currentNamespace!==c.HTML,this.tokenizer.allowCDATA=this.inForeignContent},l.prototype._ensureTokenizerMode=function(e){e===s.TEXTAREA||e===s.TITLE?this.tokenizer.state=o.MODE.RCDATA:e===s.PLAINTEXT?this.tokenizer.state=o.MODE.PLAINTEXT:e===s.SCRIPT?this.tokenizer.state=o.MODE.SCRIPT_DATA:e!==s.STYLE&&e!==s.IFRAME&&e!==s.XMP&&e!==s.NOEMBED&&e!==s.NOFRAMES&&e!==s.NOSCRIPT||(this.tokenizer.state=o.MODE.RAWTEXT)},l.prototype._handleStartTagToken=function(e){var t=e.tagName;if(t===s.SVG?this._enterNamespace(c.SVG):t===s.MATH&&this._enterNamespace(c.MATHML),this.inForeignContent){if(r.causesExit(e))return void this._leaveCurrentNamespace();var n=this.currentNamespace;n===c.MATHML?r.adjustTokenMathMLAttrs(e):n===c.SVG&&(r.adjustTokenSVGTagName(e),r.adjustTokenSVGAttrs(e)),r.adjustTokenXMLAttrs(e),t=e.tagName,!e.selfClosing&&r.isIntegrationPoint(t,n,e.attrs)&&this._enterNamespace(c.HTML)}else t===s.PRE||t===s.TEXTAREA||t===s.LISTING?this.skipNextNewLine=!0:t===s.IMAGE&&(e.tagName=s.IMG),this._ensureTokenizerMode(t)},l.prototype._handleEndTagToken=function(e){var t=e.tagName;if(this.inForeignContent)(t===s.SVG&&this.currentNamespace===c.SVG||t===s.MATH&&this.currentNamespace===c.MATHML)&&this._leaveCurrentNamespace();else{var n=this.namespaceStack[this.namespaceStackTop-1];n===c.SVG&&r.SVG_TAG_NAMES_ADJUSTMENT_MAP[t]&&(t=r.SVG_TAG_NAMES_ADJUSTMENT_MAP[t]),r.isIntegrationPoint(t,n,e.attrs)&&this._leaveCurrentNamespace()}this.currentNamespace===c.SVG&&r.adjustTokenSVGTagName(e)}},function(e,t,n){var o=n(441),r=n(1056),i=n(144),a=n(621),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||r(e))&&(o(e)?h:s).test(a(e))}},function(e,t,n){var o=n(280),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,s=o?o.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var o=!0}catch(e){}var r=a.call(e);return o&&(t?e[s]=n:delete e[s]),r}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var o,r=n(1057),i=(o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var o=n(127)["__core-js_shared__"];e.exports=o},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var o=n(1060),r=n(619),i=n(281),a=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){e.exports=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}},function(e,t,n){var o=n(240),r=n(193);e.exports=function(e){return r(e)&&"[object Arguments]"==o(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var o=n(240),r=n(448),i=n(193),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&r(e.length)&&!!a[o(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var o=n(620),r=t&&!t.nodeType&&t,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===r&&o.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(224)(e))},function(e,t,n){var o=n(342),r=n(1068),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return r(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var o=n(625)(Object.keys,Object);e.exports=o},function(e,t,n){var o=s(n(430)),r=c(o);t.XML=p(o,r);var i=s(n(429)),a=c(i);function s(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function c(e){var t=[],n=[];return Object.keys(e).forEach((function(e){1===e.length?t.push("\\"+e):n.push(e)})),n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.HTML=p(i,a);var l=/[^\0-\x7F]/g,u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function d(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function h(e){return"&#x"+(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536).toString(16).toUpperCase()+";"}function p(e,t){function n(t){return e[t]}return function(e){return e.replace(t,n).replace(u,h).replace(l,d)}}var m=c(o);t.escape=function(e){return e.replace(m,d).replace(u,h).replace(l,d)}},function(e,t,n){var o=n(429),r=n(599),i=n(430),a=n(598),s=l(i),c=l(o);function l(e){var t=Object.keys(e).join("|"),n=h(e),o=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(o,n)}}var u=function(){for(var e=Object.keys(r).sort(d),t=Object.keys(o).sort(d),n=0,i=0;n<t.length;n++)e[i]===t[n]?(t[n]+=";?",i++):t[n]+=";";var a=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=h(o);function c(e){return";"!==e.substr(-1)&&(e+=";"),s(e)}return function(e){return String(e).replace(a,c)}}();function d(e,t){return e<t?1:-1}function h(e){return function(t){return"#"===t.charAt(1)?"X"===t.charAt(2)||"x"===t.charAt(2)?a(parseInt(t.substr(3),16)):a(parseInt(t.substr(2),10)):e[t.slice(1,-1)]}}e.exports={XML:s,HTML:u,HTMLStrict:c}},function(e,t,n){var o=n(144),r=n(342),i=n(1072),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return i(e);var t=r(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);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 o=n(628),r=n(1074),i=n(1075),a=n(631),s=n(1092),c=n(635),l=n(1093),u=n(637),d=n(638),h=n(1094),p=Math.max;e.exports=function(e,t,n,m,g,f,_,b){var v=2&t;if(!v&&"function"!=typeof e)throw new TypeError("Expected a function");var E=m?m.length:0;if(E||(t&=-97,m=g=void 0),_=void 0===_?_:p(h(_),0),b=void 0===b?b:h(b),E-=g?g.length:0,64&t){var y=m,S=g;m=g=void 0}var T=v?void 0:c(e),w=[e,t,n,m,g,y,S,f,_,b];if(T&&l(w,T),e=w[0],t=w[1],n=w[2],m=w[3],g=w[4],!(b=w[9]=void 0===w[9]?v?0:e.length:p(w[9]-E,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||16==t?i(e,t,b):32!=t&&33!=t||g.length?a.apply(void 0,w):s(e,t,n,m);else var C=r(e,t,n);return d((T?o:u)(C,w),e,t)}},function(e,t,n){var o=n(346),r=n(127);e.exports=function(e,t,n){var i=1&t,a=o(e);return function t(){var o=this&&this!==r&&this instanceof t?a:e;return o.apply(i?n:this,arguments)}}},function(e,t,n){var o=n(445),r=n(346),i=n(631),a=n(634),s=n(456),c=n(348),l=n(127);e.exports=function(e,t,n){var u=r(e);return function r(){for(var d=arguments.length,h=Array(d),p=d,m=s(r);p--;)h[p]=arguments[p];var g=d<3&&h[0]!==m&&h[d-1]!==m?[]:c(h,m);if((d-=g.length)<n)return a(e,t,i,r.placeholder,void 0,h,g,void 0,void 0,n-d);var f=this&&this!==l&&this instanceof r?u:e;return o(f,this,h)}}},function(e,t){e.exports=function(e,t){for(var n=e.length,o=0;n--;)e[n]===t&&++o;return o}},function(e,t,n){var o=n(453),r=n(635),i=n(1079),a=n(1081);e.exports=function(e){var t=i(e),n=a[t];if("function"!=typeof n||!(t in o.prototype))return!1;if(e===n)return!0;var s=r(n);return!!s&&e===s[0]}},function(e,t){e.exports=function(){}},function(e,t,n){var o=n(1080),r=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=o[t],i=r.call(o,t)?n.length:0;i--;){var a=n[i],s=a.func;if(null==s||s==e)return a.name}return t}},function(e,t){e.exports={}},function(e,t,n){var o=n(453),r=n(636),i=n(454),a=n(111),s=n(193),c=n(1082),l=Object.prototype.hasOwnProperty;function u(e){if(s(e)&&!a(e)&&!(e instanceof o)){if(e instanceof r)return e;if(l.call(e,"__wrapped__"))return c(e)}return new r(e)}u.prototype=i.prototype,u.prototype.constructor=u,e.exports=u},function(e,t,n){var o=n(453),r=n(636),i=n(455);e.exports=function(e){if(e instanceof o)return e.clone();var t=new r(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t){var n=/\{\n\/\* \[wrapped with (.+)\] \*/,o=/,? & /;e.exports=function(e){var t=e.match(n);return t?t[1].split(o):[]}},function(e,t){var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,t){var o=t.length;if(!o)return e;var r=o-1;return t[r]=(o>1?"& ":"")+t[r],t=t.join(o>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},function(e,t,n){var o=n(639),r=n(1086),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return o(i,(function(n){var o="_."+n[0];t&n[1]&&!r(e,o)&&e.push(o)})),e.sort()}},function(e,t,n){var o=n(1087);e.exports=function(e,t){return!!(null==e?0:e.length)&&o(e,t,0)>-1}},function(e,t,n){var o=n(1088),r=n(1089),i=n(1090);e.exports=function(e,t,n){return t==t?i(e,t,n):o(e,r,n)}},function(e,t){e.exports=function(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i<r;)if(t(e[i],i,e))return i;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var o=n-1,r=e.length;++o<r;)if(e[o]===t)return o;return-1}},function(e,t,n){var o=n(455),r=n(282),i=Math.min;e.exports=function(e,t){for(var n=e.length,a=i(t.length,n),s=o(e);a--;){var c=t[a];e[a]=r(c,n)?s[c]:void 0}return e}},function(e,t,n){var o=n(445),r=n(346),i=n(127);e.exports=function(e,t,n,a){var s=1&t,c=r(e);return function t(){for(var r=-1,l=arguments.length,u=-1,d=a.length,h=Array(d+l),p=this&&this!==i&&this instanceof t?c:e;++u<d;)h[u]=a[u];for(;l--;)h[u++]=arguments[++r];return o(p,s?n:this,h)}}},function(e,t,n){var o=n(632),r=n(633),i=n(348),a=Math.min;e.exports=function(e,t){var n=e[1],s=t[1],c=n|s,l=c<131,u=128==s&&8==n||128==s&&256==n&&e[7].length<=t[8]||384==s&&t[7].length<=t[8]&&8==n;if(!l&&!u)return e;1&s&&(e[2]=t[2],c|=1&n?0:4);var d=t[3];if(d){var h=e[3];e[3]=h?o(h,d,t[4]):d,e[4]=h?i(e[3],"__lodash_placeholder__"):t[4]}return(d=t[5])&&(h=e[5],e[5]=h?r(h,d,t[6]):d,e[6]=h?i(e[5],"__lodash_placeholder__"):t[6]),(d=t[7])&&(e[7]=d),128&s&&(e[8]=null==e[8]?t[8]:a(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}},function(e,t,n){var o=n(1095);e.exports=function(e){var t=o(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var o=n(1096);e.exports=function(e){return e?(e=o(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var o=n(144),r=n(349),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var o=n(640),r=n(343);e.exports=function(e,t){return e&&o(e,t,r)}},function(e,t){e.exports=function(e){return function(t,n,o){for(var r=-1,i=Object(t),a=o(t),s=a.length;s--;){var c=a[e?s:++r];if(!1===n(i[c],c,i))break}return t}}},function(e,t,n){var o=n(209);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!o(n))return e(n,r);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==r(s[a],a,s););return n}}},function(e,t,n){var o=n(281);e.exports=function(e){return"function"==typeof e?e:o}},function(e,t,n){var o=n(457),r=n(283),i=r.isTag,a=r.domEach,s=Object.prototype.hasOwnProperty,c=r.camelCase,l=r.cssCase,u=/\s+/,d={forEach:n(350),extend:n(627),some:n(1147)},h={null:null,true:!0,false:!1},p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,m=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,g=function(e,t){if(e&&i(e))return e.attribs||(e.attribs={}),t?s.call(e.attribs,t)?p.test(t)?t:e.attribs[t]:"option"===e.name&&"value"===t?o.text(e.children):"input"!==e.name||"radio"!==e.attribs.type&&"checkbox"!==e.attribs.type||"value"!==t?void 0:"on":e.attribs},f=function(e,t,n){null===n?E(e,t):e.attribs[t]=n+""};t.attr=function(e,t){return"object"==typeof e||void 0!==t?a(this,"function"==typeof t?function(n,o){f(o,e,t.call(o,n,o.attribs[e]))}:function(n,o){i(o)&&("object"==typeof e?d.forEach(e,(function(e,t){f(o,t,e)})):f(o,e,t))}):g(this[0],e)};var _=function(e,t){if(e&&i(e))return s.call(e,t)?e[t]:p.test(t)?void 0!==g(e,t):g(e,t)},b=function(e,t,n){e[t]=p.test(t)?!!n:n};t.prop=function(e,t){var n,o=0;if("string"==typeof e&&void 0===t){switch(e){case"style":n=this.css(),d.forEach(n,(function(e,t){n[o++]=t})),n.length=o;break;case"tagName":case"nodeName":n=this[0].name.toUpperCase();break;default:n=_(this[0],e)}return n}if("object"==typeof e||void 0!==t)return a(this,"function"==typeof t?function(n,o){b(o,e,t.call(o,n,_(o,e)))}:function(n,o){i(o)&&("object"==typeof e?d.forEach(e,(function(e,t){b(o,t,e)})):b(o,e,t))})};var v=function(e,t){var n,o,r,i,a,u,d,p=1===arguments.length;for(p?r=(n=Object.keys(e.attribs).filter((function(e){return"data-"===e.slice(0,"data-".length)}))).map((function(e){return c(e.slice("data-".length))})):(n=["data-"+l(t)],r=[t]),u=0,d=n.length;u<d;++u)if(o=n[u],i=r[u],s.call(e.attribs,o)){if(a=e.attribs[o],s.call(h,a))a=h[a];else if(a===String(Number(a)))a=Number(a);else if(m.test(a))try{a=JSON.parse(a)}catch(e){}e.data[i]=a}return p?e.data:a};t.data=function(e,t){var n=this[0];if(n&&i(n))return n.data||(n.data={}),e?"object"==typeof e||void 0!==t?(a(this,(function(n,o){!function(e,t,n){if(e.data||(e.data={}),"object"==typeof t)return d.extend(e.data,t);"string"==typeof t&&void 0!==n&&(e.data[t]=n)}(o,e,t)})),this):s.call(n.data,e)?n.data[e]:v(n,e):v(n)},t.val=function(e){var t=0===arguments.length,n=this[0];if(n)switch(n.name){case"textarea":return this.text(e);case"input":switch(this.attr("type")){case"radio":return t?this.attr("value"):(this.attr("value",e),this);default:return this.attr("value",e)}return;case"select":var o,r=this.find("option:selected");if(void 0===r)return;if(!t){if(!s.call(this.attr(),"multiple")&&"object"==typeof e)return this;"object"!=typeof e&&(e=[e]),this.find("option").removeAttr("selected");for(var i=0;i<e.length;i++)this.find('option[value="'+e[i]+'"]').attr("selected","");return this}return o=r.attr("value"),s.call(this.attr(),"multiple")&&(o=[],a(r,(function(e,t){o.push(g(t,"value"))}))),o;case"option":return t?this.attr("value"):(this.attr("value",e),this)}};var E=function(e,t){e.attribs&&s.call(e.attribs,t)&&delete e.attribs[t]};t.removeAttr=function(e){return a(this,(function(t,n){E(n,e)})),this},t.hasClass=function(e){return d.some(this,(function(t){var n,o=t.attribs,r=o&&o.class,i=-1;if(r&&e.length)for(;(i=r.indexOf(e,i+1))>-1;)if(n=i+e.length,(0===i||u.test(r[i-1]))&&(n===r.length||u.test(r[n])))return!0}))},t.addClass=function(e){if("function"==typeof e)return a(this,(function(n,o){var r=o.attribs.class||"";t.addClass.call([o],e.call(o,n,r))}));if(!e||"string"!=typeof e)return this;for(var n=e.split(u),o=this.length,r=0;r<o;r++)if(i(this[r])){var s,c,l=g(this[r],"class");if(l){c=" "+l+" ",s=n.length;for(var d=0;d<s;d++){var h=n[d]+" ";c.indexOf(" "+h)<0&&(c+=h)}f(this[r],"class",c.trim())}else f(this[r],"class",n.join(" ").trim())}return this};var y=function(e){return e?e.trim().split(u):[]};t.removeClass=function(e){var n,o,r;return"function"==typeof e?a(this,(function(n,o){t.removeClass.call([o],e.call(o,n,o.attribs.class||""))})):(n=y(e),o=n.length,r=0===arguments.length,a(this,(function(e,t){if(i(t))if(r)t.attribs.class="";else{for(var a,s,c=y(t.attribs.class),l=0;l<o;l++)(a=c.indexOf(n[l]))>=0&&(c.splice(a,1),s=!0,l--);s&&(t.attribs.class=c.join(" "))}})))},t.toggleClass=function(e,n){if("function"==typeof e)return a(this,(function(o,r){t.toggleClass.call([r],e.call(r,o,r.attribs.class||"",n),n)}));if(!e||"string"!=typeof e)return this;for(var o,r,s=e.split(u),c=s.length,l="boolean"==typeof n?n?1:-1:0,d=this.length,h=0;h<d;h++)if(i(this[h])){o=y(this[h].attribs.class);for(var p=0;p<c;p++)r=o.indexOf(s[p]),l>=0&&r<0?o.push(s[p]):l<=0&&r>=0&&o.splice(r,1);this[h].attribs.class=o.join(" ")}return this},t.is=function(e){return!!e&&this.filter(e).length>0}},function(e,t,n){var o=n(167),r=n(431),i=o.isTag;e.exports={getInnerHTML:function(e,t){return e.children?e.children.map((function(e){return r(e,t)})).join(""):""},getOuterHTML:r,getText:function e(t){return Array.isArray(t)?t.map(e).join(""):i(t)||t.type===o.CDATA?e(t.children):t.type===o.Text?t.data:""}}},function(e,t){var n=t.getChildren=function(e){return e.children},o=t.getParent=function(e){return e.parent};t.getSiblings=function(e){var t=o(e);return t?n(t):[e]},t.getAttributeValue=function(e,t){return e.attribs&&e.attribs[t]},t.hasAttrib=function(e,t){return!!e.attribs&&hasOwnProperty.call(e.attribs,t)},t.getName=function(e){return e.name}},function(e,t){t.removeElement=function(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}},t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var o=t.next=e.next;o&&(o.prev=t);var r=t.parent=e.parent;if(r){var i=r.children;i[i.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(t.parent=e,1!==e.children.push(t)){var n=e.children[e.children.length-2];n.next=t,t.prev=n,t.next=null}},t.append=function(e,t){var n=e.parent,o=e.next;if(t.next=o,t.prev=e,e.next=t,t.parent=n,o){if(o.prev=t,n){var r=n.children;r.splice(r.lastIndexOf(o),0,t)}}else n&&n.children.push(t)},t.prepend=function(e,t){var n=e.parent;if(n){var o=n.children;o.splice(o.lastIndexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},function(e,t,n){var o=n(167).isTag;function r(e,t,n,o){for(var i,a=[],s=0,c=t.length;s<c&&!(e(t[s])&&(a.push(t[s]),--o<=0))&&(i=t[s].children,!(n&&i&&i.length>0&&(i=r(e,i,n,o),a=a.concat(i),(o-=i.length)<=0)));s++);return a}e.exports={filter:function(e,t,n,o){Array.isArray(t)||(t=[t]);"number"==typeof o&&isFinite(o)||(o=1/0);return r(e,t,!1!==n,o)},find:r,findOneChild:function(e,t){for(var n=0,o=t.length;n<o;n++)if(e(t[n]))return t[n];return null},findOne:function e(t,n){for(var r=null,i=0,a=n.length;i<a&&!r;i++)o(n[i])&&(t(n[i])?r=n[i]:n[i].children.length>0&&(r=e(t,n[i].children)));return r},existsOne:function e(t,n){for(var r=0,i=n.length;r<i;r++)if(o(n[r])&&(t(n[r])||n[r].children.length>0&&e(t,n[r].children)))return!0;return!1},findAll:function e(t,n){for(var r=[],i=0,a=n.length;i<a;i++)o(n[i])&&(t(n[i])&&r.push(n[i]),n[i].children.length>0&&(r=r.concat(e(t,n[i].children))));return r}}},function(e,t,n){var o=n(167),r=t.isTag=o.isTag;t.testElement=function(e,t){for(var n in e)if(e.hasOwnProperty(n)){if("tag_name"===n){if(!r(t)||!e.tag_name(t.name))return!1}else if("tag_type"===n){if(!e.tag_type(t.type))return!1}else if("tag_contains"===n){if(r(t)||!e.tag_contains(t.data))return!1}else if(!t.attribs||!e[n](t.attribs[n]))return!1}else;return!0};var i={tag_name:function(e){return"function"==typeof e?function(t){return r(t)&&e(t.name)}:"*"===e?r:function(t){return r(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return!r(t)&&e(t.data)}:function(t){return!r(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(n){return n.attribs&&t(n.attribs[e])}:function(n){return n.attribs&&n.attribs[e]===t}}function s(e,t){return function(n){return e(n)||t(n)}}t.getElements=function(e,t,n,o){var r=Object.keys(e).map((function(t){var n=e[t];return t in i?i[t](n):a(t,n)}));return 0===r.length?[]:this.filter(r.reduce(s),t,n,o)},t.getElementById=function(e,t,n){return Array.isArray(t)||(t=[t]),this.findOne(a("id",e),t,!1!==n)},t.getElementsByTagName=function(e,t,n,o){return this.filter(i.tag_name(e),t,n,o)},t.getElementsByTagType=function(e,t,n,o){return this.filter(i.tag_type(e),t,n,o)}},function(e,t){t.removeSubsets=function(e){for(var t,n,o,r=e.length;--r>-1;){for(t=n=e[r],e[r]=null,o=!0;n;){if(e.indexOf(n)>-1){o=!1,e.splice(r,1);break}n=n.parent}o&&(e[r]=t)}return e};var n=1,o=2,r=4,i=8,a=16,s=t.compareDocumentPosition=function(e,t){var s,c,l,u,d,h,p=[],m=[];if(e===t)return 0;for(s=e;s;)p.unshift(s),s=s.parent;for(s=t;s;)m.unshift(s),s=s.parent;for(h=0;p[h]===m[h];)h++;return 0===h?n:(l=(c=p[h-1]).children,u=p[h],d=m[h],l.indexOf(u)>l.indexOf(d)?c===t?r|a:r:c===e?o|i:o)};t.uniqueSort=function(e){var t,n,i=e.length;for(e=e.slice();--i>-1;)t=e[i],(n=e.indexOf(t))>-1&&n<i&&e.splice(i,1);return e.sort((function(e,t){var n=s(e,t);return n&o?-1:n&r?1:0})),e}},function(e,t,n){var o=n(1109),r=n(1110);e.exports=function(e){return r(o(e))},e.exports.parse=o,e.exports.compile=r},function(e,t){e.exports=function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];var t,o=e.match(n);if(!o)throw new SyntaxError("n-th rule couldn't be parsed ('"+e+"')");return o[1]?(t=parseInt(o[1],10),isNaN(t)&&(t="-"===o[1].charAt(0)?-1:1)):t=0,[t,o[3]?parseInt((o[2]||"")+o[3],10):0]};var n=/^([+\-]?\d*n)?\s*(?:([+\-]?)\s*(\d+))?$/},function(e,t,n){e.exports=function(e){var t=e[0],n=e[1]-1;if(n<0&&t<=0)return i;if(-1===t)return function(e){return e<=n};if(0===t)return function(e){return e===n};if(1===t)return n<0?r:function(e){return e>=n};var o=n%t;o<0&&(o+=t);if(t>1)return function(e){return e>=n&&e%t===o};return t*=-1,function(e){return e<=n&&e%t===o}};var o=n(286),r=o.trueFunc,i=o.falseFunc},function(e,t,n){e.exports=function(e,t,n){return h(p(e,t,n))},e.exports.compileUnsafe=p,e.exports.compileToken=v;var o=n(1112),r=n(285),i=r.isTag,a=n(1113),s=n(1114),c=n(286),l=c.trueFunc,u=c.falseFunc,d=n(644);function h(e){return function(t){return i(t)&&e(t)}}function p(e,t,n){return v(o(e,t),t,n)}function m(e){return"pseudo"===e.type&&("scope"===e.name||Array.isArray(e.data)&&e.data.some((function(e){return e.some(m)})))}var g={type:"descendant"},f={type:"pseudo",name:"scope"},_={},b=r.getParent;function v(e,t,n){(e=e.filter((function(e){return e.length>0}))).forEach(s);var o=Array.isArray(n);return(n=t&&t.context||n)&&!o&&(n=[n]),function(e,t){var n=!!t&&!!t.length&&t.every((function(e){return e===_||!!b(e)}));e.forEach((function(e){if(e.length>0&&E(e[0])&&"descendant"!==e[0].type);else{if(!n||m(e))return;e.unshift(g)}e.unshift(f)}))}(e,n),e.map((function(e){return function(e,t,n,o){var r=o&&"scope"===e[0].name&&"descendant"===e[1].type;return e.reduce((function(e,o,i){return e===u?e:a[o.type](e,o,t,n,r&&1===i)}),t&&t.rootFunc||l)}(e,t,n,o)})).reduce(y,u)}function E(e){return d[e.type]<0}function y(e,t){return t===u||e===l?e:e===u||t===l?t:function(n){return e(n)||t(n)}}var S=n(458).filters,T=r.existsOne,w=(i=r.isTag,r.getChildren);function C(e){return e.some(E)}S.not=function(e,t,n,o){var r={xmlMode:!(!n||!n.xmlMode),strict:!(!n||!n.strict)};if(r.strict&&(t.length>1||t.some(C)))throw new SyntaxError("complex selectors in :not aren't allowed in strict mode");var i=v(t,r,o);return i===u?e:i===l?u:function(t){return!i(t)&&e(t)}},S.has=function(e,t,n){var o={xmlMode:!(!n||!n.xmlMode),strict:!(!n||!n.strict)},r=t.some(C)?[_]:null,a=v(t,o,r);return a===u?u:a===l?function(t){return w(t).some(i)&&e(t)}:(a=h(a),r?function(t){return e(t)&&(r[0]=t,T(a,w(t)))}:function(t){return e(t)&&T(a,w(t))})},S.matches=function(e,t,n,o){return v(t,{xmlMode:!(!n||!n.xmlMode),strict:!(!n||!n.strict),rootFunc:e},o)}},function(e,t,n){"use strict";e.exports=function(e,t){var n=[];if(""!==(e=function e(t,n,r){var h,f,_,b,v=[],E=!1;function y(){var e=n.match(o)[0];return n=n.substr(e.length),p(e)}function S(e){for(;m(n.charAt(e));)e++;n=n.substr(e)}function T(e){for(var t=0;"\\"===n.charAt(--e);)t++;return 1==(1&t)}S(0);for(;""!==n;)if(m(f=n.charAt(0)))E=!0,S(1);else if(f in s)v.push({type:s[f]}),E=!1,S(1);else if(","===f){if(0===v.length)throw new SyntaxError("empty sub-selector");t.push(v),v=[],E=!1,S(1)}else if(E&&(v.length>0&&v.push({type:"descendant"}),E=!1),"*"===f)n=n.substr(1),v.push({type:"universal"});else if(f in c)n=n.substr(1),v.push({type:"attribute",name:c[f][0],action:c[f][1],value:y(),ignoreCase:!1});else if("["===f){if(n=n.substr(1),!(h=n.match(i)))throw new SyntaxError("Malformed attribute selector: "+n);n=n.substr(h[0].length),_=p(h[1]),r&&("lowerCaseAttributeNames"in r?!r.lowerCaseAttributeNames:r.xmlMode)||(_=_.toLowerCase()),v.push({type:"attribute",name:_,action:a[h[2]],value:p(h[4]||h[5]||""),ignoreCase:!!h[6]})}else if(":"===f){if(":"===n.charAt(1)){n=n.substr(2),v.push({type:"pseudo-element",name:y().toLowerCase()});continue}if(n=n.substr(1),_=y().toLowerCase(),h=null,"("===n.charAt(0))if(_ in l){var w=(b=n.charAt(1))in d;if(n=n.substr(w+1),n=e(h=[],n,r),w){if(n.charAt(0)!==b)throw new SyntaxError("unmatched quotes in :"+_);n=n.substr(1)}if(")"!==n.charAt(0))throw new SyntaxError("missing closing parenthesis in :"+_+" "+n);n=n.substr(1)}else{for(var C=1,x=1;x>0&&C<n.length;C++)"("!==n.charAt(C)||T(C)?")"!==n.charAt(C)||T(C)||x--:x++;if(x)throw new SyntaxError("parenthesis not matched");h=n.substr(1,C-2),n=n.substr(C),_ in u&&((b=h.charAt(0))===h.slice(-1)&&b in d&&(h=h.slice(1,-1)),h=p(h))}v.push({type:"pseudo",name:_,data:h})}else{if(!o.test(n))return v.length&&"descendant"===v[v.length-1].type&&v.pop(),g(t,v),n;_=y(),r&&("lowerCaseTags"in r?!r.lowerCaseTags:r.xmlMode)||(_=_.toLowerCase()),v.push({type:"tag",name:_})}return g(t,v),n}(n,e+"",t)))throw new SyntaxError("Unmatched selector: "+e);return n};var o=/^(?:\\.|[\w\-\u00b0-\uFFFF])+/,r=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,i=/^\s*((?:\\.|[\w\u00b0-\uFFFF\-])+)\s*(?:(\S?)=\s*(?:(['"])([^]*?)\3|(#?(?:\\.|[\w\u00b0-\uFFFF\-])*)|)|)\s*(i)?\]/,a={__proto__:null,undefined:"exists","":"equals","~":"element","^":"start",$:"end","*":"any","!":"not","|":"hyphen"},s={__proto__:null,">":"child","<":"parent","~":"sibling","+":"adjacent"},c={__proto__:null,"#":["id","equals"],".":["class","element"]},l={__proto__:null,has:!0,not:!0,matches:!0},u={__proto__:null,contains:!0,icontains:!0},d={__proto__:null,'"':!0,"'":!0};function h(e,t,n){var o="0x"+t-65536;return o!=o||n?t:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)}function p(e){return e.replace(r,h)}function m(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function g(e,t){if(e.length>0&&0===t.length)throw new SyntaxError("empty sub-selector");e.push(t)}},function(e,t,n){var o=n(285),r=o.isTag,i=o.getParent,a=o.getChildren,s=o.getSiblings,c=o.getName;e.exports={__proto__:null,attribute:n(643).compile,pseudo:n(458).compile,tag:function(e,t){var n=t.name;return function(t){return c(t)===n&&e(t)}},descendant:function(e,t,n,o,r){return function(t){if(r&&e(t))return!0;for(var n=!1;!n&&(t=i(t));)n=e(t);return n}},parent:function(e,t,n){if(n&&n.strict)throw SyntaxError("Parent selector isn't part of CSS3");return function(e){return a(e).some(o)};function o(t){return r(t)&&e(t)}},child:function(e){return function(t){var n=i(t);return!!n&&e(n)}},sibling:function(e){return function(t){for(var n=s(t),o=0;o<n.length;o++)if(r(n[o])){if(n[o]===t)break;if(e(n[o]))return!0}return!1}},adjacent:function(e){return function(t){for(var n,o=s(t),i=0;i<o.length;i++)if(r(o[i])){if(o[i]===t)break;n=o[i]}return!!n&&e(n)}},universal:function(e){return e}}},function(e,t,n){e.exports=function(e){for(var t=e.map(i),n=1;n<e.length;n++){var o=t[n];if(!(o<0))for(var r=n-1;r>=0&&o<t[r];r--){var a=e[r+1];e[r+1]=e[r],e[r]=a,t[r+1]=t[r],t[r]=o}}};var o=n(644),r={__proto__:null,exists:10,equals:8,not:7,start:6,end:6,any:5,hyphen:4,element:4};function i(e){var t=o[e.type];if(t===o.attribute)(t=r[e.action])===r.equals&&"id"===e.name&&(t=9),e.ignoreCase&&(t>>=1);else if(t===o.pseudo)if(e.data)if("has"===e.name||"contains"===e.name)t=0;else if("matches"===e.name||"not"===e.name){t=0;for(var n=0;n<e.data.length;n++)if(1===e.data[n].length){var a=i(e.data[n][0]);if(0===a){t=0;break}a>t&&(t=a)}e.data.length>1&&t>0&&(t-=1)}else t=1;else t=3;return t}},function(e,t,n){var o=n(1116),r=n(443)((function(e,t,n){o(e,t,n)}));e.exports=r},function(e,t,n){var o=n(459),r=n(645),i=n(640),a=n(1139),s=n(144),c=n(345),l=n(648);e.exports=function e(t,n,u,d,h){t!==n&&i(n,(function(i,c){if(h||(h=new o),s(i))a(t,n,c,u,e,d,h);else{var p=d?d(l(t,c),i,c+"",t,n,h):void 0;void 0===p&&(p=i),r(t,c,p)}}),c)}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var o=n(352),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=o(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},function(e,t,n){var o=n(352);e.exports=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var o=n(352);e.exports=function(e){return o(this.__data__,e)>-1}},function(e,t,n){var o=n(352);e.exports=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},function(e,t,n){var o=n(351);e.exports=function(){this.__data__=new o,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 o=n(351),r=n(460),i=n(461);e.exports=function(e,t){var n=this.__data__;if(n instanceof o){var a=n.__data__;if(!r||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var o=n(1128),r=n(351),i=n(460);e.exports=function(){this.size=0,this.__data__={hash:new o,map:new(i||r),string:new o}}},function(e,t,n){var o=n(1129),r=n(1130),i=n(1131),a=n(1132),s=n(1133);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}c.prototype.clear=o,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var o=n(353);e.exports=function(){this.__data__=o?o(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 o=n(353),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(o){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},function(e,t,n){var o=n(353),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return o?void 0!==t[e]:r.call(t,e)}},function(e,t,n){var o=n(353);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var o=n(354);e.exports=function(e){var t=o(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 o=n(354);e.exports=function(e){return o(this,e).get(e)}},function(e,t,n){var o=n(354);e.exports=function(e){return o(this,e).has(e)}},function(e,t,n){var o=n(354);e.exports=function(e,t){var n=o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},function(e,t,n){var o=n(645),r=n(1140),i=n(1141),a=n(455),s=n(1143),c=n(344),l=n(111),u=n(1144),d=n(449),h=n(441),p=n(144),m=n(1145),g=n(450),f=n(648),_=n(1146);e.exports=function(e,t,n,b,v,E,y){var S=f(e,n),T=f(t,n),w=y.get(T);if(w)o(e,n,w);else{var C=E?E(S,T,n+"",e,t,y):void 0,x=void 0===C;if(x){var O=l(T),k=!O&&d(T),R=!O&&!k&&g(T);C=T,O||k||R?l(S)?C=S:u(S)?C=a(S):k?(x=!1,C=r(T,!0)):R?(x=!1,C=i(T,!0)):C=[]:m(T)||c(T)?(C=S,c(S)?C=_(S):p(S)&&!h(S)||(C=s(T))):x=!1}x&&(y.set(T,C),v(C,T,b,E,y),y.delete(T)),o(e,n,C)}}},function(e,t,n){(function(e){var o=n(127),r=t&&!t.nodeType&&t,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===r?o.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,o=s?s(n):new e.constructor(n);return e.copy(o),o}}).call(this,n(224)(e))},function(e,t,n){var o=n(1142);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var o=n(646);e.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}},function(e,t,n){var o=n(347),r=n(647),i=n(342);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:o(r(e))}},function(e,t,n){var o=n(209),r=n(193);e.exports=function(e){return r(e)&&o(e)}},function(e,t,n){var o=n(240),r=n(647),i=n(193),a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=o(e))return!1;var t=r(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},function(e,t,n){var o=n(442),r=n(345);e.exports=function(e){return o(e,r(e))}},function(e,t,n){var o=n(649),r=n(287),i=n(1180),a=n(111),s=n(447);e.exports=function(e,t,n){var c=a(e)?o:i;return n&&s(e,t,n)&&(t=void 0),c(e,r(t,3))}},function(e,t,n){var o=n(1149),r=n(1167),i=n(654);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||o(n,e,t)}}},function(e,t,n){var o=n(459),r=n(650);e.exports=function(e,t,n,i){var a=n.length,s=a,c=!i;if(null==e)return!s;for(e=Object(e);a--;){var l=n[a];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var u=(l=n[a])[0],d=e[u],h=l[1];if(c&&l[2]){if(void 0===d&&!(u in e))return!1}else{var p=new o;if(i)var m=i(d,h,u,e,t,p);if(!(void 0===m?r(h,d,3,i,p):m))return!1}}return!0}},function(e,t,n){var o=n(459),r=n(651),i=n(1155),a=n(1158),s=n(1163),c=n(111),l=n(449),u=n(450),d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,p,m,g){var f=c(e),_=c(t),b=f?"[object Array]":s(e),v=_?"[object Array]":s(t),E=(b="[object Arguments]"==b?d:b)==d,y=(v="[object Arguments]"==v?d:v)==d,S=b==v;if(S&&l(e)){if(!l(t))return!1;f=!0,E=!1}if(S&&!E)return g||(g=new o),f||u(e)?r(e,t,n,p,m,g):i(e,t,b,n,p,m,g);if(!(1&n)){var T=E&&h.call(e,"__wrapped__"),w=y&&h.call(t,"__wrapped__");if(T||w){var C=T?e.value():e,x=w?t.value():t;return g||(g=new o),m(C,x,n,p,g)}}return!!S&&(g||(g=new o),a(e,t,n,p,m,g))}},function(e,t,n){var o=n(461),r=n(1152),i=n(1153);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,e.exports=a},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){return e.has(t)}},function(e,t,n){var o=n(280),r=n(646),i=n(241),a=n(651),s=n(1156),c=n(1157),l=o?o.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,n,o,l,d,h){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||!d(new r(e),new r(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 p=s;case"[object Set]":var m=1&o;if(p||(p=c),e.size!=t.size&&!m)return!1;var g=h.get(e);if(g)return g==t;o|=2,h.set(e,t);var f=a(p(e),p(t),o,l,d,h);return h.delete(e),f;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,o){n[++t]=[o,e]})),n}},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,n){var o=n(1159),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var c=1&n,l=o(e),u=l.length;if(u!=o(t).length&&!c)return!1;for(var d=u;d--;){var h=l[d];if(!(c?h in t:r.call(t,h)))return!1}var p=s.get(e),m=s.get(t);if(p&&m)return p==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);for(var f=c;++d<u;){var _=e[h=l[d]],b=t[h];if(i)var v=c?i(b,_,h,t,e,s):i(_,b,h,e,t,s);if(!(void 0===v?_===b||a(_,b,n,i,s):v)){g=!1;break}f||(f="constructor"==h)}if(g&&!f){var E=e.constructor,y=t.constructor;E==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof y&&y instanceof y||(g=!1)}return s.delete(e),s.delete(t),g}},function(e,t,n){var o=n(1160),r=n(1161),i=n(343);e.exports=function(e){return o(e,i,r)}},function(e,t,n){var o=n(652),r=n(111);e.exports=function(e,t,n){var i=t(e);return r(e)?i:o(i,n(e))}},function(e,t,n){var o=n(462),r=n(1162),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),o(a(e),(function(t){return i.call(e,t)})))}:r;e.exports=s},function(e,t){e.exports=function(){return[]}},function(e,t,n){var o=n(1164),r=n(460),i=n(1165),a=n(1166),s=n(630),c=n(240),l=n(621),u=l(o),d=l(r),h=l(i),p=l(a),m=l(s),g=c;(o&&"[object DataView]"!=g(new o(new ArrayBuffer(1)))||r&&"[object Map]"!=g(new r)||i&&"[object Promise]"!=g(i.resolve())||a&&"[object Set]"!=g(new a)||s&&"[object WeakMap]"!=g(new s))&&(g=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,o=n?l(n):"";if(o)switch(o){case u:return"[object DataView]";case d:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case m:return"[object WeakMap]"}return t}),e.exports=g},function(e,t,n){var o=n(208)(n(127),"DataView");e.exports=o},function(e,t,n){var o=n(208)(n(127),"Promise");e.exports=o},function(e,t,n){var o=n(208)(n(127),"Set");e.exports=o},function(e,t,n){var o=n(653),r=n(343);e.exports=function(e){for(var t=r(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,o(a)]}return t}},function(e,t,n){var o=n(650),r=n(1169),i=n(656),a=n(464),s=n(653),c=n(654),l=n(288);e.exports=function(e,t){return a(e)&&s(t)?c(l(e),t):function(n){var a=r(n,e);return void 0===a&&a===t?i(n,e):o(t,a,3)}}},function(e,t,n){var o=n(463);e.exports=function(e,t,n){var r=null==e?void 0:o(e,t);return void 0===r?n:r}},function(e,t,n){var o=n(1171),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=o((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,o,r){t.push(o?r.replace(i,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var o=n(1172);e.exports=function(e){var t=o(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var o=n(461);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var a=e.apply(this,o);return n.cache=i.set(r,a)||i,a};return n.cache=new(r.Cache||o),n}r.Cache=o,e.exports=r},function(e,t,n){var o=n(1174);e.exports=function(e){return null==e?"":o(e)}},function(e,t,n){var o=n(280),r=n(655),i=n(111),a=n(349),s=o?o.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return r(t,e)+"";if(a(t))return c?c.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 o=n(355),r=n(344),i=n(111),a=n(282),s=n(448),c=n(288);e.exports=function(e,t,n){for(var l=-1,u=(t=o(t,e)).length,d=!1;++l<u;){var h=c(t[l]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++l!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(h,u)&&(i(e)||r(e))}},function(e,t,n){var o=n(1178),r=n(1179),i=n(464),a=n(288);e.exports=function(e){return i(e)?o(a(e)):r(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var o=n(463);e.exports=function(e){return function(t){return o(t,e)}}},function(e,t,n){var o=n(284);e.exports=function(e,t){var n;return o(e,(function(e,o,r){return!(n=t(e,o,r))})),!!n}},function(e,t,n){var o=n(642),r=n(283),i=r.domEach,a=n(277).DomUtils.uniqueSort,s=r.isTag,c={bind:n(452),forEach:n(350),reject:n(1182),filter:n(1184),reduce:n(1185)};t.find=function(e){var t,n=c.reduce(this,(function(e,t){return e.concat(c.filter(t.children,s))}),[]),r=this.constructor.contains;if(e&&"string"!=typeof e)return t=e.cheerio?e.get():[e],this._make(t.filter((function(e){var t,n;for(t=0,n=this.length;t<n;++t)if(r(this[t],e))return!0}),this));var i={__proto__:this.options,context:this.toArray()};return this._make(o(e,n,i))},t.parent=function(e){var n=[];return i(this,(function(e,t){var o=t.parent;o&&n.indexOf(o)<0&&n.push(o)})),arguments.length&&(n=t.filter.call(n,e,this)),this._make(n)},t.parents=function(e){var t=[];return this.get().reverse().forEach((function(n){u(this,n.parent,e,1/0).forEach((function(e){-1===t.indexOf(e)&&t.push(e)}))}),this),this._make(t)},t.parentsUntil=function(e,t){var n,r,i=[];return"string"==typeof e?n=o(e,this.parents().toArray(),this.options)[0]:e&&e.cheerio?r=e.toArray():e&&(n=e),this.toArray().reverse().forEach((function(e){for(;(e=e.parent)&&(n&&e!==n||r&&-1===r.indexOf(e)||!n&&!r);)s(e)&&-1===i.indexOf(e)&&i.push(e)}),this),this._make(t?o(t,i,this.options):i)},t.closest=function(e){var t=[];return e?(i(this,function(n,o){var r=u(this,o,e,1)[0];r&&t.indexOf(r)<0&&t.push(r)}.bind(this)),this._make(t)):this._make(t)},t.next=function(e){if(!this[0])return this;var n=[];return c.forEach(this,(function(e){for(;e=e.next;)if(s(e))return void n.push(e)})),e?t.filter.call(n,e,this):this._make(n)},t.nextAll=function(e){if(!this[0])return this;var n=[];return c.forEach(this,(function(e){for(;e=e.next;)s(e)&&-1===n.indexOf(e)&&n.push(e)})),e?t.filter.call(n,e,this):this._make(n)},t.nextUntil=function(e,n){if(!this[0])return this;var r,i,a=[];return"string"==typeof e?r=o(e,this.nextAll().get(),this.options)[0]:e&&e.cheerio?i=e.get():e&&(r=e),c.forEach(this,(function(e){for(;(e=e.next)&&(r&&e!==r||i&&-1===i.indexOf(e)||!r&&!i);)s(e)&&-1===a.indexOf(e)&&a.push(e)})),n?t.filter.call(a,n,this):this._make(a)},t.prev=function(e){if(!this[0])return this;var n=[];return c.forEach(this,(function(e){for(;e=e.prev;)if(s(e))return void n.push(e)})),e?t.filter.call(n,e,this):this._make(n)},t.prevAll=function(e){if(!this[0])return this;var n=[];return c.forEach(this,(function(e){for(;e=e.prev;)s(e)&&-1===n.indexOf(e)&&n.push(e)})),e?t.filter.call(n,e,this):this._make(n)},t.prevUntil=function(e,n){if(!this[0])return this;var r,i,a=[];return"string"==typeof e?r=o(e,this.prevAll().get(),this.options)[0]:e&&e.cheerio?i=e.get():e&&(r=e),c.forEach(this,(function(e){for(;(e=e.prev)&&(r&&e!==r||i&&-1===i.indexOf(e)||!r&&!i);)s(e)&&-1===a.indexOf(e)&&a.push(e)})),n?t.filter.call(a,n,this):this._make(a)},t.siblings=function(e){var n=this.parent(),o=c.filter(n?n.children():this.siblingsAndMe(),c.bind((function(e){return s(e)&&!this.is(e)}),this));return void 0!==e?t.filter.call(o,e,this):this._make(o)},t.children=function(e){var n=c.reduce(this,(function(e,t){return e.concat(c.filter(t.children,s))}),[]);return void 0===e?this._make(n):t.filter.call(n,e,this)},t.contents=function(){return this._make(c.reduce(this,(function(e,t){return e.push.apply(e,t.children),e}),[]))},t.each=function(e){for(var t=0,n=this.length;t<n&&!1!==e.call(this[t],t,this[t]);)++t;return this},t.map=function(e){return this._make(c.reduce(this,(function(t,n,o){var r=e.call(n,o,n);return null==r?t:t.concat(r)}),[]))};var l=function(e){return function(t,n){var r;return n=n||this,r="string"==typeof t?o.compile(t,n.options):"function"==typeof t?function(e,n){return t.call(e,n,e)}:t.cheerio?t.is.bind(t):function(e){return t===e},n._make(e(this,r))}};function u(e,n,o,r){for(var i=[];n&&i.length<r;)o&&!t.filter.call([n],o,e).length||i.push(n),n=n.parent;return i}t.filter=l(c.filter),t.not=l(c.reject),t.has=function(e){var n=this;return t.filter.call(this,(function(){return n._make(this).find(e).length>0}))},t.first=function(){return this.length>1?this._make(this[0]):this},t.last=function(){return this.length>1?this._make(this[this.length-1]):this},t.eq=function(e){return 0===(e=+e)&&this.length<=1?this:(e<0&&(e=this.length+e),this[e]?this._make(this[e]):this._make([]))},t.get=function(e){return null==e?Array.prototype.slice.call(this):this[e<0?this.length+e:e]},t.index=function(e){var t,n;return 0===arguments.length?(t=this.parent().children(),n=this[0]):"string"==typeof e?(t=this._make(e),n=this[0]):(t=this,n=e.cheerio?e[0]:e),t.get().indexOf(n)},t.slice=function(){return this._make([].slice.apply(this,arguments))},t.end=function(){return this.prevObject||this._make([])},t.add=function(e,t){for(var n=this._make(e,t),o=a(n.get().concat(this.get())),r=0;r<o.length;++r)n[r]=o[r];return n.length=o.length,n},t.addBack=function(e){return this.add(arguments.length?this.prevObject.filter(e):this.prevObject)}},function(e,t,n){var o=n(462),r=n(657),i=n(287),a=n(111),s=n(1183);e.exports=function(e,t){return(a(e)?o:r)(e,s(i(t,3)))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},function(e,t,n){var o=n(462),r=n(657),i=n(287),a=n(111);e.exports=function(e,t){return(a(e)?o:r)(e,i(t,3))}},function(e,t,n){var o=n(1186),r=n(284),i=n(287),a=n(1187),s=n(111);e.exports=function(e,t,n){var c=s(e)?o:a,l=arguments.length<3;return c(e,i(t,4),n,l,r)}},function(e,t){e.exports=function(e,t,n,o){var r=-1,i=null==e?0:e.length;for(o&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n}},function(e,t){e.exports=function(e,t,n,o,r){return r(e,(function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)})),n}},function(e,t,n){var o=n(337),r=n(457),i=o.update,a=o.evaluate,s=n(283),c=s.domEach,l=s.cloneDom,u=s.isHtml,d=Array.prototype.slice,h={flatten:n(658),bind:n(452),forEach:n(350)};t._makeDomArray=function(e,t){return null==e?[]:e.cheerio?t?l(e.get(),e.options):e.get():Array.isArray(e)?h.flatten(e.map((function(e){return this._makeDomArray(e,t)}),this)):"string"==typeof e?a(e,this.options,!1):t?l([e]):[e]};var p=function(e){return function(){var t=d.call(arguments),n=this.length-1;return c(this,(function(o,i){var a,s;s="function"==typeof t[0]?t[0].call(i,o,r.html(i.children)):t,a=this._makeDomArray(s,o<n),e(a,i.children,i)}))}},m=function(e,t,n,o,r){var i,a,s,c,l,u=[t,n].concat(o),d=e[t-1]||null,h=e[t]||null;for(i=0,a=o.length;i<a;++i)s=(l=(c=o[i]).parent||c.root)&&l.children.indexOf(o[i]),l&&s>-1&&(l.children.splice(s,1),r===l&&t>s&&u[0]--),c.root=null,c.parent=r,c.prev&&(c.prev.next=c.next||null),c.next&&(c.next.prev=c.prev||null),c.prev=o[i-1]||d,c.next=o[i+1]||h;return d&&(d.next=o[0]),h&&(h.prev=o[o.length-1]),e.splice.apply(e,u)};t.appendTo=function(e){return e.cheerio||(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e.append(this),this},t.prependTo=function(e){return e.cheerio||(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e.prepend(this),this},t.append=p((function(e,t,n){m(t,t.length,0,e,n)})),t.prepend=p((function(e,t,n){m(t,0,0,e,n)})),t.wrap=function(e){var t="function"==typeof e&&e,n=this.length-1;return h.forEach(this,h.bind((function(o,r){var a,s,c,l,d=o.parent||o.root,h=d.children;if(d){for(t&&(e=t.call(o,r)),"string"!=typeof e||u(e)||(e=this.parents().last().find(e).clone()),s=(a=this._makeDomArray(e,r<n).slice(0,1))[0],c=0;s&&s.children&&!(c>=s.children.length);)"tag"===s.children[c].type?(s=s.children[c],c=0):c++;l=h.indexOf(o),i([o],s),m(h,l,0,a,d)}}),this)),this},t.after=function(){var e=d.call(arguments),t=this.length-1;return c(this,(function(n,o){var i=o.parent||o.root;if(i){var a,s,c=i.children,l=c.indexOf(o);l<0||(a="function"==typeof e[0]?e[0].call(o,n,r.html(o.children)):e,s=this._makeDomArray(a,n<t),m(c,l+1,0,s,i))}})),this},t.insertAfter=function(e){var t=[],n=this;return"string"==typeof e&&(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e=this._makeDomArray(e),n.remove(),c(e,(function(e,o){var r=n._makeDomArray(n.clone()),i=o.parent||o.root;if(i){var a=i.children,s=a.indexOf(o);s<0||(m(a,s+1,0,r,i),t.push(r))}})),this.constructor.call(this.constructor,this._makeDomArray(t))},t.before=function(){var e=d.call(arguments),t=this.length-1;return c(this,(function(n,o){var i=o.parent||o.root;if(i){var a,s,c=i.children,l=c.indexOf(o);l<0||(a="function"==typeof e[0]?e[0].call(o,n,r.html(o.children)):e,s=this._makeDomArray(a,n<t),m(c,l,0,s,i))}})),this},t.insertBefore=function(e){var t=[],n=this;return"string"==typeof e&&(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e=this._makeDomArray(e),n.remove(),c(e,(function(e,o){var r=n._makeDomArray(n.clone()),i=o.parent||o.root;if(i){var a=i.children,s=a.indexOf(o);s<0||(m(a,s,0,r,i),t.push(r))}})),this.constructor.call(this.constructor,this._makeDomArray(t))},t.remove=function(e){var t=this;return e&&(t=t.filter(e)),c(t,(function(e,t){var n=t.parent||t.root;if(n){var o=n.children,r=o.indexOf(t);r<0||(o.splice(r,1),t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.prev=t.next=t.parent=t.root=null)}})),this},t.replaceWith=function(e){var t=this;return c(this,(function(n,o){var r=o.parent||o.root;if(r){var a,s=r.children,c=t._makeDomArray("function"==typeof e?e.call(o,n,o):e);i(c,null),a=s.indexOf(o),m(s,a,1,c,r),o.parent=o.prev=o.next=o.root=null}})),this},t.empty=function(){return c(this,(function(e,t){h.forEach(t.children,(function(e){e.next=e.prev=e.parent=null})),t.children.length=0})),this},t.html=function(e){if(void 0===e)return this[0]&&this[0].children?r.html(this[0].children,this.options):null;var t=this.options;return c(this,(function(n,o){h.forEach(o.children,(function(e){e.next=e.prev=e.parent=null}));var r=e.cheerio?e.clone().get():a(""+e,t,!1);i(r,o)})),this},t.toString=function(){return r.html(this,this.options)},t.text=function(e){return void 0===e?r.text(this):"function"==typeof e?c(this,(function(n,o){var i=[o];return t.text.call(i,e.call(o,n,r.text(i)))})):(c(this,(function(t,n){h.forEach(n.children,(function(e){e.next=e.prev=e.parent=null})),i({data:""+e,type:"text",parent:n,prev:null,next:null,children:[]},n)})),this)},t.clone=function(){return this._make(l(this.get(),this.options))}},function(e,t,n){var o=n(652),r=n(1190);e.exports=function e(t,n,i,a,s){var c=-1,l=t.length;for(i||(i=r),s||(s=[]);++c<l;){var u=t[c];n>0&&i(u)?n>1?e(u,n-1,i,a,s):o(s,u):a||(s[s.length]=u)}return s}},function(e,t,n){var o=n(280),r=n(344),i=n(111),a=o?o.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||r(e)||!!(a&&e&&e[a])}},function(e,t,n){var o=n(283).domEach,r={pick:n(1192)},i=Object.prototype.toString;function a(e,t,n,o){if("string"==typeof t){var r=s(e);"function"==typeof n&&(n=n.call(e,o,r[t])),""===n?delete r[t]:null!=n&&(r[t]=n),e.attribs.style=(i=r,Object.keys(i||{}).reduce((function(e,t){return e+(e?" ":"")+t+": "+i[t]+";"}),""))}else"object"==typeof t&&Object.keys(t).forEach((function(n){a(e,n,t[n])}));var i}function s(e,t){var n=function(e){return(e=(e||"").trim())?e.split(";").reduce((function(e,t){var n=t.indexOf(":");return n<1||n===t.length-1||(e[t.slice(0,n).trim()]=t.slice(n+1).trim()),e}),{}):{}}(e.attribs.style);return"string"==typeof t?n[t]:Array.isArray(t)?r.pick(n,t):n}t.css=function(e,t){return 2===arguments.length||"[object Object]"===i.call(e)?o(this,(function(n,o){a(o,e,t,n)})):s(this[0],e)}},function(e,t,n){var o=n(1193),r=n(1196)((function(e,t){return null==e?{}:o(e,t)}));e.exports=r},function(e,t,n){var o=n(1194),r=n(656);e.exports=function(e,t){return o(e,t,(function(t,n){return r(e,n)}))}},function(e,t,n){var o=n(463),r=n(1195),i=n(355);e.exports=function(e,t,n){for(var a=-1,s=t.length,c={};++a<s;){var l=t[a],u=o(e,l);n(u,l)&&r(c,i(l,e),u)}return c}},function(e,t,n){var o=n(439),r=n(355),i=n(282),a=n(144),s=n(288);e.exports=function(e,t,n,c){if(!a(e))return e;for(var l=-1,u=(t=r(t,e)).length,d=u-1,h=e;null!=h&&++l<u;){var p=s(t[l]),m=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(l!=d){var g=h[p];void 0===(m=c?c(g,p,h):void 0)&&(m=a(g)?g:i(t[l+1])?[]:{})}o(h,p,m),h=h[p]}return e}},function(e,t,n){var o=n(658),r=n(622),i=n(446);e.exports=function(e){return i(r(e,void 0,o),e+"")}},function(e,t,n){var o=/%20/g,r=/\r?\n/g,i={map:n(1198)};t.serialize=function(){var e=this.serializeArray();return i.map(e,(function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)})).join("&").replace(o,"+")},t.serializeArray=function(){var e=this.constructor;return this.map((function(){var t=e(this);return"form"===this.name?t.find("input,select,textarea,keygen").toArray():t.filter("input,select,textarea,keygen").toArray()})).filter('[name!=""]:not(:disabled):not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((function(t,n){var o=e(n),a=o.attr("name"),s=o.val();return null==s&&(s=""),Array.isArray(s)?i.map(s,(function(e){return{name:a,value:e.replace(r,"\r\n")}})):{name:a,value:s.replace(r,"\r\n")}})).get()}},function(e,t,n){var o=n(655),r=n(287),i=n(1199),a=n(111);e.exports=function(e,t){return(a(e)?o:i)(e,r(t,3))}},function(e,t,n){var o=n(284),r=n(209);e.exports=function(e,t){var n=-1,i=r(e)?Array(e.length):[];return o(e,(function(e,o,r){i[++n]=t(e,o,r)})),i}},function(e){e.exports=JSON.parse('{"name":"cheerio","version":"1.0.0-rc.3","description":"Tiny, fast, and elegant implementation of core jQuery designed specifically for the server","author":"Matt Mueller <mattmuelle@gmail.com> (mat.io)","license":"MIT","keywords":["htmlparser","jquery","selector","scraper","parser","html"],"repository":{"type":"git","url":"git://github.com/cheeriojs/cheerio.git"},"main":"./index.js","files":["index.js","lib"],"engines":{"node":">= 0.6"},"dependencies":{"css-select":"~1.2.0","dom-serializer":"~0.1.1","entities":"~1.1.1","htmlparser2":"^3.9.1","lodash":"^4.15.0","parse5":"^3.0.1"},"devDependencies":{"benchmark":"^2.1.0","coveralls":"^2.11.9","expect.js":"~0.3.1","istanbul":"^0.4.3","jquery":"^3.0.0","jsdom":"^9.2.1","jshint":"^2.9.2","mocha":"^3.1.2","xyz":"~1.1.0"},"scripts":{"test":"make test"}}')},function(e){e.exports=JSON.parse('[{"annotation":"grinning face","group":0,"hexcode":"1F600","order":1,"shortcodes":["gleeful"],"tags":["face","grin"],"unicode":"😀","emoticon":":D"},{"annotation":"grinning face with big eyes","group":0,"hexcode":"1F603","order":2,"shortcodes":["glad","smile"],"tags":["face","mouth","open","smile"],"unicode":"😃"},{"annotation":"grinning face with smiling eyes","group":0,"hexcode":"1F604","order":3,"shortcodes":["happy"],"tags":["eye","face","mouth","open","smile"],"unicode":"😄"},{"annotation":"beaming face with smiling eyes","group":0,"hexcode":"1F601","order":4,"shortcodes":["blissful","grin"],"tags":["eye","face","grin","smile"],"unicode":"😁"},{"annotation":"grinning squinting face","group":0,"hexcode":"1F606","order":5,"shortcodes":["amused","laugh","lol"],"tags":["face","laugh","mouth","satisfied","smile"],"unicode":"😆","emoticon":"xD"},{"annotation":"grinning face with sweat","group":0,"hexcode":"1F605","order":6,"shortcodes":["embarassed","sweat_smile"],"tags":["cold","face","open","smile","sweat"],"unicode":"😅"},{"annotation":"rolling on the floor laughing","group":0,"hexcode":"1F923","order":7,"shortcodes":["entertained","rofl"],"tags":["face","floor","laugh","rolling"],"unicode":"🤣","emoticon":":\'D"},{"annotation":"face with tears of joy","group":0,"hexcode":"1F602","order":8,"shortcodes":["joyful","haha"],"tags":["face","joy","laugh","tear"],"unicode":"😂","emoticon":":\')"},{"annotation":"slightly smiling face","group":0,"hexcode":"1F642","order":9,"shortcodes":["pleased","slight_smile"],"tags":["face","smile"],"unicode":"🙂","emoticon":":)"},{"annotation":"upside-down face","group":0,"hexcode":"1F643","order":10,"shortcodes":["ecstatic","upside_down"],"tags":["face","upside-down"],"unicode":"🙃"},{"annotation":"winking face","group":0,"hexcode":"1F609","order":11,"shortcodes":["coy","wink"],"tags":["face","wink"],"unicode":"😉","emoticon":";)"},{"annotation":"smiling face with smiling eyes","group":0,"hexcode":"1F60A","order":12,"shortcodes":["blush"],"tags":["blush","eye","face","smile"],"unicode":"😊","emoticon":":>"},{"annotation":"smiling face with halo","group":0,"hexcode":"1F607","order":13,"shortcodes":["innocent","halo"],"tags":["angel","face","fantasy","halo","innocent"],"unicode":"😇","emoticon":"o:)"},{"annotation":"smiling face with hearts","group":0,"hexcode":"1F970","order":14,"shortcodes":["love"],"tags":["adore","crush","hearts","in love"],"unicode":"🥰"},{"annotation":"smiling face with heart-eyes","group":0,"hexcode":"1F60D","order":15,"shortcodes":["lovestruck"],"tags":["eye","face","love","smile"],"unicode":"😍"},{"annotation":"star-struck","group":0,"hexcode":"1F929","order":16,"shortcodes":["starstruck"],"tags":["eyes","face","grinning","star"],"unicode":"🤩"},{"annotation":"face blowing a kiss","group":0,"hexcode":"1F618","order":17,"shortcodes":["flirty"],"tags":["face","kiss"],"unicode":"😘","emoticon":":x"},{"annotation":"kissing face","group":0,"hexcode":"1F617","order":18,"shortcodes":["kiss"],"tags":["face","kiss"],"unicode":"😗"},{"annotation":"smiling face","group":0,"hexcode":"263A","order":20,"shortcodes":["relaxed"],"tags":["face","outlined","relaxed","smile"],"unicode":"☺️"},{"annotation":"kissing face with closed eyes","group":0,"hexcode":"1F61A","order":21,"shortcodes":["loving_kiss"],"tags":["closed","eye","face","kiss"],"unicode":"😚","emoticon":":*"},{"annotation":"kissing face with smiling eyes","group":0,"hexcode":"1F619","order":22,"shortcodes":["happy_kiss"],"tags":["eye","face","kiss","smile"],"unicode":"😙"},{"annotation":"smiling face with tear","group":0,"hexcode":"1F972","order":23,"shortcodes":["tear_smile"],"tags":["grateful","proud","relieved","smiling","tear","touched"],"unicode":"🥲"},{"annotation":"face savoring food","group":0,"hexcode":"1F60B","order":24,"shortcodes":["yum","savour"],"tags":["delicious","face","savouring","smile","yum"],"unicode":"😋"},{"annotation":"face with tongue","group":0,"hexcode":"1F61B","order":25,"shortcodes":["playful","tongue_out"],"tags":["face","tongue"],"unicode":"😛","emoticon":":p"},{"annotation":"winking face with tongue","group":0,"hexcode":"1F61C","order":26,"shortcodes":["mischievous"],"tags":["eye","face","joke","tongue","wink"],"unicode":"😜","emoticon":";p"},{"annotation":"zany face","group":0,"hexcode":"1F92A","order":27,"shortcodes":["crazy"],"tags":["eye","goofy","large","small"],"unicode":"🤪"},{"annotation":"squinting face with tongue","group":0,"hexcode":"1F61D","order":28,"shortcodes":["facetious","lmao"],"tags":["eye","face","horrible","taste","tongue"],"unicode":"😝","emoticon":"xp"},{"annotation":"money-mouth face","group":0,"hexcode":"1F911","order":29,"shortcodes":["pretentious","money_mouth"],"tags":["face","money","mouth"],"unicode":"🤑"},{"annotation":"hugging face","group":0,"hexcode":"1F917","order":30,"shortcodes":["hugging"],"tags":["face","hug","hugging"],"unicode":"🤗"},{"annotation":"face with hand over mouth","group":0,"hexcode":"1F92D","order":31,"shortcodes":["gasp"],"tags":["whoops"],"unicode":"🤭"},{"annotation":"shushing face","group":0,"hexcode":"1F92B","order":32,"shortcodes":["shushing"],"tags":["quiet","shush"],"unicode":"🤫"},{"annotation":"thinking face","group":0,"hexcode":"1F914","order":33,"shortcodes":["curious","thinking"],"tags":["face","thinking"],"unicode":"🤔","emoticon":":l"},{"annotation":"zipper-mouth face","group":0,"hexcode":"1F910","order":34,"shortcodes":["silenced","zipper_mouth"],"tags":["face","mouth","zipper"],"unicode":"🤐","emoticon":":z"},{"annotation":"face with raised eyebrow","group":0,"hexcode":"1F928","order":35,"shortcodes":["contempt"],"tags":["distrust","skeptic"],"unicode":"🤨"},{"annotation":"neutral face","group":0,"hexcode":"1F610","order":36,"shortcodes":["indifferent","neutral"],"tags":["deadpan","face","meh","neutral"],"unicode":"😐️","emoticon":":|"},{"annotation":"expressionless face","group":0,"hexcode":"1F611","order":37,"shortcodes":["apathetic","expressionless"],"tags":["expressionless","face","inexpressive","meh","unexpressive"],"unicode":"😑"},{"annotation":"face without mouth","group":0,"hexcode":"1F636","order":38,"shortcodes":["vacant","no_mouth"],"tags":["face","mouth","quiet","silent"],"unicode":"😶","emoticon":":#"},{"annotation":"smirking face","group":0,"hexcode":"1F60F","order":39,"shortcodes":["cocky","smirk"],"tags":["face","smirk"],"unicode":"😏","emoticon":":j"},{"annotation":"unamused face","group":0,"hexcode":"1F612","order":40,"shortcodes":["unamused"],"tags":["face","unamused","unhappy"],"unicode":"😒","emoticon":":?"},{"annotation":"face with rolling eyes","group":0,"hexcode":"1F644","order":41,"shortcodes":["disbelief"],"tags":["eyeroll","eyes","face","rolling"],"unicode":"🙄"},{"annotation":"grimacing face","group":0,"hexcode":"1F62C","order":42,"shortcodes":["grimaced"],"tags":["face","grimace"],"unicode":"😬","emoticon":"8D"},{"annotation":"lying face","group":0,"hexcode":"1F925","order":43,"shortcodes":["lying"],"tags":["face","lie","pinocchio"],"unicode":"🤥"},{"annotation":"relieved face","group":0,"hexcode":"1F60C","order":44,"shortcodes":["relieved"],"tags":["face","relieved"],"unicode":"😌"},{"annotation":"pensive face","group":0,"hexcode":"1F614","order":45,"shortcodes":["pensive"],"tags":["dejected","face","pensive"],"unicode":"😔"},{"annotation":"sleepy face","group":0,"hexcode":"1F62A","order":46,"shortcodes":["sleepy"],"tags":["face","sleep"],"unicode":"😪"},{"annotation":"drooling face","group":0,"hexcode":"1F924","order":47,"shortcodes":["drooling"],"tags":["drooling","face"],"unicode":"🤤"},{"annotation":"sleeping face","group":0,"hexcode":"1F634","order":48,"shortcodes":["exhausted","sleeping"],"tags":["face","sleep","zzz"],"unicode":"😴"},{"annotation":"face with medical mask","group":0,"hexcode":"1F637","order":49,"shortcodes":["ill","mask"],"tags":["cold","doctor","face","mask","sick"],"unicode":"😷"},{"annotation":"face with thermometer","group":0,"hexcode":"1F912","order":50,"shortcodes":["sick"],"tags":["face","ill","sick","thermometer"],"unicode":"🤒"},{"annotation":"face with head-bandage","group":0,"hexcode":"1F915","order":51,"shortcodes":["injured"],"tags":["bandage","face","hurt","injury"],"unicode":"🤕"},{"annotation":"nauseated face","group":0,"hexcode":"1F922","order":52,"shortcodes":["nauseated"],"tags":["face","nauseated","vomit"],"unicode":"🤢","emoticon":"%("},{"annotation":"face vomiting","group":0,"hexcode":"1F92E","order":53,"shortcodes":["vomiting"],"tags":["sick","vomit"],"unicode":"🤮"},{"annotation":"sneezing face","group":0,"hexcode":"1F927","order":54,"shortcodes":["sneezing"],"tags":["face","gesundheit","sneeze"],"unicode":"🤧"},{"annotation":"hot face","group":0,"hexcode":"1F975","order":55,"shortcodes":["overheating"],"tags":["feverish","heat stroke","hot","red-faced","sweating"],"unicode":"🥵"},{"annotation":"cold face","group":0,"hexcode":"1F976","order":56,"shortcodes":["freezing"],"tags":["blue-faced","cold","freezing","frostbite","icicles"],"unicode":"🥶"},{"annotation":"woozy face","group":0,"hexcode":"1F974","order":57,"shortcodes":["woozy"],"tags":["dizzy","intoxicated","tipsy","uneven eyes","wavy mouth"],"unicode":"🥴","emoticon":":&"},{"annotation":"dizzy face","group":0,"hexcode":"1F635","order":58,"shortcodes":["dizzy"],"tags":["dizzy","face"],"unicode":"😵","emoticon":"xo"},{"annotation":"exploding head","group":0,"hexcode":"1F92F","order":59,"shortcodes":["shocked","exploding_head"],"tags":["mind blown","shocked"],"unicode":"🤯"},{"annotation":"cowboy hat face","group":0,"hexcode":"1F920","order":60,"shortcodes":["cowboy"],"tags":["cowboy","cowgirl","face","hat"],"unicode":"🤠"},{"annotation":"partying face","group":0,"hexcode":"1F973","order":61,"shortcodes":["partying","celebrating"],"tags":["celebration","hat","horn","party"],"unicode":"🥳"},{"annotation":"disguised face","group":0,"hexcode":"1F978","order":62,"shortcodes":["disguised_face"],"tags":["disguise","face","glasses","incognito","nose"],"unicode":"🥸"},{"annotation":"smiling face with sunglasses","group":0,"hexcode":"1F60E","order":63,"shortcodes":["confident"],"tags":["bright","cool","face","sun","sunglasses"],"unicode":"😎","emoticon":"8)"},{"annotation":"nerd face","group":0,"hexcode":"1F913","order":64,"shortcodes":["nerd"],"tags":["face","geek","nerd"],"unicode":"🤓","emoticon":":B"},{"annotation":"face with monocle","group":0,"hexcode":"1F9D0","order":65,"shortcodes":["monocle"],"tags":["stuffy"],"unicode":"🧐"},{"annotation":"confused face","group":0,"hexcode":"1F615","order":66,"shortcodes":["confused"],"tags":["confused","face","meh"],"unicode":"😕","emoticon":":/"},{"annotation":"worried face","group":0,"hexcode":"1F61F","order":67,"shortcodes":["worried"],"tags":["face","worried"],"unicode":"😟"},{"annotation":"slightly frowning face","group":0,"hexcode":"1F641","order":68,"shortcodes":["cheerless","slight_frown"],"tags":["face","frown"],"unicode":"🙁"},{"annotation":"frowning face","group":0,"hexcode":"2639","order":70,"shortcodes":["sad","frowning"],"tags":["face","frown"],"unicode":"☹️","emoticon":":("},{"annotation":"face with open mouth","group":0,"hexcode":"1F62E","order":71,"shortcodes":["surprised"],"tags":["face","mouth","open","sympathy"],"unicode":"😮"},{"annotation":"hushed face","group":0,"hexcode":"1F62F","order":72,"shortcodes":["hushed"],"tags":["face","hushed","stunned","surprised"],"unicode":"😯"},{"annotation":"astonished face","group":0,"hexcode":"1F632","order":73,"shortcodes":["astonished"],"tags":["astonished","face","shocked","totally"],"unicode":"😲","emoticon":":o"},{"annotation":"flushed face","group":0,"hexcode":"1F633","order":74,"shortcodes":["flushed"],"tags":["dazed","face","flushed"],"unicode":"😳","emoticon":":$"},{"annotation":"pleading face","group":0,"hexcode":"1F97A","order":75,"shortcodes":["pleading"],"tags":["begging","mercy","puppy eyes"],"unicode":"🥺"},{"annotation":"frowning face with open mouth","group":0,"hexcode":"1F626","order":76,"shortcodes":["bored"],"tags":["face","frown","mouth","open"],"unicode":"😦"},{"annotation":"anguished face","group":0,"hexcode":"1F627","order":77,"shortcodes":["anguished","wtf"],"tags":["anguished","face"],"unicode":"😧","emoticon":":s"},{"annotation":"fearful face","group":0,"hexcode":"1F628","order":78,"shortcodes":["fearful"],"tags":["face","fear","fearful","scared"],"unicode":"😨"},{"annotation":"anxious face with sweat","group":0,"hexcode":"1F630","order":79,"shortcodes":["cold_sweat","anxious","frustrated"],"tags":["blue","cold","face","rushed","sweat"],"unicode":"😰"},{"annotation":"sad but relieved face","group":0,"hexcode":"1F625","order":80,"shortcodes":["hopeful"],"tags":["disappointed","face","relieved","whew"],"unicode":"😥"},{"annotation":"crying face","group":0,"hexcode":"1F622","order":81,"shortcodes":["upset","cry"],"tags":["cry","face","sad","tear"],"unicode":"😢","emoticon":":\'("},{"annotation":"loudly crying face","group":0,"hexcode":"1F62D","order":82,"shortcodes":["distressed","sob"],"tags":["cry","face","sad","sob","tear"],"unicode":"😭","emoticon":":\'o"},{"annotation":"face screaming in fear","group":0,"hexcode":"1F631","order":83,"shortcodes":["frightened","scream"],"tags":["face","fear","munch","scared","scream"],"unicode":"😱","emoticon":"Dx"},{"annotation":"confounded face","group":0,"hexcode":"1F616","order":84,"shortcodes":["confounded"],"tags":["confounded","face"],"unicode":"😖","emoticon":"x("},{"annotation":"persevering face","group":0,"hexcode":"1F623","order":85,"shortcodes":["persevered"],"tags":["face","persevere"],"unicode":"😣"},{"annotation":"disappointed face","group":0,"hexcode":"1F61E","order":86,"shortcodes":["disappointed"],"tags":["disappointed","face"],"unicode":"😞"},{"annotation":"downcast face with sweat","group":0,"hexcode":"1F613","order":87,"shortcodes":["shamed"],"tags":["cold","face","sweat"],"unicode":"😓","emoticon":":<"},{"annotation":"weary face","group":0,"hexcode":"1F629","order":88,"shortcodes":["weary"],"tags":["face","tired","weary"],"unicode":"😩","emoticon":"D:"},{"annotation":"tired face","group":0,"hexcode":"1F62B","order":89,"shortcodes":["tired"],"tags":["face","tired"],"unicode":"😫","emoticon":":c"},{"annotation":"yawning face","group":0,"hexcode":"1F971","order":90,"shortcodes":["yawn"],"tags":["bored","tired","yawn"],"unicode":"🥱"},{"annotation":"face with steam from nose","group":0,"hexcode":"1F624","order":91,"shortcodes":["annoyed","hrmph"],"tags":["face","triumph","won"],"unicode":"😤"},{"annotation":"pouting face","group":0,"hexcode":"1F621","order":92,"shortcodes":["enraged","pout"],"tags":["angry","face","mad","pouting","rage","red"],"unicode":"😡","emoticon":">:/"},{"annotation":"angry face","group":0,"hexcode":"1F620","order":93,"shortcodes":["angry"],"tags":["angry","face","mad"],"unicode":"😠"},{"annotation":"face with symbols on mouth","group":0,"hexcode":"1F92C","order":94,"shortcodes":["censored"],"tags":["swearing"],"unicode":"🤬","emoticon":":@"},{"annotation":"smiling face with horns","group":0,"hexcode":"1F608","order":95,"shortcodes":["imp"],"tags":["face","fairy tale","fantasy","horns","smile"],"unicode":"😈","emoticon":">:)"},{"annotation":"angry face with horns","group":0,"hexcode":"1F47F","order":96,"shortcodes":["angry_imp"],"tags":["demon","devil","face","fantasy","imp"],"unicode":"👿","emoticon":">:("},{"annotation":"skull","group":0,"hexcode":"1F480","order":97,"shortcodes":["skull"],"tags":["death","face","fairy tale","monster"],"unicode":"💀"},{"annotation":"skull and crossbones","group":0,"hexcode":"2620","order":99,"shortcodes":["crossbones"],"tags":["crossbones","death","face","monster","skull"],"unicode":"☠️"},{"annotation":"pile of poo","group":0,"hexcode":"1F4A9","order":100,"shortcodes":["poop"],"tags":["dung","face","monster","poo","poop"],"unicode":"💩"},{"annotation":"clown face","group":0,"hexcode":"1F921","order":101,"shortcodes":["clown"],"tags":["clown","face"],"unicode":"🤡"},{"annotation":"ogre","group":0,"hexcode":"1F479","order":102,"shortcodes":["ogre"],"tags":["creature","face","fairy tale","fantasy","monster"],"unicode":"👹","emoticon":">0)"},{"annotation":"goblin","group":0,"hexcode":"1F47A","order":103,"shortcodes":["goblin"],"tags":["creature","face","fairy tale","fantasy","monster"],"unicode":"👺"},{"annotation":"ghost","group":0,"hexcode":"1F47B","order":104,"shortcodes":["ghost"],"tags":["creature","face","fairy tale","fantasy","monster"],"unicode":"👻"},{"annotation":"alien","group":0,"hexcode":"1F47D","order":105,"shortcodes":["alien"],"tags":["creature","extraterrestrial","face","fantasy","ufo"],"unicode":"👽️"},{"annotation":"alien monster","group":0,"hexcode":"1F47E","order":106,"shortcodes":["alien_monster","space_invader"],"tags":["alien","creature","extraterrestrial","face","monster","ufo"],"unicode":"👾"},{"annotation":"robot","group":0,"hexcode":"1F916","order":107,"shortcodes":["robot"],"tags":["face","monster"],"unicode":"🤖"},{"annotation":"grinning cat","group":0,"hexcode":"1F63A","order":108,"shortcodes":["smiling_cat"],"tags":["cat","face","grinning","mouth","open","smile"],"unicode":"😺"},{"annotation":"grinning cat with smiling eyes","group":0,"hexcode":"1F638","order":109,"shortcodes":["grinning_cat"],"tags":["cat","eye","face","grin","smile"],"unicode":"😸"},{"annotation":"cat with tears of joy","group":0,"hexcode":"1F639","order":110,"shortcodes":["joyful_cat"],"tags":["cat","face","joy","tear"],"unicode":"😹"},{"annotation":"smiling cat with heart-eyes","group":0,"hexcode":"1F63B","order":111,"shortcodes":["lovestruck_cat"],"tags":["cat","eye","face","heart","love","smile"],"unicode":"😻"},{"annotation":"cat with wry smile","group":0,"hexcode":"1F63C","order":112,"shortcodes":["smirking_cat"],"tags":["cat","face","ironic","smile","wry"],"unicode":"😼"},{"annotation":"kissing cat","group":0,"hexcode":"1F63D","order":113,"shortcodes":["kissing_cat"],"tags":["cat","eye","face","kiss"],"unicode":"😽","emoticon":":3"},{"annotation":"weary cat","group":0,"hexcode":"1F640","order":114,"shortcodes":["weary_cat"],"tags":["cat","face","oh","surprised","weary"],"unicode":"🙀"},{"annotation":"crying cat","group":0,"hexcode":"1F63F","order":115,"shortcodes":["crying_cat"],"tags":["cat","cry","face","sad","tear"],"unicode":"😿"},{"annotation":"pouting cat","group":0,"hexcode":"1F63E","order":116,"shortcodes":["pouting_cat"],"tags":["cat","face","pouting"],"unicode":"😾"},{"annotation":"see-no-evil monkey","group":0,"hexcode":"1F648","order":117,"shortcodes":["see_no_evil"],"tags":["evil","face","forbidden","monkey","see"],"unicode":"🙈"},{"annotation":"hear-no-evil monkey","group":0,"hexcode":"1F649","order":118,"shortcodes":["hear_no_evil"],"tags":["evil","face","forbidden","hear","monkey"],"unicode":"🙉"},{"annotation":"speak-no-evil monkey","group":0,"hexcode":"1F64A","order":119,"shortcodes":["speak_no_evil"],"tags":["evil","face","forbidden","monkey","speak"],"unicode":"🙊"},{"annotation":"kiss mark","group":0,"hexcode":"1F48B","order":120,"shortcodes":["kiss_lips"],"tags":["kiss","lips"],"unicode":"💋"},{"annotation":"love letter","group":0,"hexcode":"1F48C","order":121,"shortcodes":["love_letter"],"tags":["heart","letter","love","mail"],"unicode":"💌"},{"annotation":"heart with arrow","group":0,"hexcode":"1F498","order":122,"shortcodes":["cupid"],"tags":["arrow","cupid"],"unicode":"💘"},{"annotation":"heart with ribbon","group":0,"hexcode":"1F49D","order":123,"shortcodes":["heart_ribbon"],"tags":["ribbon","valentine"],"unicode":"💝"},{"annotation":"sparkling heart","group":0,"hexcode":"1F496","order":124,"shortcodes":["sparkling_heart"],"tags":["excited","sparkle"],"unicode":"💖"},{"annotation":"growing heart","group":0,"hexcode":"1F497","order":125,"shortcodes":["heartpulse"],"tags":["excited","growing","nervous","pulse"],"unicode":"💗"},{"annotation":"beating heart","group":0,"hexcode":"1F493","order":126,"shortcodes":["heartbeat"],"tags":["beating","heartbeat","pulsating"],"unicode":"💓"},{"annotation":"revolving hearts","group":0,"hexcode":"1F49E","order":127,"shortcodes":["revolving_hearts"],"tags":["revolving"],"unicode":"💞"},{"annotation":"two hearts","group":0,"hexcode":"1F495","order":128,"shortcodes":["two_hearts"],"tags":["love"],"unicode":"💕"},{"annotation":"heart decoration","group":0,"hexcode":"1F49F","order":129,"shortcodes":["heart_decoration"],"tags":["heart"],"unicode":"💟"},{"annotation":"heart exclamation","group":0,"hexcode":"2763","order":131,"shortcodes":["heart_exclamation"],"tags":["exclamation","mark","punctuation"],"unicode":"❣️"},{"annotation":"broken heart","group":0,"hexcode":"1F494","order":132,"shortcodes":["broken_heart"],"tags":["break","broken"],"unicode":"💔","emoticon":"</3"},{"annotation":"red heart","group":0,"hexcode":"2764","order":134,"shortcodes":["heart"],"tags":["heart"],"unicode":"❤️","emoticon":"<3"},{"annotation":"orange heart","group":0,"hexcode":"1F9E1","order":135,"shortcodes":["orange_heart"],"tags":["orange"],"unicode":"🧡"},{"annotation":"yellow heart","group":0,"hexcode":"1F49B","order":136,"shortcodes":["yellow_heart"],"tags":["yellow"],"unicode":"💛"},{"annotation":"green heart","group":0,"hexcode":"1F49A","order":137,"shortcodes":["green_heart"],"tags":["green"],"unicode":"💚"},{"annotation":"blue heart","group":0,"hexcode":"1F499","order":138,"shortcodes":["blue_heart"],"tags":["blue"],"unicode":"💙"},{"annotation":"purple heart","group":0,"hexcode":"1F49C","order":139,"shortcodes":["purple_heart"],"tags":["purple"],"unicode":"💜"},{"annotation":"brown heart","group":0,"hexcode":"1F90E","order":140,"shortcodes":["brown_heart"],"tags":["brown","heart"],"unicode":"🤎"},{"annotation":"black heart","group":0,"hexcode":"1F5A4","order":141,"shortcodes":["black_heart"],"tags":["black","evil","wicked"],"unicode":"🖤"},{"annotation":"white heart","group":0,"hexcode":"1F90D","order":142,"shortcodes":["white_heart"],"tags":["heart","white"],"unicode":"🤍"},{"annotation":"hundred points","group":0,"hexcode":"1F4AF","order":143,"shortcodes":["100"],"tags":["100","full","hundred","score"],"unicode":"💯"},{"annotation":"anger symbol","group":0,"hexcode":"1F4A2","order":144,"shortcodes":["anger"],"tags":["angry","comic","mad"],"unicode":"💢"},{"annotation":"collision","group":0,"hexcode":"1F4A5","order":145,"shortcodes":["boom","collision"],"tags":["boom","comic"],"unicode":"💥"},{"annotation":"dizzy","group":0,"hexcode":"1F4AB","order":146,"shortcodes":["dizzy_star"],"tags":["comic","star"],"unicode":"💫"},{"annotation":"sweat droplets","group":0,"hexcode":"1F4A6","order":147,"shortcodes":["sweat_drops"],"tags":["comic","splashing","sweat"],"unicode":"💦"},{"annotation":"dashing away","group":0,"hexcode":"1F4A8","order":148,"shortcodes":["dash"],"tags":["comic","dash","running"],"unicode":"💨"},{"annotation":"hole","group":0,"hexcode":"1F573","order":150,"shortcodes":["hole"],"tags":["hole"],"unicode":"🕳️"},{"annotation":"bomb","group":0,"hexcode":"1F4A3","order":151,"shortcodes":["bomb"],"tags":["comic"],"unicode":"💣️"},{"annotation":"speech balloon","group":0,"hexcode":"1F4AC","order":152,"shortcodes":["speech"],"tags":["balloon","bubble","comic","dialog","speech"],"unicode":"💬"},{"annotation":"eye in speech bubble","group":0,"hexcode":"1F441-FE0F-200D-1F5E8-FE0F","order":153,"shortcodes":["eye_bubble"],"tags":["eye","speech bubble","witness"],"unicode":"👁️‍🗨️"},{"annotation":"left speech bubble","group":0,"hexcode":"1F5E8","order":158,"shortcodes":["left_speech"],"tags":["dialog","speech"],"unicode":"🗨️"},{"annotation":"right anger bubble","group":0,"hexcode":"1F5EF","order":160,"shortcodes":["right_anger_speech"],"tags":["angry","balloon","bubble","mad"],"unicode":"🗯️"},{"annotation":"thought balloon","group":0,"hexcode":"1F4AD","order":161,"shortcodes":["thought"],"tags":["balloon","bubble","comic","thought"],"unicode":"💭"},{"annotation":"zzz","group":0,"hexcode":"1F4A4","order":162,"shortcodes":["zzz"],"tags":["comic","sleep"],"unicode":"💤"},{"annotation":"waving hand","group":1,"hexcode":"1F44B","order":163,"shortcodes":["wave"],"tags":["hand","wave","waving"],"unicode":"👋","skins":[{"annotation":"waving hand: light skin tone","group":1,"hexcode":"1F44B-1F3FB","order":164,"shortcodes":["wave_tone1"],"unicode":"👋🏻"},{"annotation":"waving hand: medium-light skin tone","group":1,"hexcode":"1F44B-1F3FC","order":165,"shortcodes":["wave_tone2"],"unicode":"👋🏼"},{"annotation":"waving hand: medium skin tone","group":1,"hexcode":"1F44B-1F3FD","order":166,"shortcodes":["wave_tone3"],"unicode":"👋🏽"},{"annotation":"waving hand: medium-dark skin tone","group":1,"hexcode":"1F44B-1F3FE","order":167,"shortcodes":["wave_tone4"],"unicode":"👋🏾"},{"annotation":"waving hand: dark skin tone","group":1,"hexcode":"1F44B-1F3FF","order":168,"shortcodes":["wave_tone5"],"unicode":"👋🏿"}]},{"annotation":"raised back of hand","group":1,"hexcode":"1F91A","order":169,"shortcodes":["raised_backhand"],"tags":["backhand","raised"],"unicode":"🤚","skins":[{"annotation":"raised back of hand: light skin tone","group":1,"hexcode":"1F91A-1F3FB","order":170,"shortcodes":["raised_backhand_tone1"],"unicode":"🤚🏻"},{"annotation":"raised back of hand: medium-light skin tone","group":1,"hexcode":"1F91A-1F3FC","order":171,"shortcodes":["raised_backhand_tone2"],"unicode":"🤚🏼"},{"annotation":"raised back of hand: medium skin tone","group":1,"hexcode":"1F91A-1F3FD","order":172,"shortcodes":["raised_backhand_tone3"],"unicode":"🤚🏽"},{"annotation":"raised back of hand: medium-dark skin tone","group":1,"hexcode":"1F91A-1F3FE","order":173,"shortcodes":["raised_backhand_tone4"],"unicode":"🤚🏾"},{"annotation":"raised back of hand: dark skin tone","group":1,"hexcode":"1F91A-1F3FF","order":174,"shortcodes":["raised_backhand_tone5"],"unicode":"🤚🏿"}]},{"annotation":"hand with fingers splayed","group":1,"hexcode":"1F590","order":176,"shortcodes":["splayed_hand"],"tags":["finger","hand","splayed"],"unicode":"🖐️","skins":[{"annotation":"hand with fingers splayed: light skin tone","group":1,"hexcode":"1F590-1F3FB","order":177,"shortcodes":["splayed_hand_tone1"],"unicode":"🖐🏻"},{"annotation":"hand with fingers splayed: medium-light skin tone","group":1,"hexcode":"1F590-1F3FC","order":178,"shortcodes":["splayed_hand_tone2"],"unicode":"🖐🏼"},{"annotation":"hand with fingers splayed: medium skin tone","group":1,"hexcode":"1F590-1F3FD","order":179,"shortcodes":["splayed_hand_tone3"],"unicode":"🖐🏽"},{"annotation":"hand with fingers splayed: medium-dark skin tone","group":1,"hexcode":"1F590-1F3FE","order":180,"shortcodes":["splayed_hand_tone4"],"unicode":"🖐🏾"},{"annotation":"hand with fingers splayed: dark skin tone","group":1,"hexcode":"1F590-1F3FF","order":181,"shortcodes":["splayed_hand_tone5"],"unicode":"🖐🏿"}]},{"annotation":"raised hand","group":1,"hexcode":"270B","order":182,"shortcodes":["raised_hand"],"tags":["hand"],"unicode":"✋","skins":[{"annotation":"raised hand: light skin tone","group":1,"hexcode":"270B-1F3FB","order":183,"shortcodes":["raised_hand_tone1"],"unicode":"✋🏻"},{"annotation":"raised hand: medium-light skin tone","group":1,"hexcode":"270B-1F3FC","order":184,"shortcodes":["raised_hand_tone2"],"unicode":"✋🏼"},{"annotation":"raised hand: medium skin tone","group":1,"hexcode":"270B-1F3FD","order":185,"shortcodes":["raised_hand_tone3"],"unicode":"✋🏽"},{"annotation":"raised hand: medium-dark skin tone","group":1,"hexcode":"270B-1F3FE","order":186,"shortcodes":["raised_hand_tone4"],"unicode":"✋🏾"},{"annotation":"raised hand: dark skin tone","group":1,"hexcode":"270B-1F3FF","order":187,"shortcodes":["raised_hand_tone5"],"unicode":"✋🏿"}]},{"annotation":"vulcan salute","group":1,"hexcode":"1F596","order":188,"shortcodes":["vulcan"],"tags":["finger","hand","spock","vulcan"],"unicode":"🖖","skins":[{"annotation":"vulcan salute: light skin tone","group":1,"hexcode":"1F596-1F3FB","order":189,"shortcodes":["vulcan_tone1"],"unicode":"🖖🏻"},{"annotation":"vulcan salute: medium-light skin tone","group":1,"hexcode":"1F596-1F3FC","order":190,"shortcodes":["vulcan_tone2"],"unicode":"🖖🏼"},{"annotation":"vulcan salute: medium skin tone","group":1,"hexcode":"1F596-1F3FD","order":191,"shortcodes":["vulcan_tone3"],"unicode":"🖖🏽"},{"annotation":"vulcan salute: medium-dark skin tone","group":1,"hexcode":"1F596-1F3FE","order":192,"shortcodes":["vulcan_tone4"],"unicode":"🖖🏾"},{"annotation":"vulcan salute: dark skin tone","group":1,"hexcode":"1F596-1F3FF","order":193,"shortcodes":["vulcan_tone5"],"unicode":"🖖🏿"}]},{"annotation":"OK hand","group":1,"hexcode":"1F44C","order":194,"shortcodes":["ok_hand"],"tags":["hand","ok"],"unicode":"👌","skins":[{"annotation":"OK hand: light skin tone","group":1,"hexcode":"1F44C-1F3FB","order":195,"shortcodes":["ok_hand_tone1"],"unicode":"👌🏻"},{"annotation":"OK hand: medium-light skin tone","group":1,"hexcode":"1F44C-1F3FC","order":196,"shortcodes":["ok_hand_tone2"],"unicode":"👌🏼"},{"annotation":"OK hand: medium skin tone","group":1,"hexcode":"1F44C-1F3FD","order":197,"shortcodes":["ok_hand_tone3"],"unicode":"👌🏽"},{"annotation":"OK hand: medium-dark skin tone","group":1,"hexcode":"1F44C-1F3FE","order":198,"shortcodes":["ok_hand_tone4"],"unicode":"👌🏾"},{"annotation":"OK hand: dark skin tone","group":1,"hexcode":"1F44C-1F3FF","order":199,"shortcodes":["ok_hand_tone5"],"unicode":"👌🏿"}]},{"annotation":"pinched fingers","group":1,"hexcode":"1F90C","order":200,"shortcodes":["pinched_fingers"],"tags":["fingers","hand gesture","interrogation","pinched","sarcastic"],"unicode":"🤌","skins":[{"annotation":"pinched fingers: light skin tone","group":1,"hexcode":"1F90C-1F3FB","order":201,"shortcodes":["pinched_fingers_tone1"],"unicode":"🤌🏻"},{"annotation":"pinched fingers: medium-light skin tone","group":1,"hexcode":"1F90C-1F3FC","order":202,"shortcodes":["pinched_fingers_tone2"],"unicode":"🤌🏼"},{"annotation":"pinched fingers: medium skin tone","group":1,"hexcode":"1F90C-1F3FD","order":203,"shortcodes":["pinched_fingers_tone3"],"unicode":"🤌🏽"},{"annotation":"pinched fingers: medium-dark skin tone","group":1,"hexcode":"1F90C-1F3FE","order":204,"shortcodes":["pinched_fingers_tone4"],"unicode":"🤌🏾"},{"annotation":"pinched fingers: dark skin tone","group":1,"hexcode":"1F90C-1F3FF","order":205,"shortcodes":["pinched_fingers_tone5"],"unicode":"🤌🏿"}]},{"annotation":"pinching hand","group":1,"hexcode":"1F90F","order":206,"shortcodes":["pinch"],"tags":["small amount"],"unicode":"🤏","skins":[{"annotation":"pinching hand: light skin tone","group":1,"hexcode":"1F90F-1F3FB","order":207,"shortcodes":["pinch_tone1"],"unicode":"🤏🏻"},{"annotation":"pinching hand: medium-light skin tone","group":1,"hexcode":"1F90F-1F3FC","order":208,"shortcodes":["pinch_tone2"],"unicode":"🤏🏼"},{"annotation":"pinching hand: medium skin tone","group":1,"hexcode":"1F90F-1F3FD","order":209,"shortcodes":["pinch_tone3"],"unicode":"🤏🏽"},{"annotation":"pinching hand: medium-dark skin tone","group":1,"hexcode":"1F90F-1F3FE","order":210,"shortcodes":["pinch_tone4"],"unicode":"🤏🏾"},{"annotation":"pinching hand: dark skin tone","group":1,"hexcode":"1F90F-1F3FF","order":211,"shortcodes":["pinch_tone5"],"unicode":"🤏🏿"}]},{"annotation":"victory hand","group":1,"hexcode":"270C","order":213,"shortcodes":["victory"],"tags":["hand","v","victory"],"unicode":"✌️","skins":[{"annotation":"victory hand: light skin tone","group":1,"hexcode":"270C-1F3FB","order":214,"shortcodes":["victory_tone1"],"unicode":"✌🏻"},{"annotation":"victory hand: medium-light skin tone","group":1,"hexcode":"270C-1F3FC","order":215,"shortcodes":["victory_tone2"],"unicode":"✌🏼"},{"annotation":"victory hand: medium skin tone","group":1,"hexcode":"270C-1F3FD","order":216,"shortcodes":["victory_tone3"],"unicode":"✌🏽"},{"annotation":"victory hand: medium-dark skin tone","group":1,"hexcode":"270C-1F3FE","order":217,"shortcodes":["victory_tone4"],"unicode":"✌🏾"},{"annotation":"victory hand: dark skin tone","group":1,"hexcode":"270C-1F3FF","order":218,"shortcodes":["victory_tone5"],"unicode":"✌🏿"}]},{"annotation":"crossed fingers","group":1,"hexcode":"1F91E","order":219,"shortcodes":["fingers_crossed"],"tags":["cross","finger","hand","luck"],"unicode":"🤞","skins":[{"annotation":"crossed fingers: light skin tone","group":1,"hexcode":"1F91E-1F3FB","order":220,"shortcodes":["fingers_crossed_tone1"],"unicode":"🤞🏻"},{"annotation":"crossed fingers: medium-light skin tone","group":1,"hexcode":"1F91E-1F3FC","order":221,"shortcodes":["fingers_crossed_tone2"],"unicode":"🤞🏼"},{"annotation":"crossed fingers: medium skin tone","group":1,"hexcode":"1F91E-1F3FD","order":222,"shortcodes":["fingers_crossed_tone3"],"unicode":"🤞🏽"},{"annotation":"crossed fingers: medium-dark skin tone","group":1,"hexcode":"1F91E-1F3FE","order":223,"shortcodes":["fingers_crossed_tone4"],"unicode":"🤞🏾"},{"annotation":"crossed fingers: dark skin tone","group":1,"hexcode":"1F91E-1F3FF","order":224,"shortcodes":["fingers_crossed_tone5"],"unicode":"🤞🏿"}]},{"annotation":"love-you gesture","group":1,"hexcode":"1F91F","order":225,"shortcodes":["love_you_gesture"],"tags":["hand","ily"],"unicode":"🤟","skins":[{"annotation":"love-you gesture: light skin tone","group":1,"hexcode":"1F91F-1F3FB","order":226,"shortcodes":["love_you_gesture_tone1"],"unicode":"🤟🏻"},{"annotation":"love-you gesture: medium-light skin tone","group":1,"hexcode":"1F91F-1F3FC","order":227,"shortcodes":["love_you_gesture_tone2"],"unicode":"🤟🏼"},{"annotation":"love-you gesture: medium skin tone","group":1,"hexcode":"1F91F-1F3FD","order":228,"shortcodes":["love_you_gesture_tone3"],"unicode":"🤟🏽"},{"annotation":"love-you gesture: medium-dark skin tone","group":1,"hexcode":"1F91F-1F3FE","order":229,"shortcodes":["love_you_gesture_tone4"],"unicode":"🤟🏾"},{"annotation":"love-you gesture: dark skin tone","group":1,"hexcode":"1F91F-1F3FF","order":230,"shortcodes":["love_you_gesture_tone5"],"unicode":"🤟🏿"}]},{"annotation":"sign of the horns","group":1,"hexcode":"1F918","order":231,"shortcodes":["metal"],"tags":["finger","hand","horns","rock-on"],"unicode":"🤘","emoticon":"\\\\m/","skins":[{"annotation":"sign of the horns: light skin tone","group":1,"hexcode":"1F918-1F3FB","order":232,"shortcodes":["metal_tone1"],"unicode":"🤘🏻"},{"annotation":"sign of the horns: medium-light skin tone","group":1,"hexcode":"1F918-1F3FC","order":233,"shortcodes":["metal_tone2"],"unicode":"🤘🏼"},{"annotation":"sign of the horns: medium skin tone","group":1,"hexcode":"1F918-1F3FD","order":234,"shortcodes":["metal_tone3"],"unicode":"🤘🏽"},{"annotation":"sign of the horns: medium-dark skin tone","group":1,"hexcode":"1F918-1F3FE","order":235,"shortcodes":["metal_tone4"],"unicode":"🤘🏾"},{"annotation":"sign of the horns: dark skin tone","group":1,"hexcode":"1F918-1F3FF","order":236,"shortcodes":["metal_tone5"],"unicode":"🤘🏿"}]},{"annotation":"call me hand","group":1,"hexcode":"1F919","order":237,"shortcodes":["call_me"],"tags":["call","hand"],"unicode":"🤙","skins":[{"annotation":"call me hand: light skin tone","group":1,"hexcode":"1F919-1F3FB","order":238,"shortcodes":["call_me_tone1"],"unicode":"🤙🏻"},{"annotation":"call me hand: medium-light skin tone","group":1,"hexcode":"1F919-1F3FC","order":239,"shortcodes":["call_me_tone2"],"unicode":"🤙🏼"},{"annotation":"call me hand: medium skin tone","group":1,"hexcode":"1F919-1F3FD","order":240,"shortcodes":["call_me_tone3"],"unicode":"🤙🏽"},{"annotation":"call me hand: medium-dark skin tone","group":1,"hexcode":"1F919-1F3FE","order":241,"shortcodes":["call_me_tone4"],"unicode":"🤙🏾"},{"annotation":"call me hand: dark skin tone","group":1,"hexcode":"1F919-1F3FF","order":242,"shortcodes":["call_me_tone5"],"unicode":"🤙🏿"}]},{"annotation":"backhand index pointing left","group":1,"hexcode":"1F448","order":243,"shortcodes":["point_left"],"tags":["backhand","finger","hand","index","point"],"unicode":"👈️","skins":[{"annotation":"backhand index pointing left: light skin tone","group":1,"hexcode":"1F448-1F3FB","order":244,"shortcodes":["point_left_tone1"],"unicode":"👈🏻"},{"annotation":"backhand index pointing left: medium-light skin tone","group":1,"hexcode":"1F448-1F3FC","order":245,"shortcodes":["point_left_tone2"],"unicode":"👈🏼"},{"annotation":"backhand index pointing left: medium skin tone","group":1,"hexcode":"1F448-1F3FD","order":246,"shortcodes":["point_left_tone3"],"unicode":"👈🏽"},{"annotation":"backhand index pointing left: medium-dark skin tone","group":1,"hexcode":"1F448-1F3FE","order":247,"shortcodes":["point_left_tone4"],"unicode":"👈🏾"},{"annotation":"backhand index pointing left: dark skin tone","group":1,"hexcode":"1F448-1F3FF","order":248,"shortcodes":["point_left_tone5"],"unicode":"👈🏿"}]},{"annotation":"backhand index pointing right","group":1,"hexcode":"1F449","order":249,"shortcodes":["point_right"],"tags":["backhand","finger","hand","index","point"],"unicode":"👉️","skins":[{"annotation":"backhand index pointing right: light skin tone","group":1,"hexcode":"1F449-1F3FB","order":250,"shortcodes":["point_right_tone1"],"unicode":"👉🏻"},{"annotation":"backhand index pointing right: medium-light skin tone","group":1,"hexcode":"1F449-1F3FC","order":251,"shortcodes":["point_right_tone2"],"unicode":"👉🏼"},{"annotation":"backhand index pointing right: medium skin tone","group":1,"hexcode":"1F449-1F3FD","order":252,"shortcodes":["point_right_tone3"],"unicode":"👉🏽"},{"annotation":"backhand index pointing right: medium-dark skin tone","group":1,"hexcode":"1F449-1F3FE","order":253,"shortcodes":["point_right_tone4"],"unicode":"👉🏾"},{"annotation":"backhand index pointing right: dark skin tone","group":1,"hexcode":"1F449-1F3FF","order":254,"shortcodes":["point_right_tone5"],"unicode":"👉🏿"}]},{"annotation":"backhand index pointing up","group":1,"hexcode":"1F446","order":255,"shortcodes":["backhand_point_up"],"tags":["backhand","finger","hand","point","up"],"unicode":"👆️","skins":[{"annotation":"backhand index pointing up: light skin tone","group":1,"hexcode":"1F446-1F3FB","order":256,"shortcodes":["backhand_point_up_tone1"],"unicode":"👆🏻"},{"annotation":"backhand index pointing up: medium-light skin tone","group":1,"hexcode":"1F446-1F3FC","order":257,"shortcodes":["backhand_point_up_tone2"],"unicode":"👆🏼"},{"annotation":"backhand index pointing up: medium skin tone","group":1,"hexcode":"1F446-1F3FD","order":258,"shortcodes":["backhand_point_up_tone3"],"unicode":"👆🏽"},{"annotation":"backhand index pointing up: medium-dark skin tone","group":1,"hexcode":"1F446-1F3FE","order":259,"shortcodes":["backhand_point_up_tone4"],"unicode":"👆🏾"},{"annotation":"backhand index pointing up: dark skin tone","group":1,"hexcode":"1F446-1F3FF","order":260,"shortcodes":["backhand_point_up_tone5"],"unicode":"👆🏿"}]},{"annotation":"middle finger","group":1,"hexcode":"1F595","order":261,"shortcodes":["middle_finger"],"tags":["finger","hand"],"unicode":"🖕","skins":[{"annotation":"middle finger: light skin tone","group":1,"hexcode":"1F595-1F3FB","order":262,"shortcodes":["middle_finger_tone1"],"unicode":"🖕🏻"},{"annotation":"middle finger: medium-light skin tone","group":1,"hexcode":"1F595-1F3FC","order":263,"shortcodes":["middle_finger_tone2"],"unicode":"🖕🏼"},{"annotation":"middle finger: medium skin tone","group":1,"hexcode":"1F595-1F3FD","order":264,"shortcodes":["middle_finger_tone3"],"unicode":"🖕🏽"},{"annotation":"middle finger: medium-dark skin tone","group":1,"hexcode":"1F595-1F3FE","order":265,"shortcodes":["middle_finger_tone4"],"unicode":"🖕🏾"},{"annotation":"middle finger: dark skin tone","group":1,"hexcode":"1F595-1F3FF","order":266,"shortcodes":["middle_finger_tone5"],"unicode":"🖕🏿"}]},{"annotation":"backhand index pointing down","group":1,"hexcode":"1F447","order":267,"shortcodes":["point_down"],"tags":["backhand","down","finger","hand","point"],"unicode":"👇️","skins":[{"annotation":"backhand index pointing down: light skin tone","group":1,"hexcode":"1F447-1F3FB","order":268,"shortcodes":["point_down_tone1"],"unicode":"👇🏻"},{"annotation":"backhand index pointing down: medium-light skin tone","group":1,"hexcode":"1F447-1F3FC","order":269,"shortcodes":["point_down_tone2"],"unicode":"👇🏼"},{"annotation":"backhand index pointing down: medium skin tone","group":1,"hexcode":"1F447-1F3FD","order":270,"shortcodes":["point_down_tone3"],"unicode":"👇🏽"},{"annotation":"backhand index pointing down: medium-dark skin tone","group":1,"hexcode":"1F447-1F3FE","order":271,"shortcodes":["point_down_tone4"],"unicode":"👇🏾"},{"annotation":"backhand index pointing down: dark skin tone","group":1,"hexcode":"1F447-1F3FF","order":272,"shortcodes":["point_down_tone5"],"unicode":"👇🏿"}]},{"annotation":"index pointing up","group":1,"hexcode":"261D","order":274,"shortcodes":["point_up"],"tags":["finger","hand","index","point","up"],"unicode":"☝️","skins":[{"annotation":"index pointing up: light skin tone","group":1,"hexcode":"261D-1F3FB","order":275,"shortcodes":["point_up_tone1"],"unicode":"☝🏻"},{"annotation":"index pointing up: medium-light skin tone","group":1,"hexcode":"261D-1F3FC","order":276,"shortcodes":["point_up_tone2"],"unicode":"☝🏼"},{"annotation":"index pointing up: medium skin tone","group":1,"hexcode":"261D-1F3FD","order":277,"shortcodes":["point_up_tone3"],"unicode":"☝🏽"},{"annotation":"index pointing up: medium-dark skin tone","group":1,"hexcode":"261D-1F3FE","order":278,"shortcodes":["point_up_tone4"],"unicode":"☝🏾"},{"annotation":"index pointing up: dark skin tone","group":1,"hexcode":"261D-1F3FF","order":279,"shortcodes":["point_up_tone5"],"unicode":"☝🏿"}]},{"annotation":"thumbs up","group":1,"hexcode":"1F44D","order":280,"shortcodes":["thumbsup","+1","yes"],"tags":["+1","hand","thumb","up"],"unicode":"👍️","skins":[{"annotation":"thumbs up: light skin tone","group":1,"hexcode":"1F44D-1F3FB","order":281,"shortcodes":["thumbsup_tone1","+1_tone1","yes_tone1"],"unicode":"👍🏻"},{"annotation":"thumbs up: medium-light skin tone","group":1,"hexcode":"1F44D-1F3FC","order":282,"shortcodes":["thumbsup_tone2","+1_tone2","yes_tone2"],"unicode":"👍🏼"},{"annotation":"thumbs up: medium skin tone","group":1,"hexcode":"1F44D-1F3FD","order":283,"shortcodes":["thumbsup_tone3","+1_tone3","yes_tone3"],"unicode":"👍🏽"},{"annotation":"thumbs up: medium-dark skin tone","group":1,"hexcode":"1F44D-1F3FE","order":284,"shortcodes":["thumbsup_tone4","+1_tone4","yes_tone4"],"unicode":"👍🏾"},{"annotation":"thumbs up: dark skin tone","group":1,"hexcode":"1F44D-1F3FF","order":285,"shortcodes":["thumbsup_tone5","+1_tone5","yes_tone5"],"unicode":"👍🏿"}]},{"annotation":"thumbs down","group":1,"hexcode":"1F44E","order":286,"shortcodes":["thumbsdown","-1","no"],"tags":["-1","down","hand","thumb"],"unicode":"👎️","skins":[{"annotation":"thumbs down: light skin tone","group":1,"hexcode":"1F44E-1F3FB","order":287,"shortcodes":["thumbsdown_tone1","-1_tone1","no_tone1"],"unicode":"👎🏻"},{"annotation":"thumbs down: medium-light skin tone","group":1,"hexcode":"1F44E-1F3FC","order":288,"shortcodes":["thumbsdown_tone2","-1_tone2","no_tone2"],"unicode":"👎🏼"},{"annotation":"thumbs down: medium skin tone","group":1,"hexcode":"1F44E-1F3FD","order":289,"shortcodes":["thumbsdown_tone3","-1_tone3","no_tone3"],"unicode":"👎🏽"},{"annotation":"thumbs down: medium-dark skin tone","group":1,"hexcode":"1F44E-1F3FE","order":290,"shortcodes":["thumbsdown_tone4","-1_tone4","no_tone4"],"unicode":"👎🏾"},{"annotation":"thumbs down: dark skin tone","group":1,"hexcode":"1F44E-1F3FF","order":291,"shortcodes":["thumbsdown_tone5","-1_tone5","no_tone5"],"unicode":"👎🏿"}]},{"annotation":"raised fist","group":1,"hexcode":"270A","order":292,"shortcodes":["fist"],"tags":["clenched","fist","hand","punch"],"unicode":"✊","skins":[{"annotation":"raised fist: light skin tone","group":1,"hexcode":"270A-1F3FB","order":293,"shortcodes":["fist_tone1"],"unicode":"✊🏻"},{"annotation":"raised fist: medium-light skin tone","group":1,"hexcode":"270A-1F3FC","order":294,"shortcodes":["fist_tone2"],"unicode":"✊🏼"},{"annotation":"raised fist: medium skin tone","group":1,"hexcode":"270A-1F3FD","order":295,"shortcodes":["fist_tone3"],"unicode":"✊🏽"},{"annotation":"raised fist: medium-dark skin tone","group":1,"hexcode":"270A-1F3FE","order":296,"shortcodes":["fist_tone4"],"unicode":"✊🏾"},{"annotation":"raised fist: dark skin tone","group":1,"hexcode":"270A-1F3FF","order":297,"shortcodes":["fist_tone5"],"unicode":"✊🏿"}]},{"annotation":"oncoming fist","group":1,"hexcode":"1F44A","order":298,"shortcodes":["punch"],"tags":["clenched","fist","hand","punch"],"unicode":"👊","skins":[{"annotation":"oncoming fist: light skin tone","group":1,"hexcode":"1F44A-1F3FB","order":299,"shortcodes":["punch_tone1"],"unicode":"👊🏻"},{"annotation":"oncoming fist: medium-light skin tone","group":1,"hexcode":"1F44A-1F3FC","order":300,"shortcodes":["punch_tone2"],"unicode":"👊🏼"},{"annotation":"oncoming fist: medium skin tone","group":1,"hexcode":"1F44A-1F3FD","order":301,"shortcodes":["punch_tone3"],"unicode":"👊🏽"},{"annotation":"oncoming fist: medium-dark skin tone","group":1,"hexcode":"1F44A-1F3FE","order":302,"shortcodes":["punch_tone4"],"unicode":"👊🏾"},{"annotation":"oncoming fist: dark skin tone","group":1,"hexcode":"1F44A-1F3FF","order":303,"shortcodes":["punch_tone5"],"unicode":"👊🏿"}]},{"annotation":"left-facing fist","group":1,"hexcode":"1F91B","order":304,"shortcodes":["left_facing_fist"],"tags":["fist","leftwards"],"unicode":"🤛","skins":[{"annotation":"left-facing fist: light skin tone","group":1,"hexcode":"1F91B-1F3FB","order":305,"shortcodes":["left_facing_fist_tone1"],"unicode":"🤛🏻"},{"annotation":"left-facing fist: medium-light skin tone","group":1,"hexcode":"1F91B-1F3FC","order":306,"shortcodes":["left_facing_fist_tone2"],"unicode":"🤛🏼"},{"annotation":"left-facing fist: medium skin tone","group":1,"hexcode":"1F91B-1F3FD","order":307,"shortcodes":["left_facing_fist_tone3"],"unicode":"🤛🏽"},{"annotation":"left-facing fist: medium-dark skin tone","group":1,"hexcode":"1F91B-1F3FE","order":308,"shortcodes":["left_facing_fist_tone4"],"unicode":"🤛🏾"},{"annotation":"left-facing fist: dark skin tone","group":1,"hexcode":"1F91B-1F3FF","order":309,"shortcodes":["left_facing_fist_tone5"],"unicode":"🤛🏿"}]},{"annotation":"right-facing fist","group":1,"hexcode":"1F91C","order":310,"shortcodes":["right_facing_fist"],"tags":["fist","rightwards"],"unicode":"🤜","skins":[{"annotation":"right-facing fist: light skin tone","group":1,"hexcode":"1F91C-1F3FB","order":311,"shortcodes":["right_facing_fist_tone1"],"unicode":"🤜🏻"},{"annotation":"right-facing fist: medium-light skin tone","group":1,"hexcode":"1F91C-1F3FC","order":312,"shortcodes":["right_facing_fist_tone2"],"unicode":"🤜🏼"},{"annotation":"right-facing fist: medium skin tone","group":1,"hexcode":"1F91C-1F3FD","order":313,"shortcodes":["right_facing_fist_tone3"],"unicode":"🤜🏽"},{"annotation":"right-facing fist: medium-dark skin tone","group":1,"hexcode":"1F91C-1F3FE","order":314,"shortcodes":["right_facing_fist_tone4"],"unicode":"🤜🏾"},{"annotation":"right-facing fist: dark skin tone","group":1,"hexcode":"1F91C-1F3FF","order":315,"shortcodes":["right_facing_fist_tone5"],"unicode":"🤜🏿"}]},{"annotation":"clapping hands","group":1,"hexcode":"1F44F","order":316,"shortcodes":["clap"],"tags":["clap","hand"],"unicode":"👏","skins":[{"annotation":"clapping hands: light skin tone","group":1,"hexcode":"1F44F-1F3FB","order":317,"shortcodes":["clap_tone1"],"unicode":"👏🏻"},{"annotation":"clapping hands: medium-light skin tone","group":1,"hexcode":"1F44F-1F3FC","order":318,"shortcodes":["clap_tone2"],"unicode":"👏🏼"},{"annotation":"clapping hands: medium skin tone","group":1,"hexcode":"1F44F-1F3FD","order":319,"shortcodes":["clap_tone3"],"unicode":"👏🏽"},{"annotation":"clapping hands: medium-dark skin tone","group":1,"hexcode":"1F44F-1F3FE","order":320,"shortcodes":["clap_tone4"],"unicode":"👏🏾"},{"annotation":"clapping hands: dark skin tone","group":1,"hexcode":"1F44F-1F3FF","order":321,"shortcodes":["clap_tone5"],"unicode":"👏🏿"}]},{"annotation":"raising hands","group":1,"hexcode":"1F64C","order":322,"shortcodes":["raised_hands"],"tags":["celebration","gesture","hand","hooray","raised"],"unicode":"🙌","skins":[{"annotation":"raising hands: light skin tone","group":1,"hexcode":"1F64C-1F3FB","order":323,"shortcodes":["raised_hands_tone1"],"unicode":"🙌🏻"},{"annotation":"raising hands: medium-light skin tone","group":1,"hexcode":"1F64C-1F3FC","order":324,"shortcodes":["raised_hands_tone2"],"unicode":"🙌🏼"},{"annotation":"raising hands: medium skin tone","group":1,"hexcode":"1F64C-1F3FD","order":325,"shortcodes":["raised_hands_tone3"],"unicode":"🙌🏽"},{"annotation":"raising hands: medium-dark skin tone","group":1,"hexcode":"1F64C-1F3FE","order":326,"shortcodes":["raised_hands_tone4"],"unicode":"🙌🏾"},{"annotation":"raising hands: dark skin tone","group":1,"hexcode":"1F64C-1F3FF","order":327,"shortcodes":["raised_hands_tone5"],"unicode":"🙌🏿"}]},{"annotation":"open hands","group":1,"hexcode":"1F450","order":328,"shortcodes":["open_hands"],"tags":["hand","open"],"unicode":"👐","skins":[{"annotation":"open hands: light skin tone","group":1,"hexcode":"1F450-1F3FB","order":329,"shortcodes":["open_hands_tone1"],"unicode":"👐🏻"},{"annotation":"open hands: medium-light skin tone","group":1,"hexcode":"1F450-1F3FC","order":330,"shortcodes":["open_hands_tone2"],"unicode":"👐🏼"},{"annotation":"open hands: medium skin tone","group":1,"hexcode":"1F450-1F3FD","order":331,"shortcodes":["open_hands_tone3"],"unicode":"👐🏽"},{"annotation":"open hands: medium-dark skin tone","group":1,"hexcode":"1F450-1F3FE","order":332,"shortcodes":["open_hands_tone4"],"unicode":"👐🏾"},{"annotation":"open hands: dark skin tone","group":1,"hexcode":"1F450-1F3FF","order":333,"shortcodes":["open_hands_tone5"],"unicode":"👐🏿"}]},{"annotation":"palms up together","group":1,"hexcode":"1F932","order":334,"shortcodes":["palms_up"],"tags":["prayer"],"unicode":"🤲","skins":[{"annotation":"palms up together: light skin tone","group":1,"hexcode":"1F932-1F3FB","order":335,"shortcodes":["palms_up_tone1"],"unicode":"🤲🏻"},{"annotation":"palms up together: medium-light skin tone","group":1,"hexcode":"1F932-1F3FC","order":336,"shortcodes":["palms_up_tone2"],"unicode":"🤲🏼"},{"annotation":"palms up together: medium skin tone","group":1,"hexcode":"1F932-1F3FD","order":337,"shortcodes":["palms_up_tone3"],"unicode":"🤲🏽"},{"annotation":"palms up together: medium-dark skin tone","group":1,"hexcode":"1F932-1F3FE","order":338,"shortcodes":["palms_up_tone4"],"unicode":"🤲🏾"},{"annotation":"palms up together: dark skin tone","group":1,"hexcode":"1F932-1F3FF","order":339,"shortcodes":["palms_up_tone5"],"unicode":"🤲🏿"}]},{"annotation":"handshake","group":1,"hexcode":"1F91D","order":340,"shortcodes":["handshake"],"tags":["agreement","hand","meeting","shake"],"unicode":"🤝"},{"annotation":"folded hands","group":1,"hexcode":"1F64F","order":341,"shortcodes":["pray"],"tags":["ask","hand","please","pray","thanks"],"unicode":"🙏","skins":[{"annotation":"folded hands: light skin tone","group":1,"hexcode":"1F64F-1F3FB","order":342,"shortcodes":["pray_tone1"],"unicode":"🙏🏻"},{"annotation":"folded hands: medium-light skin tone","group":1,"hexcode":"1F64F-1F3FC","order":343,"shortcodes":["pray_tone2"],"unicode":"🙏🏼"},{"annotation":"folded hands: medium skin tone","group":1,"hexcode":"1F64F-1F3FD","order":344,"shortcodes":["pray_tone3"],"unicode":"🙏🏽"},{"annotation":"folded hands: medium-dark skin tone","group":1,"hexcode":"1F64F-1F3FE","order":345,"shortcodes":["pray_tone4"],"unicode":"🙏🏾"},{"annotation":"folded hands: dark skin tone","group":1,"hexcode":"1F64F-1F3FF","order":346,"shortcodes":["pray_tone5"],"unicode":"🙏🏿"}]},{"annotation":"writing hand","group":1,"hexcode":"270D","order":348,"shortcodes":["writing_hand"],"tags":["hand","write"],"unicode":"✍️","skins":[{"annotation":"writing hand: light skin tone","group":1,"hexcode":"270D-1F3FB","order":349,"shortcodes":["writing_hand_tone1"],"unicode":"✍🏻"},{"annotation":"writing hand: medium-light skin tone","group":1,"hexcode":"270D-1F3FC","order":350,"shortcodes":["writing_hand_tone2"],"unicode":"✍🏼"},{"annotation":"writing hand: medium skin tone","group":1,"hexcode":"270D-1F3FD","order":351,"shortcodes":["writing_hand_tone3"],"unicode":"✍🏽"},{"annotation":"writing hand: medium-dark skin tone","group":1,"hexcode":"270D-1F3FE","order":352,"shortcodes":["writing_hand_tone4"],"unicode":"✍🏾"},{"annotation":"writing hand: dark skin tone","group":1,"hexcode":"270D-1F3FF","order":353,"shortcodes":["writing_hand_tone5"],"unicode":"✍🏿"}]},{"annotation":"nail polish","group":1,"hexcode":"1F485","order":354,"shortcodes":["nail_care"],"tags":["care","cosmetics","manicure","nail","polish"],"unicode":"💅","skins":[{"annotation":"nail polish: light skin tone","group":1,"hexcode":"1F485-1F3FB","order":355,"shortcodes":["nail_care_tone1"],"unicode":"💅🏻"},{"annotation":"nail polish: medium-light skin tone","group":1,"hexcode":"1F485-1F3FC","order":356,"shortcodes":["nail_care_tone2"],"unicode":"💅🏼"},{"annotation":"nail polish: medium skin tone","group":1,"hexcode":"1F485-1F3FD","order":357,"shortcodes":["nail_care_tone3"],"unicode":"💅🏽"},{"annotation":"nail polish: medium-dark skin tone","group":1,"hexcode":"1F485-1F3FE","order":358,"shortcodes":["nail_care_tone4"],"unicode":"💅🏾"},{"annotation":"nail polish: dark skin tone","group":1,"hexcode":"1F485-1F3FF","order":359,"shortcodes":["nail_care_tone5"],"unicode":"💅🏿"}]},{"annotation":"selfie","group":1,"hexcode":"1F933","order":360,"shortcodes":["selfie"],"tags":["camera","phone"],"unicode":"🤳","skins":[{"annotation":"selfie: light skin tone","group":1,"hexcode":"1F933-1F3FB","order":361,"shortcodes":["selfie_tone1"],"unicode":"🤳🏻"},{"annotation":"selfie: medium-light skin tone","group":1,"hexcode":"1F933-1F3FC","order":362,"shortcodes":["selfie_tone2"],"unicode":"🤳🏼"},{"annotation":"selfie: medium skin tone","group":1,"hexcode":"1F933-1F3FD","order":363,"shortcodes":["selfie_tone3"],"unicode":"🤳🏽"},{"annotation":"selfie: medium-dark skin tone","group":1,"hexcode":"1F933-1F3FE","order":364,"shortcodes":["selfie_tone4"],"unicode":"🤳🏾"},{"annotation":"selfie: dark skin tone","group":1,"hexcode":"1F933-1F3FF","order":365,"shortcodes":["selfie_tone5"],"unicode":"🤳🏿"}]},{"annotation":"flexed biceps","group":1,"hexcode":"1F4AA","order":366,"shortcodes":["muscle","right_bicep"],"tags":["biceps","comic","flex","muscle"],"unicode":"💪","skins":[{"annotation":"flexed biceps: light skin tone","group":1,"hexcode":"1F4AA-1F3FB","order":367,"shortcodes":["muscle_tone1","right_bicep_tone1"],"unicode":"💪🏻"},{"annotation":"flexed biceps: medium-light skin tone","group":1,"hexcode":"1F4AA-1F3FC","order":368,"shortcodes":["muscle_tone2","right_bicep_tone2"],"unicode":"💪🏼"},{"annotation":"flexed biceps: medium skin tone","group":1,"hexcode":"1F4AA-1F3FD","order":369,"shortcodes":["muscle_tone3","right_bicep_tone3"],"unicode":"💪🏽"},{"annotation":"flexed biceps: medium-dark skin tone","group":1,"hexcode":"1F4AA-1F3FE","order":370,"shortcodes":["muscle_tone4","right_bicep_tone4"],"unicode":"💪🏾"},{"annotation":"flexed biceps: dark skin tone","group":1,"hexcode":"1F4AA-1F3FF","order":371,"shortcodes":["muscle_tone5","right_bicep_tone5"],"unicode":"💪🏿"}]},{"annotation":"mechanical arm","group":1,"hexcode":"1F9BE","order":372,"shortcodes":["mech_arm"],"tags":["accessibility","prosthetic"],"unicode":"🦾"},{"annotation":"mechanical leg","group":1,"hexcode":"1F9BF","order":373,"shortcodes":["mech_leg"],"tags":["accessibility","prosthetic"],"unicode":"🦿"},{"annotation":"leg","group":1,"hexcode":"1F9B5","order":374,"shortcodes":["leg"],"tags":["kick","limb"],"unicode":"🦵","skins":[{"annotation":"leg: light skin tone","group":1,"hexcode":"1F9B5-1F3FB","order":375,"shortcodes":["leg_tone1"],"unicode":"🦵🏻"},{"annotation":"leg: medium-light skin tone","group":1,"hexcode":"1F9B5-1F3FC","order":376,"shortcodes":["leg_tone2"],"unicode":"🦵🏼"},{"annotation":"leg: medium skin tone","group":1,"hexcode":"1F9B5-1F3FD","order":377,"shortcodes":["leg_tone3"],"unicode":"🦵🏽"},{"annotation":"leg: medium-dark skin tone","group":1,"hexcode":"1F9B5-1F3FE","order":378,"shortcodes":["leg_tone4"],"unicode":"🦵🏾"},{"annotation":"leg: dark skin tone","group":1,"hexcode":"1F9B5-1F3FF","order":379,"shortcodes":["leg_tone5"],"unicode":"🦵🏿"}]},{"annotation":"foot","group":1,"hexcode":"1F9B6","order":380,"shortcodes":["foot"],"tags":["kick","stomp"],"unicode":"🦶","skins":[{"annotation":"foot: light skin tone","group":1,"hexcode":"1F9B6-1F3FB","order":381,"shortcodes":["foot_tone1"],"unicode":"🦶🏻"},{"annotation":"foot: medium-light skin tone","group":1,"hexcode":"1F9B6-1F3FC","order":382,"shortcodes":["foot_tone2"],"unicode":"🦶🏼"},{"annotation":"foot: medium skin tone","group":1,"hexcode":"1F9B6-1F3FD","order":383,"shortcodes":["foot_tone3"],"unicode":"🦶🏽"},{"annotation":"foot: medium-dark skin tone","group":1,"hexcode":"1F9B6-1F3FE","order":384,"shortcodes":["foot_tone4"],"unicode":"🦶🏾"},{"annotation":"foot: dark skin tone","group":1,"hexcode":"1F9B6-1F3FF","order":385,"shortcodes":["foot_tone5"],"unicode":"🦶🏿"}]},{"annotation":"ear","group":1,"hexcode":"1F442","order":386,"shortcodes":["ear"],"tags":["body"],"unicode":"👂️","skins":[{"annotation":"ear: light skin tone","group":1,"hexcode":"1F442-1F3FB","order":387,"shortcodes":["ear_tone1"],"unicode":"👂🏻"},{"annotation":"ear: medium-light skin tone","group":1,"hexcode":"1F442-1F3FC","order":388,"shortcodes":["ear_tone2"],"unicode":"👂🏼"},{"annotation":"ear: medium skin tone","group":1,"hexcode":"1F442-1F3FD","order":389,"shortcodes":["ear_tone3"],"unicode":"👂🏽"},{"annotation":"ear: medium-dark skin tone","group":1,"hexcode":"1F442-1F3FE","order":390,"shortcodes":["ear_tone4"],"unicode":"👂🏾"},{"annotation":"ear: dark skin tone","group":1,"hexcode":"1F442-1F3FF","order":391,"shortcodes":["ear_tone5"],"unicode":"👂🏿"}]},{"annotation":"ear with hearing aid","group":1,"hexcode":"1F9BB","order":392,"shortcodes":["hearing_aid"],"tags":["accessibility","hard of hearing"],"unicode":"🦻","skins":[{"annotation":"ear with hearing aid: light skin tone","group":1,"hexcode":"1F9BB-1F3FB","order":393,"shortcodes":["hearing_aid_tone1"],"unicode":"🦻🏻"},{"annotation":"ear with hearing aid: medium-light skin tone","group":1,"hexcode":"1F9BB-1F3FC","order":394,"shortcodes":["hearing_aid_tone2"],"unicode":"🦻🏼"},{"annotation":"ear with hearing aid: medium skin tone","group":1,"hexcode":"1F9BB-1F3FD","order":395,"shortcodes":["hearing_aid_tone3"],"unicode":"🦻🏽"},{"annotation":"ear with hearing aid: medium-dark skin tone","group":1,"hexcode":"1F9BB-1F3FE","order":396,"shortcodes":["hearing_aid_tone4"],"unicode":"🦻🏾"},{"annotation":"ear with hearing aid: dark skin tone","group":1,"hexcode":"1F9BB-1F3FF","order":397,"shortcodes":["hearing_aid_tone5"],"unicode":"🦻🏿"}]},{"annotation":"nose","group":1,"hexcode":"1F443","order":398,"shortcodes":["nose"],"tags":["body"],"unicode":"👃","skins":[{"annotation":"nose: light skin tone","group":1,"hexcode":"1F443-1F3FB","order":399,"shortcodes":["nose_tone1"],"unicode":"👃🏻"},{"annotation":"nose: medium-light skin tone","group":1,"hexcode":"1F443-1F3FC","order":400,"shortcodes":["nose_tone2"],"unicode":"👃🏼"},{"annotation":"nose: medium skin tone","group":1,"hexcode":"1F443-1F3FD","order":401,"shortcodes":["nose_tone3"],"unicode":"👃🏽"},{"annotation":"nose: medium-dark skin tone","group":1,"hexcode":"1F443-1F3FE","order":402,"shortcodes":["nose_tone4"],"unicode":"👃🏾"},{"annotation":"nose: dark skin tone","group":1,"hexcode":"1F443-1F3FF","order":403,"shortcodes":["nose_tone5"],"unicode":"👃🏿"}]},{"annotation":"brain","group":1,"hexcode":"1F9E0","order":404,"shortcodes":["brain"],"tags":["intelligent"],"unicode":"🧠"},{"annotation":"anatomical heart","group":1,"hexcode":"1FAC0","order":405,"shortcodes":["anatomical_heart"],"tags":["anatomical","cardiology","heart","organ","pulse"],"unicode":"🫀"},{"annotation":"lungs","group":1,"hexcode":"1FAC1","order":406,"shortcodes":["lungs"],"tags":["breath","exhalation","inhalation","organ","respiration"],"unicode":"🫁"},{"annotation":"tooth","group":1,"hexcode":"1F9B7","order":407,"shortcodes":["tooth"],"tags":["dentist"],"unicode":"🦷"},{"annotation":"bone","group":1,"hexcode":"1F9B4","order":408,"shortcodes":["bone"],"tags":["skeleton"],"unicode":"🦴"},{"annotation":"eyes","group":1,"hexcode":"1F440","order":409,"shortcodes":["eyes"],"tags":["eye","face"],"unicode":"👀"},{"annotation":"eye","group":1,"hexcode":"1F441","order":411,"shortcodes":["eye"],"tags":["body"],"unicode":"👁️"},{"annotation":"tongue","group":1,"hexcode":"1F445","order":412,"shortcodes":["tongue"],"tags":["body"],"unicode":"👅"},{"annotation":"mouth","group":1,"hexcode":"1F444","order":413,"shortcodes":["lips"],"tags":["lips"],"unicode":"👄"},{"annotation":"baby","group":1,"hexcode":"1F476","order":414,"shortcodes":["baby"],"tags":["young"],"unicode":"👶","skins":[{"annotation":"baby: light skin tone","group":1,"hexcode":"1F476-1F3FB","order":415,"shortcodes":["baby_tone1"],"unicode":"👶🏻"},{"annotation":"baby: medium-light skin tone","group":1,"hexcode":"1F476-1F3FC","order":416,"shortcodes":["baby_tone2"],"unicode":"👶🏼"},{"annotation":"baby: medium skin tone","group":1,"hexcode":"1F476-1F3FD","order":417,"shortcodes":["baby_tone3"],"unicode":"👶🏽"},{"annotation":"baby: medium-dark skin tone","group":1,"hexcode":"1F476-1F3FE","order":418,"shortcodes":["baby_tone4"],"unicode":"👶🏾"},{"annotation":"baby: dark skin tone","group":1,"hexcode":"1F476-1F3FF","order":419,"shortcodes":["baby_tone5"],"unicode":"👶🏿"}]},{"annotation":"child","group":1,"hexcode":"1F9D2","order":420,"shortcodes":["child"],"tags":["gender-neutral","unspecified gender","young"],"unicode":"🧒","skins":[{"annotation":"child: light skin tone","group":1,"hexcode":"1F9D2-1F3FB","order":421,"shortcodes":["child_tone1"],"unicode":"🧒🏻"},{"annotation":"child: medium-light skin tone","group":1,"hexcode":"1F9D2-1F3FC","order":422,"shortcodes":["child_tone2"],"unicode":"🧒🏼"},{"annotation":"child: medium skin tone","group":1,"hexcode":"1F9D2-1F3FD","order":423,"shortcodes":["child_tone3"],"unicode":"🧒🏽"},{"annotation":"child: medium-dark skin tone","group":1,"hexcode":"1F9D2-1F3FE","order":424,"shortcodes":["child_tone4"],"unicode":"🧒🏾"},{"annotation":"child: dark skin tone","group":1,"hexcode":"1F9D2-1F3FF","order":425,"shortcodes":["child_tone5"],"unicode":"🧒🏿"}]},{"annotation":"boy","group":1,"hexcode":"1F466","order":426,"shortcodes":["boy"],"tags":["young"],"unicode":"👦","skins":[{"annotation":"boy: light skin tone","group":1,"hexcode":"1F466-1F3FB","order":427,"shortcodes":["boy_tone1"],"unicode":"👦🏻"},{"annotation":"boy: medium-light skin tone","group":1,"hexcode":"1F466-1F3FC","order":428,"shortcodes":["boy_tone2"],"unicode":"👦🏼"},{"annotation":"boy: medium skin tone","group":1,"hexcode":"1F466-1F3FD","order":429,"shortcodes":["boy_tone3"],"unicode":"👦🏽"},{"annotation":"boy: medium-dark skin tone","group":1,"hexcode":"1F466-1F3FE","order":430,"shortcodes":["boy_tone4"],"unicode":"👦🏾"},{"annotation":"boy: dark skin tone","group":1,"hexcode":"1F466-1F3FF","order":431,"shortcodes":["boy_tone5"],"unicode":"👦🏿"}]},{"annotation":"girl","group":1,"hexcode":"1F467","order":432,"shortcodes":["girl"],"tags":["virgo","young","zodiac"],"unicode":"👧","skins":[{"annotation":"girl: light skin tone","group":1,"hexcode":"1F467-1F3FB","order":433,"shortcodes":["girl_tone1"],"unicode":"👧🏻"},{"annotation":"girl: medium-light skin tone","group":1,"hexcode":"1F467-1F3FC","order":434,"shortcodes":["girl_tone2"],"unicode":"👧🏼"},{"annotation":"girl: medium skin tone","group":1,"hexcode":"1F467-1F3FD","order":435,"shortcodes":["girl_tone3"],"unicode":"👧🏽"},{"annotation":"girl: medium-dark skin tone","group":1,"hexcode":"1F467-1F3FE","order":436,"shortcodes":["girl_tone4"],"unicode":"👧🏾"},{"annotation":"girl: dark skin tone","group":1,"hexcode":"1F467-1F3FF","order":437,"shortcodes":["girl_tone5"],"unicode":"👧🏿"}]},{"annotation":"person","group":1,"hexcode":"1F9D1","order":438,"shortcodes":["adult"],"tags":["adult","gender-neutral","unspecified gender"],"unicode":"🧑","skins":[{"annotation":"person: light skin tone","group":1,"hexcode":"1F9D1-1F3FB","order":439,"shortcodes":["adult_tone1"],"unicode":"🧑🏻"},{"annotation":"person: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC","order":440,"shortcodes":["adult_tone2"],"unicode":"🧑🏼"},{"annotation":"person: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD","order":441,"shortcodes":["adult_tone3"],"unicode":"🧑🏽"},{"annotation":"person: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE","order":442,"shortcodes":["adult_tone4"],"unicode":"🧑🏾"},{"annotation":"person: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF","order":443,"shortcodes":["adult_tone5"],"unicode":"🧑🏿"}]},{"annotation":"person: blond hair","group":1,"hexcode":"1F471","order":444,"shortcodes":["blond_person"],"tags":["blond","blond-haired person","hair"],"unicode":"👱","skins":[{"annotation":"person: light skin tone, blond hair","group":1,"hexcode":"1F471-1F3FB","order":445,"shortcodes":["blond_person_tone1"],"unicode":"👱🏻"},{"annotation":"person: medium-light skin tone, blond hair","group":1,"hexcode":"1F471-1F3FC","order":446,"shortcodes":["blond_person_tone2"],"unicode":"👱🏼"},{"annotation":"person: medium skin tone, blond hair","group":1,"hexcode":"1F471-1F3FD","order":447,"shortcodes":["blond_person_tone3"],"unicode":"👱🏽"},{"annotation":"person: medium-dark skin tone, blond hair","group":1,"hexcode":"1F471-1F3FE","order":448,"shortcodes":["blond_person_tone4"],"unicode":"👱🏾"},{"annotation":"person: dark skin tone, blond hair","group":1,"hexcode":"1F471-1F3FF","order":449,"shortcodes":["blond_person_tone5"],"unicode":"👱🏿"}]},{"annotation":"man","group":1,"hexcode":"1F468","order":450,"shortcodes":["man"],"tags":["adult"],"unicode":"👨","skins":[{"annotation":"man: light skin tone","group":1,"hexcode":"1F468-1F3FB","order":451,"shortcodes":["man_tone1"],"unicode":"👨🏻"},{"annotation":"man: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC","order":452,"shortcodes":["man_tone2"],"unicode":"👨🏼"},{"annotation":"man: medium skin tone","group":1,"hexcode":"1F468-1F3FD","order":453,"shortcodes":["man_tone3"],"unicode":"👨🏽"},{"annotation":"man: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE","order":454,"shortcodes":["man_tone4"],"unicode":"👨🏾"},{"annotation":"man: dark skin tone","group":1,"hexcode":"1F468-1F3FF","order":455,"shortcodes":["man_tone5"],"unicode":"👨🏿"}]},{"annotation":"man: beard","group":1,"hexcode":"1F9D4","order":456,"shortcodes":["bearded_person"],"tags":["beard","man","person"],"unicode":"🧔","skins":[{"annotation":"man: light skin tone, beard","group":1,"hexcode":"1F9D4-1F3FB","order":457,"shortcodes":["bearded_person_tone1"],"unicode":"🧔🏻"},{"annotation":"man: medium-light skin tone, beard","group":1,"hexcode":"1F9D4-1F3FC","order":458,"shortcodes":["bearded_person_tone2"],"unicode":"🧔🏼"},{"annotation":"man: medium skin tone, beard","group":1,"hexcode":"1F9D4-1F3FD","order":459,"shortcodes":["bearded_person_tone3"],"unicode":"🧔🏽"},{"annotation":"man: medium-dark skin tone, beard","group":1,"hexcode":"1F9D4-1F3FE","order":460,"shortcodes":["bearded_person_tone4"],"unicode":"🧔🏾"},{"annotation":"man: dark skin tone, beard","group":1,"hexcode":"1F9D4-1F3FF","order":461,"shortcodes":["bearded_person_tone5"],"unicode":"🧔🏿"}]},{"annotation":"man: red hair","group":1,"hexcode":"1F468-200D-1F9B0","order":462,"shortcodes":["red_haired_man"],"tags":["adult","man","red hair"],"unicode":"👨‍🦰","skins":[{"annotation":"man: light skin tone, red hair","group":1,"hexcode":"1F468-1F3FB-200D-1F9B0","order":463,"shortcodes":["red_haired_man_tone1"],"unicode":"👨🏻‍🦰"},{"annotation":"man: medium-light skin tone, red hair","group":1,"hexcode":"1F468-1F3FC-200D-1F9B0","order":464,"shortcodes":["red_haired_man_tone2"],"unicode":"👨🏼‍🦰"},{"annotation":"man: medium skin tone, red hair","group":1,"hexcode":"1F468-1F3FD-200D-1F9B0","order":465,"shortcodes":["red_haired_man_tone3"],"unicode":"👨🏽‍🦰"},{"annotation":"man: medium-dark skin tone, red hair","group":1,"hexcode":"1F468-1F3FE-200D-1F9B0","order":466,"shortcodes":["red_haired_man_tone4"],"unicode":"👨🏾‍🦰"},{"annotation":"man: dark skin tone, red hair","group":1,"hexcode":"1F468-1F3FF-200D-1F9B0","order":467,"shortcodes":["red_haired_man_tone5"],"unicode":"👨🏿‍🦰"}]},{"annotation":"man: curly hair","group":1,"hexcode":"1F468-200D-1F9B1","order":468,"shortcodes":["curly_haired_man"],"tags":["adult","curly hair","man"],"unicode":"👨‍🦱","skins":[{"annotation":"man: light skin tone, curly hair","group":1,"hexcode":"1F468-1F3FB-200D-1F9B1","order":469,"shortcodes":["curly_haired_man_tone1"],"unicode":"👨🏻‍🦱"},{"annotation":"man: medium-light skin tone, curly hair","group":1,"hexcode":"1F468-1F3FC-200D-1F9B1","order":470,"shortcodes":["curly_haired_man_tone2"],"unicode":"👨🏼‍🦱"},{"annotation":"man: medium skin tone, curly hair","group":1,"hexcode":"1F468-1F3FD-200D-1F9B1","order":471,"shortcodes":["curly_haired_man_tone3"],"unicode":"👨🏽‍🦱"},{"annotation":"man: medium-dark skin tone, curly hair","group":1,"hexcode":"1F468-1F3FE-200D-1F9B1","order":472,"shortcodes":["curly_haired_man_tone4"],"unicode":"👨🏾‍🦱"},{"annotation":"man: dark skin tone, curly hair","group":1,"hexcode":"1F468-1F3FF-200D-1F9B1","order":473,"shortcodes":["curly_haired_man_tone5"],"unicode":"👨🏿‍🦱"}]},{"annotation":"man: white hair","group":1,"hexcode":"1F468-200D-1F9B3","order":474,"shortcodes":["white_haired_man"],"tags":["adult","man","white hair"],"unicode":"👨‍🦳","skins":[{"annotation":"man: light skin tone, white hair","group":1,"hexcode":"1F468-1F3FB-200D-1F9B3","order":475,"shortcodes":["white_haired_man_tone1"],"unicode":"👨🏻‍🦳"},{"annotation":"man: medium-light skin tone, white hair","group":1,"hexcode":"1F468-1F3FC-200D-1F9B3","order":476,"shortcodes":["white_haired_man_tone2"],"unicode":"👨🏼‍🦳"},{"annotation":"man: medium skin tone, white hair","group":1,"hexcode":"1F468-1F3FD-200D-1F9B3","order":477,"shortcodes":["white_haired_man_tone3"],"unicode":"👨🏽‍🦳"},{"annotation":"man: medium-dark skin tone, white hair","group":1,"hexcode":"1F468-1F3FE-200D-1F9B3","order":478,"shortcodes":["white_haired_man_tone4"],"unicode":"👨🏾‍🦳"},{"annotation":"man: dark skin tone, white hair","group":1,"hexcode":"1F468-1F3FF-200D-1F9B3","order":479,"shortcodes":["white_haired_man_tone5"],"unicode":"👨🏿‍🦳"}]},{"annotation":"man: bald","group":1,"hexcode":"1F468-200D-1F9B2","order":480,"shortcodes":["bald_man"],"tags":["adult","bald","man"],"unicode":"👨‍🦲","skins":[{"annotation":"man: light skin tone, bald","group":1,"hexcode":"1F468-1F3FB-200D-1F9B2","order":481,"shortcodes":["bald_man_tone1"],"unicode":"👨🏻‍🦲"},{"annotation":"man: medium-light skin tone, bald","group":1,"hexcode":"1F468-1F3FC-200D-1F9B2","order":482,"shortcodes":["bald_man_tone2"],"unicode":"👨🏼‍🦲"},{"annotation":"man: medium skin tone, bald","group":1,"hexcode":"1F468-1F3FD-200D-1F9B2","order":483,"shortcodes":["bald_man_tone3"],"unicode":"👨🏽‍🦲"},{"annotation":"man: medium-dark skin tone, bald","group":1,"hexcode":"1F468-1F3FE-200D-1F9B2","order":484,"shortcodes":["bald_man_tone4"],"unicode":"👨🏾‍🦲"},{"annotation":"man: dark skin tone, bald","group":1,"hexcode":"1F468-1F3FF-200D-1F9B2","order":485,"shortcodes":["bald_man_tone5"],"unicode":"👨🏿‍🦲"}]},{"annotation":"woman","group":1,"hexcode":"1F469","order":486,"shortcodes":["woman"],"tags":["adult"],"unicode":"👩","skins":[{"annotation":"woman: light skin tone","group":1,"hexcode":"1F469-1F3FB","order":487,"shortcodes":["woman_tone1"],"unicode":"👩🏻"},{"annotation":"woman: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC","order":488,"shortcodes":["woman_tone2"],"unicode":"👩🏼"},{"annotation":"woman: medium skin tone","group":1,"hexcode":"1F469-1F3FD","order":489,"shortcodes":["woman_tone3"],"unicode":"👩🏽"},{"annotation":"woman: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE","order":490,"shortcodes":["woman_tone4"],"unicode":"👩🏾"},{"annotation":"woman: dark skin tone","group":1,"hexcode":"1F469-1F3FF","order":491,"shortcodes":["woman_tone5"],"unicode":"👩🏿"}]},{"annotation":"woman: red hair","group":1,"hexcode":"1F469-200D-1F9B0","order":492,"shortcodes":["red_haired_woman"],"tags":["adult","red hair","woman"],"unicode":"👩‍🦰","skins":[{"annotation":"woman: light skin tone, red hair","group":1,"hexcode":"1F469-1F3FB-200D-1F9B0","order":493,"shortcodes":["red_haired_woman_tone1"],"unicode":"👩🏻‍🦰"},{"annotation":"woman: medium-light skin tone, red hair","group":1,"hexcode":"1F469-1F3FC-200D-1F9B0","order":494,"shortcodes":["red_haired_woman_tone2"],"unicode":"👩🏼‍🦰"},{"annotation":"woman: medium skin tone, red hair","group":1,"hexcode":"1F469-1F3FD-200D-1F9B0","order":495,"shortcodes":["red_haired_woman_tone3"],"unicode":"👩🏽‍🦰"},{"annotation":"woman: medium-dark skin tone, red hair","group":1,"hexcode":"1F469-1F3FE-200D-1F9B0","order":496,"shortcodes":["red_haired_woman_tone4"],"unicode":"👩🏾‍🦰"},{"annotation":"woman: dark skin tone, red hair","group":1,"hexcode":"1F469-1F3FF-200D-1F9B0","order":497,"shortcodes":["red_haired_woman_tone5"],"unicode":"👩🏿‍🦰"}]},{"annotation":"person: red hair","group":1,"hexcode":"1F9D1-200D-1F9B0","order":498,"shortcodes":["red_haired_person"],"tags":["adult","gender-neutral","person","red hair","unspecified gender"],"unicode":"🧑‍🦰","skins":[{"annotation":"person: light skin tone, red hair","group":1,"hexcode":"1F9D1-1F3FB-200D-1F9B0","order":499,"shortcodes":["red_haired_person_tone1"],"unicode":"🧑🏻‍🦰"},{"annotation":"person: medium-light skin tone, red hair","group":1,"hexcode":"1F9D1-1F3FC-200D-1F9B0","order":500,"shortcodes":["red_haired_person_tone2"],"unicode":"🧑🏼‍🦰"},{"annotation":"person: medium skin tone, red hair","group":1,"hexcode":"1F9D1-1F3FD-200D-1F9B0","order":501,"shortcodes":["red_haired_person_tone3"],"unicode":"🧑🏽‍🦰"},{"annotation":"person: medium-dark skin tone, red hair","group":1,"hexcode":"1F9D1-1F3FE-200D-1F9B0","order":502,"shortcodes":["red_haired_person_tone4"],"unicode":"🧑🏾‍🦰"},{"annotation":"person: dark skin tone, red hair","group":1,"hexcode":"1F9D1-1F3FF-200D-1F9B0","order":503,"shortcodes":["red_haired_person_tone5"],"unicode":"🧑🏿‍🦰"}]},{"annotation":"woman: curly hair","group":1,"hexcode":"1F469-200D-1F9B1","order":504,"shortcodes":["curly_haired_woman"],"tags":["adult","curly hair","woman"],"unicode":"👩‍🦱","skins":[{"annotation":"woman: light skin tone, curly hair","group":1,"hexcode":"1F469-1F3FB-200D-1F9B1","order":505,"shortcodes":["curly_haired_woman_tone1"],"unicode":"👩🏻‍🦱"},{"annotation":"woman: medium-light skin tone, curly hair","group":1,"hexcode":"1F469-1F3FC-200D-1F9B1","order":506,"shortcodes":["curly_haired_woman_tone2"],"unicode":"👩🏼‍🦱"},{"annotation":"woman: medium skin tone, curly hair","group":1,"hexcode":"1F469-1F3FD-200D-1F9B1","order":507,"shortcodes":["curly_haired_woman_tone3"],"unicode":"👩🏽‍🦱"},{"annotation":"woman: medium-dark skin tone, curly hair","group":1,"hexcode":"1F469-1F3FE-200D-1F9B1","order":508,"shortcodes":["curly_haired_woman_tone4"],"unicode":"👩🏾‍🦱"},{"annotation":"woman: dark skin tone, curly hair","group":1,"hexcode":"1F469-1F3FF-200D-1F9B1","order":509,"shortcodes":["curly_haired_woman_tone5"],"unicode":"👩🏿‍🦱"}]},{"annotation":"person: curly hair","group":1,"hexcode":"1F9D1-200D-1F9B1","order":510,"shortcodes":["curly_haired_person"],"tags":["adult","curly hair","gender-neutral","person","unspecified gender"],"unicode":"🧑‍🦱","skins":[{"annotation":"person: light skin tone, curly hair","group":1,"hexcode":"1F9D1-1F3FB-200D-1F9B1","order":511,"shortcodes":["curly_haired_person_tone1"],"unicode":"🧑🏻‍🦱"},{"annotation":"person: medium-light skin tone, curly hair","group":1,"hexcode":"1F9D1-1F3FC-200D-1F9B1","order":512,"shortcodes":["curly_haired_person_tone2"],"unicode":"🧑🏼‍🦱"},{"annotation":"person: medium skin tone, curly hair","group":1,"hexcode":"1F9D1-1F3FD-200D-1F9B1","order":513,"shortcodes":["curly_haired_person_tone3"],"unicode":"🧑🏽‍🦱"},{"annotation":"person: medium-dark skin tone, curly hair","group":1,"hexcode":"1F9D1-1F3FE-200D-1F9B1","order":514,"shortcodes":["curly_haired_person_tone4"],"unicode":"🧑🏾‍🦱"},{"annotation":"person: dark skin tone, curly hair","group":1,"hexcode":"1F9D1-1F3FF-200D-1F9B1","order":515,"shortcodes":["curly_haired_person_tone5"],"unicode":"🧑🏿‍🦱"}]},{"annotation":"woman: white hair","group":1,"hexcode":"1F469-200D-1F9B3","order":516,"shortcodes":["white_haired_woman"],"tags":["adult","white hair","woman"],"unicode":"👩‍🦳","skins":[{"annotation":"woman: light skin tone, white hair","group":1,"hexcode":"1F469-1F3FB-200D-1F9B3","order":517,"shortcodes":["white_haired_woman_tone1"],"unicode":"👩🏻‍🦳"},{"annotation":"woman: medium-light skin tone, white hair","group":1,"hexcode":"1F469-1F3FC-200D-1F9B3","order":518,"shortcodes":["white_haired_woman_tone2"],"unicode":"👩🏼‍🦳"},{"annotation":"woman: medium skin tone, white hair","group":1,"hexcode":"1F469-1F3FD-200D-1F9B3","order":519,"shortcodes":["white_haired_woman_tone3"],"unicode":"👩🏽‍🦳"},{"annotation":"woman: medium-dark skin tone, white hair","group":1,"hexcode":"1F469-1F3FE-200D-1F9B3","order":520,"shortcodes":["white_haired_woman_tone4"],"unicode":"👩🏾‍🦳"},{"annotation":"woman: dark skin tone, white hair","group":1,"hexcode":"1F469-1F3FF-200D-1F9B3","order":521,"shortcodes":["white_haired_woman_tone5"],"unicode":"👩🏿‍🦳"}]},{"annotation":"person: white hair","group":1,"hexcode":"1F9D1-200D-1F9B3","order":522,"shortcodes":["white_haired_person"],"tags":["adult","gender-neutral","person","unspecified gender","white hair"],"unicode":"🧑‍🦳","skins":[{"annotation":"person: light skin tone, white hair","group":1,"hexcode":"1F9D1-1F3FB-200D-1F9B3","order":523,"shortcodes":["white_haired_person_tone1"],"unicode":"🧑🏻‍🦳"},{"annotation":"person: medium-light skin tone, white hair","group":1,"hexcode":"1F9D1-1F3FC-200D-1F9B3","order":524,"shortcodes":["white_haired_person_tone2"],"unicode":"🧑🏼‍🦳"},{"annotation":"person: medium skin tone, white hair","group":1,"hexcode":"1F9D1-1F3FD-200D-1F9B3","order":525,"shortcodes":["white_haired_person_tone3"],"unicode":"🧑🏽‍🦳"},{"annotation":"person: medium-dark skin tone, white hair","group":1,"hexcode":"1F9D1-1F3FE-200D-1F9B3","order":526,"shortcodes":["white_haired_person_tone4"],"unicode":"🧑🏾‍🦳"},{"annotation":"person: dark skin tone, white hair","group":1,"hexcode":"1F9D1-1F3FF-200D-1F9B3","order":527,"shortcodes":["white_haired_person_tone5"],"unicode":"🧑🏿‍🦳"}]},{"annotation":"woman: bald","group":1,"hexcode":"1F469-200D-1F9B2","order":528,"shortcodes":["bald_woman"],"tags":["adult","bald","woman"],"unicode":"👩‍🦲","skins":[{"annotation":"woman: light skin tone, bald","group":1,"hexcode":"1F469-1F3FB-200D-1F9B2","order":529,"shortcodes":["bald_woman_tone1"],"unicode":"👩🏻‍🦲"},{"annotation":"woman: medium-light skin tone, bald","group":1,"hexcode":"1F469-1F3FC-200D-1F9B2","order":530,"shortcodes":["bald_woman_tone2"],"unicode":"👩🏼‍🦲"},{"annotation":"woman: medium skin tone, bald","group":1,"hexcode":"1F469-1F3FD-200D-1F9B2","order":531,"shortcodes":["bald_woman_tone3"],"unicode":"👩🏽‍🦲"},{"annotation":"woman: medium-dark skin tone, bald","group":1,"hexcode":"1F469-1F3FE-200D-1F9B2","order":532,"shortcodes":["bald_woman_tone4"],"unicode":"👩🏾‍🦲"},{"annotation":"woman: dark skin tone, bald","group":1,"hexcode":"1F469-1F3FF-200D-1F9B2","order":533,"shortcodes":["bald_woman_tone5"],"unicode":"👩🏿‍🦲"}]},{"annotation":"person: bald","group":1,"hexcode":"1F9D1-200D-1F9B2","order":534,"shortcodes":["bald_person"],"tags":["adult","bald","gender-neutral","person","unspecified gender"],"unicode":"🧑‍🦲","skins":[{"annotation":"person: light skin tone, bald","group":1,"hexcode":"1F9D1-1F3FB-200D-1F9B2","order":535,"shortcodes":["bald_person_tone1"],"unicode":"🧑🏻‍🦲"},{"annotation":"person: medium-light skin tone, bald","group":1,"hexcode":"1F9D1-1F3FC-200D-1F9B2","order":536,"shortcodes":["bald_person_tone2"],"unicode":"🧑🏼‍🦲"},{"annotation":"person: medium skin tone, bald","group":1,"hexcode":"1F9D1-1F3FD-200D-1F9B2","order":537,"shortcodes":["bald_person_tone3"],"unicode":"🧑🏽‍🦲"},{"annotation":"person: medium-dark skin tone, bald","group":1,"hexcode":"1F9D1-1F3FE-200D-1F9B2","order":538,"shortcodes":["bald_person_tone4"],"unicode":"🧑🏾‍🦲"},{"annotation":"person: dark skin tone, bald","group":1,"hexcode":"1F9D1-1F3FF-200D-1F9B2","order":539,"shortcodes":["bald_person_tone5"],"unicode":"🧑🏿‍🦲"}]},{"annotation":"woman: blond hair","group":1,"hexcode":"1F471-200D-2640-FE0F","order":540,"shortcodes":["blond_woman"],"tags":["blond-haired woman","blonde","hair","woman"],"unicode":"👱‍♀️","skins":[{"annotation":"woman: light skin tone, blond hair","group":1,"hexcode":"1F471-1F3FB-200D-2640-FE0F","order":542,"shortcodes":["blond_woman_tone1"],"unicode":"👱🏻‍♀️"},{"annotation":"woman: medium-light skin tone, blond hair","group":1,"hexcode":"1F471-1F3FC-200D-2640-FE0F","order":544,"shortcodes":["blond_woman_tone2"],"unicode":"👱🏼‍♀️"},{"annotation":"woman: medium skin tone, blond hair","group":1,"hexcode":"1F471-1F3FD-200D-2640-FE0F","order":546,"shortcodes":["blond_woman_tone3"],"unicode":"👱🏽‍♀️"},{"annotation":"woman: medium-dark skin tone, blond hair","group":1,"hexcode":"1F471-1F3FE-200D-2640-FE0F","order":548,"shortcodes":["blond_woman_tone4"],"unicode":"👱🏾‍♀️"},{"annotation":"woman: dark skin tone, blond hair","group":1,"hexcode":"1F471-1F3FF-200D-2640-FE0F","order":550,"shortcodes":["blond_woman_tone5"],"unicode":"👱🏿‍♀️"}]},{"annotation":"man: blond hair","group":1,"hexcode":"1F471-200D-2642-FE0F","order":552,"shortcodes":["blond_man"],"tags":["blond","blond-haired man","hair","man"],"unicode":"👱‍♂️","skins":[{"annotation":"man: light skin tone, blond hair","group":1,"hexcode":"1F471-1F3FB-200D-2642-FE0F","order":554,"shortcodes":["blond_man_tone1"],"unicode":"👱🏻‍♂️"},{"annotation":"man: medium-light skin tone, blond hair","group":1,"hexcode":"1F471-1F3FC-200D-2642-FE0F","order":556,"shortcodes":["blond_man_tone2"],"unicode":"👱🏼‍♂️"},{"annotation":"man: medium skin tone, blond hair","group":1,"hexcode":"1F471-1F3FD-200D-2642-FE0F","order":558,"shortcodes":["blond_man_tone3"],"unicode":"👱🏽‍♂️"},{"annotation":"man: medium-dark skin tone, blond hair","group":1,"hexcode":"1F471-1F3FE-200D-2642-FE0F","order":560,"shortcodes":["blond_man_tone4"],"unicode":"👱🏾‍♂️"},{"annotation":"man: dark skin tone, blond hair","group":1,"hexcode":"1F471-1F3FF-200D-2642-FE0F","order":562,"shortcodes":["blond_man_tone5"],"unicode":"👱🏿‍♂️"}]},{"annotation":"older person","group":1,"hexcode":"1F9D3","order":564,"shortcodes":["older_adult"],"tags":["adult","gender-neutral","old","unspecified gender"],"unicode":"🧓","skins":[{"annotation":"older person: light skin tone","group":1,"hexcode":"1F9D3-1F3FB","order":565,"shortcodes":["older_adult_tone1"],"unicode":"🧓🏻"},{"annotation":"older person: medium-light skin tone","group":1,"hexcode":"1F9D3-1F3FC","order":566,"shortcodes":["older_adult_tone2"],"unicode":"🧓🏼"},{"annotation":"older person: medium skin tone","group":1,"hexcode":"1F9D3-1F3FD","order":567,"shortcodes":["older_adult_tone3"],"unicode":"🧓🏽"},{"annotation":"older person: medium-dark skin tone","group":1,"hexcode":"1F9D3-1F3FE","order":568,"shortcodes":["older_adult_tone4"],"unicode":"🧓🏾"},{"annotation":"older person: dark skin tone","group":1,"hexcode":"1F9D3-1F3FF","order":569,"shortcodes":["older_adult_tone5"],"unicode":"🧓🏿"}]},{"annotation":"old man","group":1,"hexcode":"1F474","order":570,"shortcodes":["older_man"],"tags":["adult","man","old"],"unicode":"👴","skins":[{"annotation":"old man: light skin tone","group":1,"hexcode":"1F474-1F3FB","order":571,"shortcodes":["older_man_tone1"],"unicode":"👴🏻"},{"annotation":"old man: medium-light skin tone","group":1,"hexcode":"1F474-1F3FC","order":572,"shortcodes":["older_man_tone2"],"unicode":"👴🏼"},{"annotation":"old man: medium skin tone","group":1,"hexcode":"1F474-1F3FD","order":573,"shortcodes":["older_man_tone3"],"unicode":"👴🏽"},{"annotation":"old man: medium-dark skin tone","group":1,"hexcode":"1F474-1F3FE","order":574,"shortcodes":["older_man_tone4"],"unicode":"👴🏾"},{"annotation":"old man: dark skin tone","group":1,"hexcode":"1F474-1F3FF","order":575,"shortcodes":["older_man_tone5"],"unicode":"👴🏿"}]},{"annotation":"old woman","group":1,"hexcode":"1F475","order":576,"shortcodes":["older_woman"],"tags":["adult","old","woman"],"unicode":"👵","skins":[{"annotation":"old woman: light skin tone","group":1,"hexcode":"1F475-1F3FB","order":577,"shortcodes":["older_woman_tone1"],"unicode":"👵🏻"},{"annotation":"old woman: medium-light skin tone","group":1,"hexcode":"1F475-1F3FC","order":578,"shortcodes":["older_woman_tone2"],"unicode":"👵🏼"},{"annotation":"old woman: medium skin tone","group":1,"hexcode":"1F475-1F3FD","order":579,"shortcodes":["older_woman_tone3"],"unicode":"👵🏽"},{"annotation":"old woman: medium-dark skin tone","group":1,"hexcode":"1F475-1F3FE","order":580,"shortcodes":["older_woman_tone4"],"unicode":"👵🏾"},{"annotation":"old woman: dark skin tone","group":1,"hexcode":"1F475-1F3FF","order":581,"shortcodes":["older_woman_tone5"],"unicode":"👵🏿"}]},{"annotation":"person frowning","group":1,"hexcode":"1F64D","order":582,"shortcodes":["person_frowning"],"tags":["frown","gesture"],"unicode":"🙍","skins":[{"annotation":"person frowning: light skin tone","group":1,"hexcode":"1F64D-1F3FB","order":583,"shortcodes":["person_frowning_tone1"],"unicode":"🙍🏻"},{"annotation":"person frowning: medium-light skin tone","group":1,"hexcode":"1F64D-1F3FC","order":584,"shortcodes":["person_frowning_tone2"],"unicode":"🙍🏼"},{"annotation":"person frowning: medium skin tone","group":1,"hexcode":"1F64D-1F3FD","order":585,"shortcodes":["person_frowning_tone3"],"unicode":"🙍🏽"},{"annotation":"person frowning: medium-dark skin tone","group":1,"hexcode":"1F64D-1F3FE","order":586,"shortcodes":["person_frowning_tone4"],"unicode":"🙍🏾"},{"annotation":"person frowning: dark skin tone","group":1,"hexcode":"1F64D-1F3FF","order":587,"shortcodes":["person_frowning_tone5"],"unicode":"🙍🏿"}]},{"annotation":"man frowning","group":1,"hexcode":"1F64D-200D-2642-FE0F","order":588,"shortcodes":["man_frowning"],"tags":["frowning","gesture","man"],"unicode":"🙍‍♂️","skins":[{"annotation":"man frowning: light skin tone","group":1,"hexcode":"1F64D-1F3FB-200D-2642-FE0F","order":590,"shortcodes":["man_frowning_tone1"],"unicode":"🙍🏻‍♂️"},{"annotation":"man frowning: medium-light skin tone","group":1,"hexcode":"1F64D-1F3FC-200D-2642-FE0F","order":592,"shortcodes":["man_frowning_tone2"],"unicode":"🙍🏼‍♂️"},{"annotation":"man frowning: medium skin tone","group":1,"hexcode":"1F64D-1F3FD-200D-2642-FE0F","order":594,"shortcodes":["man_frowning_tone3"],"unicode":"🙍🏽‍♂️"},{"annotation":"man frowning: medium-dark skin tone","group":1,"hexcode":"1F64D-1F3FE-200D-2642-FE0F","order":596,"shortcodes":["man_frowning_tone4"],"unicode":"🙍🏾‍♂️"},{"annotation":"man frowning: dark skin tone","group":1,"hexcode":"1F64D-1F3FF-200D-2642-FE0F","order":598,"shortcodes":["man_frowning_tone5"],"unicode":"🙍🏿‍♂️"}]},{"annotation":"woman frowning","group":1,"hexcode":"1F64D-200D-2640-FE0F","order":600,"shortcodes":["woman_frowning"],"tags":["frowning","gesture","woman"],"unicode":"🙍‍♀️","skins":[{"annotation":"woman frowning: light skin tone","group":1,"hexcode":"1F64D-1F3FB-200D-2640-FE0F","order":602,"shortcodes":["woman_frowning_tone1"],"unicode":"🙍🏻‍♀️"},{"annotation":"woman frowning: medium-light skin tone","group":1,"hexcode":"1F64D-1F3FC-200D-2640-FE0F","order":604,"shortcodes":["woman_frowning_tone2"],"unicode":"🙍🏼‍♀️"},{"annotation":"woman frowning: medium skin tone","group":1,"hexcode":"1F64D-1F3FD-200D-2640-FE0F","order":606,"shortcodes":["woman_frowning_tone3"],"unicode":"🙍🏽‍♀️"},{"annotation":"woman frowning: medium-dark skin tone","group":1,"hexcode":"1F64D-1F3FE-200D-2640-FE0F","order":608,"shortcodes":["woman_frowning_tone4"],"unicode":"🙍🏾‍♀️"},{"annotation":"woman frowning: dark skin tone","group":1,"hexcode":"1F64D-1F3FF-200D-2640-FE0F","order":610,"shortcodes":["woman_frowning_tone5"],"unicode":"🙍🏿‍♀️"}]},{"annotation":"person pouting","group":1,"hexcode":"1F64E","order":612,"shortcodes":["person_pouting"],"tags":["gesture","pouting"],"unicode":"🙎","skins":[{"annotation":"person pouting: light skin tone","group":1,"hexcode":"1F64E-1F3FB","order":613,"shortcodes":["person_pouting_tone1"],"unicode":"🙎🏻"},{"annotation":"person pouting: medium-light skin tone","group":1,"hexcode":"1F64E-1F3FC","order":614,"shortcodes":["person_pouting_tone2"],"unicode":"🙎🏼"},{"annotation":"person pouting: medium skin tone","group":1,"hexcode":"1F64E-1F3FD","order":615,"shortcodes":["person_pouting_tone3"],"unicode":"🙎🏽"},{"annotation":"person pouting: medium-dark skin tone","group":1,"hexcode":"1F64E-1F3FE","order":616,"shortcodes":["person_pouting_tone4"],"unicode":"🙎🏾"},{"annotation":"person pouting: dark skin tone","group":1,"hexcode":"1F64E-1F3FF","order":617,"shortcodes":["person_pouting_tone5"],"unicode":"🙎🏿"}]},{"annotation":"man pouting","group":1,"hexcode":"1F64E-200D-2642-FE0F","order":618,"shortcodes":["man_pouting"],"tags":["gesture","man","pouting"],"unicode":"🙎‍♂️","skins":[{"annotation":"man pouting: light skin tone","group":1,"hexcode":"1F64E-1F3FB-200D-2642-FE0F","order":620,"shortcodes":["man_pouting_tone1"],"unicode":"🙎🏻‍♂️"},{"annotation":"man pouting: medium-light skin tone","group":1,"hexcode":"1F64E-1F3FC-200D-2642-FE0F","order":622,"shortcodes":["man_pouting_tone2"],"unicode":"🙎🏼‍♂️"},{"annotation":"man pouting: medium skin tone","group":1,"hexcode":"1F64E-1F3FD-200D-2642-FE0F","order":624,"shortcodes":["man_pouting_tone3"],"unicode":"🙎🏽‍♂️"},{"annotation":"man pouting: medium-dark skin tone","group":1,"hexcode":"1F64E-1F3FE-200D-2642-FE0F","order":626,"shortcodes":["man_pouting_tone4"],"unicode":"🙎🏾‍♂️"},{"annotation":"man pouting: dark skin tone","group":1,"hexcode":"1F64E-1F3FF-200D-2642-FE0F","order":628,"shortcodes":["man_pouting_tone5"],"unicode":"🙎🏿‍♂️"}]},{"annotation":"woman pouting","group":1,"hexcode":"1F64E-200D-2640-FE0F","order":630,"shortcodes":["woman_pouting"],"tags":["gesture","pouting","woman"],"unicode":"🙎‍♀️","skins":[{"annotation":"woman pouting: light skin tone","group":1,"hexcode":"1F64E-1F3FB-200D-2640-FE0F","order":632,"shortcodes":["woman_pouting_tone1"],"unicode":"🙎🏻‍♀️"},{"annotation":"woman pouting: medium-light skin tone","group":1,"hexcode":"1F64E-1F3FC-200D-2640-FE0F","order":634,"shortcodes":["woman_pouting_tone2"],"unicode":"🙎🏼‍♀️"},{"annotation":"woman pouting: medium skin tone","group":1,"hexcode":"1F64E-1F3FD-200D-2640-FE0F","order":636,"shortcodes":["woman_pouting_tone3"],"unicode":"🙎🏽‍♀️"},{"annotation":"woman pouting: medium-dark skin tone","group":1,"hexcode":"1F64E-1F3FE-200D-2640-FE0F","order":638,"shortcodes":["woman_pouting_tone4"],"unicode":"🙎🏾‍♀️"},{"annotation":"woman pouting: dark skin tone","group":1,"hexcode":"1F64E-1F3FF-200D-2640-FE0F","order":640,"shortcodes":["woman_pouting_tone5"],"unicode":"🙎🏿‍♀️"}]},{"annotation":"person gesturing NO","group":1,"hexcode":"1F645","order":642,"shortcodes":["person_gesturing_no"],"tags":["forbidden","gesture","hand","person gesturing no","prohibited"],"unicode":"🙅","skins":[{"annotation":"person gesturing NO: light skin tone","group":1,"hexcode":"1F645-1F3FB","order":643,"shortcodes":["person_gesturing_no_tone1"],"unicode":"🙅🏻"},{"annotation":"person gesturing NO: medium-light skin tone","group":1,"hexcode":"1F645-1F3FC","order":644,"shortcodes":["person_gesturing_no_tone2"],"unicode":"🙅🏼"},{"annotation":"person gesturing NO: medium skin tone","group":1,"hexcode":"1F645-1F3FD","order":645,"shortcodes":["person_gesturing_no_tone3"],"unicode":"🙅🏽"},{"annotation":"person gesturing NO: medium-dark skin tone","group":1,"hexcode":"1F645-1F3FE","order":646,"shortcodes":["person_gesturing_no_tone4"],"unicode":"🙅🏾"},{"annotation":"person gesturing NO: dark skin tone","group":1,"hexcode":"1F645-1F3FF","order":647,"shortcodes":["person_gesturing_no_tone5"],"unicode":"🙅🏿"}]},{"annotation":"man gesturing NO","group":1,"hexcode":"1F645-200D-2642-FE0F","order":648,"shortcodes":["man_gesturing_no"],"tags":["forbidden","gesture","hand","man","man gesturing no","prohibited"],"unicode":"🙅‍♂️","skins":[{"annotation":"man gesturing NO: light skin tone","group":1,"hexcode":"1F645-1F3FB-200D-2642-FE0F","order":650,"shortcodes":["man_gesturing_no_tone1"],"unicode":"🙅🏻‍♂️"},{"annotation":"man gesturing NO: medium-light skin tone","group":1,"hexcode":"1F645-1F3FC-200D-2642-FE0F","order":652,"shortcodes":["man_gesturing_no_tone2"],"unicode":"🙅🏼‍♂️"},{"annotation":"man gesturing NO: medium skin tone","group":1,"hexcode":"1F645-1F3FD-200D-2642-FE0F","order":654,"shortcodes":["man_gesturing_no_tone3"],"unicode":"🙅🏽‍♂️"},{"annotation":"man gesturing NO: medium-dark skin tone","group":1,"hexcode":"1F645-1F3FE-200D-2642-FE0F","order":656,"shortcodes":["man_gesturing_no_tone4"],"unicode":"🙅🏾‍♂️"},{"annotation":"man gesturing NO: dark skin tone","group":1,"hexcode":"1F645-1F3FF-200D-2642-FE0F","order":658,"shortcodes":["man_gesturing_no_tone5"],"unicode":"🙅🏿‍♂️"}]},{"annotation":"woman gesturing NO","group":1,"hexcode":"1F645-200D-2640-FE0F","order":660,"shortcodes":["woman_gesturing_no"],"tags":["forbidden","gesture","hand","prohibited","woman","woman gesturing no"],"unicode":"🙅‍♀️","skins":[{"annotation":"woman gesturing NO: light skin tone","group":1,"hexcode":"1F645-1F3FB-200D-2640-FE0F","order":662,"shortcodes":["woman_gesturing_no_tone1"],"unicode":"🙅🏻‍♀️"},{"annotation":"woman gesturing NO: medium-light skin tone","group":1,"hexcode":"1F645-1F3FC-200D-2640-FE0F","order":664,"shortcodes":["woman_gesturing_no_tone2"],"unicode":"🙅🏼‍♀️"},{"annotation":"woman gesturing NO: medium skin tone","group":1,"hexcode":"1F645-1F3FD-200D-2640-FE0F","order":666,"shortcodes":["woman_gesturing_no_tone3"],"unicode":"🙅🏽‍♀️"},{"annotation":"woman gesturing NO: medium-dark skin tone","group":1,"hexcode":"1F645-1F3FE-200D-2640-FE0F","order":668,"shortcodes":["woman_gesturing_no_tone4"],"unicode":"🙅🏾‍♀️"},{"annotation":"woman gesturing NO: dark skin tone","group":1,"hexcode":"1F645-1F3FF-200D-2640-FE0F","order":670,"shortcodes":["woman_gesturing_no_tone5"],"unicode":"🙅🏿‍♀️"}]},{"annotation":"person gesturing OK","group":1,"hexcode":"1F646","order":672,"shortcodes":["person_gesturing_ok"],"tags":["gesture","hand","ok","person gesturing ok"],"unicode":"🙆","skins":[{"annotation":"person gesturing OK: light skin tone","group":1,"hexcode":"1F646-1F3FB","order":673,"shortcodes":["person_gesturing_ok_tone1"],"unicode":"🙆🏻"},{"annotation":"person gesturing OK: medium-light skin tone","group":1,"hexcode":"1F646-1F3FC","order":674,"shortcodes":["person_gesturing_ok_tone2"],"unicode":"🙆🏼"},{"annotation":"person gesturing OK: medium skin tone","group":1,"hexcode":"1F646-1F3FD","order":675,"shortcodes":["person_gesturing_ok_tone3"],"unicode":"🙆🏽"},{"annotation":"person gesturing OK: medium-dark skin tone","group":1,"hexcode":"1F646-1F3FE","order":676,"shortcodes":["person_gesturing_ok_tone4"],"unicode":"🙆🏾"},{"annotation":"person gesturing OK: dark skin tone","group":1,"hexcode":"1F646-1F3FF","order":677,"shortcodes":["person_gesturing_ok_tone5"],"unicode":"🙆🏿"}]},{"annotation":"man gesturing OK","group":1,"hexcode":"1F646-200D-2642-FE0F","order":678,"shortcodes":["man_gesturing_ok"],"tags":["gesture","hand","man","man gesturing ok","ok"],"unicode":"🙆‍♂️","skins":[{"annotation":"man gesturing OK: light skin tone","group":1,"hexcode":"1F646-1F3FB-200D-2642-FE0F","order":680,"shortcodes":["man_gesturing_ok_tone1"],"unicode":"🙆🏻‍♂️"},{"annotation":"man gesturing OK: medium-light skin tone","group":1,"hexcode":"1F646-1F3FC-200D-2642-FE0F","order":682,"shortcodes":["man_gesturing_ok_tone2"],"unicode":"🙆🏼‍♂️"},{"annotation":"man gesturing OK: medium skin tone","group":1,"hexcode":"1F646-1F3FD-200D-2642-FE0F","order":684,"shortcodes":["man_gesturing_ok_tone3"],"unicode":"🙆🏽‍♂️"},{"annotation":"man gesturing OK: medium-dark skin tone","group":1,"hexcode":"1F646-1F3FE-200D-2642-FE0F","order":686,"shortcodes":["man_gesturing_ok_tone4"],"unicode":"🙆🏾‍♂️"},{"annotation":"man gesturing OK: dark skin tone","group":1,"hexcode":"1F646-1F3FF-200D-2642-FE0F","order":688,"shortcodes":["man_gesturing_ok_tone5"],"unicode":"🙆🏿‍♂️"}]},{"annotation":"woman gesturing OK","group":1,"hexcode":"1F646-200D-2640-FE0F","order":690,"shortcodes":["woman_gesturing_ok"],"tags":["gesture","hand","ok","woman","woman gesturing ok"],"unicode":"🙆‍♀️","skins":[{"annotation":"woman gesturing OK: light skin tone","group":1,"hexcode":"1F646-1F3FB-200D-2640-FE0F","order":692,"shortcodes":["woman_gesturing_ok_tone1"],"unicode":"🙆🏻‍♀️"},{"annotation":"woman gesturing OK: medium-light skin tone","group":1,"hexcode":"1F646-1F3FC-200D-2640-FE0F","order":694,"shortcodes":["woman_gesturing_ok_tone2"],"unicode":"🙆🏼‍♀️"},{"annotation":"woman gesturing OK: medium skin tone","group":1,"hexcode":"1F646-1F3FD-200D-2640-FE0F","order":696,"shortcodes":["woman_gesturing_ok_tone3"],"unicode":"🙆🏽‍♀️"},{"annotation":"woman gesturing OK: medium-dark skin tone","group":1,"hexcode":"1F646-1F3FE-200D-2640-FE0F","order":698,"shortcodes":["woman_gesturing_ok_tone4"],"unicode":"🙆🏾‍♀️"},{"annotation":"woman gesturing OK: dark skin tone","group":1,"hexcode":"1F646-1F3FF-200D-2640-FE0F","order":700,"shortcodes":["woman_gesturing_ok_tone5"],"unicode":"🙆🏿‍♀️"}]},{"annotation":"person tipping hand","group":1,"hexcode":"1F481","order":702,"shortcodes":["person_tipping_hand"],"tags":["hand","help","information","sassy","tipping"],"unicode":"💁","skins":[{"annotation":"person tipping hand: light skin tone","group":1,"hexcode":"1F481-1F3FB","order":703,"shortcodes":["person_tipping_hand_tone1"],"unicode":"💁🏻"},{"annotation":"person tipping hand: medium-light skin tone","group":1,"hexcode":"1F481-1F3FC","order":704,"shortcodes":["person_tipping_hand_tone2"],"unicode":"💁🏼"},{"annotation":"person tipping hand: medium skin tone","group":1,"hexcode":"1F481-1F3FD","order":705,"shortcodes":["person_tipping_hand_tone3"],"unicode":"💁🏽"},{"annotation":"person tipping hand: medium-dark skin tone","group":1,"hexcode":"1F481-1F3FE","order":706,"shortcodes":["person_tipping_hand_tone4"],"unicode":"💁🏾"},{"annotation":"person tipping hand: dark skin tone","group":1,"hexcode":"1F481-1F3FF","order":707,"shortcodes":["person_tipping_hand_tone5"],"unicode":"💁🏿"}]},{"annotation":"man tipping hand","group":1,"hexcode":"1F481-200D-2642-FE0F","order":708,"shortcodes":["man_tipping_hand"],"tags":["man","sassy","tipping hand"],"unicode":"💁‍♂️","skins":[{"annotation":"man tipping hand: light skin tone","group":1,"hexcode":"1F481-1F3FB-200D-2642-FE0F","order":710,"shortcodes":["man_tipping_hand_tone1"],"unicode":"💁🏻‍♂️"},{"annotation":"man tipping hand: medium-light skin tone","group":1,"hexcode":"1F481-1F3FC-200D-2642-FE0F","order":712,"shortcodes":["man_tipping_hand_tone2"],"unicode":"💁🏼‍♂️"},{"annotation":"man tipping hand: medium skin tone","group":1,"hexcode":"1F481-1F3FD-200D-2642-FE0F","order":714,"shortcodes":["man_tipping_hand_tone3"],"unicode":"💁🏽‍♂️"},{"annotation":"man tipping hand: medium-dark skin tone","group":1,"hexcode":"1F481-1F3FE-200D-2642-FE0F","order":716,"shortcodes":["man_tipping_hand_tone4"],"unicode":"💁🏾‍♂️"},{"annotation":"man tipping hand: dark skin tone","group":1,"hexcode":"1F481-1F3FF-200D-2642-FE0F","order":718,"shortcodes":["man_tipping_hand_tone5"],"unicode":"💁🏿‍♂️"}]},{"annotation":"woman tipping hand","group":1,"hexcode":"1F481-200D-2640-FE0F","order":720,"shortcodes":["woman_tipping_hand"],"tags":["sassy","tipping hand","woman"],"unicode":"💁‍♀️","skins":[{"annotation":"woman tipping hand: light skin tone","group":1,"hexcode":"1F481-1F3FB-200D-2640-FE0F","order":722,"shortcodes":["woman_tipping_hand_tone1"],"unicode":"💁🏻‍♀️"},{"annotation":"woman tipping hand: medium-light skin tone","group":1,"hexcode":"1F481-1F3FC-200D-2640-FE0F","order":724,"shortcodes":["woman_tipping_hand_tone2"],"unicode":"💁🏼‍♀️"},{"annotation":"woman tipping hand: medium skin tone","group":1,"hexcode":"1F481-1F3FD-200D-2640-FE0F","order":726,"shortcodes":["woman_tipping_hand_tone3"],"unicode":"💁🏽‍♀️"},{"annotation":"woman tipping hand: medium-dark skin tone","group":1,"hexcode":"1F481-1F3FE-200D-2640-FE0F","order":728,"shortcodes":["woman_tipping_hand_tone4"],"unicode":"💁🏾‍♀️"},{"annotation":"woman tipping hand: dark skin tone","group":1,"hexcode":"1F481-1F3FF-200D-2640-FE0F","order":730,"shortcodes":["woman_tipping_hand_tone5"],"unicode":"💁🏿‍♀️"}]},{"annotation":"person raising hand","group":1,"hexcode":"1F64B","order":732,"shortcodes":["person_raising_hand"],"tags":["gesture","hand","happy","raised"],"unicode":"🙋","skins":[{"annotation":"person raising hand: light skin tone","group":1,"hexcode":"1F64B-1F3FB","order":733,"shortcodes":["person_raising_hand_tone1"],"unicode":"🙋🏻"},{"annotation":"person raising hand: medium-light skin tone","group":1,"hexcode":"1F64B-1F3FC","order":734,"shortcodes":["person_raising_hand_tone2"],"unicode":"🙋🏼"},{"annotation":"person raising hand: medium skin tone","group":1,"hexcode":"1F64B-1F3FD","order":735,"shortcodes":["person_raising_hand_tone3"],"unicode":"🙋🏽"},{"annotation":"person raising hand: medium-dark skin tone","group":1,"hexcode":"1F64B-1F3FE","order":736,"shortcodes":["person_raising_hand_tone4"],"unicode":"🙋🏾"},{"annotation":"person raising hand: dark skin tone","group":1,"hexcode":"1F64B-1F3FF","order":737,"shortcodes":["person_raising_hand_tone5"],"unicode":"🙋🏿"}]},{"annotation":"man raising hand","group":1,"hexcode":"1F64B-200D-2642-FE0F","order":738,"shortcodes":["man_raising_hand"],"tags":["gesture","man","raising hand"],"unicode":"🙋‍♂️","skins":[{"annotation":"man raising hand: light skin tone","group":1,"hexcode":"1F64B-1F3FB-200D-2642-FE0F","order":740,"shortcodes":["man_raising_hand_tone1"],"unicode":"🙋🏻‍♂️"},{"annotation":"man raising hand: medium-light skin tone","group":1,"hexcode":"1F64B-1F3FC-200D-2642-FE0F","order":742,"shortcodes":["man_raising_hand_tone2"],"unicode":"🙋🏼‍♂️"},{"annotation":"man raising hand: medium skin tone","group":1,"hexcode":"1F64B-1F3FD-200D-2642-FE0F","order":744,"shortcodes":["man_raising_hand_tone3"],"unicode":"🙋🏽‍♂️"},{"annotation":"man raising hand: medium-dark skin tone","group":1,"hexcode":"1F64B-1F3FE-200D-2642-FE0F","order":746,"shortcodes":["man_raising_hand_tone4"],"unicode":"🙋🏾‍♂️"},{"annotation":"man raising hand: dark skin tone","group":1,"hexcode":"1F64B-1F3FF-200D-2642-FE0F","order":748,"shortcodes":["man_raising_hand_tone5"],"unicode":"🙋🏿‍♂️"}]},{"annotation":"woman raising hand","group":1,"hexcode":"1F64B-200D-2640-FE0F","order":750,"shortcodes":["woman_raising_hand"],"tags":["gesture","raising hand","woman"],"unicode":"🙋‍♀️","skins":[{"annotation":"woman raising hand: light skin tone","group":1,"hexcode":"1F64B-1F3FB-200D-2640-FE0F","order":752,"shortcodes":["woman_raising_hand_tone1"],"unicode":"🙋🏻‍♀️"},{"annotation":"woman raising hand: medium-light skin tone","group":1,"hexcode":"1F64B-1F3FC-200D-2640-FE0F","order":754,"shortcodes":["woman_raising_hand_tone2"],"unicode":"🙋🏼‍♀️"},{"annotation":"woman raising hand: medium skin tone","group":1,"hexcode":"1F64B-1F3FD-200D-2640-FE0F","order":756,"shortcodes":["woman_raising_hand_tone3"],"unicode":"🙋🏽‍♀️"},{"annotation":"woman raising hand: medium-dark skin tone","group":1,"hexcode":"1F64B-1F3FE-200D-2640-FE0F","order":758,"shortcodes":["woman_raising_hand_tone4"],"unicode":"🙋🏾‍♀️"},{"annotation":"woman raising hand: dark skin tone","group":1,"hexcode":"1F64B-1F3FF-200D-2640-FE0F","order":760,"shortcodes":["woman_raising_hand_tone5"],"unicode":"🙋🏿‍♀️"}]},{"annotation":"deaf person","group":1,"hexcode":"1F9CF","order":762,"shortcodes":["person_deaf"],"tags":["accessibility","deaf","ear","hear"],"unicode":"🧏","skins":[{"annotation":"deaf person: light skin tone","group":1,"hexcode":"1F9CF-1F3FB","order":763,"shortcodes":["person_deaf_tone1"],"unicode":"🧏🏻"},{"annotation":"deaf person: medium-light skin tone","group":1,"hexcode":"1F9CF-1F3FC","order":764,"shortcodes":["person_deaf_tone2"],"unicode":"🧏🏼"},{"annotation":"deaf person: medium skin tone","group":1,"hexcode":"1F9CF-1F3FD","order":765,"shortcodes":["person_deaf_tone3"],"unicode":"🧏🏽"},{"annotation":"deaf person: medium-dark skin tone","group":1,"hexcode":"1F9CF-1F3FE","order":766,"shortcodes":["person_deaf_tone4"],"unicode":"🧏🏾"},{"annotation":"deaf person: dark skin tone","group":1,"hexcode":"1F9CF-1F3FF","order":767,"shortcodes":["person_deaf_tone5"],"unicode":"🧏🏿"}]},{"annotation":"deaf man","group":1,"hexcode":"1F9CF-200D-2642-FE0F","order":768,"shortcodes":["man_deaf"],"tags":["deaf","man"],"unicode":"🧏‍♂️","skins":[{"annotation":"deaf man: light skin tone","group":1,"hexcode":"1F9CF-1F3FB-200D-2642-FE0F","order":770,"shortcodes":["man_deaf_tone1"],"unicode":"🧏🏻‍♂️"},{"annotation":"deaf man: medium-light skin tone","group":1,"hexcode":"1F9CF-1F3FC-200D-2642-FE0F","order":772,"shortcodes":["man_deaf_tone2"],"unicode":"🧏🏼‍♂️"},{"annotation":"deaf man: medium skin tone","group":1,"hexcode":"1F9CF-1F3FD-200D-2642-FE0F","order":774,"shortcodes":["man_deaf_tone3"],"unicode":"🧏🏽‍♂️"},{"annotation":"deaf man: medium-dark skin tone","group":1,"hexcode":"1F9CF-1F3FE-200D-2642-FE0F","order":776,"shortcodes":["man_deaf_tone4"],"unicode":"🧏🏾‍♂️"},{"annotation":"deaf man: dark skin tone","group":1,"hexcode":"1F9CF-1F3FF-200D-2642-FE0F","order":778,"shortcodes":["man_deaf_tone5"],"unicode":"🧏🏿‍♂️"}]},{"annotation":"deaf woman","group":1,"hexcode":"1F9CF-200D-2640-FE0F","order":780,"shortcodes":["woman_deaf"],"tags":["deaf","woman"],"unicode":"🧏‍♀️","skins":[{"annotation":"deaf woman: light skin tone","group":1,"hexcode":"1F9CF-1F3FB-200D-2640-FE0F","order":782,"shortcodes":["woman_deaf_tone1"],"unicode":"🧏🏻‍♀️"},{"annotation":"deaf woman: medium-light skin tone","group":1,"hexcode":"1F9CF-1F3FC-200D-2640-FE0F","order":784,"shortcodes":["woman_deaf_tone2"],"unicode":"🧏🏼‍♀️"},{"annotation":"deaf woman: medium skin tone","group":1,"hexcode":"1F9CF-1F3FD-200D-2640-FE0F","order":786,"shortcodes":["woman_deaf_tone3"],"unicode":"🧏🏽‍♀️"},{"annotation":"deaf woman: medium-dark skin tone","group":1,"hexcode":"1F9CF-1F3FE-200D-2640-FE0F","order":788,"shortcodes":["woman_deaf_tone4"],"unicode":"🧏🏾‍♀️"},{"annotation":"deaf woman: dark skin tone","group":1,"hexcode":"1F9CF-1F3FF-200D-2640-FE0F","order":790,"shortcodes":["woman_deaf_tone5"],"unicode":"🧏🏿‍♀️"}]},{"annotation":"person bowing","group":1,"hexcode":"1F647","order":792,"shortcodes":["person_bowing"],"tags":["apology","bow","gesture","sorry"],"unicode":"🙇","skins":[{"annotation":"person bowing: light skin tone","group":1,"hexcode":"1F647-1F3FB","order":793,"shortcodes":["person_bowing_tone1"],"unicode":"🙇🏻"},{"annotation":"person bowing: medium-light skin tone","group":1,"hexcode":"1F647-1F3FC","order":794,"shortcodes":["person_bowing_tone2"],"unicode":"🙇🏼"},{"annotation":"person bowing: medium skin tone","group":1,"hexcode":"1F647-1F3FD","order":795,"shortcodes":["person_bowing_tone3"],"unicode":"🙇🏽"},{"annotation":"person bowing: medium-dark skin tone","group":1,"hexcode":"1F647-1F3FE","order":796,"shortcodes":["person_bowing_tone4"],"unicode":"🙇🏾"},{"annotation":"person bowing: dark skin tone","group":1,"hexcode":"1F647-1F3FF","order":797,"shortcodes":["person_bowing_tone5"],"unicode":"🙇🏿"}]},{"annotation":"man bowing","group":1,"hexcode":"1F647-200D-2642-FE0F","order":798,"shortcodes":["man_bowing"],"tags":["apology","bowing","favor","gesture","man","sorry"],"unicode":"🙇‍♂️","skins":[{"annotation":"man bowing: light skin tone","group":1,"hexcode":"1F647-1F3FB-200D-2642-FE0F","order":800,"shortcodes":["man_bowing_tone1"],"unicode":"🙇🏻‍♂️"},{"annotation":"man bowing: medium-light skin tone","group":1,"hexcode":"1F647-1F3FC-200D-2642-FE0F","order":802,"shortcodes":["man_bowing_tone2"],"unicode":"🙇🏼‍♂️"},{"annotation":"man bowing: medium skin tone","group":1,"hexcode":"1F647-1F3FD-200D-2642-FE0F","order":804,"shortcodes":["man_bowing_tone3"],"unicode":"🙇🏽‍♂️"},{"annotation":"man bowing: medium-dark skin tone","group":1,"hexcode":"1F647-1F3FE-200D-2642-FE0F","order":806,"shortcodes":["man_bowing_tone4"],"unicode":"🙇🏾‍♂️"},{"annotation":"man bowing: dark skin tone","group":1,"hexcode":"1F647-1F3FF-200D-2642-FE0F","order":808,"shortcodes":["man_bowing_tone5"],"unicode":"🙇🏿‍♂️"}]},{"annotation":"woman bowing","group":1,"hexcode":"1F647-200D-2640-FE0F","order":810,"shortcodes":["woman_bowing"],"tags":["apology","bowing","favor","gesture","sorry","woman"],"unicode":"🙇‍♀️","skins":[{"annotation":"woman bowing: light skin tone","group":1,"hexcode":"1F647-1F3FB-200D-2640-FE0F","order":812,"shortcodes":["woman_bowing_tone1"],"unicode":"🙇🏻‍♀️"},{"annotation":"woman bowing: medium-light skin tone","group":1,"hexcode":"1F647-1F3FC-200D-2640-FE0F","order":814,"shortcodes":["woman_bowing_tone2"],"unicode":"🙇🏼‍♀️"},{"annotation":"woman bowing: medium skin tone","group":1,"hexcode":"1F647-1F3FD-200D-2640-FE0F","order":816,"shortcodes":["woman_bowing_tone3"],"unicode":"🙇🏽‍♀️"},{"annotation":"woman bowing: medium-dark skin tone","group":1,"hexcode":"1F647-1F3FE-200D-2640-FE0F","order":818,"shortcodes":["woman_bowing_tone4"],"unicode":"🙇🏾‍♀️"},{"annotation":"woman bowing: dark skin tone","group":1,"hexcode":"1F647-1F3FF-200D-2640-FE0F","order":820,"shortcodes":["woman_bowing_tone5"],"unicode":"🙇🏿‍♀️"}]},{"annotation":"person facepalming","group":1,"hexcode":"1F926","order":822,"shortcodes":["person_facepalming"],"tags":["disbelief","exasperation","face","palm"],"unicode":"🤦","skins":[{"annotation":"person facepalming: light skin tone","group":1,"hexcode":"1F926-1F3FB","order":823,"shortcodes":["person_facepalming_tone1"],"unicode":"🤦🏻"},{"annotation":"person facepalming: medium-light skin tone","group":1,"hexcode":"1F926-1F3FC","order":824,"shortcodes":["person_facepalming_tone2"],"unicode":"🤦🏼"},{"annotation":"person facepalming: medium skin tone","group":1,"hexcode":"1F926-1F3FD","order":825,"shortcodes":["person_facepalming_tone3"],"unicode":"🤦🏽"},{"annotation":"person facepalming: medium-dark skin tone","group":1,"hexcode":"1F926-1F3FE","order":826,"shortcodes":["person_facepalming_tone4"],"unicode":"🤦🏾"},{"annotation":"person facepalming: dark skin tone","group":1,"hexcode":"1F926-1F3FF","order":827,"shortcodes":["person_facepalming_tone5"],"unicode":"🤦🏿"}]},{"annotation":"man facepalming","group":1,"hexcode":"1F926-200D-2642-FE0F","order":828,"shortcodes":["man_facepalming"],"tags":["disbelief","exasperation","facepalm","man"],"unicode":"🤦‍♂️","skins":[{"annotation":"man facepalming: light skin tone","group":1,"hexcode":"1F926-1F3FB-200D-2642-FE0F","order":830,"shortcodes":["man_facepalming_tone1"],"unicode":"🤦🏻‍♂️"},{"annotation":"man facepalming: medium-light skin tone","group":1,"hexcode":"1F926-1F3FC-200D-2642-FE0F","order":832,"shortcodes":["man_facepalming_tone2"],"unicode":"🤦🏼‍♂️"},{"annotation":"man facepalming: medium skin tone","group":1,"hexcode":"1F926-1F3FD-200D-2642-FE0F","order":834,"shortcodes":["man_facepalming_tone3"],"unicode":"🤦🏽‍♂️"},{"annotation":"man facepalming: medium-dark skin tone","group":1,"hexcode":"1F926-1F3FE-200D-2642-FE0F","order":836,"shortcodes":["man_facepalming_tone4"],"unicode":"🤦🏾‍♂️"},{"annotation":"man facepalming: dark skin tone","group":1,"hexcode":"1F926-1F3FF-200D-2642-FE0F","order":838,"shortcodes":["man_facepalming_tone5"],"unicode":"🤦🏿‍♂️"}]},{"annotation":"woman facepalming","group":1,"hexcode":"1F926-200D-2640-FE0F","order":840,"shortcodes":["woman_facepalming"],"tags":["disbelief","exasperation","facepalm","woman"],"unicode":"🤦‍♀️","skins":[{"annotation":"woman facepalming: light skin tone","group":1,"hexcode":"1F926-1F3FB-200D-2640-FE0F","order":842,"shortcodes":["woman_facepalming_tone1"],"unicode":"🤦🏻‍♀️"},{"annotation":"woman facepalming: medium-light skin tone","group":1,"hexcode":"1F926-1F3FC-200D-2640-FE0F","order":844,"shortcodes":["woman_facepalming_tone2"],"unicode":"🤦🏼‍♀️"},{"annotation":"woman facepalming: medium skin tone","group":1,"hexcode":"1F926-1F3FD-200D-2640-FE0F","order":846,"shortcodes":["woman_facepalming_tone3"],"unicode":"🤦🏽‍♀️"},{"annotation":"woman facepalming: medium-dark skin tone","group":1,"hexcode":"1F926-1F3FE-200D-2640-FE0F","order":848,"shortcodes":["woman_facepalming_tone4"],"unicode":"🤦🏾‍♀️"},{"annotation":"woman facepalming: dark skin tone","group":1,"hexcode":"1F926-1F3FF-200D-2640-FE0F","order":850,"shortcodes":["woman_facepalming_tone5"],"unicode":"🤦🏿‍♀️"}]},{"annotation":"person shrugging","group":1,"hexcode":"1F937","order":852,"shortcodes":["person_shrugging"],"tags":["doubt","ignorance","indifference","shrug"],"unicode":"🤷","skins":[{"annotation":"person shrugging: light skin tone","group":1,"hexcode":"1F937-1F3FB","order":853,"shortcodes":["person_shrugging_tone1"],"unicode":"🤷🏻"},{"annotation":"person shrugging: medium-light skin tone","group":1,"hexcode":"1F937-1F3FC","order":854,"shortcodes":["person_shrugging_tone2"],"unicode":"🤷🏼"},{"annotation":"person shrugging: medium skin tone","group":1,"hexcode":"1F937-1F3FD","order":855,"shortcodes":["person_shrugging_tone3"],"unicode":"🤷🏽"},{"annotation":"person shrugging: medium-dark skin tone","group":1,"hexcode":"1F937-1F3FE","order":856,"shortcodes":["person_shrugging_tone4"],"unicode":"🤷🏾"},{"annotation":"person shrugging: dark skin tone","group":1,"hexcode":"1F937-1F3FF","order":857,"shortcodes":["person_shrugging_tone5"],"unicode":"🤷🏿"}]},{"annotation":"man shrugging","group":1,"hexcode":"1F937-200D-2642-FE0F","order":858,"shortcodes":["man_shrugging"],"tags":["doubt","ignorance","indifference","man","shrug"],"unicode":"🤷‍♂️","skins":[{"annotation":"man shrugging: light skin tone","group":1,"hexcode":"1F937-1F3FB-200D-2642-FE0F","order":860,"shortcodes":["man_shrugging_tone1"],"unicode":"🤷🏻‍♂️"},{"annotation":"man shrugging: medium-light skin tone","group":1,"hexcode":"1F937-1F3FC-200D-2642-FE0F","order":862,"shortcodes":["man_shrugging_tone2"],"unicode":"🤷🏼‍♂️"},{"annotation":"man shrugging: medium skin tone","group":1,"hexcode":"1F937-1F3FD-200D-2642-FE0F","order":864,"shortcodes":["man_shrugging_tone3"],"unicode":"🤷🏽‍♂️"},{"annotation":"man shrugging: medium-dark skin tone","group":1,"hexcode":"1F937-1F3FE-200D-2642-FE0F","order":866,"shortcodes":["man_shrugging_tone4"],"unicode":"🤷🏾‍♂️"},{"annotation":"man shrugging: dark skin tone","group":1,"hexcode":"1F937-1F3FF-200D-2642-FE0F","order":868,"shortcodes":["man_shrugging_tone5"],"unicode":"🤷🏿‍♂️"}]},{"annotation":"woman shrugging","group":1,"hexcode":"1F937-200D-2640-FE0F","order":870,"shortcodes":["woman_shrugging"],"tags":["doubt","ignorance","indifference","shrug","woman"],"unicode":"🤷‍♀️","skins":[{"annotation":"woman shrugging: light skin tone","group":1,"hexcode":"1F937-1F3FB-200D-2640-FE0F","order":872,"shortcodes":["woman_shrugging_tone1"],"unicode":"🤷🏻‍♀️"},{"annotation":"woman shrugging: medium-light skin tone","group":1,"hexcode":"1F937-1F3FC-200D-2640-FE0F","order":874,"shortcodes":["woman_shrugging_tone2"],"unicode":"🤷🏼‍♀️"},{"annotation":"woman shrugging: medium skin tone","group":1,"hexcode":"1F937-1F3FD-200D-2640-FE0F","order":876,"shortcodes":["woman_shrugging_tone3"],"unicode":"🤷🏽‍♀️"},{"annotation":"woman shrugging: medium-dark skin tone","group":1,"hexcode":"1F937-1F3FE-200D-2640-FE0F","order":878,"shortcodes":["woman_shrugging_tone4"],"unicode":"🤷🏾‍♀️"},{"annotation":"woman shrugging: dark skin tone","group":1,"hexcode":"1F937-1F3FF-200D-2640-FE0F","order":880,"shortcodes":["woman_shrugging_tone5"],"unicode":"🤷🏿‍♀️"}]},{"annotation":"health worker","group":1,"hexcode":"1F9D1-200D-2695-FE0F","order":882,"shortcodes":["person_health_worker"],"tags":["doctor","healthcare","nurse","therapist"],"unicode":"🧑‍⚕️","skins":[{"annotation":"health worker: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-2695-FE0F","order":884,"shortcodes":["person_health_worker_tone1"],"unicode":"🧑🏻‍⚕️"},{"annotation":"health worker: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-2695-FE0F","order":886,"shortcodes":["person_health_worker_tone2"],"unicode":"🧑🏼‍⚕️"},{"annotation":"health worker: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-2695-FE0F","order":888,"shortcodes":["person_health_worker_tone3"],"unicode":"🧑🏽‍⚕️"},{"annotation":"health worker: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-2695-FE0F","order":890,"shortcodes":["person_health_worker_tone4"],"unicode":"🧑🏾‍⚕️"},{"annotation":"health worker: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-2695-FE0F","order":892,"shortcodes":["person_health_worker_tone5"],"unicode":"🧑🏿‍⚕️"}]},{"annotation":"man health worker","group":1,"hexcode":"1F468-200D-2695-FE0F","order":894,"shortcodes":["man_health_worker"],"tags":["doctor","healthcare","man","nurse","therapist"],"unicode":"👨‍⚕️","skins":[{"annotation":"man health worker: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-2695-FE0F","order":896,"shortcodes":["man_health_worker_tone1"],"unicode":"👨🏻‍⚕️"},{"annotation":"man health worker: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-2695-FE0F","order":898,"shortcodes":["man_health_worker_tone2"],"unicode":"👨🏼‍⚕️"},{"annotation":"man health worker: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-2695-FE0F","order":900,"shortcodes":["man_health_worker_tone3"],"unicode":"👨🏽‍⚕️"},{"annotation":"man health worker: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-2695-FE0F","order":902,"shortcodes":["man_health_worker_tone4"],"unicode":"👨🏾‍⚕️"},{"annotation":"man health worker: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-2695-FE0F","order":904,"shortcodes":["man_health_worker_tone5"],"unicode":"👨🏿‍⚕️"}]},{"annotation":"woman health worker","group":1,"hexcode":"1F469-200D-2695-FE0F","order":906,"shortcodes":["woman_health_worker"],"tags":["doctor","healthcare","nurse","therapist","woman"],"unicode":"👩‍⚕️","skins":[{"annotation":"woman health worker: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-2695-FE0F","order":908,"shortcodes":["woman_health_worker_tone1"],"unicode":"👩🏻‍⚕️"},{"annotation":"woman health worker: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-2695-FE0F","order":910,"shortcodes":["woman_health_worker_tone2"],"unicode":"👩🏼‍⚕️"},{"annotation":"woman health worker: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-2695-FE0F","order":912,"shortcodes":["woman_health_worker_tone3"],"unicode":"👩🏽‍⚕️"},{"annotation":"woman health worker: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-2695-FE0F","order":914,"shortcodes":["woman_health_worker_tone4"],"unicode":"👩🏾‍⚕️"},{"annotation":"woman health worker: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-2695-FE0F","order":916,"shortcodes":["woman_health_worker_tone5"],"unicode":"👩🏿‍⚕️"}]},{"annotation":"student","group":1,"hexcode":"1F9D1-200D-1F393","order":918,"shortcodes":["person_student"],"tags":["graduate"],"unicode":"🧑‍🎓","skins":[{"annotation":"student: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F393","order":919,"shortcodes":["person_student_tone1"],"unicode":"🧑🏻‍🎓"},{"annotation":"student: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F393","order":920,"shortcodes":["person_student_tone2"],"unicode":"🧑🏼‍🎓"},{"annotation":"student: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F393","order":921,"shortcodes":["person_student_tone3"],"unicode":"🧑🏽‍🎓"},{"annotation":"student: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F393","order":922,"shortcodes":["person_student_tone4"],"unicode":"🧑🏾‍🎓"},{"annotation":"student: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F393","order":923,"shortcodes":["person_student_tone5"],"unicode":"🧑🏿‍🎓"}]},{"annotation":"man student","group":1,"hexcode":"1F468-200D-1F393","order":924,"shortcodes":["man_student"],"tags":["graduate","man","student"],"unicode":"👨‍🎓","skins":[{"annotation":"man student: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F393","order":925,"shortcodes":["man_student_tone1"],"unicode":"👨🏻‍🎓"},{"annotation":"man student: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F393","order":926,"shortcodes":["man_student_tone2"],"unicode":"👨🏼‍🎓"},{"annotation":"man student: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F393","order":927,"shortcodes":["man_student_tone3"],"unicode":"👨🏽‍🎓"},{"annotation":"man student: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F393","order":928,"shortcodes":["man_student_tone4"],"unicode":"👨🏾‍🎓"},{"annotation":"man student: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F393","order":929,"shortcodes":["man_student_tone5"],"unicode":"👨🏿‍🎓"}]},{"annotation":"woman student","group":1,"hexcode":"1F469-200D-1F393","order":930,"shortcodes":["woman_student"],"tags":["graduate","student","woman"],"unicode":"👩‍🎓","skins":[{"annotation":"woman student: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F393","order":931,"shortcodes":["woman_student_tone1"],"unicode":"👩🏻‍🎓"},{"annotation":"woman student: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F393","order":932,"shortcodes":["woman_student_tone2"],"unicode":"👩🏼‍🎓"},{"annotation":"woman student: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F393","order":933,"shortcodes":["woman_student_tone3"],"unicode":"👩🏽‍🎓"},{"annotation":"woman student: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F393","order":934,"shortcodes":["woman_student_tone4"],"unicode":"👩🏾‍🎓"},{"annotation":"woman student: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F393","order":935,"shortcodes":["woman_student_tone5"],"unicode":"👩🏿‍🎓"}]},{"annotation":"teacher","group":1,"hexcode":"1F9D1-200D-1F3EB","order":936,"shortcodes":["person_teacher"],"tags":["instructor","professor"],"unicode":"🧑‍🏫","skins":[{"annotation":"teacher: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F3EB","order":937,"shortcodes":["person_teacher_tone1"],"unicode":"🧑🏻‍🏫"},{"annotation":"teacher: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F3EB","order":938,"shortcodes":["person_teacher_tone2"],"unicode":"🧑🏼‍🏫"},{"annotation":"teacher: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F3EB","order":939,"shortcodes":["person_teacher_tone3"],"unicode":"🧑🏽‍🏫"},{"annotation":"teacher: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F3EB","order":940,"shortcodes":["person_teacher_tone4"],"unicode":"🧑🏾‍🏫"},{"annotation":"teacher: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F3EB","order":941,"shortcodes":["person_teacher_tone5"],"unicode":"🧑🏿‍🏫"}]},{"annotation":"man teacher","group":1,"hexcode":"1F468-200D-1F3EB","order":942,"shortcodes":["man_teacher"],"tags":["instructor","man","professor","teacher"],"unicode":"👨‍🏫","skins":[{"annotation":"man teacher: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F3EB","order":943,"shortcodes":["man_teacher_tone1"],"unicode":"👨🏻‍🏫"},{"annotation":"man teacher: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F3EB","order":944,"shortcodes":["man_teacher_tone2"],"unicode":"👨🏼‍🏫"},{"annotation":"man teacher: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F3EB","order":945,"shortcodes":["man_teacher_tone3"],"unicode":"👨🏽‍🏫"},{"annotation":"man teacher: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F3EB","order":946,"shortcodes":["man_teacher_tone4"],"unicode":"👨🏾‍🏫"},{"annotation":"man teacher: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F3EB","order":947,"shortcodes":["man_teacher_tone5"],"unicode":"👨🏿‍🏫"}]},{"annotation":"woman teacher","group":1,"hexcode":"1F469-200D-1F3EB","order":948,"shortcodes":["woman_teacher"],"tags":["instructor","professor","teacher","woman"],"unicode":"👩‍🏫","skins":[{"annotation":"woman teacher: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F3EB","order":949,"shortcodes":["woman_teacher_tone1"],"unicode":"👩🏻‍🏫"},{"annotation":"woman teacher: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F3EB","order":950,"shortcodes":["woman_teacher_tone2"],"unicode":"👩🏼‍🏫"},{"annotation":"woman teacher: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F3EB","order":951,"shortcodes":["woman_teacher_tone3"],"unicode":"👩🏽‍🏫"},{"annotation":"woman teacher: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F3EB","order":952,"shortcodes":["woman_teacher_tone4"],"unicode":"👩🏾‍🏫"},{"annotation":"woman teacher: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F3EB","order":953,"shortcodes":["woman_teacher_tone5"],"unicode":"👩🏿‍🏫"}]},{"annotation":"judge","group":1,"hexcode":"1F9D1-200D-2696-FE0F","order":954,"shortcodes":["person_judge"],"tags":["scales"],"unicode":"🧑‍⚖️","skins":[{"annotation":"judge: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-2696-FE0F","order":956,"shortcodes":["person_judge_tone1"],"unicode":"🧑🏻‍⚖️"},{"annotation":"judge: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-2696-FE0F","order":958,"shortcodes":["person_judge_tone2"],"unicode":"🧑🏼‍⚖️"},{"annotation":"judge: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-2696-FE0F","order":960,"shortcodes":["person_judge_tone3"],"unicode":"🧑🏽‍⚖️"},{"annotation":"judge: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-2696-FE0F","order":962,"shortcodes":["person_judge_tone4"],"unicode":"🧑🏾‍⚖️"},{"annotation":"judge: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-2696-FE0F","order":964,"shortcodes":["person_judge_tone5"],"unicode":"🧑🏿‍⚖️"}]},{"annotation":"man judge","group":1,"hexcode":"1F468-200D-2696-FE0F","order":966,"shortcodes":["man_judge"],"tags":["justice","man","scales"],"unicode":"👨‍⚖️","skins":[{"annotation":"man judge: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-2696-FE0F","order":968,"shortcodes":["man_judge_tone1"],"unicode":"👨🏻‍⚖️"},{"annotation":"man judge: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-2696-FE0F","order":970,"shortcodes":["man_judge_tone2"],"unicode":"👨🏼‍⚖️"},{"annotation":"man judge: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-2696-FE0F","order":972,"shortcodes":["man_judge_tone3"],"unicode":"👨🏽‍⚖️"},{"annotation":"man judge: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-2696-FE0F","order":974,"shortcodes":["man_judge_tone4"],"unicode":"👨🏾‍⚖️"},{"annotation":"man judge: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-2696-FE0F","order":976,"shortcodes":["man_judge_tone5"],"unicode":"👨🏿‍⚖️"}]},{"annotation":"woman judge","group":1,"hexcode":"1F469-200D-2696-FE0F","order":978,"shortcodes":["woman_judge"],"tags":["judge","scales","woman"],"unicode":"👩‍⚖️","skins":[{"annotation":"woman judge: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-2696-FE0F","order":980,"shortcodes":["woman_judge_tone1"],"unicode":"👩🏻‍⚖️"},{"annotation":"woman judge: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-2696-FE0F","order":982,"shortcodes":["woman_judge_tone2"],"unicode":"👩🏼‍⚖️"},{"annotation":"woman judge: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-2696-FE0F","order":984,"shortcodes":["woman_judge_tone3"],"unicode":"👩🏽‍⚖️"},{"annotation":"woman judge: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-2696-FE0F","order":986,"shortcodes":["woman_judge_tone4"],"unicode":"👩🏾‍⚖️"},{"annotation":"woman judge: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-2696-FE0F","order":988,"shortcodes":["woman_judge_tone5"],"unicode":"👩🏿‍⚖️"}]},{"annotation":"farmer","group":1,"hexcode":"1F9D1-200D-1F33E","order":990,"shortcodes":["person_farmer"],"tags":["gardener","rancher"],"unicode":"🧑‍🌾","skins":[{"annotation":"farmer: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F33E","order":991,"shortcodes":["person_farmer_tone1"],"unicode":"🧑🏻‍🌾"},{"annotation":"farmer: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F33E","order":992,"shortcodes":["person_farmer_tone2"],"unicode":"🧑🏼‍🌾"},{"annotation":"farmer: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F33E","order":993,"shortcodes":["person_farmer_tone3"],"unicode":"🧑🏽‍🌾"},{"annotation":"farmer: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F33E","order":994,"shortcodes":["person_farmer_tone4"],"unicode":"🧑🏾‍🌾"},{"annotation":"farmer: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F33E","order":995,"shortcodes":["person_farmer_tone5"],"unicode":"🧑🏿‍🌾"}]},{"annotation":"man farmer","group":1,"hexcode":"1F468-200D-1F33E","order":996,"shortcodes":["man_farmer"],"tags":["farmer","gardener","man","rancher"],"unicode":"👨‍🌾","skins":[{"annotation":"man farmer: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F33E","order":997,"shortcodes":["man_farmer_tone1"],"unicode":"👨🏻‍🌾"},{"annotation":"man farmer: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F33E","order":998,"shortcodes":["man_farmer_tone2"],"unicode":"👨🏼‍🌾"},{"annotation":"man farmer: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F33E","order":999,"shortcodes":["man_farmer_tone3"],"unicode":"👨🏽‍🌾"},{"annotation":"man farmer: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F33E","order":1000,"shortcodes":["man_farmer_tone4"],"unicode":"👨🏾‍🌾"},{"annotation":"man farmer: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F33E","order":1001,"shortcodes":["man_farmer_tone5"],"unicode":"👨🏿‍🌾"}]},{"annotation":"woman farmer","group":1,"hexcode":"1F469-200D-1F33E","order":1002,"shortcodes":["woman_farmer"],"tags":["farmer","gardener","rancher","woman"],"unicode":"👩‍🌾","skins":[{"annotation":"woman farmer: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F33E","order":1003,"shortcodes":["woman_farmer_tone1"],"unicode":"👩🏻‍🌾"},{"annotation":"woman farmer: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F33E","order":1004,"shortcodes":["woman_farmer_tone2"],"unicode":"👩🏼‍🌾"},{"annotation":"woman farmer: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F33E","order":1005,"shortcodes":["woman_farmer_tone3"],"unicode":"👩🏽‍🌾"},{"annotation":"woman farmer: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F33E","order":1006,"shortcodes":["woman_farmer_tone4"],"unicode":"👩🏾‍🌾"},{"annotation":"woman farmer: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F33E","order":1007,"shortcodes":["woman_farmer_tone5"],"unicode":"👩🏿‍🌾"}]},{"annotation":"cook","group":1,"hexcode":"1F9D1-200D-1F373","order":1008,"shortcodes":["person_cook"],"tags":["chef"],"unicode":"🧑‍🍳","skins":[{"annotation":"cook: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F373","order":1009,"shortcodes":["person_cook_tone1"],"unicode":"🧑🏻‍🍳"},{"annotation":"cook: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F373","order":1010,"shortcodes":["person_cook_tone2"],"unicode":"🧑🏼‍🍳"},{"annotation":"cook: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F373","order":1011,"shortcodes":["person_cook_tone3"],"unicode":"🧑🏽‍🍳"},{"annotation":"cook: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F373","order":1012,"shortcodes":["person_cook_tone4"],"unicode":"🧑🏾‍🍳"},{"annotation":"cook: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F373","order":1013,"shortcodes":["person_cook_tone5"],"unicode":"🧑🏿‍🍳"}]},{"annotation":"man cook","group":1,"hexcode":"1F468-200D-1F373","order":1014,"shortcodes":["man_cook"],"tags":["chef","cook","man"],"unicode":"👨‍🍳","skins":[{"annotation":"man cook: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F373","order":1015,"shortcodes":["man_cook_tone1"],"unicode":"👨🏻‍🍳"},{"annotation":"man cook: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F373","order":1016,"shortcodes":["man_cook_tone2"],"unicode":"👨🏼‍🍳"},{"annotation":"man cook: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F373","order":1017,"shortcodes":["man_cook_tone3"],"unicode":"👨🏽‍🍳"},{"annotation":"man cook: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F373","order":1018,"shortcodes":["man_cook_tone4"],"unicode":"👨🏾‍🍳"},{"annotation":"man cook: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F373","order":1019,"shortcodes":["man_cook_tone5"],"unicode":"👨🏿‍🍳"}]},{"annotation":"woman cook","group":1,"hexcode":"1F469-200D-1F373","order":1020,"shortcodes":["woman_cook"],"tags":["chef","cook","woman"],"unicode":"👩‍🍳","skins":[{"annotation":"woman cook: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F373","order":1021,"shortcodes":["woman_cook_tone1"],"unicode":"👩🏻‍🍳"},{"annotation":"woman cook: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F373","order":1022,"shortcodes":["woman_cook_tone2"],"unicode":"👩🏼‍🍳"},{"annotation":"woman cook: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F373","order":1023,"shortcodes":["woman_cook_tone3"],"unicode":"👩🏽‍🍳"},{"annotation":"woman cook: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F373","order":1024,"shortcodes":["woman_cook_tone4"],"unicode":"👩🏾‍🍳"},{"annotation":"woman cook: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F373","order":1025,"shortcodes":["woman_cook_tone5"],"unicode":"👩🏿‍🍳"}]},{"annotation":"mechanic","group":1,"hexcode":"1F9D1-200D-1F527","order":1026,"shortcodes":["person_mechanic"],"tags":["electrician","plumber","tradesperson"],"unicode":"🧑‍🔧","skins":[{"annotation":"mechanic: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F527","order":1027,"shortcodes":["person_mechanic_tone1"],"unicode":"🧑🏻‍🔧"},{"annotation":"mechanic: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F527","order":1028,"shortcodes":["person_mechanic_tone2"],"unicode":"🧑🏼‍🔧"},{"annotation":"mechanic: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F527","order":1029,"shortcodes":["person_mechanic_tone3"],"unicode":"🧑🏽‍🔧"},{"annotation":"mechanic: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F527","order":1030,"shortcodes":["person_mechanic_tone4"],"unicode":"🧑🏾‍🔧"},{"annotation":"mechanic: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F527","order":1031,"shortcodes":["person_mechanic_tone5"],"unicode":"🧑🏿‍🔧"}]},{"annotation":"man mechanic","group":1,"hexcode":"1F468-200D-1F527","order":1032,"shortcodes":["man_mechanic"],"tags":["electrician","man","mechanic","plumber","tradesperson"],"unicode":"👨‍🔧","skins":[{"annotation":"man mechanic: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F527","order":1033,"shortcodes":["man_mechanic_tone1"],"unicode":"👨🏻‍🔧"},{"annotation":"man mechanic: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F527","order":1034,"shortcodes":["man_mechanic_tone2"],"unicode":"👨🏼‍🔧"},{"annotation":"man mechanic: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F527","order":1035,"shortcodes":["man_mechanic_tone3"],"unicode":"👨🏽‍🔧"},{"annotation":"man mechanic: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F527","order":1036,"shortcodes":["man_mechanic_tone4"],"unicode":"👨🏾‍🔧"},{"annotation":"man mechanic: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F527","order":1037,"shortcodes":["man_mechanic_tone5"],"unicode":"👨🏿‍🔧"}]},{"annotation":"woman mechanic","group":1,"hexcode":"1F469-200D-1F527","order":1038,"shortcodes":["woman_mechanic"],"tags":["electrician","mechanic","plumber","tradesperson","woman"],"unicode":"👩‍🔧","skins":[{"annotation":"woman mechanic: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F527","order":1039,"shortcodes":["woman_mechanic_tone1"],"unicode":"👩🏻‍🔧"},{"annotation":"woman mechanic: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F527","order":1040,"shortcodes":["woman_mechanic_tone2"],"unicode":"👩🏼‍🔧"},{"annotation":"woman mechanic: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F527","order":1041,"shortcodes":["woman_mechanic_tone3"],"unicode":"👩🏽‍🔧"},{"annotation":"woman mechanic: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F527","order":1042,"shortcodes":["woman_mechanic_tone4"],"unicode":"👩🏾‍🔧"},{"annotation":"woman mechanic: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F527","order":1043,"shortcodes":["woman_mechanic_tone5"],"unicode":"👩🏿‍🔧"}]},{"annotation":"factory worker","group":1,"hexcode":"1F9D1-200D-1F3ED","order":1044,"shortcodes":["person_factory_worker"],"tags":["assembly","factory","industrial","worker"],"unicode":"🧑‍🏭","skins":[{"annotation":"factory worker: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F3ED","order":1045,"shortcodes":["person_factory_worker_tone1"],"unicode":"🧑🏻‍🏭"},{"annotation":"factory worker: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F3ED","order":1046,"shortcodes":["person_factory_worker_tone2"],"unicode":"🧑🏼‍🏭"},{"annotation":"factory worker: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F3ED","order":1047,"shortcodes":["person_factory_worker_tone3"],"unicode":"🧑🏽‍🏭"},{"annotation":"factory worker: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F3ED","order":1048,"shortcodes":["person_factory_worker_tone4"],"unicode":"🧑🏾‍🏭"},{"annotation":"factory worker: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F3ED","order":1049,"shortcodes":["person_factory_worker_tone5"],"unicode":"🧑🏿‍🏭"}]},{"annotation":"man factory worker","group":1,"hexcode":"1F468-200D-1F3ED","order":1050,"shortcodes":["man_factory_worker"],"tags":["assembly","factory","industrial","man","worker"],"unicode":"👨‍🏭","skins":[{"annotation":"man factory worker: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F3ED","order":1051,"shortcodes":["man_factory_worker_tone1"],"unicode":"👨🏻‍🏭"},{"annotation":"man factory worker: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F3ED","order":1052,"shortcodes":["man_factory_worker_tone2"],"unicode":"👨🏼‍🏭"},{"annotation":"man factory worker: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F3ED","order":1053,"shortcodes":["man_factory_worker_tone3"],"unicode":"👨🏽‍🏭"},{"annotation":"man factory worker: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F3ED","order":1054,"shortcodes":["man_factory_worker_tone4"],"unicode":"👨🏾‍🏭"},{"annotation":"man factory worker: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F3ED","order":1055,"shortcodes":["man_factory_worker_tone5"],"unicode":"👨🏿‍🏭"}]},{"annotation":"woman factory worker","group":1,"hexcode":"1F469-200D-1F3ED","order":1056,"shortcodes":["woman_factory_worker"],"tags":["assembly","factory","industrial","woman","worker"],"unicode":"👩‍🏭","skins":[{"annotation":"woman factory worker: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F3ED","order":1057,"shortcodes":["woman_factory_worker_tone1"],"unicode":"👩🏻‍🏭"},{"annotation":"woman factory worker: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F3ED","order":1058,"shortcodes":["woman_factory_worker_tone2"],"unicode":"👩🏼‍🏭"},{"annotation":"woman factory worker: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F3ED","order":1059,"shortcodes":["woman_factory_worker_tone3"],"unicode":"👩🏽‍🏭"},{"annotation":"woman factory worker: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F3ED","order":1060,"shortcodes":["woman_factory_worker_tone4"],"unicode":"👩🏾‍🏭"},{"annotation":"woman factory worker: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F3ED","order":1061,"shortcodes":["woman_factory_worker_tone5"],"unicode":"👩🏿‍🏭"}]},{"annotation":"office worker","group":1,"hexcode":"1F9D1-200D-1F4BC","order":1062,"shortcodes":["person_office_worker"],"tags":["architect","business","manager","white-collar"],"unicode":"🧑‍💼","skins":[{"annotation":"office worker: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F4BC","order":1063,"shortcodes":["person_office_worker_tone1"],"unicode":"🧑🏻‍💼"},{"annotation":"office worker: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F4BC","order":1064,"shortcodes":["person_office_worker_tone2"],"unicode":"🧑🏼‍💼"},{"annotation":"office worker: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F4BC","order":1065,"shortcodes":["person_office_worker_tone3"],"unicode":"🧑🏽‍💼"},{"annotation":"office worker: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F4BC","order":1066,"shortcodes":["person_office_worker_tone4"],"unicode":"🧑🏾‍💼"},{"annotation":"office worker: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F4BC","order":1067,"shortcodes":["person_office_worker_tone5"],"unicode":"🧑🏿‍💼"}]},{"annotation":"man office worker","group":1,"hexcode":"1F468-200D-1F4BC","order":1068,"shortcodes":["man_office_worker"],"tags":["architect","business","man","manager","white-collar"],"unicode":"👨‍💼","skins":[{"annotation":"man office worker: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F4BC","order":1069,"shortcodes":["man_office_worker_tone1"],"unicode":"👨🏻‍💼"},{"annotation":"man office worker: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F4BC","order":1070,"shortcodes":["man_office_worker_tone2"],"unicode":"👨🏼‍💼"},{"annotation":"man office worker: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F4BC","order":1071,"shortcodes":["man_office_worker_tone3"],"unicode":"👨🏽‍💼"},{"annotation":"man office worker: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F4BC","order":1072,"shortcodes":["man_office_worker_tone4"],"unicode":"👨🏾‍💼"},{"annotation":"man office worker: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F4BC","order":1073,"shortcodes":["man_office_worker_tone5"],"unicode":"👨🏿‍💼"}]},{"annotation":"woman office worker","group":1,"hexcode":"1F469-200D-1F4BC","order":1074,"shortcodes":["woman_office_worker"],"tags":["architect","business","manager","white-collar","woman"],"unicode":"👩‍💼","skins":[{"annotation":"woman office worker: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F4BC","order":1075,"shortcodes":["woman_office_worker_tone1"],"unicode":"👩🏻‍💼"},{"annotation":"woman office worker: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F4BC","order":1076,"shortcodes":["woman_office_worker_tone2"],"unicode":"👩🏼‍💼"},{"annotation":"woman office worker: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F4BC","order":1077,"shortcodes":["woman_office_worker_tone3"],"unicode":"👩🏽‍💼"},{"annotation":"woman office worker: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F4BC","order":1078,"shortcodes":["woman_office_worker_tone4"],"unicode":"👩🏾‍💼"},{"annotation":"woman office worker: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F4BC","order":1079,"shortcodes":["woman_office_worker_tone5"],"unicode":"👩🏿‍💼"}]},{"annotation":"scientist","group":1,"hexcode":"1F9D1-200D-1F52C","order":1080,"shortcodes":["person_scientist"],"tags":["biologist","chemist","engineer","physicist"],"unicode":"🧑‍🔬","skins":[{"annotation":"scientist: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F52C","order":1081,"shortcodes":["person_scientist_tone1"],"unicode":"🧑🏻‍🔬"},{"annotation":"scientist: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F52C","order":1082,"shortcodes":["person_scientist_tone2"],"unicode":"🧑🏼‍🔬"},{"annotation":"scientist: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F52C","order":1083,"shortcodes":["person_scientist_tone3"],"unicode":"🧑🏽‍🔬"},{"annotation":"scientist: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F52C","order":1084,"shortcodes":["person_scientist_tone4"],"unicode":"🧑🏾‍🔬"},{"annotation":"scientist: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F52C","order":1085,"shortcodes":["person_scientist_tone5"],"unicode":"🧑🏿‍🔬"}]},{"annotation":"man scientist","group":1,"hexcode":"1F468-200D-1F52C","order":1086,"shortcodes":["man_scientist"],"tags":["biologist","chemist","engineer","man","physicist","scientist"],"unicode":"👨‍🔬","skins":[{"annotation":"man scientist: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F52C","order":1087,"shortcodes":["man_scientist_tone1"],"unicode":"👨🏻‍🔬"},{"annotation":"man scientist: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F52C","order":1088,"shortcodes":["man_scientist_tone2"],"unicode":"👨🏼‍🔬"},{"annotation":"man scientist: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F52C","order":1089,"shortcodes":["man_scientist_tone3"],"unicode":"👨🏽‍🔬"},{"annotation":"man scientist: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F52C","order":1090,"shortcodes":["man_scientist_tone4"],"unicode":"👨🏾‍🔬"},{"annotation":"man scientist: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F52C","order":1091,"shortcodes":["man_scientist_tone5"],"unicode":"👨🏿‍🔬"}]},{"annotation":"woman scientist","group":1,"hexcode":"1F469-200D-1F52C","order":1092,"shortcodes":["woman_scientist"],"tags":["biologist","chemist","engineer","physicist","scientist","woman"],"unicode":"👩‍🔬","skins":[{"annotation":"woman scientist: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F52C","order":1093,"shortcodes":["woman_scientist_tone1"],"unicode":"👩🏻‍🔬"},{"annotation":"woman scientist: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F52C","order":1094,"shortcodes":["woman_scientist_tone2"],"unicode":"👩🏼‍🔬"},{"annotation":"woman scientist: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F52C","order":1095,"shortcodes":["woman_scientist_tone3"],"unicode":"👩🏽‍🔬"},{"annotation":"woman scientist: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F52C","order":1096,"shortcodes":["woman_scientist_tone4"],"unicode":"👩🏾‍🔬"},{"annotation":"woman scientist: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F52C","order":1097,"shortcodes":["woman_scientist_tone5"],"unicode":"👩🏿‍🔬"}]},{"annotation":"technologist","group":1,"hexcode":"1F9D1-200D-1F4BB","order":1098,"shortcodes":["person_technologist"],"tags":["coder","developer","inventor","software"],"unicode":"🧑‍💻","skins":[{"annotation":"technologist: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F4BB","order":1099,"shortcodes":["person_technologist_tone1"],"unicode":"🧑🏻‍💻"},{"annotation":"technologist: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F4BB","order":1100,"shortcodes":["person_technologist_tone2"],"unicode":"🧑🏼‍💻"},{"annotation":"technologist: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F4BB","order":1101,"shortcodes":["person_technologist_tone3"],"unicode":"🧑🏽‍💻"},{"annotation":"technologist: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F4BB","order":1102,"shortcodes":["person_technologist_tone4"],"unicode":"🧑🏾‍💻"},{"annotation":"technologist: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F4BB","order":1103,"shortcodes":["person_technologist_tone5"],"unicode":"🧑🏿‍💻"}]},{"annotation":"man technologist","group":1,"hexcode":"1F468-200D-1F4BB","order":1104,"shortcodes":["man_technologist"],"tags":["coder","developer","inventor","man","software","technologist"],"unicode":"👨‍💻","skins":[{"annotation":"man technologist: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F4BB","order":1105,"shortcodes":["man_technologist_tone1"],"unicode":"👨🏻‍💻"},{"annotation":"man technologist: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F4BB","order":1106,"shortcodes":["man_technologist_tone2"],"unicode":"👨🏼‍💻"},{"annotation":"man technologist: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F4BB","order":1107,"shortcodes":["man_technologist_tone3"],"unicode":"👨🏽‍💻"},{"annotation":"man technologist: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F4BB","order":1108,"shortcodes":["man_technologist_tone4"],"unicode":"👨🏾‍💻"},{"annotation":"man technologist: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F4BB","order":1109,"shortcodes":["man_technologist_tone5"],"unicode":"👨🏿‍💻"}]},{"annotation":"woman technologist","group":1,"hexcode":"1F469-200D-1F4BB","order":1110,"shortcodes":["woman_technologist"],"tags":["coder","developer","inventor","software","technologist","woman"],"unicode":"👩‍💻","skins":[{"annotation":"woman technologist: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F4BB","order":1111,"shortcodes":["woman_technologist_tone1"],"unicode":"👩🏻‍💻"},{"annotation":"woman technologist: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F4BB","order":1112,"shortcodes":["woman_technologist_tone2"],"unicode":"👩🏼‍💻"},{"annotation":"woman technologist: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F4BB","order":1113,"shortcodes":["woman_technologist_tone3"],"unicode":"👩🏽‍💻"},{"annotation":"woman technologist: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F4BB","order":1114,"shortcodes":["woman_technologist_tone4"],"unicode":"👩🏾‍💻"},{"annotation":"woman technologist: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F4BB","order":1115,"shortcodes":["woman_technologist_tone5"],"unicode":"👩🏿‍💻"}]},{"annotation":"singer","group":1,"hexcode":"1F9D1-200D-1F3A4","order":1116,"shortcodes":["person_singer"],"tags":["actor","entertainer","rock","star"],"unicode":"🧑‍🎤","skins":[{"annotation":"singer: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F3A4","order":1117,"shortcodes":["person_singer_tone1"],"unicode":"🧑🏻‍🎤"},{"annotation":"singer: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F3A4","order":1118,"shortcodes":["person_singer_tone2"],"unicode":"🧑🏼‍🎤"},{"annotation":"singer: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F3A4","order":1119,"shortcodes":["person_singer_tone3"],"unicode":"🧑🏽‍🎤"},{"annotation":"singer: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F3A4","order":1120,"shortcodes":["person_singer_tone4"],"unicode":"🧑🏾‍🎤"},{"annotation":"singer: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F3A4","order":1121,"shortcodes":["person_singer_tone5"],"unicode":"🧑🏿‍🎤"}]},{"annotation":"man singer","group":1,"hexcode":"1F468-200D-1F3A4","order":1122,"shortcodes":["man_singer"],"tags":["actor","entertainer","man","rock","singer","star"],"unicode":"👨‍🎤","skins":[{"annotation":"man singer: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F3A4","order":1123,"shortcodes":["man_singer_tone1"],"unicode":"👨🏻‍🎤"},{"annotation":"man singer: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F3A4","order":1124,"shortcodes":["man_singer_tone2"],"unicode":"👨🏼‍🎤"},{"annotation":"man singer: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F3A4","order":1125,"shortcodes":["man_singer_tone3"],"unicode":"👨🏽‍🎤"},{"annotation":"man singer: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F3A4","order":1126,"shortcodes":["man_singer_tone4"],"unicode":"👨🏾‍🎤"},{"annotation":"man singer: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F3A4","order":1127,"shortcodes":["man_singer_tone5"],"unicode":"👨🏿‍🎤"}]},{"annotation":"woman singer","group":1,"hexcode":"1F469-200D-1F3A4","order":1128,"shortcodes":["woman_singer"],"tags":["actor","entertainer","rock","singer","star","woman"],"unicode":"👩‍🎤","skins":[{"annotation":"woman singer: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F3A4","order":1129,"shortcodes":["woman_singer_tone1"],"unicode":"👩🏻‍🎤"},{"annotation":"woman singer: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F3A4","order":1130,"shortcodes":["woman_singer_tone2"],"unicode":"👩🏼‍🎤"},{"annotation":"woman singer: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F3A4","order":1131,"shortcodes":["woman_singer_tone3"],"unicode":"👩🏽‍🎤"},{"annotation":"woman singer: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F3A4","order":1132,"shortcodes":["woman_singer_tone4"],"unicode":"👩🏾‍🎤"},{"annotation":"woman singer: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F3A4","order":1133,"shortcodes":["woman_singer_tone5"],"unicode":"👩🏿‍🎤"}]},{"annotation":"artist","group":1,"hexcode":"1F9D1-200D-1F3A8","order":1134,"shortcodes":["person_artist"],"tags":["palette"],"unicode":"🧑‍🎨","skins":[{"annotation":"artist: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F3A8","order":1135,"shortcodes":["person_artist_tone1"],"unicode":"🧑🏻‍🎨"},{"annotation":"artist: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F3A8","order":1136,"shortcodes":["person_artist_tone2"],"unicode":"🧑🏼‍🎨"},{"annotation":"artist: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F3A8","order":1137,"shortcodes":["person_artist_tone3"],"unicode":"🧑🏽‍🎨"},{"annotation":"artist: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F3A8","order":1138,"shortcodes":["person_artist_tone4"],"unicode":"🧑🏾‍🎨"},{"annotation":"artist: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F3A8","order":1139,"shortcodes":["person_artist_tone5"],"unicode":"🧑🏿‍🎨"}]},{"annotation":"man artist","group":1,"hexcode":"1F468-200D-1F3A8","order":1140,"shortcodes":["man_artist"],"tags":["artist","man","palette"],"unicode":"👨‍🎨","skins":[{"annotation":"man artist: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F3A8","order":1141,"shortcodes":["man_artist_tone1"],"unicode":"👨🏻‍🎨"},{"annotation":"man artist: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F3A8","order":1142,"shortcodes":["man_artist_tone2"],"unicode":"👨🏼‍🎨"},{"annotation":"man artist: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F3A8","order":1143,"shortcodes":["man_artist_tone3"],"unicode":"👨🏽‍🎨"},{"annotation":"man artist: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F3A8","order":1144,"shortcodes":["man_artist_tone4"],"unicode":"👨🏾‍🎨"},{"annotation":"man artist: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F3A8","order":1145,"shortcodes":["man_artist_tone5"],"unicode":"👨🏿‍🎨"}]},{"annotation":"woman artist","group":1,"hexcode":"1F469-200D-1F3A8","order":1146,"shortcodes":["woman_artist"],"tags":["artist","palette","woman"],"unicode":"👩‍🎨","skins":[{"annotation":"woman artist: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F3A8","order":1147,"shortcodes":["woman_artist_tone1"],"unicode":"👩🏻‍🎨"},{"annotation":"woman artist: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F3A8","order":1148,"shortcodes":["woman_artist_tone2"],"unicode":"👩🏼‍🎨"},{"annotation":"woman artist: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F3A8","order":1149,"shortcodes":["woman_artist_tone3"],"unicode":"👩🏽‍🎨"},{"annotation":"woman artist: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F3A8","order":1150,"shortcodes":["woman_artist_tone4"],"unicode":"👩🏾‍🎨"},{"annotation":"woman artist: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F3A8","order":1151,"shortcodes":["woman_artist_tone5"],"unicode":"👩🏿‍🎨"}]},{"annotation":"pilot","group":1,"hexcode":"1F9D1-200D-2708-FE0F","order":1152,"shortcodes":["person_pilot"],"tags":["plane"],"unicode":"🧑‍✈️","skins":[{"annotation":"pilot: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-2708-FE0F","order":1154,"shortcodes":["person_pilot_tone1"],"unicode":"🧑🏻‍✈️"},{"annotation":"pilot: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-2708-FE0F","order":1156,"shortcodes":["person_pilot_tone2"],"unicode":"🧑🏼‍✈️"},{"annotation":"pilot: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-2708-FE0F","order":1158,"shortcodes":["person_pilot_tone3"],"unicode":"🧑🏽‍✈️"},{"annotation":"pilot: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-2708-FE0F","order":1160,"shortcodes":["person_pilot_tone4"],"unicode":"🧑🏾‍✈️"},{"annotation":"pilot: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-2708-FE0F","order":1162,"shortcodes":["person_pilot_tone5"],"unicode":"🧑🏿‍✈️"}]},{"annotation":"man pilot","group":1,"hexcode":"1F468-200D-2708-FE0F","order":1164,"shortcodes":["man_pilot"],"tags":["man","pilot","plane"],"unicode":"👨‍✈️","skins":[{"annotation":"man pilot: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-2708-FE0F","order":1166,"shortcodes":["man_pilot_tone1"],"unicode":"👨🏻‍✈️"},{"annotation":"man pilot: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-2708-FE0F","order":1168,"shortcodes":["man_pilot_tone2"],"unicode":"👨🏼‍✈️"},{"annotation":"man pilot: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-2708-FE0F","order":1170,"shortcodes":["man_pilot_tone3"],"unicode":"👨🏽‍✈️"},{"annotation":"man pilot: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-2708-FE0F","order":1172,"shortcodes":["man_pilot_tone4"],"unicode":"👨🏾‍✈️"},{"annotation":"man pilot: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-2708-FE0F","order":1174,"shortcodes":["man_pilot_tone5"],"unicode":"👨🏿‍✈️"}]},{"annotation":"woman pilot","group":1,"hexcode":"1F469-200D-2708-FE0F","order":1176,"shortcodes":["woman_pilot"],"tags":["pilot","plane","woman"],"unicode":"👩‍✈️","skins":[{"annotation":"woman pilot: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-2708-FE0F","order":1178,"shortcodes":["woman_pilot_tone1"],"unicode":"👩🏻‍✈️"},{"annotation":"woman pilot: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-2708-FE0F","order":1180,"shortcodes":["woman_pilot_tone2"],"unicode":"👩🏼‍✈️"},{"annotation":"woman pilot: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-2708-FE0F","order":1182,"shortcodes":["woman_pilot_tone3"],"unicode":"👩🏽‍✈️"},{"annotation":"woman pilot: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-2708-FE0F","order":1184,"shortcodes":["woman_pilot_tone4"],"unicode":"👩🏾‍✈️"},{"annotation":"woman pilot: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-2708-FE0F","order":1186,"shortcodes":["woman_pilot_tone5"],"unicode":"👩🏿‍✈️"}]},{"annotation":"astronaut","group":1,"hexcode":"1F9D1-200D-1F680","order":1188,"shortcodes":["person_astronaut"],"tags":["rocket"],"unicode":"🧑‍🚀","skins":[{"annotation":"astronaut: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F680","order":1189,"shortcodes":["person_astronaut_tone1"],"unicode":"🧑🏻‍🚀"},{"annotation":"astronaut: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F680","order":1190,"shortcodes":["person_astronaut_tone2"],"unicode":"🧑🏼‍🚀"},{"annotation":"astronaut: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F680","order":1191,"shortcodes":["person_astronaut_tone3"],"unicode":"🧑🏽‍🚀"},{"annotation":"astronaut: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F680","order":1192,"shortcodes":["person_astronaut_tone4"],"unicode":"🧑🏾‍🚀"},{"annotation":"astronaut: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F680","order":1193,"shortcodes":["person_astronaut_tone5"],"unicode":"🧑🏿‍🚀"}]},{"annotation":"man astronaut","group":1,"hexcode":"1F468-200D-1F680","order":1194,"shortcodes":["man_astronaut"],"tags":["astronaut","man","rocket"],"unicode":"👨‍🚀","skins":[{"annotation":"man astronaut: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F680","order":1195,"shortcodes":["man_astronaut_tone1"],"unicode":"👨🏻‍🚀"},{"annotation":"man astronaut: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F680","order":1196,"shortcodes":["man_astronaut_tone2"],"unicode":"👨🏼‍🚀"},{"annotation":"man astronaut: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F680","order":1197,"shortcodes":["man_astronaut_tone3"],"unicode":"👨🏽‍🚀"},{"annotation":"man astronaut: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F680","order":1198,"shortcodes":["man_astronaut_tone4"],"unicode":"👨🏾‍🚀"},{"annotation":"man astronaut: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F680","order":1199,"shortcodes":["man_astronaut_tone5"],"unicode":"👨🏿‍🚀"}]},{"annotation":"woman astronaut","group":1,"hexcode":"1F469-200D-1F680","order":1200,"shortcodes":["woman_astronaut"],"tags":["astronaut","rocket","woman"],"unicode":"👩‍🚀","skins":[{"annotation":"woman astronaut: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F680","order":1201,"shortcodes":["woman_astronaut_tone1"],"unicode":"👩🏻‍🚀"},{"annotation":"woman astronaut: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F680","order":1202,"shortcodes":["woman_astronaut_tone2"],"unicode":"👩🏼‍🚀"},{"annotation":"woman astronaut: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F680","order":1203,"shortcodes":["woman_astronaut_tone3"],"unicode":"👩🏽‍🚀"},{"annotation":"woman astronaut: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F680","order":1204,"shortcodes":["woman_astronaut_tone4"],"unicode":"👩🏾‍🚀"},{"annotation":"woman astronaut: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F680","order":1205,"shortcodes":["woman_astronaut_tone5"],"unicode":"👩🏿‍🚀"}]},{"annotation":"firefighter","group":1,"hexcode":"1F9D1-200D-1F692","order":1206,"shortcodes":["person_firefighter"],"tags":["firetruck"],"unicode":"🧑‍🚒","skins":[{"annotation":"firefighter: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F692","order":1207,"shortcodes":["person_firefighter_tone1"],"unicode":"🧑🏻‍🚒"},{"annotation":"firefighter: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F692","order":1208,"shortcodes":["person_firefighter_tone2"],"unicode":"🧑🏼‍🚒"},{"annotation":"firefighter: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F692","order":1209,"shortcodes":["person_firefighter_tone3"],"unicode":"🧑🏽‍🚒"},{"annotation":"firefighter: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F692","order":1210,"shortcodes":["person_firefighter_tone4"],"unicode":"🧑🏾‍🚒"},{"annotation":"firefighter: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F692","order":1211,"shortcodes":["person_firefighter_tone5"],"unicode":"🧑🏿‍🚒"}]},{"annotation":"man firefighter","group":1,"hexcode":"1F468-200D-1F692","order":1212,"shortcodes":["man_firefighter"],"tags":["firefighter","firetruck","man"],"unicode":"👨‍🚒","skins":[{"annotation":"man firefighter: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F692","order":1213,"shortcodes":["man_firefighter_tone1"],"unicode":"👨🏻‍🚒"},{"annotation":"man firefighter: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F692","order":1214,"shortcodes":["man_firefighter_tone2"],"unicode":"👨🏼‍🚒"},{"annotation":"man firefighter: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F692","order":1215,"shortcodes":["man_firefighter_tone3"],"unicode":"👨🏽‍🚒"},{"annotation":"man firefighter: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F692","order":1216,"shortcodes":["man_firefighter_tone4"],"unicode":"👨🏾‍🚒"},{"annotation":"man firefighter: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F692","order":1217,"shortcodes":["man_firefighter_tone5"],"unicode":"👨🏿‍🚒"}]},{"annotation":"woman firefighter","group":1,"hexcode":"1F469-200D-1F692","order":1218,"shortcodes":["woman_firefighter"],"tags":["firefighter","firetruck","woman"],"unicode":"👩‍🚒","skins":[{"annotation":"woman firefighter: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F692","order":1219,"shortcodes":["woman_firefighter_tone1"],"unicode":"👩🏻‍🚒"},{"annotation":"woman firefighter: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F692","order":1220,"shortcodes":["woman_firefighter_tone2"],"unicode":"👩🏼‍🚒"},{"annotation":"woman firefighter: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F692","order":1221,"shortcodes":["woman_firefighter_tone3"],"unicode":"👩🏽‍🚒"},{"annotation":"woman firefighter: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F692","order":1222,"shortcodes":["woman_firefighter_tone4"],"unicode":"👩🏾‍🚒"},{"annotation":"woman firefighter: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F692","order":1223,"shortcodes":["woman_firefighter_tone5"],"unicode":"👩🏿‍🚒"}]},{"annotation":"police officer","group":1,"hexcode":"1F46E","order":1224,"shortcodes":["police_officer"],"tags":["cop","officer","police"],"unicode":"👮","skins":[{"annotation":"police officer: light skin tone","group":1,"hexcode":"1F46E-1F3FB","order":1225,"shortcodes":["police_officer_tone1"],"unicode":"👮🏻"},{"annotation":"police officer: medium-light skin tone","group":1,"hexcode":"1F46E-1F3FC","order":1226,"shortcodes":["police_officer_tone2"],"unicode":"👮🏼"},{"annotation":"police officer: medium skin tone","group":1,"hexcode":"1F46E-1F3FD","order":1227,"shortcodes":["police_officer_tone3"],"unicode":"👮🏽"},{"annotation":"police officer: medium-dark skin tone","group":1,"hexcode":"1F46E-1F3FE","order":1228,"shortcodes":["police_officer_tone4"],"unicode":"👮🏾"},{"annotation":"police officer: dark skin tone","group":1,"hexcode":"1F46E-1F3FF","order":1229,"shortcodes":["police_officer_tone5"],"unicode":"👮🏿"}]},{"annotation":"man police officer","group":1,"hexcode":"1F46E-200D-2642-FE0F","order":1230,"shortcodes":["man_police_officer"],"tags":["cop","man","officer","police"],"unicode":"👮‍♂️","skins":[{"annotation":"man police officer: light skin tone","group":1,"hexcode":"1F46E-1F3FB-200D-2642-FE0F","order":1232,"shortcodes":["man_police_officer_tone1"],"unicode":"👮🏻‍♂️"},{"annotation":"man police officer: medium-light skin tone","group":1,"hexcode":"1F46E-1F3FC-200D-2642-FE0F","order":1234,"shortcodes":["man_police_officer_tone2"],"unicode":"👮🏼‍♂️"},{"annotation":"man police officer: medium skin tone","group":1,"hexcode":"1F46E-1F3FD-200D-2642-FE0F","order":1236,"shortcodes":["man_police_officer_tone3"],"unicode":"👮🏽‍♂️"},{"annotation":"man police officer: medium-dark skin tone","group":1,"hexcode":"1F46E-1F3FE-200D-2642-FE0F","order":1238,"shortcodes":["man_police_officer_tone4"],"unicode":"👮🏾‍♂️"},{"annotation":"man police officer: dark skin tone","group":1,"hexcode":"1F46E-1F3FF-200D-2642-FE0F","order":1240,"shortcodes":["man_police_officer_tone5"],"unicode":"👮🏿‍♂️"}]},{"annotation":"woman police officer","group":1,"hexcode":"1F46E-200D-2640-FE0F","order":1242,"shortcodes":["woman_police_officer"],"tags":["cop","officer","police","woman"],"unicode":"👮‍♀️","skins":[{"annotation":"woman police officer: light skin tone","group":1,"hexcode":"1F46E-1F3FB-200D-2640-FE0F","order":1244,"shortcodes":["woman_police_officer_tone1"],"unicode":"👮🏻‍♀️"},{"annotation":"woman police officer: medium-light skin tone","group":1,"hexcode":"1F46E-1F3FC-200D-2640-FE0F","order":1246,"shortcodes":["woman_police_officer_tone2"],"unicode":"👮🏼‍♀️"},{"annotation":"woman police officer: medium skin tone","group":1,"hexcode":"1F46E-1F3FD-200D-2640-FE0F","order":1248,"shortcodes":["woman_police_officer_tone3"],"unicode":"👮🏽‍♀️"},{"annotation":"woman police officer: medium-dark skin tone","group":1,"hexcode":"1F46E-1F3FE-200D-2640-FE0F","order":1250,"shortcodes":["woman_police_officer_tone4"],"unicode":"👮🏾‍♀️"},{"annotation":"woman police officer: dark skin tone","group":1,"hexcode":"1F46E-1F3FF-200D-2640-FE0F","order":1252,"shortcodes":["woman_police_officer_tone5"],"unicode":"👮🏿‍♀️"}]},{"annotation":"detective","group":1,"hexcode":"1F575","order":1255,"shortcodes":["detective"],"tags":["sleuth","spy"],"unicode":"🕵️","skins":[{"annotation":"detective: light skin tone","group":1,"hexcode":"1F575-1F3FB","order":1256,"shortcodes":["detective_tone1"],"unicode":"🕵🏻"},{"annotation":"detective: medium-light skin tone","group":1,"hexcode":"1F575-1F3FC","order":1257,"shortcodes":["detective_tone2"],"unicode":"🕵🏼"},{"annotation":"detective: medium skin tone","group":1,"hexcode":"1F575-1F3FD","order":1258,"shortcodes":["detective_tone3"],"unicode":"🕵🏽"},{"annotation":"detective: medium-dark skin tone","group":1,"hexcode":"1F575-1F3FE","order":1259,"shortcodes":["detective_tone4"],"unicode":"🕵🏾"},{"annotation":"detective: dark skin tone","group":1,"hexcode":"1F575-1F3FF","order":1260,"shortcodes":["detective_tone5"],"unicode":"🕵🏿"}]},{"annotation":"man detective","group":1,"hexcode":"1F575-FE0F-200D-2642-FE0F","order":1261,"shortcodes":["man_detective"],"tags":["detective","man","sleuth","spy"],"unicode":"🕵️‍♂️","skins":[{"annotation":"man detective: light skin tone","group":1,"hexcode":"1F575-1F3FB-200D-2642-FE0F","order":1265,"shortcodes":["man_detective_tone1"],"unicode":"🕵🏻‍♂️"},{"annotation":"man detective: medium-light skin tone","group":1,"hexcode":"1F575-1F3FC-200D-2642-FE0F","order":1267,"shortcodes":["man_detective_tone2"],"unicode":"🕵🏼‍♂️"},{"annotation":"man detective: medium skin tone","group":1,"hexcode":"1F575-1F3FD-200D-2642-FE0F","order":1269,"shortcodes":["man_detective_tone3"],"unicode":"🕵🏽‍♂️"},{"annotation":"man detective: medium-dark skin tone","group":1,"hexcode":"1F575-1F3FE-200D-2642-FE0F","order":1271,"shortcodes":["man_detective_tone4"],"unicode":"🕵🏾‍♂️"},{"annotation":"man detective: dark skin tone","group":1,"hexcode":"1F575-1F3FF-200D-2642-FE0F","order":1273,"shortcodes":["man_detective_tone5"],"unicode":"🕵🏿‍♂️"}]},{"annotation":"woman detective","group":1,"hexcode":"1F575-FE0F-200D-2640-FE0F","order":1275,"shortcodes":["woman_detective"],"tags":["detective","sleuth","spy","woman"],"unicode":"🕵️‍♀️","skins":[{"annotation":"woman detective: light skin tone","group":1,"hexcode":"1F575-1F3FB-200D-2640-FE0F","order":1279,"shortcodes":["woman_detective_tone1"],"unicode":"🕵🏻‍♀️"},{"annotation":"woman detective: medium-light skin tone","group":1,"hexcode":"1F575-1F3FC-200D-2640-FE0F","order":1281,"shortcodes":["woman_detective_tone2"],"unicode":"🕵🏼‍♀️"},{"annotation":"woman detective: medium skin tone","group":1,"hexcode":"1F575-1F3FD-200D-2640-FE0F","order":1283,"shortcodes":["woman_detective_tone3"],"unicode":"🕵🏽‍♀️"},{"annotation":"woman detective: medium-dark skin tone","group":1,"hexcode":"1F575-1F3FE-200D-2640-FE0F","order":1285,"shortcodes":["woman_detective_tone4"],"unicode":"🕵🏾‍♀️"},{"annotation":"woman detective: dark skin tone","group":1,"hexcode":"1F575-1F3FF-200D-2640-FE0F","order":1287,"shortcodes":["woman_detective_tone5"],"unicode":"🕵🏿‍♀️"}]},{"annotation":"guard","group":1,"hexcode":"1F482","order":1289,"shortcodes":["guard"],"tags":["guard"],"unicode":"💂","skins":[{"annotation":"guard: light skin tone","group":1,"hexcode":"1F482-1F3FB","order":1290,"shortcodes":["guard_tone1"],"unicode":"💂🏻"},{"annotation":"guard: medium-light skin tone","group":1,"hexcode":"1F482-1F3FC","order":1291,"shortcodes":["guard_tone2"],"unicode":"💂🏼"},{"annotation":"guard: medium skin tone","group":1,"hexcode":"1F482-1F3FD","order":1292,"shortcodes":["guard_tone3"],"unicode":"💂🏽"},{"annotation":"guard: medium-dark skin tone","group":1,"hexcode":"1F482-1F3FE","order":1293,"shortcodes":["guard_tone4"],"unicode":"💂🏾"},{"annotation":"guard: dark skin tone","group":1,"hexcode":"1F482-1F3FF","order":1294,"shortcodes":["guard_tone5"],"unicode":"💂🏿"}]},{"annotation":"man guard","group":1,"hexcode":"1F482-200D-2642-FE0F","order":1295,"shortcodes":["man_guard"],"tags":["guard","man"],"unicode":"💂‍♂️","skins":[{"annotation":"man guard: light skin tone","group":1,"hexcode":"1F482-1F3FB-200D-2642-FE0F","order":1297,"shortcodes":["man_guard_tone1"],"unicode":"💂🏻‍♂️"},{"annotation":"man guard: medium-light skin tone","group":1,"hexcode":"1F482-1F3FC-200D-2642-FE0F","order":1299,"shortcodes":["man_guard_tone2"],"unicode":"💂🏼‍♂️"},{"annotation":"man guard: medium skin tone","group":1,"hexcode":"1F482-1F3FD-200D-2642-FE0F","order":1301,"shortcodes":["man_guard_tone3"],"unicode":"💂🏽‍♂️"},{"annotation":"man guard: medium-dark skin tone","group":1,"hexcode":"1F482-1F3FE-200D-2642-FE0F","order":1303,"shortcodes":["man_guard_tone4"],"unicode":"💂🏾‍♂️"},{"annotation":"man guard: dark skin tone","group":1,"hexcode":"1F482-1F3FF-200D-2642-FE0F","order":1305,"shortcodes":["man_guard_tone5"],"unicode":"💂🏿‍♂️"}]},{"annotation":"woman guard","group":1,"hexcode":"1F482-200D-2640-FE0F","order":1307,"shortcodes":["woman_guard"],"tags":["guard","woman"],"unicode":"💂‍♀️","skins":[{"annotation":"woman guard: light skin tone","group":1,"hexcode":"1F482-1F3FB-200D-2640-FE0F","order":1309,"shortcodes":["woman_guard_tone1"],"unicode":"💂🏻‍♀️"},{"annotation":"woman guard: medium-light skin tone","group":1,"hexcode":"1F482-1F3FC-200D-2640-FE0F","order":1311,"shortcodes":["woman_guard_tone2"],"unicode":"💂🏼‍♀️"},{"annotation":"woman guard: medium skin tone","group":1,"hexcode":"1F482-1F3FD-200D-2640-FE0F","order":1313,"shortcodes":["woman_guard_tone3"],"unicode":"💂🏽‍♀️"},{"annotation":"woman guard: medium-dark skin tone","group":1,"hexcode":"1F482-1F3FE-200D-2640-FE0F","order":1315,"shortcodes":["woman_guard_tone4"],"unicode":"💂🏾‍♀️"},{"annotation":"woman guard: dark skin tone","group":1,"hexcode":"1F482-1F3FF-200D-2640-FE0F","order":1317,"shortcodes":["woman_guard_tone5"],"unicode":"💂🏿‍♀️"}]},{"annotation":"ninja","group":1,"hexcode":"1F977","order":1319,"shortcodes":["ninja"],"tags":["fighter","hidden","stealth"],"unicode":"🥷","skins":[{"annotation":"ninja","group":1,"hexcode":"1F977-1F3FB","order":1320,"shortcodes":["ninja_tone1"],"unicode":"🥷🏻"},{"annotation":"ninja","group":1,"hexcode":"1F977-1F3FC","order":1321,"shortcodes":["ninja_tone2"],"unicode":"🥷🏼"},{"annotation":"ninja","group":1,"hexcode":"1F977-1F3FD","order":1322,"shortcodes":["ninja_tone3"],"unicode":"🥷🏽"},{"annotation":"ninja","group":1,"hexcode":"1F977-1F3FE","order":1323,"shortcodes":["ninja_tone4"],"unicode":"🥷🏾"},{"annotation":"ninja","group":1,"hexcode":"1F977-1F3FF","order":1324,"shortcodes":["ninja_tone5"],"unicode":"🥷🏿"}]},{"annotation":"construction worker","group":1,"hexcode":"1F477","order":1325,"shortcodes":["construction_worker"],"tags":["construction","hat","worker"],"unicode":"👷","skins":[{"annotation":"construction worker: light skin tone","group":1,"hexcode":"1F477-1F3FB","order":1326,"shortcodes":["construction_worker_tone1"],"unicode":"👷🏻"},{"annotation":"construction worker: medium-light skin tone","group":1,"hexcode":"1F477-1F3FC","order":1327,"shortcodes":["construction_worker_tone2"],"unicode":"👷🏼"},{"annotation":"construction worker: medium skin tone","group":1,"hexcode":"1F477-1F3FD","order":1328,"shortcodes":["construction_worker_tone3"],"unicode":"👷🏽"},{"annotation":"construction worker: medium-dark skin tone","group":1,"hexcode":"1F477-1F3FE","order":1329,"shortcodes":["construction_worker_tone4"],"unicode":"👷🏾"},{"annotation":"construction worker: dark skin tone","group":1,"hexcode":"1F477-1F3FF","order":1330,"shortcodes":["construction_worker_tone5"],"unicode":"👷🏿"}]},{"annotation":"man construction worker","group":1,"hexcode":"1F477-200D-2642-FE0F","order":1331,"shortcodes":["man_construction_worker"],"tags":["construction","man","worker"],"unicode":"👷‍♂️","skins":[{"annotation":"man construction worker: light skin tone","group":1,"hexcode":"1F477-1F3FB-200D-2642-FE0F","order":1333,"shortcodes":["man_construction_worker_tone1"],"unicode":"👷🏻‍♂️"},{"annotation":"man construction worker: medium-light skin tone","group":1,"hexcode":"1F477-1F3FC-200D-2642-FE0F","order":1335,"shortcodes":["man_construction_worker_tone2"],"unicode":"👷🏼‍♂️"},{"annotation":"man construction worker: medium skin tone","group":1,"hexcode":"1F477-1F3FD-200D-2642-FE0F","order":1337,"shortcodes":["man_construction_worker_tone3"],"unicode":"👷🏽‍♂️"},{"annotation":"man construction worker: medium-dark skin tone","group":1,"hexcode":"1F477-1F3FE-200D-2642-FE0F","order":1339,"shortcodes":["man_construction_worker_tone4"],"unicode":"👷🏾‍♂️"},{"annotation":"man construction worker: dark skin tone","group":1,"hexcode":"1F477-1F3FF-200D-2642-FE0F","order":1341,"shortcodes":["man_construction_worker_tone5"],"unicode":"👷🏿‍♂️"}]},{"annotation":"woman construction worker","group":1,"hexcode":"1F477-200D-2640-FE0F","order":1343,"shortcodes":["woman_construction_worker"],"tags":["construction","woman","worker"],"unicode":"👷‍♀️","skins":[{"annotation":"woman construction worker: light skin tone","group":1,"hexcode":"1F477-1F3FB-200D-2640-FE0F","order":1345,"shortcodes":["woman_construction_worker_tone1"],"unicode":"👷🏻‍♀️"},{"annotation":"woman construction worker: medium-light skin tone","group":1,"hexcode":"1F477-1F3FC-200D-2640-FE0F","order":1347,"shortcodes":["woman_construction_worker_tone2"],"unicode":"👷🏼‍♀️"},{"annotation":"woman construction worker: medium skin tone","group":1,"hexcode":"1F477-1F3FD-200D-2640-FE0F","order":1349,"shortcodes":["woman_construction_worker_tone3"],"unicode":"👷🏽‍♀️"},{"annotation":"woman construction worker: medium-dark skin tone","group":1,"hexcode":"1F477-1F3FE-200D-2640-FE0F","order":1351,"shortcodes":["woman_construction_worker_tone4"],"unicode":"👷🏾‍♀️"},{"annotation":"woman construction worker: dark skin tone","group":1,"hexcode":"1F477-1F3FF-200D-2640-FE0F","order":1353,"shortcodes":["woman_construction_worker_tone5"],"unicode":"👷🏿‍♀️"}]},{"annotation":"prince","group":1,"hexcode":"1F934","order":1355,"shortcodes":["prince"],"tags":["prince"],"unicode":"🤴","skins":[{"annotation":"prince: light skin tone","group":1,"hexcode":"1F934-1F3FB","order":1356,"shortcodes":["prince_tone1"],"unicode":"🤴🏻"},{"annotation":"prince: medium-light skin tone","group":1,"hexcode":"1F934-1F3FC","order":1357,"shortcodes":["prince_tone2"],"unicode":"🤴🏼"},{"annotation":"prince: medium skin tone","group":1,"hexcode":"1F934-1F3FD","order":1358,"shortcodes":["prince_tone3"],"unicode":"🤴🏽"},{"annotation":"prince: medium-dark skin tone","group":1,"hexcode":"1F934-1F3FE","order":1359,"shortcodes":["prince_tone4"],"unicode":"🤴🏾"},{"annotation":"prince: dark skin tone","group":1,"hexcode":"1F934-1F3FF","order":1360,"shortcodes":["prince_tone5"],"unicode":"🤴🏿"}]},{"annotation":"princess","group":1,"hexcode":"1F478","order":1361,"shortcodes":["princess"],"tags":["fairy tale","fantasy"],"unicode":"👸","skins":[{"annotation":"princess: light skin tone","group":1,"hexcode":"1F478-1F3FB","order":1362,"shortcodes":["princess_tone1"],"unicode":"👸🏻"},{"annotation":"princess: medium-light skin tone","group":1,"hexcode":"1F478-1F3FC","order":1363,"shortcodes":["princess_tone2"],"unicode":"👸🏼"},{"annotation":"princess: medium skin tone","group":1,"hexcode":"1F478-1F3FD","order":1364,"shortcodes":["princess_tone3"],"unicode":"👸🏽"},{"annotation":"princess: medium-dark skin tone","group":1,"hexcode":"1F478-1F3FE","order":1365,"shortcodes":["princess_tone4"],"unicode":"👸🏾"},{"annotation":"princess: dark skin tone","group":1,"hexcode":"1F478-1F3FF","order":1366,"shortcodes":["princess_tone5"],"unicode":"👸🏿"}]},{"annotation":"person wearing turban","group":1,"hexcode":"1F473","order":1367,"shortcodes":["person_turban"],"tags":["turban"],"unicode":"👳","skins":[{"annotation":"person wearing turban: light skin tone","group":1,"hexcode":"1F473-1F3FB","order":1368,"shortcodes":["person_turban_tone1"],"unicode":"👳🏻"},{"annotation":"person wearing turban: medium-light skin tone","group":1,"hexcode":"1F473-1F3FC","order":1369,"shortcodes":["person_turban_tone2"],"unicode":"👳🏼"},{"annotation":"person wearing turban: medium skin tone","group":1,"hexcode":"1F473-1F3FD","order":1370,"shortcodes":["person_turban_tone3"],"unicode":"👳🏽"},{"annotation":"person wearing turban: medium-dark skin tone","group":1,"hexcode":"1F473-1F3FE","order":1371,"shortcodes":["person_turban_tone4"],"unicode":"👳🏾"},{"annotation":"person wearing turban: dark skin tone","group":1,"hexcode":"1F473-1F3FF","order":1372,"shortcodes":["person_turban_tone5"],"unicode":"👳🏿"}]},{"annotation":"man wearing turban","group":1,"hexcode":"1F473-200D-2642-FE0F","order":1373,"shortcodes":["man_turban"],"tags":["man","turban"],"unicode":"👳‍♂️","skins":[{"annotation":"man wearing turban: light skin tone","group":1,"hexcode":"1F473-1F3FB-200D-2642-FE0F","order":1375,"shortcodes":["man_turban_tone1"],"unicode":"👳🏻‍♂️"},{"annotation":"man wearing turban: medium-light skin tone","group":1,"hexcode":"1F473-1F3FC-200D-2642-FE0F","order":1377,"shortcodes":["man_turban_tone2"],"unicode":"👳🏼‍♂️"},{"annotation":"man wearing turban: medium skin tone","group":1,"hexcode":"1F473-1F3FD-200D-2642-FE0F","order":1379,"shortcodes":["man_turban_tone3"],"unicode":"👳🏽‍♂️"},{"annotation":"man wearing turban: medium-dark skin tone","group":1,"hexcode":"1F473-1F3FE-200D-2642-FE0F","order":1381,"shortcodes":["man_turban_tone4"],"unicode":"👳🏾‍♂️"},{"annotation":"man wearing turban: dark skin tone","group":1,"hexcode":"1F473-1F3FF-200D-2642-FE0F","order":1383,"shortcodes":["man_turban_tone5"],"unicode":"👳🏿‍♂️"}]},{"annotation":"woman wearing turban","group":1,"hexcode":"1F473-200D-2640-FE0F","order":1385,"shortcodes":["woman_turban"],"tags":["turban","woman"],"unicode":"👳‍♀️","skins":[{"annotation":"woman wearing turban: light skin tone","group":1,"hexcode":"1F473-1F3FB-200D-2640-FE0F","order":1387,"shortcodes":["woman_turban_tone1"],"unicode":"👳🏻‍♀️"},{"annotation":"woman wearing turban: medium-light skin tone","group":1,"hexcode":"1F473-1F3FC-200D-2640-FE0F","order":1389,"shortcodes":["woman_turban_tone2"],"unicode":"👳🏼‍♀️"},{"annotation":"woman wearing turban: medium skin tone","group":1,"hexcode":"1F473-1F3FD-200D-2640-FE0F","order":1391,"shortcodes":["woman_turban_tone3"],"unicode":"👳🏽‍♀️"},{"annotation":"woman wearing turban: medium-dark skin tone","group":1,"hexcode":"1F473-1F3FE-200D-2640-FE0F","order":1393,"shortcodes":["woman_turban_tone4"],"unicode":"👳🏾‍♀️"},{"annotation":"woman wearing turban: dark skin tone","group":1,"hexcode":"1F473-1F3FF-200D-2640-FE0F","order":1395,"shortcodes":["woman_turban_tone5"],"unicode":"👳🏿‍♀️"}]},{"annotation":"person with skullcap","group":1,"hexcode":"1F472","order":1397,"shortcodes":["man_chinese_cap"],"tags":["cap","gua pi mao","hat","person","skullcap"],"unicode":"👲","skins":[{"annotation":"person with skullcap: light skin tone","group":1,"hexcode":"1F472-1F3FB","order":1398,"shortcodes":["man_chinese_cap_tone1"],"unicode":"👲🏻"},{"annotation":"person with skullcap: medium-light skin tone","group":1,"hexcode":"1F472-1F3FC","order":1399,"shortcodes":["man_chinese_cap_tone2"],"unicode":"👲🏼"},{"annotation":"person with skullcap: medium skin tone","group":1,"hexcode":"1F472-1F3FD","order":1400,"shortcodes":["man_chinese_cap_tone3"],"unicode":"👲🏽"},{"annotation":"person with skullcap: medium-dark skin tone","group":1,"hexcode":"1F472-1F3FE","order":1401,"shortcodes":["man_chinese_cap_tone4"],"unicode":"👲🏾"},{"annotation":"person with skullcap: dark skin tone","group":1,"hexcode":"1F472-1F3FF","order":1402,"shortcodes":["man_chinese_cap_tone5"],"unicode":"👲🏿"}]},{"annotation":"woman with headscarf","group":1,"hexcode":"1F9D5","order":1403,"shortcodes":["woman_headscarf"],"tags":["headscarf","hijab","mantilla","tichel"],"unicode":"🧕","skins":[{"annotation":"woman with headscarf: light skin tone","group":1,"hexcode":"1F9D5-1F3FB","order":1404,"shortcodes":["woman_headscarf_tone1"],"unicode":"🧕🏻"},{"annotation":"woman with headscarf: medium-light skin tone","group":1,"hexcode":"1F9D5-1F3FC","order":1405,"shortcodes":["woman_headscarf_tone2"],"unicode":"🧕🏼"},{"annotation":"woman with headscarf: medium skin tone","group":1,"hexcode":"1F9D5-1F3FD","order":1406,"shortcodes":["woman_headscarf_tone3"],"unicode":"🧕🏽"},{"annotation":"woman with headscarf: medium-dark skin tone","group":1,"hexcode":"1F9D5-1F3FE","order":1407,"shortcodes":["woman_headscarf_tone4"],"unicode":"🧕🏾"},{"annotation":"woman with headscarf: dark skin tone","group":1,"hexcode":"1F9D5-1F3FF","order":1408,"shortcodes":["woman_headscarf_tone5"],"unicode":"🧕🏿"}]},{"annotation":"person in tuxedo","group":1,"hexcode":"1F935","order":1409,"shortcodes":["man_tuxedo"],"tags":["groom","person","tuxedo"],"unicode":"🤵","skins":[{"annotation":"person in tuxedo: light skin tone","group":1,"hexcode":"1F935-1F3FB","order":1410,"shortcodes":["man_tuxedo_tone1"],"unicode":"🤵🏻"},{"annotation":"person in tuxedo: medium-light skin tone","group":1,"hexcode":"1F935-1F3FC","order":1411,"shortcodes":["man_tuxedo_tone2"],"unicode":"🤵🏼"},{"annotation":"person in tuxedo: medium skin tone","group":1,"hexcode":"1F935-1F3FD","order":1412,"shortcodes":["man_tuxedo_tone3"],"unicode":"🤵🏽"},{"annotation":"person in tuxedo: medium-dark skin tone","group":1,"hexcode":"1F935-1F3FE","order":1413,"shortcodes":["man_tuxedo_tone4"],"unicode":"🤵🏾"},{"annotation":"person in tuxedo: dark skin tone","group":1,"hexcode":"1F935-1F3FF","order":1414,"shortcodes":["man_tuxedo_tone5"],"unicode":"🤵🏿"}]},{"annotation":"man in tuxedo","group":1,"hexcode":"1F935-200D-2642-FE0F","order":1415,"shortcodes":["man_in_tuxedo"],"tags":["man","tuxedo"],"unicode":"🤵‍♂️","skins":[{"annotation":"man in tuxedo: light skin tone","group":1,"hexcode":"1F935-1F3FB-200D-2642-FE0F","order":1417,"shortcodes":["man_in_tuxedo_tone1"],"unicode":"🤵🏻‍♂️"},{"annotation":"man in tuxedo: medium-light skin tone","group":1,"hexcode":"1F935-1F3FC-200D-2642-FE0F","order":1419,"shortcodes":["man_in_tuxedo_tone2"],"unicode":"🤵🏼‍♂️"},{"annotation":"man in tuxedo: medium skin tone","group":1,"hexcode":"1F935-1F3FD-200D-2642-FE0F","order":1421,"shortcodes":["man_in_tuxedo_tone3"],"unicode":"🤵🏽‍♂️"},{"annotation":"man in tuxedo: medium-dark skin tone","group":1,"hexcode":"1F935-1F3FE-200D-2642-FE0F","order":1423,"shortcodes":["man_in_tuxedo_tone4"],"unicode":"🤵🏾‍♂️"},{"annotation":"man in tuxedo: dark skin tone","group":1,"hexcode":"1F935-1F3FF-200D-2642-FE0F","order":1425,"shortcodes":["man_in_tuxedo_tone5"],"unicode":"🤵🏿‍♂️"}]},{"annotation":"woman in tuxedo","group":1,"hexcode":"1F935-200D-2640-FE0F","order":1427,"shortcodes":["woman_in_tuxedo"],"tags":["tuxedo","woman"],"unicode":"🤵‍♀️","skins":[{"annotation":"woman in tuxedo: light skin tone","group":1,"hexcode":"1F935-1F3FB-200D-2640-FE0F","order":1429,"shortcodes":["woman_in_tuxedo_tone1"],"unicode":"🤵🏻‍♀️"},{"annotation":"woman in tuxedo: medium-light skin tone","group":1,"hexcode":"1F935-1F3FC-200D-2640-FE0F","order":1431,"shortcodes":["woman_in_tuxedo_tone2"],"unicode":"🤵🏼‍♀️"},{"annotation":"woman in tuxedo: medium skin tone","group":1,"hexcode":"1F935-1F3FD-200D-2640-FE0F","order":1433,"shortcodes":["woman_in_tuxedo_tone3"],"unicode":"🤵🏽‍♀️"},{"annotation":"woman in tuxedo: medium-dark skin tone","group":1,"hexcode":"1F935-1F3FE-200D-2640-FE0F","order":1435,"shortcodes":["woman_in_tuxedo_tone4"],"unicode":"🤵🏾‍♀️"},{"annotation":"woman in tuxedo: dark skin tone","group":1,"hexcode":"1F935-1F3FF-200D-2640-FE0F","order":1437,"shortcodes":["woman_in_tuxedo_tone5"],"unicode":"🤵🏿‍♀️"}]},{"annotation":"person with veil","group":1,"hexcode":"1F470","order":1439,"shortcodes":["person_veiled_bride","bride_veil"],"tags":["bride","person","veil","wedding"],"unicode":"👰","skins":[{"annotation":"person with veil: light skin tone","group":1,"hexcode":"1F470-1F3FB","order":1440,"shortcodes":["person_veiled_bride_tone1","bride_veil_tone1"],"unicode":"👰🏻"},{"annotation":"person with veil: medium-light skin tone","group":1,"hexcode":"1F470-1F3FC","order":1441,"shortcodes":["person_veiled_bride_tone2","bride_veil_tone2"],"unicode":"👰🏼"},{"annotation":"person with veil: medium skin tone","group":1,"hexcode":"1F470-1F3FD","order":1442,"shortcodes":["person_veiled_bride_tone3","bride_veil_tone3"],"unicode":"👰🏽"},{"annotation":"person with veil: medium-dark skin tone","group":1,"hexcode":"1F470-1F3FE","order":1443,"shortcodes":["person_veiled_bride_tone4","bride_veil_tone4"],"unicode":"👰🏾"},{"annotation":"person with veil: dark skin tone","group":1,"hexcode":"1F470-1F3FF","order":1444,"shortcodes":["person_veiled_bride_tone5","bride_veil_tone5"],"unicode":"👰🏿"}]},{"annotation":"man with veil","group":1,"hexcode":"1F470-200D-2642-FE0F","order":1445,"shortcodes":["man_veiled_bride"],"tags":["man","veil"],"unicode":"👰‍♂️","skins":[{"annotation":"man with veil: light skin tone","group":1,"hexcode":"1F470-1F3FB-200D-2642-FE0F","order":1447,"shortcodes":["man_veiled_bride_tone1"],"unicode":"👰🏻‍♂️"},{"annotation":"man with veil: medium-light skin tone","group":1,"hexcode":"1F470-1F3FC-200D-2642-FE0F","order":1449,"shortcodes":["man_veiled_bride_tone2"],"unicode":"👰🏼‍♂️"},{"annotation":"man with veil: medium skin tone","group":1,"hexcode":"1F470-1F3FD-200D-2642-FE0F","order":1451,"shortcodes":["man_veiled_bride_tone3"],"unicode":"👰🏽‍♂️"},{"annotation":"man with veil: medium-dark skin tone","group":1,"hexcode":"1F470-1F3FE-200D-2642-FE0F","order":1453,"shortcodes":["man_veiled_bride_tone4"],"unicode":"👰🏾‍♂️"},{"annotation":"man with veil: dark skin tone","group":1,"hexcode":"1F470-1F3FF-200D-2642-FE0F","order":1455,"shortcodes":["man_veiled_bride_tone5"],"unicode":"👰🏿‍♂️"}]},{"annotation":"woman with veil","group":1,"hexcode":"1F470-200D-2640-FE0F","order":1457,"shortcodes":["woman_veiled_bride"],"tags":["veil","woman"],"unicode":"👰‍♀️","skins":[{"annotation":"woman with veil: light skin tone","group":1,"hexcode":"1F470-1F3FB-200D-2640-FE0F","order":1459,"shortcodes":["woman_veiled_bride_tone1"],"unicode":"👰🏻‍♀️"},{"annotation":"woman with veil: medium-light skin tone","group":1,"hexcode":"1F470-1F3FC-200D-2640-FE0F","order":1461,"shortcodes":["woman_veiled_bride_tone2"],"unicode":"👰🏼‍♀️"},{"annotation":"woman with veil: medium skin tone","group":1,"hexcode":"1F470-1F3FD-200D-2640-FE0F","order":1463,"shortcodes":["woman_veiled_bride_tone3"],"unicode":"👰🏽‍♀️"},{"annotation":"woman with veil: medium-dark skin tone","group":1,"hexcode":"1F470-1F3FE-200D-2640-FE0F","order":1465,"shortcodes":["woman_veiled_bride_tone4"],"unicode":"👰🏾‍♀️"},{"annotation":"woman with veil: dark skin tone","group":1,"hexcode":"1F470-1F3FF-200D-2640-FE0F","order":1467,"shortcodes":["woman_veiled_bride_tone5"],"unicode":"👰🏿‍♀️"}]},{"annotation":"pregnant woman","group":1,"hexcode":"1F930","order":1469,"shortcodes":["pregnant_woman"],"tags":["pregnant","woman"],"unicode":"🤰","skins":[{"annotation":"pregnant woman: light skin tone","group":1,"hexcode":"1F930-1F3FB","order":1470,"shortcodes":["pregnant_woman_tone1"],"unicode":"🤰🏻"},{"annotation":"pregnant woman: medium-light skin tone","group":1,"hexcode":"1F930-1F3FC","order":1471,"shortcodes":["pregnant_woman_tone2"],"unicode":"🤰🏼"},{"annotation":"pregnant woman: medium skin tone","group":1,"hexcode":"1F930-1F3FD","order":1472,"shortcodes":["pregnant_woman_tone3"],"unicode":"🤰🏽"},{"annotation":"pregnant woman: medium-dark skin tone","group":1,"hexcode":"1F930-1F3FE","order":1473,"shortcodes":["pregnant_woman_tone4"],"unicode":"🤰🏾"},{"annotation":"pregnant woman: dark skin tone","group":1,"hexcode":"1F930-1F3FF","order":1474,"shortcodes":["pregnant_woman_tone5"],"unicode":"🤰🏿"}]},{"annotation":"breast-feeding","group":1,"hexcode":"1F931","order":1475,"shortcodes":["breast_feeding"],"tags":["baby","breast","nursing"],"unicode":"🤱","skins":[{"annotation":"breast-feeding: light skin tone","group":1,"hexcode":"1F931-1F3FB","order":1476,"shortcodes":["breast_feeding_tone1"],"unicode":"🤱🏻"},{"annotation":"breast-feeding: medium-light skin tone","group":1,"hexcode":"1F931-1F3FC","order":1477,"shortcodes":["breast_feeding_tone2"],"unicode":"🤱🏼"},{"annotation":"breast-feeding: medium skin tone","group":1,"hexcode":"1F931-1F3FD","order":1478,"shortcodes":["breast_feeding_tone3"],"unicode":"🤱🏽"},{"annotation":"breast-feeding: medium-dark skin tone","group":1,"hexcode":"1F931-1F3FE","order":1479,"shortcodes":["breast_feeding_tone4"],"unicode":"🤱🏾"},{"annotation":"breast-feeding: dark skin tone","group":1,"hexcode":"1F931-1F3FF","order":1480,"shortcodes":["breast_feeding_tone5"],"unicode":"🤱🏿"}]},{"annotation":"woman feeding baby","group":1,"hexcode":"1F469-200D-1F37C","order":1481,"shortcodes":["woman_feeding_baby"],"tags":["baby","feeding","nursing","woman"],"unicode":"👩‍🍼","skins":[{"annotation":"woman feeding baby: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F37C","order":1482,"shortcodes":["woman_feeding_baby_tone1"],"unicode":"👩🏻‍🍼"},{"annotation":"woman feeding baby: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F37C","order":1483,"shortcodes":["woman_feeding_baby_tone2"],"unicode":"👩🏼‍🍼"},{"annotation":"woman feeding baby: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F37C","order":1484,"shortcodes":["woman_feeding_baby_tone3"],"unicode":"👩🏽‍🍼"},{"annotation":"woman feeding baby: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F37C","order":1485,"shortcodes":["woman_feeding_baby_tone4"],"unicode":"👩🏾‍🍼"},{"annotation":"woman feeding baby: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F37C","order":1486,"shortcodes":["woman_feeding_baby_tone5"],"unicode":"👩🏿‍🍼"}]},{"annotation":"man feeding baby","group":1,"hexcode":"1F468-200D-1F37C","order":1487,"shortcodes":["man_feeding_baby"],"tags":["baby","feeding","man","nursing"],"unicode":"👨‍🍼","skins":[{"annotation":"man feeding baby: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F37C","order":1488,"shortcodes":["man_feeding_baby_tone1"],"unicode":"👨🏻‍🍼"},{"annotation":"man feeding baby: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F37C","order":1489,"shortcodes":["man_feeding_baby_tone2"],"unicode":"👨🏼‍🍼"},{"annotation":"man feeding baby: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F37C","order":1490,"shortcodes":["man_feeding_baby_tone3"],"unicode":"👨🏽‍🍼"},{"annotation":"man feeding baby: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F37C","order":1491,"shortcodes":["man_feeding_baby_tone4"],"unicode":"👨🏾‍🍼"},{"annotation":"man feeding baby: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F37C","order":1492,"shortcodes":["man_feeding_baby_tone5"],"unicode":"👨🏿‍🍼"}]},{"annotation":"person feeding baby","group":1,"hexcode":"1F9D1-200D-1F37C","order":1493,"shortcodes":["person_feeding_baby"],"tags":["baby","feeding","nursing","person"],"unicode":"🧑‍🍼","skins":[{"annotation":"person feeding baby: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F37C","order":1494,"shortcodes":["person_feeding_baby_tone1"],"unicode":"🧑🏻‍🍼"},{"annotation":"person feeding baby: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F37C","order":1495,"shortcodes":["person_feeding_baby_tone2"],"unicode":"🧑🏼‍🍼"},{"annotation":"person feeding baby: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F37C","order":1496,"shortcodes":["person_feeding_baby_tone3"],"unicode":"🧑🏽‍🍼"},{"annotation":"person feeding baby: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F37C","order":1497,"shortcodes":["person_feeding_baby_tone4"],"unicode":"🧑🏾‍🍼"},{"annotation":"person feeding baby: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F37C","order":1498,"shortcodes":["person_feeding_baby_tone5"],"unicode":"🧑🏿‍🍼"}]},{"annotation":"baby angel","group":1,"hexcode":"1F47C","order":1499,"shortcodes":["baby_angel"],"tags":["angel","baby","face","fairy tale","fantasy"],"unicode":"👼","skins":[{"annotation":"baby angel: light skin tone","group":1,"hexcode":"1F47C-1F3FB","order":1500,"shortcodes":["baby_angel_tone1"],"unicode":"👼🏻"},{"annotation":"baby angel: medium-light skin tone","group":1,"hexcode":"1F47C-1F3FC","order":1501,"shortcodes":["baby_angel_tone2"],"unicode":"👼🏼"},{"annotation":"baby angel: medium skin tone","group":1,"hexcode":"1F47C-1F3FD","order":1502,"shortcodes":["baby_angel_tone3"],"unicode":"👼🏽"},{"annotation":"baby angel: medium-dark skin tone","group":1,"hexcode":"1F47C-1F3FE","order":1503,"shortcodes":["baby_angel_tone4"],"unicode":"👼🏾"},{"annotation":"baby angel: dark skin tone","group":1,"hexcode":"1F47C-1F3FF","order":1504,"shortcodes":["baby_angel_tone5"],"unicode":"👼🏿"}]},{"annotation":"Santa Claus","group":1,"hexcode":"1F385","order":1505,"shortcodes":["santa"],"tags":["celebration","christmas","claus","father","santa","santa claus"],"unicode":"🎅","skins":[{"annotation":"Santa Claus: light skin tone","group":1,"hexcode":"1F385-1F3FB","order":1506,"shortcodes":["santa_tone1"],"unicode":"🎅🏻"},{"annotation":"Santa Claus: medium-light skin tone","group":1,"hexcode":"1F385-1F3FC","order":1507,"shortcodes":["santa_tone2"],"unicode":"🎅🏼"},{"annotation":"Santa Claus: medium skin tone","group":1,"hexcode":"1F385-1F3FD","order":1508,"shortcodes":["santa_tone3"],"unicode":"🎅🏽"},{"annotation":"Santa Claus: medium-dark skin tone","group":1,"hexcode":"1F385-1F3FE","order":1509,"shortcodes":["santa_tone4"],"unicode":"🎅🏾"},{"annotation":"Santa Claus: dark skin tone","group":1,"hexcode":"1F385-1F3FF","order":1510,"shortcodes":["santa_tone5"],"unicode":"🎅🏿"}]},{"annotation":"Mrs. Claus","group":1,"hexcode":"1F936","order":1511,"shortcodes":["mrs_claus"],"tags":["celebration","christmas","claus","mother","mrs.","mrs. claus"],"unicode":"🤶","skins":[{"annotation":"Mrs. Claus: light skin tone","group":1,"hexcode":"1F936-1F3FB","order":1512,"shortcodes":["mrs_claus_tone1"],"unicode":"🤶🏻"},{"annotation":"Mrs. Claus: medium-light skin tone","group":1,"hexcode":"1F936-1F3FC","order":1513,"shortcodes":["mrs_claus_tone2"],"unicode":"🤶🏼"},{"annotation":"Mrs. Claus: medium skin tone","group":1,"hexcode":"1F936-1F3FD","order":1514,"shortcodes":["mrs_claus_tone3"],"unicode":"🤶🏽"},{"annotation":"Mrs. Claus: medium-dark skin tone","group":1,"hexcode":"1F936-1F3FE","order":1515,"shortcodes":["mrs_claus_tone4"],"unicode":"🤶🏾"},{"annotation":"Mrs. Claus: dark skin tone","group":1,"hexcode":"1F936-1F3FF","order":1516,"shortcodes":["mrs_claus_tone5"],"unicode":"🤶🏿"}]},{"annotation":"mx claus","group":1,"hexcode":"1F9D1-200D-1F384","order":1517,"shortcodes":["mx_claus"],"tags":["claus, christmas"],"unicode":"🧑‍🎄","skins":[{"annotation":"mx claus: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F384","order":1518,"shortcodes":["mx_claus_tone1"],"unicode":"🧑🏻‍🎄"},{"annotation":"mx claus: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F384","order":1519,"shortcodes":["mx_claus_tone2"],"unicode":"🧑🏼‍🎄"},{"annotation":"mx claus: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F384","order":1520,"shortcodes":["mx_claus_tone3"],"unicode":"🧑🏽‍🎄"},{"annotation":"mx claus: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F384","order":1521,"shortcodes":["mx_claus_tone4"],"unicode":"🧑🏾‍🎄"},{"annotation":"mx claus: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F384","order":1522,"shortcodes":["mx_claus_tone5"],"unicode":"🧑🏿‍🎄"}]},{"annotation":"superhero","group":1,"hexcode":"1F9B8","order":1523,"shortcodes":["hero","superhero"],"tags":["good","hero","heroine","superpower"],"unicode":"🦸","skins":[{"annotation":"superhero: light skin tone","group":1,"hexcode":"1F9B8-1F3FB","order":1524,"shortcodes":["hero_tone1","superhero_tone1"],"unicode":"🦸🏻"},{"annotation":"superhero: medium-light skin tone","group":1,"hexcode":"1F9B8-1F3FC","order":1525,"shortcodes":["hero_tone2","superhero_tone2"],"unicode":"🦸🏼"},{"annotation":"superhero: medium skin tone","group":1,"hexcode":"1F9B8-1F3FD","order":1526,"shortcodes":["hero_tone3","superhero_tone3"],"unicode":"🦸🏽"},{"annotation":"superhero: medium-dark skin tone","group":1,"hexcode":"1F9B8-1F3FE","order":1527,"shortcodes":["hero_tone4","superhero_tone4"],"unicode":"🦸🏾"},{"annotation":"superhero: dark skin tone","group":1,"hexcode":"1F9B8-1F3FF","order":1528,"shortcodes":["hero_tone5","superhero_tone5"],"unicode":"🦸🏿"}]},{"annotation":"man superhero","group":1,"hexcode":"1F9B8-200D-2642-FE0F","order":1529,"shortcodes":["man_hero"],"tags":["good","hero","man","superpower"],"unicode":"🦸‍♂️","skins":[{"annotation":"man superhero: light skin tone","group":1,"hexcode":"1F9B8-1F3FB-200D-2642-FE0F","order":1531,"shortcodes":["man_hero_tone1"],"unicode":"🦸🏻‍♂️"},{"annotation":"man superhero: medium-light skin tone","group":1,"hexcode":"1F9B8-1F3FC-200D-2642-FE0F","order":1533,"shortcodes":["man_hero_tone2"],"unicode":"🦸🏼‍♂️"},{"annotation":"man superhero: medium skin tone","group":1,"hexcode":"1F9B8-1F3FD-200D-2642-FE0F","order":1535,"shortcodes":["man_hero_tone3"],"unicode":"🦸🏽‍♂️"},{"annotation":"man superhero: medium-dark skin tone","group":1,"hexcode":"1F9B8-1F3FE-200D-2642-FE0F","order":1537,"shortcodes":["man_hero_tone4"],"unicode":"🦸🏾‍♂️"},{"annotation":"man superhero: dark skin tone","group":1,"hexcode":"1F9B8-1F3FF-200D-2642-FE0F","order":1539,"shortcodes":["man_hero_tone5"],"unicode":"🦸🏿‍♂️"}]},{"annotation":"woman superhero","group":1,"hexcode":"1F9B8-200D-2640-FE0F","order":1541,"shortcodes":["woman_hero"],"tags":["good","hero","heroine","superpower","woman"],"unicode":"🦸‍♀️","skins":[{"annotation":"woman superhero: light skin tone","group":1,"hexcode":"1F9B8-1F3FB-200D-2640-FE0F","order":1543,"shortcodes":["woman_hero_tone1"],"unicode":"🦸🏻‍♀️"},{"annotation":"woman superhero: medium-light skin tone","group":1,"hexcode":"1F9B8-1F3FC-200D-2640-FE0F","order":1545,"shortcodes":["woman_hero_tone2"],"unicode":"🦸🏼‍♀️"},{"annotation":"woman superhero: medium skin tone","group":1,"hexcode":"1F9B8-1F3FD-200D-2640-FE0F","order":1547,"shortcodes":["woman_hero_tone3"],"unicode":"🦸🏽‍♀️"},{"annotation":"woman superhero: medium-dark skin tone","group":1,"hexcode":"1F9B8-1F3FE-200D-2640-FE0F","order":1549,"shortcodes":["woman_hero_tone4"],"unicode":"🦸🏾‍♀️"},{"annotation":"woman superhero: dark skin tone","group":1,"hexcode":"1F9B8-1F3FF-200D-2640-FE0F","order":1551,"shortcodes":["woman_hero_tone5"],"unicode":"🦸🏿‍♀️"}]},{"annotation":"supervillain","group":1,"hexcode":"1F9B9","order":1553,"shortcodes":["villain","supervillain"],"tags":["criminal","evil","superpower","villain"],"unicode":"🦹","skins":[{"annotation":"supervillain: light skin tone","group":1,"hexcode":"1F9B9-1F3FB","order":1554,"shortcodes":["villain_tone1","supervillain_tone1"],"unicode":"🦹🏻"},{"annotation":"supervillain: medium-light skin tone","group":1,"hexcode":"1F9B9-1F3FC","order":1555,"shortcodes":["villain_tone2","supervillain_tone2"],"unicode":"🦹🏼"},{"annotation":"supervillain: medium skin tone","group":1,"hexcode":"1F9B9-1F3FD","order":1556,"shortcodes":["villain_tone3","supervillain_tone3"],"unicode":"🦹🏽"},{"annotation":"supervillain: medium-dark skin tone","group":1,"hexcode":"1F9B9-1F3FE","order":1557,"shortcodes":["villain_tone4","supervillain_tone4"],"unicode":"🦹🏾"},{"annotation":"supervillain: dark skin tone","group":1,"hexcode":"1F9B9-1F3FF","order":1558,"shortcodes":["villain_tone5","supervillain_tone5"],"unicode":"🦹🏿"}]},{"annotation":"man supervillain","group":1,"hexcode":"1F9B9-200D-2642-FE0F","order":1559,"shortcodes":["man_villain"],"tags":["criminal","evil","man","superpower","villain"],"unicode":"🦹‍♂️","skins":[{"annotation":"man supervillain: light skin tone","group":1,"hexcode":"1F9B9-1F3FB-200D-2642-FE0F","order":1561,"shortcodes":["man_villain_tone1"],"unicode":"🦹🏻‍♂️"},{"annotation":"man supervillain: medium-light skin tone","group":1,"hexcode":"1F9B9-1F3FC-200D-2642-FE0F","order":1563,"shortcodes":["man_villain_tone2"],"unicode":"🦹🏼‍♂️"},{"annotation":"man supervillain: medium skin tone","group":1,"hexcode":"1F9B9-1F3FD-200D-2642-FE0F","order":1565,"shortcodes":["man_villain_tone3"],"unicode":"🦹🏽‍♂️"},{"annotation":"man supervillain: medium-dark skin tone","group":1,"hexcode":"1F9B9-1F3FE-200D-2642-FE0F","order":1567,"shortcodes":["man_villain_tone4"],"unicode":"🦹🏾‍♂️"},{"annotation":"man supervillain: dark skin tone","group":1,"hexcode":"1F9B9-1F3FF-200D-2642-FE0F","order":1569,"shortcodes":["man_villain_tone5"],"unicode":"🦹🏿‍♂️"}]},{"annotation":"woman supervillain","group":1,"hexcode":"1F9B9-200D-2640-FE0F","order":1571,"shortcodes":["woman_villain"],"tags":["criminal","evil","superpower","villain","woman"],"unicode":"🦹‍♀️","skins":[{"annotation":"woman supervillain: light skin tone","group":1,"hexcode":"1F9B9-1F3FB-200D-2640-FE0F","order":1573,"shortcodes":["woman_villain_tone1"],"unicode":"🦹🏻‍♀️"},{"annotation":"woman supervillain: medium-light skin tone","group":1,"hexcode":"1F9B9-1F3FC-200D-2640-FE0F","order":1575,"shortcodes":["woman_villain_tone2"],"unicode":"🦹🏼‍♀️"},{"annotation":"woman supervillain: medium skin tone","group":1,"hexcode":"1F9B9-1F3FD-200D-2640-FE0F","order":1577,"shortcodes":["woman_villain_tone3"],"unicode":"🦹🏽‍♀️"},{"annotation":"woman supervillain: medium-dark skin tone","group":1,"hexcode":"1F9B9-1F3FE-200D-2640-FE0F","order":1579,"shortcodes":["woman_villain_tone4"],"unicode":"🦹🏾‍♀️"},{"annotation":"woman supervillain: dark skin tone","group":1,"hexcode":"1F9B9-1F3FF-200D-2640-FE0F","order":1581,"shortcodes":["woman_villain_tone5"],"unicode":"🦹🏿‍♀️"}]},{"annotation":"mage","group":1,"hexcode":"1F9D9","order":1583,"shortcodes":["mage"],"tags":["sorcerer","sorceress","witch","wizard"],"unicode":"🧙","skins":[{"annotation":"mage: light skin tone","group":1,"hexcode":"1F9D9-1F3FB","order":1584,"shortcodes":["mage_tone1"],"unicode":"🧙🏻"},{"annotation":"mage: medium-light skin tone","group":1,"hexcode":"1F9D9-1F3FC","order":1585,"shortcodes":["mage_tone2"],"unicode":"🧙🏼"},{"annotation":"mage: medium skin tone","group":1,"hexcode":"1F9D9-1F3FD","order":1586,"shortcodes":["mage_tone3"],"unicode":"🧙🏽"},{"annotation":"mage: medium-dark skin tone","group":1,"hexcode":"1F9D9-1F3FE","order":1587,"shortcodes":["mage_tone4"],"unicode":"🧙🏾"},{"annotation":"mage: dark skin tone","group":1,"hexcode":"1F9D9-1F3FF","order":1588,"shortcodes":["mage_tone5"],"unicode":"🧙🏿"}]},{"annotation":"man mage","group":1,"hexcode":"1F9D9-200D-2642-FE0F","order":1589,"shortcodes":["man_mage"],"tags":["sorcerer","wizard"],"unicode":"🧙‍♂️","emoticon":":{>","skins":[{"annotation":"man mage: light skin tone","group":1,"hexcode":"1F9D9-1F3FB-200D-2642-FE0F","order":1591,"shortcodes":["man_mage_tone1"],"unicode":"🧙🏻‍♂️"},{"annotation":"man mage: medium-light skin tone","group":1,"hexcode":"1F9D9-1F3FC-200D-2642-FE0F","order":1593,"shortcodes":["man_mage_tone2"],"unicode":"🧙🏼‍♂️"},{"annotation":"man mage: medium skin tone","group":1,"hexcode":"1F9D9-1F3FD-200D-2642-FE0F","order":1595,"shortcodes":["man_mage_tone3"],"unicode":"🧙🏽‍♂️"},{"annotation":"man mage: medium-dark skin tone","group":1,"hexcode":"1F9D9-1F3FE-200D-2642-FE0F","order":1597,"shortcodes":["man_mage_tone4"],"unicode":"🧙🏾‍♂️"},{"annotation":"man mage: dark skin tone","group":1,"hexcode":"1F9D9-1F3FF-200D-2642-FE0F","order":1599,"shortcodes":["man_mage_tone5"],"unicode":"🧙🏿‍♂️"}]},{"annotation":"woman mage","group":1,"hexcode":"1F9D9-200D-2640-FE0F","order":1601,"shortcodes":["woman_mage"],"tags":["sorceress","witch"],"unicode":"🧙‍♀️","skins":[{"annotation":"woman mage: light skin tone","group":1,"hexcode":"1F9D9-1F3FB-200D-2640-FE0F","order":1603,"shortcodes":["woman_mage_tone1"],"unicode":"🧙🏻‍♀️"},{"annotation":"woman mage: medium-light skin tone","group":1,"hexcode":"1F9D9-1F3FC-200D-2640-FE0F","order":1605,"shortcodes":["woman_mage_tone2"],"unicode":"🧙🏼‍♀️"},{"annotation":"woman mage: medium skin tone","group":1,"hexcode":"1F9D9-1F3FD-200D-2640-FE0F","order":1607,"shortcodes":["woman_mage_tone3"],"unicode":"🧙🏽‍♀️"},{"annotation":"woman mage: medium-dark skin tone","group":1,"hexcode":"1F9D9-1F3FE-200D-2640-FE0F","order":1609,"shortcodes":["woman_mage_tone4"],"unicode":"🧙🏾‍♀️"},{"annotation":"woman mage: dark skin tone","group":1,"hexcode":"1F9D9-1F3FF-200D-2640-FE0F","order":1611,"shortcodes":["woman_mage_tone5"],"unicode":"🧙🏿‍♀️"}]},{"annotation":"fairy","group":1,"hexcode":"1F9DA","order":1613,"shortcodes":["fairy"],"tags":["oberon","puck","titania"],"unicode":"🧚","skins":[{"annotation":"fairy: light skin tone","group":1,"hexcode":"1F9DA-1F3FB","order":1614,"shortcodes":["fairy_tone1"],"unicode":"🧚🏻"},{"annotation":"fairy: medium-light skin tone","group":1,"hexcode":"1F9DA-1F3FC","order":1615,"shortcodes":["fairy_tone2"],"unicode":"🧚🏼"},{"annotation":"fairy: medium skin tone","group":1,"hexcode":"1F9DA-1F3FD","order":1616,"shortcodes":["fairy_tone3"],"unicode":"🧚🏽"},{"annotation":"fairy: medium-dark skin tone","group":1,"hexcode":"1F9DA-1F3FE","order":1617,"shortcodes":["fairy_tone4"],"unicode":"🧚🏾"},{"annotation":"fairy: dark skin tone","group":1,"hexcode":"1F9DA-1F3FF","order":1618,"shortcodes":["fairy_tone5"],"unicode":"🧚🏿"}]},{"annotation":"man fairy","group":1,"hexcode":"1F9DA-200D-2642-FE0F","order":1619,"shortcodes":["man_fairy"],"tags":["oberon","puck"],"unicode":"🧚‍♂️","skins":[{"annotation":"man fairy: light skin tone","group":1,"hexcode":"1F9DA-1F3FB-200D-2642-FE0F","order":1621,"shortcodes":["man_fairy_tone1"],"unicode":"🧚🏻‍♂️"},{"annotation":"man fairy: medium-light skin tone","group":1,"hexcode":"1F9DA-1F3FC-200D-2642-FE0F","order":1623,"shortcodes":["man_fairy_tone2"],"unicode":"🧚🏼‍♂️"},{"annotation":"man fairy: medium skin tone","group":1,"hexcode":"1F9DA-1F3FD-200D-2642-FE0F","order":1625,"shortcodes":["man_fairy_tone3"],"unicode":"🧚🏽‍♂️"},{"annotation":"man fairy: medium-dark skin tone","group":1,"hexcode":"1F9DA-1F3FE-200D-2642-FE0F","order":1627,"shortcodes":["man_fairy_tone4"],"unicode":"🧚🏾‍♂️"},{"annotation":"man fairy: dark skin tone","group":1,"hexcode":"1F9DA-1F3FF-200D-2642-FE0F","order":1629,"shortcodes":["man_fairy_tone5"],"unicode":"🧚🏿‍♂️"}]},{"annotation":"woman fairy","group":1,"hexcode":"1F9DA-200D-2640-FE0F","order":1631,"shortcodes":["woman_fairy"],"tags":["titania"],"unicode":"🧚‍♀️","skins":[{"annotation":"woman fairy: light skin tone","group":1,"hexcode":"1F9DA-1F3FB-200D-2640-FE0F","order":1633,"shortcodes":["woman_fairy_tone1"],"unicode":"🧚🏻‍♀️"},{"annotation":"woman fairy: medium-light skin tone","group":1,"hexcode":"1F9DA-1F3FC-200D-2640-FE0F","order":1635,"shortcodes":["woman_fairy_tone2"],"unicode":"🧚🏼‍♀️"},{"annotation":"woman fairy: medium skin tone","group":1,"hexcode":"1F9DA-1F3FD-200D-2640-FE0F","order":1637,"shortcodes":["woman_fairy_tone3"],"unicode":"🧚🏽‍♀️"},{"annotation":"woman fairy: medium-dark skin tone","group":1,"hexcode":"1F9DA-1F3FE-200D-2640-FE0F","order":1639,"shortcodes":["woman_fairy_tone4"],"unicode":"🧚🏾‍♀️"},{"annotation":"woman fairy: dark skin tone","group":1,"hexcode":"1F9DA-1F3FF-200D-2640-FE0F","order":1641,"shortcodes":["woman_fairy_tone5"],"unicode":"🧚🏿‍♀️"}]},{"annotation":"vampire","group":1,"hexcode":"1F9DB","order":1643,"shortcodes":["vampire"],"tags":["dracula","undead"],"unicode":"🧛","emoticon":":E","skins":[{"annotation":"vampire: light skin tone","group":1,"hexcode":"1F9DB-1F3FB","order":1644,"shortcodes":["vampire_tone1"],"unicode":"🧛🏻"},{"annotation":"vampire: medium-light skin tone","group":1,"hexcode":"1F9DB-1F3FC","order":1645,"shortcodes":["vampire_tone2"],"unicode":"🧛🏼"},{"annotation":"vampire: medium skin tone","group":1,"hexcode":"1F9DB-1F3FD","order":1646,"shortcodes":["vampire_tone3"],"unicode":"🧛🏽"},{"annotation":"vampire: medium-dark skin tone","group":1,"hexcode":"1F9DB-1F3FE","order":1647,"shortcodes":["vampire_tone4"],"unicode":"🧛🏾"},{"annotation":"vampire: dark skin tone","group":1,"hexcode":"1F9DB-1F3FF","order":1648,"shortcodes":["vampire_tone5"],"unicode":"🧛🏿"}]},{"annotation":"man vampire","group":1,"hexcode":"1F9DB-200D-2642-FE0F","order":1649,"shortcodes":["man_vampire"],"tags":["dracula","undead"],"unicode":"🧛‍♂️","skins":[{"annotation":"man vampire: light skin tone","group":1,"hexcode":"1F9DB-1F3FB-200D-2642-FE0F","order":1651,"shortcodes":["man_vampire_tone1"],"unicode":"🧛🏻‍♂️"},{"annotation":"man vampire: medium-light skin tone","group":1,"hexcode":"1F9DB-1F3FC-200D-2642-FE0F","order":1653,"shortcodes":["man_vampire_tone2"],"unicode":"🧛🏼‍♂️"},{"annotation":"man vampire: medium skin tone","group":1,"hexcode":"1F9DB-1F3FD-200D-2642-FE0F","order":1655,"shortcodes":["man_vampire_tone3"],"unicode":"🧛🏽‍♂️"},{"annotation":"man vampire: medium-dark skin tone","group":1,"hexcode":"1F9DB-1F3FE-200D-2642-FE0F","order":1657,"shortcodes":["man_vampire_tone4"],"unicode":"🧛🏾‍♂️"},{"annotation":"man vampire: dark skin tone","group":1,"hexcode":"1F9DB-1F3FF-200D-2642-FE0F","order":1659,"shortcodes":["man_vampire_tone5"],"unicode":"🧛🏿‍♂️"}]},{"annotation":"woman vampire","group":1,"hexcode":"1F9DB-200D-2640-FE0F","order":1661,"shortcodes":["woman_vampire"],"tags":["undead"],"unicode":"🧛‍♀️","skins":[{"annotation":"woman vampire: light skin tone","group":1,"hexcode":"1F9DB-1F3FB-200D-2640-FE0F","order":1663,"shortcodes":["woman_vampire_tone1"],"unicode":"🧛🏻‍♀️"},{"annotation":"woman vampire: medium-light skin tone","group":1,"hexcode":"1F9DB-1F3FC-200D-2640-FE0F","order":1665,"shortcodes":["woman_vampire_tone2"],"unicode":"🧛🏼‍♀️"},{"annotation":"woman vampire: medium skin tone","group":1,"hexcode":"1F9DB-1F3FD-200D-2640-FE0F","order":1667,"shortcodes":["woman_vampire_tone3"],"unicode":"🧛🏽‍♀️"},{"annotation":"woman vampire: medium-dark skin tone","group":1,"hexcode":"1F9DB-1F3FE-200D-2640-FE0F","order":1669,"shortcodes":["woman_vampire_tone4"],"unicode":"🧛🏾‍♀️"},{"annotation":"woman vampire: dark skin tone","group":1,"hexcode":"1F9DB-1F3FF-200D-2640-FE0F","order":1671,"shortcodes":["woman_vampire_tone5"],"unicode":"🧛🏿‍♀️"}]},{"annotation":"merperson","group":1,"hexcode":"1F9DC","order":1673,"shortcodes":["merperson"],"tags":["mermaid","merman","merwoman"],"unicode":"🧜","skins":[{"annotation":"merperson: light skin tone","group":1,"hexcode":"1F9DC-1F3FB","order":1674,"shortcodes":["merperson_tone1"],"unicode":"🧜🏻"},{"annotation":"merperson: medium-light skin tone","group":1,"hexcode":"1F9DC-1F3FC","order":1675,"shortcodes":["merperson_tone2"],"unicode":"🧜🏼"},{"annotation":"merperson: medium skin tone","group":1,"hexcode":"1F9DC-1F3FD","order":1676,"shortcodes":["merperson_tone3"],"unicode":"🧜🏽"},{"annotation":"merperson: medium-dark skin tone","group":1,"hexcode":"1F9DC-1F3FE","order":1677,"shortcodes":["merperson_tone4"],"unicode":"🧜🏾"},{"annotation":"merperson: dark skin tone","group":1,"hexcode":"1F9DC-1F3FF","order":1678,"shortcodes":["merperson_tone5"],"unicode":"🧜🏿"}]},{"annotation":"merman","group":1,"hexcode":"1F9DC-200D-2642-FE0F","order":1679,"shortcodes":["merman"],"tags":["triton"],"unicode":"🧜‍♂️","skins":[{"annotation":"merman: light skin tone","group":1,"hexcode":"1F9DC-1F3FB-200D-2642-FE0F","order":1681,"shortcodes":["merman_tone1"],"unicode":"🧜🏻‍♂️"},{"annotation":"merman: medium-light skin tone","group":1,"hexcode":"1F9DC-1F3FC-200D-2642-FE0F","order":1683,"shortcodes":["merman_tone2"],"unicode":"🧜🏼‍♂️"},{"annotation":"merman: medium skin tone","group":1,"hexcode":"1F9DC-1F3FD-200D-2642-FE0F","order":1685,"shortcodes":["merman_tone3"],"unicode":"🧜🏽‍♂️"},{"annotation":"merman: medium-dark skin tone","group":1,"hexcode":"1F9DC-1F3FE-200D-2642-FE0F","order":1687,"shortcodes":["merman_tone4"],"unicode":"🧜🏾‍♂️"},{"annotation":"merman: dark skin tone","group":1,"hexcode":"1F9DC-1F3FF-200D-2642-FE0F","order":1689,"shortcodes":["merman_tone5"],"unicode":"🧜🏿‍♂️"}]},{"annotation":"mermaid","group":1,"hexcode":"1F9DC-200D-2640-FE0F","order":1691,"shortcodes":["mermaid"],"tags":["merwoman"],"unicode":"🧜‍♀️","skins":[{"annotation":"mermaid: light skin tone","group":1,"hexcode":"1F9DC-1F3FB-200D-2640-FE0F","order":1693,"shortcodes":["mermaid_tone1"],"unicode":"🧜🏻‍♀️"},{"annotation":"mermaid: medium-light skin tone","group":1,"hexcode":"1F9DC-1F3FC-200D-2640-FE0F","order":1695,"shortcodes":["mermaid_tone2"],"unicode":"🧜🏼‍♀️"},{"annotation":"mermaid: medium skin tone","group":1,"hexcode":"1F9DC-1F3FD-200D-2640-FE0F","order":1697,"shortcodes":["mermaid_tone3"],"unicode":"🧜🏽‍♀️"},{"annotation":"mermaid: medium-dark skin tone","group":1,"hexcode":"1F9DC-1F3FE-200D-2640-FE0F","order":1699,"shortcodes":["mermaid_tone4"],"unicode":"🧜🏾‍♀️"},{"annotation":"mermaid: dark skin tone","group":1,"hexcode":"1F9DC-1F3FF-200D-2640-FE0F","order":1701,"shortcodes":["mermaid_tone5"],"unicode":"🧜🏿‍♀️"}]},{"annotation":"elf","group":1,"hexcode":"1F9DD","order":1703,"shortcodes":["elf"],"tags":["magical"],"unicode":"🧝","skins":[{"annotation":"elf: light skin tone","group":1,"hexcode":"1F9DD-1F3FB","order":1704,"shortcodes":["elf_tone1"],"unicode":"🧝🏻"},{"annotation":"elf: medium-light skin tone","group":1,"hexcode":"1F9DD-1F3FC","order":1705,"shortcodes":["elf_tone2"],"unicode":"🧝🏼"},{"annotation":"elf: medium skin tone","group":1,"hexcode":"1F9DD-1F3FD","order":1706,"shortcodes":["elf_tone3"],"unicode":"🧝🏽"},{"annotation":"elf: medium-dark skin tone","group":1,"hexcode":"1F9DD-1F3FE","order":1707,"shortcodes":["elf_tone4"],"unicode":"🧝🏾"},{"annotation":"elf: dark skin tone","group":1,"hexcode":"1F9DD-1F3FF","order":1708,"shortcodes":["elf_tone5"],"unicode":"🧝🏿"}]},{"annotation":"man elf","group":1,"hexcode":"1F9DD-200D-2642-FE0F","order":1709,"shortcodes":["man_elf"],"tags":["magical"],"unicode":"🧝‍♂️","skins":[{"annotation":"man elf: light skin tone","group":1,"hexcode":"1F9DD-1F3FB-200D-2642-FE0F","order":1711,"shortcodes":["man_elf_tone1"],"unicode":"🧝🏻‍♂️"},{"annotation":"man elf: medium-light skin tone","group":1,"hexcode":"1F9DD-1F3FC-200D-2642-FE0F","order":1713,"shortcodes":["man_elf_tone2"],"unicode":"🧝🏼‍♂️"},{"annotation":"man elf: medium skin tone","group":1,"hexcode":"1F9DD-1F3FD-200D-2642-FE0F","order":1715,"shortcodes":["man_elf_tone3"],"unicode":"🧝🏽‍♂️"},{"annotation":"man elf: medium-dark skin tone","group":1,"hexcode":"1F9DD-1F3FE-200D-2642-FE0F","order":1717,"shortcodes":["man_elf_tone4"],"unicode":"🧝🏾‍♂️"},{"annotation":"man elf: dark skin tone","group":1,"hexcode":"1F9DD-1F3FF-200D-2642-FE0F","order":1719,"shortcodes":["man_elf_tone5"],"unicode":"🧝🏿‍♂️"}]},{"annotation":"woman elf","group":1,"hexcode":"1F9DD-200D-2640-FE0F","order":1721,"shortcodes":["woman_elf"],"tags":["magical"],"unicode":"🧝‍♀️","skins":[{"annotation":"woman elf: light skin tone","group":1,"hexcode":"1F9DD-1F3FB-200D-2640-FE0F","order":1723,"shortcodes":["woman_elf_tone1"],"unicode":"🧝🏻‍♀️"},{"annotation":"woman elf: medium-light skin tone","group":1,"hexcode":"1F9DD-1F3FC-200D-2640-FE0F","order":1725,"shortcodes":["woman_elf_tone2"],"unicode":"🧝🏼‍♀️"},{"annotation":"woman elf: medium skin tone","group":1,"hexcode":"1F9DD-1F3FD-200D-2640-FE0F","order":1727,"shortcodes":["woman_elf_tone3"],"unicode":"🧝🏽‍♀️"},{"annotation":"woman elf: medium-dark skin tone","group":1,"hexcode":"1F9DD-1F3FE-200D-2640-FE0F","order":1729,"shortcodes":["woman_elf_tone4"],"unicode":"🧝🏾‍♀️"},{"annotation":"woman elf: dark skin tone","group":1,"hexcode":"1F9DD-1F3FF-200D-2640-FE0F","order":1731,"shortcodes":["woman_elf_tone5"],"unicode":"🧝🏿‍♀️"}]},{"annotation":"genie","group":1,"hexcode":"1F9DE","order":1733,"shortcodes":["genie"],"tags":["djinn"],"unicode":"🧞"},{"annotation":"man genie","group":1,"hexcode":"1F9DE-200D-2642-FE0F","order":1734,"shortcodes":["man_genie"],"tags":["djinn"],"unicode":"🧞‍♂️"},{"annotation":"woman genie","group":1,"hexcode":"1F9DE-200D-2640-FE0F","order":1736,"shortcodes":["woman_genie"],"tags":["djinn"],"unicode":"🧞‍♀️"},{"annotation":"zombie","group":1,"hexcode":"1F9DF","order":1738,"shortcodes":["zombie"],"tags":["undead","walking dead"],"unicode":"🧟","emoticon":"8#"},{"annotation":"man zombie","group":1,"hexcode":"1F9DF-200D-2642-FE0F","order":1739,"shortcodes":["man_zombie"],"tags":["undead","walking dead"],"unicode":"🧟‍♂️"},{"annotation":"woman zombie","group":1,"hexcode":"1F9DF-200D-2640-FE0F","order":1741,"shortcodes":["woman_zombie"],"tags":["undead","walking dead"],"unicode":"🧟‍♀️"},{"annotation":"person getting massage","group":1,"hexcode":"1F486","order":1743,"shortcodes":["person_getting_massage"],"tags":["face","massage","salon"],"unicode":"💆","skins":[{"annotation":"person getting massage: light skin tone","group":1,"hexcode":"1F486-1F3FB","order":1744,"shortcodes":["person_getting_massage_tone1"],"unicode":"💆🏻"},{"annotation":"person getting massage: medium-light skin tone","group":1,"hexcode":"1F486-1F3FC","order":1745,"shortcodes":["person_getting_massage_tone2"],"unicode":"💆🏼"},{"annotation":"person getting massage: medium skin tone","group":1,"hexcode":"1F486-1F3FD","order":1746,"shortcodes":["person_getting_massage_tone3"],"unicode":"💆🏽"},{"annotation":"person getting massage: medium-dark skin tone","group":1,"hexcode":"1F486-1F3FE","order":1747,"shortcodes":["person_getting_massage_tone4"],"unicode":"💆🏾"},{"annotation":"person getting massage: dark skin tone","group":1,"hexcode":"1F486-1F3FF","order":1748,"shortcodes":["person_getting_massage_tone5"],"unicode":"💆🏿"}]},{"annotation":"man getting massage","group":1,"hexcode":"1F486-200D-2642-FE0F","order":1749,"shortcodes":["man_getting_face_massage"],"tags":["face","man","massage"],"unicode":"💆‍♂️","skins":[{"annotation":"man getting massage: light skin tone","group":1,"hexcode":"1F486-1F3FB-200D-2642-FE0F","order":1751,"shortcodes":["man_getting_face_massage_tone1"],"unicode":"💆🏻‍♂️"},{"annotation":"man getting massage: medium-light skin tone","group":1,"hexcode":"1F486-1F3FC-200D-2642-FE0F","order":1753,"shortcodes":["man_getting_face_massage_tone2"],"unicode":"💆🏼‍♂️"},{"annotation":"man getting massage: medium skin tone","group":1,"hexcode":"1F486-1F3FD-200D-2642-FE0F","order":1755,"shortcodes":["man_getting_face_massage_tone3"],"unicode":"💆🏽‍♂️"},{"annotation":"man getting massage: medium-dark skin tone","group":1,"hexcode":"1F486-1F3FE-200D-2642-FE0F","order":1757,"shortcodes":["man_getting_face_massage_tone4"],"unicode":"💆🏾‍♂️"},{"annotation":"man getting massage: dark skin tone","group":1,"hexcode":"1F486-1F3FF-200D-2642-FE0F","order":1759,"shortcodes":["man_getting_face_massage_tone5"],"unicode":"💆🏿‍♂️"}]},{"annotation":"woman getting massage","group":1,"hexcode":"1F486-200D-2640-FE0F","order":1761,"shortcodes":["woman_getting_face_massage"],"tags":["face","massage","woman"],"unicode":"💆‍♀️","skins":[{"annotation":"woman getting massage: light skin tone","group":1,"hexcode":"1F486-1F3FB-200D-2640-FE0F","order":1763,"shortcodes":["woman_getting_face_massage_tone1"],"unicode":"💆🏻‍♀️"},{"annotation":"woman getting massage: medium-light skin tone","group":1,"hexcode":"1F486-1F3FC-200D-2640-FE0F","order":1765,"shortcodes":["woman_getting_face_massage_tone2"],"unicode":"💆🏼‍♀️"},{"annotation":"woman getting massage: medium skin tone","group":1,"hexcode":"1F486-1F3FD-200D-2640-FE0F","order":1767,"shortcodes":["woman_getting_face_massage_tone3"],"unicode":"💆🏽‍♀️"},{"annotation":"woman getting massage: medium-dark skin tone","group":1,"hexcode":"1F486-1F3FE-200D-2640-FE0F","order":1769,"shortcodes":["woman_getting_face_massage_tone4"],"unicode":"💆🏾‍♀️"},{"annotation":"woman getting massage: dark skin tone","group":1,"hexcode":"1F486-1F3FF-200D-2640-FE0F","order":1771,"shortcodes":["woman_getting_face_massage_tone5"],"unicode":"💆🏿‍♀️"}]},{"annotation":"person getting haircut","group":1,"hexcode":"1F487","order":1773,"shortcodes":["person_getting_haircut"],"tags":["barber","beauty","haircut","parlor"],"unicode":"💇","skins":[{"annotation":"person getting haircut: light skin tone","group":1,"hexcode":"1F487-1F3FB","order":1774,"shortcodes":["person_getting_haircut_tone1"],"unicode":"💇🏻"},{"annotation":"person getting haircut: medium-light skin tone","group":1,"hexcode":"1F487-1F3FC","order":1775,"shortcodes":["person_getting_haircut_tone2"],"unicode":"💇🏼"},{"annotation":"person getting haircut: medium skin tone","group":1,"hexcode":"1F487-1F3FD","order":1776,"shortcodes":["person_getting_haircut_tone3"],"unicode":"💇🏽"},{"annotation":"person getting haircut: medium-dark skin tone","group":1,"hexcode":"1F487-1F3FE","order":1777,"shortcodes":["person_getting_haircut_tone4"],"unicode":"💇🏾"},{"annotation":"person getting haircut: dark skin tone","group":1,"hexcode":"1F487-1F3FF","order":1778,"shortcodes":["person_getting_haircut_tone5"],"unicode":"💇🏿"}]},{"annotation":"man getting haircut","group":1,"hexcode":"1F487-200D-2642-FE0F","order":1779,"shortcodes":["man_getting_haircut"],"tags":["haircut","man"],"unicode":"💇‍♂️","skins":[{"annotation":"man getting haircut: light skin tone","group":1,"hexcode":"1F487-1F3FB-200D-2642-FE0F","order":1781,"shortcodes":["man_getting_haircut_tone1"],"unicode":"💇🏻‍♂️"},{"annotation":"man getting haircut: medium-light skin tone","group":1,"hexcode":"1F487-1F3FC-200D-2642-FE0F","order":1783,"shortcodes":["man_getting_haircut_tone2"],"unicode":"💇🏼‍♂️"},{"annotation":"man getting haircut: medium skin tone","group":1,"hexcode":"1F487-1F3FD-200D-2642-FE0F","order":1785,"shortcodes":["man_getting_haircut_tone3"],"unicode":"💇🏽‍♂️"},{"annotation":"man getting haircut: medium-dark skin tone","group":1,"hexcode":"1F487-1F3FE-200D-2642-FE0F","order":1787,"shortcodes":["man_getting_haircut_tone4"],"unicode":"💇🏾‍♂️"},{"annotation":"man getting haircut: dark skin tone","group":1,"hexcode":"1F487-1F3FF-200D-2642-FE0F","order":1789,"shortcodes":["man_getting_haircut_tone5"],"unicode":"💇🏿‍♂️"}]},{"annotation":"woman getting haircut","group":1,"hexcode":"1F487-200D-2640-FE0F","order":1791,"shortcodes":["woman_getting_haircut"],"tags":["haircut","woman"],"unicode":"💇‍♀️","skins":[{"annotation":"woman getting haircut: light skin tone","group":1,"hexcode":"1F487-1F3FB-200D-2640-FE0F","order":1793,"shortcodes":["woman_getting_haircut_tone1"],"unicode":"💇🏻‍♀️"},{"annotation":"woman getting haircut: medium-light skin tone","group":1,"hexcode":"1F487-1F3FC-200D-2640-FE0F","order":1795,"shortcodes":["woman_getting_haircut_tone2"],"unicode":"💇🏼‍♀️"},{"annotation":"woman getting haircut: medium skin tone","group":1,"hexcode":"1F487-1F3FD-200D-2640-FE0F","order":1797,"shortcodes":["woman_getting_haircut_tone3"],"unicode":"💇🏽‍♀️"},{"annotation":"woman getting haircut: medium-dark skin tone","group":1,"hexcode":"1F487-1F3FE-200D-2640-FE0F","order":1799,"shortcodes":["woman_getting_haircut_tone4"],"unicode":"💇🏾‍♀️"},{"annotation":"woman getting haircut: dark skin tone","group":1,"hexcode":"1F487-1F3FF-200D-2640-FE0F","order":1801,"shortcodes":["woman_getting_haircut_tone5"],"unicode":"💇🏿‍♀️"}]},{"annotation":"person walking","group":1,"hexcode":"1F6B6","order":1803,"shortcodes":["person_walking"],"tags":["hike","walk","walking"],"unicode":"🚶","skins":[{"annotation":"person walking: light skin tone","group":1,"hexcode":"1F6B6-1F3FB","order":1804,"shortcodes":["person_walking_tone1"],"unicode":"🚶🏻"},{"annotation":"person walking: medium-light skin tone","group":1,"hexcode":"1F6B6-1F3FC","order":1805,"shortcodes":["person_walking_tone2"],"unicode":"🚶🏼"},{"annotation":"person walking: medium skin tone","group":1,"hexcode":"1F6B6-1F3FD","order":1806,"shortcodes":["person_walking_tone3"],"unicode":"🚶🏽"},{"annotation":"person walking: medium-dark skin tone","group":1,"hexcode":"1F6B6-1F3FE","order":1807,"shortcodes":["person_walking_tone4"],"unicode":"🚶🏾"},{"annotation":"person walking: dark skin tone","group":1,"hexcode":"1F6B6-1F3FF","order":1808,"shortcodes":["person_walking_tone5"],"unicode":"🚶🏿"}]},{"annotation":"man walking","group":1,"hexcode":"1F6B6-200D-2642-FE0F","order":1809,"shortcodes":["man_walking"],"tags":["hike","man","walk"],"unicode":"🚶‍♂️","skins":[{"annotation":"man walking: light skin tone","group":1,"hexcode":"1F6B6-1F3FB-200D-2642-FE0F","order":1811,"shortcodes":["man_walking_tone1"],"unicode":"🚶🏻‍♂️"},{"annotation":"man walking: medium-light skin tone","group":1,"hexcode":"1F6B6-1F3FC-200D-2642-FE0F","order":1813,"shortcodes":["man_walking_tone2"],"unicode":"🚶🏼‍♂️"},{"annotation":"man walking: medium skin tone","group":1,"hexcode":"1F6B6-1F3FD-200D-2642-FE0F","order":1815,"shortcodes":["man_walking_tone3"],"unicode":"🚶🏽‍♂️"},{"annotation":"man walking: medium-dark skin tone","group":1,"hexcode":"1F6B6-1F3FE-200D-2642-FE0F","order":1817,"shortcodes":["man_walking_tone4"],"unicode":"🚶🏾‍♂️"},{"annotation":"man walking: dark skin tone","group":1,"hexcode":"1F6B6-1F3FF-200D-2642-FE0F","order":1819,"shortcodes":["man_walking_tone5"],"unicode":"🚶🏿‍♂️"}]},{"annotation":"woman walking","group":1,"hexcode":"1F6B6-200D-2640-FE0F","order":1821,"shortcodes":["woman_walking"],"tags":["hike","walk","woman"],"unicode":"🚶‍♀️","skins":[{"annotation":"woman walking: light skin tone","group":1,"hexcode":"1F6B6-1F3FB-200D-2640-FE0F","order":1823,"shortcodes":["woman_walking_tone1"],"unicode":"🚶🏻‍♀️"},{"annotation":"woman walking: medium-light skin tone","group":1,"hexcode":"1F6B6-1F3FC-200D-2640-FE0F","order":1825,"shortcodes":["woman_walking_tone2"],"unicode":"🚶🏼‍♀️"},{"annotation":"woman walking: medium skin tone","group":1,"hexcode":"1F6B6-1F3FD-200D-2640-FE0F","order":1827,"shortcodes":["woman_walking_tone3"],"unicode":"🚶🏽‍♀️"},{"annotation":"woman walking: medium-dark skin tone","group":1,"hexcode":"1F6B6-1F3FE-200D-2640-FE0F","order":1829,"shortcodes":["woman_walking_tone4"],"unicode":"🚶🏾‍♀️"},{"annotation":"woman walking: dark skin tone","group":1,"hexcode":"1F6B6-1F3FF-200D-2640-FE0F","order":1831,"shortcodes":["woman_walking_tone5"],"unicode":"🚶🏿‍♀️"}]},{"annotation":"person standing","group":1,"hexcode":"1F9CD","order":1833,"shortcodes":["person_standing"],"tags":["stand","standing"],"unicode":"🧍","skins":[{"annotation":"person standing: light skin tone","group":1,"hexcode":"1F9CD-1F3FB","order":1834,"shortcodes":["person_standing_tone1"],"unicode":"🧍🏻"},{"annotation":"person standing: medium-light skin tone","group":1,"hexcode":"1F9CD-1F3FC","order":1835,"shortcodes":["person_standing_tone2"],"unicode":"🧍🏼"},{"annotation":"person standing: medium skin tone","group":1,"hexcode":"1F9CD-1F3FD","order":1836,"shortcodes":["person_standing_tone3"],"unicode":"🧍🏽"},{"annotation":"person standing: medium-dark skin tone","group":1,"hexcode":"1F9CD-1F3FE","order":1837,"shortcodes":["person_standing_tone4"],"unicode":"🧍🏾"},{"annotation":"person standing: dark skin tone","group":1,"hexcode":"1F9CD-1F3FF","order":1838,"shortcodes":["person_standing_tone5"],"unicode":"🧍🏿"}]},{"annotation":"man standing","group":1,"hexcode":"1F9CD-200D-2642-FE0F","order":1839,"shortcodes":["man_standing"],"tags":["man","standing"],"unicode":"🧍‍♂️","skins":[{"annotation":"man standing: light skin tone","group":1,"hexcode":"1F9CD-1F3FB-200D-2642-FE0F","order":1841,"shortcodes":["man_standing_tone1"],"unicode":"🧍🏻‍♂️"},{"annotation":"man standing: medium-light skin tone","group":1,"hexcode":"1F9CD-1F3FC-200D-2642-FE0F","order":1843,"shortcodes":["man_standing_tone2"],"unicode":"🧍🏼‍♂️"},{"annotation":"man standing: medium skin tone","group":1,"hexcode":"1F9CD-1F3FD-200D-2642-FE0F","order":1845,"shortcodes":["man_standing_tone3"],"unicode":"🧍🏽‍♂️"},{"annotation":"man standing: medium-dark skin tone","group":1,"hexcode":"1F9CD-1F3FE-200D-2642-FE0F","order":1847,"shortcodes":["man_standing_tone4"],"unicode":"🧍🏾‍♂️"},{"annotation":"man standing: dark skin tone","group":1,"hexcode":"1F9CD-1F3FF-200D-2642-FE0F","order":1849,"shortcodes":["man_standing_tone5"],"unicode":"🧍🏿‍♂️"}]},{"annotation":"woman standing","group":1,"hexcode":"1F9CD-200D-2640-FE0F","order":1851,"shortcodes":["woman_standing"],"tags":["standing","woman"],"unicode":"🧍‍♀️","skins":[{"annotation":"woman standing: light skin tone","group":1,"hexcode":"1F9CD-1F3FB-200D-2640-FE0F","order":1853,"shortcodes":["woman_standing_tone1"],"unicode":"🧍🏻‍♀️"},{"annotation":"woman standing: medium-light skin tone","group":1,"hexcode":"1F9CD-1F3FC-200D-2640-FE0F","order":1855,"shortcodes":["woman_standing_tone2"],"unicode":"🧍🏼‍♀️"},{"annotation":"woman standing: medium skin tone","group":1,"hexcode":"1F9CD-1F3FD-200D-2640-FE0F","order":1857,"shortcodes":["woman_standing_tone3"],"unicode":"🧍🏽‍♀️"},{"annotation":"woman standing: medium-dark skin tone","group":1,"hexcode":"1F9CD-1F3FE-200D-2640-FE0F","order":1859,"shortcodes":["woman_standing_tone4"],"unicode":"🧍🏾‍♀️"},{"annotation":"woman standing: dark skin tone","group":1,"hexcode":"1F9CD-1F3FF-200D-2640-FE0F","order":1861,"shortcodes":["woman_standing_tone5"],"unicode":"🧍🏿‍♀️"}]},{"annotation":"person kneeling","group":1,"hexcode":"1F9CE","order":1863,"shortcodes":["person_kneeling"],"tags":["kneel","kneeling"],"unicode":"🧎","skins":[{"annotation":"person kneeling: light skin tone","group":1,"hexcode":"1F9CE-1F3FB","order":1864,"shortcodes":["person_kneeling_tone1"],"unicode":"🧎🏻"},{"annotation":"person kneeling: medium-light skin tone","group":1,"hexcode":"1F9CE-1F3FC","order":1865,"shortcodes":["person_kneeling_tone2"],"unicode":"🧎🏼"},{"annotation":"person kneeling: medium skin tone","group":1,"hexcode":"1F9CE-1F3FD","order":1866,"shortcodes":["person_kneeling_tone3"],"unicode":"🧎🏽"},{"annotation":"person kneeling: medium-dark skin tone","group":1,"hexcode":"1F9CE-1F3FE","order":1867,"shortcodes":["person_kneeling_tone4"],"unicode":"🧎🏾"},{"annotation":"person kneeling: dark skin tone","group":1,"hexcode":"1F9CE-1F3FF","order":1868,"shortcodes":["person_kneeling_tone5"],"unicode":"🧎🏿"}]},{"annotation":"man kneeling","group":1,"hexcode":"1F9CE-200D-2642-FE0F","order":1869,"shortcodes":["man_kneeling"],"tags":["kneeling","man"],"unicode":"🧎‍♂️","skins":[{"annotation":"man kneeling: light skin tone","group":1,"hexcode":"1F9CE-1F3FB-200D-2642-FE0F","order":1871,"shortcodes":["man_kneeling_tone1"],"unicode":"🧎🏻‍♂️"},{"annotation":"man kneeling: medium-light skin tone","group":1,"hexcode":"1F9CE-1F3FC-200D-2642-FE0F","order":1873,"shortcodes":["man_kneeling_tone2"],"unicode":"🧎🏼‍♂️"},{"annotation":"man kneeling: medium skin tone","group":1,"hexcode":"1F9CE-1F3FD-200D-2642-FE0F","order":1875,"shortcodes":["man_kneeling_tone3"],"unicode":"🧎🏽‍♂️"},{"annotation":"man kneeling: medium-dark skin tone","group":1,"hexcode":"1F9CE-1F3FE-200D-2642-FE0F","order":1877,"shortcodes":["man_kneeling_tone4"],"unicode":"🧎🏾‍♂️"},{"annotation":"man kneeling: dark skin tone","group":1,"hexcode":"1F9CE-1F3FF-200D-2642-FE0F","order":1879,"shortcodes":["man_kneeling_tone5"],"unicode":"🧎🏿‍♂️"}]},{"annotation":"woman kneeling","group":1,"hexcode":"1F9CE-200D-2640-FE0F","order":1881,"shortcodes":["woman_kneeling"],"tags":["kneeling","woman"],"unicode":"🧎‍♀️","skins":[{"annotation":"woman kneeling: light skin tone","group":1,"hexcode":"1F9CE-1F3FB-200D-2640-FE0F","order":1883,"shortcodes":["woman_kneeling_tone1"],"unicode":"🧎🏻‍♀️"},{"annotation":"woman kneeling: medium-light skin tone","group":1,"hexcode":"1F9CE-1F3FC-200D-2640-FE0F","order":1885,"shortcodes":["woman_kneeling_tone2"],"unicode":"🧎🏼‍♀️"},{"annotation":"woman kneeling: medium skin tone","group":1,"hexcode":"1F9CE-1F3FD-200D-2640-FE0F","order":1887,"shortcodes":["woman_kneeling_tone3"],"unicode":"🧎🏽‍♀️"},{"annotation":"woman kneeling: medium-dark skin tone","group":1,"hexcode":"1F9CE-1F3FE-200D-2640-FE0F","order":1889,"shortcodes":["woman_kneeling_tone4"],"unicode":"🧎🏾‍♀️"},{"annotation":"woman kneeling: dark skin tone","group":1,"hexcode":"1F9CE-1F3FF-200D-2640-FE0F","order":1891,"shortcodes":["woman_kneeling_tone5"],"unicode":"🧎🏿‍♀️"}]},{"annotation":"person with white cane","group":1,"hexcode":"1F9D1-200D-1F9AF","order":1893,"shortcodes":["person_probing_cane"],"tags":["accessibility","blind"],"unicode":"🧑‍🦯","skins":[{"annotation":"person with white cane: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F9AF","order":1894,"shortcodes":["person_probing_cane_tone1"],"unicode":"🧑🏻‍🦯"},{"annotation":"person with white cane: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F9AF","order":1895,"shortcodes":["person_probing_cane_tone2"],"unicode":"🧑🏼‍🦯"},{"annotation":"person with white cane: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F9AF","order":1896,"shortcodes":["person_probing_cane_tone3"],"unicode":"🧑🏽‍🦯"},{"annotation":"person with white cane: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F9AF","order":1897,"shortcodes":["person_probing_cane_tone4"],"unicode":"🧑🏾‍🦯"},{"annotation":"person with white cane: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F9AF","order":1898,"shortcodes":["person_probing_cane_tone5"],"unicode":"🧑🏿‍🦯"}]},{"annotation":"man with white cane","group":1,"hexcode":"1F468-200D-1F9AF","order":1899,"shortcodes":["man_probing_cane"],"tags":["accessibility","blind","man"],"unicode":"👨‍🦯","skins":[{"annotation":"man with white cane: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F9AF","order":1900,"shortcodes":["man_probing_cane_tone1"],"unicode":"👨🏻‍🦯"},{"annotation":"man with white cane: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F9AF","order":1901,"shortcodes":["man_probing_cane_tone2"],"unicode":"👨🏼‍🦯"},{"annotation":"man with white cane: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F9AF","order":1902,"shortcodes":["man_probing_cane_tone3"],"unicode":"👨🏽‍🦯"},{"annotation":"man with white cane: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F9AF","order":1903,"shortcodes":["man_probing_cane_tone4"],"unicode":"👨🏾‍🦯"},{"annotation":"man with white cane: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F9AF","order":1904,"shortcodes":["man_probing_cane_tone5"],"unicode":"👨🏿‍🦯"}]},{"annotation":"woman with white cane","group":1,"hexcode":"1F469-200D-1F9AF","order":1905,"shortcodes":["woman_probing_cane"],"tags":["accessibility","blind","woman"],"unicode":"👩‍🦯","skins":[{"annotation":"woman with white cane: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F9AF","order":1906,"shortcodes":["woman_probing_cane_tone1"],"unicode":"👩🏻‍🦯"},{"annotation":"woman with white cane: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F9AF","order":1907,"shortcodes":["woman_probing_cane_tone2"],"unicode":"👩🏼‍🦯"},{"annotation":"woman with white cane: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F9AF","order":1908,"shortcodes":["woman_probing_cane_tone3"],"unicode":"👩🏽‍🦯"},{"annotation":"woman with white cane: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F9AF","order":1909,"shortcodes":["woman_probing_cane_tone4"],"unicode":"👩🏾‍🦯"},{"annotation":"woman with white cane: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F9AF","order":1910,"shortcodes":["woman_probing_cane_tone5"],"unicode":"👩🏿‍🦯"}]},{"annotation":"person in motorized wheelchair","group":1,"hexcode":"1F9D1-200D-1F9BC","order":1911,"shortcodes":["person_motor_wheelchair"],"tags":["accessibility","wheelchair"],"unicode":"🧑‍🦼","skins":[{"annotation":"person in motorized wheelchair: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F9BC","order":1912,"shortcodes":["person_motor_wheelchair_tone1"],"unicode":"🧑🏻‍🦼"},{"annotation":"person in motorized wheelchair: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F9BC","order":1913,"shortcodes":["person_motor_wheelchair_tone2"],"unicode":"🧑🏼‍🦼"},{"annotation":"person in motorized wheelchair: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F9BC","order":1914,"shortcodes":["person_motor_wheelchair_tone3"],"unicode":"🧑🏽‍🦼"},{"annotation":"person in motorized wheelchair: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F9BC","order":1915,"shortcodes":["person_motor_wheelchair_tone4"],"unicode":"🧑🏾‍🦼"},{"annotation":"person in motorized wheelchair: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F9BC","order":1916,"shortcodes":["person_motor_wheelchair_tone5"],"unicode":"🧑🏿‍🦼"}]},{"annotation":"man in motorized wheelchair","group":1,"hexcode":"1F468-200D-1F9BC","order":1917,"shortcodes":["man_motor_wheelchair"],"tags":["accessibility","man","wheelchair"],"unicode":"👨‍🦼","skins":[{"annotation":"man in motorized wheelchair: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F9BC","order":1918,"shortcodes":["man_motor_wheelchair_tone1"],"unicode":"👨🏻‍🦼"},{"annotation":"man in motorized wheelchair: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F9BC","order":1919,"shortcodes":["man_motor_wheelchair_tone2"],"unicode":"👨🏼‍🦼"},{"annotation":"man in motorized wheelchair: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F9BC","order":1920,"shortcodes":["man_motor_wheelchair_tone3"],"unicode":"👨🏽‍🦼"},{"annotation":"man in motorized wheelchair: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F9BC","order":1921,"shortcodes":["man_motor_wheelchair_tone4"],"unicode":"👨🏾‍🦼"},{"annotation":"man in motorized wheelchair: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F9BC","order":1922,"shortcodes":["man_motor_wheelchair_tone5"],"unicode":"👨🏿‍🦼"}]},{"annotation":"woman in motorized wheelchair","group":1,"hexcode":"1F469-200D-1F9BC","order":1923,"shortcodes":["woman_motor_wheelchair"],"tags":["accessibility","wheelchair","woman"],"unicode":"👩‍🦼","skins":[{"annotation":"woman in motorized wheelchair: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F9BC","order":1924,"shortcodes":["woman_motor_wheelchair_tone1"],"unicode":"👩🏻‍🦼"},{"annotation":"woman in motorized wheelchair: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F9BC","order":1925,"shortcodes":["woman_motor_wheelchair_tone2"],"unicode":"👩🏼‍🦼"},{"annotation":"woman in motorized wheelchair: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F9BC","order":1926,"shortcodes":["woman_motor_wheelchair_tone3"],"unicode":"👩🏽‍🦼"},{"annotation":"woman in motorized wheelchair: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F9BC","order":1927,"shortcodes":["woman_motor_wheelchair_tone4"],"unicode":"👩🏾‍🦼"},{"annotation":"woman in motorized wheelchair: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F9BC","order":1928,"shortcodes":["woman_motor_wheelchair_tone5"],"unicode":"👩🏿‍🦼"}]},{"annotation":"person in manual wheelchair","group":1,"hexcode":"1F9D1-200D-1F9BD","order":1929,"shortcodes":["person_wheelchair"],"tags":["accessibility","wheelchair"],"unicode":"🧑‍🦽","skins":[{"annotation":"person in manual wheelchair: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F9BD","order":1930,"shortcodes":["person_wheelchair_tone1"],"unicode":"🧑🏻‍🦽"},{"annotation":"person in manual wheelchair: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F9BD","order":1931,"shortcodes":["person_wheelchair_tone2"],"unicode":"🧑🏼‍🦽"},{"annotation":"person in manual wheelchair: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F9BD","order":1932,"shortcodes":["person_wheelchair_tone3"],"unicode":"🧑🏽‍🦽"},{"annotation":"person in manual wheelchair: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F9BD","order":1933,"shortcodes":["person_wheelchair_tone4"],"unicode":"🧑🏾‍🦽"},{"annotation":"person in manual wheelchair: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F9BD","order":1934,"shortcodes":["person_wheelchair_tone5"],"unicode":"🧑🏿‍🦽"}]},{"annotation":"man in manual wheelchair","group":1,"hexcode":"1F468-200D-1F9BD","order":1935,"shortcodes":["man_wheelchair"],"tags":["accessibility","man","wheelchair"],"unicode":"👨‍🦽","skins":[{"annotation":"man in manual wheelchair: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F9BD","order":1936,"shortcodes":["man_wheelchair_tone1"],"unicode":"👨🏻‍🦽"},{"annotation":"man in manual wheelchair: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F9BD","order":1937,"shortcodes":["man_wheelchair_tone2"],"unicode":"👨🏼‍🦽"},{"annotation":"man in manual wheelchair: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F9BD","order":1938,"shortcodes":["man_wheelchair_tone3"],"unicode":"👨🏽‍🦽"},{"annotation":"man in manual wheelchair: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F9BD","order":1939,"shortcodes":["man_wheelchair_tone4"],"unicode":"👨🏾‍🦽"},{"annotation":"man in manual wheelchair: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F9BD","order":1940,"shortcodes":["man_wheelchair_tone5"],"unicode":"👨🏿‍🦽"}]},{"annotation":"woman in manual wheelchair","group":1,"hexcode":"1F469-200D-1F9BD","order":1941,"shortcodes":["woman_wheelchair"],"tags":["accessibility","wheelchair","woman"],"unicode":"👩‍🦽","skins":[{"annotation":"woman in manual wheelchair: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F9BD","order":1942,"shortcodes":["woman_wheelchair_tone1"],"unicode":"👩🏻‍🦽"},{"annotation":"woman in manual wheelchair: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F9BD","order":1943,"shortcodes":["woman_wheelchair_tone2"],"unicode":"👩🏼‍🦽"},{"annotation":"woman in manual wheelchair: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F9BD","order":1944,"shortcodes":["woman_wheelchair_tone3"],"unicode":"👩🏽‍🦽"},{"annotation":"woman in manual wheelchair: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F9BD","order":1945,"shortcodes":["woman_wheelchair_tone4"],"unicode":"👩🏾‍🦽"},{"annotation":"woman in manual wheelchair: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F9BD","order":1946,"shortcodes":["woman_wheelchair_tone5"],"unicode":"👩🏿‍🦽"}]},{"annotation":"person running","group":1,"hexcode":"1F3C3","order":1947,"shortcodes":["person_running"],"tags":["marathon","running"],"unicode":"🏃","skins":[{"annotation":"person running: light skin tone","group":1,"hexcode":"1F3C3-1F3FB","order":1948,"shortcodes":["person_running_tone1"],"unicode":"🏃🏻"},{"annotation":"person running: medium-light skin tone","group":1,"hexcode":"1F3C3-1F3FC","order":1949,"shortcodes":["person_running_tone2"],"unicode":"🏃🏼"},{"annotation":"person running: medium skin tone","group":1,"hexcode":"1F3C3-1F3FD","order":1950,"shortcodes":["person_running_tone3"],"unicode":"🏃🏽"},{"annotation":"person running: medium-dark skin tone","group":1,"hexcode":"1F3C3-1F3FE","order":1951,"shortcodes":["person_running_tone4"],"unicode":"🏃🏾"},{"annotation":"person running: dark skin tone","group":1,"hexcode":"1F3C3-1F3FF","order":1952,"shortcodes":["person_running_tone5"],"unicode":"🏃🏿"}]},{"annotation":"man running","group":1,"hexcode":"1F3C3-200D-2642-FE0F","order":1953,"shortcodes":["man_running"],"tags":["man","marathon","racing","running"],"unicode":"🏃‍♂️","skins":[{"annotation":"man running: light skin tone","group":1,"hexcode":"1F3C3-1F3FB-200D-2642-FE0F","order":1955,"shortcodes":["man_running_tone1"],"unicode":"🏃🏻‍♂️"},{"annotation":"man running: medium-light skin tone","group":1,"hexcode":"1F3C3-1F3FC-200D-2642-FE0F","order":1957,"shortcodes":["man_running_tone2"],"unicode":"🏃🏼‍♂️"},{"annotation":"man running: medium skin tone","group":1,"hexcode":"1F3C3-1F3FD-200D-2642-FE0F","order":1959,"shortcodes":["man_running_tone3"],"unicode":"🏃🏽‍♂️"},{"annotation":"man running: medium-dark skin tone","group":1,"hexcode":"1F3C3-1F3FE-200D-2642-FE0F","order":1961,"shortcodes":["man_running_tone4"],"unicode":"🏃🏾‍♂️"},{"annotation":"man running: dark skin tone","group":1,"hexcode":"1F3C3-1F3FF-200D-2642-FE0F","order":1963,"shortcodes":["man_running_tone5"],"unicode":"🏃🏿‍♂️"}]},{"annotation":"woman running","group":1,"hexcode":"1F3C3-200D-2640-FE0F","order":1965,"shortcodes":["woman_running"],"tags":["marathon","racing","running","woman"],"unicode":"🏃‍♀️","skins":[{"annotation":"woman running: light skin tone","group":1,"hexcode":"1F3C3-1F3FB-200D-2640-FE0F","order":1967,"shortcodes":["woman_running_tone1"],"unicode":"🏃🏻‍♀️"},{"annotation":"woman running: medium-light skin tone","group":1,"hexcode":"1F3C3-1F3FC-200D-2640-FE0F","order":1969,"shortcodes":["woman_running_tone2"],"unicode":"🏃🏼‍♀️"},{"annotation":"woman running: medium skin tone","group":1,"hexcode":"1F3C3-1F3FD-200D-2640-FE0F","order":1971,"shortcodes":["woman_running_tone3"],"unicode":"🏃🏽‍♀️"},{"annotation":"woman running: medium-dark skin tone","group":1,"hexcode":"1F3C3-1F3FE-200D-2640-FE0F","order":1973,"shortcodes":["woman_running_tone4"],"unicode":"🏃🏾‍♀️"},{"annotation":"woman running: dark skin tone","group":1,"hexcode":"1F3C3-1F3FF-200D-2640-FE0F","order":1975,"shortcodes":["woman_running_tone5"],"unicode":"🏃🏿‍♀️"}]},{"annotation":"woman dancing","group":1,"hexcode":"1F483","order":1977,"shortcodes":["dancer","woman_dancing"],"tags":["dancing","woman"],"unicode":"💃","skins":[{"annotation":"woman dancing: light skin tone","group":1,"hexcode":"1F483-1F3FB","order":1978,"shortcodes":["dancer_tone1","woman_dancing_tone1"],"unicode":"💃🏻"},{"annotation":"woman dancing: medium-light skin tone","group":1,"hexcode":"1F483-1F3FC","order":1979,"shortcodes":["dancer_tone2","woman_dancing_tone2"],"unicode":"💃🏼"},{"annotation":"woman dancing: medium skin tone","group":1,"hexcode":"1F483-1F3FD","order":1980,"shortcodes":["dancer_tone3","woman_dancing_tone3"],"unicode":"💃🏽"},{"annotation":"woman dancing: medium-dark skin tone","group":1,"hexcode":"1F483-1F3FE","order":1981,"shortcodes":["dancer_tone4","woman_dancing_tone4"],"unicode":"💃🏾"},{"annotation":"woman dancing: dark skin tone","group":1,"hexcode":"1F483-1F3FF","order":1982,"shortcodes":["dancer_tone5","woman_dancing_tone5"],"unicode":"💃🏿"}]},{"annotation":"man dancing","group":1,"hexcode":"1F57A","order":1983,"shortcodes":["man_dancing"],"tags":["dance","man"],"unicode":"🕺","skins":[{"annotation":"man dancing: light skin tone","group":1,"hexcode":"1F57A-1F3FB","order":1984,"shortcodes":["man_dancing_tone1"],"unicode":"🕺🏻"},{"annotation":"man dancing: medium-light skin tone","group":1,"hexcode":"1F57A-1F3FC","order":1985,"shortcodes":["man_dancing_tone2"],"unicode":"🕺🏼"},{"annotation":"man dancing: medium skin tone","group":1,"hexcode":"1F57A-1F3FD","order":1986,"shortcodes":["man_dancing_tone3"],"unicode":"🕺🏽"},{"annotation":"man dancing: medium-dark skin tone","group":1,"hexcode":"1F57A-1F3FE","order":1987,"shortcodes":["man_dancing_tone4"],"unicode":"🕺🏾"},{"annotation":"man dancing: dark skin tone","group":1,"hexcode":"1F57A-1F3FF","order":1988,"shortcodes":["man_dancing_tone5"],"unicode":"🕺🏿"}]},{"annotation":"person in suit levitating","group":1,"hexcode":"1F574","order":1990,"shortcodes":["levitate"],"tags":["business","person","suit"],"unicode":"🕴️","skins":[{"annotation":"person in suit levitating: light skin tone","group":1,"hexcode":"1F574-1F3FB","order":1991,"shortcodes":["levitate_tone1"],"unicode":"🕴🏻"},{"annotation":"person in suit levitating: medium-light skin tone","group":1,"hexcode":"1F574-1F3FC","order":1992,"shortcodes":["levitate_tone2"],"unicode":"🕴🏼"},{"annotation":"person in suit levitating: medium skin tone","group":1,"hexcode":"1F574-1F3FD","order":1993,"shortcodes":["levitate_tone3"],"unicode":"🕴🏽"},{"annotation":"person in suit levitating: medium-dark skin tone","group":1,"hexcode":"1F574-1F3FE","order":1994,"shortcodes":["levitate_tone4"],"unicode":"🕴🏾"},{"annotation":"person in suit levitating: dark skin tone","group":1,"hexcode":"1F574-1F3FF","order":1995,"shortcodes":["levitate_tone5"],"unicode":"🕴🏿"}]},{"annotation":"people with bunny ears","group":1,"hexcode":"1F46F","order":1996,"shortcodes":["people_bunny_ears_partying"],"tags":["bunny ear","dancer","partying"],"unicode":"👯"},{"annotation":"men with bunny ears","group":1,"hexcode":"1F46F-200D-2642-FE0F","order":1997,"shortcodes":["men_bunny_ears_partying"],"tags":["bunny ear","dancer","men","partying"],"unicode":"👯‍♂️"},{"annotation":"women with bunny ears","group":1,"hexcode":"1F46F-200D-2640-FE0F","order":1999,"shortcodes":["women_bunny_ears_partying"],"tags":["bunny ear","dancer","partying","women"],"unicode":"👯‍♀️"},{"annotation":"person in steamy room","group":1,"hexcode":"1F9D6","order":2001,"shortcodes":["person_steamy_room"],"tags":["sauna","steam room"],"unicode":"🧖","skins":[{"annotation":"person in steamy room: light skin tone","group":1,"hexcode":"1F9D6-1F3FB","order":2002,"shortcodes":["person_steamy_room_tone1"],"unicode":"🧖🏻"},{"annotation":"person in steamy room: medium-light skin tone","group":1,"hexcode":"1F9D6-1F3FC","order":2003,"shortcodes":["person_steamy_room_tone2"],"unicode":"🧖🏼"},{"annotation":"person in steamy room: medium skin tone","group":1,"hexcode":"1F9D6-1F3FD","order":2004,"shortcodes":["person_steamy_room_tone3"],"unicode":"🧖🏽"},{"annotation":"person in steamy room: medium-dark skin tone","group":1,"hexcode":"1F9D6-1F3FE","order":2005,"shortcodes":["person_steamy_room_tone4"],"unicode":"🧖🏾"},{"annotation":"person in steamy room: dark skin tone","group":1,"hexcode":"1F9D6-1F3FF","order":2006,"shortcodes":["person_steamy_room_tone5"],"unicode":"🧖🏿"}]},{"annotation":"man in steamy room","group":1,"hexcode":"1F9D6-200D-2642-FE0F","order":2007,"shortcodes":["man_steamy_room"],"tags":["sauna","steam room"],"unicode":"🧖‍♂️","skins":[{"annotation":"man in steamy room: light skin tone","group":1,"hexcode":"1F9D6-1F3FB-200D-2642-FE0F","order":2009,"shortcodes":["man_steamy_room_tone1"],"unicode":"🧖🏻‍♂️"},{"annotation":"man in steamy room: medium-light skin tone","group":1,"hexcode":"1F9D6-1F3FC-200D-2642-FE0F","order":2011,"shortcodes":["man_steamy_room_tone2"],"unicode":"🧖🏼‍♂️"},{"annotation":"man in steamy room: medium skin tone","group":1,"hexcode":"1F9D6-1F3FD-200D-2642-FE0F","order":2013,"shortcodes":["man_steamy_room_tone3"],"unicode":"🧖🏽‍♂️"},{"annotation":"man in steamy room: medium-dark skin tone","group":1,"hexcode":"1F9D6-1F3FE-200D-2642-FE0F","order":2015,"shortcodes":["man_steamy_room_tone4"],"unicode":"🧖🏾‍♂️"},{"annotation":"man in steamy room: dark skin tone","group":1,"hexcode":"1F9D6-1F3FF-200D-2642-FE0F","order":2017,"shortcodes":["man_steamy_room_tone5"],"unicode":"🧖🏿‍♂️"}]},{"annotation":"woman in steamy room","group":1,"hexcode":"1F9D6-200D-2640-FE0F","order":2019,"shortcodes":["woman_steamy_room"],"tags":["sauna","steam room"],"unicode":"🧖‍♀️","skins":[{"annotation":"woman in steamy room: light skin tone","group":1,"hexcode":"1F9D6-1F3FB-200D-2640-FE0F","order":2021,"shortcodes":["woman_steamy_room_tone1"],"unicode":"🧖🏻‍♀️"},{"annotation":"woman in steamy room: medium-light skin tone","group":1,"hexcode":"1F9D6-1F3FC-200D-2640-FE0F","order":2023,"shortcodes":["woman_steamy_room_tone2"],"unicode":"🧖🏼‍♀️"},{"annotation":"woman in steamy room: medium skin tone","group":1,"hexcode":"1F9D6-1F3FD-200D-2640-FE0F","order":2025,"shortcodes":["woman_steamy_room_tone3"],"unicode":"🧖🏽‍♀️"},{"annotation":"woman in steamy room: medium-dark skin tone","group":1,"hexcode":"1F9D6-1F3FE-200D-2640-FE0F","order":2027,"shortcodes":["woman_steamy_room_tone4"],"unicode":"🧖🏾‍♀️"},{"annotation":"woman in steamy room: dark skin tone","group":1,"hexcode":"1F9D6-1F3FF-200D-2640-FE0F","order":2029,"shortcodes":["woman_steamy_room_tone5"],"unicode":"🧖🏿‍♀️"}]},{"annotation":"person climbing","group":1,"hexcode":"1F9D7","order":2031,"shortcodes":["person_climbing"],"tags":["climber"],"unicode":"🧗","skins":[{"annotation":"person climbing: light skin tone","group":1,"hexcode":"1F9D7-1F3FB","order":2032,"shortcodes":["person_climbing_tone1"],"unicode":"🧗🏻"},{"annotation":"person climbing: medium-light skin tone","group":1,"hexcode":"1F9D7-1F3FC","order":2033,"shortcodes":["person_climbing_tone2"],"unicode":"🧗🏼"},{"annotation":"person climbing: medium skin tone","group":1,"hexcode":"1F9D7-1F3FD","order":2034,"shortcodes":["person_climbing_tone3"],"unicode":"🧗🏽"},{"annotation":"person climbing: medium-dark skin tone","group":1,"hexcode":"1F9D7-1F3FE","order":2035,"shortcodes":["person_climbing_tone4"],"unicode":"🧗🏾"},{"annotation":"person climbing: dark skin tone","group":1,"hexcode":"1F9D7-1F3FF","order":2036,"shortcodes":["person_climbing_tone5"],"unicode":"🧗🏿"}]},{"annotation":"man climbing","group":1,"hexcode":"1F9D7-200D-2642-FE0F","order":2037,"shortcodes":["man_climbing"],"tags":["climber"],"unicode":"🧗‍♂️","skins":[{"annotation":"man climbing: light skin tone","group":1,"hexcode":"1F9D7-1F3FB-200D-2642-FE0F","order":2039,"shortcodes":["man_climbing_tone1"],"unicode":"🧗🏻‍♂️"},{"annotation":"man climbing: medium-light skin tone","group":1,"hexcode":"1F9D7-1F3FC-200D-2642-FE0F","order":2041,"shortcodes":["man_climbing_tone2"],"unicode":"🧗🏼‍♂️"},{"annotation":"man climbing: medium skin tone","group":1,"hexcode":"1F9D7-1F3FD-200D-2642-FE0F","order":2043,"shortcodes":["man_climbing_tone3"],"unicode":"🧗🏽‍♂️"},{"annotation":"man climbing: medium-dark skin tone","group":1,"hexcode":"1F9D7-1F3FE-200D-2642-FE0F","order":2045,"shortcodes":["man_climbing_tone4"],"unicode":"🧗🏾‍♂️"},{"annotation":"man climbing: dark skin tone","group":1,"hexcode":"1F9D7-1F3FF-200D-2642-FE0F","order":2047,"shortcodes":["man_climbing_tone5"],"unicode":"🧗🏿‍♂️"}]},{"annotation":"woman climbing","group":1,"hexcode":"1F9D7-200D-2640-FE0F","order":2049,"shortcodes":["woman_climbing"],"tags":["climber"],"unicode":"🧗‍♀️","skins":[{"annotation":"woman climbing: light skin tone","group":1,"hexcode":"1F9D7-1F3FB-200D-2640-FE0F","order":2051,"shortcodes":["woman_climbing_tone1"],"unicode":"🧗🏻‍♀️"},{"annotation":"woman climbing: medium-light skin tone","group":1,"hexcode":"1F9D7-1F3FC-200D-2640-FE0F","order":2053,"shortcodes":["woman_climbing_tone2"],"unicode":"🧗🏼‍♀️"},{"annotation":"woman climbing: medium skin tone","group":1,"hexcode":"1F9D7-1F3FD-200D-2640-FE0F","order":2055,"shortcodes":["woman_climbing_tone3"],"unicode":"🧗🏽‍♀️"},{"annotation":"woman climbing: medium-dark skin tone","group":1,"hexcode":"1F9D7-1F3FE-200D-2640-FE0F","order":2057,"shortcodes":["woman_climbing_tone4"],"unicode":"🧗🏾‍♀️"},{"annotation":"woman climbing: dark skin tone","group":1,"hexcode":"1F9D7-1F3FF-200D-2640-FE0F","order":2059,"shortcodes":["woman_climbing_tone5"],"unicode":"🧗🏿‍♀️"}]},{"annotation":"person fencing","group":1,"hexcode":"1F93A","order":2061,"shortcodes":["person_fencing"],"tags":["fencer","fencing","sword"],"unicode":"🤺"},{"annotation":"horse racing","group":1,"hexcode":"1F3C7","order":2062,"shortcodes":["horse_racing"],"tags":["horse","jockey","racehorse","racing"],"unicode":"🏇","skins":[{"annotation":"horse racing: light skin tone","group":1,"hexcode":"1F3C7-1F3FB","order":2063,"shortcodes":["horse_racing_tone1"],"unicode":"🏇🏻"},{"annotation":"horse racing: medium-light skin tone","group":1,"hexcode":"1F3C7-1F3FC","order":2064,"shortcodes":["horse_racing_tone2"],"unicode":"🏇🏼"},{"annotation":"horse racing: medium skin tone","group":1,"hexcode":"1F3C7-1F3FD","order":2065,"shortcodes":["horse_racing_tone3"],"unicode":"🏇🏽"},{"annotation":"horse racing: medium-dark skin tone","group":1,"hexcode":"1F3C7-1F3FE","order":2066,"shortcodes":["horse_racing_tone4"],"unicode":"🏇🏾"},{"annotation":"horse racing: dark skin tone","group":1,"hexcode":"1F3C7-1F3FF","order":2067,"shortcodes":["horse_racing_tone5"],"unicode":"🏇🏿"}]},{"annotation":"skier","group":1,"hexcode":"26F7","order":2069,"shortcodes":["skier"],"tags":["ski","snow"],"unicode":"⛷️"},{"annotation":"snowboarder","group":1,"hexcode":"1F3C2","order":2070,"shortcodes":["snowboarder"],"tags":["ski","snow","snowboard"],"unicode":"🏂️","skins":[{"annotation":"snowboarder: light skin tone","group":1,"hexcode":"1F3C2-1F3FB","order":2071,"shortcodes":["snowboarder_tone1"],"unicode":"🏂🏻"},{"annotation":"snowboarder: medium-light skin tone","group":1,"hexcode":"1F3C2-1F3FC","order":2072,"shortcodes":["snowboarder_tone2"],"unicode":"🏂🏼"},{"annotation":"snowboarder: medium skin tone","group":1,"hexcode":"1F3C2-1F3FD","order":2073,"shortcodes":["snowboarder_tone3"],"unicode":"🏂🏽"},{"annotation":"snowboarder: medium-dark skin tone","group":1,"hexcode":"1F3C2-1F3FE","order":2074,"shortcodes":["snowboarder_tone4"],"unicode":"🏂🏾"},{"annotation":"snowboarder: dark skin tone","group":1,"hexcode":"1F3C2-1F3FF","order":2075,"shortcodes":["snowboarder_tone5"],"unicode":"🏂🏿"}]},{"annotation":"person golfing","group":1,"hexcode":"1F3CC","order":2077,"shortcodes":["person_golfing"],"tags":["ball","golf"],"unicode":"🏌️","skins":[{"annotation":"person golfing: light skin tone","group":1,"hexcode":"1F3CC-1F3FB","order":2078,"shortcodes":["person_golfing_tone1"],"unicode":"🏌🏻"},{"annotation":"person golfing: medium-light skin tone","group":1,"hexcode":"1F3CC-1F3FC","order":2079,"shortcodes":["person_golfing_tone2"],"unicode":"🏌🏼"},{"annotation":"person golfing: medium skin tone","group":1,"hexcode":"1F3CC-1F3FD","order":2080,"shortcodes":["person_golfing_tone3"],"unicode":"🏌🏽"},{"annotation":"person golfing: medium-dark skin tone","group":1,"hexcode":"1F3CC-1F3FE","order":2081,"shortcodes":["person_golfing_tone4"],"unicode":"🏌🏾"},{"annotation":"person golfing: dark skin tone","group":1,"hexcode":"1F3CC-1F3FF","order":2082,"shortcodes":["person_golfing_tone5"],"unicode":"🏌🏿"}]},{"annotation":"man golfing","group":1,"hexcode":"1F3CC-FE0F-200D-2642-FE0F","order":2083,"shortcodes":["man_golfing"],"tags":["golf","man"],"unicode":"🏌️‍♂️","skins":[{"annotation":"man golfing: light skin tone","group":1,"hexcode":"1F3CC-1F3FB-200D-2642-FE0F","order":2087,"shortcodes":["man_golfing_tone1"],"unicode":"🏌🏻‍♂️"},{"annotation":"man golfing: medium-light skin tone","group":1,"hexcode":"1F3CC-1F3FC-200D-2642-FE0F","order":2089,"shortcodes":["man_golfing_tone2"],"unicode":"🏌🏼‍♂️"},{"annotation":"man golfing: medium skin tone","group":1,"hexcode":"1F3CC-1F3FD-200D-2642-FE0F","order":2091,"shortcodes":["man_golfing_tone3"],"unicode":"🏌🏽‍♂️"},{"annotation":"man golfing: medium-dark skin tone","group":1,"hexcode":"1F3CC-1F3FE-200D-2642-FE0F","order":2093,"shortcodes":["man_golfing_tone4"],"unicode":"🏌🏾‍♂️"},{"annotation":"man golfing: dark skin tone","group":1,"hexcode":"1F3CC-1F3FF-200D-2642-FE0F","order":2095,"shortcodes":["man_golfing_tone5"],"unicode":"🏌🏿‍♂️"}]},{"annotation":"woman golfing","group":1,"hexcode":"1F3CC-FE0F-200D-2640-FE0F","order":2097,"shortcodes":["woman_golfing"],"tags":["golf","woman"],"unicode":"🏌️‍♀️","skins":[{"annotation":"woman golfing: light skin tone","group":1,"hexcode":"1F3CC-1F3FB-200D-2640-FE0F","order":2101,"shortcodes":["woman_golfing_tone1"],"unicode":"🏌🏻‍♀️"},{"annotation":"woman golfing: medium-light skin tone","group":1,"hexcode":"1F3CC-1F3FC-200D-2640-FE0F","order":2103,"shortcodes":["woman_golfing_tone2"],"unicode":"🏌🏼‍♀️"},{"annotation":"woman golfing: medium skin tone","group":1,"hexcode":"1F3CC-1F3FD-200D-2640-FE0F","order":2105,"shortcodes":["woman_golfing_tone3"],"unicode":"🏌🏽‍♀️"},{"annotation":"woman golfing: medium-dark skin tone","group":1,"hexcode":"1F3CC-1F3FE-200D-2640-FE0F","order":2107,"shortcodes":["woman_golfing_tone4"],"unicode":"🏌🏾‍♀️"},{"annotation":"woman golfing: dark skin tone","group":1,"hexcode":"1F3CC-1F3FF-200D-2640-FE0F","order":2109,"shortcodes":["woman_golfing_tone5"],"unicode":"🏌🏿‍♀️"}]},{"annotation":"person surfing","group":1,"hexcode":"1F3C4","order":2111,"shortcodes":["person_surfing"],"tags":["surfing"],"unicode":"🏄️","skins":[{"annotation":"person surfing: light skin tone","group":1,"hexcode":"1F3C4-1F3FB","order":2112,"shortcodes":["person_surfing_tone1"],"unicode":"🏄🏻"},{"annotation":"person surfing: medium-light skin tone","group":1,"hexcode":"1F3C4-1F3FC","order":2113,"shortcodes":["person_surfing_tone2"],"unicode":"🏄🏼"},{"annotation":"person surfing: medium skin tone","group":1,"hexcode":"1F3C4-1F3FD","order":2114,"shortcodes":["person_surfing_tone3"],"unicode":"🏄🏽"},{"annotation":"person surfing: medium-dark skin tone","group":1,"hexcode":"1F3C4-1F3FE","order":2115,"shortcodes":["person_surfing_tone4"],"unicode":"🏄🏾"},{"annotation":"person surfing: dark skin tone","group":1,"hexcode":"1F3C4-1F3FF","order":2116,"shortcodes":["person_surfing_tone5"],"unicode":"🏄🏿"}]},{"annotation":"man surfing","group":1,"hexcode":"1F3C4-200D-2642-FE0F","order":2117,"shortcodes":["man_surfing"],"tags":["man","surfing"],"unicode":"🏄‍♂️","skins":[{"annotation":"man surfing: light skin tone","group":1,"hexcode":"1F3C4-1F3FB-200D-2642-FE0F","order":2119,"shortcodes":["man_surfing_tone1"],"unicode":"🏄🏻‍♂️"},{"annotation":"man surfing: medium-light skin tone","group":1,"hexcode":"1F3C4-1F3FC-200D-2642-FE0F","order":2121,"shortcodes":["man_surfing_tone2"],"unicode":"🏄🏼‍♂️"},{"annotation":"man surfing: medium skin tone","group":1,"hexcode":"1F3C4-1F3FD-200D-2642-FE0F","order":2123,"shortcodes":["man_surfing_tone3"],"unicode":"🏄🏽‍♂️"},{"annotation":"man surfing: medium-dark skin tone","group":1,"hexcode":"1F3C4-1F3FE-200D-2642-FE0F","order":2125,"shortcodes":["man_surfing_tone4"],"unicode":"🏄🏾‍♂️"},{"annotation":"man surfing: dark skin tone","group":1,"hexcode":"1F3C4-1F3FF-200D-2642-FE0F","order":2127,"shortcodes":["man_surfing_tone5"],"unicode":"🏄🏿‍♂️"}]},{"annotation":"woman surfing","group":1,"hexcode":"1F3C4-200D-2640-FE0F","order":2129,"shortcodes":["woman_surfing"],"tags":["surfing","woman"],"unicode":"🏄‍♀️","skins":[{"annotation":"woman surfing: light skin tone","group":1,"hexcode":"1F3C4-1F3FB-200D-2640-FE0F","order":2131,"shortcodes":["woman_surfing_tone1"],"unicode":"🏄🏻‍♀️"},{"annotation":"woman surfing: medium-light skin tone","group":1,"hexcode":"1F3C4-1F3FC-200D-2640-FE0F","order":2133,"shortcodes":["woman_surfing_tone2"],"unicode":"🏄🏼‍♀️"},{"annotation":"woman surfing: medium skin tone","group":1,"hexcode":"1F3C4-1F3FD-200D-2640-FE0F","order":2135,"shortcodes":["woman_surfing_tone3"],"unicode":"🏄🏽‍♀️"},{"annotation":"woman surfing: medium-dark skin tone","group":1,"hexcode":"1F3C4-1F3FE-200D-2640-FE0F","order":2137,"shortcodes":["woman_surfing_tone4"],"unicode":"🏄🏾‍♀️"},{"annotation":"woman surfing: dark skin tone","group":1,"hexcode":"1F3C4-1F3FF-200D-2640-FE0F","order":2139,"shortcodes":["woman_surfing_tone5"],"unicode":"🏄🏿‍♀️"}]},{"annotation":"person rowing boat","group":1,"hexcode":"1F6A3","order":2141,"shortcodes":["person_rowing_boat"],"tags":["boat","rowboat"],"unicode":"🚣","skins":[{"annotation":"person rowing boat: light skin tone","group":1,"hexcode":"1F6A3-1F3FB","order":2142,"shortcodes":["person_rowing_boat_tone1"],"unicode":"🚣🏻"},{"annotation":"person rowing boat: medium-light skin tone","group":1,"hexcode":"1F6A3-1F3FC","order":2143,"shortcodes":["person_rowing_boat_tone2"],"unicode":"🚣🏼"},{"annotation":"person rowing boat: medium skin tone","group":1,"hexcode":"1F6A3-1F3FD","order":2144,"shortcodes":["person_rowing_boat_tone3"],"unicode":"🚣🏽"},{"annotation":"person rowing boat: medium-dark skin tone","group":1,"hexcode":"1F6A3-1F3FE","order":2145,"shortcodes":["person_rowing_boat_tone4"],"unicode":"🚣🏾"},{"annotation":"person rowing boat: dark skin tone","group":1,"hexcode":"1F6A3-1F3FF","order":2146,"shortcodes":["person_rowing_boat_tone5"],"unicode":"🚣🏿"}]},{"annotation":"man rowing boat","group":1,"hexcode":"1F6A3-200D-2642-FE0F","order":2147,"shortcodes":["man_rowing_boat"],"tags":["boat","man","rowboat"],"unicode":"🚣‍♂️","skins":[{"annotation":"man rowing boat: light skin tone","group":1,"hexcode":"1F6A3-1F3FB-200D-2642-FE0F","order":2149,"shortcodes":["man_rowing_boat_tone1"],"unicode":"🚣🏻‍♂️"},{"annotation":"man rowing boat: medium-light skin tone","group":1,"hexcode":"1F6A3-1F3FC-200D-2642-FE0F","order":2151,"shortcodes":["man_rowing_boat_tone2"],"unicode":"🚣🏼‍♂️"},{"annotation":"man rowing boat: medium skin tone","group":1,"hexcode":"1F6A3-1F3FD-200D-2642-FE0F","order":2153,"shortcodes":["man_rowing_boat_tone3"],"unicode":"🚣🏽‍♂️"},{"annotation":"man rowing boat: medium-dark skin tone","group":1,"hexcode":"1F6A3-1F3FE-200D-2642-FE0F","order":2155,"shortcodes":["man_rowing_boat_tone4"],"unicode":"🚣🏾‍♂️"},{"annotation":"man rowing boat: dark skin tone","group":1,"hexcode":"1F6A3-1F3FF-200D-2642-FE0F","order":2157,"shortcodes":["man_rowing_boat_tone5"],"unicode":"🚣🏿‍♂️"}]},{"annotation":"woman rowing boat","group":1,"hexcode":"1F6A3-200D-2640-FE0F","order":2159,"shortcodes":["woman_rowing_boat"],"tags":["boat","rowboat","woman"],"unicode":"🚣‍♀️","skins":[{"annotation":"woman rowing boat: light skin tone","group":1,"hexcode":"1F6A3-1F3FB-200D-2640-FE0F","order":2161,"shortcodes":["woman_rowing_boat_tone1"],"unicode":"🚣🏻‍♀️"},{"annotation":"woman rowing boat: medium-light skin tone","group":1,"hexcode":"1F6A3-1F3FC-200D-2640-FE0F","order":2163,"shortcodes":["woman_rowing_boat_tone2"],"unicode":"🚣🏼‍♀️"},{"annotation":"woman rowing boat: medium skin tone","group":1,"hexcode":"1F6A3-1F3FD-200D-2640-FE0F","order":2165,"shortcodes":["woman_rowing_boat_tone3"],"unicode":"🚣🏽‍♀️"},{"annotation":"woman rowing boat: medium-dark skin tone","group":1,"hexcode":"1F6A3-1F3FE-200D-2640-FE0F","order":2167,"shortcodes":["woman_rowing_boat_tone4"],"unicode":"🚣🏾‍♀️"},{"annotation":"woman rowing boat: dark skin tone","group":1,"hexcode":"1F6A3-1F3FF-200D-2640-FE0F","order":2169,"shortcodes":["woman_rowing_boat_tone5"],"unicode":"🚣🏿‍♀️"}]},{"annotation":"person swimming","group":1,"hexcode":"1F3CA","order":2171,"shortcodes":["person_swimming"],"tags":["swim"],"unicode":"🏊️","skins":[{"annotation":"person swimming: light skin tone","group":1,"hexcode":"1F3CA-1F3FB","order":2172,"shortcodes":["person_swimming_tone1"],"unicode":"🏊🏻"},{"annotation":"person swimming: medium-light skin tone","group":1,"hexcode":"1F3CA-1F3FC","order":2173,"shortcodes":["person_swimming_tone2"],"unicode":"🏊🏼"},{"annotation":"person swimming: medium skin tone","group":1,"hexcode":"1F3CA-1F3FD","order":2174,"shortcodes":["person_swimming_tone3"],"unicode":"🏊🏽"},{"annotation":"person swimming: medium-dark skin tone","group":1,"hexcode":"1F3CA-1F3FE","order":2175,"shortcodes":["person_swimming_tone4"],"unicode":"🏊🏾"},{"annotation":"person swimming: dark skin tone","group":1,"hexcode":"1F3CA-1F3FF","order":2176,"shortcodes":["person_swimming_tone5"],"unicode":"🏊🏿"}]},{"annotation":"man swimming","group":1,"hexcode":"1F3CA-200D-2642-FE0F","order":2177,"shortcodes":["man_swimming"],"tags":["man","swim"],"unicode":"🏊‍♂️","skins":[{"annotation":"man swimming: light skin tone","group":1,"hexcode":"1F3CA-1F3FB-200D-2642-FE0F","order":2179,"shortcodes":["man_swimming_tone1"],"unicode":"🏊🏻‍♂️"},{"annotation":"man swimming: medium-light skin tone","group":1,"hexcode":"1F3CA-1F3FC-200D-2642-FE0F","order":2181,"shortcodes":["man_swimming_tone2"],"unicode":"🏊🏼‍♂️"},{"annotation":"man swimming: medium skin tone","group":1,"hexcode":"1F3CA-1F3FD-200D-2642-FE0F","order":2183,"shortcodes":["man_swimming_tone3"],"unicode":"🏊🏽‍♂️"},{"annotation":"man swimming: medium-dark skin tone","group":1,"hexcode":"1F3CA-1F3FE-200D-2642-FE0F","order":2185,"shortcodes":["man_swimming_tone4"],"unicode":"🏊🏾‍♂️"},{"annotation":"man swimming: dark skin tone","group":1,"hexcode":"1F3CA-1F3FF-200D-2642-FE0F","order":2187,"shortcodes":["man_swimming_tone5"],"unicode":"🏊🏿‍♂️"}]},{"annotation":"woman swimming","group":1,"hexcode":"1F3CA-200D-2640-FE0F","order":2189,"shortcodes":["woman_swimming"],"tags":["swim","woman"],"unicode":"🏊‍♀️","skins":[{"annotation":"woman swimming: light skin tone","group":1,"hexcode":"1F3CA-1F3FB-200D-2640-FE0F","order":2191,"shortcodes":["woman_swimming_tone1"],"unicode":"🏊🏻‍♀️"},{"annotation":"woman swimming: medium-light skin tone","group":1,"hexcode":"1F3CA-1F3FC-200D-2640-FE0F","order":2193,"shortcodes":["woman_swimming_tone2"],"unicode":"🏊🏼‍♀️"},{"annotation":"woman swimming: medium skin tone","group":1,"hexcode":"1F3CA-1F3FD-200D-2640-FE0F","order":2195,"shortcodes":["woman_swimming_tone3"],"unicode":"🏊🏽‍♀️"},{"annotation":"woman swimming: medium-dark skin tone","group":1,"hexcode":"1F3CA-1F3FE-200D-2640-FE0F","order":2197,"shortcodes":["woman_swimming_tone4"],"unicode":"🏊🏾‍♀️"},{"annotation":"woman swimming: dark skin tone","group":1,"hexcode":"1F3CA-1F3FF-200D-2640-FE0F","order":2199,"shortcodes":["woman_swimming_tone5"],"unicode":"🏊🏿‍♀️"}]},{"annotation":"person bouncing ball","group":1,"hexcode":"26F9","order":2202,"shortcodes":["person_bouncing_ball"],"tags":["ball"],"unicode":"⛹️","skins":[{"annotation":"person bouncing ball: light skin tone","group":1,"hexcode":"26F9-1F3FB","order":2203,"shortcodes":["person_bouncing_ball_tone1"],"unicode":"⛹🏻"},{"annotation":"person bouncing ball: medium-light skin tone","group":1,"hexcode":"26F9-1F3FC","order":2204,"shortcodes":["person_bouncing_ball_tone2"],"unicode":"⛹🏼"},{"annotation":"person bouncing ball: medium skin tone","group":1,"hexcode":"26F9-1F3FD","order":2205,"shortcodes":["person_bouncing_ball_tone3"],"unicode":"⛹🏽"},{"annotation":"person bouncing ball: medium-dark skin tone","group":1,"hexcode":"26F9-1F3FE","order":2206,"shortcodes":["person_bouncing_ball_tone4"],"unicode":"⛹🏾"},{"annotation":"person bouncing ball: dark skin tone","group":1,"hexcode":"26F9-1F3FF","order":2207,"shortcodes":["person_bouncing_ball_tone5"],"unicode":"⛹🏿"}]},{"annotation":"man bouncing ball","group":1,"hexcode":"26F9-FE0F-200D-2642-FE0F","order":2208,"shortcodes":["man_bouncing_ball"],"tags":["ball","man"],"unicode":"⛹️‍♂️","skins":[{"annotation":"man bouncing ball: light skin tone","group":1,"hexcode":"26F9-1F3FB-200D-2642-FE0F","order":2212,"shortcodes":["man_bouncing_ball_tone1"],"unicode":"⛹🏻‍♂️"},{"annotation":"man bouncing ball: medium-light skin tone","group":1,"hexcode":"26F9-1F3FC-200D-2642-FE0F","order":2214,"shortcodes":["man_bouncing_ball_tone2"],"unicode":"⛹🏼‍♂️"},{"annotation":"man bouncing ball: medium skin tone","group":1,"hexcode":"26F9-1F3FD-200D-2642-FE0F","order":2216,"shortcodes":["man_bouncing_ball_tone3"],"unicode":"⛹🏽‍♂️"},{"annotation":"man bouncing ball: medium-dark skin tone","group":1,"hexcode":"26F9-1F3FE-200D-2642-FE0F","order":2218,"shortcodes":["man_bouncing_ball_tone4"],"unicode":"⛹🏾‍♂️"},{"annotation":"man bouncing ball: dark skin tone","group":1,"hexcode":"26F9-1F3FF-200D-2642-FE0F","order":2220,"shortcodes":["man_bouncing_ball_tone5"],"unicode":"⛹🏿‍♂️"}]},{"annotation":"woman bouncing ball","group":1,"hexcode":"26F9-FE0F-200D-2640-FE0F","order":2222,"shortcodes":["woman_bouncing_ball"],"tags":["ball","woman"],"unicode":"⛹️‍♀️","skins":[{"annotation":"woman bouncing ball: light skin tone","group":1,"hexcode":"26F9-1F3FB-200D-2640-FE0F","order":2226,"shortcodes":["woman_bouncing_ball_tone1"],"unicode":"⛹🏻‍♀️"},{"annotation":"woman bouncing ball: medium-light skin tone","group":1,"hexcode":"26F9-1F3FC-200D-2640-FE0F","order":2228,"shortcodes":["woman_bouncing_ball_tone2"],"unicode":"⛹🏼‍♀️"},{"annotation":"woman bouncing ball: medium skin tone","group":1,"hexcode":"26F9-1F3FD-200D-2640-FE0F","order":2230,"shortcodes":["woman_bouncing_ball_tone3"],"unicode":"⛹🏽‍♀️"},{"annotation":"woman bouncing ball: medium-dark skin tone","group":1,"hexcode":"26F9-1F3FE-200D-2640-FE0F","order":2232,"shortcodes":["woman_bouncing_ball_tone4"],"unicode":"⛹🏾‍♀️"},{"annotation":"woman bouncing ball: dark skin tone","group":1,"hexcode":"26F9-1F3FF-200D-2640-FE0F","order":2234,"shortcodes":["woman_bouncing_ball_tone5"],"unicode":"⛹🏿‍♀️"}]},{"annotation":"person lifting weights","group":1,"hexcode":"1F3CB","order":2237,"shortcodes":["person_lifting_weights"],"tags":["lifter","weight"],"unicode":"🏋️","skins":[{"annotation":"person lifting weights: light skin tone","group":1,"hexcode":"1F3CB-1F3FB","order":2238,"shortcodes":["person_lifting_weights_tone1"],"unicode":"🏋🏻"},{"annotation":"person lifting weights: medium-light skin tone","group":1,"hexcode":"1F3CB-1F3FC","order":2239,"shortcodes":["person_lifting_weights_tone2"],"unicode":"🏋🏼"},{"annotation":"person lifting weights: medium skin tone","group":1,"hexcode":"1F3CB-1F3FD","order":2240,"shortcodes":["person_lifting_weights_tone3"],"unicode":"🏋🏽"},{"annotation":"person lifting weights: medium-dark skin tone","group":1,"hexcode":"1F3CB-1F3FE","order":2241,"shortcodes":["person_lifting_weights_tone4"],"unicode":"🏋🏾"},{"annotation":"person lifting weights: dark skin tone","group":1,"hexcode":"1F3CB-1F3FF","order":2242,"shortcodes":["person_lifting_weights_tone5"],"unicode":"🏋🏿"}]},{"annotation":"man lifting weights","group":1,"hexcode":"1F3CB-FE0F-200D-2642-FE0F","order":2243,"shortcodes":["man_lifting_weights"],"tags":["man","weight lifter"],"unicode":"🏋️‍♂️","skins":[{"annotation":"man lifting weights: light skin tone","group":1,"hexcode":"1F3CB-1F3FB-200D-2642-FE0F","order":2247,"shortcodes":["man_lifting_weights_tone1"],"unicode":"🏋🏻‍♂️"},{"annotation":"man lifting weights: medium-light skin tone","group":1,"hexcode":"1F3CB-1F3FC-200D-2642-FE0F","order":2249,"shortcodes":["man_lifting_weights_tone2"],"unicode":"🏋🏼‍♂️"},{"annotation":"man lifting weights: medium skin tone","group":1,"hexcode":"1F3CB-1F3FD-200D-2642-FE0F","order":2251,"shortcodes":["man_lifting_weights_tone3"],"unicode":"🏋🏽‍♂️"},{"annotation":"man lifting weights: medium-dark skin tone","group":1,"hexcode":"1F3CB-1F3FE-200D-2642-FE0F","order":2253,"shortcodes":["man_lifting_weights_tone4"],"unicode":"🏋🏾‍♂️"},{"annotation":"man lifting weights: dark skin tone","group":1,"hexcode":"1F3CB-1F3FF-200D-2642-FE0F","order":2255,"shortcodes":["man_lifting_weights_tone5"],"unicode":"🏋🏿‍♂️"}]},{"annotation":"woman lifting weights","group":1,"hexcode":"1F3CB-FE0F-200D-2640-FE0F","order":2257,"shortcodes":["woman_lifting_weights"],"tags":["weight lifter","woman"],"unicode":"🏋️‍♀️","skins":[{"annotation":"woman lifting weights: light skin tone","group":1,"hexcode":"1F3CB-1F3FB-200D-2640-FE0F","order":2261,"shortcodes":["woman_lifting_weights_tone1"],"unicode":"🏋🏻‍♀️"},{"annotation":"woman lifting weights: medium-light skin tone","group":1,"hexcode":"1F3CB-1F3FC-200D-2640-FE0F","order":2263,"shortcodes":["woman_lifting_weights_tone2"],"unicode":"🏋🏼‍♀️"},{"annotation":"woman lifting weights: medium skin tone","group":1,"hexcode":"1F3CB-1F3FD-200D-2640-FE0F","order":2265,"shortcodes":["woman_lifting_weights_tone3"],"unicode":"🏋🏽‍♀️"},{"annotation":"woman lifting weights: medium-dark skin tone","group":1,"hexcode":"1F3CB-1F3FE-200D-2640-FE0F","order":2267,"shortcodes":["woman_lifting_weights_tone4"],"unicode":"🏋🏾‍♀️"},{"annotation":"woman lifting weights: dark skin tone","group":1,"hexcode":"1F3CB-1F3FF-200D-2640-FE0F","order":2269,"shortcodes":["woman_lifting_weights_tone5"],"unicode":"🏋🏿‍♀️"}]},{"annotation":"person biking","group":1,"hexcode":"1F6B4","order":2271,"shortcodes":["person_biking"],"tags":["bicycle","biking","cyclist"],"unicode":"🚴","skins":[{"annotation":"person biking: light skin tone","group":1,"hexcode":"1F6B4-1F3FB","order":2272,"shortcodes":["person_biking_tone1"],"unicode":"🚴🏻"},{"annotation":"person biking: medium-light skin tone","group":1,"hexcode":"1F6B4-1F3FC","order":2273,"shortcodes":["person_biking_tone2"],"unicode":"🚴🏼"},{"annotation":"person biking: medium skin tone","group":1,"hexcode":"1F6B4-1F3FD","order":2274,"shortcodes":["person_biking_tone3"],"unicode":"🚴🏽"},{"annotation":"person biking: medium-dark skin tone","group":1,"hexcode":"1F6B4-1F3FE","order":2275,"shortcodes":["person_biking_tone4"],"unicode":"🚴🏾"},{"annotation":"person biking: dark skin tone","group":1,"hexcode":"1F6B4-1F3FF","order":2276,"shortcodes":["person_biking_tone5"],"unicode":"🚴🏿"}]},{"annotation":"man biking","group":1,"hexcode":"1F6B4-200D-2642-FE0F","order":2277,"shortcodes":["man_biking"],"tags":["bicycle","biking","cyclist","man"],"unicode":"🚴‍♂️","skins":[{"annotation":"man biking: light skin tone","group":1,"hexcode":"1F6B4-1F3FB-200D-2642-FE0F","order":2279,"shortcodes":["man_biking_tone1"],"unicode":"🚴🏻‍♂️"},{"annotation":"man biking: medium-light skin tone","group":1,"hexcode":"1F6B4-1F3FC-200D-2642-FE0F","order":2281,"shortcodes":["man_biking_tone2"],"unicode":"🚴🏼‍♂️"},{"annotation":"man biking: medium skin tone","group":1,"hexcode":"1F6B4-1F3FD-200D-2642-FE0F","order":2283,"shortcodes":["man_biking_tone3"],"unicode":"🚴🏽‍♂️"},{"annotation":"man biking: medium-dark skin tone","group":1,"hexcode":"1F6B4-1F3FE-200D-2642-FE0F","order":2285,"shortcodes":["man_biking_tone4"],"unicode":"🚴🏾‍♂️"},{"annotation":"man biking: dark skin tone","group":1,"hexcode":"1F6B4-1F3FF-200D-2642-FE0F","order":2287,"shortcodes":["man_biking_tone5"],"unicode":"🚴🏿‍♂️"}]},{"annotation":"woman biking","group":1,"hexcode":"1F6B4-200D-2640-FE0F","order":2289,"shortcodes":["woman_biking"],"tags":["bicycle","biking","cyclist","woman"],"unicode":"🚴‍♀️","skins":[{"annotation":"woman biking: light skin tone","group":1,"hexcode":"1F6B4-1F3FB-200D-2640-FE0F","order":2291,"shortcodes":["woman_biking_tone1"],"unicode":"🚴🏻‍♀️"},{"annotation":"woman biking: medium-light skin tone","group":1,"hexcode":"1F6B4-1F3FC-200D-2640-FE0F","order":2293,"shortcodes":["woman_biking_tone2"],"unicode":"🚴🏼‍♀️"},{"annotation":"woman biking: medium skin tone","group":1,"hexcode":"1F6B4-1F3FD-200D-2640-FE0F","order":2295,"shortcodes":["woman_biking_tone3"],"unicode":"🚴🏽‍♀️"},{"annotation":"woman biking: medium-dark skin tone","group":1,"hexcode":"1F6B4-1F3FE-200D-2640-FE0F","order":2297,"shortcodes":["woman_biking_tone4"],"unicode":"🚴🏾‍♀️"},{"annotation":"woman biking: dark skin tone","group":1,"hexcode":"1F6B4-1F3FF-200D-2640-FE0F","order":2299,"shortcodes":["woman_biking_tone5"],"unicode":"🚴🏿‍♀️"}]},{"annotation":"person mountain biking","group":1,"hexcode":"1F6B5","order":2301,"shortcodes":["person_mountain_biking"],"tags":["bicycle","bicyclist","bike","cyclist","mountain"],"unicode":"🚵","skins":[{"annotation":"person mountain biking: light skin tone","group":1,"hexcode":"1F6B5-1F3FB","order":2302,"shortcodes":["person_mountain_biking_tone1"],"unicode":"🚵🏻"},{"annotation":"person mountain biking: medium-light skin tone","group":1,"hexcode":"1F6B5-1F3FC","order":2303,"shortcodes":["person_mountain_biking_tone2"],"unicode":"🚵🏼"},{"annotation":"person mountain biking: medium skin tone","group":1,"hexcode":"1F6B5-1F3FD","order":2304,"shortcodes":["person_mountain_biking_tone3"],"unicode":"🚵🏽"},{"annotation":"person mountain biking: medium-dark skin tone","group":1,"hexcode":"1F6B5-1F3FE","order":2305,"shortcodes":["person_mountain_biking_tone4"],"unicode":"🚵🏾"},{"annotation":"person mountain biking: dark skin tone","group":1,"hexcode":"1F6B5-1F3FF","order":2306,"shortcodes":["person_mountain_biking_tone5"],"unicode":"🚵🏿"}]},{"annotation":"man mountain biking","group":1,"hexcode":"1F6B5-200D-2642-FE0F","order":2307,"shortcodes":["man_mountain_biking"],"tags":["bicycle","bike","cyclist","man","mountain"],"unicode":"🚵‍♂️","skins":[{"annotation":"man mountain biking: light skin tone","group":1,"hexcode":"1F6B5-1F3FB-200D-2642-FE0F","order":2309,"shortcodes":["man_mountain_biking_tone1"],"unicode":"🚵🏻‍♂️"},{"annotation":"man mountain biking: medium-light skin tone","group":1,"hexcode":"1F6B5-1F3FC-200D-2642-FE0F","order":2311,"shortcodes":["man_mountain_biking_tone2"],"unicode":"🚵🏼‍♂️"},{"annotation":"man mountain biking: medium skin tone","group":1,"hexcode":"1F6B5-1F3FD-200D-2642-FE0F","order":2313,"shortcodes":["man_mountain_biking_tone3"],"unicode":"🚵🏽‍♂️"},{"annotation":"man mountain biking: medium-dark skin tone","group":1,"hexcode":"1F6B5-1F3FE-200D-2642-FE0F","order":2315,"shortcodes":["man_mountain_biking_tone4"],"unicode":"🚵🏾‍♂️"},{"annotation":"man mountain biking: dark skin tone","group":1,"hexcode":"1F6B5-1F3FF-200D-2642-FE0F","order":2317,"shortcodes":["man_mountain_biking_tone5"],"unicode":"🚵🏿‍♂️"}]},{"annotation":"woman mountain biking","group":1,"hexcode":"1F6B5-200D-2640-FE0F","order":2319,"shortcodes":["woman_mountain_biking"],"tags":["bicycle","bike","biking","cyclist","mountain","woman"],"unicode":"🚵‍♀️","skins":[{"annotation":"woman mountain biking: light skin tone","group":1,"hexcode":"1F6B5-1F3FB-200D-2640-FE0F","order":2321,"shortcodes":["woman_mountain_biking_tone1"],"unicode":"🚵🏻‍♀️"},{"annotation":"woman mountain biking: medium-light skin tone","group":1,"hexcode":"1F6B5-1F3FC-200D-2640-FE0F","order":2323,"shortcodes":["woman_mountain_biking_tone2"],"unicode":"🚵🏼‍♀️"},{"annotation":"woman mountain biking: medium skin tone","group":1,"hexcode":"1F6B5-1F3FD-200D-2640-FE0F","order":2325,"shortcodes":["woman_mountain_biking_tone3"],"unicode":"🚵🏽‍♀️"},{"annotation":"woman mountain biking: medium-dark skin tone","group":1,"hexcode":"1F6B5-1F3FE-200D-2640-FE0F","order":2327,"shortcodes":["woman_mountain_biking_tone4"],"unicode":"🚵🏾‍♀️"},{"annotation":"woman mountain biking: dark skin tone","group":1,"hexcode":"1F6B5-1F3FF-200D-2640-FE0F","order":2329,"shortcodes":["woman_mountain_biking_tone5"],"unicode":"🚵🏿‍♀️"}]},{"annotation":"person cartwheeling","group":1,"hexcode":"1F938","order":2331,"shortcodes":["person_cartwheel"],"tags":["cartwheel","gymnastics"],"unicode":"🤸","skins":[{"annotation":"person cartwheeling: light skin tone","group":1,"hexcode":"1F938-1F3FB","order":2332,"shortcodes":["person_cartwheel_tone1"],"unicode":"🤸🏻"},{"annotation":"person cartwheeling: medium-light skin tone","group":1,"hexcode":"1F938-1F3FC","order":2333,"shortcodes":["person_cartwheel_tone2"],"unicode":"🤸🏼"},{"annotation":"person cartwheeling: medium skin tone","group":1,"hexcode":"1F938-1F3FD","order":2334,"shortcodes":["person_cartwheel_tone3"],"unicode":"🤸🏽"},{"annotation":"person cartwheeling: medium-dark skin tone","group":1,"hexcode":"1F938-1F3FE","order":2335,"shortcodes":["person_cartwheel_tone4"],"unicode":"🤸🏾"},{"annotation":"person cartwheeling: dark skin tone","group":1,"hexcode":"1F938-1F3FF","order":2336,"shortcodes":["person_cartwheel_tone5"],"unicode":"🤸🏿"}]},{"annotation":"man cartwheeling","group":1,"hexcode":"1F938-200D-2642-FE0F","order":2337,"shortcodes":["man_cartwheeling"],"tags":["cartwheel","gymnastics","man"],"unicode":"🤸‍♂️","skins":[{"annotation":"man cartwheeling: light skin tone","group":1,"hexcode":"1F938-1F3FB-200D-2642-FE0F","order":2339,"shortcodes":["man_cartwheeling_tone1"],"unicode":"🤸🏻‍♂️"},{"annotation":"man cartwheeling: medium-light skin tone","group":1,"hexcode":"1F938-1F3FC-200D-2642-FE0F","order":2341,"shortcodes":["man_cartwheeling_tone2"],"unicode":"🤸🏼‍♂️"},{"annotation":"man cartwheeling: medium skin tone","group":1,"hexcode":"1F938-1F3FD-200D-2642-FE0F","order":2343,"shortcodes":["man_cartwheeling_tone3"],"unicode":"🤸🏽‍♂️"},{"annotation":"man cartwheeling: medium-dark skin tone","group":1,"hexcode":"1F938-1F3FE-200D-2642-FE0F","order":2345,"shortcodes":["man_cartwheeling_tone4"],"unicode":"🤸🏾‍♂️"},{"annotation":"man cartwheeling: dark skin tone","group":1,"hexcode":"1F938-1F3FF-200D-2642-FE0F","order":2347,"shortcodes":["man_cartwheeling_tone5"],"unicode":"🤸🏿‍♂️"}]},{"annotation":"woman cartwheeling","group":1,"hexcode":"1F938-200D-2640-FE0F","order":2349,"shortcodes":["woman_cartwheeling"],"tags":["cartwheel","gymnastics","woman"],"unicode":"🤸‍♀️","skins":[{"annotation":"woman cartwheeling: light skin tone","group":1,"hexcode":"1F938-1F3FB-200D-2640-FE0F","order":2351,"shortcodes":["woman_cartwheeling_tone1"],"unicode":"🤸🏻‍♀️"},{"annotation":"woman cartwheeling: medium-light skin tone","group":1,"hexcode":"1F938-1F3FC-200D-2640-FE0F","order":2353,"shortcodes":["woman_cartwheeling_tone2"],"unicode":"🤸🏼‍♀️"},{"annotation":"woman cartwheeling: medium skin tone","group":1,"hexcode":"1F938-1F3FD-200D-2640-FE0F","order":2355,"shortcodes":["woman_cartwheeling_tone3"],"unicode":"🤸🏽‍♀️"},{"annotation":"woman cartwheeling: medium-dark skin tone","group":1,"hexcode":"1F938-1F3FE-200D-2640-FE0F","order":2357,"shortcodes":["woman_cartwheeling_tone4"],"unicode":"🤸🏾‍♀️"},{"annotation":"woman cartwheeling: dark skin tone","group":1,"hexcode":"1F938-1F3FF-200D-2640-FE0F","order":2359,"shortcodes":["woman_cartwheeling_tone5"],"unicode":"🤸🏿‍♀️"}]},{"annotation":"people wrestling","group":1,"hexcode":"1F93C","order":2361,"shortcodes":["people_wrestling"],"tags":["wrestle","wrestler"],"unicode":"🤼"},{"annotation":"men wrestling","group":1,"hexcode":"1F93C-200D-2642-FE0F","order":2362,"shortcodes":["men_wrestling"],"tags":["men","wrestle"],"unicode":"🤼‍♂️"},{"annotation":"women wrestling","group":1,"hexcode":"1F93C-200D-2640-FE0F","order":2364,"shortcodes":["women_wrestling"],"tags":["women","wrestle"],"unicode":"🤼‍♀️"},{"annotation":"person playing water polo","group":1,"hexcode":"1F93D","order":2366,"shortcodes":["person_water_polo"],"tags":["polo","water"],"unicode":"🤽","skins":[{"annotation":"person playing water polo: light skin tone","group":1,"hexcode":"1F93D-1F3FB","order":2367,"shortcodes":["person_water_polo_tone1"],"unicode":"🤽🏻"},{"annotation":"person playing water polo: medium-light skin tone","group":1,"hexcode":"1F93D-1F3FC","order":2368,"shortcodes":["person_water_polo_tone2"],"unicode":"🤽🏼"},{"annotation":"person playing water polo: medium skin tone","group":1,"hexcode":"1F93D-1F3FD","order":2369,"shortcodes":["person_water_polo_tone3"],"unicode":"🤽🏽"},{"annotation":"person playing water polo: medium-dark skin tone","group":1,"hexcode":"1F93D-1F3FE","order":2370,"shortcodes":["person_water_polo_tone4"],"unicode":"🤽🏾"},{"annotation":"person playing water polo: dark skin tone","group":1,"hexcode":"1F93D-1F3FF","order":2371,"shortcodes":["person_water_polo_tone5"],"unicode":"🤽🏿"}]},{"annotation":"man playing water polo","group":1,"hexcode":"1F93D-200D-2642-FE0F","order":2372,"shortcodes":["man_water_polo"],"tags":["man","water polo"],"unicode":"🤽‍♂️","skins":[{"annotation":"man playing water polo: light skin tone","group":1,"hexcode":"1F93D-1F3FB-200D-2642-FE0F","order":2374,"shortcodes":["man_water_polo_tone1"],"unicode":"🤽🏻‍♂️"},{"annotation":"man playing water polo: medium-light skin tone","group":1,"hexcode":"1F93D-1F3FC-200D-2642-FE0F","order":2376,"shortcodes":["man_water_polo_tone2"],"unicode":"🤽🏼‍♂️"},{"annotation":"man playing water polo: medium skin tone","group":1,"hexcode":"1F93D-1F3FD-200D-2642-FE0F","order":2378,"shortcodes":["man_water_polo_tone3"],"unicode":"🤽🏽‍♂️"},{"annotation":"man playing water polo: medium-dark skin tone","group":1,"hexcode":"1F93D-1F3FE-200D-2642-FE0F","order":2380,"shortcodes":["man_water_polo_tone4"],"unicode":"🤽🏾‍♂️"},{"annotation":"man playing water polo: dark skin tone","group":1,"hexcode":"1F93D-1F3FF-200D-2642-FE0F","order":2382,"shortcodes":["man_water_polo_tone5"],"unicode":"🤽🏿‍♂️"}]},{"annotation":"woman playing water polo","group":1,"hexcode":"1F93D-200D-2640-FE0F","order":2384,"shortcodes":["woman_water_polo"],"tags":["water polo","woman"],"unicode":"🤽‍♀️","skins":[{"annotation":"woman playing water polo: light skin tone","group":1,"hexcode":"1F93D-1F3FB-200D-2640-FE0F","order":2386,"shortcodes":["woman_water_polo_tone1"],"unicode":"🤽🏻‍♀️"},{"annotation":"woman playing water polo: medium-light skin tone","group":1,"hexcode":"1F93D-1F3FC-200D-2640-FE0F","order":2388,"shortcodes":["woman_water_polo_tone2"],"unicode":"🤽🏼‍♀️"},{"annotation":"woman playing water polo: medium skin tone","group":1,"hexcode":"1F93D-1F3FD-200D-2640-FE0F","order":2390,"shortcodes":["woman_water_polo_tone3"],"unicode":"🤽🏽‍♀️"},{"annotation":"woman playing water polo: medium-dark skin tone","group":1,"hexcode":"1F93D-1F3FE-200D-2640-FE0F","order":2392,"shortcodes":["woman_water_polo_tone4"],"unicode":"🤽🏾‍♀️"},{"annotation":"woman playing water polo: dark skin tone","group":1,"hexcode":"1F93D-1F3FF-200D-2640-FE0F","order":2394,"shortcodes":["woman_water_polo_tone5"],"unicode":"🤽🏿‍♀️"}]},{"annotation":"person playing handball","group":1,"hexcode":"1F93E","order":2396,"shortcodes":["person_handball"],"tags":["ball","handball"],"unicode":"🤾","skins":[{"annotation":"person playing handball: light skin tone","group":1,"hexcode":"1F93E-1F3FB","order":2397,"shortcodes":["person_handball_tone1"],"unicode":"🤾🏻"},{"annotation":"person playing handball: medium-light skin tone","group":1,"hexcode":"1F93E-1F3FC","order":2398,"shortcodes":["person_handball_tone2"],"unicode":"🤾🏼"},{"annotation":"person playing handball: medium skin tone","group":1,"hexcode":"1F93E-1F3FD","order":2399,"shortcodes":["person_handball_tone3"],"unicode":"🤾🏽"},{"annotation":"person playing handball: medium-dark skin tone","group":1,"hexcode":"1F93E-1F3FE","order":2400,"shortcodes":["person_handball_tone4"],"unicode":"🤾🏾"},{"annotation":"person playing handball: dark skin tone","group":1,"hexcode":"1F93E-1F3FF","order":2401,"shortcodes":["person_handball_tone5"],"unicode":"🤾🏿"}]},{"annotation":"man playing handball","group":1,"hexcode":"1F93E-200D-2642-FE0F","order":2402,"shortcodes":["man_handball"],"tags":["handball","man"],"unicode":"🤾‍♂️","skins":[{"annotation":"man playing handball: light skin tone","group":1,"hexcode":"1F93E-1F3FB-200D-2642-FE0F","order":2404,"shortcodes":["man_handball_tone1"],"unicode":"🤾🏻‍♂️"},{"annotation":"man playing handball: medium-light skin tone","group":1,"hexcode":"1F93E-1F3FC-200D-2642-FE0F","order":2406,"shortcodes":["man_handball_tone2"],"unicode":"🤾🏼‍♂️"},{"annotation":"man playing handball: medium skin tone","group":1,"hexcode":"1F93E-1F3FD-200D-2642-FE0F","order":2408,"shortcodes":["man_handball_tone3"],"unicode":"🤾🏽‍♂️"},{"annotation":"man playing handball: medium-dark skin tone","group":1,"hexcode":"1F93E-1F3FE-200D-2642-FE0F","order":2410,"shortcodes":["man_handball_tone4"],"unicode":"🤾🏾‍♂️"},{"annotation":"man playing handball: dark skin tone","group":1,"hexcode":"1F93E-1F3FF-200D-2642-FE0F","order":2412,"shortcodes":["man_handball_tone5"],"unicode":"🤾🏿‍♂️"}]},{"annotation":"woman playing handball","group":1,"hexcode":"1F93E-200D-2640-FE0F","order":2414,"shortcodes":["woman_handball"],"tags":["handball","woman"],"unicode":"🤾‍♀️","skins":[{"annotation":"woman playing handball: light skin tone","group":1,"hexcode":"1F93E-1F3FB-200D-2640-FE0F","order":2416,"shortcodes":["woman_handball_tone1"],"unicode":"🤾🏻‍♀️"},{"annotation":"woman playing handball: medium-light skin tone","group":1,"hexcode":"1F93E-1F3FC-200D-2640-FE0F","order":2418,"shortcodes":["woman_handball_tone2"],"unicode":"🤾🏼‍♀️"},{"annotation":"woman playing handball: medium skin tone","group":1,"hexcode":"1F93E-1F3FD-200D-2640-FE0F","order":2420,"shortcodes":["woman_handball_tone3"],"unicode":"🤾🏽‍♀️"},{"annotation":"woman playing handball: medium-dark skin tone","group":1,"hexcode":"1F93E-1F3FE-200D-2640-FE0F","order":2422,"shortcodes":["woman_handball_tone4"],"unicode":"🤾🏾‍♀️"},{"annotation":"woman playing handball: dark skin tone","group":1,"hexcode":"1F93E-1F3FF-200D-2640-FE0F","order":2424,"shortcodes":["woman_handball_tone5"],"unicode":"🤾🏿‍♀️"}]},{"annotation":"person juggling","group":1,"hexcode":"1F939","order":2426,"shortcodes":["person_juggling"],"tags":["balance","juggle","multitask","skill"],"unicode":"🤹","skins":[{"annotation":"person juggling: light skin tone","group":1,"hexcode":"1F939-1F3FB","order":2427,"shortcodes":["person_juggling_tone1"],"unicode":"🤹🏻"},{"annotation":"person juggling: medium-light skin tone","group":1,"hexcode":"1F939-1F3FC","order":2428,"shortcodes":["person_juggling_tone2"],"unicode":"🤹🏼"},{"annotation":"person juggling: medium skin tone","group":1,"hexcode":"1F939-1F3FD","order":2429,"shortcodes":["person_juggling_tone3"],"unicode":"🤹🏽"},{"annotation":"person juggling: medium-dark skin tone","group":1,"hexcode":"1F939-1F3FE","order":2430,"shortcodes":["person_juggling_tone4"],"unicode":"🤹🏾"},{"annotation":"person juggling: dark skin tone","group":1,"hexcode":"1F939-1F3FF","order":2431,"shortcodes":["person_juggling_tone5"],"unicode":"🤹🏿"}]},{"annotation":"man juggling","group":1,"hexcode":"1F939-200D-2642-FE0F","order":2432,"shortcodes":["man_juggling"],"tags":["juggling","man","multitask"],"unicode":"🤹‍♂️","skins":[{"annotation":"man juggling: light skin tone","group":1,"hexcode":"1F939-1F3FB-200D-2642-FE0F","order":2434,"shortcodes":["man_juggling_tone1"],"unicode":"🤹🏻‍♂️"},{"annotation":"man juggling: medium-light skin tone","group":1,"hexcode":"1F939-1F3FC-200D-2642-FE0F","order":2436,"shortcodes":["man_juggling_tone2"],"unicode":"🤹🏼‍♂️"},{"annotation":"man juggling: medium skin tone","group":1,"hexcode":"1F939-1F3FD-200D-2642-FE0F","order":2438,"shortcodes":["man_juggling_tone3"],"unicode":"🤹🏽‍♂️"},{"annotation":"man juggling: medium-dark skin tone","group":1,"hexcode":"1F939-1F3FE-200D-2642-FE0F","order":2440,"shortcodes":["man_juggling_tone4"],"unicode":"🤹🏾‍♂️"},{"annotation":"man juggling: dark skin tone","group":1,"hexcode":"1F939-1F3FF-200D-2642-FE0F","order":2442,"shortcodes":["man_juggling_tone5"],"unicode":"🤹🏿‍♂️"}]},{"annotation":"woman juggling","group":1,"hexcode":"1F939-200D-2640-FE0F","order":2444,"shortcodes":["woman_juggling"],"tags":["juggling","multitask","woman"],"unicode":"🤹‍♀️","skins":[{"annotation":"woman juggling: light skin tone","group":1,"hexcode":"1F939-1F3FB-200D-2640-FE0F","order":2446,"shortcodes":["woman_juggling_tone1"],"unicode":"🤹🏻‍♀️"},{"annotation":"woman juggling: medium-light skin tone","group":1,"hexcode":"1F939-1F3FC-200D-2640-FE0F","order":2448,"shortcodes":["woman_juggling_tone2"],"unicode":"🤹🏼‍♀️"},{"annotation":"woman juggling: medium skin tone","group":1,"hexcode":"1F939-1F3FD-200D-2640-FE0F","order":2450,"shortcodes":["woman_juggling_tone3"],"unicode":"🤹🏽‍♀️"},{"annotation":"woman juggling: medium-dark skin tone","group":1,"hexcode":"1F939-1F3FE-200D-2640-FE0F","order":2452,"shortcodes":["woman_juggling_tone4"],"unicode":"🤹🏾‍♀️"},{"annotation":"woman juggling: dark skin tone","group":1,"hexcode":"1F939-1F3FF-200D-2640-FE0F","order":2454,"shortcodes":["woman_juggling_tone5"],"unicode":"🤹🏿‍♀️"}]},{"annotation":"person in lotus position","group":1,"hexcode":"1F9D8","order":2456,"shortcodes":["person_lotus_position"],"tags":["meditation","yoga"],"unicode":"🧘","skins":[{"annotation":"person in lotus position: light skin tone","group":1,"hexcode":"1F9D8-1F3FB","order":2457,"shortcodes":["person_lotus_position_tone1"],"unicode":"🧘🏻"},{"annotation":"person in lotus position: medium-light skin tone","group":1,"hexcode":"1F9D8-1F3FC","order":2458,"shortcodes":["person_lotus_position_tone2"],"unicode":"🧘🏼"},{"annotation":"person in lotus position: medium skin tone","group":1,"hexcode":"1F9D8-1F3FD","order":2459,"shortcodes":["person_lotus_position_tone3"],"unicode":"🧘🏽"},{"annotation":"person in lotus position: medium-dark skin tone","group":1,"hexcode":"1F9D8-1F3FE","order":2460,"shortcodes":["person_lotus_position_tone4"],"unicode":"🧘🏾"},{"annotation":"person in lotus position: dark skin tone","group":1,"hexcode":"1F9D8-1F3FF","order":2461,"shortcodes":["person_lotus_position_tone5"],"unicode":"🧘🏿"}]},{"annotation":"man in lotus position","group":1,"hexcode":"1F9D8-200D-2642-FE0F","order":2462,"shortcodes":["man_lotus_position"],"tags":["meditation","yoga"],"unicode":"🧘‍♂️","skins":[{"annotation":"man in lotus position: light skin tone","group":1,"hexcode":"1F9D8-1F3FB-200D-2642-FE0F","order":2464,"shortcodes":["man_lotus_position_tone1"],"unicode":"🧘🏻‍♂️"},{"annotation":"man in lotus position: medium-light skin tone","group":1,"hexcode":"1F9D8-1F3FC-200D-2642-FE0F","order":2466,"shortcodes":["man_lotus_position_tone2"],"unicode":"🧘🏼‍♂️"},{"annotation":"man in lotus position: medium skin tone","group":1,"hexcode":"1F9D8-1F3FD-200D-2642-FE0F","order":2468,"shortcodes":["man_lotus_position_tone3"],"unicode":"🧘🏽‍♂️"},{"annotation":"man in lotus position: medium-dark skin tone","group":1,"hexcode":"1F9D8-1F3FE-200D-2642-FE0F","order":2470,"shortcodes":["man_lotus_position_tone4"],"unicode":"🧘🏾‍♂️"},{"annotation":"man in lotus position: dark skin tone","group":1,"hexcode":"1F9D8-1F3FF-200D-2642-FE0F","order":2472,"shortcodes":["man_lotus_position_tone5"],"unicode":"🧘🏿‍♂️"}]},{"annotation":"woman in lotus position","group":1,"hexcode":"1F9D8-200D-2640-FE0F","order":2474,"shortcodes":["woman_lotus_position"],"tags":["meditation","yoga"],"unicode":"🧘‍♀️","skins":[{"annotation":"woman in lotus position: light skin tone","group":1,"hexcode":"1F9D8-1F3FB-200D-2640-FE0F","order":2476,"shortcodes":["woman_lotus_position_tone1"],"unicode":"🧘🏻‍♀️"},{"annotation":"woman in lotus position: medium-light skin tone","group":1,"hexcode":"1F9D8-1F3FC-200D-2640-FE0F","order":2478,"shortcodes":["woman_lotus_position_tone2"],"unicode":"🧘🏼‍♀️"},{"annotation":"woman in lotus position: medium skin tone","group":1,"hexcode":"1F9D8-1F3FD-200D-2640-FE0F","order":2480,"shortcodes":["woman_lotus_position_tone3"],"unicode":"🧘🏽‍♀️"},{"annotation":"woman in lotus position: medium-dark skin tone","group":1,"hexcode":"1F9D8-1F3FE-200D-2640-FE0F","order":2482,"shortcodes":["woman_lotus_position_tone4"],"unicode":"🧘🏾‍♀️"},{"annotation":"woman in lotus position: dark skin tone","group":1,"hexcode":"1F9D8-1F3FF-200D-2640-FE0F","order":2484,"shortcodes":["woman_lotus_position_tone5"],"unicode":"🧘🏿‍♀️"}]},{"annotation":"person taking bath","group":1,"hexcode":"1F6C0","order":2486,"shortcodes":["bath"],"tags":["bath","bathtub"],"unicode":"🛀","skins":[{"annotation":"person taking bath: light skin tone","group":1,"hexcode":"1F6C0-1F3FB","order":2487,"shortcodes":["bath_tone1"],"unicode":"🛀🏻"},{"annotation":"person taking bath: medium-light skin tone","group":1,"hexcode":"1F6C0-1F3FC","order":2488,"shortcodes":["bath_tone2"],"unicode":"🛀🏼"},{"annotation":"person taking bath: medium skin tone","group":1,"hexcode":"1F6C0-1F3FD","order":2489,"shortcodes":["bath_tone3"],"unicode":"🛀🏽"},{"annotation":"person taking bath: medium-dark skin tone","group":1,"hexcode":"1F6C0-1F3FE","order":2490,"shortcodes":["bath_tone4"],"unicode":"🛀🏾"},{"annotation":"person taking bath: dark skin tone","group":1,"hexcode":"1F6C0-1F3FF","order":2491,"shortcodes":["bath_tone5"],"unicode":"🛀🏿"}]},{"annotation":"person in bed","group":1,"hexcode":"1F6CC","order":2492,"shortcodes":["in_bed"],"tags":["hotel","sleep"],"unicode":"🛌","skins":[{"annotation":"person in bed: light skin tone","group":1,"hexcode":"1F6CC-1F3FB","order":2493,"shortcodes":["in_bed_tone1"],"unicode":"🛌🏻"},{"annotation":"person in bed: medium-light skin tone","group":1,"hexcode":"1F6CC-1F3FC","order":2494,"shortcodes":["in_bed_tone2"],"unicode":"🛌🏼"},{"annotation":"person in bed: medium skin tone","group":1,"hexcode":"1F6CC-1F3FD","order":2495,"shortcodes":["in_bed_tone3"],"unicode":"🛌🏽"},{"annotation":"person in bed: medium-dark skin tone","group":1,"hexcode":"1F6CC-1F3FE","order":2496,"shortcodes":["in_bed_tone4"],"unicode":"🛌🏾"},{"annotation":"person in bed: dark skin tone","group":1,"hexcode":"1F6CC-1F3FF","order":2497,"shortcodes":["in_bed_tone5"],"unicode":"🛌🏿"}]},{"annotation":"people holding hands","group":1,"hexcode":"1F9D1-200D-1F91D-200D-1F9D1","order":2498,"shortcodes":["holding_hands_people"],"tags":["couple","hand","hold","holding hands","person"],"unicode":"🧑‍🤝‍🧑","skins":[{"annotation":"people holding hands: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FB","order":2499,"shortcodes":["holding_hands_people_tone1"],"unicode":"🧑🏻‍🤝‍🧑🏻"},{"annotation":"people holding hands: light skin tone, medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FC","order":2500,"shortcodes":["holding_hands_people_tone1-2"],"unicode":"🧑🏻‍🤝‍🧑🏼"},{"annotation":"people holding hands: light skin tone, medium skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FD","order":2501,"shortcodes":["holding_hands_people_tone1-3"],"unicode":"🧑🏻‍🤝‍🧑🏽"},{"annotation":"people holding hands: light skin tone, medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FE","order":2502,"shortcodes":["holding_hands_people_tone1-4"],"unicode":"🧑🏻‍🤝‍🧑🏾"},{"annotation":"people holding hands: light skin tone, dark skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FF","order":2503,"shortcodes":["holding_hands_people_tone1-5"],"unicode":"🧑🏻‍🤝‍🧑🏿"},{"annotation":"people holding hands: medium-light skin tone, light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FB","order":2504,"shortcodes":["holding_hands_people_tone2-1"],"unicode":"🧑🏼‍🤝‍🧑🏻"},{"annotation":"people holding hands: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FC","order":2505,"shortcodes":["holding_hands_people_tone2"],"unicode":"🧑🏼‍🤝‍🧑🏼"},{"annotation":"people holding hands: medium-light skin tone, medium skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FD","order":2506,"shortcodes":["holding_hands_people_tone2-3"],"unicode":"🧑🏼‍🤝‍🧑🏽"},{"annotation":"people holding hands: medium-light skin tone, medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FE","order":2507,"shortcodes":["holding_hands_people_tone2-4"],"unicode":"🧑🏼‍🤝‍🧑🏾"},{"annotation":"people holding hands: medium-light skin tone, dark skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FF","order":2508,"shortcodes":["holding_hands_people_tone2-5"],"unicode":"🧑🏼‍🤝‍🧑🏿"},{"annotation":"people holding hands: medium skin tone, light skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FB","order":2509,"shortcodes":["holding_hands_people_tone3-1"],"unicode":"🧑🏽‍🤝‍🧑🏻"},{"annotation":"people holding hands: medium skin tone, medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FC","order":2510,"shortcodes":["holding_hands_people_tone3-2"],"unicode":"🧑🏽‍🤝‍🧑🏼"},{"annotation":"people holding hands: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FD","order":2511,"shortcodes":["holding_hands_people_tone3"],"unicode":"🧑🏽‍🤝‍🧑🏽"},{"annotation":"people holding hands: medium skin tone, medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FE","order":2512,"shortcodes":["holding_hands_people_tone3-4"],"unicode":"🧑🏽‍🤝‍🧑🏾"},{"annotation":"people holding hands: medium skin tone, dark skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FF","order":2513,"shortcodes":["holding_hands_people_tone3-5"],"unicode":"🧑🏽‍🤝‍🧑🏿"},{"annotation":"people holding hands: medium-dark skin tone, light skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FB","order":2514,"shortcodes":["holding_hands_people_tone4-1"],"unicode":"🧑🏾‍🤝‍🧑🏻"},{"annotation":"people holding hands: medium-dark skin tone, medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FC","order":2515,"shortcodes":["holding_hands_people_tone4-2"],"unicode":"🧑🏾‍🤝‍🧑🏼"},{"annotation":"people holding hands: medium-dark skin tone, medium skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FD","order":2516,"shortcodes":["holding_hands_people_tone4-3"],"unicode":"🧑🏾‍🤝‍🧑🏽"},{"annotation":"people holding hands: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FE","order":2517,"shortcodes":["holding_hands_people_tone4"],"unicode":"🧑🏾‍🤝‍🧑🏾"},{"annotation":"people holding hands: medium-dark skin tone, dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FF","order":2518,"shortcodes":["holding_hands_people_tone4-5"],"unicode":"🧑🏾‍🤝‍🧑🏿"},{"annotation":"people holding hands: dark skin tone, light skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FB","order":2519,"shortcodes":["holding_hands_people_tone5-1"],"unicode":"🧑🏿‍🤝‍🧑🏻"},{"annotation":"people holding hands: dark skin tone, medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FC","order":2520,"shortcodes":["holding_hands_people_tone5-2"],"unicode":"🧑🏿‍🤝‍🧑🏼"},{"annotation":"people holding hands: dark skin tone, medium skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FD","order":2521,"shortcodes":["holding_hands_people_tone5-3"],"unicode":"🧑🏿‍🤝‍🧑🏽"},{"annotation":"people holding hands: dark skin tone, medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FE","order":2522,"shortcodes":["holding_hands_people_tone5-4"],"unicode":"🧑🏿‍🤝‍🧑🏾"},{"annotation":"people holding hands: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FF","order":2523,"shortcodes":["holding_hands_people_tone5"],"unicode":"🧑🏿‍🤝‍🧑🏿"}]},{"annotation":"women holding hands","group":1,"hexcode":"1F46D","order":2524,"shortcodes":["holding_hands_ww"],"tags":["couple","hand","holding hands","women"],"unicode":"👭","skins":[{"annotation":"women holding hands: light skin tone","group":1,"hexcode":"1F46D-1F3FB","order":2525,"shortcodes":["holding_hands_ww_tone1"],"unicode":"👭🏻"},{"annotation":"women holding hands: medium-light skin tone","group":1,"hexcode":"1F46D-1F3FC","order":2531,"shortcodes":["holding_hands_ww_tone2"],"unicode":"👭🏼"},{"annotation":"women holding hands: medium skin tone","group":1,"hexcode":"1F46D-1F3FD","order":2537,"shortcodes":["holding_hands_ww_tone3"],"unicode":"👭🏽"},{"annotation":"women holding hands: medium-dark skin tone","group":1,"hexcode":"1F46D-1F3FE","order":2543,"shortcodes":["holding_hands_ww_tone4"],"unicode":"👭🏾"},{"annotation":"women holding hands: dark skin tone","group":1,"hexcode":"1F46D-1F3FF","order":2549,"shortcodes":["holding_hands_ww_tone5"],"unicode":"👭🏿"},{"annotation":"women holding hands: light skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FC","order":2526,"shortcodes":["holding_hands_ww_tone1-2"],"unicode":"👩🏻‍🤝‍👩🏼"},{"annotation":"women holding hands: light skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FD","order":2527,"shortcodes":["holding_hands_ww_tone1-3"],"unicode":"👩🏻‍🤝‍👩🏽"},{"annotation":"women holding hands: light skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FE","order":2528,"shortcodes":["holding_hands_ww_tone1-4"],"unicode":"👩🏻‍🤝‍👩🏾"},{"annotation":"women holding hands: light skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FF","order":2529,"shortcodes":["holding_hands_ww_tone1-5"],"unicode":"👩🏻‍🤝‍👩🏿"},{"annotation":"women holding hands: medium-light skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FB","order":2530,"shortcodes":["holding_hands_ww_tone2-1"],"unicode":"👩🏼‍🤝‍👩🏻"},{"annotation":"women holding hands: medium-light skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FD","order":2532,"shortcodes":["holding_hands_ww_tone2-3"],"unicode":"👩🏼‍🤝‍👩🏽"},{"annotation":"women holding hands: medium-light skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FE","order":2533,"shortcodes":["holding_hands_ww_tone2-4"],"unicode":"👩🏼‍🤝‍👩🏾"},{"annotation":"women holding hands: medium-light skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FF","order":2534,"shortcodes":["holding_hands_ww_tone2-5"],"unicode":"👩🏼‍🤝‍👩🏿"},{"annotation":"women holding hands: medium skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FB","order":2535,"shortcodes":["holding_hands_ww_tone3-1"],"unicode":"👩🏽‍🤝‍👩🏻"},{"annotation":"women holding hands: medium skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FC","order":2536,"shortcodes":["holding_hands_ww_tone3-2"],"unicode":"👩🏽‍🤝‍👩🏼"},{"annotation":"women holding hands: medium skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FE","order":2538,"shortcodes":["holding_hands_ww_tone3-4"],"unicode":"👩🏽‍🤝‍👩🏾"},{"annotation":"women holding hands: medium skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FF","order":2539,"shortcodes":["holding_hands_ww_tone3-5"],"unicode":"👩🏽‍🤝‍👩🏿"},{"annotation":"women holding hands: medium-dark skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FB","order":2540,"shortcodes":["holding_hands_ww_tone4-1"],"unicode":"👩🏾‍🤝‍👩🏻"},{"annotation":"women holding hands: medium-dark skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FC","order":2541,"shortcodes":["holding_hands_ww_tone4-2"],"unicode":"👩🏾‍🤝‍👩🏼"},{"annotation":"women holding hands: medium-dark skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FD","order":2542,"shortcodes":["holding_hands_ww_tone4-3"],"unicode":"👩🏾‍🤝‍👩🏽"},{"annotation":"women holding hands: medium-dark skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FF","order":2544,"shortcodes":["holding_hands_ww_tone4-5"],"unicode":"👩🏾‍🤝‍👩🏿"},{"annotation":"women holding hands: dark skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FB","order":2545,"shortcodes":["holding_hands_ww_tone5-1"],"unicode":"👩🏿‍🤝‍👩🏻"},{"annotation":"women holding hands: dark skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FC","order":2546,"shortcodes":["holding_hands_ww_tone5-2"],"unicode":"👩🏿‍🤝‍👩🏼"},{"annotation":"women holding hands: dark skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FD","order":2547,"shortcodes":["holding_hands_ww_tone5-3"],"unicode":"👩🏿‍🤝‍👩🏽"},{"annotation":"women holding hands: dark skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FE","order":2548,"shortcodes":["holding_hands_ww_tone5-4"],"unicode":"👩🏿‍🤝‍👩🏾"}]},{"annotation":"woman and man holding hands","group":1,"hexcode":"1F46B","order":2550,"shortcodes":["holding_hands_mw","holding_hands_wm"],"tags":["couple","hand","hold","holding hands","man","woman"],"unicode":"👫","skins":[{"annotation":"woman and man holding hands: light skin tone","group":1,"hexcode":"1F46B-1F3FB","order":2551,"shortcodes":["holding_hands_mw_tone1","holding_hands_wm_tone1"],"unicode":"👫🏻"},{"annotation":"woman and man holding hands: medium-light skin tone","group":1,"hexcode":"1F46B-1F3FC","order":2557,"shortcodes":["holding_hands_mw_tone2","holding_hands_wm_tone2"],"unicode":"👫🏼"},{"annotation":"woman and man holding hands: medium skin tone","group":1,"hexcode":"1F46B-1F3FD","order":2563,"shortcodes":["holding_hands_mw_tone3","holding_hands_wm_tone3"],"unicode":"👫🏽"},{"annotation":"woman and man holding hands: medium-dark skin tone","group":1,"hexcode":"1F46B-1F3FE","order":2569,"shortcodes":["holding_hands_mw_tone4","holding_hands_wm_tone4"],"unicode":"👫🏾"},{"annotation":"woman and man holding hands: dark skin tone","group":1,"hexcode":"1F46B-1F3FF","order":2575,"shortcodes":["holding_hands_mw_tone5","holding_hands_wm_tone5"],"unicode":"👫🏿"},{"annotation":"woman and man holding hands: light skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FC","order":2552,"shortcodes":["holding_hands_mw_tone1-2","holding_hands_wm_tone1-2"],"unicode":"👩🏻‍🤝‍👨🏼"},{"annotation":"woman and man holding hands: light skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FD","order":2553,"shortcodes":["holding_hands_mw_tone1-3","holding_hands_wm_tone1-3"],"unicode":"👩🏻‍🤝‍👨🏽"},{"annotation":"woman and man holding hands: light skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FE","order":2554,"shortcodes":["holding_hands_mw_tone1-4","holding_hands_wm_tone1-4"],"unicode":"👩🏻‍🤝‍👨🏾"},{"annotation":"woman and man holding hands: light skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FF","order":2555,"shortcodes":["holding_hands_mw_tone1-5","holding_hands_wm_tone1-5"],"unicode":"👩🏻‍🤝‍👨🏿"},{"annotation":"woman and man holding hands: medium-light skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FB","order":2556,"shortcodes":["holding_hands_mw_tone2-1","holding_hands_wm_tone2-1"],"unicode":"👩🏼‍🤝‍👨🏻"},{"annotation":"woman and man holding hands: medium-light skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FD","order":2558,"shortcodes":["holding_hands_mw_tone2-3","holding_hands_wm_tone2-3"],"unicode":"👩🏼‍🤝‍👨🏽"},{"annotation":"woman and man holding hands: medium-light skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FE","order":2559,"shortcodes":["holding_hands_mw_tone2-4","holding_hands_wm_tone2-4"],"unicode":"👩🏼‍🤝‍👨🏾"},{"annotation":"woman and man holding hands: medium-light skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FF","order":2560,"shortcodes":["holding_hands_mw_tone2-5","holding_hands_wm_tone2-5"],"unicode":"👩🏼‍🤝‍👨🏿"},{"annotation":"woman and man holding hands: medium skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FB","order":2561,"shortcodes":["holding_hands_mw_tone3-1","holding_hands_wm_tone3-1"],"unicode":"👩🏽‍🤝‍👨🏻"},{"annotation":"woman and man holding hands: medium skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FC","order":2562,"shortcodes":["holding_hands_mw_tone3-2","holding_hands_wm_tone3-2"],"unicode":"👩🏽‍🤝‍👨🏼"},{"annotation":"woman and man holding hands: medium skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FE","order":2564,"shortcodes":["holding_hands_mw_tone3-4","holding_hands_wm_tone3-4"],"unicode":"👩🏽‍🤝‍👨🏾"},{"annotation":"woman and man holding hands: medium skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FF","order":2565,"shortcodes":["holding_hands_mw_tone3-5","holding_hands_wm_tone3-5"],"unicode":"👩🏽‍🤝‍👨🏿"},{"annotation":"woman and man holding hands: medium-dark skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FB","order":2566,"shortcodes":["holding_hands_mw_tone4-1","holding_hands_wm_tone4-1"],"unicode":"👩🏾‍🤝‍👨🏻"},{"annotation":"woman and man holding hands: medium-dark skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FC","order":2567,"shortcodes":["holding_hands_mw_tone4-2","holding_hands_wm_tone4-2"],"unicode":"👩🏾‍🤝‍👨🏼"},{"annotation":"woman and man holding hands: medium-dark skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FD","order":2568,"shortcodes":["holding_hands_mw_tone4-3","holding_hands_wm_tone4-3"],"unicode":"👩🏾‍🤝‍👨🏽"},{"annotation":"woman and man holding hands: medium-dark skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FF","order":2570,"shortcodes":["holding_hands_mw_tone4-5","holding_hands_wm_tone4-5"],"unicode":"👩🏾‍🤝‍👨🏿"},{"annotation":"woman and man holding hands: dark skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FB","order":2571,"shortcodes":["holding_hands_mw_tone5-1","holding_hands_wm_tone5-1"],"unicode":"👩🏿‍🤝‍👨🏻"},{"annotation":"woman and man holding hands: dark skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FC","order":2572,"shortcodes":["holding_hands_mw_tone5-2","holding_hands_wm_tone5-2"],"unicode":"👩🏿‍🤝‍👨🏼"},{"annotation":"woman and man holding hands: dark skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FD","order":2573,"shortcodes":["holding_hands_mw_tone5-3","holding_hands_wm_tone5-3"],"unicode":"👩🏿‍🤝‍👨🏽"},{"annotation":"woman and man holding hands: dark skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FE","order":2574,"shortcodes":["holding_hands_mw_tone5-4","holding_hands_wm_tone5-4"],"unicode":"👩🏿‍🤝‍👨🏾"}]},{"annotation":"men holding hands","group":1,"hexcode":"1F46C","order":2576,"shortcodes":["holding_hands_mm"],"tags":["couple","gemini","holding hands","man","men","twins","zodiac"],"unicode":"👬","skins":[{"annotation":"men holding hands: light skin tone","group":1,"hexcode":"1F46C-1F3FB","order":2577,"shortcodes":["holding_hands_mm_tone1"],"unicode":"👬🏻"},{"annotation":"men holding hands: medium-light skin tone","group":1,"hexcode":"1F46C-1F3FC","order":2583,"shortcodes":["holding_hands_mm_tone2"],"unicode":"👬🏼"},{"annotation":"men holding hands: medium skin tone","group":1,"hexcode":"1F46C-1F3FD","order":2589,"shortcodes":["holding_hands_mm_tone3"],"unicode":"👬🏽"},{"annotation":"men holding hands: medium-dark skin tone","group":1,"hexcode":"1F46C-1F3FE","order":2595,"shortcodes":["holding_hands_mm_tone4"],"unicode":"👬🏾"},{"annotation":"men holding hands: dark skin tone","group":1,"hexcode":"1F46C-1F3FF","order":2601,"shortcodes":["holding_hands_mm_tone5"],"unicode":"👬🏿"},{"annotation":"men holding hands: light skin tone, medium-light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FC","order":2578,"shortcodes":["holding_hands_mm_tone1-2"],"unicode":"👨🏻‍🤝‍👨🏼"},{"annotation":"men holding hands: light skin tone, medium skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FD","order":2579,"shortcodes":["holding_hands_mm_tone1-3"],"unicode":"👨🏻‍🤝‍👨🏽"},{"annotation":"men holding hands: light skin tone, medium-dark skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FE","order":2580,"shortcodes":["holding_hands_mm_tone1-4"],"unicode":"👨🏻‍🤝‍👨🏾"},{"annotation":"men holding hands: light skin tone, dark skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FF","order":2581,"shortcodes":["holding_hands_mm_tone1-5"],"unicode":"👨🏻‍🤝‍👨🏿"},{"annotation":"men holding hands: medium-light skin tone, light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FB","order":2582,"shortcodes":["holding_hands_mm_tone2-1"],"unicode":"👨🏼‍🤝‍👨🏻"},{"annotation":"men holding hands: medium-light skin tone, medium skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FD","order":2584,"shortcodes":["holding_hands_mm_tone2-3"],"unicode":"👨🏼‍🤝‍👨🏽"},{"annotation":"men holding hands: medium-light skin tone, medium-dark skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FE","order":2585,"shortcodes":["holding_hands_mm_tone2-4"],"unicode":"👨🏼‍🤝‍👨🏾"},{"annotation":"men holding hands: medium-light skin tone, dark skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FF","order":2586,"shortcodes":["holding_hands_mm_tone2-5"],"unicode":"👨🏼‍🤝‍👨🏿"},{"annotation":"men holding hands: medium skin tone, light skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FB","order":2587,"shortcodes":["holding_hands_mm_tone3-1"],"unicode":"👨🏽‍🤝‍👨🏻"},{"annotation":"men holding hands: medium skin tone, medium-light skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FC","order":2588,"shortcodes":["holding_hands_mm_tone3-2"],"unicode":"👨🏽‍🤝‍👨🏼"},{"annotation":"men holding hands: medium skin tone, medium-dark skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FE","order":2590,"shortcodes":["holding_hands_mm_tone3-4"],"unicode":"👨🏽‍🤝‍👨🏾"},{"annotation":"men holding hands: medium skin tone, dark skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FF","order":2591,"shortcodes":["holding_hands_mm_tone3-5"],"unicode":"👨🏽‍🤝‍👨🏿"},{"annotation":"men holding hands: medium-dark skin tone, light skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FB","order":2592,"shortcodes":["holding_hands_mm_tone4-1"],"unicode":"👨🏾‍🤝‍👨🏻"},{"annotation":"men holding hands: medium-dark skin tone, medium-light skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FC","order":2593,"shortcodes":["holding_hands_mm_tone4-2"],"unicode":"👨🏾‍🤝‍👨🏼"},{"annotation":"men holding hands: medium-dark skin tone, medium skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FD","order":2594,"shortcodes":["holding_hands_mm_tone4-3"],"unicode":"👨🏾‍🤝‍👨🏽"},{"annotation":"men holding hands: medium-dark skin tone, dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FF","order":2596,"shortcodes":["holding_hands_mm_tone4-5"],"unicode":"👨🏾‍🤝‍👨🏿"},{"annotation":"men holding hands: dark skin tone, light skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FB","order":2597,"shortcodes":["holding_hands_mm_tone5-1"],"unicode":"👨🏿‍🤝‍👨🏻"},{"annotation":"men holding hands: dark skin tone, medium-light skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FC","order":2598,"shortcodes":["holding_hands_mm_tone5-2"],"unicode":"👨🏿‍🤝‍👨🏼"},{"annotation":"men holding hands: dark skin tone, medium skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FD","order":2599,"shortcodes":["holding_hands_mm_tone5-3"],"unicode":"👨🏿‍🤝‍👨🏽"},{"annotation":"men holding hands: dark skin tone, medium-dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FE","order":2600,"shortcodes":["holding_hands_mm_tone5-4"],"unicode":"👨🏿‍🤝‍👨🏾"}]},{"annotation":"kiss","group":1,"hexcode":"1F48F","order":2602,"shortcodes":["couple"],"tags":["couple"],"unicode":"💏"},{"annotation":"kiss: woman, man","group":1,"hexcode":"1F469-200D-2764-FE0F-200D-1F48B-200D-1F468","order":2603,"shortcodes":["kiss_mw","kiss_wm"],"tags":["couple","kiss","man","woman"],"unicode":"👩‍❤️‍💋‍👨"},{"annotation":"kiss: man, man","group":1,"hexcode":"1F468-200D-2764-FE0F-200D-1F48B-200D-1F468","order":2605,"shortcodes":["kiss_mm"],"tags":["couple","kiss","man"],"unicode":"👨‍❤️‍💋‍👨"},{"annotation":"kiss: woman, woman","group":1,"hexcode":"1F469-200D-2764-FE0F-200D-1F48B-200D-1F469","order":2607,"shortcodes":["kiss_ww"],"tags":["couple","kiss","woman"],"unicode":"👩‍❤️‍💋‍👩"},{"annotation":"couple with heart","group":1,"hexcode":"1F491","order":2609,"shortcodes":["couple_heart"],"tags":["couple","love"],"unicode":"💑"},{"annotation":"couple with heart: woman, man","group":1,"hexcode":"1F469-200D-2764-FE0F-200D-1F468","order":2610,"shortcodes":["couple_mw","couple_wm"],"tags":["couple","couple with heart","love","man","woman"],"unicode":"👩‍❤️‍👨"},{"annotation":"couple with heart: man, man","group":1,"hexcode":"1F468-200D-2764-FE0F-200D-1F468","order":2612,"shortcodes":["couple_mm"],"tags":["couple","couple with heart","love","man"],"unicode":"👨‍❤️‍👨"},{"annotation":"couple with heart: woman, woman","group":1,"hexcode":"1F469-200D-2764-FE0F-200D-1F469","order":2614,"shortcodes":["couple_ww"],"tags":["couple","couple with heart","love","woman"],"unicode":"👩‍❤️‍👩"},{"annotation":"family","group":1,"hexcode":"1F46A","order":2616,"shortcodes":["family"],"tags":["family"],"unicode":"👪️"},{"annotation":"family: man, woman, boy","group":1,"hexcode":"1F468-200D-1F469-200D-1F466","order":2617,"shortcodes":["family_mwb"],"tags":["boy","family","man","woman"],"unicode":"👨‍👩‍👦"},{"annotation":"family: man, woman, girl","group":1,"hexcode":"1F468-200D-1F469-200D-1F467","order":2618,"shortcodes":["family_mwg"],"tags":["family","girl","man","woman"],"unicode":"👨‍👩‍👧"},{"annotation":"family: man, woman, girl, boy","group":1,"hexcode":"1F468-200D-1F469-200D-1F467-200D-1F466","order":2619,"shortcodes":["family_mwgb"],"tags":["boy","family","girl","man","woman"],"unicode":"👨‍👩‍👧‍👦"},{"annotation":"family: man, woman, boy, boy","group":1,"hexcode":"1F468-200D-1F469-200D-1F466-200D-1F466","order":2620,"shortcodes":["family_mwbb"],"tags":["boy","family","man","woman"],"unicode":"👨‍👩‍👦‍👦"},{"annotation":"family: man, woman, girl, girl","group":1,"hexcode":"1F468-200D-1F469-200D-1F467-200D-1F467","order":2621,"shortcodes":["family_mwgg"],"tags":["family","girl","man","woman"],"unicode":"👨‍👩‍👧‍👧"},{"annotation":"family: man, man, boy","group":1,"hexcode":"1F468-200D-1F468-200D-1F466","order":2622,"shortcodes":["family_mmb"],"tags":["boy","family","man"],"unicode":"👨‍👨‍👦"},{"annotation":"family: man, man, girl","group":1,"hexcode":"1F468-200D-1F468-200D-1F467","order":2623,"shortcodes":["family_mmg"],"tags":["family","girl","man"],"unicode":"👨‍👨‍👧"},{"annotation":"family: man, man, girl, boy","group":1,"hexcode":"1F468-200D-1F468-200D-1F467-200D-1F466","order":2624,"shortcodes":["family_mmgb"],"tags":["boy","family","girl","man"],"unicode":"👨‍👨‍👧‍👦"},{"annotation":"family: man, man, boy, boy","group":1,"hexcode":"1F468-200D-1F468-200D-1F466-200D-1F466","order":2625,"shortcodes":["family_mmbb"],"tags":["boy","family","man"],"unicode":"👨‍👨‍👦‍👦"},{"annotation":"family: man, man, girl, girl","group":1,"hexcode":"1F468-200D-1F468-200D-1F467-200D-1F467","order":2626,"shortcodes":["family_mmgg"],"tags":["family","girl","man"],"unicode":"👨‍👨‍👧‍👧"},{"annotation":"family: woman, woman, boy","group":1,"hexcode":"1F469-200D-1F469-200D-1F466","order":2627,"shortcodes":["family_wwb"],"tags":["boy","family","woman"],"unicode":"👩‍👩‍👦"},{"annotation":"family: woman, woman, girl","group":1,"hexcode":"1F469-200D-1F469-200D-1F467","order":2628,"shortcodes":["family_wwg"],"tags":["family","girl","woman"],"unicode":"👩‍👩‍👧"},{"annotation":"family: woman, woman, girl, boy","group":1,"hexcode":"1F469-200D-1F469-200D-1F467-200D-1F466","order":2629,"shortcodes":["family_wwgb"],"tags":["boy","family","girl","woman"],"unicode":"👩‍👩‍👧‍👦"},{"annotation":"family: woman, woman, boy, boy","group":1,"hexcode":"1F469-200D-1F469-200D-1F466-200D-1F466","order":2630,"shortcodes":["family_wwbb"],"tags":["boy","family","woman"],"unicode":"👩‍👩‍👦‍👦"},{"annotation":"family: woman, woman, girl, girl","group":1,"hexcode":"1F469-200D-1F469-200D-1F467-200D-1F467","order":2631,"shortcodes":["family_wwgg"],"tags":["family","girl","woman"],"unicode":"👩‍👩‍👧‍👧"},{"annotation":"family: man, boy","group":1,"hexcode":"1F468-200D-1F466","order":2632,"shortcodes":["family_mb"],"tags":["boy","family","man"],"unicode":"👨‍👦"},{"annotation":"family: man, boy, boy","group":1,"hexcode":"1F468-200D-1F466-200D-1F466","order":2633,"shortcodes":["family_mbb"],"tags":["boy","family","man"],"unicode":"👨‍👦‍👦"},{"annotation":"family: man, girl","group":1,"hexcode":"1F468-200D-1F467","order":2634,"shortcodes":["family_mg"],"tags":["family","girl","man"],"unicode":"👨‍👧"},{"annotation":"family: man, girl, boy","group":1,"hexcode":"1F468-200D-1F467-200D-1F466","order":2635,"shortcodes":["family_mgb"],"tags":["boy","family","girl","man"],"unicode":"👨‍👧‍👦"},{"annotation":"family: man, girl, girl","group":1,"hexcode":"1F468-200D-1F467-200D-1F467","order":2636,"shortcodes":["family_mgg"],"tags":["family","girl","man"],"unicode":"👨‍👧‍👧"},{"annotation":"family: woman, boy","group":1,"hexcode":"1F469-200D-1F466","order":2637,"shortcodes":["family_wb"],"tags":["boy","family","woman"],"unicode":"👩‍👦"},{"annotation":"family: woman, boy, boy","group":1,"hexcode":"1F469-200D-1F466-200D-1F466","order":2638,"shortcodes":["family_wbb"],"tags":["boy","family","woman"],"unicode":"👩‍👦‍👦"},{"annotation":"family: woman, girl","group":1,"hexcode":"1F469-200D-1F467","order":2639,"shortcodes":["family_wg"],"tags":["family","girl","woman"],"unicode":"👩‍👧"},{"annotation":"family: woman, girl, boy","group":1,"hexcode":"1F469-200D-1F467-200D-1F466","order":2640,"shortcodes":["family_wgb"],"tags":["boy","family","girl","woman"],"unicode":"👩‍👧‍👦"},{"annotation":"family: woman, girl, girl","group":1,"hexcode":"1F469-200D-1F467-200D-1F467","order":2641,"shortcodes":["family_wgg"],"tags":["family","girl","woman"],"unicode":"👩‍👧‍👧"},{"annotation":"speaking head","group":1,"hexcode":"1F5E3","order":2643,"shortcodes":["speaking_head"],"tags":["face","head","silhouette","speak","speaking"],"unicode":"🗣️"},{"annotation":"bust in silhouette","group":1,"hexcode":"1F464","order":2644,"shortcodes":["bust_silhouette"],"tags":["bust","silhouette"],"unicode":"👤"},{"annotation":"busts in silhouette","group":1,"hexcode":"1F465","order":2645,"shortcodes":["busts_silhouette"],"tags":["bust","silhouette"],"unicode":"👥"},{"annotation":"people hugging","group":1,"hexcode":"1FAC2","order":2646,"shortcodes":["people_hugging"],"tags":["goodbye","hello","hug","thanks"],"unicode":"🫂"},{"annotation":"footprints","group":1,"hexcode":"1F463","order":2647,"shortcodes":["footprints"],"tags":["clothing","footprint","print"],"unicode":"👣"},{"annotation":"light skin tone","group":2,"hexcode":"1F3FB","order":2648,"shortcodes":["tone_light","tone1"],"tags":["skin tone","type 12"],"unicode":"🏻"},{"annotation":"medium-light skin tone","group":2,"hexcode":"1F3FC","order":2649,"shortcodes":["tone_medium_light","tone2"],"tags":["skin tone","type 3"],"unicode":"🏼"},{"annotation":"medium skin tone","group":2,"hexcode":"1F3FD","order":2650,"shortcodes":["tone_medium","tone3"],"tags":["skin tone","type 4"],"unicode":"🏽"},{"annotation":"medium-dark skin tone","group":2,"hexcode":"1F3FE","order":2651,"shortcodes":["tone_medium_dark","tone4"],"tags":["skin tone","type 5"],"unicode":"🏾"},{"annotation":"dark skin tone","group":2,"hexcode":"1F3FF","order":2652,"shortcodes":["tone_dark","tone5"],"tags":["skin tone","type 6"],"unicode":"🏿"},{"annotation":"red hair","group":2,"hexcode":"1F9B0","order":2653,"shortcodes":["red_hair"],"tags":["ginger","redhead"],"unicode":"🦰"},{"annotation":"curly hair","group":2,"hexcode":"1F9B1","order":2654,"shortcodes":["curly_hair"],"tags":["afro","curly","ringlets"],"unicode":"🦱"},{"annotation":"white hair","group":2,"hexcode":"1F9B3","order":2655,"shortcodes":["white_hair"],"tags":["gray","hair","old","white"],"unicode":"🦳"},{"annotation":"bald","group":2,"hexcode":"1F9B2","order":2656,"shortcodes":["bald"],"tags":["chemotherapy","hairless","no hair","shaven"],"unicode":"🦲"},{"annotation":"monkey face","group":3,"hexcode":"1F435","order":2657,"shortcodes":["monkey_face"],"tags":["face","monkey"],"unicode":"🐵"},{"annotation":"monkey","group":3,"hexcode":"1F412","order":2658,"shortcodes":["monkey"],"tags":["monkey"],"unicode":"🐒"},{"annotation":"gorilla","group":3,"hexcode":"1F98D","order":2659,"shortcodes":["gorilla"],"tags":["gorilla"],"unicode":"🦍"},{"annotation":"orangutan","group":3,"hexcode":"1F9A7","order":2660,"shortcodes":["orangutan"],"tags":["ape"],"unicode":"🦧"},{"annotation":"dog face","group":3,"hexcode":"1F436","order":2661,"shortcodes":["dog_face"],"tags":["dog","face","pet"],"unicode":"🐶"},{"annotation":"dog","group":3,"hexcode":"1F415","order":2662,"shortcodes":["dog"],"tags":["pet"],"unicode":"🐕️"},{"annotation":"guide dog","group":3,"hexcode":"1F9AE","order":2663,"shortcodes":["guide_dog"],"tags":["accessibility","blind","guide"],"unicode":"🦮"},{"annotation":"service dog","group":3,"hexcode":"1F415-200D-1F9BA","order":2664,"shortcodes":["service_dog"],"tags":["accessibility","assistance","dog","service"],"unicode":"🐕‍🦺"},{"annotation":"poodle","group":3,"hexcode":"1F429","order":2665,"shortcodes":["poodle"],"tags":["dog"],"unicode":"🐩"},{"annotation":"wolf","group":3,"hexcode":"1F43A","order":2666,"shortcodes":["wolf_face"],"tags":["face"],"unicode":"🐺"},{"annotation":"fox","group":3,"hexcode":"1F98A","order":2667,"shortcodes":["fox_face"],"tags":["face"],"unicode":"🦊"},{"annotation":"raccoon","group":3,"hexcode":"1F99D","order":2668,"shortcodes":["raccoon"],"tags":["curious","sly"],"unicode":"🦝"},{"annotation":"cat face","group":3,"hexcode":"1F431","order":2669,"shortcodes":["cat_face"],"tags":["cat","face","pet"],"unicode":"🐱"},{"annotation":"cat","group":3,"hexcode":"1F408","order":2670,"shortcodes":["cat"],"tags":["pet"],"unicode":"🐈️"},{"annotation":"black cat","group":3,"hexcode":"1F408-200D-2B1B","order":2671,"shortcodes":["black_cat"],"tags":["black","cat","unlucky"],"unicode":"🐈‍⬛"},{"annotation":"lion","group":3,"hexcode":"1F981","order":2672,"shortcodes":["lion_face"],"tags":["face","leo","zodiac"],"unicode":"🦁"},{"annotation":"tiger face","group":3,"hexcode":"1F42F","order":2673,"shortcodes":["tiger_face"],"tags":["face","tiger"],"unicode":"🐯"},{"annotation":"tiger","group":3,"hexcode":"1F405","order":2674,"shortcodes":["tiger"],"tags":["tiger"],"unicode":"🐅"},{"annotation":"leopard","group":3,"hexcode":"1F406","order":2675,"shortcodes":["leopard"],"tags":["leopard"],"unicode":"🐆"},{"annotation":"horse face","group":3,"hexcode":"1F434","order":2676,"shortcodes":["horse_face"],"tags":["face","horse"],"unicode":"🐴"},{"annotation":"horse","group":3,"hexcode":"1F40E","order":2677,"shortcodes":["horse"],"tags":["equestrian","racehorse","racing"],"unicode":"🐎"},{"annotation":"unicorn","group":3,"hexcode":"1F984","order":2678,"shortcodes":["unicorn_face"],"tags":["face"],"unicode":"🦄"},{"annotation":"zebra","group":3,"hexcode":"1F993","order":2679,"shortcodes":["zebra"],"tags":["stripe"],"unicode":"🦓"},{"annotation":"deer","group":3,"hexcode":"1F98C","order":2680,"shortcodes":["deer"],"tags":["deer"],"unicode":"🦌"},{"annotation":"bison","group":3,"hexcode":"1F9AC","order":2681,"shortcodes":["bison"],"tags":["buffalo","herd","wisent"],"unicode":"🦬"},{"annotation":"cow face","group":3,"hexcode":"1F42E","order":2682,"shortcodes":["cow_face"],"tags":["cow","face"],"unicode":"🐮"},{"annotation":"ox","group":3,"hexcode":"1F402","order":2683,"shortcodes":["ox"],"tags":["bull","taurus","zodiac"],"unicode":"🐂"},{"annotation":"water buffalo","group":3,"hexcode":"1F403","order":2684,"shortcodes":["water_buffalo"],"tags":["buffalo","water"],"unicode":"🐃"},{"annotation":"cow","group":3,"hexcode":"1F404","order":2685,"shortcodes":["cow"],"tags":["cow"],"unicode":"🐄"},{"annotation":"pig face","group":3,"hexcode":"1F437","order":2686,"shortcodes":["pig_face"],"tags":["face","pig"],"unicode":"🐷"},{"annotation":"pig","group":3,"hexcode":"1F416","order":2687,"shortcodes":["pig"],"tags":["sow"],"unicode":"🐖"},{"annotation":"boar","group":3,"hexcode":"1F417","order":2688,"shortcodes":["boar"],"tags":["pig"],"unicode":"🐗"},{"annotation":"pig nose","group":3,"hexcode":"1F43D","order":2689,"shortcodes":["pig_nose"],"tags":["face","nose","pig"],"unicode":"🐽"},{"annotation":"ram","group":3,"hexcode":"1F40F","order":2690,"shortcodes":["ram"],"tags":["aries","male","sheep","zodiac"],"unicode":"🐏"},{"annotation":"ewe","group":3,"hexcode":"1F411","order":2691,"shortcodes":["sheep"],"tags":["female","sheep"],"unicode":"🐑"},{"annotation":"goat","group":3,"hexcode":"1F410","order":2692,"shortcodes":["goat"],"tags":["capricorn","zodiac"],"unicode":"🐐"},{"annotation":"camel","group":3,"hexcode":"1F42A","order":2693,"shortcodes":["camel"],"tags":["dromedary","hump"],"unicode":"🐪"},{"annotation":"two-hump camel","group":3,"hexcode":"1F42B","order":2694,"shortcodes":["two_hump_camel"],"tags":["bactrian","camel","hump"],"unicode":"🐫"},{"annotation":"llama","group":3,"hexcode":"1F999","order":2695,"shortcodes":["llama"],"tags":["alpaca","guanaco","vicuña","wool"],"unicode":"🦙"},{"annotation":"giraffe","group":3,"hexcode":"1F992","order":2696,"shortcodes":["giraffe"],"tags":["spots"],"unicode":"🦒"},{"annotation":"elephant","group":3,"hexcode":"1F418","order":2697,"shortcodes":["elephant"],"tags":["elephant"],"unicode":"🐘"},{"annotation":"mammoth","group":3,"hexcode":"1F9A3","order":2698,"shortcodes":["mammoth"],"tags":["extinction","large","tusk","woolly"],"unicode":"🦣"},{"annotation":"rhinoceros","group":3,"hexcode":"1F98F","order":2699,"shortcodes":["rhino"],"tags":["rhinoceros"],"unicode":"🦏"},{"annotation":"hippopotamus","group":3,"hexcode":"1F99B","order":2700,"shortcodes":["hippo"],"tags":["hippo"],"unicode":"🦛"},{"annotation":"mouse face","group":3,"hexcode":"1F42D","order":2701,"shortcodes":["mouse_face"],"tags":["face","mouse"],"unicode":"🐭"},{"annotation":"mouse","group":3,"hexcode":"1F401","order":2702,"shortcodes":["mouse"],"tags":["mouse"],"unicode":"🐁"},{"annotation":"rat","group":3,"hexcode":"1F400","order":2703,"shortcodes":["rat"],"tags":["rat"],"unicode":"🐀"},{"annotation":"hamster","group":3,"hexcode":"1F439","order":2704,"shortcodes":["hamster_face"],"tags":["face","pet"],"unicode":"🐹"},{"annotation":"rabbit face","group":3,"hexcode":"1F430","order":2705,"shortcodes":["rabbit_face"],"tags":["bunny","face","pet","rabbit"],"unicode":"🐰"},{"annotation":"rabbit","group":3,"hexcode":"1F407","order":2706,"shortcodes":["rabbit"],"tags":["bunny","pet"],"unicode":"🐇"},{"annotation":"chipmunk","group":3,"hexcode":"1F43F","order":2708,"shortcodes":["chipmunk"],"tags":["squirrel"],"unicode":"🐿️"},{"annotation":"beaver","group":3,"hexcode":"1F9AB","order":2709,"shortcodes":["beaver"],"tags":["dam"],"unicode":"🦫"},{"annotation":"hedgehog","group":3,"hexcode":"1F994","order":2710,"shortcodes":["hedgehog"],"tags":["spiny"],"unicode":"🦔"},{"annotation":"bat","group":3,"hexcode":"1F987","order":2711,"shortcodes":["bat"],"tags":["vampire"],"unicode":"🦇"},{"annotation":"bear","group":3,"hexcode":"1F43B","order":2712,"shortcodes":["bear_face"],"tags":["face"],"unicode":"🐻"},{"annotation":"polar bear","group":3,"hexcode":"1F43B-200D-2744-FE0F","order":2713,"shortcodes":["polar_bear_face"],"tags":["arctic","bear","white"],"unicode":"🐻‍❄️"},{"annotation":"koala","group":3,"hexcode":"1F428","order":2715,"shortcodes":["koala_face"],"tags":["bear"],"unicode":"🐨"},{"annotation":"panda","group":3,"hexcode":"1F43C","order":2716,"shortcodes":["panda_face"],"tags":["face"],"unicode":"🐼"},{"annotation":"sloth","group":3,"hexcode":"1F9A5","order":2717,"shortcodes":["sloth"],"tags":["lazy","slow"],"unicode":"🦥"},{"annotation":"otter","group":3,"hexcode":"1F9A6","order":2718,"shortcodes":["otter"],"tags":["fishing","playful"],"unicode":"🦦"},{"annotation":"skunk","group":3,"hexcode":"1F9A8","order":2719,"shortcodes":["skunk"],"tags":["stink"],"unicode":"🦨"},{"annotation":"kangaroo","group":3,"hexcode":"1F998","order":2720,"shortcodes":["kangaroo"],"tags":["australia","joey","jump","marsupial"],"unicode":"🦘"},{"annotation":"badger","group":3,"hexcode":"1F9A1","order":2721,"shortcodes":["badger"],"tags":["honey badger","pester"],"unicode":"🦡"},{"annotation":"paw prints","group":3,"hexcode":"1F43E","order":2722,"shortcodes":["feet"],"tags":["feet","paw","print"],"unicode":"🐾"},{"annotation":"turkey","group":3,"hexcode":"1F983","order":2723,"shortcodes":["turkey"],"tags":["bird"],"unicode":"🦃"},{"annotation":"chicken","group":3,"hexcode":"1F414","order":2724,"shortcodes":["chicken"],"tags":["bird"],"unicode":"🐔"},{"annotation":"rooster","group":3,"hexcode":"1F413","order":2725,"shortcodes":["rooster"],"tags":["bird"],"unicode":"🐓"},{"annotation":"hatching chick","group":3,"hexcode":"1F423","order":2726,"shortcodes":["hatching_chick"],"tags":["baby","bird","chick","hatching"],"unicode":"🐣"},{"annotation":"baby chick","group":3,"hexcode":"1F424","order":2727,"shortcodes":["baby_chick"],"tags":["baby","bird","chick"],"unicode":"🐤"},{"annotation":"front-facing baby chick","group":3,"hexcode":"1F425","order":2728,"shortcodes":["hatched_chick"],"tags":["baby","bird","chick"],"unicode":"🐥"},{"annotation":"bird","group":3,"hexcode":"1F426","order":2729,"shortcodes":["bird"],"tags":["bird"],"unicode":"🐦️"},{"annotation":"penguin","group":3,"hexcode":"1F427","order":2730,"shortcodes":["penguin"],"tags":["bird"],"unicode":"🐧"},{"annotation":"dove","group":3,"hexcode":"1F54A","order":2732,"shortcodes":["dove"],"tags":["bird","fly","peace"],"unicode":"🕊️"},{"annotation":"eagle","group":3,"hexcode":"1F985","order":2733,"shortcodes":["eagle"],"tags":["bird"],"unicode":"🦅"},{"annotation":"duck","group":3,"hexcode":"1F986","order":2734,"shortcodes":["duck"],"tags":["bird"],"unicode":"🦆"},{"annotation":"swan","group":3,"hexcode":"1F9A2","order":2735,"shortcodes":["swan"],"tags":["bird","cygnet","ugly duckling"],"unicode":"🦢"},{"annotation":"owl","group":3,"hexcode":"1F989","order":2736,"shortcodes":["owl"],"tags":["bird","wise"],"unicode":"🦉"},{"annotation":"dodo","group":3,"hexcode":"1F9A4","order":2737,"shortcodes":["dodo"],"tags":["extinction","large","mauritius"],"unicode":"🦤"},{"annotation":"feather","group":3,"hexcode":"1FAB6","order":2738,"shortcodes":["feather"],"tags":["bird","flight","light","plumage"],"unicode":"🪶"},{"annotation":"flamingo","group":3,"hexcode":"1F9A9","order":2739,"shortcodes":["flamingo"],"tags":["flamboyant","tropical"],"unicode":"🦩"},{"annotation":"peacock","group":3,"hexcode":"1F99A","order":2740,"shortcodes":["peacock"],"tags":["bird","ostentatious","peahen","proud"],"unicode":"🦚"},{"annotation":"parrot","group":3,"hexcode":"1F99C","order":2741,"shortcodes":["parrot"],"tags":["bird","pirate","talk"],"unicode":"🦜"},{"annotation":"frog","group":3,"hexcode":"1F438","order":2742,"shortcodes":["frog_face"],"tags":["face"],"unicode":"🐸"},{"annotation":"crocodile","group":3,"hexcode":"1F40A","order":2743,"shortcodes":["crocodile"],"tags":["crocodile"],"unicode":"🐊"},{"annotation":"turtle","group":3,"hexcode":"1F422","order":2744,"shortcodes":["turtle"],"tags":["terrapin","tortoise"],"unicode":"🐢"},{"annotation":"lizard","group":3,"hexcode":"1F98E","order":2745,"shortcodes":["lizard"],"tags":["reptile"],"unicode":"🦎"},{"annotation":"snake","group":3,"hexcode":"1F40D","order":2746,"shortcodes":["snake"],"tags":["bearer","ophiuchus","serpent","zodiac"],"unicode":"🐍"},{"annotation":"dragon face","group":3,"hexcode":"1F432","order":2747,"shortcodes":["dragon_face"],"tags":["dragon","face","fairy tale"],"unicode":"🐲"},{"annotation":"dragon","group":3,"hexcode":"1F409","order":2748,"shortcodes":["dragon"],"tags":["fairy tale"],"unicode":"🐉"},{"annotation":"sauropod","group":3,"hexcode":"1F995","order":2749,"shortcodes":["sauropod"],"tags":["brachiosaurus","brontosaurus","diplodocus"],"unicode":"🦕"},{"annotation":"T-Rex","group":3,"hexcode":"1F996","order":2750,"shortcodes":["trex"],"tags":["t-rex","tyrannosaurus rex"],"unicode":"🦖"},{"annotation":"spouting whale","group":3,"hexcode":"1F433","order":2751,"shortcodes":["spouting_whale"],"tags":["face","spouting","whale"],"unicode":"🐳"},{"annotation":"whale","group":3,"hexcode":"1F40B","order":2752,"shortcodes":["whale"],"tags":["whale"],"unicode":"🐋"},{"annotation":"dolphin","group":3,"hexcode":"1F42C","order":2753,"shortcodes":["dolphin"],"tags":["flipper"],"unicode":"🐬"},{"annotation":"seal","group":3,"hexcode":"1F9AD","order":2754,"shortcodes":["seal"],"tags":["sea lion"],"unicode":"🦭"},{"annotation":"fish","group":3,"hexcode":"1F41F","order":2755,"shortcodes":["fish"],"tags":["pisces","zodiac"],"unicode":"🐟️"},{"annotation":"tropical fish","group":3,"hexcode":"1F420","order":2756,"shortcodes":["tropical_fish"],"tags":["fish","tropical"],"unicode":"🐠"},{"annotation":"blowfish","group":3,"hexcode":"1F421","order":2757,"shortcodes":["blowfish"],"tags":["fish"],"unicode":"🐡"},{"annotation":"shark","group":3,"hexcode":"1F988","order":2758,"shortcodes":["shark"],"tags":["fish"],"unicode":"🦈"},{"annotation":"octopus","group":3,"hexcode":"1F419","order":2759,"shortcodes":["octopus"],"tags":["octopus"],"unicode":"🐙"},{"annotation":"spiral shell","group":3,"hexcode":"1F41A","order":2760,"shortcodes":["shell"],"tags":["shell","spiral"],"unicode":"🐚"},{"annotation":"snail","group":3,"hexcode":"1F40C","order":2761,"shortcodes":["snail"],"tags":["snail"],"unicode":"🐌"},{"annotation":"butterfly","group":3,"hexcode":"1F98B","order":2762,"shortcodes":["butterfly"],"tags":["insect","pretty"],"unicode":"🦋"},{"annotation":"bug","group":3,"hexcode":"1F41B","order":2763,"shortcodes":["bug"],"tags":["insect"],"unicode":"🐛"},{"annotation":"ant","group":3,"hexcode":"1F41C","order":2764,"shortcodes":["ant"],"tags":["insect"],"unicode":"🐜"},{"annotation":"honeybee","group":3,"hexcode":"1F41D","order":2765,"shortcodes":["bee"],"tags":["bee","insect"],"unicode":"🐝"},{"annotation":"beetle","group":3,"hexcode":"1FAB2","order":2766,"shortcodes":["beetle"],"tags":["bug","insect"],"unicode":"🪲"},{"annotation":"lady beetle","group":3,"hexcode":"1F41E","order":2767,"shortcodes":["lady_bug"],"tags":["beetle","insect","ladybird","ladybug"],"unicode":"🐞"},{"annotation":"cricket","group":3,"hexcode":"1F997","order":2768,"shortcodes":["cricket"],"tags":["grasshopper"],"unicode":"🦗"},{"annotation":"cockroach","group":3,"hexcode":"1FAB3","order":2769,"shortcodes":["cockroach"],"tags":["insect","pest","roach"],"unicode":"🪳"},{"annotation":"spider","group":3,"hexcode":"1F577","order":2771,"shortcodes":["spider"],"tags":["insect"],"unicode":"🕷️"},{"annotation":"spider web","group":3,"hexcode":"1F578","order":2773,"shortcodes":["spider_web"],"tags":["spider","web"],"unicode":"🕸️"},{"annotation":"scorpion","group":3,"hexcode":"1F982","order":2774,"shortcodes":["scorpion"],"tags":["scorpio","zodiac"],"unicode":"🦂"},{"annotation":"mosquito","group":3,"hexcode":"1F99F","order":2775,"shortcodes":["mosquito"],"tags":["disease","fever","malaria","pest","virus"],"unicode":"🦟"},{"annotation":"fly","group":3,"hexcode":"1FAB0","order":2776,"shortcodes":["fly"],"tags":["disease","maggot","pest","rotting"],"unicode":"🪰"},{"annotation":"worm","group":3,"hexcode":"1FAB1","order":2777,"shortcodes":["worm"],"tags":["annelid","earthworm","parasite"],"unicode":"🪱"},{"annotation":"microbe","group":3,"hexcode":"1F9A0","order":2778,"shortcodes":["microbe","germ"],"tags":["amoeba","bacteria","virus"],"unicode":"🦠"},{"annotation":"bouquet","group":3,"hexcode":"1F490","order":2779,"shortcodes":["bouquet"],"tags":["flower"],"unicode":"💐"},{"annotation":"cherry blossom","group":3,"hexcode":"1F338","order":2780,"shortcodes":["cherry_blossom"],"tags":["blossom","cherry","flower"],"unicode":"🌸"},{"annotation":"white flower","group":3,"hexcode":"1F4AE","order":2781,"shortcodes":["white_flower"],"tags":["flower"],"unicode":"💮"},{"annotation":"rosette","group":3,"hexcode":"1F3F5","order":2783,"shortcodes":["rosette"],"tags":["plant"],"unicode":"🏵️"},{"annotation":"rose","group":3,"hexcode":"1F339","order":2784,"shortcodes":["rose"],"tags":["flower"],"unicode":"🌹"},{"annotation":"wilted flower","group":3,"hexcode":"1F940","order":2785,"shortcodes":["wilted_rose"],"tags":["flower","wilted"],"unicode":"🥀"},{"annotation":"hibiscus","group":3,"hexcode":"1F33A","order":2786,"shortcodes":["hibiscus"],"tags":["flower"],"unicode":"🌺"},{"annotation":"sunflower","group":3,"hexcode":"1F33B","order":2787,"shortcodes":["sunflower"],"tags":["flower","sun"],"unicode":"🌻"},{"annotation":"blossom","group":3,"hexcode":"1F33C","order":2788,"shortcodes":["blossom"],"tags":["flower"],"unicode":"🌼"},{"annotation":"tulip","group":3,"hexcode":"1F337","order":2789,"shortcodes":["tulip"],"tags":["flower"],"unicode":"🌷"},{"annotation":"seedling","group":3,"hexcode":"1F331","order":2790,"shortcodes":["seedling"],"tags":["young"],"unicode":"🌱"},{"annotation":"potted plant","group":3,"hexcode":"1FAB4","order":2791,"shortcodes":["potted_plant"],"tags":["boring","grow","house","nurturing","plant","useless"],"unicode":"🪴"},{"annotation":"evergreen tree","group":3,"hexcode":"1F332","order":2792,"shortcodes":["evergreen_tree"],"tags":["tree"],"unicode":"🌲"},{"annotation":"deciduous tree","group":3,"hexcode":"1F333","order":2793,"shortcodes":["deciduous_tree"],"tags":["deciduous","shedding","tree"],"unicode":"🌳"},{"annotation":"palm tree","group":3,"hexcode":"1F334","order":2794,"shortcodes":["palm_tree"],"tags":["palm","tree"],"unicode":"🌴"},{"annotation":"cactus","group":3,"hexcode":"1F335","order":2795,"shortcodes":["cactus"],"tags":["plant"],"unicode":"🌵"},{"annotation":"sheaf of rice","group":3,"hexcode":"1F33E","order":2796,"shortcodes":["ear_of_rice"],"tags":["ear","grain","rice"],"unicode":"🌾"},{"annotation":"herb","group":3,"hexcode":"1F33F","order":2797,"shortcodes":["herb"],"tags":["leaf"],"unicode":"🌿"},{"annotation":"shamrock","group":3,"hexcode":"2618","order":2799,"shortcodes":["shamrock"],"tags":["plant"],"unicode":"☘️"},{"annotation":"four leaf clover","group":3,"hexcode":"1F340","order":2800,"shortcodes":["four_leaf_clover"],"tags":["4","clover","four","four-leaf clover","leaf"],"unicode":"🍀"},{"annotation":"maple leaf","group":3,"hexcode":"1F341","order":2801,"shortcodes":["maple_leaf"],"tags":["falling","leaf","maple"],"unicode":"🍁"},{"annotation":"fallen leaf","group":3,"hexcode":"1F342","order":2802,"shortcodes":["fallen_leaf"],"tags":["falling","leaf"],"unicode":"🍂"},{"annotation":"leaf fluttering in wind","group":3,"hexcode":"1F343","order":2803,"shortcodes":["leaves"],"tags":["blow","flutter","leaf","wind"],"unicode":"🍃"},{"annotation":"grapes","group":4,"hexcode":"1F347","order":2804,"shortcodes":["grapes"],"tags":["fruit","grape"],"unicode":"🍇"},{"annotation":"melon","group":4,"hexcode":"1F348","order":2805,"shortcodes":["melon"],"tags":["fruit"],"unicode":"🍈"},{"annotation":"watermelon","group":4,"hexcode":"1F349","order":2806,"shortcodes":["watermelon"],"tags":["fruit"],"unicode":"🍉"},{"annotation":"tangerine","group":4,"hexcode":"1F34A","order":2807,"shortcodes":["tangerine"],"tags":["fruit","orange"],"unicode":"🍊"},{"annotation":"lemon","group":4,"hexcode":"1F34B","order":2808,"shortcodes":["lemon"],"tags":["citrus","fruit"],"unicode":"🍋"},{"annotation":"banana","group":4,"hexcode":"1F34C","order":2809,"shortcodes":["banana"],"tags":["fruit"],"unicode":"🍌"},{"annotation":"pineapple","group":4,"hexcode":"1F34D","order":2810,"shortcodes":["pineapple"],"tags":["fruit"],"unicode":"🍍"},{"annotation":"mango","group":4,"hexcode":"1F96D","order":2811,"shortcodes":["mango"],"tags":["fruit","tropical"],"unicode":"🥭"},{"annotation":"red apple","group":4,"hexcode":"1F34E","order":2812,"shortcodes":["apple"],"tags":["apple","fruit","red"],"unicode":"🍎"},{"annotation":"green apple","group":4,"hexcode":"1F34F","order":2813,"shortcodes":["green_apple"],"tags":["apple","fruit","green"],"unicode":"🍏"},{"annotation":"pear","group":4,"hexcode":"1F350","order":2814,"shortcodes":["pear"],"tags":["fruit"],"unicode":"🍐"},{"annotation":"peach","group":4,"hexcode":"1F351","order":2815,"shortcodes":["peach"],"tags":["fruit"],"unicode":"🍑"},{"annotation":"cherries","group":4,"hexcode":"1F352","order":2816,"shortcodes":["cherries"],"tags":["berries","cherry","fruit","red"],"unicode":"🍒"},{"annotation":"strawberry","group":4,"hexcode":"1F353","order":2817,"shortcodes":["strawberry"],"tags":["berry","fruit"],"unicode":"🍓"},{"annotation":"blueberries","group":4,"hexcode":"1FAD0","order":2818,"shortcodes":["blueberry"],"tags":["berry","bilberry","blue","blueberry"],"unicode":"🫐"},{"annotation":"kiwi fruit","group":4,"hexcode":"1F95D","order":2819,"shortcodes":["kiwi"],"tags":["food","fruit","kiwi"],"unicode":"🥝"},{"annotation":"tomato","group":4,"hexcode":"1F345","order":2820,"shortcodes":["tomato"],"tags":["fruit","vegetable"],"unicode":"🍅"},{"annotation":"olive","group":4,"hexcode":"1FAD2","order":2821,"shortcodes":["olive"],"tags":["food"],"unicode":"🫒"},{"annotation":"coconut","group":4,"hexcode":"1F965","order":2822,"shortcodes":["coconut"],"tags":["palm","piña colada"],"unicode":"🥥"},{"annotation":"avocado","group":4,"hexcode":"1F951","order":2823,"shortcodes":["avocado"],"tags":["food","fruit"],"unicode":"🥑"},{"annotation":"eggplant","group":4,"hexcode":"1F346","order":2824,"shortcodes":["eggplant"],"tags":["aubergine","vegetable"],"unicode":"🍆"},{"annotation":"potato","group":4,"hexcode":"1F954","order":2825,"shortcodes":["potato"],"tags":["food","vegetable"],"unicode":"🥔"},{"annotation":"carrot","group":4,"hexcode":"1F955","order":2826,"shortcodes":["carrot"],"tags":["food","vegetable"],"unicode":"🥕"},{"annotation":"ear of corn","group":4,"hexcode":"1F33D","order":2827,"shortcodes":["corn"],"tags":["corn","ear","maize","maze"],"unicode":"🌽"},{"annotation":"hot pepper","group":4,"hexcode":"1F336","order":2829,"shortcodes":["hot_pepper"],"tags":["hot","pepper"],"unicode":"🌶️"},{"annotation":"bell pepper","group":4,"hexcode":"1FAD1","order":2830,"shortcodes":["bell_pepper"],"tags":["capsicum","pepper","vegetable"],"unicode":"🫑"},{"annotation":"cucumber","group":4,"hexcode":"1F952","order":2831,"shortcodes":["cucumber"],"tags":["food","pickle","vegetable"],"unicode":"🥒"},{"annotation":"leafy green","group":4,"hexcode":"1F96C","order":2832,"shortcodes":["leafy_green"],"tags":["bok choy","cabbage","kale","lettuce"],"unicode":"🥬"},{"annotation":"broccoli","group":4,"hexcode":"1F966","order":2833,"shortcodes":["broccoli"],"tags":["wild cabbage"],"unicode":"🥦"},{"annotation":"garlic","group":4,"hexcode":"1F9C4","order":2834,"shortcodes":["garlic"],"tags":["flavoring"],"unicode":"🧄"},{"annotation":"onion","group":4,"hexcode":"1F9C5","order":2835,"shortcodes":["onion"],"tags":["flavoring"],"unicode":"🧅"},{"annotation":"mushroom","group":4,"hexcode":"1F344","order":2836,"shortcodes":["mushroom"],"tags":["toadstool"],"unicode":"🍄"},{"annotation":"peanuts","group":4,"hexcode":"1F95C","order":2837,"shortcodes":["peanuts"],"tags":["food","nut","peanut","vegetable"],"unicode":"🥜"},{"annotation":"chestnut","group":4,"hexcode":"1F330","order":2838,"shortcodes":["chestnut"],"tags":["plant"],"unicode":"🌰"},{"annotation":"bread","group":4,"hexcode":"1F35E","order":2839,"shortcodes":["bread"],"tags":["loaf"],"unicode":"🍞"},{"annotation":"croissant","group":4,"hexcode":"1F950","order":2840,"shortcodes":["croissant"],"tags":["bread","breakfast","food","french","roll"],"unicode":"🥐"},{"annotation":"baguette bread","group":4,"hexcode":"1F956","order":2841,"shortcodes":["french_bread"],"tags":["baguette","bread","food","french"],"unicode":"🥖"},{"annotation":"flatbread","group":4,"hexcode":"1FAD3","order":2842,"shortcodes":["flatbread"],"tags":["arepa","lavash","naan","pita"],"unicode":"🫓"},{"annotation":"pretzel","group":4,"hexcode":"1F968","order":2843,"shortcodes":["pretzel"],"tags":["twisted"],"unicode":"🥨"},{"annotation":"bagel","group":4,"hexcode":"1F96F","order":2844,"shortcodes":["bagel"],"tags":["bakery","breakfast","schmear"],"unicode":"🥯"},{"annotation":"pancakes","group":4,"hexcode":"1F95E","order":2845,"shortcodes":["pancakes"],"tags":["breakfast","crêpe","food","hotcake","pancake"],"unicode":"🥞"},{"annotation":"waffle","group":4,"hexcode":"1F9C7","order":2846,"shortcodes":["waffle"],"tags":["breakfast","indecisive","iron"],"unicode":"🧇"},{"annotation":"cheese wedge","group":4,"hexcode":"1F9C0","order":2847,"shortcodes":["cheese"],"tags":["cheese"],"unicode":"🧀"},{"annotation":"meat on bone","group":4,"hexcode":"1F356","order":2848,"shortcodes":["meat_on_bone"],"tags":["bone","meat"],"unicode":"🍖"},{"annotation":"poultry leg","group":4,"hexcode":"1F357","order":2849,"shortcodes":["poultry_leg"],"tags":["bone","chicken","drumstick","leg","poultry"],"unicode":"🍗"},{"annotation":"cut of meat","group":4,"hexcode":"1F969","order":2850,"shortcodes":["cut_of_meat"],"tags":["chop","lambchop","porkchop","steak"],"unicode":"🥩"},{"annotation":"bacon","group":4,"hexcode":"1F953","order":2851,"shortcodes":["bacon"],"tags":["breakfast","food","meat"],"unicode":"🥓"},{"annotation":"hamburger","group":4,"hexcode":"1F354","order":2852,"shortcodes":["hamburger"],"tags":["burger"],"unicode":"🍔"},{"annotation":"french fries","group":4,"hexcode":"1F35F","order":2853,"shortcodes":["fries"],"tags":["french","fries"],"unicode":"🍟"},{"annotation":"pizza","group":4,"hexcode":"1F355","order":2854,"shortcodes":["pizza"],"tags":["cheese","slice"],"unicode":"🍕"},{"annotation":"hot dog","group":4,"hexcode":"1F32D","order":2855,"shortcodes":["hotdog"],"tags":["frankfurter","hotdog","sausage"],"unicode":"🌭"},{"annotation":"sandwich","group":4,"hexcode":"1F96A","order":2856,"shortcodes":["sandwich"],"tags":["bread"],"unicode":"🥪"},{"annotation":"taco","group":4,"hexcode":"1F32E","order":2857,"shortcodes":["taco"],"tags":["mexican"],"unicode":"🌮"},{"annotation":"burrito","group":4,"hexcode":"1F32F","order":2858,"shortcodes":["burrito"],"tags":["mexican","wrap"],"unicode":"🌯"},{"annotation":"tamale","group":4,"hexcode":"1FAD4","order":2859,"shortcodes":["tamale"],"tags":["mexican","wrapped"],"unicode":"🫔"},{"annotation":"stuffed flatbread","group":4,"hexcode":"1F959","order":2860,"shortcodes":["stuffed_flatbread"],"tags":["falafel","flatbread","food","gyro","kebab","stuffed"],"unicode":"🥙"},{"annotation":"falafel","group":4,"hexcode":"1F9C6","order":2861,"shortcodes":["falafel"],"tags":["chickpea","meatball"],"unicode":"🧆"},{"annotation":"egg","group":4,"hexcode":"1F95A","order":2862,"shortcodes":["egg"],"tags":["breakfast","food"],"unicode":"🥚"},{"annotation":"cooking","group":4,"hexcode":"1F373","order":2863,"shortcodes":["cooking"],"tags":["breakfast","egg","frying","pan"],"unicode":"🍳"},{"annotation":"shallow pan of food","group":4,"hexcode":"1F958","order":2864,"shortcodes":["shallow_pan_of_food"],"tags":["casserole","food","paella","pan","shallow"],"unicode":"🥘"},{"annotation":"pot of food","group":4,"hexcode":"1F372","order":2865,"shortcodes":["stew"],"tags":["pot","stew"],"unicode":"🍲"},{"annotation":"fondue","group":4,"hexcode":"1FAD5","order":2866,"shortcodes":["fondue"],"tags":["cheese","chocolate","melted","pot","swiss"],"unicode":"🫕"},{"annotation":"bowl with spoon","group":4,"hexcode":"1F963","order":2867,"shortcodes":["bowl_spoon"],"tags":["breakfast","cereal","congee"],"unicode":"🥣"},{"annotation":"green salad","group":4,"hexcode":"1F957","order":2868,"shortcodes":["salad"],"tags":["food","green","salad"],"unicode":"🥗"},{"annotation":"popcorn","group":4,"hexcode":"1F37F","order":2869,"shortcodes":["popcorn"],"tags":["popcorn"],"unicode":"🍿"},{"annotation":"butter","group":4,"hexcode":"1F9C8","order":2870,"shortcodes":["butter"],"tags":["dairy"],"unicode":"🧈"},{"annotation":"salt","group":4,"hexcode":"1F9C2","order":2871,"shortcodes":["salt"],"tags":["condiment","shaker"],"unicode":"🧂"},{"annotation":"canned food","group":4,"hexcode":"1F96B","order":2872,"shortcodes":["canned_food"],"tags":["can"],"unicode":"🥫"},{"annotation":"bento box","group":4,"hexcode":"1F371","order":2873,"shortcodes":["bento"],"tags":["bento","box"],"unicode":"🍱"},{"annotation":"rice cracker","group":4,"hexcode":"1F358","order":2874,"shortcodes":["rice_cracker"],"tags":["cracker","rice"],"unicode":"🍘"},{"annotation":"rice ball","group":4,"hexcode":"1F359","order":2875,"shortcodes":["rice_ball"],"tags":["ball","japanese","rice"],"unicode":"🍙"},{"annotation":"cooked rice","group":4,"hexcode":"1F35A","order":2876,"shortcodes":["rice"],"tags":["cooked","rice"],"unicode":"🍚"},{"annotation":"curry rice","group":4,"hexcode":"1F35B","order":2877,"shortcodes":["curry"],"tags":["curry","rice"],"unicode":"🍛"},{"annotation":"steaming bowl","group":4,"hexcode":"1F35C","order":2878,"shortcodes":["ramen"],"tags":["bowl","noodle","ramen","steaming"],"unicode":"🍜"},{"annotation":"spaghetti","group":4,"hexcode":"1F35D","order":2879,"shortcodes":["spaghetti"],"tags":["pasta"],"unicode":"🍝"},{"annotation":"roasted sweet potato","group":4,"hexcode":"1F360","order":2880,"shortcodes":["sweet_potato"],"tags":["potato","roasted","sweet"],"unicode":"🍠"},{"annotation":"oden","group":4,"hexcode":"1F362","order":2881,"shortcodes":["oden"],"tags":["kebab","seafood","skewer","stick"],"unicode":"🍢"},{"annotation":"sushi","group":4,"hexcode":"1F363","order":2882,"shortcodes":["sushi"],"tags":["sushi"],"unicode":"🍣"},{"annotation":"fried shrimp","group":4,"hexcode":"1F364","order":2883,"shortcodes":["fried_shrimp"],"tags":["fried","prawn","shrimp","tempura"],"unicode":"🍤"},{"annotation":"fish cake with swirl","group":4,"hexcode":"1F365","order":2884,"shortcodes":["fish_cake"],"tags":["cake","fish","pastry","swirl"],"unicode":"🍥"},{"annotation":"moon cake","group":4,"hexcode":"1F96E","order":2885,"shortcodes":["moon_cake"],"tags":["autumn","festival","yuèbǐng"],"unicode":"🥮"},{"annotation":"dango","group":4,"hexcode":"1F361","order":2886,"shortcodes":["dango"],"tags":["dessert","japanese","skewer","stick","sweet"],"unicode":"🍡"},{"annotation":"dumpling","group":4,"hexcode":"1F95F","order":2887,"shortcodes":["dumpling"],"tags":["empanada","gyōza","jiaozi","pierogi","potsticker"],"unicode":"🥟"},{"annotation":"fortune cookie","group":4,"hexcode":"1F960","order":2888,"shortcodes":["fortune_cookie"],"tags":["prophecy"],"unicode":"🥠"},{"annotation":"takeout box","group":4,"hexcode":"1F961","order":2889,"shortcodes":["takeout_box"],"tags":["oyster pail"],"unicode":"🥡"},{"annotation":"crab","group":4,"hexcode":"1F980","order":2890,"shortcodes":["crab"],"tags":["cancer","zodiac"],"unicode":"🦀"},{"annotation":"lobster","group":4,"hexcode":"1F99E","order":2891,"shortcodes":["lobster"],"tags":["bisque","claws","seafood"],"unicode":"🦞"},{"annotation":"shrimp","group":4,"hexcode":"1F990","order":2892,"shortcodes":["shrimp"],"tags":["food","shellfish","small"],"unicode":"🦐"},{"annotation":"squid","group":4,"hexcode":"1F991","order":2893,"shortcodes":["squid"],"tags":["food","molusc"],"unicode":"🦑"},{"annotation":"oyster","group":4,"hexcode":"1F9AA","order":2894,"shortcodes":["oyster"],"tags":["diving","pearl"],"unicode":"🦪"},{"annotation":"soft ice cream","group":4,"hexcode":"1F366","order":2895,"shortcodes":["icecream"],"tags":["cream","dessert","ice","icecream","soft","sweet"],"unicode":"🍦"},{"annotation":"shaved ice","group":4,"hexcode":"1F367","order":2896,"shortcodes":["shaved_ice"],"tags":["dessert","ice","shaved","sweet"],"unicode":"🍧"},{"annotation":"ice cream","group":4,"hexcode":"1F368","order":2897,"shortcodes":["ice_cream"],"tags":["cream","dessert","ice","sweet"],"unicode":"🍨"},{"annotation":"doughnut","group":4,"hexcode":"1F369","order":2898,"shortcodes":["doughnut"],"tags":["breakfast","dessert","donut","sweet"],"unicode":"🍩"},{"annotation":"cookie","group":4,"hexcode":"1F36A","order":2899,"shortcodes":["cookie"],"tags":["dessert","sweet"],"unicode":"🍪"},{"annotation":"birthday cake","group":4,"hexcode":"1F382","order":2900,"shortcodes":["birthday"],"tags":["birthday","cake","celebration","dessert","pastry","sweet"],"unicode":"🎂"},{"annotation":"shortcake","group":4,"hexcode":"1F370","order":2901,"shortcodes":["cake"],"tags":["cake","dessert","pastry","slice","sweet"],"unicode":"🍰"},{"annotation":"cupcake","group":4,"hexcode":"1F9C1","order":2902,"shortcodes":["cupcake"],"tags":["bakery","sweet"],"unicode":"🧁"},{"annotation":"pie","group":4,"hexcode":"1F967","order":2903,"shortcodes":["pie"],"tags":["filling","pastry"],"unicode":"🥧"},{"annotation":"chocolate bar","group":4,"hexcode":"1F36B","order":2904,"shortcodes":["chocolate_bar"],"tags":["bar","chocolate","dessert","sweet"],"unicode":"🍫"},{"annotation":"candy","group":4,"hexcode":"1F36C","order":2905,"shortcodes":["candy"],"tags":["dessert","sweet"],"unicode":"🍬"},{"annotation":"lollipop","group":4,"hexcode":"1F36D","order":2906,"shortcodes":["lollipop"],"tags":["candy","dessert","sweet"],"unicode":"🍭"},{"annotation":"custard","group":4,"hexcode":"1F36E","order":2907,"shortcodes":["custard"],"tags":["dessert","pudding","sweet"],"unicode":"🍮"},{"annotation":"honey pot","group":4,"hexcode":"1F36F","order":2908,"shortcodes":["honey_pot"],"tags":["honey","honeypot","pot","sweet"],"unicode":"🍯"},{"annotation":"baby bottle","group":4,"hexcode":"1F37C","order":2909,"shortcodes":["baby_bottle"],"tags":["baby","bottle","drink","milk"],"unicode":"🍼"},{"annotation":"glass of milk","group":4,"hexcode":"1F95B","order":2910,"shortcodes":["milk"],"tags":["drink","glass","milk"],"unicode":"🥛"},{"annotation":"hot beverage","group":4,"hexcode":"2615","order":2911,"shortcodes":["coffee"],"tags":["beverage","coffee","drink","hot","steaming","tea"],"unicode":"☕️"},{"annotation":"teapot","group":4,"hexcode":"1FAD6","order":2912,"shortcodes":["teapot"],"tags":["drink","pot","tea"],"unicode":"🫖"},{"annotation":"teacup without handle","group":4,"hexcode":"1F375","order":2913,"shortcodes":["tea"],"tags":["beverage","cup","drink","tea","teacup"],"unicode":"🍵"},{"annotation":"sake","group":4,"hexcode":"1F376","order":2914,"shortcodes":["sake"],"tags":["bar","beverage","bottle","cup","drink"],"unicode":"🍶"},{"annotation":"bottle with popping cork","group":4,"hexcode":"1F37E","order":2915,"shortcodes":["champagne"],"tags":["bar","bottle","cork","drink","popping"],"unicode":"🍾"},{"annotation":"wine glass","group":4,"hexcode":"1F377","order":2916,"shortcodes":["wine_glass"],"tags":["bar","beverage","drink","glass","wine"],"unicode":"🍷"},{"annotation":"cocktail glass","group":4,"hexcode":"1F378","order":2917,"shortcodes":["cocktail"],"tags":["bar","cocktail","drink","glass"],"unicode":"🍸️"},{"annotation":"tropical drink","group":4,"hexcode":"1F379","order":2918,"shortcodes":["tropical_drink"],"tags":["bar","drink","tropical"],"unicode":"🍹"},{"annotation":"beer mug","group":4,"hexcode":"1F37A","order":2919,"shortcodes":["beer"],"tags":["bar","beer","drink","mug"],"unicode":"🍺"},{"annotation":"clinking beer mugs","group":4,"hexcode":"1F37B","order":2920,"shortcodes":["beers"],"tags":["bar","beer","clink","drink","mug"],"unicode":"🍻"},{"annotation":"clinking glasses","group":4,"hexcode":"1F942","order":2921,"shortcodes":["champagne_glass"],"tags":["celebrate","clink","drink","glass"],"unicode":"🥂"},{"annotation":"tumbler glass","group":4,"hexcode":"1F943","order":2922,"shortcodes":["tumbler_glass"],"tags":["glass","liquor","shot","tumbler","whisky"],"unicode":"🥃"},{"annotation":"cup with straw","group":4,"hexcode":"1F964","order":2923,"shortcodes":["cup_straw"],"tags":["juice","soda"],"unicode":"🥤"},{"annotation":"bubble tea","group":4,"hexcode":"1F9CB","order":2924,"shortcodes":["bubble_tea","boba_drink"],"tags":["bubble","milk","pearl","tea"],"unicode":"🧋"},{"annotation":"beverage box","group":4,"hexcode":"1F9C3","order":2925,"shortcodes":["beverage_box","juice_box"],"tags":["beverage","box","juice","straw","sweet"],"unicode":"🧃"},{"annotation":"mate","group":4,"hexcode":"1F9C9","order":2926,"shortcodes":["mate","yerba_mate"],"tags":["drink"],"unicode":"🧉"},{"annotation":"ice","group":4,"hexcode":"1F9CA","order":2927,"shortcodes":["ice"],"tags":["cold","ice cube","iceberg"],"unicode":"🧊"},{"annotation":"chopsticks","group":4,"hexcode":"1F962","order":2928,"shortcodes":["chopsticks"],"tags":["hashi"],"unicode":"🥢"},{"annotation":"fork and knife with plate","group":4,"hexcode":"1F37D","order":2930,"shortcodes":["fork_knife_plate"],"tags":["cooking","fork","knife","plate"],"unicode":"🍽️"},{"annotation":"fork and knife","group":4,"hexcode":"1F374","order":2931,"shortcodes":["utensils"],"tags":["cooking","cutlery","fork","knife"],"unicode":"🍴"},{"annotation":"spoon","group":4,"hexcode":"1F944","order":2932,"shortcodes":["spoon"],"tags":["tableware"],"unicode":"🥄"},{"annotation":"kitchen knife","group":4,"hexcode":"1F52A","order":2933,"shortcodes":["knife"],"tags":["cooking","hocho","knife","tool","weapon"],"unicode":"🔪"},{"annotation":"amphora","group":4,"hexcode":"1F3FA","order":2934,"shortcodes":["amphora"],"tags":["aquarius","cooking","drink","jug","zodiac"],"unicode":"🏺"},{"annotation":"globe showing Europe-Africa","group":5,"hexcode":"1F30D","order":2935,"shortcodes":["earth_africa"],"tags":["africa","earth","europe","globe","globe showing europe-africa","world"],"unicode":"🌍️"},{"annotation":"globe showing Americas","group":5,"hexcode":"1F30E","order":2936,"shortcodes":["earth_americas"],"tags":["americas","earth","globe","globe showing americas","world"],"unicode":"🌎️"},{"annotation":"globe showing Asia-Australia","group":5,"hexcode":"1F30F","order":2937,"shortcodes":["earth_asia"],"tags":["asia","australia","earth","globe","globe showing asia-australia","world"],"unicode":"🌏️"},{"annotation":"globe with meridians","group":5,"hexcode":"1F310","order":2938,"shortcodes":["globe"],"tags":["earth","globe","meridians","world"],"unicode":"🌐"},{"annotation":"world map","group":5,"hexcode":"1F5FA","order":2940,"shortcodes":["map"],"tags":["map","world"],"unicode":"🗺️"},{"annotation":"map of Japan","group":5,"hexcode":"1F5FE","order":2941,"shortcodes":["japan"],"tags":["japan","map","map of japan"],"unicode":"🗾"},{"annotation":"compass","group":5,"hexcode":"1F9ED","order":2942,"shortcodes":["compass"],"tags":["magnetic","navigation","orienteering"],"unicode":"🧭"},{"annotation":"snow-capped mountain","group":5,"hexcode":"1F3D4","order":2944,"shortcodes":["snowy_mountain"],"tags":["cold","mountain","snow"],"unicode":"🏔️"},{"annotation":"mountain","group":5,"hexcode":"26F0","order":2946,"shortcodes":["mountain"],"tags":["mountain"],"unicode":"⛰️"},{"annotation":"volcano","group":5,"hexcode":"1F30B","order":2947,"shortcodes":["volcano"],"tags":["eruption","mountain"],"unicode":"🌋"},{"annotation":"mount fuji","group":5,"hexcode":"1F5FB","order":2948,"shortcodes":["mount_fuji"],"tags":["fuji","mountain"],"unicode":"🗻"},{"annotation":"camping","group":5,"hexcode":"1F3D5","order":2950,"shortcodes":["camping"],"tags":["camping"],"unicode":"🏕️"},{"annotation":"beach with umbrella","group":5,"hexcode":"1F3D6","order":2952,"shortcodes":["beach"],"tags":["beach","umbrella"],"unicode":"🏖️"},{"annotation":"desert","group":5,"hexcode":"1F3DC","order":2954,"shortcodes":["desert"],"tags":["desert"],"unicode":"🏜️"},{"annotation":"desert island","group":5,"hexcode":"1F3DD","order":2956,"shortcodes":["island"],"tags":["desert","island"],"unicode":"🏝️"},{"annotation":"national park","group":5,"hexcode":"1F3DE","order":2958,"shortcodes":["park"],"tags":["park"],"unicode":"🏞️"},{"annotation":"stadium","group":5,"hexcode":"1F3DF","order":2960,"shortcodes":["stadium"],"tags":["stadium"],"unicode":"🏟️"},{"annotation":"classical building","group":5,"hexcode":"1F3DB","order":2962,"shortcodes":["classical_building"],"tags":["classical"],"unicode":"🏛️"},{"annotation":"building construction","group":5,"hexcode":"1F3D7","order":2964,"shortcodes":["construction_site"],"tags":["construction"],"unicode":"🏗️"},{"annotation":"brick","group":5,"hexcode":"1F9F1","order":2965,"shortcodes":["brick"],"tags":["bricks","clay","mortar","wall"],"unicode":"🧱"},{"annotation":"rock","group":5,"hexcode":"1FAA8","order":2966,"shortcodes":["rock"],"tags":["boulder","heavy","solid","stone"],"unicode":"🪨"},{"annotation":"wood","group":5,"hexcode":"1FAB5","order":2967,"shortcodes":["wood"],"tags":["log","lumber","timber"],"unicode":"🪵"},{"annotation":"hut","group":5,"hexcode":"1F6D6","order":2968,"shortcodes":["hut"],"tags":["house","roundhouse","yurt"],"unicode":"🛖"},{"annotation":"houses","group":5,"hexcode":"1F3D8","order":2970,"shortcodes":["homes"],"tags":["houses"],"unicode":"🏘️"},{"annotation":"derelict house","group":5,"hexcode":"1F3DA","order":2972,"shortcodes":["house_abandoned"],"tags":["derelict","house"],"unicode":"🏚️"},{"annotation":"house","group":5,"hexcode":"1F3E0","order":2973,"shortcodes":["house"],"tags":["home"],"unicode":"🏠️"},{"annotation":"house with garden","group":5,"hexcode":"1F3E1","order":2974,"shortcodes":["house_garden"],"tags":["garden","home","house"],"unicode":"🏡"},{"annotation":"office building","group":5,"hexcode":"1F3E2","order":2975,"shortcodes":["office"],"tags":["building"],"unicode":"🏢"},{"annotation":"Japanese post office","group":5,"hexcode":"1F3E3","order":2976,"shortcodes":["ja_post_office"],"tags":["japanese","japanese post office","post"],"unicode":"🏣"},{"annotation":"post office","group":5,"hexcode":"1F3E4","order":2977,"shortcodes":["post_office"],"tags":["european","post"],"unicode":"🏤"},{"annotation":"hospital","group":5,"hexcode":"1F3E5","order":2978,"shortcodes":["hospital"],"tags":["doctor","medicine"],"unicode":"🏥"},{"annotation":"bank","group":5,"hexcode":"1F3E6","order":2979,"shortcodes":["bank"],"tags":["building"],"unicode":"🏦"},{"annotation":"hotel","group":5,"hexcode":"1F3E8","order":2980,"shortcodes":["hotel"],"tags":["building"],"unicode":"🏨"},{"annotation":"love hotel","group":5,"hexcode":"1F3E9","order":2981,"shortcodes":["love_hotel"],"tags":["hotel","love"],"unicode":"🏩"},{"annotation":"convenience store","group":5,"hexcode":"1F3EA","order":2982,"shortcodes":["convenience_store"],"tags":["convenience","store"],"unicode":"🏪"},{"annotation":"school","group":5,"hexcode":"1F3EB","order":2983,"shortcodes":["school"],"tags":["building"],"unicode":"🏫"},{"annotation":"department store","group":5,"hexcode":"1F3EC","order":2984,"shortcodes":["department_store"],"tags":["department","store"],"unicode":"🏬"},{"annotation":"factory","group":5,"hexcode":"1F3ED","order":2985,"shortcodes":["factory"],"tags":["building"],"unicode":"🏭️"},{"annotation":"Japanese castle","group":5,"hexcode":"1F3EF","order":2986,"shortcodes":["japanese_castle"],"tags":["castle","japanese"],"unicode":"🏯"},{"annotation":"castle","group":5,"hexcode":"1F3F0","order":2987,"shortcodes":["castle","european_castle"],"tags":["european"],"unicode":"🏰"},{"annotation":"wedding","group":5,"hexcode":"1F492","order":2988,"shortcodes":["wedding"],"tags":["chapel","romance"],"unicode":"💒"},{"annotation":"Tokyo tower","group":5,"hexcode":"1F5FC","order":2989,"shortcodes":["tokyo_tower"],"tags":["tokyo","tower"],"unicode":"🗼"},{"annotation":"Statue of Liberty","group":5,"hexcode":"1F5FD","order":2990,"shortcodes":["statue_of_liberty"],"tags":["liberty","statue","statue of liberty"],"unicode":"🗽"},{"annotation":"church","group":5,"hexcode":"26EA","order":2991,"shortcodes":["church"],"tags":["christian","cross","religion"],"unicode":"⛪️"},{"annotation":"mosque","group":5,"hexcode":"1F54C","order":2992,"shortcodes":["mosque"],"tags":["islam","muslim","religion"],"unicode":"🕌"},{"annotation":"hindu temple","group":5,"hexcode":"1F6D5","order":2993,"shortcodes":["hindu_temple"],"tags":["hindu","temple"],"unicode":"🛕"},{"annotation":"synagogue","group":5,"hexcode":"1F54D","order":2994,"shortcodes":["synagogue"],"tags":["jew","jewish","religion","temple"],"unicode":"🕍"},{"annotation":"shinto shrine","group":5,"hexcode":"26E9","order":2996,"shortcodes":["shinto_shrine"],"tags":["religion","shinto","shrine"],"unicode":"⛩️"},{"annotation":"kaaba","group":5,"hexcode":"1F54B","order":2997,"shortcodes":["kaaba"],"tags":["islam","muslim","religion"],"unicode":"🕋"},{"annotation":"fountain","group":5,"hexcode":"26F2","order":2998,"shortcodes":["fountain"],"tags":["fountain"],"unicode":"⛲️"},{"annotation":"tent","group":5,"hexcode":"26FA","order":2999,"shortcodes":["tent"],"tags":["camping"],"unicode":"⛺️"},{"annotation":"foggy","group":5,"hexcode":"1F301","order":3000,"shortcodes":["foggy"],"tags":["fog"],"unicode":"🌁"},{"annotation":"night with stars","group":5,"hexcode":"1F303","order":3001,"shortcodes":["night_stars"],"tags":["night","star"],"unicode":"🌃"},{"annotation":"cityscape","group":5,"hexcode":"1F3D9","order":3003,"shortcodes":["cityscape"],"tags":["city"],"unicode":"🏙️"},{"annotation":"sunrise over mountains","group":5,"hexcode":"1F304","order":3004,"shortcodes":["sunrise_over_mountains"],"tags":["morning","mountain","sun","sunrise"],"unicode":"🌄"},{"annotation":"sunrise","group":5,"hexcode":"1F305","order":3005,"shortcodes":["sunrise"],"tags":["morning","sun"],"unicode":"🌅"},{"annotation":"cityscape at dusk","group":5,"hexcode":"1F306","order":3006,"shortcodes":["dusk"],"tags":["city","dusk","evening","landscape","sunset"],"unicode":"🌆"},{"annotation":"sunset","group":5,"hexcode":"1F307","order":3007,"shortcodes":["sunset"],"tags":["dusk","sun"],"unicode":"🌇"},{"annotation":"bridge at night","group":5,"hexcode":"1F309","order":3008,"shortcodes":["bridge_at_night"],"tags":["bridge","night"],"unicode":"🌉"},{"annotation":"hot springs","group":5,"hexcode":"2668","order":3010,"shortcodes":["hotsprings"],"tags":["hot","hotsprings","springs","steaming"],"unicode":"♨️"},{"annotation":"carousel horse","group":5,"hexcode":"1F3A0","order":3011,"shortcodes":["carousel_horse"],"tags":["carousel","horse"],"unicode":"🎠"},{"annotation":"ferris wheel","group":5,"hexcode":"1F3A1","order":3012,"shortcodes":["ferris_wheel"],"tags":["amusement park","ferris","wheel"],"unicode":"🎡"},{"annotation":"roller coaster","group":5,"hexcode":"1F3A2","order":3013,"shortcodes":["roller_coaster"],"tags":["amusement park","coaster","roller"],"unicode":"🎢"},{"annotation":"barber pole","group":5,"hexcode":"1F488","order":3014,"shortcodes":["barber"],"tags":["barber","haircut","pole"],"unicode":"💈"},{"annotation":"circus tent","group":5,"hexcode":"1F3AA","order":3015,"shortcodes":["circus_tent"],"tags":["circus","tent"],"unicode":"🎪"},{"annotation":"locomotive","group":5,"hexcode":"1F682","order":3016,"shortcodes":["steam_locomotive"],"tags":["engine","railway","steam","train"],"unicode":"🚂"},{"annotation":"railway car","group":5,"hexcode":"1F683","order":3017,"shortcodes":["railway_car"],"tags":["car","electric","railway","train","tram","trolleybus"],"unicode":"🚃"},{"annotation":"high-speed train","group":5,"hexcode":"1F684","order":3018,"shortcodes":["bullettrain_side"],"tags":["railway","shinkansen","speed","train"],"unicode":"🚄"},{"annotation":"bullet train","group":5,"hexcode":"1F685","order":3019,"shortcodes":["bullettrain"],"tags":["bullet","railway","shinkansen","speed","train"],"unicode":"🚅"},{"annotation":"train","group":5,"hexcode":"1F686","order":3020,"shortcodes":["train"],"tags":["railway"],"unicode":"🚆"},{"annotation":"metro","group":5,"hexcode":"1F687","order":3021,"shortcodes":["metro"],"tags":["subway"],"unicode":"🚇️"},{"annotation":"light rail","group":5,"hexcode":"1F688","order":3022,"shortcodes":["light_rail"],"tags":["railway"],"unicode":"🚈"},{"annotation":"station","group":5,"hexcode":"1F689","order":3023,"shortcodes":["station"],"tags":["railway","train"],"unicode":"🚉"},{"annotation":"tram","group":5,"hexcode":"1F68A","order":3024,"shortcodes":["tram"],"tags":["trolleybus"],"unicode":"🚊"},{"annotation":"monorail","group":5,"hexcode":"1F69D","order":3025,"shortcodes":["monorail"],"tags":["vehicle"],"unicode":"🚝"},{"annotation":"mountain railway","group":5,"hexcode":"1F69E","order":3026,"shortcodes":["mountain_railway"],"tags":["car","mountain","railway"],"unicode":"🚞"},{"annotation":"tram car","group":5,"hexcode":"1F68B","order":3027,"shortcodes":["tram_car"],"tags":["car","tram","trolleybus"],"unicode":"🚋"},{"annotation":"bus","group":5,"hexcode":"1F68C","order":3028,"shortcodes":["bus"],"tags":["vehicle"],"unicode":"🚌"},{"annotation":"oncoming bus","group":5,"hexcode":"1F68D","order":3029,"shortcodes":["oncoming_bus"],"tags":["bus","oncoming"],"unicode":"🚍️"},{"annotation":"trolleybus","group":5,"hexcode":"1F68E","order":3030,"shortcodes":["trolleybus"],"tags":["bus","tram","trolley"],"unicode":"🚎"},{"annotation":"minibus","group":5,"hexcode":"1F690","order":3031,"shortcodes":["minibus"],"tags":["bus"],"unicode":"🚐"},{"annotation":"ambulance","group":5,"hexcode":"1F691","order":3032,"shortcodes":["ambulance"],"tags":["vehicle"],"unicode":"🚑️"},{"annotation":"fire engine","group":5,"hexcode":"1F692","order":3033,"shortcodes":["fire_engine"],"tags":["engine","fire","truck"],"unicode":"🚒"},{"annotation":"police car","group":5,"hexcode":"1F693","order":3034,"shortcodes":["police_car"],"tags":["car","patrol","police"],"unicode":"🚓"},{"annotation":"oncoming police car","group":5,"hexcode":"1F694","order":3035,"shortcodes":["oncoming_police_car"],"tags":["car","oncoming","police"],"unicode":"🚔️"},{"annotation":"taxi","group":5,"hexcode":"1F695","order":3036,"shortcodes":["taxi"],"tags":["vehicle"],"unicode":"🚕"},{"annotation":"oncoming taxi","group":5,"hexcode":"1F696","order":3037,"shortcodes":["oncoming_taxi"],"tags":["oncoming","taxi"],"unicode":"🚖"},{"annotation":"automobile","group":5,"hexcode":"1F697","order":3038,"shortcodes":["red_car"],"tags":["car"],"unicode":"🚗"},{"annotation":"oncoming automobile","group":5,"hexcode":"1F698","order":3039,"shortcodes":["oncoming_automobile"],"tags":["automobile","car","oncoming"],"unicode":"🚘️"},{"annotation":"sport utility vehicle","group":5,"hexcode":"1F699","order":3040,"shortcodes":["blue_car"],"tags":["recreational","sport utility"],"unicode":"🚙"},{"annotation":"pickup truck","group":5,"hexcode":"1F6FB","order":3041,"shortcodes":["pickup_truck"],"tags":["pick-up","pickup","truck"],"unicode":"🛻"},{"annotation":"delivery truck","group":5,"hexcode":"1F69A","order":3042,"shortcodes":["truck"],"tags":["delivery","truck"],"unicode":"🚚"},{"annotation":"articulated lorry","group":5,"hexcode":"1F69B","order":3043,"shortcodes":["lorry"],"tags":["lorry","semi","truck"],"unicode":"🚛"},{"annotation":"tractor","group":5,"hexcode":"1F69C","order":3044,"shortcodes":["tractor"],"tags":["vehicle"],"unicode":"🚜"},{"annotation":"racing car","group":5,"hexcode":"1F3CE","order":3046,"shortcodes":["race_car"],"tags":["car","racing"],"unicode":"🏎️"},{"annotation":"motorcycle","group":5,"hexcode":"1F3CD","order":3048,"shortcodes":["motorcycle"],"tags":["racing"],"unicode":"🏍️"},{"annotation":"motor scooter","group":5,"hexcode":"1F6F5","order":3049,"shortcodes":["motor_scooter"],"tags":["motor","scooter"],"unicode":"🛵"},{"annotation":"manual wheelchair","group":5,"hexcode":"1F9BD","order":3050,"shortcodes":["wheelchair"],"tags":["accessibility"],"unicode":"🦽"},{"annotation":"motorized wheelchair","group":5,"hexcode":"1F9BC","order":3051,"shortcodes":["motor_wheelchair"],"tags":["accessibility"],"unicode":"🦼"},{"annotation":"auto rickshaw","group":5,"hexcode":"1F6FA","order":3052,"shortcodes":["auto_rickshaw"],"tags":["tuk tuk"],"unicode":"🛺"},{"annotation":"bicycle","group":5,"hexcode":"1F6B2","order":3053,"shortcodes":["bike"],"tags":["bike"],"unicode":"🚲️"},{"annotation":"kick scooter","group":5,"hexcode":"1F6F4","order":3054,"shortcodes":["scooter"],"tags":["kick","scooter"],"unicode":"🛴"},{"annotation":"skateboard","group":5,"hexcode":"1F6F9","order":3055,"shortcodes":["skateboard"],"tags":["board"],"unicode":"🛹"},{"annotation":"roller skate","group":5,"hexcode":"1F6FC","order":3056,"shortcodes":["roller_skate"],"tags":["roller","skate"],"unicode":"🛼"},{"annotation":"bus stop","group":5,"hexcode":"1F68F","order":3057,"shortcodes":["bus_stop"],"tags":["bus","busstop","stop"],"unicode":"🚏"},{"annotation":"motorway","group":5,"hexcode":"1F6E3","order":3059,"shortcodes":["motorway"],"tags":["highway","road"],"unicode":"🛣️"},{"annotation":"railway track","group":5,"hexcode":"1F6E4","order":3061,"shortcodes":["railway_track"],"tags":["railway","train"],"unicode":"🛤️"},{"annotation":"oil drum","group":5,"hexcode":"1F6E2","order":3063,"shortcodes":["oil_drum"],"tags":["drum","oil"],"unicode":"🛢️"},{"annotation":"fuel pump","group":5,"hexcode":"26FD","order":3064,"shortcodes":["fuel_pump"],"tags":["diesel","fuel","fuelpump","gas","pump","station"],"unicode":"⛽️"},{"annotation":"police car light","group":5,"hexcode":"1F6A8","order":3065,"shortcodes":["rotating_light","police_light"],"tags":["beacon","car","light","police","revolving"],"unicode":"🚨"},{"annotation":"horizontal traffic light","group":5,"hexcode":"1F6A5","order":3066,"shortcodes":["traffic_light"],"tags":["light","signal","traffic"],"unicode":"🚥"},{"annotation":"vertical traffic light","group":5,"hexcode":"1F6A6","order":3067,"shortcodes":["vertical_traffic_light"],"tags":["light","signal","traffic"],"unicode":"🚦"},{"annotation":"stop sign","group":5,"hexcode":"1F6D1","order":3068,"shortcodes":["stop_sign","octagonal_sign"],"tags":["octagonal","sign","stop"],"unicode":"🛑"},{"annotation":"construction","group":5,"hexcode":"1F6A7","order":3069,"shortcodes":["construction"],"tags":["barrier"],"unicode":"🚧"},{"annotation":"anchor","group":5,"hexcode":"2693","order":3070,"shortcodes":["anchor"],"tags":["ship","tool"],"unicode":"⚓️"},{"annotation":"sailboat","group":5,"hexcode":"26F5","order":3071,"shortcodes":["sailboat"],"tags":["boat","resort","sea","yacht"],"unicode":"⛵️"},{"annotation":"canoe","group":5,"hexcode":"1F6F6","order":3072,"shortcodes":["canoe"],"tags":["boat"],"unicode":"🛶"},{"annotation":"speedboat","group":5,"hexcode":"1F6A4","order":3073,"shortcodes":["speedboat"],"tags":["boat"],"unicode":"🚤"},{"annotation":"passenger ship","group":5,"hexcode":"1F6F3","order":3075,"shortcodes":["cruise_ship"],"tags":["passenger","ship"],"unicode":"🛳️"},{"annotation":"ferry","group":5,"hexcode":"26F4","order":3077,"shortcodes":["ferry"],"tags":["boat","passenger"],"unicode":"⛴️"},{"annotation":"motor boat","group":5,"hexcode":"1F6E5","order":3079,"shortcodes":["motorboat"],"tags":["boat","motorboat"],"unicode":"🛥️"},{"annotation":"ship","group":5,"hexcode":"1F6A2","order":3080,"shortcodes":["ship"],"tags":["boat","passenger"],"unicode":"🚢"},{"annotation":"airplane","group":5,"hexcode":"2708","order":3082,"shortcodes":["airplane"],"tags":["aeroplane"],"unicode":"✈️"},{"annotation":"small airplane","group":5,"hexcode":"1F6E9","order":3084,"shortcodes":["small_airplane"],"tags":["aeroplane","airplane"],"unicode":"🛩️"},{"annotation":"airplane departure","group":5,"hexcode":"1F6EB","order":3085,"shortcodes":["airplane_departure"],"tags":["aeroplane","airplane","check-in","departure","departures"],"unicode":"🛫"},{"annotation":"airplane arrival","group":5,"hexcode":"1F6EC","order":3086,"shortcodes":["airplane_arriving"],"tags":["aeroplane","airplane","arrivals","arriving","landing"],"unicode":"🛬"},{"annotation":"parachute","group":5,"hexcode":"1FA82","order":3087,"shortcodes":["parachute"],"tags":["hang-glide","parasail","skydive"],"unicode":"🪂"},{"annotation":"seat","group":5,"hexcode":"1F4BA","order":3088,"shortcodes":["seat"],"tags":["chair"],"unicode":"💺"},{"annotation":"helicopter","group":5,"hexcode":"1F681","order":3089,"shortcodes":["helicopter"],"tags":["vehicle"],"unicode":"🚁"},{"annotation":"suspension railway","group":5,"hexcode":"1F69F","order":3090,"shortcodes":["suspension_railway"],"tags":["railway","suspension"],"unicode":"🚟"},{"annotation":"mountain cableway","group":5,"hexcode":"1F6A0","order":3091,"shortcodes":["mountain_cableway"],"tags":["cable","gondola","mountain"],"unicode":"🚠"},{"annotation":"aerial tramway","group":5,"hexcode":"1F6A1","order":3092,"shortcodes":["aerial_tramway"],"tags":["aerial","cable","car","gondola","tramway"],"unicode":"🚡"},{"annotation":"satellite","group":5,"hexcode":"1F6F0","order":3094,"shortcodes":["satellite"],"tags":["space"],"unicode":"🛰️"},{"annotation":"rocket","group":5,"hexcode":"1F680","order":3095,"shortcodes":["rocket"],"tags":["space"],"unicode":"🚀"},{"annotation":"flying saucer","group":5,"hexcode":"1F6F8","order":3096,"shortcodes":["flying_saucer"],"tags":["ufo"],"unicode":"🛸"},{"annotation":"bellhop bell","group":5,"hexcode":"1F6CE","order":3098,"shortcodes":["bellhop"],"tags":["bell","bellhop","hotel"],"unicode":"🛎️"},{"annotation":"luggage","group":5,"hexcode":"1F9F3","order":3099,"shortcodes":["luggage"],"tags":["packing","travel"],"unicode":"🧳"},{"annotation":"hourglass done","group":5,"hexcode":"231B","order":3100,"shortcodes":["hourglass"],"tags":["sand","timer"],"unicode":"⌛️"},{"annotation":"hourglass not done","group":5,"hexcode":"23F3","order":3101,"shortcodes":["hourglass_flowing"],"tags":["hourglass","sand","timer"],"unicode":"⏳️"},{"annotation":"watch","group":5,"hexcode":"231A","order":3102,"shortcodes":["watch"],"tags":["clock"],"unicode":"⌚️"},{"annotation":"alarm clock","group":5,"hexcode":"23F0","order":3103,"shortcodes":["alarm_clock"],"tags":["alarm","clock"],"unicode":"⏰"},{"annotation":"stopwatch","group":5,"hexcode":"23F1","order":3105,"shortcodes":["stopwatch"],"tags":["clock"],"unicode":"⏱️"},{"annotation":"timer clock","group":5,"hexcode":"23F2","order":3107,"shortcodes":["timer"],"tags":["clock","timer"],"unicode":"⏲️"},{"annotation":"mantelpiece clock","group":5,"hexcode":"1F570","order":3109,"shortcodes":["clock"],"tags":["clock"],"unicode":"🕰️"},{"annotation":"twelve oclock","group":5,"hexcode":"1F55B","order":3110,"shortcodes":["clock12"],"tags":["00","12","12:00","clock","oclock","twelve"],"unicode":"🕛️"},{"annotation":"twelve-thirty","group":5,"hexcode":"1F567","order":3111,"shortcodes":["clock1230"],"tags":["12","12:30","clock","thirty","twelve"],"unicode":"🕧️"},{"annotation":"one oclock","group":5,"hexcode":"1F550","order":3112,"shortcodes":["clock1"],"tags":["00","1","1:00","clock","one","oclock"],"unicode":"🕐️"},{"annotation":"one-thirty","group":5,"hexcode":"1F55C","order":3113,"shortcodes":["clock130"],"tags":["1","1:30","clock","one","thirty"],"unicode":"🕜️"},{"annotation":"two oclock","group":5,"hexcode":"1F551","order":3114,"shortcodes":["clock2"],"tags":["00","2","2:00","clock","oclock","two"],"unicode":"🕑️"},{"annotation":"two-thirty","group":5,"hexcode":"1F55D","order":3115,"shortcodes":["clock230"],"tags":["2","2:30","clock","thirty","two"],"unicode":"🕝️"},{"annotation":"three oclock","group":5,"hexcode":"1F552","order":3116,"shortcodes":["clock3"],"tags":["00","3","3:00","clock","oclock","three"],"unicode":"🕒️"},{"annotation":"three-thirty","group":5,"hexcode":"1F55E","order":3117,"shortcodes":["clock330"],"tags":["3","3:30","clock","thirty","three"],"unicode":"🕞️"},{"annotation":"four oclock","group":5,"hexcode":"1F553","order":3118,"shortcodes":["clock4"],"tags":["00","4","4:00","clock","four","oclock"],"unicode":"🕓️"},{"annotation":"four-thirty","group":5,"hexcode":"1F55F","order":3119,"shortcodes":["clock430"],"tags":["4","4:30","clock","four","thirty"],"unicode":"🕟️"},{"annotation":"five oclock","group":5,"hexcode":"1F554","order":3120,"shortcodes":["clock5"],"tags":["00","5","5:00","clock","five","oclock"],"unicode":"🕔️"},{"annotation":"five-thirty","group":5,"hexcode":"1F560","order":3121,"shortcodes":["clock530"],"tags":["5","5:30","clock","five","thirty"],"unicode":"🕠️"},{"annotation":"six oclock","group":5,"hexcode":"1F555","order":3122,"shortcodes":["clock6"],"tags":["00","6","6:00","clock","oclock","six"],"unicode":"🕕️"},{"annotation":"six-thirty","group":5,"hexcode":"1F561","order":3123,"shortcodes":["clock630"],"tags":["6","6:30","clock","six","thirty"],"unicode":"🕡️"},{"annotation":"seven oclock","group":5,"hexcode":"1F556","order":3124,"shortcodes":["clock7"],"tags":["00","7","7:00","clock","oclock","seven"],"unicode":"🕖️"},{"annotation":"seven-thirty","group":5,"hexcode":"1F562","order":3125,"shortcodes":["clock730"],"tags":["7","7:30","clock","seven","thirty"],"unicode":"🕢️"},{"annotation":"eight oclock","group":5,"hexcode":"1F557","order":3126,"shortcodes":["clock8"],"tags":["00","8","8:00","clock","eight","oclock"],"unicode":"🕗️"},{"annotation":"eight-thirty","group":5,"hexcode":"1F563","order":3127,"shortcodes":["clock830"],"tags":["8","8:30","clock","eight","thirty"],"unicode":"🕣️"},{"annotation":"nine oclock","group":5,"hexcode":"1F558","order":3128,"shortcodes":["clock9"],"tags":["00","9","9:00","clock","nine","oclock"],"unicode":"🕘️"},{"annotation":"nine-thirty","group":5,"hexcode":"1F564","order":3129,"shortcodes":["clock930"],"tags":["9","9:30","clock","nine","thirty"],"unicode":"🕤️"},{"annotation":"ten oclock","group":5,"hexcode":"1F559","order":3130,"shortcodes":["clock10"],"tags":["00","10","10:00","clock","oclock","ten"],"unicode":"🕙️"},{"annotation":"ten-thirty","group":5,"hexcode":"1F565","order":3131,"shortcodes":["clock1030"],"tags":["10","10:30","clock","ten","thirty"],"unicode":"🕥️"},{"annotation":"eleven oclock","group":5,"hexcode":"1F55A","order":3132,"shortcodes":["clock11"],"tags":["00","11","11:00","clock","eleven","oclock"],"unicode":"🕚️"},{"annotation":"eleven-thirty","group":5,"hexcode":"1F566","order":3133,"shortcodes":["clock1130"],"tags":["11","11:30","clock","eleven","thirty"],"unicode":"🕦️"},{"annotation":"new moon","group":5,"hexcode":"1F311","order":3134,"shortcodes":["new_moon"],"tags":["dark","moon"],"unicode":"🌑"},{"annotation":"waxing crescent moon","group":5,"hexcode":"1F312","order":3135,"shortcodes":["waxing_crescent_moon"],"tags":["crescent","moon","waxing"],"unicode":"🌒"},{"annotation":"first quarter moon","group":5,"hexcode":"1F313","order":3136,"shortcodes":["first_quarter_moon"],"tags":["moon","quarter"],"unicode":"🌓"},{"annotation":"waxing gibbous moon","group":5,"hexcode":"1F314","order":3137,"shortcodes":["waxing_gibbous_moon"],"tags":["gibbous","moon","waxing"],"unicode":"🌔"},{"annotation":"full moon","group":5,"hexcode":"1F315","order":3138,"shortcodes":["full_moon"],"tags":["full","moon"],"unicode":"🌕️"},{"annotation":"waning gibbous moon","group":5,"hexcode":"1F316","order":3139,"shortcodes":["waning_gibbous_moon"],"tags":["gibbous","moon","waning"],"unicode":"🌖"},{"annotation":"last quarter moon","group":5,"hexcode":"1F317","order":3140,"shortcodes":["last_quarter_moon"],"tags":["moon","quarter"],"unicode":"🌗"},{"annotation":"waning crescent moon","group":5,"hexcode":"1F318","order":3141,"shortcodes":["waning_crescent_moon"],"tags":["crescent","moon","waning"],"unicode":"🌘"},{"annotation":"crescent moon","group":5,"hexcode":"1F319","order":3142,"shortcodes":["crescent_moon"],"tags":["crescent","moon"],"unicode":"🌙"},{"annotation":"new moon face","group":5,"hexcode":"1F31A","order":3143,"shortcodes":["new_moon_face"],"tags":["face","moon"],"unicode":"🌚"},{"annotation":"first quarter moon face","group":5,"hexcode":"1F31B","order":3144,"shortcodes":["first_quarter_moon_face"],"tags":["face","moon","quarter"],"unicode":"🌛"},{"annotation":"last quarter moon face","group":5,"hexcode":"1F31C","order":3145,"shortcodes":["last_quarter_moon_face"],"tags":["face","moon","quarter"],"unicode":"🌜️"},{"annotation":"thermometer","group":5,"hexcode":"1F321","order":3147,"shortcodes":["thermometer"],"tags":["weather"],"unicode":"🌡️"},{"annotation":"sun","group":5,"hexcode":"2600","order":3149,"shortcodes":["sun"],"tags":["bright","rays","sunny"],"unicode":"☀️"},{"annotation":"full moon face","group":5,"hexcode":"1F31D","order":3150,"shortcodes":["full_moon_face"],"tags":["bright","face","full","moon"],"unicode":"🌝"},{"annotation":"sun with face","group":5,"hexcode":"1F31E","order":3151,"shortcodes":["sun_face"],"tags":["bright","face","sun"],"unicode":"🌞"},{"annotation":"ringed planet","group":5,"hexcode":"1FA90","order":3152,"shortcodes":["ringed_planet","saturn"],"tags":["saturn","saturnine"],"unicode":"🪐"},{"annotation":"star","group":5,"hexcode":"2B50","order":3153,"shortcodes":["star"],"tags":["star"],"unicode":"⭐️"},{"annotation":"glowing star","group":5,"hexcode":"1F31F","order":3154,"shortcodes":["star2","glowing_star"],"tags":["glittery","glow","shining","sparkle","star"],"unicode":"🌟"},{"annotation":"shooting star","group":5,"hexcode":"1F320","order":3155,"shortcodes":["star3","shooting_star"],"tags":["falling","shooting","star"],"unicode":"🌠"},{"annotation":"milky way","group":5,"hexcode":"1F30C","order":3156,"shortcodes":["milky_way"],"tags":["space"],"unicode":"🌌"},{"annotation":"cloud","group":5,"hexcode":"2601","order":3158,"shortcodes":["cloud"],"tags":["weather"],"unicode":"☁️"},{"annotation":"sun behind cloud","group":5,"hexcode":"26C5","order":3159,"shortcodes":["partly_sunny"],"tags":["cloud","sun"],"unicode":"⛅️"},{"annotation":"cloud with lightning and rain","group":5,"hexcode":"26C8","order":3161,"shortcodes":["storm"],"tags":["cloud","rain","thunder"],"unicode":"⛈️"},{"annotation":"sun behind small cloud","group":5,"hexcode":"1F324","order":3163,"shortcodes":["overcast"],"tags":["cloud","sun"],"unicode":"🌤️"},{"annotation":"sun behind large cloud","group":5,"hexcode":"1F325","order":3165,"shortcodes":["cloudy"],"tags":["cloud","sun"],"unicode":"🌥️"},{"annotation":"sun behind rain cloud","group":5,"hexcode":"1F326","order":3167,"shortcodes":["sunshower"],"tags":["cloud","rain","sun"],"unicode":"🌦️"},{"annotation":"cloud with rain","group":5,"hexcode":"1F327","order":3169,"shortcodes":["rain"],"tags":["cloud","rain"],"unicode":"🌧️"},{"annotation":"cloud with snow","group":5,"hexcode":"1F328","order":3171,"shortcodes":["snow"],"tags":["cloud","cold","snow"],"unicode":"🌨️"},{"annotation":"cloud with lightning","group":5,"hexcode":"1F329","order":3173,"shortcodes":["lightning"],"tags":["cloud","lightning"],"unicode":"🌩️"},{"annotation":"tornado","group":5,"hexcode":"1F32A","order":3175,"shortcodes":["tornado"],"tags":["cloud","whirlwind"],"unicode":"🌪️"},{"annotation":"fog","group":5,"hexcode":"1F32B","order":3177,"shortcodes":["fog"],"tags":["cloud"],"unicode":"🌫️"},{"annotation":"wind face","group":5,"hexcode":"1F32C","order":3179,"shortcodes":["wind_face"],"tags":["blow","cloud","face","wind"],"unicode":"🌬️"},{"annotation":"cyclone","group":5,"hexcode":"1F300","order":3180,"shortcodes":["cyclone"],"tags":["dizzy","hurricane","twister","typhoon"],"unicode":"🌀"},{"annotation":"rainbow","group":5,"hexcode":"1F308","order":3181,"shortcodes":["rainbow"],"tags":["rain"],"unicode":"🌈"},{"annotation":"closed umbrella","group":5,"hexcode":"1F302","order":3182,"shortcodes":["closed_umbrella"],"tags":["clothing","rain","umbrella"],"unicode":"🌂"},{"annotation":"umbrella","group":5,"hexcode":"2602","order":3184,"shortcodes":["umbrella"],"tags":["clothing","rain"],"unicode":"☂️"},{"annotation":"umbrella with rain drops","group":5,"hexcode":"2614","order":3185,"shortcodes":["umbrella_rain"],"tags":["clothing","drop","rain","umbrella"],"unicode":"☔️"},{"annotation":"umbrella on ground","group":5,"hexcode":"26F1","order":3187,"shortcodes":["beach_umbrella"],"tags":["rain","sun","umbrella"],"unicode":"⛱️"},{"annotation":"high voltage","group":5,"hexcode":"26A1","order":3188,"shortcodes":["zap","high_voltage"],"tags":["danger","electric","lightning","voltage","zap"],"unicode":"⚡️"},{"annotation":"snowflake","group":5,"hexcode":"2744","order":3190,"shortcodes":["snowflake"],"tags":["cold","snow"],"unicode":"❄️"},{"annotation":"snowman","group":5,"hexcode":"2603","order":3192,"shortcodes":["snowy_snowman"],"tags":["cold","snow"],"unicode":"☃️"},{"annotation":"snowman without snow","group":5,"hexcode":"26C4","order":3193,"shortcodes":["snowman"],"tags":["cold","snow","snowman"],"unicode":"⛄️"},{"annotation":"comet","group":5,"hexcode":"2604","order":3195,"shortcodes":["comet"],"tags":["space"],"unicode":"☄️"},{"annotation":"fire","group":5,"hexcode":"1F525","order":3196,"shortcodes":["fire"],"tags":["flame","tool"],"unicode":"🔥"},{"annotation":"droplet","group":5,"hexcode":"1F4A7","order":3197,"shortcodes":["droplet"],"tags":["cold","comic","drop","sweat"],"unicode":"💧"},{"annotation":"water wave","group":5,"hexcode":"1F30A","order":3198,"shortcodes":["ocean"],"tags":["ocean","water","wave"],"unicode":"🌊"},{"annotation":"jack-o-lantern","group":6,"hexcode":"1F383","order":3199,"shortcodes":["jack_o_lantern"],"tags":["celebration","halloween","jack","lantern"],"unicode":"🎃"},{"annotation":"Christmas tree","group":6,"hexcode":"1F384","order":3200,"shortcodes":["christmas_tree","xmas_tree"],"tags":["celebration","christmas","tree"],"unicode":"🎄"},{"annotation":"fireworks","group":6,"hexcode":"1F386","order":3201,"shortcodes":["fireworks"],"tags":["celebration"],"unicode":"🎆"},{"annotation":"sparkler","group":6,"hexcode":"1F387","order":3202,"shortcodes":["sparkler"],"tags":["celebration","fireworks","sparkle"],"unicode":"🎇"},{"annotation":"firecracker","group":6,"hexcode":"1F9E8","order":3203,"shortcodes":["firecracker"],"tags":["dynamite","explosive","fireworks"],"unicode":"🧨"},{"annotation":"sparkles","group":6,"hexcode":"2728","order":3204,"shortcodes":["sparkles"],"tags":["*","sparkle","star"],"unicode":"✨"},{"annotation":"balloon","group":6,"hexcode":"1F388","order":3205,"shortcodes":["balloon"],"tags":["celebration"],"unicode":"🎈"},{"annotation":"party popper","group":6,"hexcode":"1F389","order":3206,"shortcodes":["tada","party"],"tags":["celebration","party","popper","tada"],"unicode":"🎉"},{"annotation":"confetti ball","group":6,"hexcode":"1F38A","order":3207,"shortcodes":["confetti_ball"],"tags":["ball","celebration","confetti"],"unicode":"🎊"},{"annotation":"tanabata tree","group":6,"hexcode":"1F38B","order":3208,"shortcodes":["tanabata_tree"],"tags":["banner","celebration","japanese","tree"],"unicode":"🎋"},{"annotation":"pine decoration","group":6,"hexcode":"1F38D","order":3209,"shortcodes":["bamboo","pine_decor"],"tags":["bamboo","celebration","japanese","pine"],"unicode":"🎍"},{"annotation":"Japanese dolls","group":6,"hexcode":"1F38E","order":3210,"shortcodes":["dolls"],"tags":["celebration","doll","festival","japanese","japanese dolls"],"unicode":"🎎"},{"annotation":"carp streamer","group":6,"hexcode":"1F38F","order":3211,"shortcodes":["carp_streamer"],"tags":["carp","celebration","streamer"],"unicode":"🎏"},{"annotation":"wind chime","group":6,"hexcode":"1F390","order":3212,"shortcodes":["wind_chime"],"tags":["bell","celebration","chime","wind"],"unicode":"🎐"},{"annotation":"moon viewing ceremony","group":6,"hexcode":"1F391","order":3213,"shortcodes":["moon_ceremony","rice_scene"],"tags":["celebration","ceremony","moon"],"unicode":"🎑"},{"annotation":"red envelope","group":6,"hexcode":"1F9E7","order":3214,"shortcodes":["red_envelope"],"tags":["gift","good luck","hóngbāo","lai see","money"],"unicode":"🧧"},{"annotation":"ribbon","group":6,"hexcode":"1F380","order":3215,"shortcodes":["ribbon"],"tags":["celebration"],"unicode":"🎀"},{"annotation":"wrapped gift","group":6,"hexcode":"1F381","order":3216,"shortcodes":["gift"],"tags":["box","celebration","gift","present","wrapped"],"unicode":"🎁"},{"annotation":"reminder ribbon","group":6,"hexcode":"1F397","order":3218,"shortcodes":["reminder_ribbon"],"tags":["celebration","reminder","ribbon"],"unicode":"🎗️"},{"annotation":"admission tickets","group":6,"hexcode":"1F39F","order":3220,"shortcodes":["tickets","admission"],"tags":["admission","ticket"],"unicode":"🎟️"},{"annotation":"ticket","group":6,"hexcode":"1F3AB","order":3221,"shortcodes":["ticket"],"tags":["admission"],"unicode":"🎫"},{"annotation":"military medal","group":6,"hexcode":"1F396","order":3223,"shortcodes":["military_medal"],"tags":["celebration","medal","military"],"unicode":"🎖️"},{"annotation":"trophy","group":6,"hexcode":"1F3C6","order":3224,"shortcodes":["trophy"],"tags":["prize"],"unicode":"🏆️"},{"annotation":"sports medal","group":6,"hexcode":"1F3C5","order":3225,"shortcodes":["medal"],"tags":["medal"],"unicode":"🏅"},{"annotation":"1st place medal","group":6,"hexcode":"1F947","order":3226,"shortcodes":["first_place"],"tags":["first","gold","medal"],"unicode":"🥇"},{"annotation":"2nd place medal","group":6,"hexcode":"1F948","order":3227,"shortcodes":["second_place"],"tags":["medal","second","silver"],"unicode":"🥈"},{"annotation":"3rd place medal","group":6,"hexcode":"1F949","order":3228,"shortcodes":["third_place"],"tags":["bronze","medal","third"],"unicode":"🥉"},{"annotation":"soccer ball","group":6,"hexcode":"26BD","order":3229,"shortcodes":["soccer"],"tags":["ball","football","soccer"],"unicode":"⚽️"},{"annotation":"baseball","group":6,"hexcode":"26BE","order":3230,"shortcodes":["baseball"],"tags":["ball"],"unicode":"⚾️"},{"annotation":"softball","group":6,"hexcode":"1F94E","order":3231,"shortcodes":["softball"],"tags":["ball","glove","underarm"],"unicode":"🥎"},{"annotation":"basketball","group":6,"hexcode":"1F3C0","order":3232,"shortcodes":["basketball"],"tags":["ball","hoop"],"unicode":"🏀"},{"annotation":"volleyball","group":6,"hexcode":"1F3D0","order":3233,"shortcodes":["volleyball"],"tags":["ball","game"],"unicode":"🏐"},{"annotation":"american football","group":6,"hexcode":"1F3C8","order":3234,"shortcodes":["football"],"tags":["american","ball","football"],"unicode":"🏈"},{"annotation":"rugby football","group":6,"hexcode":"1F3C9","order":3235,"shortcodes":["rugby"],"tags":["ball","football","rugby"],"unicode":"🏉"},{"annotation":"tennis","group":6,"hexcode":"1F3BE","order":3236,"shortcodes":["tennis"],"tags":["ball","racquet"],"unicode":"🎾"},{"annotation":"flying disc","group":6,"hexcode":"1F94F","order":3237,"shortcodes":["flying_disc"],"tags":["ultimate"],"unicode":"🥏"},{"annotation":"bowling","group":6,"hexcode":"1F3B3","order":3238,"shortcodes":["bowling"],"tags":["ball","game"],"unicode":"🎳"},{"annotation":"cricket game","group":6,"hexcode":"1F3CF","order":3239,"shortcodes":["cricket_game"],"tags":["ball","bat","game"],"unicode":"🏏"},{"annotation":"field hockey","group":6,"hexcode":"1F3D1","order":3240,"shortcodes":["field_hockey"],"tags":["ball","field","game","hockey","stick"],"unicode":"🏑"},{"annotation":"ice hockey","group":6,"hexcode":"1F3D2","order":3241,"shortcodes":["hockey"],"tags":["game","hockey","ice","puck","stick"],"unicode":"🏒"},{"annotation":"lacrosse","group":6,"hexcode":"1F94D","order":3242,"shortcodes":["lacrosse"],"tags":["ball","goal","stick"],"unicode":"🥍"},{"annotation":"ping pong","group":6,"hexcode":"1F3D3","order":3243,"shortcodes":["ping_pong"],"tags":["ball","bat","game","paddle","table tennis"],"unicode":"🏓"},{"annotation":"badminton","group":6,"hexcode":"1F3F8","order":3244,"shortcodes":["badminton"],"tags":["birdie","game","racquet","shuttlecock"],"unicode":"🏸"},{"annotation":"boxing glove","group":6,"hexcode":"1F94A","order":3245,"shortcodes":["boxing_glove"],"tags":["boxing","glove"],"unicode":"🥊"},{"annotation":"martial arts uniform","group":6,"hexcode":"1F94B","order":3246,"shortcodes":["gi","martial_arts_uniform"],"tags":["judo","karate","martial arts","taekwondo","uniform"],"unicode":"🥋"},{"annotation":"goal net","group":6,"hexcode":"1F945","order":3247,"shortcodes":["goal"],"tags":["goal","net"],"unicode":"🥅"},{"annotation":"flag in hole","group":6,"hexcode":"26F3","order":3248,"shortcodes":["golf"],"tags":["golf","hole"],"unicode":"⛳️"},{"annotation":"ice skate","group":6,"hexcode":"26F8","order":3250,"shortcodes":["ice_skate"],"tags":["ice","skate"],"unicode":"⛸️"},{"annotation":"fishing pole","group":6,"hexcode":"1F3A3","order":3251,"shortcodes":["fishing_pole"],"tags":["fish","pole"],"unicode":"🎣"},{"annotation":"diving mask","group":6,"hexcode":"1F93F","order":3252,"shortcodes":["diving_mask","scuba_mask"],"tags":["diving","scuba","snorkeling"],"unicode":"🤿"},{"annotation":"running shirt","group":6,"hexcode":"1F3BD","order":3253,"shortcodes":["running_shirt"],"tags":["athletics","running","sash","shirt"],"unicode":"🎽"},{"annotation":"skis","group":6,"hexcode":"1F3BF","order":3254,"shortcodes":["ski"],"tags":["ski","snow"],"unicode":"🎿"},{"annotation":"sled","group":6,"hexcode":"1F6F7","order":3255,"shortcodes":["sled"],"tags":["sledge","sleigh"],"unicode":"🛷"},{"annotation":"curling stone","group":6,"hexcode":"1F94C","order":3256,"shortcodes":["curling_stone"],"tags":["game","rock"],"unicode":"🥌"},{"annotation":"direct hit","group":6,"hexcode":"1F3AF","order":3257,"shortcodes":["dart"],"tags":["bullseye","dart","game","hit","target"],"unicode":"🎯"},{"annotation":"yo-yo","group":6,"hexcode":"1FA80","order":3258,"shortcodes":["yoyo"],"tags":["fluctuate","toy"],"unicode":"🪀"},{"annotation":"kite","group":6,"hexcode":"1FA81","order":3259,"shortcodes":["kite"],"tags":["fly","soar"],"unicode":"🪁"},{"annotation":"pool 8 ball","group":6,"hexcode":"1F3B1","order":3260,"shortcodes":["8ball"],"tags":["8","ball","billiard","eight","game"],"unicode":"🎱"},{"annotation":"crystal ball","group":6,"hexcode":"1F52E","order":3261,"shortcodes":["crystal_ball"],"tags":["ball","crystal","fairy tale","fantasy","fortune","tool"],"unicode":"🔮"},{"annotation":"magic wand","group":6,"hexcode":"1FA84","order":3262,"shortcodes":["wand"],"tags":["magic","witch","wizard"],"unicode":"🪄"},{"annotation":"nazar amulet","group":6,"hexcode":"1F9FF","order":3263,"shortcodes":["nazar_amulet"],"tags":["bead","charm","evil-eye","nazar","talisman"],"unicode":"🧿"},{"annotation":"video game","group":6,"hexcode":"1F3AE","order":3264,"shortcodes":["video_game"],"tags":["controller","game"],"unicode":"🎮️"},{"annotation":"joystick","group":6,"hexcode":"1F579","order":3266,"shortcodes":["joystick"],"tags":["game","video game"],"unicode":"🕹️"},{"annotation":"slot machine","group":6,"hexcode":"1F3B0","order":3267,"shortcodes":["slot_machine"],"tags":["game","slot"],"unicode":"🎰"},{"annotation":"game die","group":6,"hexcode":"1F3B2","order":3268,"shortcodes":["game_die"],"tags":["dice","die","game"],"unicode":"🎲"},{"annotation":"puzzle piece","group":6,"hexcode":"1F9E9","order":3269,"shortcodes":["jigsaw","puzzle_piece"],"tags":["clue","interlocking","jigsaw","piece","puzzle"],"unicode":"🧩"},{"annotation":"teddy bear","group":6,"hexcode":"1F9F8","order":3270,"shortcodes":["teddy_bear"],"tags":["plaything","plush","stuffed","toy"],"unicode":"🧸"},{"annotation":"piñata","group":6,"hexcode":"1FA85","order":3271,"shortcodes":["pinata"],"tags":["celebration","party"],"unicode":"🪅"},{"annotation":"nesting dolls","group":6,"hexcode":"1FA86","order":3272,"shortcodes":["nesting_dolls"],"tags":["doll","nesting","russia"],"unicode":"🪆"},{"annotation":"spade suit","group":6,"hexcode":"2660","order":3274,"shortcodes":["spades"],"tags":["card","game"],"unicode":"♠️"},{"annotation":"heart suit","group":6,"hexcode":"2665","order":3276,"shortcodes":["hearts"],"tags":["card","game"],"unicode":"♥️"},{"annotation":"diamond suit","group":6,"hexcode":"2666","order":3278,"shortcodes":["diamonds"],"tags":["card","game"],"unicode":"♦️"},{"annotation":"club suit","group":6,"hexcode":"2663","order":3280,"shortcodes":["clubs"],"tags":["card","game"],"unicode":"♣️"},{"annotation":"chess pawn","group":6,"hexcode":"265F","order":3282,"shortcodes":["chess_pawn"],"tags":["chess","dupe","expendable"],"unicode":"♟️"},{"annotation":"joker","group":6,"hexcode":"1F0CF","order":3283,"shortcodes":["black_joker"],"tags":["card","game","wildcard"],"unicode":"🃏"},{"annotation":"mahjong red dragon","group":6,"hexcode":"1F004","order":3284,"shortcodes":["mahjong"],"tags":["game","mahjong","red"],"unicode":"🀄️"},{"annotation":"flower playing cards","group":6,"hexcode":"1F3B4","order":3285,"shortcodes":["flower_cards"],"tags":["card","flower","game","japanese","playing"],"unicode":"🎴"},{"annotation":"performing arts","group":6,"hexcode":"1F3AD","order":3286,"shortcodes":["performing_arts"],"tags":["art","mask","performing","theater","theatre"],"unicode":"🎭️"},{"annotation":"framed picture","group":6,"hexcode":"1F5BC","order":3288,"shortcodes":["frame_photo"],"tags":["art","frame","museum","painting","picture"],"unicode":"🖼️"},{"annotation":"artist palette","group":6,"hexcode":"1F3A8","order":3289,"shortcodes":["art","palette"],"tags":["art","museum","painting","palette"],"unicode":"🎨"},{"annotation":"thread","group":6,"hexcode":"1F9F5","order":3290,"shortcodes":["spool"],"tags":["needle","sewing","spool","string"],"unicode":"🧵"},{"annotation":"sewing needle","group":6,"hexcode":"1FAA1","order":3291,"shortcodes":["sewing_needle"],"tags":["embroidery","needle","sewing","stitches","sutures","tailoring"],"unicode":"🪡"},{"annotation":"yarn","group":6,"hexcode":"1F9F6","order":3292,"shortcodes":["yarn"],"tags":["ball","crochet","knit"],"unicode":"🧶"},{"annotation":"knot","group":6,"hexcode":"1FAA2","order":3293,"shortcodes":["knot"],"tags":["rope","tangled","tie","twine","twist"],"unicode":"🪢"},{"annotation":"glasses","group":7,"hexcode":"1F453","order":3294,"shortcodes":["glasses"],"tags":["clothing","eye","eyeglasses","eyewear"],"unicode":"👓️"},{"annotation":"sunglasses","group":7,"hexcode":"1F576","order":3296,"shortcodes":["sunglasses"],"tags":["dark","eye","eyewear","glasses"],"unicode":"🕶️"},{"annotation":"goggles","group":7,"hexcode":"1F97D","order":3297,"shortcodes":["goggles"],"tags":["eye protection","swimming","welding"],"unicode":"🥽"},{"annotation":"lab coat","group":7,"hexcode":"1F97C","order":3298,"shortcodes":["lab_coat"],"tags":["doctor","experiment","scientist"],"unicode":"🥼"},{"annotation":"safety vest","group":7,"hexcode":"1F9BA","order":3299,"shortcodes":["safety_vest"],"tags":["emergency","safety","vest"],"unicode":"🦺"},{"annotation":"necktie","group":7,"hexcode":"1F454","order":3300,"shortcodes":["necktie","tie"],"tags":["clothing","tie"],"unicode":"👔"},{"annotation":"t-shirt","group":7,"hexcode":"1F455","order":3301,"shortcodes":["shirt"],"tags":["clothing","shirt","tshirt"],"unicode":"👕"},{"annotation":"jeans","group":7,"hexcode":"1F456","order":3302,"shortcodes":["jeans"],"tags":["clothing","pants","trousers"],"unicode":"👖"},{"annotation":"scarf","group":7,"hexcode":"1F9E3","order":3303,"shortcodes":["scarf"],"tags":["neck"],"unicode":"🧣"},{"annotation":"gloves","group":7,"hexcode":"1F9E4","order":3304,"shortcodes":["gloves"],"tags":["hand"],"unicode":"🧤"},{"annotation":"coat","group":7,"hexcode":"1F9E5","order":3305,"shortcodes":["coat"],"tags":["jacket"],"unicode":"🧥"},{"annotation":"socks","group":7,"hexcode":"1F9E6","order":3306,"shortcodes":["socks"],"tags":["stocking"],"unicode":"🧦"},{"annotation":"dress","group":7,"hexcode":"1F457","order":3307,"shortcodes":["dress"],"tags":["clothing"],"unicode":"👗"},{"annotation":"kimono","group":7,"hexcode":"1F458","order":3308,"shortcodes":["kimono"],"tags":["clothing"],"unicode":"👘"},{"annotation":"sari","group":7,"hexcode":"1F97B","order":3309,"shortcodes":["sari"],"tags":["clothing","dress"],"unicode":"🥻"},{"annotation":"one-piece swimsuit","group":7,"hexcode":"1FA71","order":3310,"shortcodes":["one_piece_swimsuit"],"tags":["bathing suit"],"unicode":"🩱"},{"annotation":"briefs","group":7,"hexcode":"1FA72","order":3311,"shortcodes":["briefs"],"tags":["bathing suit","one-piece","swimsuit","underwear"],"unicode":"🩲"},{"annotation":"shorts","group":7,"hexcode":"1FA73","order":3312,"shortcodes":["shorts"],"tags":["bathing suit","pants","underwear"],"unicode":"🩳"},{"annotation":"bikini","group":7,"hexcode":"1F459","order":3313,"shortcodes":["bikini"],"tags":["clothing","swim"],"unicode":"👙"},{"annotation":"womans clothes","group":7,"hexcode":"1F45A","order":3314,"shortcodes":["blouse","womans_clothes"],"tags":["clothing","woman"],"unicode":"👚"},{"annotation":"purse","group":7,"hexcode":"1F45B","order":3315,"shortcodes":["purse"],"tags":["clothing","coin"],"unicode":"👛"},{"annotation":"handbag","group":7,"hexcode":"1F45C","order":3316,"shortcodes":["handbag"],"tags":["bag","clothing","purse"],"unicode":"👜"},{"annotation":"clutch bag","group":7,"hexcode":"1F45D","order":3317,"shortcodes":["pouch","clutch_bag"],"tags":["bag","clothing","pouch"],"unicode":"👝"},{"annotation":"shopping bags","group":7,"hexcode":"1F6CD","order":3319,"shortcodes":["shopping_bags"],"tags":["bag","hotel","shopping"],"unicode":"🛍️"},{"annotation":"backpack","group":7,"hexcode":"1F392","order":3320,"shortcodes":["backpack"],"tags":["bag","rucksack","satchel","school"],"unicode":"🎒"},{"annotation":"thong sandal","group":7,"hexcode":"1FA74","order":3321,"shortcodes":["sandal"],"tags":["beach sandals","sandals","thong sandals","thongs","zōri"],"unicode":"🩴"},{"annotation":"mans shoe","group":7,"hexcode":"1F45E","order":3322,"shortcodes":["dress_shoe","mans_shoe"],"tags":["clothing","man","shoe"],"unicode":"👞"},{"annotation":"running shoe","group":7,"hexcode":"1F45F","order":3323,"shortcodes":["sneaker","athletic_shoe"],"tags":["athletic","clothing","shoe","sneaker"],"unicode":"👟"},{"annotation":"hiking boot","group":7,"hexcode":"1F97E","order":3324,"shortcodes":["hiking_boot"],"tags":["backpacking","boot","camping","hiking"],"unicode":"🥾"},{"annotation":"flat shoe","group":7,"hexcode":"1F97F","order":3325,"shortcodes":["flat_shoe"],"tags":["ballet flat","slip-on","slipper"],"unicode":"🥿"},{"annotation":"high-heeled shoe","group":7,"hexcode":"1F460","order":3326,"shortcodes":["high_heel"],"tags":["clothing","heel","shoe","woman"],"unicode":"👠"},{"annotation":"womans sandal","group":7,"hexcode":"1F461","order":3327,"shortcodes":["womans_sandal"],"tags":["clothing","sandal","shoe","woman"],"unicode":"👡"},{"annotation":"ballet shoes","group":7,"hexcode":"1FA70","order":3328,"shortcodes":["ballet_shoes"],"tags":["ballet","dance"],"unicode":"🩰"},{"annotation":"womans boot","group":7,"hexcode":"1F462","order":3329,"shortcodes":["womans_boot"],"tags":["boot","clothing","shoe","woman"],"unicode":"👢"},{"annotation":"crown","group":7,"hexcode":"1F451","order":3330,"shortcodes":["crown"],"tags":["clothing","king","queen"],"unicode":"👑"},{"annotation":"womans hat","group":7,"hexcode":"1F452","order":3331,"shortcodes":["womans_hat"],"tags":["clothing","hat","woman"],"unicode":"👒"},{"annotation":"top hat","group":7,"hexcode":"1F3A9","order":3332,"shortcodes":["top_hat"],"tags":["clothing","hat","top","tophat"],"unicode":"🎩"},{"annotation":"graduation cap","group":7,"hexcode":"1F393","order":3333,"shortcodes":["graduation_cap"],"tags":["cap","celebration","clothing","graduation","hat"],"unicode":"🎓️"},{"annotation":"billed cap","group":7,"hexcode":"1F9E2","order":3334,"shortcodes":["billed_cap"],"tags":["baseball cap"],"unicode":"🧢"},{"annotation":"military helmet","group":7,"hexcode":"1FA96","order":3335,"shortcodes":["military_helmet"],"tags":["army","helmet","military","soldier","warrior"],"unicode":"🪖"},{"annotation":"rescue workers helmet","group":7,"hexcode":"26D1","order":3337,"shortcodes":["helmet_cross"],"tags":["aid","cross","face","hat","helmet"],"unicode":"⛑️"},{"annotation":"prayer beads","group":7,"hexcode":"1F4FF","order":3338,"shortcodes":["prayer_beads"],"tags":["beads","clothing","necklace","prayer","religion"],"unicode":"📿"},{"annotation":"lipstick","group":7,"hexcode":"1F484","order":3339,"shortcodes":["lipstick"],"tags":["cosmetics","makeup"],"unicode":"💄"},{"annotation":"ring","group":7,"hexcode":"1F48D","order":3340,"shortcodes":["ring"],"tags":["diamond"],"unicode":"💍"},{"annotation":"gem stone","group":7,"hexcode":"1F48E","order":3341,"shortcodes":["gem"],"tags":["diamond","gem","jewel"],"unicode":"💎"},{"annotation":"muted speaker","group":7,"hexcode":"1F507","order":3342,"shortcodes":["mute","no_sound"],"tags":["mute","quiet","silent","speaker"],"unicode":"🔇"},{"annotation":"speaker low volume","group":7,"hexcode":"1F508","order":3343,"shortcodes":["speaker","low_sound"],"tags":["soft"],"unicode":"🔈️"},{"annotation":"speaker medium volume","group":7,"hexcode":"1F509","order":3344,"shortcodes":["sound"],"tags":["medium"],"unicode":"🔉"},{"annotation":"speaker high volume","group":7,"hexcode":"1F50A","order":3345,"shortcodes":["loud_sound"],"tags":["loud"],"unicode":"🔊"},{"annotation":"loudspeaker","group":7,"hexcode":"1F4E2","order":3346,"shortcodes":["loudspeaker"],"tags":["loud","public address"],"unicode":"📢"},{"annotation":"megaphone","group":7,"hexcode":"1F4E3","order":3347,"shortcodes":["megaphone"],"tags":["cheering"],"unicode":"📣"},{"annotation":"postal horn","group":7,"hexcode":"1F4EF","order":3348,"shortcodes":["postal_horn"],"tags":["horn","post","postal"],"unicode":"📯"},{"annotation":"bell","group":7,"hexcode":"1F514","order":3349,"shortcodes":["bell"],"tags":["bell"],"unicode":"🔔"},{"annotation":"bell with slash","group":7,"hexcode":"1F515","order":3350,"shortcodes":["no_bell"],"tags":["bell","forbidden","mute","quiet","silent"],"unicode":"🔕"},{"annotation":"musical score","group":7,"hexcode":"1F3BC","order":3351,"shortcodes":["musical_score"],"tags":["music","score"],"unicode":"🎼"},{"annotation":"musical note","group":7,"hexcode":"1F3B5","order":3352,"shortcodes":["musical_note"],"tags":["music","note"],"unicode":"🎵"},{"annotation":"musical notes","group":7,"hexcode":"1F3B6","order":3353,"shortcodes":["musical_notes"],"tags":["music","note","notes"],"unicode":"🎶"},{"annotation":"studio microphone","group":7,"hexcode":"1F399","order":3355,"shortcodes":["studio_microphone"],"tags":["mic","microphone","music","studio"],"unicode":"🎙️"},{"annotation":"level slider","group":7,"hexcode":"1F39A","order":3357,"shortcodes":["level_slider"],"tags":["level","music","slider"],"unicode":"🎚️"},{"annotation":"control knobs","group":7,"hexcode":"1F39B","order":3359,"shortcodes":["control_knobs"],"tags":["control","knobs","music"],"unicode":"🎛️"},{"annotation":"microphone","group":7,"hexcode":"1F3A4","order":3360,"shortcodes":["microphone"],"tags":["karaoke","mic"],"unicode":"🎤"},{"annotation":"headphone","group":7,"hexcode":"1F3A7","order":3361,"shortcodes":["headphones"],"tags":["earbud"],"unicode":"🎧️"},{"annotation":"radio","group":7,"hexcode":"1F4FB","order":3362,"shortcodes":["radio"],"tags":["video"],"unicode":"📻️"},{"annotation":"saxophone","group":7,"hexcode":"1F3B7","order":3363,"shortcodes":["saxophone"],"tags":["instrument","music","sax"],"unicode":"🎷"},{"annotation":"accordion","group":7,"hexcode":"1FA97","order":3364,"shortcodes":["accordion"],"tags":["accordian","concertina","squeeze box"],"unicode":"🪗"},{"annotation":"guitar","group":7,"hexcode":"1F3B8","order":3365,"shortcodes":["guitar"],"tags":["instrument","music"],"unicode":"🎸"},{"annotation":"musical keyboard","group":7,"hexcode":"1F3B9","order":3366,"shortcodes":["musical_keyboard"],"tags":["instrument","keyboard","music","piano"],"unicode":"🎹"},{"annotation":"trumpet","group":7,"hexcode":"1F3BA","order":3367,"shortcodes":["trumpet"],"tags":["instrument","music"],"unicode":"🎺"},{"annotation":"violin","group":7,"hexcode":"1F3BB","order":3368,"shortcodes":["violin"],"tags":["instrument","music"],"unicode":"🎻"},{"annotation":"banjo","group":7,"hexcode":"1FA95","order":3369,"shortcodes":["banjo"],"tags":["music","stringed"],"unicode":"🪕"},{"annotation":"drum","group":7,"hexcode":"1F941","order":3370,"shortcodes":["drum"],"tags":["drumsticks","music"],"unicode":"🥁"},{"annotation":"long drum","group":7,"hexcode":"1FA98","order":3371,"shortcodes":["long_drum"],"tags":["beat","conga","drum","rhythm"],"unicode":"🪘"},{"annotation":"mobile phone","group":7,"hexcode":"1F4F1","order":3372,"shortcodes":["mobile","iphone","android"],"tags":["cell","mobile","phone","telephone"],"unicode":"📱"},{"annotation":"mobile phone with arrow","group":7,"hexcode":"1F4F2","order":3373,"shortcodes":["mobile_calling"],"tags":["arrow","cell","mobile","phone","receive"],"unicode":"📲"},{"annotation":"telephone","group":7,"hexcode":"260E","order":3375,"shortcodes":["telephone"],"tags":["phone"],"unicode":"☎️"},{"annotation":"telephone receiver","group":7,"hexcode":"1F4DE","order":3376,"shortcodes":["telephone_receiver"],"tags":["phone","receiver","telephone"],"unicode":"📞"},{"annotation":"pager","group":7,"hexcode":"1F4DF","order":3377,"shortcodes":["pager"],"tags":["pager"],"unicode":"📟️"},{"annotation":"fax machine","group":7,"hexcode":"1F4E0","order":3378,"shortcodes":["fax"],"tags":["fax"],"unicode":"📠"},{"annotation":"battery","group":7,"hexcode":"1F50B","order":3379,"shortcodes":["battery"],"tags":["battery"],"unicode":"🔋"},{"annotation":"electric plug","group":7,"hexcode":"1F50C","order":3380,"shortcodes":["electric_plug"],"tags":["electric","electricity","plug"],"unicode":"🔌"},{"annotation":"laptop","group":7,"hexcode":"1F4BB","order":3381,"shortcodes":["laptop"],"tags":["computer","pc","personal"],"unicode":"💻️"},{"annotation":"desktop computer","group":7,"hexcode":"1F5A5","order":3383,"shortcodes":["desktop","computer"],"tags":["computer","desktop"],"unicode":"🖥️"},{"annotation":"printer","group":7,"hexcode":"1F5A8","order":3385,"shortcodes":["printer"],"tags":["computer"],"unicode":"🖨️"},{"annotation":"keyboard","group":7,"hexcode":"2328","order":3387,"shortcodes":["keyboard"],"tags":["computer"],"unicode":"⌨️"},{"annotation":"computer mouse","group":7,"hexcode":"1F5B1","order":3389,"shortcodes":["computer_mouse"],"tags":["computer"],"unicode":"🖱️"},{"annotation":"trackball","group":7,"hexcode":"1F5B2","order":3391,"shortcodes":["trackball"],"tags":["computer"],"unicode":"🖲️"},{"annotation":"computer disk","group":7,"hexcode":"1F4BD","order":3392,"shortcodes":["minidisc"],"tags":["computer","disk","minidisk","optical"],"unicode":"💽"},{"annotation":"floppy disk","group":7,"hexcode":"1F4BE","order":3393,"shortcodes":["floppy_disk"],"tags":["computer","disk","floppy"],"unicode":"💾"},{"annotation":"optical disk","group":7,"hexcode":"1F4BF","order":3394,"shortcodes":["cd","disk"],"tags":["cd","computer","disk","optical"],"unicode":"💿️"},{"annotation":"dvd","group":7,"hexcode":"1F4C0","order":3395,"shortcodes":["dvd"],"tags":["blu-ray","computer","disk","optical"],"unicode":"📀"},{"annotation":"abacus","group":7,"hexcode":"1F9EE","order":3396,"shortcodes":["abacus"],"tags":["calculation"],"unicode":"🧮"},{"annotation":"movie camera","group":7,"hexcode":"1F3A5","order":3397,"shortcodes":["movie_camera"],"tags":["camera","cinema","movie"],"unicode":"🎥"},{"annotation":"film frames","group":7,"hexcode":"1F39E","order":3399,"shortcodes":["film_frames"],"tags":["cinema","film","frames","movie"],"unicode":"🎞️"},{"annotation":"film projector","group":7,"hexcode":"1F4FD","order":3401,"shortcodes":["projector"],"tags":["cinema","film","movie","projector","video"],"unicode":"📽️"},{"annotation":"clapper board","group":7,"hexcode":"1F3AC","order":3402,"shortcodes":["clapper"],"tags":["clapper","movie"],"unicode":"🎬️"},{"annotation":"television","group":7,"hexcode":"1F4FA","order":3403,"shortcodes":["tv"],"tags":["tv","video"],"unicode":"📺️"},{"annotation":"camera","group":7,"hexcode":"1F4F7","order":3404,"shortcodes":["camera"],"tags":["video"],"unicode":"📷️"},{"annotation":"camera with flash","group":7,"hexcode":"1F4F8","order":3405,"shortcodes":["camera_flash"],"tags":["camera","flash","video"],"unicode":"📸"},{"annotation":"video camera","group":7,"hexcode":"1F4F9","order":3406,"shortcodes":["video_camera"],"tags":["camera","video"],"unicode":"📹️"},{"annotation":"videocassette","group":7,"hexcode":"1F4FC","order":3407,"shortcodes":["vhs"],"tags":["tape","vhs","video"],"unicode":"📼"},{"annotation":"magnifying glass tilted left","group":7,"hexcode":"1F50D","order":3408,"shortcodes":["mag"],"tags":["glass","magnifying","search","tool"],"unicode":"🔍️"},{"annotation":"magnifying glass tilted right","group":7,"hexcode":"1F50E","order":3409,"shortcodes":["mag_right"],"tags":["glass","magnifying","search","tool"],"unicode":"🔎"},{"annotation":"candle","group":7,"hexcode":"1F56F","order":3411,"shortcodes":["candle"],"tags":["light"],"unicode":"🕯️"},{"annotation":"light bulb","group":7,"hexcode":"1F4A1","order":3412,"shortcodes":["bulb","light_bulb"],"tags":["bulb","comic","electric","idea","light"],"unicode":"💡"},{"annotation":"flashlight","group":7,"hexcode":"1F526","order":3413,"shortcodes":["flashlight"],"tags":["electric","light","tool","torch"],"unicode":"🔦"},{"annotation":"red paper lantern","group":7,"hexcode":"1F3EE","order":3414,"shortcodes":["red_lantern"],"tags":["bar","lantern","light","red"],"unicode":"🏮"},{"annotation":"diya lamp","group":7,"hexcode":"1FA94","order":3415,"shortcodes":["diya_lamp"],"tags":["diya","lamp","oil"],"unicode":"🪔"},{"annotation":"notebook with decorative cover","group":7,"hexcode":"1F4D4","order":3416,"shortcodes":["decorative_notebook"],"tags":["book","cover","decorated","notebook"],"unicode":"📔"},{"annotation":"closed book","group":7,"hexcode":"1F4D5","order":3417,"shortcodes":["closed_book"],"tags":["book","closed"],"unicode":"📕"},{"annotation":"open book","group":7,"hexcode":"1F4D6","order":3418,"shortcodes":["book"],"tags":["book","open"],"unicode":"📖"},{"annotation":"green book","group":7,"hexcode":"1F4D7","order":3419,"shortcodes":["green_book"],"tags":["book","green"],"unicode":"📗"},{"annotation":"blue book","group":7,"hexcode":"1F4D8","order":3420,"shortcodes":["blue_book"],"tags":["blue","book"],"unicode":"📘"},{"annotation":"orange book","group":7,"hexcode":"1F4D9","order":3421,"shortcodes":["orange_book"],"tags":["book","orange"],"unicode":"📙"},{"annotation":"books","group":7,"hexcode":"1F4DA","order":3422,"shortcodes":["books"],"tags":["book"],"unicode":"📚️"},{"annotation":"notebook","group":7,"hexcode":"1F4D3","order":3423,"shortcodes":["notebook"],"tags":["notebook"],"unicode":"📓"},{"annotation":"ledger","group":7,"hexcode":"1F4D2","order":3424,"shortcodes":["ledger"],"tags":["notebook"],"unicode":"📒"},{"annotation":"page with curl","group":7,"hexcode":"1F4C3","order":3425,"shortcodes":["page_curl"],"tags":["curl","document","page"],"unicode":"📃"},{"annotation":"scroll","group":7,"hexcode":"1F4DC","order":3426,"shortcodes":["scroll"],"tags":["paper"],"unicode":"📜"},{"annotation":"page facing up","group":7,"hexcode":"1F4C4","order":3427,"shortcodes":["page_facing_up"],"tags":["document","page"],"unicode":"📄"},{"annotation":"newspaper","group":7,"hexcode":"1F4F0","order":3428,"shortcodes":["newspaper"],"tags":["news","paper"],"unicode":"📰"},{"annotation":"rolled-up newspaper","group":7,"hexcode":"1F5DE","order":3430,"shortcodes":["rolled_newspaper"],"tags":["news","newspaper","paper","rolled"],"unicode":"🗞️"},{"annotation":"bookmark tabs","group":7,"hexcode":"1F4D1","order":3431,"shortcodes":["bookmark_tabs"],"tags":["bookmark","mark","marker","tabs"],"unicode":"📑"},{"annotation":"bookmark","group":7,"hexcode":"1F516","order":3432,"shortcodes":["bookmark"],"tags":["mark"],"unicode":"🔖"},{"annotation":"label","group":7,"hexcode":"1F3F7","order":3434,"shortcodes":["label"],"tags":["label"],"unicode":"🏷️"},{"annotation":"money bag","group":7,"hexcode":"1F4B0","order":3435,"shortcodes":["moneybag"],"tags":["bag","dollar","money","moneybag"],"unicode":"💰️"},{"annotation":"coin","group":7,"hexcode":"1FA99","order":3436,"shortcodes":["coin"],"tags":["gold","metal","money","silver","treasure"],"unicode":"🪙"},{"annotation":"yen banknote","group":7,"hexcode":"1F4B4","order":3437,"shortcodes":["yen"],"tags":["banknote","bill","currency","money","note","yen"],"unicode":"💴"},{"annotation":"dollar banknote","group":7,"hexcode":"1F4B5","order":3438,"shortcodes":["dollar"],"tags":["banknote","bill","currency","dollar","money","note"],"unicode":"💵"},{"annotation":"euro banknote","group":7,"hexcode":"1F4B6","order":3439,"shortcodes":["euro"],"tags":["banknote","bill","currency","euro","money","note"],"unicode":"💶"},{"annotation":"pound banknote","group":7,"hexcode":"1F4B7","order":3440,"shortcodes":["pound"],"tags":["banknote","bill","currency","money","note","pound"],"unicode":"💷"},{"annotation":"money with wings","group":7,"hexcode":"1F4B8","order":3441,"shortcodes":["money_wings"],"tags":["banknote","bill","fly","money","wings"],"unicode":"💸"},{"annotation":"credit card","group":7,"hexcode":"1F4B3","order":3442,"shortcodes":["credit_card"],"tags":["card","credit","money"],"unicode":"💳️"},{"annotation":"receipt","group":7,"hexcode":"1F9FE","order":3443,"shortcodes":["receipt"],"tags":["accounting","bookkeeping","evidence","proof"],"unicode":"🧾"},{"annotation":"chart increasing with yen","group":7,"hexcode":"1F4B9","order":3444,"shortcodes":["ja_chart"],"tags":["chart","graph","growth","money","yen"],"unicode":"💹"},{"annotation":"envelope","group":7,"hexcode":"2709","order":3446,"shortcodes":["envelope"],"tags":["email","letter"],"unicode":"✉️"},{"annotation":"e-mail","group":7,"hexcode":"1F4E7","order":3447,"shortcodes":["email"],"tags":["email","letter","mail"],"unicode":"📧"},{"annotation":"incoming envelope","group":7,"hexcode":"1F4E8","order":3448,"shortcodes":["incoming_envelope"],"tags":["e-mail","email","envelope","incoming","letter","receive"],"unicode":"📨"},{"annotation":"envelope with arrow","group":7,"hexcode":"1F4E9","order":3449,"shortcodes":["envelope_arrow"],"tags":["arrow","e-mail","email","envelope","outgoing"],"unicode":"📩"},{"annotation":"outbox tray","group":7,"hexcode":"1F4E4","order":3450,"shortcodes":["outbox_tray"],"tags":["box","letter","mail","outbox","sent","tray"],"unicode":"📤️"},{"annotation":"inbox tray","group":7,"hexcode":"1F4E5","order":3451,"shortcodes":["inbox_tray"],"tags":["box","inbox","letter","mail","receive","tray"],"unicode":"📥️"},{"annotation":"package","group":7,"hexcode":"1F4E6","order":3452,"shortcodes":["package"],"tags":["box","parcel"],"unicode":"📦️"},{"annotation":"closed mailbox with raised flag","group":7,"hexcode":"1F4EB","order":3453,"shortcodes":["mailbox"],"tags":["closed","mail","mailbox","postbox"],"unicode":"📫️"},{"annotation":"closed mailbox with lowered flag","group":7,"hexcode":"1F4EA","order":3454,"shortcodes":["mailbox_closed"],"tags":["closed","lowered","mail","mailbox","postbox"],"unicode":"📪️"},{"annotation":"open mailbox with raised flag","group":7,"hexcode":"1F4EC","order":3455,"shortcodes":["mailbox_mail"],"tags":["mail","mailbox","open","postbox"],"unicode":"📬️"},{"annotation":"open mailbox with lowered flag","group":7,"hexcode":"1F4ED","order":3456,"shortcodes":["mailbox_no_mail"],"tags":["lowered","mail","mailbox","open","postbox"],"unicode":"📭️"},{"annotation":"postbox","group":7,"hexcode":"1F4EE","order":3457,"shortcodes":["postbox"],"tags":["mail","mailbox"],"unicode":"📮"},{"annotation":"ballot box with ballot","group":7,"hexcode":"1F5F3","order":3459,"shortcodes":["ballot_box"],"tags":["ballot","box"],"unicode":"🗳️"},{"annotation":"pencil","group":7,"hexcode":"270F","order":3461,"shortcodes":["pencil"],"tags":["pencil"],"unicode":"✏️"},{"annotation":"black nib","group":7,"hexcode":"2712","order":3463,"shortcodes":["black_nib"],"tags":["nib","pen"],"unicode":"✒️"},{"annotation":"fountain pen","group":7,"hexcode":"1F58B","order":3465,"shortcodes":["fountain_pen"],"tags":["fountain","pen"],"unicode":"🖋️"},{"annotation":"pen","group":7,"hexcode":"1F58A","order":3467,"shortcodes":["pen"],"tags":["ballpoint"],"unicode":"🖊️"},{"annotation":"paintbrush","group":7,"hexcode":"1F58C","order":3469,"shortcodes":["paintbrush"],"tags":["painting"],"unicode":"🖌️"},{"annotation":"crayon","group":7,"hexcode":"1F58D","order":3471,"shortcodes":["crayon"],"tags":["crayon"],"unicode":"🖍️"},{"annotation":"memo","group":7,"hexcode":"1F4DD","order":3472,"shortcodes":["memo"],"tags":["pencil"],"unicode":"📝"},{"annotation":"briefcase","group":7,"hexcode":"1F4BC","order":3473,"shortcodes":["briefcase"],"tags":["briefcase"],"unicode":"💼"},{"annotation":"file folder","group":7,"hexcode":"1F4C1","order":3474,"shortcodes":["file_folder"],"tags":["file","folder"],"unicode":"📁"},{"annotation":"open file folder","group":7,"hexcode":"1F4C2","order":3475,"shortcodes":["open_file_folder"],"tags":["file","folder","open"],"unicode":"📂"},{"annotation":"card index dividers","group":7,"hexcode":"1F5C2","order":3477,"shortcodes":["dividers"],"tags":["card","dividers","index"],"unicode":"🗂️"},{"annotation":"calendar","group":7,"hexcode":"1F4C5","order":3478,"shortcodes":["date","calendar"],"tags":["date"],"unicode":"📅"},{"annotation":"tear-off calendar","group":7,"hexcode":"1F4C6","order":3479,"shortcodes":["torn_calendar"],"tags":["calendar"],"unicode":"📆"},{"annotation":"spiral notepad","group":7,"hexcode":"1F5D2","order":3481,"shortcodes":["notepad_spiral"],"tags":["note","pad","spiral"],"unicode":"🗒️"},{"annotation":"spiral calendar","group":7,"hexcode":"1F5D3","order":3483,"shortcodes":["calendar_spiral"],"tags":["calendar","pad","spiral"],"unicode":"🗓️"},{"annotation":"card index","group":7,"hexcode":"1F4C7","order":3484,"shortcodes":["card_index"],"tags":["card","index","rolodex"],"unicode":"📇"},{"annotation":"chart increasing","group":7,"hexcode":"1F4C8","order":3485,"shortcodes":["chart_up"],"tags":["chart","graph","growth","trend","upward"],"unicode":"📈"},{"annotation":"chart decreasing","group":7,"hexcode":"1F4C9","order":3486,"shortcodes":["chart_down"],"tags":["chart","down","graph","trend"],"unicode":"📉"},{"annotation":"bar chart","group":7,"hexcode":"1F4CA","order":3487,"shortcodes":["bar_chart"],"tags":["bar","chart","graph"],"unicode":"📊"},{"annotation":"clipboard","group":7,"hexcode":"1F4CB","order":3488,"shortcodes":["clipboard"],"tags":["clipboard"],"unicode":"📋️"},{"annotation":"pushpin","group":7,"hexcode":"1F4CC","order":3489,"shortcodes":["pushpin"],"tags":["pin"],"unicode":"📌"},{"annotation":"round pushpin","group":7,"hexcode":"1F4CD","order":3490,"shortcodes":["round_pushpin"],"tags":["pin","pushpin"],"unicode":"📍"},{"annotation":"paperclip","group":7,"hexcode":"1F4CE","order":3491,"shortcodes":["paperclip"],"tags":["paperclip"],"unicode":"📎"},{"annotation":"linked paperclips","group":7,"hexcode":"1F587","order":3493,"shortcodes":["paperclips"],"tags":["link","paperclip"],"unicode":"🖇️"},{"annotation":"straight ruler","group":7,"hexcode":"1F4CF","order":3494,"shortcodes":["straight_ruler"],"tags":["ruler","straight edge"],"unicode":"📏"},{"annotation":"triangular ruler","group":7,"hexcode":"1F4D0","order":3495,"shortcodes":["triangular_ruler"],"tags":["ruler","set","triangle"],"unicode":"📐"},{"annotation":"scissors","group":7,"hexcode":"2702","order":3497,"shortcodes":["scissors"],"tags":["cutting","tool"],"unicode":"✂️"},{"annotation":"card file box","group":7,"hexcode":"1F5C3","order":3499,"shortcodes":["card_box"],"tags":["box","card","file"],"unicode":"🗃️"},{"annotation":"file cabinet","group":7,"hexcode":"1F5C4","order":3501,"shortcodes":["file_cabinet"],"tags":["cabinet","file","filing"],"unicode":"🗄️"},{"annotation":"wastebasket","group":7,"hexcode":"1F5D1","order":3503,"shortcodes":["trashcan","wastebasket"],"tags":["wastebasket"],"unicode":"🗑️"},{"annotation":"locked","group":7,"hexcode":"1F512","order":3504,"shortcodes":["lock"],"tags":["closed"],"unicode":"🔒️"},{"annotation":"unlocked","group":7,"hexcode":"1F513","order":3505,"shortcodes":["unlock"],"tags":["lock","open","unlock"],"unicode":"🔓️"},{"annotation":"locked with pen","group":7,"hexcode":"1F50F","order":3506,"shortcodes":["locked_pen"],"tags":["ink","lock","nib","pen","privacy"],"unicode":"🔏"},{"annotation":"locked with key","group":7,"hexcode":"1F510","order":3507,"shortcodes":["locked_key"],"tags":["closed","key","lock","secure"],"unicode":"🔐"},{"annotation":"key","group":7,"hexcode":"1F511","order":3508,"shortcodes":["key"],"tags":["lock","password"],"unicode":"🔑"},{"annotation":"old key","group":7,"hexcode":"1F5DD","order":3510,"shortcodes":["old_key"],"tags":["clue","key","lock","old"],"unicode":"🗝️"},{"annotation":"hammer","group":7,"hexcode":"1F528","order":3511,"shortcodes":["hammer"],"tags":["tool"],"unicode":"🔨"},{"annotation":"axe","group":7,"hexcode":"1FA93","order":3512,"shortcodes":["axe"],"tags":["chop","hatchet","split","wood"],"unicode":"🪓"},{"annotation":"pick","group":7,"hexcode":"26CF","order":3514,"shortcodes":["pick"],"tags":["mining","tool"],"unicode":"⛏️"},{"annotation":"hammer and pick","group":7,"hexcode":"2692","order":3516,"shortcodes":["hammer_pick"],"tags":["hammer","pick","tool"],"unicode":"⚒️"},{"annotation":"hammer and wrench","group":7,"hexcode":"1F6E0","order":3518,"shortcodes":["tools","hammer_wrench"],"tags":["hammer","spanner","tool","wrench"],"unicode":"🛠️"},{"annotation":"dagger","group":7,"hexcode":"1F5E1","order":3520,"shortcodes":["dagger"],"tags":["knife","weapon"],"unicode":"🗡️"},{"annotation":"crossed swords","group":7,"hexcode":"2694","order":3522,"shortcodes":["crossed_swords"],"tags":["crossed","swords","weapon"],"unicode":"⚔️"},{"annotation":"pistol","group":7,"hexcode":"1F52B","order":3523,"shortcodes":["gun","pistol"],"tags":["gun","handgun","revolver","tool","weapon"],"unicode":"🔫"},{"annotation":"boomerang","group":7,"hexcode":"1FA83","order":3524,"shortcodes":["boomerang"],"tags":["australia","rebound","repercussion"],"unicode":"🪃"},{"annotation":"bow and arrow","group":7,"hexcode":"1F3F9","order":3525,"shortcodes":["bow"],"tags":["archer","arrow","bow","sagittarius","zodiac"],"unicode":"🏹"},{"annotation":"shield","group":7,"hexcode":"1F6E1","order":3527,"shortcodes":["shield"],"tags":["weapon"],"unicode":"🛡️"},{"annotation":"carpentry saw","group":7,"hexcode":"1FA9A","order":3528,"shortcodes":["saw"],"tags":["carpenter","lumber","saw","tool"],"unicode":"🪚"},{"annotation":"wrench","group":7,"hexcode":"1F527","order":3529,"shortcodes":["wrench"],"tags":["spanner","tool"],"unicode":"🔧"},{"annotation":"screwdriver","group":7,"hexcode":"1FA9B","order":3530,"shortcodes":["screwdriver"],"tags":["screw","tool"],"unicode":"🪛"},{"annotation":"nut and bolt","group":7,"hexcode":"1F529","order":3531,"shortcodes":["nut_and_bolt"],"tags":["bolt","nut","tool"],"unicode":"🔩"},{"annotation":"gear","group":7,"hexcode":"2699","order":3533,"shortcodes":["gear"],"tags":["cog","cogwheel","tool"],"unicode":"⚙️"},{"annotation":"clamp","group":7,"hexcode":"1F5DC","order":3535,"shortcodes":["clamp","compression"],"tags":["compress","tool","vice"],"unicode":"🗜️"},{"annotation":"balance scale","group":7,"hexcode":"2696","order":3537,"shortcodes":["scales"],"tags":["balance","justice","libra","scale","zodiac"],"unicode":"⚖️"},{"annotation":"white cane","group":7,"hexcode":"1F9AF","order":3538,"shortcodes":["probing_cane"],"tags":["accessibility","blind"],"unicode":"🦯"},{"annotation":"link","group":7,"hexcode":"1F517","order":3539,"shortcodes":["link"],"tags":["link"],"unicode":"🔗"},{"annotation":"chains","group":7,"hexcode":"26D3","order":3541,"shortcodes":["chains"],"tags":["chain"],"unicode":"⛓️"},{"annotation":"hook","group":7,"hexcode":"1FA9D","order":3542,"shortcodes":["hook"],"tags":["catch","crook","curve","ensnare","selling point"],"unicode":"🪝"},{"annotation":"toolbox","group":7,"hexcode":"1F9F0","order":3543,"shortcodes":["toolbox"],"tags":["chest","mechanic","tool"],"unicode":"🧰"},{"annotation":"magnet","group":7,"hexcode":"1F9F2","order":3544,"shortcodes":["magnet"],"tags":["attraction","horseshoe","magnetic"],"unicode":"🧲"},{"annotation":"ladder","group":7,"hexcode":"1FA9C","order":3545,"shortcodes":["ladder"],"tags":["climb","rung","step"],"unicode":"🪜"},{"annotation":"alembic","group":7,"hexcode":"2697","order":3547,"shortcodes":["alembic"],"tags":["chemistry","tool"],"unicode":"⚗️"},{"annotation":"test tube","group":7,"hexcode":"1F9EA","order":3548,"shortcodes":["test_tube"],"tags":["chemist","chemistry","experiment","lab","science"],"unicode":"🧪"},{"annotation":"petri dish","group":7,"hexcode":"1F9EB","order":3549,"shortcodes":["petri_dish"],"tags":["bacteria","biologist","biology","culture","lab"],"unicode":"🧫"},{"annotation":"dna","group":7,"hexcode":"1F9EC","order":3550,"shortcodes":["dna","double_helix"],"tags":["biologist","evolution","gene","genetics","life"],"unicode":"🧬"},{"annotation":"microscope","group":7,"hexcode":"1F52C","order":3551,"shortcodes":["microscope"],"tags":["science","tool"],"unicode":"🔬"},{"annotation":"telescope","group":7,"hexcode":"1F52D","order":3552,"shortcodes":["telescope"],"tags":["science","tool"],"unicode":"🔭"},{"annotation":"satellite antenna","group":7,"hexcode":"1F4E1","order":3553,"shortcodes":["satellite_antenna"],"tags":["antenna","dish","satellite"],"unicode":"📡"},{"annotation":"syringe","group":7,"hexcode":"1F489","order":3554,"shortcodes":["syringe"],"tags":["medicine","needle","shot","sick"],"unicode":"💉"},{"annotation":"drop of blood","group":7,"hexcode":"1FA78","order":3555,"shortcodes":["blood_drop"],"tags":["bleed","blood donation","injury","medicine","menstruation"],"unicode":"🩸"},{"annotation":"pill","group":7,"hexcode":"1F48A","order":3556,"shortcodes":["pill"],"tags":["doctor","medicine","sick"],"unicode":"💊"},{"annotation":"adhesive bandage","group":7,"hexcode":"1FA79","order":3557,"shortcodes":["bandaid","adhesive_bandage"],"tags":["bandage"],"unicode":"🩹"},{"annotation":"stethoscope","group":7,"hexcode":"1FA7A","order":3558,"shortcodes":["stethoscope"],"tags":["doctor","heart","medicine"],"unicode":"🩺"},{"annotation":"door","group":7,"hexcode":"1F6AA","order":3559,"shortcodes":["door"],"tags":["door"],"unicode":"🚪"},{"annotation":"elevator","group":7,"hexcode":"1F6D7","order":3560,"shortcodes":["elevator"],"tags":["accessibility","hoist","lift"],"unicode":"🛗"},{"annotation":"mirror","group":7,"hexcode":"1FA9E","order":3561,"shortcodes":["mirror"],"tags":["reflection","reflector","speculum"],"unicode":"🪞"},{"annotation":"window","group":7,"hexcode":"1FA9F","order":3562,"shortcodes":["window"],"tags":["frame","fresh air","opening","transparent","view"],"unicode":"🪟"},{"annotation":"bed","group":7,"hexcode":"1F6CF","order":3564,"shortcodes":["bed"],"tags":["hotel","sleep"],"unicode":"🛏️"},{"annotation":"couch and lamp","group":7,"hexcode":"1F6CB","order":3566,"shortcodes":["couch"],"tags":["couch","hotel","lamp"],"unicode":"🛋️"},{"annotation":"chair","group":7,"hexcode":"1FA91","order":3567,"shortcodes":["chair"],"tags":["seat","sit"],"unicode":"🪑"},{"annotation":"toilet","group":7,"hexcode":"1F6BD","order":3568,"shortcodes":["toilet"],"tags":["toilet"],"unicode":"🚽"},{"annotation":"plunger","group":7,"hexcode":"1FAA0","order":3569,"shortcodes":["plunger"],"tags":["force cup","plumber","suction","toilet"],"unicode":"🪠"},{"annotation":"shower","group":7,"hexcode":"1F6BF","order":3570,"shortcodes":["shower"],"tags":["water"],"unicode":"🚿"},{"annotation":"bathtub","group":7,"hexcode":"1F6C1","order":3571,"shortcodes":["bathtub"],"tags":["bath"],"unicode":"🛁"},{"annotation":"mouse trap","group":7,"hexcode":"1FAA4","order":3572,"shortcodes":["mouse_trap"],"tags":["bait","mousetrap","snare","trap"],"unicode":"🪤"},{"annotation":"razor","group":7,"hexcode":"1FA92","order":3573,"shortcodes":["razor"],"tags":["sharp","shave"],"unicode":"🪒"},{"annotation":"lotion bottle","group":7,"hexcode":"1F9F4","order":3574,"shortcodes":["lotion"],"tags":["lotion","moisturizer","shampoo","sunscreen"],"unicode":"🧴"},{"annotation":"safety pin","group":7,"hexcode":"1F9F7","order":3575,"shortcodes":["safety_pin"],"tags":["diaper","punk rock"],"unicode":"🧷"},{"annotation":"broom","group":7,"hexcode":"1F9F9","order":3576,"shortcodes":["broom"],"tags":["cleaning","sweeping","witch"],"unicode":"🧹"},{"annotation":"basket","group":7,"hexcode":"1F9FA","order":3577,"shortcodes":["basket"],"tags":["farming","laundry","picnic"],"unicode":"🧺"},{"annotation":"roll of paper","group":7,"hexcode":"1F9FB","order":3578,"shortcodes":["toilet_paper"],"tags":["paper towels","toilet paper"],"unicode":"🧻"},{"annotation":"bucket","group":7,"hexcode":"1FAA3","order":3579,"shortcodes":["bucket"],"tags":["cask","pail","vat"],"unicode":"🪣"},{"annotation":"soap","group":7,"hexcode":"1F9FC","order":3580,"shortcodes":["soap"],"tags":["bar","bathing","cleaning","lather","soapdish"],"unicode":"🧼"},{"annotation":"toothbrush","group":7,"hexcode":"1FAA5","order":3581,"shortcodes":["toothbrush"],"tags":["bathroom","brush","clean","dental","hygiene","teeth"],"unicode":"🪥"},{"annotation":"sponge","group":7,"hexcode":"1F9FD","order":3582,"shortcodes":["sponge"],"tags":["absorbing","cleaning","porous"],"unicode":"🧽"},{"annotation":"fire extinguisher","group":7,"hexcode":"1F9EF","order":3583,"shortcodes":["fire_extinguisher"],"tags":["extinguish","fire","quench"],"unicode":"🧯"},{"annotation":"shopping cart","group":7,"hexcode":"1F6D2","order":3584,"shortcodes":["shopping_cart"],"tags":["cart","shopping","trolley"],"unicode":"🛒"},{"annotation":"cigarette","group":7,"hexcode":"1F6AC","order":3585,"shortcodes":["cigarette","smoking"],"tags":["smoking"],"unicode":"🚬"},{"annotation":"coffin","group":7,"hexcode":"26B0","order":3587,"shortcodes":["coffin"],"tags":["death"],"unicode":"⚰️"},{"annotation":"headstone","group":7,"hexcode":"1FAA6","order":3588,"shortcodes":["headstone"],"tags":["cemetery","grave","graveyard","tombstone"],"unicode":"🪦"},{"annotation":"funeral urn","group":7,"hexcode":"26B1","order":3590,"shortcodes":["urn"],"tags":["ashes","death","funeral","urn"],"unicode":"⚱️"},{"annotation":"moai","group":7,"hexcode":"1F5FF","order":3591,"shortcodes":["moai"],"tags":["face","moyai","statue"],"unicode":"🗿"},{"annotation":"placard","group":7,"hexcode":"1FAA7","order":3592,"shortcodes":["placard"],"tags":["demonstration","picket","protest","sign"],"unicode":"🪧"},{"annotation":"ATM sign","group":8,"hexcode":"1F3E7","order":3593,"shortcodes":["atm"],"tags":["atm","atm sign","automated","bank","teller"],"unicode":"🏧"},{"annotation":"litter in bin sign","group":8,"hexcode":"1F6AE","order":3594,"shortcodes":["litter_bin"],"tags":["litter","litter bin"],"unicode":"🚮"},{"annotation":"potable water","group":8,"hexcode":"1F6B0","order":3595,"shortcodes":["potable_water"],"tags":["drinking","potable","water"],"unicode":"🚰"},{"annotation":"wheelchair symbol","group":8,"hexcode":"267F","order":3596,"shortcodes":["handicapped"],"tags":["access"],"unicode":"♿️"},{"annotation":"mens room","group":8,"hexcode":"1F6B9","order":3597,"shortcodes":["mens"],"tags":["lavatory","man","restroom","wc"],"unicode":"🚹️"},{"annotation":"womens room","group":8,"hexcode":"1F6BA","order":3598,"shortcodes":["womens"],"tags":["lavatory","restroom","wc","woman"],"unicode":"🚺️"},{"annotation":"restroom","group":8,"hexcode":"1F6BB","order":3599,"shortcodes":["restroom","bathroom"],"tags":["lavatory","wc"],"unicode":"🚻"},{"annotation":"baby symbol","group":8,"hexcode":"1F6BC","order":3600,"shortcodes":["baby_symbol"],"tags":["baby","changing"],"unicode":"🚼️"},{"annotation":"water closet","group":8,"hexcode":"1F6BE","order":3601,"shortcodes":["wc"],"tags":["closet","lavatory","restroom","water","wc"],"unicode":"🚾"},{"annotation":"passport control","group":8,"hexcode":"1F6C2","order":3602,"shortcodes":["passport_control"],"tags":["control","passport"],"unicode":"🛂"},{"annotation":"customs","group":8,"hexcode":"1F6C3","order":3603,"shortcodes":["customs"],"tags":["customs"],"unicode":"🛃"},{"annotation":"baggage claim","group":8,"hexcode":"1F6C4","order":3604,"shortcodes":["baggage_claim"],"tags":["baggage","claim"],"unicode":"🛄"},{"annotation":"left luggage","group":8,"hexcode":"1F6C5","order":3605,"shortcodes":["left_luggage"],"tags":["baggage","locker","luggage"],"unicode":"🛅"},{"annotation":"warning","group":8,"hexcode":"26A0","order":3607,"shortcodes":["warning"],"tags":["warning"],"unicode":"⚠️"},{"annotation":"children crossing","group":8,"hexcode":"1F6B8","order":3608,"shortcodes":["children_crossing"],"tags":["child","crossing","pedestrian","traffic"],"unicode":"🚸"},{"annotation":"no entry","group":8,"hexcode":"26D4","order":3609,"shortcodes":["no_entry"],"tags":["entry","forbidden","no","not","prohibited","traffic"],"unicode":"⛔️"},{"annotation":"prohibited","group":8,"hexcode":"1F6AB","order":3610,"shortcodes":["no_entry_sign"],"tags":["entry","forbidden","no","not"],"unicode":"🚫"},{"annotation":"no bicycles","group":8,"hexcode":"1F6B3","order":3611,"shortcodes":["no_bicycles"],"tags":["bicycle","bike","forbidden","no","prohibited"],"unicode":"🚳"},{"annotation":"no smoking","group":8,"hexcode":"1F6AD","order":3612,"shortcodes":["no_smoking"],"tags":["forbidden","no","not","prohibited","smoking"],"unicode":"🚭️"},{"annotation":"no littering","group":8,"hexcode":"1F6AF","order":3613,"shortcodes":["do_not_litter"],"tags":["forbidden","litter","no","not","prohibited"],"unicode":"🚯"},{"annotation":"non-potable water","group":8,"hexcode":"1F6B1","order":3614,"shortcodes":["non_potable_water"],"tags":["non-drinking","non-potable","water"],"unicode":"🚱"},{"annotation":"no pedestrians","group":8,"hexcode":"1F6B7","order":3615,"shortcodes":["no_pedestrians"],"tags":["forbidden","no","not","pedestrian","prohibited"],"unicode":"🚷"},{"annotation":"no mobile phones","group":8,"hexcode":"1F4F5","order":3616,"shortcodes":["no_mobile_phones"],"tags":["cell","forbidden","mobile","no","phone"],"unicode":"📵"},{"annotation":"no one under eighteen","group":8,"hexcode":"1F51E","order":3617,"shortcodes":["underage"],"tags":["18","age restriction","eighteen","prohibited","underage"],"unicode":"🔞"},{"annotation":"radioactive","group":8,"hexcode":"2622","order":3619,"shortcodes":["radioactive"],"tags":["sign"],"unicode":"☢️"},{"annotation":"biohazard","group":8,"hexcode":"2623","order":3621,"shortcodes":["biohazard"],"tags":["sign"],"unicode":"☣️"},{"annotation":"up arrow","group":8,"hexcode":"2B06","order":3623,"shortcodes":["arrow_up"],"tags":["arrow","cardinal","direction","north"],"unicode":"⬆️"},{"annotation":"up-right arrow","group":8,"hexcode":"2197","order":3625,"shortcodes":["arrow_upper_right"],"tags":["arrow","direction","intercardinal","northeast"],"unicode":"↗️"},{"annotation":"right arrow","group":8,"hexcode":"27A1","order":3627,"shortcodes":["arrow_right"],"tags":["arrow","cardinal","direction","east"],"unicode":"➡️"},{"annotation":"down-right arrow","group":8,"hexcode":"2198","order":3629,"shortcodes":["arrow_lower_right"],"tags":["arrow","direction","intercardinal","southeast"],"unicode":"↘️"},{"annotation":"down arrow","group":8,"hexcode":"2B07","order":3631,"shortcodes":["arrow_down"],"tags":["arrow","cardinal","direction","down","south"],"unicode":"⬇️"},{"annotation":"down-left arrow","group":8,"hexcode":"2199","order":3633,"shortcodes":["arrow_lower_left"],"tags":["arrow","direction","intercardinal","southwest"],"unicode":"↙️"},{"annotation":"left arrow","group":8,"hexcode":"2B05","order":3635,"shortcodes":["arrow_left"],"tags":["arrow","cardinal","direction","west"],"unicode":"⬅️"},{"annotation":"up-left arrow","group":8,"hexcode":"2196","order":3637,"shortcodes":["arrow_upper_left"],"tags":["arrow","direction","intercardinal","northwest"],"unicode":"↖️"},{"annotation":"up-down arrow","group":8,"hexcode":"2195","order":3639,"shortcodes":["arrow_up_down"],"tags":["arrow"],"unicode":"↕️"},{"annotation":"left-right arrow","group":8,"hexcode":"2194","order":3641,"shortcodes":["arrow_left_right"],"tags":["arrow"],"unicode":"↔️"},{"annotation":"right arrow curving left","group":8,"hexcode":"21A9","order":3643,"shortcodes":["arrow_left_hook"],"tags":["arrow"],"unicode":"↩️"},{"annotation":"left arrow curving right","group":8,"hexcode":"21AA","order":3645,"shortcodes":["arrow_right_hook"],"tags":["arrow"],"unicode":"↪️"},{"annotation":"right arrow curving up","group":8,"hexcode":"2934","order":3647,"shortcodes":["arrow_heading_up"],"tags":["arrow"],"unicode":"⤴️"},{"annotation":"right arrow curving down","group":8,"hexcode":"2935","order":3649,"shortcodes":["arrow_heading_down"],"tags":["arrow","down"],"unicode":"⤵️"},{"annotation":"clockwise vertical arrows","group":8,"hexcode":"1F503","order":3650,"shortcodes":["clockwise"],"tags":["arrow","clockwise","reload"],"unicode":"🔃"},{"annotation":"counterclockwise arrows button","group":8,"hexcode":"1F504","order":3651,"shortcodes":["counter_clockwise"],"tags":["anticlockwise","arrow","counterclockwise","withershins"],"unicode":"🔄"},{"annotation":"BACK arrow","group":8,"hexcode":"1F519","order":3652,"shortcodes":["back"],"tags":["arrow","back","back arrow"],"unicode":"🔙"},{"annotation":"END arrow","group":8,"hexcode":"1F51A","order":3653,"shortcodes":["end"],"tags":["arrow","end","end arrow"],"unicode":"🔚"},{"annotation":"ON! arrow","group":8,"hexcode":"1F51B","order":3654,"shortcodes":["on"],"tags":["arrow","mark","on","on! arrow"],"unicode":"🔛"},{"annotation":"SOON arrow","group":8,"hexcode":"1F51C","order":3655,"shortcodes":["soon"],"tags":["arrow","soon","soon arrow"],"unicode":"🔜"},{"annotation":"TOP arrow","group":8,"hexcode":"1F51D","order":3656,"shortcodes":["top"],"tags":["arrow","top","top arrow","up"],"unicode":"🔝"},{"annotation":"place of worship","group":8,"hexcode":"1F6D0","order":3657,"shortcodes":["place_of_worship"],"tags":["religion","worship"],"unicode":"🛐"},{"annotation":"atom symbol","group":8,"hexcode":"269B","order":3659,"shortcodes":["atom"],"tags":["atheist","atom"],"unicode":"⚛️"},{"annotation":"om","group":8,"hexcode":"1F549","order":3661,"shortcodes":["om_symbol"],"tags":["hindu","religion"],"unicode":"🕉️"},{"annotation":"star of David","group":8,"hexcode":"2721","order":3663,"shortcodes":["star_of_david"],"tags":["david","jew","jewish","religion","star","star of david"],"unicode":"✡️"},{"annotation":"wheel of dharma","group":8,"hexcode":"2638","order":3665,"shortcodes":["wheel_of_dharma"],"tags":["buddhist","dharma","religion","wheel"],"unicode":"☸️"},{"annotation":"yin yang","group":8,"hexcode":"262F","order":3667,"shortcodes":["yin_yang"],"tags":["religion","tao","taoist","yang","yin"],"unicode":"☯️"},{"annotation":"latin cross","group":8,"hexcode":"271D","order":3669,"shortcodes":["cross"],"tags":["christian","cross","religion"],"unicode":"✝️"},{"annotation":"orthodox cross","group":8,"hexcode":"2626","order":3671,"shortcodes":["orthodox_cross"],"tags":["christian","cross","religion"],"unicode":"☦️"},{"annotation":"star and crescent","group":8,"hexcode":"262A","order":3673,"shortcodes":["star_and_crescent"],"tags":["islam","muslim","religion"],"unicode":"☪️"},{"annotation":"peace symbol","group":8,"hexcode":"262E","order":3675,"shortcodes":["peace"],"tags":["peace"],"unicode":"☮️"},{"annotation":"menorah","group":8,"hexcode":"1F54E","order":3676,"shortcodes":["menorah"],"tags":["candelabrum","candlestick","religion"],"unicode":"🕎"},{"annotation":"dotted six-pointed star","group":8,"hexcode":"1F52F","order":3677,"shortcodes":["six_pointed_star"],"tags":["fortune","star"],"unicode":"🔯"},{"annotation":"Aries","group":8,"hexcode":"2648","order":3678,"shortcodes":["aries"],"tags":["aries","ram","zodiac"],"unicode":"♈️"},{"annotation":"Taurus","group":8,"hexcode":"2649","order":3679,"shortcodes":["taurus"],"tags":["bull","ox","taurus","zodiac"],"unicode":"♉️"},{"annotation":"Gemini","group":8,"hexcode":"264A","order":3680,"shortcodes":["gemini"],"tags":["gemini","twins","zodiac"],"unicode":"♊️"},{"annotation":"Cancer","group":8,"hexcode":"264B","order":3681,"shortcodes":["cancer"],"tags":["cancer","crab","zodiac"],"unicode":"♋️"},{"annotation":"Leo","group":8,"hexcode":"264C","order":3682,"shortcodes":["leo"],"tags":["leo","lion","zodiac"],"unicode":"♌️"},{"annotation":"Virgo","group":8,"hexcode":"264D","order":3683,"shortcodes":["virgo"],"tags":["virgo","zodiac"],"unicode":"♍️"},{"annotation":"Libra","group":8,"hexcode":"264E","order":3684,"shortcodes":["libra"],"tags":["balance","justice","libra","scales","zodiac"],"unicode":"♎️"},{"annotation":"Scorpio","group":8,"hexcode":"264F","order":3685,"shortcodes":["scorpius"],"tags":["scorpio","scorpion","scorpius","zodiac"],"unicode":"♏️"},{"annotation":"Sagittarius","group":8,"hexcode":"2650","order":3686,"shortcodes":["sagittarius"],"tags":["archer","sagittarius","zodiac"],"unicode":"♐️"},{"annotation":"Capricorn","group":8,"hexcode":"2651","order":3687,"shortcodes":["capricorn"],"tags":["capricorn","goat","zodiac"],"unicode":"♑️"},{"annotation":"Aquarius","group":8,"hexcode":"2652","order":3688,"shortcodes":["aquarius"],"tags":["aquarius","bearer","water","zodiac"],"unicode":"♒️"},{"annotation":"Pisces","group":8,"hexcode":"2653","order":3689,"shortcodes":["pisces"],"tags":["fish","pisces","zodiac"],"unicode":"♓️"},{"annotation":"Ophiuchus","group":8,"hexcode":"26CE","order":3690,"shortcodes":["ophiuchus"],"tags":["bearer","ophiuchus","serpent","snake","zodiac"],"unicode":"⛎"},{"annotation":"shuffle tracks button","group":8,"hexcode":"1F500","order":3691,"shortcodes":["shuffle"],"tags":["arrow","crossed"],"unicode":"🔀"},{"annotation":"repeat button","group":8,"hexcode":"1F501","order":3692,"shortcodes":["repeat"],"tags":["arrow","clockwise","repeat"],"unicode":"🔁"},{"annotation":"repeat single button","group":8,"hexcode":"1F502","order":3693,"shortcodes":["repeat_single"],"tags":["arrow","clockwise","once"],"unicode":"🔂"},{"annotation":"play button","group":8,"hexcode":"25B6","order":3695,"shortcodes":["play"],"tags":["arrow","play","right","triangle"],"unicode":"▶️"},{"annotation":"fast-forward button","group":8,"hexcode":"23E9","order":3696,"shortcodes":["fast_forward"],"tags":["arrow","double","fast","forward"],"unicode":"⏩️"},{"annotation":"next track button","group":8,"hexcode":"23ED","order":3698,"shortcodes":["next_track"],"tags":["arrow","next scene","next track","triangle"],"unicode":"⏭️"},{"annotation":"play or pause button","group":8,"hexcode":"23EF","order":3700,"shortcodes":["play_pause"],"tags":["arrow","pause","play","right","triangle"],"unicode":"⏯️"},{"annotation":"reverse button","group":8,"hexcode":"25C0","order":3702,"shortcodes":["reverse"],"tags":["arrow","left","reverse","triangle"],"unicode":"◀️"},{"annotation":"fast reverse button","group":8,"hexcode":"23EA","order":3703,"shortcodes":["rewind"],"tags":["arrow","double","rewind"],"unicode":"⏪️"},{"annotation":"last track button","group":8,"hexcode":"23EE","order":3705,"shortcodes":["previous_track"],"tags":["arrow","previous scene","previous track","triangle"],"unicode":"⏮️"},{"annotation":"upwards button","group":8,"hexcode":"1F53C","order":3706,"shortcodes":["up_button"],"tags":["arrow","button","red"],"unicode":"🔼"},{"annotation":"fast up button","group":8,"hexcode":"23EB","order":3707,"shortcodes":["fast_up_button"],"tags":["arrow","double"],"unicode":"⏫"},{"annotation":"downwards button","group":8,"hexcode":"1F53D","order":3708,"shortcodes":["down_button"],"tags":["arrow","button","down","red"],"unicode":"🔽"},{"annotation":"fast down button","group":8,"hexcode":"23EC","order":3709,"shortcodes":["fast_down_button"],"tags":["arrow","double","down"],"unicode":"⏬"},{"annotation":"pause button","group":8,"hexcode":"23F8","order":3711,"shortcodes":["pause"],"tags":["bar","double","pause","vertical"],"unicode":"⏸️"},{"annotation":"stop button","group":8,"hexcode":"23F9","order":3713,"shortcodes":["stop"],"tags":["square","stop"],"unicode":"⏹️"},{"annotation":"record button","group":8,"hexcode":"23FA","order":3715,"shortcodes":["record"],"tags":["circle","record"],"unicode":"⏺️"},{"annotation":"eject button","group":8,"hexcode":"23CF","order":3717,"shortcodes":["eject"],"tags":["eject"],"unicode":"⏏️"},{"annotation":"cinema","group":8,"hexcode":"1F3A6","order":3718,"shortcodes":["cinema"],"tags":["camera","film","movie"],"unicode":"🎦"},{"annotation":"dim button","group":8,"hexcode":"1F505","order":3719,"shortcodes":["dim","low_brightness"],"tags":["brightness","dim","low"],"unicode":"🔅"},{"annotation":"bright button","group":8,"hexcode":"1F506","order":3720,"shortcodes":["bright","high_brightness"],"tags":["bright","brightness"],"unicode":"🔆"},{"annotation":"antenna bars","group":8,"hexcode":"1F4F6","order":3721,"shortcodes":["signal_strength","antenna_bars"],"tags":["antenna","bar","cell","mobile","phone"],"unicode":"📶"},{"annotation":"vibration mode","group":8,"hexcode":"1F4F3","order":3722,"shortcodes":["vibration_mode"],"tags":["cell","mobile","mode","phone","telephone","vibration"],"unicode":"📳"},{"annotation":"mobile phone off","group":8,"hexcode":"1F4F4","order":3723,"shortcodes":["mobile_phone_off"],"tags":["cell","mobile","off","phone","telephone"],"unicode":"📴"},{"annotation":"female sign","group":8,"hexcode":"2640","order":3725,"shortcodes":["female","female_sign"],"tags":["woman"],"unicode":"♀️"},{"annotation":"male sign","group":8,"hexcode":"2642","order":3727,"shortcodes":["male","male_sign"],"tags":["man"],"unicode":"♂️"},{"annotation":"transgender symbol","group":8,"hexcode":"26A7","order":3729,"shortcodes":["trans"],"tags":["transgender"],"unicode":"⚧️"},{"annotation":"multiply","group":8,"hexcode":"2716","order":3731,"shortcodes":["multiplication"],"tags":["cancel","multiplication","sign","x","×"],"unicode":"✖️"},{"annotation":"plus","group":8,"hexcode":"2795","order":3732,"shortcodes":["plus"],"tags":["+","math","sign"],"unicode":""},{"annotation":"minus","group":8,"hexcode":"2796","order":3733,"shortcodes":["minus"],"tags":["-","math","sign",""],"unicode":""},{"annotation":"divide","group":8,"hexcode":"2797","order":3734,"shortcodes":["division"],"tags":["division","math","sign","÷"],"unicode":"➗"},{"annotation":"infinity","group":8,"hexcode":"267E","order":3736,"shortcodes":["infinity"],"tags":["forever","unbounded","universal"],"unicode":"♾️"},{"annotation":"double exclamation mark","group":8,"hexcode":"203C","order":3738,"shortcodes":["bangbang","double_exclamation"],"tags":["!","!!","bangbang","exclamation","mark"],"unicode":"‼️"},{"annotation":"exclamation question mark","group":8,"hexcode":"2049","order":3740,"shortcodes":["interrobang","exclamation_question"],"tags":["!","!?","?","exclamation","interrobang","mark","punctuation","question"],"unicode":"⁉️"},{"annotation":"question mark","group":8,"hexcode":"2753","order":3741,"shortcodes":["question"],"tags":["?","mark","punctuation","question"],"unicode":"❓️"},{"annotation":"white question mark","group":8,"hexcode":"2754","order":3742,"shortcodes":["white_question"],"tags":["?","mark","outlined","punctuation","question"],"unicode":"❔"},{"annotation":"white exclamation mark","group":8,"hexcode":"2755","order":3743,"shortcodes":["white_exclamation"],"tags":["!","exclamation","mark","outlined","punctuation"],"unicode":"❕"},{"annotation":"exclamation mark","group":8,"hexcode":"2757","order":3744,"shortcodes":["exclamation"],"tags":["!","exclamation","mark","punctuation"],"unicode":"❗️"},{"annotation":"wavy dash","group":8,"hexcode":"3030","order":3746,"shortcodes":["wavy_dash"],"tags":["dash","punctuation","wavy"],"unicode":"〰️"},{"annotation":"currency exchange","group":8,"hexcode":"1F4B1","order":3747,"shortcodes":["currency_exchange"],"tags":["bank","currency","exchange","money"],"unicode":"💱"},{"annotation":"heavy dollar sign","group":8,"hexcode":"1F4B2","order":3748,"shortcodes":["dollar_sign"],"tags":["currency","dollar","money"],"unicode":"💲"},{"annotation":"medical symbol","group":8,"hexcode":"2695","order":3750,"shortcodes":["medical"],"tags":["aesculapius","medicine","staff"],"unicode":"⚕️"},{"annotation":"recycling symbol","group":8,"hexcode":"267B","order":3752,"shortcodes":["recycle"],"tags":["recycle"],"unicode":"♻️"},{"annotation":"fleur-de-lis","group":8,"hexcode":"269C","order":3754,"shortcodes":["fleur-de-lis"],"tags":["fleur-de-lis"],"unicode":"⚜️"},{"annotation":"trident emblem","group":8,"hexcode":"1F531","order":3755,"shortcodes":["trident"],"tags":["anchor","emblem","ship","tool","trident"],"unicode":"🔱"},{"annotation":"name badge","group":8,"hexcode":"1F4DB","order":3756,"shortcodes":["name_badge"],"tags":["badge","name"],"unicode":"📛"},{"annotation":"Japanese symbol for beginner","group":8,"hexcode":"1F530","order":3757,"shortcodes":["ja_beginner"],"tags":["beginner","chevron","japanese","japanese symbol for beginner","leaf"],"unicode":"🔰"},{"annotation":"hollow red circle","group":8,"hexcode":"2B55","order":3758,"shortcodes":["o"],"tags":["circle","large","o","red"],"unicode":"⭕️"},{"annotation":"check mark button","group":8,"hexcode":"2705","order":3759,"shortcodes":["white_check_mark"],"tags":["button","check","mark","✓"],"unicode":"✅"},{"annotation":"check box with check","group":8,"hexcode":"2611","order":3761,"shortcodes":["checked_ballot"],"tags":["box","check","✓"],"unicode":"☑️"},{"annotation":"check mark","group":8,"hexcode":"2714","order":3763,"shortcodes":["check_mark"],"tags":["check","mark","✓"],"unicode":"✔️"},{"annotation":"cross mark","group":8,"hexcode":"274C","order":3764,"shortcodes":["x","cross_mark"],"tags":["cancel","cross","mark","multiplication","multiply","x","×"],"unicode":"❌"},{"annotation":"cross mark button","group":8,"hexcode":"274E","order":3765,"shortcodes":["cross_mark_button"],"tags":["mark","square","x","×"],"unicode":"❎"},{"annotation":"curly loop","group":8,"hexcode":"27B0","order":3766,"shortcodes":["curly_loop"],"tags":["curl","loop"],"unicode":"➰"},{"annotation":"double curly loop","group":8,"hexcode":"27BF","order":3767,"shortcodes":["double_curly_loop"],"tags":["curl","double","loop"],"unicode":"➿"},{"annotation":"part alternation mark","group":8,"hexcode":"303D","order":3769,"shortcodes":["part_alternation_mark"],"tags":["mark","part"],"unicode":"〽️"},{"annotation":"eight-spoked asterisk","group":8,"hexcode":"2733","order":3771,"shortcodes":["eight_spoked_asterisk"],"tags":["*","asterisk"],"unicode":"✳️"},{"annotation":"eight-pointed star","group":8,"hexcode":"2734","order":3773,"shortcodes":["eight_pointed_star"],"tags":["*","star"],"unicode":"✴️"},{"annotation":"sparkle","group":8,"hexcode":"2747","order":3775,"shortcodes":["sparkle"],"tags":["*"],"unicode":"❇️"},{"annotation":"copyright","group":8,"hexcode":"00A9","order":3777,"shortcodes":["copyright"],"tags":["c"],"unicode":"©️"},{"annotation":"registered","group":8,"hexcode":"00AE","order":3779,"shortcodes":["registered"],"tags":["r"],"unicode":"®️"},{"annotation":"trade mark","group":8,"hexcode":"2122","order":3781,"shortcodes":["tm"],"tags":["mark","tm","trademark"],"unicode":"™️"},{"annotation":"keycap: #","group":8,"hexcode":"0023-FE0F-20E3","order":3782,"shortcodes":["hash"],"tags":["keycap"],"unicode":"#️⃣"},{"annotation":"keycap: *","group":8,"hexcode":"002A-FE0F-20E3","order":3784,"shortcodes":["asterisk"],"tags":["keycap"],"unicode":"*️⃣"},{"annotation":"keycap: 0","group":8,"hexcode":"0030-FE0F-20E3","order":3786,"shortcodes":["zero"],"tags":["keycap"],"unicode":"0⃣"},{"annotation":"keycap: 1","group":8,"hexcode":"0031-FE0F-20E3","order":3788,"shortcodes":["one"],"tags":["keycap"],"unicode":"1⃣"},{"annotation":"keycap: 2","group":8,"hexcode":"0032-FE0F-20E3","order":3790,"shortcodes":["two"],"tags":["keycap"],"unicode":"2⃣"},{"annotation":"keycap: 3","group":8,"hexcode":"0033-FE0F-20E3","order":3792,"shortcodes":["three"],"tags":["keycap"],"unicode":"3⃣"},{"annotation":"keycap: 4","group":8,"hexcode":"0034-FE0F-20E3","order":3794,"shortcodes":["four"],"tags":["keycap"],"unicode":"4⃣"},{"annotation":"keycap: 5","group":8,"hexcode":"0035-FE0F-20E3","order":3796,"shortcodes":["five"],"tags":["keycap"],"unicode":"5⃣"},{"annotation":"keycap: 6","group":8,"hexcode":"0036-FE0F-20E3","order":3798,"shortcodes":["six"],"tags":["keycap"],"unicode":"6⃣"},{"annotation":"keycap: 7","group":8,"hexcode":"0037-FE0F-20E3","order":3800,"shortcodes":["seven"],"tags":["keycap"],"unicode":"7⃣"},{"annotation":"keycap: 8","group":8,"hexcode":"0038-FE0F-20E3","order":3802,"shortcodes":["eight"],"tags":["keycap"],"unicode":"8⃣"},{"annotation":"keycap: 9","group":8,"hexcode":"0039-FE0F-20E3","order":3804,"shortcodes":["nine"],"tags":["keycap"],"unicode":"9⃣"},{"annotation":"keycap: 10","group":8,"hexcode":"1F51F","order":3806,"shortcodes":["ten"],"tags":["keycap"],"unicode":"🔟"},{"annotation":"input latin uppercase","group":8,"hexcode":"1F520","order":3807,"shortcodes":["upper_abcd"],"tags":["abcd","input","latin","letters","uppercase"],"unicode":"🔠"},{"annotation":"input latin lowercase","group":8,"hexcode":"1F521","order":3808,"shortcodes":["abcd"],"tags":["abcd","input","latin","letters","lowercase"],"unicode":"🔡"},{"annotation":"input numbers","group":8,"hexcode":"1F522","order":3809,"shortcodes":["1234"],"tags":["1234","input","numbers"],"unicode":"🔢"},{"annotation":"input symbols","group":8,"hexcode":"1F523","order":3810,"shortcodes":["symbols"],"tags":["input","〒♪&%"],"unicode":"🔣"},{"annotation":"input latin letters","group":8,"hexcode":"1F524","order":3811,"shortcodes":["abc"],"tags":["abc","alphabet","input","latin","letters"],"unicode":"🔤"},{"annotation":"A button (blood type)","group":8,"hexcode":"1F170","order":3813,"shortcodes":["a_blood"],"tags":["a","a button (blood type)","blood type"],"unicode":"🅰️"},{"annotation":"AB button (blood type)","group":8,"hexcode":"1F18E","order":3814,"shortcodes":["ab_blood"],"tags":["ab","ab button (blood type)","blood type"],"unicode":"🆎"},{"annotation":"B button (blood type)","group":8,"hexcode":"1F171","order":3816,"shortcodes":["b_blood"],"tags":["b","b button (blood type)","blood type"],"unicode":"🅱️"},{"annotation":"CL button","group":8,"hexcode":"1F191","order":3817,"shortcodes":["cl"],"tags":["cl","cl button"],"unicode":"🆑"},{"annotation":"COOL button","group":8,"hexcode":"1F192","order":3818,"shortcodes":["cool"],"tags":["cool","cool button"],"unicode":"🆒"},{"annotation":"FREE button","group":8,"hexcode":"1F193","order":3819,"shortcodes":["free"],"tags":["free","free button"],"unicode":"🆓"},{"annotation":"information","group":8,"hexcode":"2139","order":3821,"shortcodes":["info"],"tags":["i"],"unicode":""},{"annotation":"ID button","group":8,"hexcode":"1F194","order":3822,"shortcodes":["id"],"tags":["id","id button","identity"],"unicode":"🆔"},{"annotation":"circled M","group":8,"hexcode":"24C2","order":3824,"shortcodes":["m"],"tags":["circle","circled m","m"],"unicode":"Ⓜ️"},{"annotation":"NEW button","group":8,"hexcode":"1F195","order":3825,"shortcodes":["new"],"tags":["new","new button"],"unicode":"🆕"},{"annotation":"NG button","group":8,"hexcode":"1F196","order":3826,"shortcodes":["ng"],"tags":["ng","ng button"],"unicode":"🆖"},{"annotation":"O button (blood type)","group":8,"hexcode":"1F17E","order":3828,"shortcodes":["o_blood"],"tags":["blood type","o","o button (blood type)"],"unicode":"🅾️"},{"annotation":"OK button","group":8,"hexcode":"1F197","order":3829,"shortcodes":["ok"],"tags":["ok","ok button"],"unicode":"🆗"},{"annotation":"P button","group":8,"hexcode":"1F17F","order":3831,"shortcodes":["p"],"tags":["p button","parking"],"unicode":"🅿️"},{"annotation":"SOS button","group":8,"hexcode":"1F198","order":3832,"shortcodes":["sos"],"tags":["help","sos","sos button"],"unicode":"🆘"},{"annotation":"UP! button","group":8,"hexcode":"1F199","order":3833,"shortcodes":["up"],"tags":["mark","up","up! button"],"unicode":"🆙"},{"annotation":"VS button","group":8,"hexcode":"1F19A","order":3834,"shortcodes":["vs"],"tags":["versus","vs","vs button"],"unicode":"🆚"},{"annotation":"Japanese “here” button","group":8,"hexcode":"1F201","order":3835,"shortcodes":["ja_here","koko"],"tags":["japanese","japanese “here” button","katakana","“here”","ココ"],"unicode":"🈁"},{"annotation":"Japanese “service charge” button","group":8,"hexcode":"1F202","order":3837,"shortcodes":["ja_service_charge"],"tags":["japanese","japanese “service charge” button","katakana","“service charge”","サ"],"unicode":"🈂️"},{"annotation":"Japanese “monthly amount” button","group":8,"hexcode":"1F237","order":3839,"shortcodes":["ja_monthly_amount"],"tags":["ideograph","japanese","japanese “monthly amount” button","“monthly amount”","月"],"unicode":"🈷️"},{"annotation":"Japanese “not free of charge” button","group":8,"hexcode":"1F236","order":3840,"shortcodes":["ja_not_free_of_carge"],"tags":["ideograph","japanese","japanese “not free of charge” button","“not free of charge”","有"],"unicode":"🈶"},{"annotation":"Japanese “reserved” button","group":8,"hexcode":"1F22F","order":3841,"shortcodes":["ja_reserved"],"tags":["ideograph","japanese","japanese “reserved” button","“reserved”","指"],"unicode":"🈯️"},{"annotation":"Japanese “bargain” button","group":8,"hexcode":"1F250","order":3842,"shortcodes":["ja_bargain"],"tags":["ideograph","japanese","japanese “bargain” button","“bargain”","得"],"unicode":"🉐"},{"annotation":"Japanese “discount” button","group":8,"hexcode":"1F239","order":3843,"shortcodes":["ja_discount"],"tags":["ideograph","japanese","japanese “discount” button","“discount”","割"],"unicode":"🈹"},{"annotation":"Japanese “free of charge” button","group":8,"hexcode":"1F21A","order":3844,"shortcodes":["ja_free_of_charge"],"tags":["ideograph","japanese","japanese “free of charge” button","“free of charge”","無"],"unicode":"🈚️"},{"annotation":"Japanese “prohibited” button","group":8,"hexcode":"1F232","order":3845,"shortcodes":["ja_prohibited"],"tags":["ideograph","japanese","japanese “prohibited” button","“prohibited”","禁"],"unicode":"🈲"},{"annotation":"Japanese “acceptable” button","group":8,"hexcode":"1F251","order":3846,"shortcodes":["ja_acceptable"],"tags":["ideograph","japanese","japanese “acceptable” button","“acceptable”","可"],"unicode":"🉑"},{"annotation":"Japanese “application” button","group":8,"hexcode":"1F238","order":3847,"shortcodes":["ja_application"],"tags":["ideograph","japanese","japanese “application” button","“application”","申"],"unicode":"🈸"},{"annotation":"Japanese “passing grade” button","group":8,"hexcode":"1F234","order":3848,"shortcodes":["ja_passing_grade"],"tags":["ideograph","japanese","japanese “passing grade” button","“passing grade”","合"],"unicode":"🈴"},{"annotation":"Japanese “vacancy” button","group":8,"hexcode":"1F233","order":3849,"shortcodes":["ja_vacancy"],"tags":["ideograph","japanese","japanese “vacancy” button","“vacancy”","空"],"unicode":"🈳"},{"annotation":"Japanese “congratulations” button","group":8,"hexcode":"3297","order":3851,"shortcodes":["ja_congratulations"],"tags":["ideograph","japanese","japanese “congratulations” button","“congratulations”","祝"],"unicode":"㊗️"},{"annotation":"Japanese “secret” button","group":8,"hexcode":"3299","order":3853,"shortcodes":["ja_secret"],"tags":["ideograph","japanese","japanese “secret” button","“secret”","秘"],"unicode":"㊙️"},{"annotation":"Japanese “open for business” button","group":8,"hexcode":"1F23A","order":3854,"shortcodes":["ja_open_for_business"],"tags":["ideograph","japanese","japanese “open for business” button","“open for business”","営"],"unicode":"🈺"},{"annotation":"Japanese “no vacancy” button","group":8,"hexcode":"1F235","order":3855,"shortcodes":["ja_no_vacancy"],"tags":["ideograph","japanese","japanese “no vacancy” button","“no vacancy”","満"],"unicode":"🈵"},{"annotation":"red circle","group":8,"hexcode":"1F534","order":3856,"shortcodes":["red_circle"],"tags":["circle","geometric","red"],"unicode":"🔴"},{"annotation":"orange circle","group":8,"hexcode":"1F7E0","order":3857,"shortcodes":["orange_circle"],"tags":["circle","orange"],"unicode":"🟠"},{"annotation":"yellow circle","group":8,"hexcode":"1F7E1","order":3858,"shortcodes":["yellow_circle"],"tags":["circle","yellow"],"unicode":"🟡"},{"annotation":"green circle","group":8,"hexcode":"1F7E2","order":3859,"shortcodes":["green_circle"],"tags":["circle","green"],"unicode":"🟢"},{"annotation":"blue circle","group":8,"hexcode":"1F535","order":3860,"shortcodes":["blue_circle"],"tags":["blue","circle","geometric"],"unicode":"🔵"},{"annotation":"purple circle","group":8,"hexcode":"1F7E3","order":3861,"shortcodes":["purple_circle"],"tags":["circle","purple"],"unicode":"🟣"},{"annotation":"brown circle","group":8,"hexcode":"1F7E4","order":3862,"shortcodes":["brown_circle"],"tags":["brown","circle"],"unicode":"🟤"},{"annotation":"black circle","group":8,"hexcode":"26AB","order":3863,"shortcodes":["black_circle"],"tags":["circle","geometric"],"unicode":"⚫️"},{"annotation":"white circle","group":8,"hexcode":"26AA","order":3864,"shortcodes":["white_circle"],"tags":["circle","geometric"],"unicode":"⚪️"},{"annotation":"red square","group":8,"hexcode":"1F7E5","order":3865,"shortcodes":["red_square"],"tags":["red","square"],"unicode":"🟥"},{"annotation":"orange square","group":8,"hexcode":"1F7E7","order":3866,"shortcodes":["orange_square"],"tags":["orange","square"],"unicode":"🟧"},{"annotation":"yellow square","group":8,"hexcode":"1F7E8","order":3867,"shortcodes":["yellow_square"],"tags":["square","yellow"],"unicode":"🟨"},{"annotation":"green square","group":8,"hexcode":"1F7E9","order":3868,"shortcodes":["green_square"],"tags":["green","square"],"unicode":"🟩"},{"annotation":"blue square","group":8,"hexcode":"1F7E6","order":3869,"shortcodes":["blue_square"],"tags":["blue","square"],"unicode":"🟦"},{"annotation":"purple square","group":8,"hexcode":"1F7EA","order":3870,"shortcodes":["purple_square"],"tags":["purple","square"],"unicode":"🟪"},{"annotation":"brown square","group":8,"hexcode":"1F7EB","order":3871,"shortcodes":["brown_square"],"tags":["brown","square"],"unicode":"🟫"},{"annotation":"black large square","group":8,"hexcode":"2B1B","order":3872,"shortcodes":["large_black_square"],"tags":["geometric","square"],"unicode":"⬛️"},{"annotation":"white large square","group":8,"hexcode":"2B1C","order":3873,"shortcodes":["large_white_square"],"tags":["geometric","square"],"unicode":"⬜️"},{"annotation":"black medium square","group":8,"hexcode":"25FC","order":3875,"shortcodes":["medium_black_square"],"tags":["geometric","square"],"unicode":"◼️"},{"annotation":"white medium square","group":8,"hexcode":"25FB","order":3877,"shortcodes":["medium_white_square"],"tags":["geometric","square"],"unicode":"◻️"},{"annotation":"black medium-small square","group":8,"hexcode":"25FE","order":3878,"shortcodes":["medium_small_black_square"],"tags":["geometric","square"],"unicode":"◾️"},{"annotation":"white medium-small square","group":8,"hexcode":"25FD","order":3879,"shortcodes":["medium_small_white_square"],"tags":["geometric","square"],"unicode":"◽️"},{"annotation":"black small square","group":8,"hexcode":"25AA","order":3881,"shortcodes":["small_black_square"],"tags":["geometric","square"],"unicode":"▪️"},{"annotation":"white small square","group":8,"hexcode":"25AB","order":3883,"shortcodes":["small_white_square"],"tags":["geometric","square"],"unicode":"▫️"},{"annotation":"large orange diamond","group":8,"hexcode":"1F536","order":3884,"shortcodes":["large_orange_diamond"],"tags":["diamond","geometric","orange"],"unicode":"🔶"},{"annotation":"large blue diamond","group":8,"hexcode":"1F537","order":3885,"shortcodes":["large_blue_diamond"],"tags":["blue","diamond","geometric"],"unicode":"🔷"},{"annotation":"small orange diamond","group":8,"hexcode":"1F538","order":3886,"shortcodes":["small_orange_diamond"],"tags":["diamond","geometric","orange"],"unicode":"🔸"},{"annotation":"small blue diamond","group":8,"hexcode":"1F539","order":3887,"shortcodes":["small_blue_diamond"],"tags":["blue","diamond","geometric"],"unicode":"🔹"},{"annotation":"red triangle pointed up","group":8,"hexcode":"1F53A","order":3888,"shortcodes":["up_red_triangle"],"tags":["geometric","red"],"unicode":"🔺"},{"annotation":"red triangle pointed down","group":8,"hexcode":"1F53B","order":3889,"shortcodes":["down_red_triangle"],"tags":["down","geometric","red"],"unicode":"🔻"},{"annotation":"diamond with a dot","group":8,"hexcode":"1F4A0","order":3890,"shortcodes":["diamond_dot"],"tags":["comic","diamond","geometric","inside"],"unicode":"💠"},{"annotation":"radio button","group":8,"hexcode":"1F518","order":3891,"shortcodes":["radio_button"],"tags":["button","geometric","radio"],"unicode":"🔘"},{"annotation":"white square button","group":8,"hexcode":"1F533","order":3892,"shortcodes":["white_square_button"],"tags":["button","geometric","outlined","square"],"unicode":"🔳"},{"annotation":"black square button","group":8,"hexcode":"1F532","order":3893,"shortcodes":["black_square_button"],"tags":["button","geometric","square"],"unicode":"🔲"},{"annotation":"chequered flag","group":9,"hexcode":"1F3C1","order":3894,"shortcodes":["checkered_flag"],"tags":["checkered","chequered","racing"],"unicode":"🏁"},{"annotation":"triangular flag","group":9,"hexcode":"1F6A9","order":3895,"shortcodes":["triangle_flag"],"tags":["post"],"unicode":"🚩"},{"annotation":"crossed flags","group":9,"hexcode":"1F38C","order":3896,"shortcodes":["crossed_flags"],"tags":["celebration","cross","crossed","japanese"],"unicode":"🎌"},{"annotation":"black flag","group":9,"hexcode":"1F3F4","order":3897,"shortcodes":["black_flag"],"tags":["waving"],"unicode":"🏴"},{"annotation":"white flag","group":9,"hexcode":"1F3F3","order":3899,"shortcodes":["white_flag"],"tags":["waving"],"unicode":"🏳️"},{"annotation":"rainbow flag","group":9,"hexcode":"1F3F3-FE0F-200D-1F308","order":3900,"shortcodes":["rainbow_flag"],"tags":["pride","rainbow"],"unicode":"🏳️‍🌈"},{"annotation":"transgender flag","group":9,"hexcode":"1F3F3-FE0F-200D-26A7-FE0F","order":3902,"shortcodes":["trans_flag"],"tags":["flag","light blue","pink","transgender","white"],"unicode":"🏳️‍⚧️"},{"annotation":"pirate flag","group":9,"hexcode":"1F3F4-200D-2620-FE0F","order":3906,"shortcodes":["pirate_flag","jolly_roger"],"tags":["jolly roger","pirate","plunder","treasure"],"unicode":"🏴‍☠️"},{"annotation":"flag: Ascension Island","group":9,"hexcode":"1F1E6-1F1E8","order":3908,"shortcodes":["flag_ac"],"tags":["AC","flag"],"unicode":"🇦🇨"},{"annotation":"flag: Andorra","group":9,"hexcode":"1F1E6-1F1E9","order":3909,"shortcodes":["flag_ad"],"tags":["AD","flag"],"unicode":"🇦🇩"},{"annotation":"flag: United Arab Emirates","group":9,"hexcode":"1F1E6-1F1EA","order":3910,"shortcodes":["flag_ae"],"tags":["AE","flag"],"unicode":"🇦🇪"},{"annotation":"flag: Afghanistan","group":9,"hexcode":"1F1E6-1F1EB","order":3911,"shortcodes":["flag_af"],"tags":["AF","flag"],"unicode":"🇦🇫"},{"annotation":"flag: Antigua & Barbuda","group":9,"hexcode":"1F1E6-1F1EC","order":3912,"shortcodes":["flag_ag"],"tags":["AG","flag"],"unicode":"🇦🇬"},{"annotation":"flag: Anguilla","group":9,"hexcode":"1F1E6-1F1EE","order":3913,"shortcodes":["flag_ai"],"tags":["AI","flag"],"unicode":"🇦🇮"},{"annotation":"flag: Albania","group":9,"hexcode":"1F1E6-1F1F1","order":3914,"shortcodes":["flag_al"],"tags":["AL","flag"],"unicode":"🇦🇱"},{"annotation":"flag: Armenia","group":9,"hexcode":"1F1E6-1F1F2","order":3915,"shortcodes":["flag_am"],"tags":["AM","flag"],"unicode":"🇦🇲"},{"annotation":"flag: Angola","group":9,"hexcode":"1F1E6-1F1F4","order":3916,"shortcodes":["flag_ao"],"tags":["AO","flag"],"unicode":"🇦🇴"},{"annotation":"flag: Antarctica","group":9,"hexcode":"1F1E6-1F1F6","order":3917,"shortcodes":["flag_aq"],"tags":["AQ","flag"],"unicode":"🇦🇶"},{"annotation":"flag: Argentina","group":9,"hexcode":"1F1E6-1F1F7","order":3918,"shortcodes":["flag_ar"],"tags":["AR","flag"],"unicode":"🇦🇷"},{"annotation":"flag: American Samoa","group":9,"hexcode":"1F1E6-1F1F8","order":3919,"shortcodes":["flag_as"],"tags":["AS","flag"],"unicode":"🇦🇸"},{"annotation":"flag: Austria","group":9,"hexcode":"1F1E6-1F1F9","order":3920,"shortcodes":["flag_at"],"tags":["AT","flag"],"unicode":"🇦🇹"},{"annotation":"flag: Australia","group":9,"hexcode":"1F1E6-1F1FA","order":3921,"shortcodes":["flag_au"],"tags":["AU","flag"],"unicode":"🇦🇺"},{"annotation":"flag: Aruba","group":9,"hexcode":"1F1E6-1F1FC","order":3922,"shortcodes":["flag_aw"],"tags":["AW","flag"],"unicode":"🇦🇼"},{"annotation":"flag: Åland Islands","group":9,"hexcode":"1F1E6-1F1FD","order":3923,"shortcodes":["flag_ax"],"tags":["AX","flag"],"unicode":"🇦🇽"},{"annotation":"flag: Azerbaijan","group":9,"hexcode":"1F1E6-1F1FF","order":3924,"shortcodes":["flag_az"],"tags":["AZ","flag"],"unicode":"🇦🇿"},{"annotation":"flag: Bosnia & Herzegovina","group":9,"hexcode":"1F1E7-1F1E6","order":3925,"shortcodes":["flag_ba"],"tags":["BA","flag"],"unicode":"🇧🇦"},{"annotation":"flag: Barbados","group":9,"hexcode":"1F1E7-1F1E7","order":3926,"shortcodes":["flag_bb"],"tags":["BB","flag"],"unicode":"🇧🇧"},{"annotation":"flag: Bangladesh","group":9,"hexcode":"1F1E7-1F1E9","order":3927,"shortcodes":["flag_bd"],"tags":["BD","flag"],"unicode":"🇧🇩"},{"annotation":"flag: Belgium","group":9,"hexcode":"1F1E7-1F1EA","order":3928,"shortcodes":["flag_be"],"tags":["BE","flag"],"unicode":"🇧🇪"},{"annotation":"flag: Burkina Faso","group":9,"hexcode":"1F1E7-1F1EB","order":3929,"shortcodes":["flag_bf"],"tags":["BF","flag"],"unicode":"🇧🇫"},{"annotation":"flag: Bulgaria","group":9,"hexcode":"1F1E7-1F1EC","order":3930,"shortcodes":["flag_bg"],"tags":["BG","flag"],"unicode":"🇧🇬"},{"annotation":"flag: Bahrain","group":9,"hexcode":"1F1E7-1F1ED","order":3931,"shortcodes":["flag_bh"],"tags":["BH","flag"],"unicode":"🇧🇭"},{"annotation":"flag: Burundi","group":9,"hexcode":"1F1E7-1F1EE","order":3932,"shortcodes":["flag_bi"],"tags":["BI","flag"],"unicode":"🇧🇮"},{"annotation":"flag: Benin","group":9,"hexcode":"1F1E7-1F1EF","order":3933,"shortcodes":["flag_bj"],"tags":["BJ","flag"],"unicode":"🇧🇯"},{"annotation":"flag: St. Barthélemy","group":9,"hexcode":"1F1E7-1F1F1","order":3934,"shortcodes":["flag_bl"],"tags":["BL","flag"],"unicode":"🇧🇱"},{"annotation":"flag: Bermuda","group":9,"hexcode":"1F1E7-1F1F2","order":3935,"shortcodes":["flag_bm"],"tags":["BM","flag"],"unicode":"🇧🇲"},{"annotation":"flag: Brunei","group":9,"hexcode":"1F1E7-1F1F3","order":3936,"shortcodes":["flag_bn"],"tags":["BN","flag"],"unicode":"🇧🇳"},{"annotation":"flag: Bolivia","group":9,"hexcode":"1F1E7-1F1F4","order":3937,"shortcodes":["flag_bo"],"tags":["BO","flag"],"unicode":"🇧🇴"},{"annotation":"flag: Caribbean Netherlands","group":9,"hexcode":"1F1E7-1F1F6","order":3938,"shortcodes":["flag_bq"],"tags":["BQ","flag"],"unicode":"🇧🇶"},{"annotation":"flag: Brazil","group":9,"hexcode":"1F1E7-1F1F7","order":3939,"shortcodes":["flag_br"],"tags":["BR","flag"],"unicode":"🇧🇷"},{"annotation":"flag: Bahamas","group":9,"hexcode":"1F1E7-1F1F8","order":3940,"shortcodes":["flag_bs"],"tags":["BS","flag"],"unicode":"🇧🇸"},{"annotation":"flag: Bhutan","group":9,"hexcode":"1F1E7-1F1F9","order":3941,"shortcodes":["flag_bt"],"tags":["BT","flag"],"unicode":"🇧🇹"},{"annotation":"flag: Bouvet Island","group":9,"hexcode":"1F1E7-1F1FB","order":3942,"shortcodes":["flag_bv"],"tags":["BV","flag"],"unicode":"🇧🇻"},{"annotation":"flag: Botswana","group":9,"hexcode":"1F1E7-1F1FC","order":3943,"shortcodes":["flag_bw"],"tags":["BW","flag"],"unicode":"🇧🇼"},{"annotation":"flag: Belarus","group":9,"hexcode":"1F1E7-1F1FE","order":3944,"shortcodes":["flag_by"],"tags":["BY","flag"],"unicode":"🇧🇾"},{"annotation":"flag: Belize","group":9,"hexcode":"1F1E7-1F1FF","order":3945,"shortcodes":["flag_bz"],"tags":["BZ","flag"],"unicode":"🇧🇿"},{"annotation":"flag: Canada","group":9,"hexcode":"1F1E8-1F1E6","order":3946,"shortcodes":["flag_ca"],"tags":["CA","flag"],"unicode":"🇨🇦"},{"annotation":"flag: Cocos (Keeling) Islands","group":9,"hexcode":"1F1E8-1F1E8","order":3947,"shortcodes":["flag_cc"],"tags":["CC","flag"],"unicode":"🇨🇨"},{"annotation":"flag: Congo - Kinshasa","group":9,"hexcode":"1F1E8-1F1E9","order":3948,"shortcodes":["flag_cd"],"tags":["CD","flag"],"unicode":"🇨🇩"},{"annotation":"flag: Central African Republic","group":9,"hexcode":"1F1E8-1F1EB","order":3949,"shortcodes":["flag_cf"],"tags":["CF","flag"],"unicode":"🇨🇫"},{"annotation":"flag: Congo - Brazzaville","group":9,"hexcode":"1F1E8-1F1EC","order":3950,"shortcodes":["flag_cg"],"tags":["CG","flag"],"unicode":"🇨🇬"},{"annotation":"flag: Switzerland","group":9,"hexcode":"1F1E8-1F1ED","order":3951,"shortcodes":["flag_ch"],"tags":["CH","flag"],"unicode":"🇨🇭"},{"annotation":"flag: Côte dIvoire","group":9,"hexcode":"1F1E8-1F1EE","order":3952,"shortcodes":["flag_ci"],"tags":["CI","flag"],"unicode":"🇨🇮"},{"annotation":"flag: Cook Islands","group":9,"hexcode":"1F1E8-1F1F0","order":3953,"shortcodes":["flag_ck"],"tags":["CK","flag"],"unicode":"🇨🇰"},{"annotation":"flag: Chile","group":9,"hexcode":"1F1E8-1F1F1","order":3954,"shortcodes":["flag_cl"],"tags":["CL","flag"],"unicode":"🇨🇱"},{"annotation":"flag: Cameroon","group":9,"hexcode":"1F1E8-1F1F2","order":3955,"shortcodes":["flag_cm"],"tags":["CM","flag"],"unicode":"🇨🇲"},{"annotation":"flag: China","group":9,"hexcode":"1F1E8-1F1F3","order":3956,"shortcodes":["flag_cn"],"tags":["CN","flag"],"unicode":"🇨🇳"},{"annotation":"flag: Colombia","group":9,"hexcode":"1F1E8-1F1F4","order":3957,"shortcodes":["flag_co"],"tags":["CO","flag"],"unicode":"🇨🇴"},{"annotation":"flag: Clipperton Island","group":9,"hexcode":"1F1E8-1F1F5","order":3958,"shortcodes":["flag_cp"],"tags":["CP","flag"],"unicode":"🇨🇵"},{"annotation":"flag: Costa Rica","group":9,"hexcode":"1F1E8-1F1F7","order":3959,"shortcodes":["flag_cr"],"tags":["CR","flag"],"unicode":"🇨🇷"},{"annotation":"flag: Cuba","group":9,"hexcode":"1F1E8-1F1FA","order":3960,"shortcodes":["flag_cu"],"tags":["CU","flag"],"unicode":"🇨🇺"},{"annotation":"flag: Cape Verde","group":9,"hexcode":"1F1E8-1F1FB","order":3961,"shortcodes":["flag_cv"],"tags":["CV","flag"],"unicode":"🇨🇻"},{"annotation":"flag: Curaçao","group":9,"hexcode":"1F1E8-1F1FC","order":3962,"shortcodes":["flag_cw"],"tags":["CW","flag"],"unicode":"🇨🇼"},{"annotation":"flag: Christmas Island","group":9,"hexcode":"1F1E8-1F1FD","order":3963,"shortcodes":["flag_cx"],"tags":["CX","flag"],"unicode":"🇨🇽"},{"annotation":"flag: Cyprus","group":9,"hexcode":"1F1E8-1F1FE","order":3964,"shortcodes":["flag_cy"],"tags":["CY","flag"],"unicode":"🇨🇾"},{"annotation":"flag: Czechia","group":9,"hexcode":"1F1E8-1F1FF","order":3965,"shortcodes":["flag_cz"],"tags":["CZ","flag"],"unicode":"🇨🇿"},{"annotation":"flag: Germany","group":9,"hexcode":"1F1E9-1F1EA","order":3966,"shortcodes":["flag_de"],"tags":["DE","flag"],"unicode":"🇩🇪"},{"annotation":"flag: Diego Garcia","group":9,"hexcode":"1F1E9-1F1EC","order":3967,"shortcodes":["flag_dg"],"tags":["DG","flag"],"unicode":"🇩🇬"},{"annotation":"flag: Djibouti","group":9,"hexcode":"1F1E9-1F1EF","order":3968,"shortcodes":["flag_dj"],"tags":["DJ","flag"],"unicode":"🇩🇯"},{"annotation":"flag: Denmark","group":9,"hexcode":"1F1E9-1F1F0","order":3969,"shortcodes":["flag_dk"],"tags":["DK","flag"],"unicode":"🇩🇰"},{"annotation":"flag: Dominica","group":9,"hexcode":"1F1E9-1F1F2","order":3970,"shortcodes":["flag_dm"],"tags":["DM","flag"],"unicode":"🇩🇲"},{"annotation":"flag: Dominican Republic","group":9,"hexcode":"1F1E9-1F1F4","order":3971,"shortcodes":["flag_do"],"tags":["DO","flag"],"unicode":"🇩🇴"},{"annotation":"flag: Algeria","group":9,"hexcode":"1F1E9-1F1FF","order":3972,"shortcodes":["flag_dz"],"tags":["DZ","flag"],"unicode":"🇩🇿"},{"annotation":"flag: Ceuta & Melilla","group":9,"hexcode":"1F1EA-1F1E6","order":3973,"shortcodes":["flag_ea"],"tags":["EA","flag"],"unicode":"🇪🇦"},{"annotation":"flag: Ecuador","group":9,"hexcode":"1F1EA-1F1E8","order":3974,"shortcodes":["flag_ec"],"tags":["EC","flag"],"unicode":"🇪🇨"},{"annotation":"flag: Estonia","group":9,"hexcode":"1F1EA-1F1EA","order":3975,"shortcodes":["flag_ee"],"tags":["EE","flag"],"unicode":"🇪🇪"},{"annotation":"flag: Egypt","group":9,"hexcode":"1F1EA-1F1EC","order":3976,"shortcodes":["flag_eg"],"tags":["EG","flag"],"unicode":"🇪🇬"},{"annotation":"flag: Western Sahara","group":9,"hexcode":"1F1EA-1F1ED","order":3977,"shortcodes":["flag_eh"],"tags":["EH","flag"],"unicode":"🇪🇭"},{"annotation":"flag: Eritrea","group":9,"hexcode":"1F1EA-1F1F7","order":3978,"shortcodes":["flag_er"],"tags":["ER","flag"],"unicode":"🇪🇷"},{"annotation":"flag: Spain","group":9,"hexcode":"1F1EA-1F1F8","order":3979,"shortcodes":["flag_es"],"tags":["ES","flag"],"unicode":"🇪🇸"},{"annotation":"flag: Ethiopia","group":9,"hexcode":"1F1EA-1F1F9","order":3980,"shortcodes":["flag_et"],"tags":["ET","flag"],"unicode":"🇪🇹"},{"annotation":"flag: European Union","group":9,"hexcode":"1F1EA-1F1FA","order":3981,"shortcodes":["flag_eu"],"tags":["EU","flag"],"unicode":"🇪🇺"},{"annotation":"flag: Finland","group":9,"hexcode":"1F1EB-1F1EE","order":3982,"shortcodes":["flag_fi"],"tags":["FI","flag"],"unicode":"🇫🇮"},{"annotation":"flag: Fiji","group":9,"hexcode":"1F1EB-1F1EF","order":3983,"shortcodes":["flag_fj"],"tags":["FJ","flag"],"unicode":"🇫🇯"},{"annotation":"flag: Falkland Islands","group":9,"hexcode":"1F1EB-1F1F0","order":3984,"shortcodes":["flag_fk"],"tags":["FK","flag"],"unicode":"🇫🇰"},{"annotation":"flag: Micronesia","group":9,"hexcode":"1F1EB-1F1F2","order":3985,"shortcodes":["flag_fm"],"tags":["FM","flag"],"unicode":"🇫🇲"},{"annotation":"flag: Faroe Islands","group":9,"hexcode":"1F1EB-1F1F4","order":3986,"shortcodes":["flag_fo"],"tags":["FO","flag"],"unicode":"🇫🇴"},{"annotation":"flag: France","group":9,"hexcode":"1F1EB-1F1F7","order":3987,"shortcodes":["flag_fr"],"tags":["FR","flag"],"unicode":"🇫🇷"},{"annotation":"flag: Gabon","group":9,"hexcode":"1F1EC-1F1E6","order":3988,"shortcodes":["flag_ga"],"tags":["GA","flag"],"unicode":"🇬🇦"},{"annotation":"flag: United Kingdom","group":9,"hexcode":"1F1EC-1F1E7","order":3989,"shortcodes":["flag_gb"],"tags":["GB","flag"],"unicode":"🇬🇧"},{"annotation":"flag: Grenada","group":9,"hexcode":"1F1EC-1F1E9","order":3990,"shortcodes":["flag_gd"],"tags":["GD","flag"],"unicode":"🇬🇩"},{"annotation":"flag: Georgia","group":9,"hexcode":"1F1EC-1F1EA","order":3991,"shortcodes":["flag_ge"],"tags":["GE","flag"],"unicode":"🇬🇪"},{"annotation":"flag: French Guiana","group":9,"hexcode":"1F1EC-1F1EB","order":3992,"shortcodes":["flag_gf"],"tags":["GF","flag"],"unicode":"🇬🇫"},{"annotation":"flag: Guernsey","group":9,"hexcode":"1F1EC-1F1EC","order":3993,"shortcodes":["flag_gg"],"tags":["GG","flag"],"unicode":"🇬🇬"},{"annotation":"flag: Ghana","group":9,"hexcode":"1F1EC-1F1ED","order":3994,"shortcodes":["flag_gh"],"tags":["GH","flag"],"unicode":"🇬🇭"},{"annotation":"flag: Gibraltar","group":9,"hexcode":"1F1EC-1F1EE","order":3995,"shortcodes":["flag_gi"],"tags":["GI","flag"],"unicode":"🇬🇮"},{"annotation":"flag: Greenland","group":9,"hexcode":"1F1EC-1F1F1","order":3996,"shortcodes":["flag_gl"],"tags":["GL","flag"],"unicode":"🇬🇱"},{"annotation":"flag: Gambia","group":9,"hexcode":"1F1EC-1F1F2","order":3997,"shortcodes":["flag_gm"],"tags":["GM","flag"],"unicode":"🇬🇲"},{"annotation":"flag: Guinea","group":9,"hexcode":"1F1EC-1F1F3","order":3998,"shortcodes":["flag_gn"],"tags":["GN","flag"],"unicode":"🇬🇳"},{"annotation":"flag: Guadeloupe","group":9,"hexcode":"1F1EC-1F1F5","order":3999,"shortcodes":["flag_gp"],"tags":["GP","flag"],"unicode":"🇬🇵"},{"annotation":"flag: Equatorial Guinea","group":9,"hexcode":"1F1EC-1F1F6","order":4000,"shortcodes":["flag_gq"],"tags":["GQ","flag"],"unicode":"🇬🇶"},{"annotation":"flag: Greece","group":9,"hexcode":"1F1EC-1F1F7","order":4001,"shortcodes":["flag_gr"],"tags":["GR","flag"],"unicode":"🇬🇷"},{"annotation":"flag: South Georgia & South Sandwich Islands","group":9,"hexcode":"1F1EC-1F1F8","order":4002,"shortcodes":["flag_gs"],"tags":["GS","flag"],"unicode":"🇬🇸"},{"annotation":"flag: Guatemala","group":9,"hexcode":"1F1EC-1F1F9","order":4003,"shortcodes":["flag_gt"],"tags":["GT","flag"],"unicode":"🇬🇹"},{"annotation":"flag: Guam","group":9,"hexcode":"1F1EC-1F1FA","order":4004,"shortcodes":["flag_gu"],"tags":["GU","flag"],"unicode":"🇬🇺"},{"annotation":"flag: Guinea-Bissau","group":9,"hexcode":"1F1EC-1F1FC","order":4005,"shortcodes":["flag_gw"],"tags":["GW","flag"],"unicode":"🇬🇼"},{"annotation":"flag: Guyana","group":9,"hexcode":"1F1EC-1F1FE","order":4006,"shortcodes":["flag_gy"],"tags":["GY","flag"],"unicode":"🇬🇾"},{"annotation":"flag: Hong Kong SAR China","group":9,"hexcode":"1F1ED-1F1F0","order":4007,"shortcodes":["flag_hk"],"tags":["HK","flag"],"unicode":"🇭🇰"},{"annotation":"flag: Heard & McDonald Islands","group":9,"hexcode":"1F1ED-1F1F2","order":4008,"shortcodes":["flag_hm"],"tags":["HM","flag"],"unicode":"🇭🇲"},{"annotation":"flag: Honduras","group":9,"hexcode":"1F1ED-1F1F3","order":4009,"shortcodes":["flag_hn"],"tags":["HN","flag"],"unicode":"🇭🇳"},{"annotation":"flag: Croatia","group":9,"hexcode":"1F1ED-1F1F7","order":4010,"shortcodes":["flag_hr"],"tags":["HR","flag"],"unicode":"🇭🇷"},{"annotation":"flag: Haiti","group":9,"hexcode":"1F1ED-1F1F9","order":4011,"shortcodes":["flag_ht"],"tags":["HT","flag"],"unicode":"🇭🇹"},{"annotation":"flag: Hungary","group":9,"hexcode":"1F1ED-1F1FA","order":4012,"shortcodes":["flag_hu"],"tags":["HU","flag"],"unicode":"🇭🇺"},{"annotation":"flag: Canary Islands","group":9,"hexcode":"1F1EE-1F1E8","order":4013,"shortcodes":["flag_ic"],"tags":["IC","flag"],"unicode":"🇮🇨"},{"annotation":"flag: Indonesia","group":9,"hexcode":"1F1EE-1F1E9","order":4014,"shortcodes":["flag_id"],"tags":["ID","flag"],"unicode":"🇮🇩"},{"annotation":"flag: Ireland","group":9,"hexcode":"1F1EE-1F1EA","order":4015,"shortcodes":["flag_ie"],"tags":["IE","flag"],"unicode":"🇮🇪"},{"annotation":"flag: Israel","group":9,"hexcode":"1F1EE-1F1F1","order":4016,"shortcodes":["flag_il"],"tags":["IL","flag"],"unicode":"🇮🇱"},{"annotation":"flag: Isle of Man","group":9,"hexcode":"1F1EE-1F1F2","order":4017,"shortcodes":["flag_im"],"tags":["IM","flag"],"unicode":"🇮🇲"},{"annotation":"flag: India","group":9,"hexcode":"1F1EE-1F1F3","order":4018,"shortcodes":["flag_in"],"tags":["IN","flag"],"unicode":"🇮🇳"},{"annotation":"flag: British Indian Ocean Territory","group":9,"hexcode":"1F1EE-1F1F4","order":4019,"shortcodes":["flag_io"],"tags":["IO","flag"],"unicode":"🇮🇴"},{"annotation":"flag: Iraq","group":9,"hexcode":"1F1EE-1F1F6","order":4020,"shortcodes":["flag_iq"],"tags":["IQ","flag"],"unicode":"🇮🇶"},{"annotation":"flag: Iran","group":9,"hexcode":"1F1EE-1F1F7","order":4021,"shortcodes":["flag_ir"],"tags":["IR","flag"],"unicode":"🇮🇷"},{"annotation":"flag: Iceland","group":9,"hexcode":"1F1EE-1F1F8","order":4022,"shortcodes":["flag_is"],"tags":["IS","flag"],"unicode":"🇮🇸"},{"annotation":"flag: Italy","group":9,"hexcode":"1F1EE-1F1F9","order":4023,"shortcodes":["flag_it"],"tags":["IT","flag"],"unicode":"🇮🇹"},{"annotation":"flag: Jersey","group":9,"hexcode":"1F1EF-1F1EA","order":4024,"shortcodes":["flag_je"],"tags":["JE","flag"],"unicode":"🇯🇪"},{"annotation":"flag: Jamaica","group":9,"hexcode":"1F1EF-1F1F2","order":4025,"shortcodes":["flag_jm"],"tags":["JM","flag"],"unicode":"🇯🇲"},{"annotation":"flag: Jordan","group":9,"hexcode":"1F1EF-1F1F4","order":4026,"shortcodes":["flag_jo"],"tags":["JO","flag"],"unicode":"🇯🇴"},{"annotation":"flag: Japan","group":9,"hexcode":"1F1EF-1F1F5","order":4027,"shortcodes":["flag_jp"],"tags":["JP","flag"],"unicode":"🇯🇵"},{"annotation":"flag: Kenya","group":9,"hexcode":"1F1F0-1F1EA","order":4028,"shortcodes":["flag_ke"],"tags":["KE","flag"],"unicode":"🇰🇪"},{"annotation":"flag: Kyrgyzstan","group":9,"hexcode":"1F1F0-1F1EC","order":4029,"shortcodes":["flag_kg"],"tags":["KG","flag"],"unicode":"🇰🇬"},{"annotation":"flag: Cambodia","group":9,"hexcode":"1F1F0-1F1ED","order":4030,"shortcodes":["flag_kh"],"tags":["KH","flag"],"unicode":"🇰🇭"},{"annotation":"flag: Kiribati","group":9,"hexcode":"1F1F0-1F1EE","order":4031,"shortcodes":["flag_ki"],"tags":["KI","flag"],"unicode":"🇰🇮"},{"annotation":"flag: Comoros","group":9,"hexcode":"1F1F0-1F1F2","order":4032,"shortcodes":["flag_km"],"tags":["KM","flag"],"unicode":"🇰🇲"},{"annotation":"flag: St. Kitts & Nevis","group":9,"hexcode":"1F1F0-1F1F3","order":4033,"shortcodes":["flag_kn"],"tags":["KN","flag"],"unicode":"🇰🇳"},{"annotation":"flag: North Korea","group":9,"hexcode":"1F1F0-1F1F5","order":4034,"shortcodes":["flag_kp"],"tags":["KP","flag"],"unicode":"🇰🇵"},{"annotation":"flag: South Korea","group":9,"hexcode":"1F1F0-1F1F7","order":4035,"shortcodes":["flag_kr"],"tags":["KR","flag"],"unicode":"🇰🇷"},{"annotation":"flag: Kuwait","group":9,"hexcode":"1F1F0-1F1FC","order":4036,"shortcodes":["flag_kw"],"tags":["KW","flag"],"unicode":"🇰🇼"},{"annotation":"flag: Cayman Islands","group":9,"hexcode":"1F1F0-1F1FE","order":4037,"shortcodes":["flag_ky"],"tags":["KY","flag"],"unicode":"🇰🇾"},{"annotation":"flag: Kazakhstan","group":9,"hexcode":"1F1F0-1F1FF","order":4038,"shortcodes":["flag_kz"],"tags":["KZ","flag"],"unicode":"🇰🇿"},{"annotation":"flag: Laos","group":9,"hexcode":"1F1F1-1F1E6","order":4039,"shortcodes":["flag_la"],"tags":["LA","flag"],"unicode":"🇱🇦"},{"annotation":"flag: Lebanon","group":9,"hexcode":"1F1F1-1F1E7","order":4040,"shortcodes":["flag_lb"],"tags":["LB","flag"],"unicode":"🇱🇧"},{"annotation":"flag: St. Lucia","group":9,"hexcode":"1F1F1-1F1E8","order":4041,"shortcodes":["flag_lc"],"tags":["LC","flag"],"unicode":"🇱🇨"},{"annotation":"flag: Liechtenstein","group":9,"hexcode":"1F1F1-1F1EE","order":4042,"shortcodes":["flag_li"],"tags":["LI","flag"],"unicode":"🇱🇮"},{"annotation":"flag: Sri Lanka","group":9,"hexcode":"1F1F1-1F1F0","order":4043,"shortcodes":["flag_lk"],"tags":["LK","flag"],"unicode":"🇱🇰"},{"annotation":"flag: Liberia","group":9,"hexcode":"1F1F1-1F1F7","order":4044,"shortcodes":["flag_lr"],"tags":["LR","flag"],"unicode":"🇱🇷"},{"annotation":"flag: Lesotho","group":9,"hexcode":"1F1F1-1F1F8","order":4045,"shortcodes":["flag_ls"],"tags":["LS","flag"],"unicode":"🇱🇸"},{"annotation":"flag: Lithuania","group":9,"hexcode":"1F1F1-1F1F9","order":4046,"shortcodes":["flag_lt"],"tags":["LT","flag"],"unicode":"🇱🇹"},{"annotation":"flag: Luxembourg","group":9,"hexcode":"1F1F1-1F1FA","order":4047,"shortcodes":["flag_lu"],"tags":["LU","flag"],"unicode":"🇱🇺"},{"annotation":"flag: Latvia","group":9,"hexcode":"1F1F1-1F1FB","order":4048,"shortcodes":["flag_lv"],"tags":["LV","flag"],"unicode":"🇱🇻"},{"annotation":"flag: Libya","group":9,"hexcode":"1F1F1-1F1FE","order":4049,"shortcodes":["flag_ly"],"tags":["LY","flag"],"unicode":"🇱🇾"},{"annotation":"flag: Morocco","group":9,"hexcode":"1F1F2-1F1E6","order":4050,"shortcodes":["flag_ma"],"tags":["MA","flag"],"unicode":"🇲🇦"},{"annotation":"flag: Monaco","group":9,"hexcode":"1F1F2-1F1E8","order":4051,"shortcodes":["flag_mc"],"tags":["MC","flag"],"unicode":"🇲🇨"},{"annotation":"flag: Moldova","group":9,"hexcode":"1F1F2-1F1E9","order":4052,"shortcodes":["flag_md"],"tags":["MD","flag"],"unicode":"🇲🇩"},{"annotation":"flag: Montenegro","group":9,"hexcode":"1F1F2-1F1EA","order":4053,"shortcodes":["flag_me"],"tags":["ME","flag"],"unicode":"🇲🇪"},{"annotation":"flag: St. Martin","group":9,"hexcode":"1F1F2-1F1EB","order":4054,"shortcodes":["flag_mf"],"tags":["MF","flag"],"unicode":"🇲🇫"},{"annotation":"flag: Madagascar","group":9,"hexcode":"1F1F2-1F1EC","order":4055,"shortcodes":["flag_mg"],"tags":["MG","flag"],"unicode":"🇲🇬"},{"annotation":"flag: Marshall Islands","group":9,"hexcode":"1F1F2-1F1ED","order":4056,"shortcodes":["flag_mh"],"tags":["MH","flag"],"unicode":"🇲🇭"},{"annotation":"flag: North Macedonia","group":9,"hexcode":"1F1F2-1F1F0","order":4057,"shortcodes":["flag_mk"],"tags":["MK","flag"],"unicode":"🇲🇰"},{"annotation":"flag: Mali","group":9,"hexcode":"1F1F2-1F1F1","order":4058,"shortcodes":["flag_ml"],"tags":["ML","flag"],"unicode":"🇲🇱"},{"annotation":"flag: Myanmar (Burma)","group":9,"hexcode":"1F1F2-1F1F2","order":4059,"shortcodes":["flag_mm"],"tags":["MM","flag"],"unicode":"🇲🇲"},{"annotation":"flag: Mongolia","group":9,"hexcode":"1F1F2-1F1F3","order":4060,"shortcodes":["flag_mn"],"tags":["MN","flag"],"unicode":"🇲🇳"},{"annotation":"flag: Macao SAR China","group":9,"hexcode":"1F1F2-1F1F4","order":4061,"shortcodes":["flag_mo"],"tags":["MO","flag"],"unicode":"🇲🇴"},{"annotation":"flag: Northern Mariana Islands","group":9,"hexcode":"1F1F2-1F1F5","order":4062,"shortcodes":["flag_mp"],"tags":["MP","flag"],"unicode":"🇲🇵"},{"annotation":"flag: Martinique","group":9,"hexcode":"1F1F2-1F1F6","order":4063,"shortcodes":["flag_mq"],"tags":["MQ","flag"],"unicode":"🇲🇶"},{"annotation":"flag: Mauritania","group":9,"hexcode":"1F1F2-1F1F7","order":4064,"shortcodes":["flag_mr"],"tags":["MR","flag"],"unicode":"🇲🇷"},{"annotation":"flag: Montserrat","group":9,"hexcode":"1F1F2-1F1F8","order":4065,"shortcodes":["flag_ms"],"tags":["MS","flag"],"unicode":"🇲🇸"},{"annotation":"flag: Malta","group":9,"hexcode":"1F1F2-1F1F9","order":4066,"shortcodes":["flag_mt"],"tags":["MT","flag"],"unicode":"🇲🇹"},{"annotation":"flag: Mauritius","group":9,"hexcode":"1F1F2-1F1FA","order":4067,"shortcodes":["flag_mu"],"tags":["MU","flag"],"unicode":"🇲🇺"},{"annotation":"flag: Maldives","group":9,"hexcode":"1F1F2-1F1FB","order":4068,"shortcodes":["flag_mv"],"tags":["MV","flag"],"unicode":"🇲🇻"},{"annotation":"flag: Malawi","group":9,"hexcode":"1F1F2-1F1FC","order":4069,"shortcodes":["flag_mw"],"tags":["MW","flag"],"unicode":"🇲🇼"},{"annotation":"flag: Mexico","group":9,"hexcode":"1F1F2-1F1FD","order":4070,"shortcodes":["flag_mx"],"tags":["MX","flag"],"unicode":"🇲🇽"},{"annotation":"flag: Malaysia","group":9,"hexcode":"1F1F2-1F1FE","order":4071,"shortcodes":["flag_my"],"tags":["MY","flag"],"unicode":"🇲🇾"},{"annotation":"flag: Mozambique","group":9,"hexcode":"1F1F2-1F1FF","order":4072,"shortcodes":["flag_mz"],"tags":["MZ","flag"],"unicode":"🇲🇿"},{"annotation":"flag: Namibia","group":9,"hexcode":"1F1F3-1F1E6","order":4073,"shortcodes":["flag_na"],"tags":["NA","flag"],"unicode":"🇳🇦"},{"annotation":"flag: New Caledonia","group":9,"hexcode":"1F1F3-1F1E8","order":4074,"shortcodes":["flag_nc"],"tags":["NC","flag"],"unicode":"🇳🇨"},{"annotation":"flag: Niger","group":9,"hexcode":"1F1F3-1F1EA","order":4075,"shortcodes":["flag_ne"],"tags":["NE","flag"],"unicode":"🇳🇪"},{"annotation":"flag: Norfolk Island","group":9,"hexcode":"1F1F3-1F1EB","order":4076,"shortcodes":["flag_nf"],"tags":["NF","flag"],"unicode":"🇳🇫"},{"annotation":"flag: Nigeria","group":9,"hexcode":"1F1F3-1F1EC","order":4077,"shortcodes":["flag_ng"],"tags":["NG","flag"],"unicode":"🇳🇬"},{"annotation":"flag: Nicaragua","group":9,"hexcode":"1F1F3-1F1EE","order":4078,"shortcodes":["flag_ni"],"tags":["NI","flag"],"unicode":"🇳🇮"},{"annotation":"flag: Netherlands","group":9,"hexcode":"1F1F3-1F1F1","order":4079,"shortcodes":["flag_nl"],"tags":["NL","flag"],"unicode":"🇳🇱"},{"annotation":"flag: Norway","group":9,"hexcode":"1F1F3-1F1F4","order":4080,"shortcodes":["flag_no"],"tags":["NO","flag"],"unicode":"🇳🇴"},{"annotation":"flag: Nepal","group":9,"hexcode":"1F1F3-1F1F5","order":4081,"shortcodes":["flag_np"],"tags":["NP","flag"],"unicode":"🇳🇵"},{"annotation":"flag: Nauru","group":9,"hexcode":"1F1F3-1F1F7","order":4082,"shortcodes":["flag_nr"],"tags":["NR","flag"],"unicode":"🇳🇷"},{"annotation":"flag: Niue","group":9,"hexcode":"1F1F3-1F1FA","order":4083,"shortcodes":["flag_nu"],"tags":["NU","flag"],"unicode":"🇳🇺"},{"annotation":"flag: New Zealand","group":9,"hexcode":"1F1F3-1F1FF","order":4084,"shortcodes":["flag_nz"],"tags":["NZ","flag"],"unicode":"🇳🇿"},{"annotation":"flag: Oman","group":9,"hexcode":"1F1F4-1F1F2","order":4085,"shortcodes":["flag_om"],"tags":["OM","flag"],"unicode":"🇴🇲"},{"annotation":"flag: Panama","group":9,"hexcode":"1F1F5-1F1E6","order":4086,"shortcodes":["flag_pa"],"tags":["PA","flag"],"unicode":"🇵🇦"},{"annotation":"flag: Peru","group":9,"hexcode":"1F1F5-1F1EA","order":4087,"shortcodes":["flag_pe"],"tags":["PE","flag"],"unicode":"🇵🇪"},{"annotation":"flag: French Polynesia","group":9,"hexcode":"1F1F5-1F1EB","order":4088,"shortcodes":["flag_pf"],"tags":["PF","flag"],"unicode":"🇵🇫"},{"annotation":"flag: Papua New Guinea","group":9,"hexcode":"1F1F5-1F1EC","order":4089,"shortcodes":["flag_pg"],"tags":["PG","flag"],"unicode":"🇵🇬"},{"annotation":"flag: Philippines","group":9,"hexcode":"1F1F5-1F1ED","order":4090,"shortcodes":["flag_ph"],"tags":["PH","flag"],"unicode":"🇵🇭"},{"annotation":"flag: Pakistan","group":9,"hexcode":"1F1F5-1F1F0","order":4091,"shortcodes":["flag_pk"],"tags":["PK","flag"],"unicode":"🇵🇰"},{"annotation":"flag: Poland","group":9,"hexcode":"1F1F5-1F1F1","order":4092,"shortcodes":["flag_pl"],"tags":["PL","flag"],"unicode":"🇵🇱"},{"annotation":"flag: St. Pierre & Miquelon","group":9,"hexcode":"1F1F5-1F1F2","order":4093,"shortcodes":["flag_pm"],"tags":["PM","flag"],"unicode":"🇵🇲"},{"annotation":"flag: Pitcairn Islands","group":9,"hexcode":"1F1F5-1F1F3","order":4094,"shortcodes":["flag_pn"],"tags":["PN","flag"],"unicode":"🇵🇳"},{"annotation":"flag: Puerto Rico","group":9,"hexcode":"1F1F5-1F1F7","order":4095,"shortcodes":["flag_pr"],"tags":["PR","flag"],"unicode":"🇵🇷"},{"annotation":"flag: Palestinian Territories","group":9,"hexcode":"1F1F5-1F1F8","order":4096,"shortcodes":["flag_ps"],"tags":["PS","flag"],"unicode":"🇵🇸"},{"annotation":"flag: Portugal","group":9,"hexcode":"1F1F5-1F1F9","order":4097,"shortcodes":["flag_pt"],"tags":["PT","flag"],"unicode":"🇵🇹"},{"annotation":"flag: Palau","group":9,"hexcode":"1F1F5-1F1FC","order":4098,"shortcodes":["flag_pw"],"tags":["PW","flag"],"unicode":"🇵🇼"},{"annotation":"flag: Paraguay","group":9,"hexcode":"1F1F5-1F1FE","order":4099,"shortcodes":["flag_py"],"tags":["PY","flag"],"unicode":"🇵🇾"},{"annotation":"flag: Qatar","group":9,"hexcode":"1F1F6-1F1E6","order":4100,"shortcodes":["flag_qa"],"tags":["QA","flag"],"unicode":"🇶🇦"},{"annotation":"flag: Réunion","group":9,"hexcode":"1F1F7-1F1EA","order":4101,"shortcodes":["flag_re"],"tags":["RE","flag"],"unicode":"🇷🇪"},{"annotation":"flag: Romania","group":9,"hexcode":"1F1F7-1F1F4","order":4102,"shortcodes":["flag_ro"],"tags":["RO","flag"],"unicode":"🇷🇴"},{"annotation":"flag: Serbia","group":9,"hexcode":"1F1F7-1F1F8","order":4103,"shortcodes":["flag_rs"],"tags":["RS","flag"],"unicode":"🇷🇸"},{"annotation":"flag: Russia","group":9,"hexcode":"1F1F7-1F1FA","order":4104,"shortcodes":["flag_ru"],"tags":["RU","flag"],"unicode":"🇷🇺"},{"annotation":"flag: Rwanda","group":9,"hexcode":"1F1F7-1F1FC","order":4105,"shortcodes":["flag_rw"],"tags":["RW","flag"],"unicode":"🇷🇼"},{"annotation":"flag: Saudi Arabia","group":9,"hexcode":"1F1F8-1F1E6","order":4106,"shortcodes":["flag_sa"],"tags":["SA","flag"],"unicode":"🇸🇦"},{"annotation":"flag: Solomon Islands","group":9,"hexcode":"1F1F8-1F1E7","order":4107,"shortcodes":["flag_sb"],"tags":["SB","flag"],"unicode":"🇸🇧"},{"annotation":"flag: Seychelles","group":9,"hexcode":"1F1F8-1F1E8","order":4108,"shortcodes":["flag_sc"],"tags":["SC","flag"],"unicode":"🇸🇨"},{"annotation":"flag: Sudan","group":9,"hexcode":"1F1F8-1F1E9","order":4109,"shortcodes":["flag_sd"],"tags":["SD","flag"],"unicode":"🇸🇩"},{"annotation":"flag: Sweden","group":9,"hexcode":"1F1F8-1F1EA","order":4110,"shortcodes":["flag_se"],"tags":["SE","flag"],"unicode":"🇸🇪"},{"annotation":"flag: Singapore","group":9,"hexcode":"1F1F8-1F1EC","order":4111,"shortcodes":["flag_sg"],"tags":["SG","flag"],"unicode":"🇸🇬"},{"annotation":"flag: St. Helena","group":9,"hexcode":"1F1F8-1F1ED","order":4112,"shortcodes":["flag_sh"],"tags":["SH","flag"],"unicode":"🇸🇭"},{"annotation":"flag: Slovenia","group":9,"hexcode":"1F1F8-1F1EE","order":4113,"shortcodes":["flag_si"],"tags":["SI","flag"],"unicode":"🇸🇮"},{"annotation":"flag: Svalbard & Jan Mayen","group":9,"hexcode":"1F1F8-1F1EF","order":4114,"shortcodes":["flag_sj"],"tags":["SJ","flag"],"unicode":"🇸🇯"},{"annotation":"flag: Slovakia","group":9,"hexcode":"1F1F8-1F1F0","order":4115,"shortcodes":["flag_sk"],"tags":["SK","flag"],"unicode":"🇸🇰"},{"annotation":"flag: Sierra Leone","group":9,"hexcode":"1F1F8-1F1F1","order":4116,"shortcodes":["flag_sl"],"tags":["SL","flag"],"unicode":"🇸🇱"},{"annotation":"flag: San Marino","group":9,"hexcode":"1F1F8-1F1F2","order":4117,"shortcodes":["flag_sm"],"tags":["SM","flag"],"unicode":"🇸🇲"},{"annotation":"flag: Senegal","group":9,"hexcode":"1F1F8-1F1F3","order":4118,"shortcodes":["flag_sn"],"tags":["SN","flag"],"unicode":"🇸🇳"},{"annotation":"flag: Somalia","group":9,"hexcode":"1F1F8-1F1F4","order":4119,"shortcodes":["flag_so"],"tags":["SO","flag"],"unicode":"🇸🇴"},{"annotation":"flag: Suriname","group":9,"hexcode":"1F1F8-1F1F7","order":4120,"shortcodes":["flag_sr"],"tags":["SR","flag"],"unicode":"🇸🇷"},{"annotation":"flag: South Sudan","group":9,"hexcode":"1F1F8-1F1F8","order":4121,"shortcodes":["flag_ss"],"tags":["SS","flag"],"unicode":"🇸🇸"},{"annotation":"flag: São Tomé & Príncipe","group":9,"hexcode":"1F1F8-1F1F9","order":4122,"shortcodes":["flag_st"],"tags":["ST","flag"],"unicode":"🇸🇹"},{"annotation":"flag: El Salvador","group":9,"hexcode":"1F1F8-1F1FB","order":4123,"shortcodes":["flag_sv"],"tags":["SV","flag"],"unicode":"🇸🇻"},{"annotation":"flag: Sint Maarten","group":9,"hexcode":"1F1F8-1F1FD","order":4124,"shortcodes":["flag_sx"],"tags":["SX","flag"],"unicode":"🇸🇽"},{"annotation":"flag: Syria","group":9,"hexcode":"1F1F8-1F1FE","order":4125,"shortcodes":["flag_sy"],"tags":["SY","flag"],"unicode":"🇸🇾"},{"annotation":"flag: Eswatini","group":9,"hexcode":"1F1F8-1F1FF","order":4126,"shortcodes":["flag_sz"],"tags":["SZ","flag"],"unicode":"🇸🇿"},{"annotation":"flag: Tristan da Cunha","group":9,"hexcode":"1F1F9-1F1E6","order":4127,"shortcodes":["flag_ta"],"tags":["TA","flag"],"unicode":"🇹🇦"},{"annotation":"flag: Turks & Caicos Islands","group":9,"hexcode":"1F1F9-1F1E8","order":4128,"shortcodes":["flag_tc"],"tags":["TC","flag"],"unicode":"🇹🇨"},{"annotation":"flag: Chad","group":9,"hexcode":"1F1F9-1F1E9","order":4129,"shortcodes":["flag_td"],"tags":["TD","flag"],"unicode":"🇹🇩"},{"annotation":"flag: French Southern Territories","group":9,"hexcode":"1F1F9-1F1EB","order":4130,"shortcodes":["flag_tf"],"tags":["TF","flag"],"unicode":"🇹🇫"},{"annotation":"flag: Togo","group":9,"hexcode":"1F1F9-1F1EC","order":4131,"shortcodes":["flag_tg"],"tags":["TG","flag"],"unicode":"🇹🇬"},{"annotation":"flag: Thailand","group":9,"hexcode":"1F1F9-1F1ED","order":4132,"shortcodes":["flag_th"],"tags":["TH","flag"],"unicode":"🇹🇭"},{"annotation":"flag: Tajikistan","group":9,"hexcode":"1F1F9-1F1EF","order":4133,"shortcodes":["flag_tj"],"tags":["TJ","flag"],"unicode":"🇹🇯"},{"annotation":"flag: Tokelau","group":9,"hexcode":"1F1F9-1F1F0","order":4134,"shortcodes":["flag_tk"],"tags":["TK","flag"],"unicode":"🇹🇰"},{"annotation":"flag: Timor-Leste","group":9,"hexcode":"1F1F9-1F1F1","order":4135,"shortcodes":["flag_tl"],"tags":["TL","flag"],"unicode":"🇹🇱"},{"annotation":"flag: Turkmenistan","group":9,"hexcode":"1F1F9-1F1F2","order":4136,"shortcodes":["flag_tm"],"tags":["TM","flag"],"unicode":"🇹🇲"},{"annotation":"flag: Tunisia","group":9,"hexcode":"1F1F9-1F1F3","order":4137,"shortcodes":["flag_tn"],"tags":["TN","flag"],"unicode":"🇹🇳"},{"annotation":"flag: Tonga","group":9,"hexcode":"1F1F9-1F1F4","order":4138,"shortcodes":["flag_to"],"tags":["TO","flag"],"unicode":"🇹🇴"},{"annotation":"flag: Turkey","group":9,"hexcode":"1F1F9-1F1F7","order":4139,"shortcodes":["flag_tr"],"tags":["TR","flag"],"unicode":"🇹🇷"},{"annotation":"flag: Trinidad & Tobago","group":9,"hexcode":"1F1F9-1F1F9","order":4140,"shortcodes":["flag_tt"],"tags":["TT","flag"],"unicode":"🇹🇹"},{"annotation":"flag: Tuvalu","group":9,"hexcode":"1F1F9-1F1FB","order":4141,"shortcodes":["flag_tv"],"tags":["TV","flag"],"unicode":"🇹🇻"},{"annotation":"flag: Taiwan","group":9,"hexcode":"1F1F9-1F1FC","order":4142,"shortcodes":["flag_tw"],"tags":["TW","flag"],"unicode":"🇹🇼"},{"annotation":"flag: Tanzania","group":9,"hexcode":"1F1F9-1F1FF","order":4143,"shortcodes":["flag_tz"],"tags":["TZ","flag"],"unicode":"🇹🇿"},{"annotation":"flag: Ukraine","group":9,"hexcode":"1F1FA-1F1E6","order":4144,"shortcodes":["flag_ua"],"tags":["UA","flag"],"unicode":"🇺🇦"},{"annotation":"flag: Uganda","group":9,"hexcode":"1F1FA-1F1EC","order":4145,"shortcodes":["flag_ug"],"tags":["UG","flag"],"unicode":"🇺🇬"},{"annotation":"flag: U.S. Outlying Islands","group":9,"hexcode":"1F1FA-1F1F2","order":4146,"shortcodes":["flag_um"],"tags":["UM","flag"],"unicode":"🇺🇲"},{"annotation":"flag: United Nations","group":9,"hexcode":"1F1FA-1F1F3","order":4147,"shortcodes":["flag_un"],"tags":["UN","flag"],"unicode":"🇺🇳"},{"annotation":"flag: United States","group":9,"hexcode":"1F1FA-1F1F8","order":4148,"shortcodes":["flag_us","usa"],"tags":["US","flag"],"unicode":"🇺🇸"},{"annotation":"flag: Uruguay","group":9,"hexcode":"1F1FA-1F1FE","order":4149,"shortcodes":["flag_uy"],"tags":["UY","flag"],"unicode":"🇺🇾"},{"annotation":"flag: Uzbekistan","group":9,"hexcode":"1F1FA-1F1FF","order":4150,"shortcodes":["flag_uz"],"tags":["UZ","flag"],"unicode":"🇺🇿"},{"annotation":"flag: Vatican City","group":9,"hexcode":"1F1FB-1F1E6","order":4151,"shortcodes":["flag_va"],"tags":["VA","flag"],"unicode":"🇻🇦"},{"annotation":"flag: St. Vincent & Grenadines","group":9,"hexcode":"1F1FB-1F1E8","order":4152,"shortcodes":["flag_vc"],"tags":["VC","flag"],"unicode":"🇻🇨"},{"annotation":"flag: Venezuela","group":9,"hexcode":"1F1FB-1F1EA","order":4153,"shortcodes":["flag_ve"],"tags":["VE","flag"],"unicode":"🇻🇪"},{"annotation":"flag: British Virgin Islands","group":9,"hexcode":"1F1FB-1F1EC","order":4154,"shortcodes":["flag_vg"],"tags":["VG","flag"],"unicode":"🇻🇬"},{"annotation":"flag: U.S. Virgin Islands","group":9,"hexcode":"1F1FB-1F1EE","order":4155,"shortcodes":["flag_vi"],"tags":["VI","flag"],"unicode":"🇻🇮"},{"annotation":"flag: Vietnam","group":9,"hexcode":"1F1FB-1F1F3","order":4156,"shortcodes":["flag_vn"],"tags":["VN","flag"],"unicode":"🇻🇳"},{"annotation":"flag: Vanuatu","group":9,"hexcode":"1F1FB-1F1FA","order":4157,"shortcodes":["flag_vu"],"tags":["VU","flag"],"unicode":"🇻🇺"},{"annotation":"flag: Wallis & Futuna","group":9,"hexcode":"1F1FC-1F1EB","order":4158,"shortcodes":["flag_wf"],"tags":["WF","flag"],"unicode":"🇼🇫"},{"annotation":"flag: Samoa","group":9,"hexcode":"1F1FC-1F1F8","order":4159,"shortcodes":["flag_ws"],"tags":["WS","flag"],"unicode":"🇼🇸"},{"annotation":"flag: Kosovo","group":9,"hexcode":"1F1FD-1F1F0","order":4160,"shortcodes":["flag_xk"],"tags":["XK","flag"],"unicode":"🇽🇰"},{"annotation":"flag: Yemen","group":9,"hexcode":"1F1FE-1F1EA","order":4161,"shortcodes":["flag_ye"],"tags":["YE","flag"],"unicode":"🇾🇪"},{"annotation":"flag: Mayotte","group":9,"hexcode":"1F1FE-1F1F9","order":4162,"shortcodes":["flag_yt"],"tags":["YT","flag"],"unicode":"🇾🇹"},{"annotation":"flag: South Africa","group":9,"hexcode":"1F1FF-1F1E6","order":4163,"shortcodes":["flag_za"],"tags":["ZA","flag"],"unicode":"🇿🇦"},{"annotation":"flag: Zambia","group":9,"hexcode":"1F1FF-1F1F2","order":4164,"shortcodes":["flag_zm"],"tags":["ZM","flag"],"unicode":"🇿🇲"},{"annotation":"flag: Zimbabwe","group":9,"hexcode":"1F1FF-1F1FC","order":4165,"shortcodes":["flag_zw"],"tags":["ZW","flag"],"unicode":"🇿🇼"},{"annotation":"flag: England","group":9,"hexcode":"1F3F4-E0067-E0062-E0065-E006E-E0067-E007F","order":4166,"shortcodes":["flag_gbeng","england"],"tags":["flag","gbeng"],"unicode":"🏴󠁧󠁢󠁥󠁮󠁧󠁿"},{"annotation":"flag: Scotland","group":9,"hexcode":"1F3F4-E0067-E0062-E0073-E0063-E0074-E007F","order":4167,"shortcodes":["flag_gbsct","scotland"],"tags":["flag","gbsct"],"unicode":"🏴󠁧󠁢󠁳󠁣󠁴󠁿"},{"annotation":"flag: Wales","group":9,"hexcode":"1F3F4-E0067-E0062-E0077-E006C-E0073-E007F","order":4168,"shortcodes":["flag_gbwls","wales"],"tags":["flag","gbwls"],"unicode":"🏴󠁧󠁢󠁷󠁬󠁳󠁿"}]')},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=n(660);t.Parser=i.Parser;var a=n(662);t.DomHandler=a.DomHandler,t.DefaultHandler=a.DomHandler,t.parseDOM=function(e,t){var n=new a.DomHandler(void 0,t);return new i.Parser(n,t).end(e),n.dom},t.createDomStream=function(e,t,n){var o=new a.DomHandler(e,t,n);return new i.Parser(o,t)};var s=n(661);t.Tokenizer=s.default;var c=r(n(663));t.ElementType=c,t.EVENTS={attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0},o(n(664)),o(n(1214)),o(n(1215));var l=r(n(665));t.DomUtils=l;var u=n(664);t.RssHandler=u.FeedHandler},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(1204));t.default=function(e){if(e>=55296&&e<=57343||e>1114111)return"<22>";e in r.default&&(e=r.default[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}},function(e){e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"","backsim":"∽","backsimeq":"⋍","Backslash":"","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"","Bernoullis":"","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"","caps":"∩︀","caret":"","caron":"ˇ","Cayleys":"","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"","dd":"","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":"","emsp14":"","emsp":"","ENG":"Ŋ","eng":"ŋ","ensp":"","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"","Escr":"","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"","exponentiale":"","ExponentialE":"","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"","frown":"⌢","fscr":"𝒻","Fscr":"","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":"","half":"½","hamilt":"","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"","HilbertSpace":"","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"","hyphen":"","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"","Igrave":"Ì","igrave":"ì","ii":"","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"","ImaginaryI":"","imagline":"","imagpart":"","imath":"ı","Im":"","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"","lscr":"𝓁","Lscr":"","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"","lsquor":"","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":"","Mellintrf":"","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"","middot":"·","minusb":"⊟","minus":"","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":"","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"","ord":"⩝","order":"","orderof":"","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"","pointint":"⨕","popf":"𝕡","Popf":"","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"","Prime":"″","primes":"","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":"","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"","rationals":"","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"","realine":"","realpart":"","reals":"","Re":"","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"","rscr":"𝓇","Rscr":"","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"","rsquor":"","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"","setmn":"","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"","smashp":"⨳","smeparsl":"⧤","smid":"","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"","ThickSpace":"","ThinSpace":"","thinsp":"","thkap":"≈","thksim":"","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"","Vee":"","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":"","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(e){e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=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(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=new Map([["tag",1],["script",1],["style",1],["directive",1],["text",3],["cdata",4],["comment",8]]),a=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return i.get(this.type)||1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent||null},set:function(e){this.parent=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev||null},set:function(e){this.prev=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next||null},set:function(e){this.next=e},enumerable:!0,configurable:!0}),e}();t.Node=a;var s=function(e){function t(t,n){var o=e.call(this,t)||this;return o.data=n,o}return r(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),t}(a);t.DataNode=s;var c=function(e){function t(t,n){var o=e.call(this,"directive",n)||this;return o.name=t,o}return r(t,e),t}(s);t.ProcessingInstruction=c;var l=function(e){function t(t,n){var o=e.call(this,t)||this;return o.children=n,o}return r(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!0,configurable:!0}),t}(a);t.NodeWithChildren=l;var u=function(e){function t(t,n){var o=e.call(this,"script"===t?"script":"style"===t?"style":"tag",[])||this;return o.name=t,o.attribs=n,o.attribs=n,o}return r(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!0,configurable:!0}),t}(l);t.Element=u},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(290),i=o(n(431));function a(e,t){return i.default(e,t)}t.getOuterHTML=a,t.getInnerHTML=function(e,t){return r.hasChildren(e)?e.children.map((function(e){return a(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):r.isTag(t)?"br"===t.name?"\n":e(t.children):r.isCDATA(t)?e(t.children):r.isText(t)?t.data:""}},function(e,t,n){"use strict";function o(e){return e.children||null}function r(e){return e.parent||null}Object.defineProperty(t,"__esModule",{value:!0}),t.getChildren=o,t.getParent=r,t.getSiblings=function(e){var t=r(e);return t?o(t):[e]},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},t.hasAttrib=function(e,t){return!!e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeElement=function(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}},t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var o=t.next=e.next;o&&(o.prev=t);var r=t.parent=e.parent;if(r){var i=r.children;i[i.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(t.parent=e,1!==e.children.push(t)){var n=e.children[e.children.length-2];n.next=t,t.prev=n,t.next=null}},t.append=function(e,t){var n=e.parent,o=e.next;if(t.next=o,t.prev=e,e.next=t,t.parent=n,o){if(o.prev=t,n){var r=n.children;r.splice(r.lastIndexOf(o),0,t)}}else n&&n.children.push(t)},t.prepend=function(e,t){var n=e.parent;if(n){var o=n.children;o.splice(o.lastIndexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(666),r=n(290);function i(e){return"text"===e.type}var a={tag_name:function(e){return"function"==typeof e?function(t){return r.isTag(t)&&e(t.name)}:"*"===e?r.isTag:function(t){return r.isTag(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return i(t)&&e(t.data)}:function(t){return i(t)&&t.data===e}}};function s(e,t){return"function"==typeof t?function(n){return r.isTag(n)&&t(n.attribs[e])}:function(n){return r.isTag(n)&&n.attribs[e]===t}}function c(e,t){return function(n){return e(n)||t(n)}}function l(e){var t=Object.keys(e).map((function(t){var n=e[t];return t in a?a[t](n):s(t,n)}));return 0===t.length?null:t.reduce(c)}t.testElement=function(e,t){var n=l(e);return!n||n(t)},t.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var i=l(e);return i?o.filter(i,t,n,r):[]},t.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),o.findOne(s("id",e),t,n)},t.getElementsByTagName=function(e,t,n,r){return void 0===r&&(r=1/0),o.filter(a.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),o.filter(a.tag_type(e),t,n,r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(290);function r(e,t){var n=[],r=[];if(e===t)return 0;for(var i=o.hasChildren(e)?e:e.parent;i;)n.unshift(i),i=i.parent;for(i=o.hasChildren(t)?t:t.parent;i;)r.unshift(i),i=i.parent;for(var a=0;n[a]===r[a];)a++;if(0===a)return 1;var s=n[a-1],c=s.children,l=n[a],u=r[a];return c.indexOf(l)>c.indexOf(u)?s===t?20:4:s===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var o=n.parent;o;o=o.parent)if(e.indexOf(o)>-1){e.splice(t,1);break}}return e},t.compareDocumentPosition=r,t.uniqueSort=function(e){return(e=e.filter((function(e,t,n){return!n.includes(e,t+1)}))).sort((function(e,t){var n=r(e,t);return 2&n?-1:4&n?1:0})),e}},,function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=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(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,(function(e){for(var t,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];n.events.push([e].concat(o)),n._cbs[e]&&(t=n._cbs)[e].apply(t,o)}))||this;return n._cbs=t,n.events=[],n}return r(t,e),t.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},t.prototype.restart=function(){var e;this._cbs.onreset&&this._cbs.onreset();for(var t=0;t<this.events.length;t++){var n=this.events[t],o=n[0],r=n.slice(1);this._cbs[o]&&(e=this._cbs)[o].apply(e,r)}},t}(i(n(1216)).default);t.CollectingHandler=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this._func=e}return e.prototype.onattribute=function(e,t){this._func("onattribute",e,t)},e.prototype.oncdatastart=function(){this._func("oncdatastart")},e.prototype.oncdataend=function(){this._func("oncdataend")},e.prototype.ontext=function(e){this._func("ontext",e)},e.prototype.onprocessinginstruction=function(e,t){this._func("onprocessinginstruction",e,t)},e.prototype.oncomment=function(e){this._func("oncomment",e)},e.prototype.oncommentend=function(){this._func("oncommentend")},e.prototype.onclosetag=function(e){this._func("onclosetag",e)},e.prototype.onopentag=function(e,t){this._func("onopentag",e,t)},e.prototype.onopentagname=function(e){this._func("onopentagname",e)},e.prototype.onerror=function(e){this._func("onerror",e)},e.prototype.onend=function(){this._func("onend")},e.prototype.onparserinit=function(e){this._func("onparserinit",e)},e.prototype.onreset=function(){this._func("onreset")},e}();t.default=o},function(e,t,n){"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},function(e,t){t.klona=function e(t){if("object"!=typeof t)return t;var n,o,r=Object.prototype.toString.call(t);if("[object Object]"===r){if(t.constructor!==Object&&"function"==typeof t.constructor)for(n in o=new t.constructor,t)o.hasOwnProperty(n)&&o[n]!==t[n]&&(o[n]=e(t[n]));else for(n in o={},t)"__proto__"===n?Object.defineProperty(o,n,{value:e(t[n]),configurable:!0,enumerable:!0,writable:!0}):o[n]=e(t[n]);return o}if("[object Array]"===r){for(n=t.length,o=Array(n);n--;)o[n]=e(t[n]);return o}return"[object Set]"===r?(o=new Set,t.forEach((function(t){o.add(e(t))})),o):"[object Map]"===r?(o=new Map,t.forEach((function(t,n){o.set(e(n),e(t))})),o):"[object Date]"===r?new Date(+t):"[object RegExp]"===r?((o=new RegExp(t.source,t.flags)).lastIndex=t.lastIndex,o):"[object DataView]"===r?new t.constructor(e(t.buffer)):"[object ArrayBuffer]"===r?t.slice(0):"Array]"===r.slice(-6)?new t.constructor(t):t}},function(e,t,n){"use strict";function o(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,n;return!1!==o(e)&&(void 0===(t=e.constructor)||!1!==o(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}},function(e,t,n){"use strict";var o=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var o={};return n.isMergeableObject(e)&&s(e).forEach((function(t){o[t]=i(e[t],n)})),s(t).forEach((function(r){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(c(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}(r,n)(e[r],t[r],n):o[r]=i(t[r],n))})),o}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||o,n.cloneUnlessOtherwiseSpecified=i;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):l(e,t,n):i(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var d=u;e.exports=d},function(e,t,n){"use strict";const o=/^-?\d+$/;t.parse=e=>{return(t=e.split(/,\s+/).map(e=>{const t={};return e.trim().split(/\s+/).forEach((e,n)=>{if(0===n)return void(t.url=e);const r=e.slice(0,-1),i=e[e.length-1],a=Number.parseInt(r,10),s=Number.parseFloat(r);if("w"===i&&o.test(r)){if(a<=0)throw new Error("Width descriptor must be greater than zero");t.width=a}else{if("x"!==i||Number.isNaN(s))throw new Error("Invalid srcset descriptor: "+e);if(s<=0)throw new Error("Pixel density descriptor must be greater than zero");t.density=s}if(t.width&&t.density)throw new Error("Image candidate string cannot have both width descriptor and pixel density descriptor")}),t})).sort().filter((e,n)=>JSON.stringify(e)!==JSON.stringify(t[n-1]));var t},t.stringify=e=>[...new Set(e.map(e=>{if(!e.url)throw new Error("URL is required");const t=[e.url];return e.width&&t.push(e.width+"w"),e.density&&t.push(e.density+"x"),t.join(" ")}))].join(", ")},function(e,t,n){"use strict";(function(t){let o=n(465),r=n(466),i=n(669),a=n(292),s=n(1239),c=n(468),l=n(675),u=n(470),d=n(677),h=n(674),p=n(680),m=n(676),g=n(679),f=n(678),_=n(358),b=n(357);function v(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new s(e,v)}v.plugin=function(e,n){function o(...t){let o=n(...t);return o.postcssPlugin=e,o.postcssVersion=(new s).version,o}let r;return console&&console.warn&&(console.warn("postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),t.env.LANG&&t.env.LANG.startsWith("cn")&&console.warn("postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226")),Object.defineProperty(o,"postcss",{get:()=>(r||(r=o()),r)}),o.process=function(e,t,n){return v([o(n)]).process(e,t)},o},v.stringify=c,v.parse=m,v.list=g,v.comment=e=>new u(e),v.atRule=e=>new d(e),v.decl=e=>new r(e),v.rule=e=>new f(e),v.root=e=>new _(e),v.CssSyntaxError=o,v.Declaration=r,v.Container=a,v.Comment=u,v.Warning=l,v.AtRule=d,v.Result=h,v.Input=p,v.Rule=f,v.Root=_,v.Node=b,i.registerPostcss(v),e.exports=v}).call(this,n(161))},,function(e,t,n){"use strict";(function(t){let{dirname:o,resolve:r,relative:i,sep:a}=n(469),{pathToFileURL:s}=n(107),c=n(670);e.exports=class{constructor(e,t,n){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){return this.previousMaps||(this.previousMaps=[],this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}})),this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}clearAnnotation(){if(!1===this.mapOpts.annotation)return;let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}setSourcesContent(){let e={};this.root.walk(t=>{if(t.source){let n=t.source.input.from;n&&!e[n]&&(e[n]=!0,this.map.setSourceContent(this.toUrl(this.path(n)),t.source.input.css))}})}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),r=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new c.SourceMapConsumer(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map(()=>null))):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(r)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}toBase64(e){return t?t.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?o(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o(r(t,this.mapOpts.annotation))),e=i(t,e)}toUrl(e){return"\\"===a&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.mapOpts.absolute?s(e.source.input.from).toString():this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new c.SourceMapGenerator({file:this.outputFile()});let e,t,n=1,o=1;this.stringify(this.root,(r,i,a)=>{if(this.css+=r,i&&"end"!==a&&(i.source&&i.source.start?this.map.addMapping({source:this.sourcePath(i),generated:{line:n,column:o-1},original:{line:i.source.start.line,column:i.source.start.column-1}}):this.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:n,column:o-1}})),e=r.match(/\n/g),e?(n+=e.length,t=r.lastIndexOf("\n"),o=r.length-t):o+=r.length,i&&"start"!==a){let e=i.parent||{raws:{}};("decl"!==i.type||i!==e.last||e.raws.semicolon)&&(i.source&&i.source.end?this.map.addMapping({source:this.sourcePath(i),generated:{line:n,column:o-2},original:{line:i.source.end.line,column:i.source.end.column-1}}):this.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:n,column:o-1}}))}})}generate(){if(this.clearAnnotation(),this.isMap())return this.generateMap();let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}}).call(this,n(31).Buffer)},function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,n){var o=n(291);function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){var t,n,r,i,a,s;t=this._last,n=e,r=t.generatedLine,i=n.generatedLine,a=t.generatedColumn,s=n.generatedColumn,i>r||i==r&&s>=a||o.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(o.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=r},function(e,t,n){var o=n(291),r=n(1228),i=n(673).ArraySet,a=n(672),s=n(1229).quickSort;function c(e,t){var n=e;return"string"==typeof e&&(n=o.parseSourceMapInput(e)),null!=n.sections?new d(n,t):new l(n,t)}function l(e,t){var n=e;"string"==typeof e&&(n=o.parseSourceMapInput(e));var r=o.getArg(n,"version"),a=o.getArg(n,"sources"),s=o.getArg(n,"names",[]),c=o.getArg(n,"sourceRoot",null),l=o.getArg(n,"sourcesContent",null),u=o.getArg(n,"mappings"),d=o.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);c&&(c=o.normalize(c)),a=a.map(String).map(o.normalize).map((function(e){return c&&o.isAbsolute(c)&&o.isAbsolute(e)?o.relative(c,e):e})),this._names=i.fromArray(s.map(String),!0),this._sources=i.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map((function(e){return o.computeSourceURL(c,e,t)})),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=t,this.file=d}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var n=e;"string"==typeof e&&(n=o.parseSourceMapInput(e));var r=o.getArg(n,"version"),a=o.getArg(n,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new i,this._names=new i;var s={line:-1,column:0};this._sections=a.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=o.getArg(e,"offset"),r=o.getArg(n,"line"),i=o.getArg(n,"column");if(r<s.line||r===s.line&&i<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=n,{generatedOffset:{generatedLine:r+1,generatedColumn:i+1},consumer:new c(o.getArg(e,"map"),t)}}))}c.fromSourceMap=function(e,t){return l.fromSourceMap(e,t)},c.prototype._version=3,c.prototype.__generatedMappings=null,Object.defineProperty(c.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),c.prototype.__originalMappings=null,Object.defineProperty(c.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),c.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},c.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},c.GENERATED_ORDER=1,c.ORIGINAL_ORDER=2,c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.prototype.eachMapping=function(e,t,n){var r,i=t||null;switch(n||c.GENERATED_ORDER){case c.GENERATED_ORDER:r=this._generatedMappings;break;case c.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;r.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=o.computeSourceURL(a,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},c.prototype.allGeneratedPositionsFor=function(e){var t=o.getArg(e,"line"),n={source:o.getArg(e,"source"),originalLine:t,originalColumn:o.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",o.compareByOriginalPositions,r.LEAST_UPPER_BOUND);if(a>=0){var s=this._originalMappings[a];if(void 0===e.column)for(var c=s.originalLine;s&&s.originalLine===c;)i.push({line:o.getArg(s,"generatedLine",null),column:o.getArg(s,"generatedColumn",null),lastColumn:o.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var l=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==l;)i.push({line:o.getArg(s,"generatedLine",null),column:o.getArg(s,"generatedColumn",null),lastColumn:o.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return i},t.SourceMapConsumer=c,l.prototype=Object.create(c.prototype),l.prototype.consumer=c,l.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=o.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},l.fromSourceMap=function(e,t){var n=Object.create(l.prototype),r=n._names=i.fromArray(e._names.toArray(),!0),a=n._sources=i.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map((function(e){return o.computeSourceURL(n.sourceRoot,e,t)}));for(var c=e._mappings.toArray().slice(),d=n.__generatedMappings=[],h=n.__originalMappings=[],p=0,m=c.length;p<m;p++){var g=c[p],f=new u;f.generatedLine=g.generatedLine,f.generatedColumn=g.generatedColumn,g.source&&(f.source=a.indexOf(g.source),f.originalLine=g.originalLine,f.originalColumn=g.originalColumn,g.name&&(f.name=r.indexOf(g.name)),h.push(f)),d.push(f)}return s(n.__originalMappings,o.compareByOriginalPositions),n},l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),l.prototype._parseMappings=function(e,t){for(var n,r,i,c,l,d=1,h=0,p=0,m=0,g=0,f=0,_=e.length,b=0,v={},E={},y=[],S=[];b<_;)if(";"===e.charAt(b))d++,b++,h=0;else if(","===e.charAt(b))b++;else{for((n=new u).generatedLine=d,c=b;c<_&&!this._charIsMappingSeparator(e,c);c++);if(i=v[r=e.slice(b,c)])b+=r.length;else{for(i=[];b<c;)a.decode(e,b,E),l=E.value,b=E.rest,i.push(l);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");v[r]=i}n.generatedColumn=h+i[0],h=n.generatedColumn,i.length>1&&(n.source=g+i[1],g+=i[1],n.originalLine=p+i[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=m+i[3],m=n.originalColumn,i.length>4&&(n.name=f+i[4],f+=i[4])),S.push(n),"number"==typeof n.originalLine&&y.push(n)}s(S,o.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,s(y,o.compareByOriginalPositions),this.__originalMappings=y},l.prototype._findMapping=function(e,t,n,o,i,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[o]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[o]);return r.search(e,t,i,a)},l.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},l.prototype.originalPositionFor=function(e){var t={generatedLine:o.getArg(e,"line"),generatedColumn:o.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",o.compareByGeneratedPositionsDeflated,o.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(n>=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var i=o.getArg(r,"source",null);null!==i&&(i=this._sources.at(i),i=o.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=o.getArg(r,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:o.getArg(r,"originalLine",null),column:o.getArg(r,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var r,i=e;if(null!=this.sourceRoot&&(i=o.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(r=o.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!r.path||"/"==r.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=o.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:o.getArg(e,"line"),originalColumn:o.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",o.compareByOriginalPositions,o.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(r>=0){var i=this._originalMappings[r];if(i.source===n.source)return{line:o.getArg(i,"generatedLine",null),column:o.getArg(i,"generatedColumn",null),lastColumn:o.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=l,d.prototype=Object.create(c.prototype),d.prototype.constructor=c,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:o.getArg(e,"line"),generatedColumn:o.getArg(e,"column")},n=r.search(t,this._sections,(function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn})),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var o=this._sections[n].consumer.sourceContentFor(e,!0);if(o)return o}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(o.getArg(e,"source"))){var r=n.consumer.generatedPositionFor(e);if(r)return{line:r.line+(n.generatedOffset.generatedLine-1),column:r.column+(n.generatedOffset.generatedLine===r.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var r=this._sections[n],i=r.consumer._generatedMappings,a=0;a<i.length;a++){var c=i[a],l=r.consumer._sources.at(c.source);l=o.computeSourceURL(r.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=r.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(r.generatedOffset.generatedLine===c.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),"number"==typeof d.originalLine&&this.__originalMappings.push(d)}s(this.__generatedMappings,o.compareByGeneratedPositionsDeflated),s(this.__originalMappings,o.compareByOriginalPositions)},t.IndexedSourceMapConsumer=d},function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,o,r){if(0===n.length)return-1;var i=function e(n,o,r,i,a,s){var c=Math.floor((o-n)/2)+n,l=a(r,i[c],!0);return 0===l?c:l>0?o-c>1?e(c,o,r,i,a,s):s==t.LEAST_UPPER_BOUND?o<i.length?o:-1:c:c-n>1?e(n,c,r,i,a,s):s==t.LEAST_UPPER_BOUND?c:n<0?-1:n}(-1,n.length,e,n,o,r||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===o(n[i],n[i-1],!0);)--i;return i}},function(e,t){function n(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function o(e,t,r,i){if(r<i){var a=r-1;n(e,(u=r,d=i,Math.round(u+Math.random()*(d-u))),i);for(var s=e[i],c=r;c<i;c++)t(e[c],s)<=0&&n(e,a+=1,c);n(e,a+1,c);var l=a+1;o(e,t,r,l-1),o(e,t,l+1,i)}var u,d}t.quickSort=function(e,t){o(e,t,0,e.length-1)}},function(e,t,n){var o=n(671).SourceMapGenerator,r=n(291),i=/(\r?\n)/,a="$$$isSourceNode$$$";function s(e,t,n,o,r){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==r?null:r,this[a]=!0,null!=o&&this.add(o)}s.fromStringWithSourceMap=function(e,t,n){var o=new s,a=e.split(i),c=0,l=function(){return e()+(e()||"");function e(){return c<a.length?a[c++]:void 0}},u=1,d=0,h=null;return t.eachMapping((function(e){if(null!==h){if(!(u<e.generatedLine)){var t=(n=a[c]||"").substr(0,e.generatedColumn-d);return a[c]=n.substr(e.generatedColumn-d),d=e.generatedColumn,p(h,t),void(h=e)}p(h,l()),u++,d=0}for(;u<e.generatedLine;)o.add(l()),u++;if(d<e.generatedColumn){var n=a[c]||"";o.add(n.substr(0,e.generatedColumn)),a[c]=n.substr(e.generatedColumn),d=e.generatedColumn}h=e}),this),c<a.length&&(h&&p(h,l()),o.add(a.splice(c).join(""))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=n&&(e=r.join(n,e)),o.setSourceContent(e,i))})),o;function p(e,t){if(null===e||void 0===e.source)o.add(t);else{var i=n?r.join(n,e.source):e.source;o.add(new s(e.originalLine,e.originalColumn,i,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,o=this.children.length;n<o;n++)(t=this.children[n])[a]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,n,o=this.children.length;if(o>0){for(t=[],n=0;n<o-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[r.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);var o=Object.keys(this.sourceContents);for(t=0,n=o.length;t<n;t++)e(r.fromSetString(o[t]),this.sourceContents[o[t]])},s.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},s.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new o(e),r=!1,i=null,a=null,s=null,c=null;return this.walk((function(e,o){t.code+=e,null!==o.source&&null!==o.line&&null!==o.column?(i===o.source&&a===o.line&&s===o.column&&c===o.name||n.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:t.line,column:t.column},name:o.name}),i=o.source,a=o.line,s=o.column,c=o.name,r=!0):r&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,r=!1);for(var l=0,u=e.length;l<u;l++)10===e.charCodeAt(l)?(t.line++,t.column=0,l+1===u?(i=null,r=!1):r&&n.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:t.line,column:t.column},name:o.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}},t.SourceNode=s},function(e,t,n){"use strict";let o={};e.exports=function(e){o[e]||(o[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},function(e,t,n){"use strict";let o=n(466),r=n(1233),i=n(470),a=n(677),s=n(358),c=n(678);e.exports=class{constructor(e){this.input=e,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=r(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}comment(e){let t=new i;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new c;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,n=null,o=!1,r=null,i=[],a=e[1].startsWith("--"),s=[],c=e;for(;c;){if(n=c[0],s.push(c),"("===n||"["===n)r||(r=c),i.push("("===n?")":"]");else if(a&&o&&"{"===n)r||(r=c),i.push("}");else if(0===i.length){if(";"===n){if(o)return void this.decl(s,a);break}if("{"===n)return void this.rule(s);if("}"===n){this.tokenizer.back(s.pop()),t=!0;break}":"===n&&(o=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(r=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(r),t&&o){for(;s.length&&(c=s[s.length-1][0],"space"===c||"comment"===c);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}rule(e){e.pop();let t=new c;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let n=new o;this.init(n,e[0][2]);let r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]);"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let o=this.stringFrom(e,t);o=this.spacesFromEnd(e)+o," !important"!==o&&(n.raws.important=o);break}if("important"===r[1].toLowerCase()){let o=e.slice(0),r="";for(let e=t;e>0;e--){let t=o[e][0];if(0===r.trim().indexOf("!")&&"space"!==t)break;r=o.pop()[1]+r}0===r.trim().indexOf("!")&&(n.important=!0,n.raws.important=r,e=o)}if("space"!==r[0]&&"comment"!==r[0])break}let s=e.some(e=>"space"!==e[0]&&"comment"!==e[0]);this.raw(n,"value",e),s?n.raws.between+=a:n.value=a+n.value,n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,n,o,r=new a;r.name=e[1].slice(1),""===r.name&&this.unnamedAtrule(r,e),this.init(r,e[2]);let i=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){r.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(c.length>0){for(o=c.length-1,n=c[o];n&&"space"===n[0];)n=c[--o];n&&(r.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}c.push(e)}else c.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(r.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(r,"params",c),i&&(e=c[c.length-1],r.source.end=this.getPosition(e[3]||e[2]),this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),s&&(r.nodes=[],this.current=r)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,n){let o,r,i,a,s=n.length,c="",l=!0,u=/^([#.|])?(\w)+/i;for(let t=0;t<s;t+=1)o=n[t],r=o[0],"comment"!==r||"rule"!==e.type?"comment"===r||"space"===r&&t===s-1?l=!1:c+=o[1]:(a=n[t-1],i=n[t+1],"space"!==a[0]&&"space"!==i[0]&&u.test(a[1])&&u.test(i[1])?c+=o[1]:l=!1);if(!l){let o=n.reduce((e,t)=>e+t[1],"");e.raws[t]={value:c,raw:o}}e[t]=c}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let o=t;o<e.length;o++)n+=e[o][1];return e.splice(t,e.length-t),n}colon(e){let t,n,o,r=0;for(let[i,a]of e.entries()){if(t=a,n=t[0],"("===n&&(r+=1),")"===n&&(r-=1),0===r&&":"===n){if(o){if("word"===o[0]&&"progid"===o[1])continue;return i}this.doubleColon(t)}o=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",e[2])}unknownWord(e){throw this.input.error("Unknown word",e[0][2])}unexpectedClose(e){throw this.input.error("Unexpected }",e[2])}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",e[2])}unnamedAtrule(e,t){throw this.input.error("At-rule without name",t[2])}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,o=0;for(let r=t-1;r>=0&&(n=e[r],"space"===n[0]||(o+=1,2!==o));r--);throw this.input.error("Missed semicolon",n[2])}}},function(e,t,n){"use strict";const o="'".charCodeAt(0),r='"'.charCodeAt(0),i="\\".charCodeAt(0),a="/".charCodeAt(0),s="\n".charCodeAt(0),c=" ".charCodeAt(0),l="\f".charCodeAt(0),u="\t".charCodeAt(0),d="\r".charCodeAt(0),h="[".charCodeAt(0),p="]".charCodeAt(0),m="(".charCodeAt(0),g=")".charCodeAt(0),f="{".charCodeAt(0),_="}".charCodeAt(0),b=";".charCodeAt(0),v="*".charCodeAt(0),E=":".charCodeAt(0),y="@".charCodeAt(0),S=/[\t\n\f\r "#'()/;[\\\]{}]/g,T=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\n"'(/\\]/,C=/[\da-f]/i;e.exports=function(e,t={}){let n,x,O,k,R,A,I,D,N,F,M=e.css.valueOf(),P=t.ignoreErrors,L=M.length,U=0,B=[],j=[];function G(t){throw e.error("Unclosed "+t,U)}return{back:function(e){j.push(e)},nextToken:function(e){if(j.length)return j.pop();if(U>=L)return;let t=!!e&&e.ignoreUnclosed;switch(n=M.charCodeAt(U),n){case s:case c:case u:case d:case l:x=U;do{x+=1,n=M.charCodeAt(x)}while(n===c||n===s||n===u||n===d||n===l);F=["space",M.slice(U,x)],U=x-1;break;case h:case p:case f:case _:case E:case b:case g:{let e=String.fromCharCode(n);F=[e,e,U];break}case m:if(D=B.length?B.pop()[1]:"",N=M.charCodeAt(U+1),"url"===D&&N!==o&&N!==r&&N!==c&&N!==s&&N!==u&&N!==l&&N!==d){x=U;do{if(A=!1,x=M.indexOf(")",x+1),-1===x){if(P||t){x=U;break}G("bracket")}for(I=x;M.charCodeAt(I-1)===i;)I-=1,A=!A}while(A);F=["brackets",M.slice(U,x+1),U,x],U=x}else x=M.indexOf(")",U+1),k=M.slice(U,x+1),-1===x||w.test(k)?F=["(","(",U]:(F=["brackets",k,U,x],U=x);break;case o:case r:O=n===o?"'":'"',x=U;do{if(A=!1,x=M.indexOf(O,x+1),-1===x){if(P||t){x=U+1;break}G("string")}for(I=x;M.charCodeAt(I-1)===i;)I-=1,A=!A}while(A);F=["string",M.slice(U,x+1),U,x],U=x;break;case y:S.lastIndex=U+1,S.test(M),x=0===S.lastIndex?M.length-1:S.lastIndex-2,F=["at-word",M.slice(U,x+1),U,x],U=x;break;case i:for(x=U,R=!0;M.charCodeAt(x+1)===i;)x+=1,R=!R;if(n=M.charCodeAt(x+1),R&&n!==a&&n!==c&&n!==s&&n!==u&&n!==d&&n!==l&&(x+=1,C.test(M.charAt(x)))){for(;C.test(M.charAt(x+1));)x+=1;M.charCodeAt(x+1)===c&&(x+=1)}F=["word",M.slice(U,x+1),U,x],U=x;break;default:n===a&&M.charCodeAt(U+1)===v?(x=M.indexOf("*/",U+2)+1,0===x&&(P||t?x=M.length:G("comment")),F=["comment",M.slice(U,x+1),U,x],U=x):(T.lastIndex=U+1,T.test(M),x=0===T.lastIndex?M.length-1:T.lastIndex-2,F=["word",M.slice(U,x+1),U,x],B.push(F),U=x)}return U++,F},endOfFile:function(){return 0===j.length&&U>=L},position:function(){return U}}}},function(e,t){e.exports={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},customAlphabet:(e,t)=>()=>{let n="",o=t;for(;o--;)n+=e[Math.random()*e.length|0];return n}}},function(e,t,n){"use strict";var o=n(32),r=n(1236);Array.prototype.slice;function i(e,t){if(!(this instanceof i))return"number"==typeof t?new i(e).fromIndex(t):new i(e,t);this.str=e||"",this.lineToIndex=function(e){for(var t=e.split("\n"),n=new Array(t.length),o=0,r=0,i=t.length;r<i;r++)n[r]=o,o+=t[r].length+1;return n}(this.str),t=t||{},this.origin=void 0===t.origin?1:t.origin}e.exports=i,i.prototype.fromIndex=function(e){if(e<0||e>=this.str.length||isNaN(e))return null;var t=function(e,t){if(e>=t[t.length-1])return t.length-1;var n,o=0,r=t.length-2;for(;o<r;)if(e<t[n=o+(r-o>>1)])r=n-1;else{if(!(e>=t[n+1])){o=n;break}o=n+1}return o}(e,this.lineToIndex);return{line:t+this.origin,col:e-this.lineToIndex[t]+this.origin}},i.prototype.toIndex=function(e,t){if(void 0===t)return o(e)&&e.length>=2?this.toIndex(e[0],e[1]):r(e)&&"line"in e&&("col"in e||"column"in e)?this.toIndex(e.line,"col"in e?e.col:e.column):-1;if(isNaN(e)||isNaN(t))return-1;if(e-=this.origin,t-=this.origin,e>=0&&t>=0&&e<this.lineToIndex.length){var n=this.lineToIndex[e];if(t<(e===this.lineToIndex.length-1?this.str.length:this.lineToIndex[e+1])-n)return n+t}return-1}},function(e,t,n){"use strict";var o=n(32);e.exports=function(e){return null!=e&&"object"==typeof e&&!1===o(e)}},function(e,t,n){"use strict";(function(t){let{dirname:o,join:r}=n(469),i=n(670),a=n(1238);e.exports=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=o(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new i.SourceMapConsumer(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1].trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=.*\s*\*\//gm);if(t&&t.length>0){let e=t[t.length-1];e&&(this.annotation=this.getAnnotationURL(e))}}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return n=e.substr(RegExp.lastMatch.length),t?t.from(n,"base64").toString():window.atob(n);var n;let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}loadFile(e){if(this.root=o(e),a.existsSync&&a.existsSync(e))return this.mapFile=e,a.readFileSync(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof i.SourceMapConsumer)return i.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof i.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=r(o(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}}).call(this,n(31).Buffer)},,function(e,t,n){"use strict";let o=n(669),r=n(358);class i{constructor(e=[]){this.version="8.1.1",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0!==this.plugins.length||t.parser!==t.stringifier||t.hideNothingWarning,new o(this,e,t)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}}e.exports=i,r.registerProcessor(i)},function(e,t){e.exports="img/icon-pill-remove.7719165.svg"},function(e,t,n){"use strict";var o=n(141),r=n(106);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1242)),a=r(n(191)),s=o(n(81)),c=r(n(684)),l=r(n(1261)),u=s.forwardRef((function(e,t){return s.createElement(c.default,(0,a.default)({sideCar:l.default,ref:t},e))})),d=c.default.propTypes||{},h=(d.sideCar,(0,i.default)(d,["sideCar"]));u.propTypes=h;var p=u;t.default=p},function(e,t,n){var o=n(332);e.exports=function(e,t){if(null==e)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){var o=n(1244),r=n(1245),i=n(685),a=n(1246);e.exports=function(e,t){return o(e)||r(e,t)||i(e,t)||a()}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(296);t.assignRef=o.assignRef;var r=n(472);t.useCallbackRef=r.useCallbackRef;var i=n(473);t.createCallbackRef=i.createCallbackRef;var a=n(1248);t.mergeRefs=a.mergeRefs;var s=n(1249);t.useMergeRefs=s.useMergeRefs;var c=n(1250);t.useTransformRef=c.useTransformRef;var l=n(1251);t.transformRef=l.transformRef;var u=n(1252);t.refToCallback=u.refToCallback,t.useRefToCallback=u.useRefToCallback},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(473),r=n(296);t.mergeRefs=function(e){return o.createCallbackRef((function(t){return e.forEach((function(e){return r.assignRef(e,t)}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(472),r=n(296);t.useMergeRefs=function(e,t){return o.useCallbackRef(t,(function(t){return e.forEach((function(e){return r.assignRef(e,t)}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(472),r=n(296);t.useTransformRef=function(e,t){return o.useCallbackRef(void 0,(function(n){return r.assignRef(e,t(n))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(296),r=n(473);t.transformRef=function(e,t){return r.createCallbackRef((function(n){return o.assignRef(e,t(n))}))}},function(e,t,n){"use strict";function o(e){return function(t){"function"==typeof e?e(t):e&&(e.current=t)}}Object.defineProperty(t,"__esModule",{value:!0}),t.refToCallback=o;var r=function(){return null},i=new WeakMap;t.useRefToCallback=function(e){return function(e){var t=e||r;if(i.has(t))return i.get(t);var n=o(t);return i.set(t,n),n}(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1254);t.sidecar=o.sidecar;var r=n(688);t.useSidecar=r.useSidecar;var i=n(1257);t.setConfig=i.setConfig;var a=n(1258);t.createMedium=a.createMedium,t.createSidecarMedium=a.createSidecarMedium;var s=n(1259);t.renderCar=s.renderCar;var c=n(1260);t.exportSidecar=c.exportSidecar},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(362),r=n(81),i=n(688);t.sidecar=function(e,t){var n=function(){return t};return function(a){var s=i.useSidecar(e,a.sideCar),c=s[0];return s[1]&&t?n:c?r.createElement(c,o.__assign({},a)):null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1256);t.env={isNode:o.default,forceCache:!1}},function(e,t){e.exports=!1},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config={onError:function(e){return console.error(e)}},t.setConfig=function(e){Object.assign(t.config,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(362);function r(e){return e}function i(e,t){void 0===t&&(t=r);var n=[],o=!1;return{read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var r=t(e,o);return n.push(r),function(){n=n.filter((function(e){return e!==r}))}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}t.createMedium=function(e,t){return void 0===t&&(t=r),i(e,t)},t.createSidecarMedium=function(e){void 0===e&&(e={});var t=i(null);return t.options=o.__assign({async:!0,ssr:!1},e),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(362),r=n(81),i=n(81);t.renderCar=function(e,t,n){function a(t){var n=t.stateRef,a=t.props,s=i.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.useLayoutEffect((function(){n.current(e)})),null}),[]);return r.createElement(e,o.__assign({},a,{children:s}))}void 0===n&&(n={});var s=r.memo((function(e){var t=e.stateRef,n=e.defaultState,o=e.children,a=i.useState(n.current),s=a[0],c=a[1];return r.useEffect((function(){t.current=c}),[]),o.apply(void 0,s)}),(function(){return!0}));return function(e){var n=r.useRef(t(e)),o=r.useRef((function(e){return n.current=e}));return r.createElement(r.Fragment,null,r.createElement(a,{stateRef:o,props:e}),r.createElement(s,{stateRef:o,defaultState:n,children:e.children}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(362),r=n(81),i=function(e){var t=e.sideCar,n=o.__rest(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return r.createElement(i,o.__assign({},n))};i.isSideCarExport=!0,t.exportSidecar=function(e,t){return e.useMedium(t),i}},function(e,t,n){"use strict";var o=n(141),r=n(106);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1262)),a=(o(n(81)),r(n(84)),r(n(1266))),s=o(n(1267)),c=n(363),l=n(474),u=function(){return document&&document.activeElement===document.body||(0,s.focusIsHidden)()},d=null,h=null,p=null,m=!1,g=function(){return!0};function f(e,t,n,o){var r=null,i=e;do{var a=o[i];if(a.guard)a.node.dataset.focusAutoGuard&&(r=a);else{if(!a.lockItem)break;if(i!==e)return;r=null}}while((i+=n)!==t);r&&(r.node.tabIndex=0)}var _=function(e){return e&&"current"in e?e.current:e},b=function(){var e,t=!1;if(d){var n=d,o=n.observed,r=n.persistentFocus,a=n.autoFocus,c=n.shards,l=n.crossFrame,b=o||p&&p.portaledElement,v=document&&document.activeElement;if(b){var E=[b].concat((0,i.default)(c.map(_).filter(Boolean)));if(v&&!function(e){return(d.whiteList||g)(e)}(v)||(r||(l?Boolean(m):"meanwhile"===m)||!u()||!h&&a)&&(!b||(0,s.focusInside)(E)||(e=v,p&&p.portaledElement===e)||(document&&!h&&v&&!a?(v.blur&&v.blur(),document.body.focus()):(t=(0,s.default)(E,h),p={})),m=!1,h=document&&document.activeElement),document){var y=document&&document.activeElement,S=(0,s.getFocusabledIn)(E),T=S.map((function(e){return e.node})).indexOf(y);T>-1&&(S.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),f(T,S.length,1,S),f(T,-1,-1,S))}}}return t},v=function(e){b()&&e&&(e.stopPropagation(),e.preventDefault())},E=function(){return(0,c.deferAction)(b)},y=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(p={observerNode:n,portaledElement:t})},S=function(){m="just",setTimeout((function(){m="meanwhile"}),0)};l.mediumFocus.assignSyncMedium(y),l.mediumBlur.assignMedium(E),l.mediumEffect.assignMedium((function(e){return e({moveFocusInside:s.default,focusInside:s.focusInside})}));var T=(0,a.default)((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!d&&(document.addEventListener("focusin",v,!0),document.addEventListener("focusout",E),window.addEventListener("blur",S));var n=d,o=n&&t&&t.id===n.id;d=t,n&&!o&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(h=null,o&&n.observed===t.observed||t.onActivation(),b(),(0,c.deferAction)(b)):(document.removeEventListener("focusin",v,!0),document.removeEventListener("focusout",E),window.removeEventListener("blur",S),h=null)}))((function(){return null}));t.default=T},function(e,t,n){var o=n(1263),r=n(1264),i=n(685),a=n(1265);e.exports=function(e){return o(e)||r(e)||i(e)||a()}},function(e,t,n){var o=n(686);e.exports=function(e){if(Array.isArray(e))return o(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var r=o(n(411)),i=o(n(168)),a=n(81),s=o(a);e.exports=function(e,t){return function(n){var o,c=[];function l(){o=e(c.map((function(e){return e.props}))),t(o)}var u=function(e){function t(){return e.apply(this,arguments)||this}r(t,e),t.peek=function(){return o};var i=t.prototype;return i.componentDidMount=function(){c.push(this),l()},i.componentDidUpdate=function(){l()},i.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),l()},i.render=function(){return s.createElement(n,this.props)},t}(a.PureComponent);return i(u,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),u}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllAffectedNodes=t.constants=t.getFocusabledIn=t.focusMerge=t.focusIsHidden=t.focusInside=t.tabHook=void 0;var o=d(n(1268)),r=n(689),i=d(r),a=d(n(1274)),s=d(n(1275)),c=d(n(1276)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(195)),u=d(n(475));function d(e){return e&&e.__esModule?e:{default:e}}t.tabHook=o.default,t.focusInside=a.default,t.focusIsHidden=s.default,t.focusMerge=i.default,t.getFocusabledIn=r.getFocusabledIn,t.constants=l,t.getAllAffectedNodes=u.default,t.default=c.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={attach:function(){},detach:function(){}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parentAutofocusables=t.getAllTabbableNodes=t.getTabbableNodes=t.filterFocusable=t.getCommonParent=t.notHiddenInput=t.isVisible=void 0;var o=n(1270),r=n(1271),i=n(211),a=t.isVisible=function e(t){return!t||t===document||t.nodeType===Node.DOCUMENT_NODE||!((n=window.getComputedStyle(t,null))&&n.getPropertyValue&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility")))&&e(t.parentNode&&t.parentNode.nodeType===t.DOCUMENT_FRAGMENT_NODE?t.parentNode.host:t.parentNode);var n},s=t.notHiddenInput=function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))},c=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.push(t),t.parentNode&&e(t.parentNode,n),n},l=(t.getCommonParent=function(e,t){for(var n=c(e),o=c(t),r=0;r<n.length;r+=1){var i=n[r];if(o.indexOf(i)>=0)return i}return!1},t.filterFocusable=function(e){return(0,i.toArray)(e).filter((function(e){return a(e)})).filter((function(e){return s(e)}))});t.getTabbableNodes=function(e,t){return(0,o.orderByTabIndex)(l((0,r.getFocusables)(e,t)),!0,t)},t.getAllTabbableNodes=function(e){return(0,o.orderByTabIndex)(l((0,r.getFocusables)(e)),!1)},t.parentAutofocusables=function(e){return l((0,r.getParentAutofocusables)(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.orderByTabIndex=t.tabSort=void 0;var o=n(211),r=t.tabSort=function(e,t){var n=e.tabIndex-t.tabIndex,o=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||o};t.orderByTabIndex=function(e,t,n){return(0,o.toArray)(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getParentAutofocusables=t.getFocusables=void 0;var o,r=n(1272),i=(o=r)&&o.__esModule?o:{default:o},a=n(211),s=n(195);var c=i.default.join(","),l=c+", [data-focus-guard]",u=t.getFocusables=function(e,t){return e.reduce((function(e,n){return e.concat((0,a.toArray)(n.querySelectorAll(t?l:c)),n.parentNode?(0,a.toArray)(n.parentNode.querySelectorAll(i.default.join(","))).filter((function(e){return e===n})):[])}),[])};t.getParentAutofocusables=function(e){var t=e.querySelectorAll("["+s.FOCUS_AUTO+"]");return(0,a.toArray)(t).map((function(e){return u([e])})).reduce((function(e,t){return e.concat(t)}),[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pickFocusable=void 0;var o=n(690);t.pickFocusable=function(e,t){return e.length>1?e.indexOf((0,o.correctNode)(e[t],e)):t};t.default=function(e){return e[0]&&e.length>1?(0,o.correctNode)(e[0],e):e[0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(475),i=(o=r)&&o.__esModule?o:{default:o},a=n(211);var s=function(e){return e===document.activeElement};t.default=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&(0,i.default)(e).reduce((function(e,n){return e||n.contains(t)||function(e){return!!(0,a.arrayFind)((0,a.toArray)(e.querySelectorAll("iframe")),s)}(n)}),!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(211),r=n(195);t.default=function(){return document&&(0,o.toArray)(document.querySelectorAll("["+r.FOCUS_ALLOW+"]")).some((function(e){return e.contains(document.activeElement)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.focusOn=void 0;var o,r=n(689),i=(o=r)&&o.__esModule?o:{default:o};var a=t.focusOn=function(e){e.focus(),e.contentWindow&&e.contentWindow.focus()},s=0,c=!1;t.default=function(e,t){var n=(0,i.default)(e,t);if(!c&&n){if(s>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),c=!0,void setTimeout((function(){c=!1}),1);s++,a(n.node),s--}}},function(e,t,n){"use strict";var o=n(141),r=n(106);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"FocusLockUI",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AutoFocusInside",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"MoveFocusInside",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"useFocusInside",{enumerable:!0,get:function(){return s.useFocusInside}}),Object.defineProperty(t,"FreeFocusInside",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"InFocusGuard",{enumerable:!0,get:function(){return l.default}}),t.default=void 0;var i=r(n(684)),a=r(n(1278)),s=o(n(1279)),c=r(n(1280)),l=r(n(687)),u=i.default;t.default=u},function(e,t,n){"use strict";var o=n(141),r=n(106);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(191)),a=o(n(81)),s=(r(n(84)),o(n(195))),c=n(363),l=function(e){var t=e.disabled,n=e.children,o=e.className;return a.createElement("div",(0,i.default)({},(0,c.inlineProp)(s.FOCUS_AUTO,!t),{className:o}),n)};l.propTypes={},l.defaultProps={disabled:!1,className:void 0};var u=l;t.default=u},function(e,t,n){"use strict";var o=n(141),r=n(106);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.useFocusInside=void 0;var i=r(n(191)),a=o(n(81)),s=(r(n(84)),o(n(195))),c=n(363),l=n(474),u=function(e){a.useEffect((function(){var t=!0;return l.mediumEffect.useMedium((function(n){var o=e&&e.current;t&&o&&(n.focusInside(o)||n.moveFocusInside(o,null))})),function(){t=!1}}),[e])};function d(e){var t=e.disabled,n=e.className,o=e.children,r=a.useRef(null);return u(t?void 0:r),a.createElement("div",(0,i.default)({},(0,c.inlineProp)(s.FOCUS_AUTO,!t),{ref:r,className:n}),o)}t.useFocusInside=u,d.propTypes={},d.defaultProps={disabled:!1,className:void 0};var h=d;t.default=h},function(e,t,n){"use strict";var o=n(141),r=n(106);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(191)),a=o(n(81)),s=(r(n(84)),o(n(195))),c=n(363),l=function(e){var t=e.children,n=e.className;return a.createElement("div",(0,i.default)({},(0,c.inlineProp)(s.FOCUS_ALLOW,!0),{className:n}),t)};l.propTypes={},l.defaultProps={className:void 0};var u=l;t.default=u},function(e,t){e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,o=String(e),r="",i=!!t&&!!t.extended,a=!!t&&!!t.globstar,s=!1,c=t&&"string"==typeof t.flags?t.flags:"",l=0,u=o.length;l<u;l++)switch(n=o[l]){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+n;break;case"?":if(i){r+=".";break}case"[":case"]":if(i){r+=n;break}case"{":if(i){s=!0,r+="(";break}case"}":if(i){s=!1,r+=")";break}case",":if(s){r+="|";break}r+="\\"+n;break;case"*":for(var d=o[l-1],h=1;"*"===o[l+1];)h++,l++;var p=o[l+1];if(a)h>1&&("/"===d||void 0===d)&&("/"===p||void 0===p)?(r+="((?:[^/]*(?:/|$))*)",l++):r+="([^/]*)";else r+=".*";break;default:r+=n}return c&&~c.indexOf("g")||(r="^"+r+"$"),new RegExp(r,c)}},function(e,t){e.exports="img/rotate-ccw.96d36a7.svg"},function(e,t){e.exports="img/rotate-cw.b6a9518.svg"},function(e,t){e.exports="img/cancel-white.3709ff3.svg"},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(82),r=n.n(o);class i{constructor(e){this.fn=e,r()(this,"marked",!1)}reset(){this.marked=!1}mark(){this.marked=!0}trigger(){this.marked&&(this.reset(),this.fn())}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(695);class r{constructor(){}static forRoom(e){return o.a.instance.getOrCreateChamberForRoom(e)}}},function(e,t){function n(e,t,n,o){var r,i=null==(r=o)||"number"==typeof r||"boolean"==typeof r?o:n(o),a=t.get(i);return void 0===a&&(a=e.call(this,o),t.set(i,a)),a}function o(e,t,n){var o=Array.prototype.slice.call(arguments,3),r=n(o),i=t.get(r);return void 0===i&&(i=e.apply(this,o),t.set(r,i)),i}function r(e,t,n,o,r){return n.bind(t,e,o,r)}function i(e,t){return r(e,this,1===e.length?n:o,t.cache.create(),t.serializer)}function a(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(e){return e in this.cache},s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var c={create:function(){return new s}};e.exports=function(e,t){var n=t&&t.cache?t.cache:c,o=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:o})},e.exports.strategies={variadic:function(e,t){return r(e,this,o,t.cache.create(),t.serializer)},monadic:function(e,t){return r(e,this,n,t.cache.create(),t.serializer)}}},function(e,t,n){"use strict";function o(){window.TouchEvent||(window.TouchEvent=class extends UIEvent{get altKey(){return!1}get changedTouches(){return[]}get ctrlKey(){return!1}get metaKey(){return!1}get shiftKey(){return!1}get targetTouches(){return[]}get touches(){return[]}get rotation(){return 0}get scale(){return 0}constructor(e,t){super(e,t)}})}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(1290);function r(){return o({words:3}).raw.map(e=>e[0].toUpperCase()+e.substring(1).toLowerCase()).join("")}},function(e,t,n){const o=n(105),r=n(1291),i=n(1292);function a(e){var t=function(e){var t=[];o.times(e.words-1,(function(){e.alliterative&&t.length?t.push(o.sample(s(i,t[0].substring(0,1)))):t.push(o.sample(i).toLowerCase())})),e.alliterative?t.push(o.sample(s(r,t[0].substring(0,1)))):t.push(o.sample(r).toLowerCase());e.number&&t.push(o.random(1,9999));return t}(e=o.merge({number:!1,words:2,alliterative:!1},e||{}));return{raw:t,dashed:t.join("-"),spaced:t.join(" ")}}function s(e,t){var n=t.toLowerCase();return o.filter(e,(function(e){return e.substring(0,1).toLowerCase()===n}))}e.exports=a,a.generate=a},function(e,t){e.exports=["account","achiever","acoustics","act","action","activity","actor","addition","adjustment","advertisement","advice","aftermath","afternoon","afterthought","agreement","air","airplane","airport","alarm","amount","amusement","anger","angle","animal","ants","apparatus","apparel","appliance","approval","arch","argument","arithmetic","arm","army","art","attack","attraction","aunt","authority","back","badge","bag","bait","balance","ball","base","baseball","basin","basket","basketball","bat","bath","battle","bead","bear","bed","bedroom","beds","bee","beef","beginner","behavior","belief","believe","bell","bells","berry","bike","bikes","bird","birds","birth","birthday","bit","bite","blade","blood","blow","board","boat","bomb","bone","book","books","boot","border","bottle","boundary","box","brake","branch","brass","breath","brick","bridge","brother","bubble","bucket","building","bulb","burst","bushes","business","butter","button","cabbage","cable","cactus","cake","cakes","calculator","calendar","camera","camp","can","cannon","canvas","cap","caption","car","card","care","carpenter","carriage","cars","cart","cast","cat","cats","cattle","cause","cave","celery","cellar","cemetery","cent","chalk","chance","change","channel","cheese","cherries","cherry","chess","chicken","chickens","chin","church","circle","clam","class","cloth","clover","club","coach","coal","coast","coat","cobweb","coil","collar","color","committee","company","comparison","competition","condition","connection","control","cook","copper","corn","cough","country","cover","cow","cows","crack","cracker","crate","crayon","cream","creator","creature","credit","crib","crime","crook","crow","crowd","crown","cub","cup","current","curtain","curve","cushion","dad","daughter","day","death","debt","decision","deer","degree","design","desire","desk","destruction","detail","development","digestion","dime","dinner","dinosaurs","direction","dirt","discovery","discussion","distance","distribution","division","dock","doctor","dog","dogs","doll","dolls","donkey","door","downtown","drain","drawer","dress","drink","driving","drop","duck","ducks","dust","ear","earth","earthquake","edge","education","effect","egg","eggnog","eggs","elbow","end","engine","error","event","example","exchange","existence","expansion","experience","expert","eye","eyes","face","fact","fairies","fall","fang","farm","fear","feeling","field","finger","fire","fireman","fish","flag","flame","flavor","flesh","flight","flock","floor","flower","flowers","fly","fog","fold","food","foot","force","fork","form","fowl","frame","friction","friend","friends","frog","frogs","front","fruit","fuel","furniture","gate","geese","ghost","giants","giraffe","glass","glove","gold","government","governor","grade","grain","grandfather","grandmother","grape","grass","grip","ground","group","growth","guide","guitar","gun","hair","haircut","hall","hammer","hand","hands","harbor","harmony","hat","head","health","heat","hill","history","hobbies","hole","holiday","home","honey","hook","hope","horn","horse","horses","hose","hospital","hot","hour","house","houses","humor","hydrant","ice","icicle","idea","impulse","income","increase","industry","ink","insect","instrument","insurance","interest","invention","iron","island","jail","jam","jar","jeans","jelly","jellyfish","jewel","join","judge","juice","jump","kettle","key","kick","kiss","kittens","kitty","knee","knife","knot","knowledge","laborer","lace","ladybug","lake","lamp","land","language","laugh","leather","leg","legs","letter","letters","lettuce","level","library","limit","line","linen","lip","liquid","loaf","lock","locket","look","loss","love","low","lumber","lunch","lunchroom","machine","magic","maid","mailbox","man","marble","mark","market","mask","mass","match","meal","measure","meat","meeting","memory","men","metal","mice","middle","milk","mind","mine","minister","mint","minute","mist","mitten","mom","money","month","moon","morning","mother","motion","mountain","mouth","move","muscle","name","nation","neck","need","needle","nerve","nest","night","noise","north","nose","note","notebook","number","nut","oatmeal","observation","ocean","offer","office","oil","orange","oranges","order","oven","page","pail","pan","pancake","paper","parcel","part","partner","party","passenger","payment","peace","pear","pen","pencil","person","pest","pet","pets","pickle","picture","pie","pies","pig","pigs","pin","pipe","pizzas","place","plane","planes","plant","plantation","plants","plastic","plate","play","playground","pleasure","plot","plough","pocket","point","poison","pollution","popcorn","porter","position","pot","potato","powder","power","price","produce","profit","property","prose","protest","pull","pump","punishment","purpose","push","quarter","quartz","queen","question","quicksand","quiet","quill","quilt","quince","quiver","rabbit","rabbits","rail","railway","rain","rainstorm","rake","range","rat","rate","ray","reaction","reading","reason","receipt","recess","record","regret","relation","religion","representative","request","respect","rest","reward","rhythm","rice","riddle","rifle","ring","rings","river","road","robin","rock","rod","roll","roof","room","root","rose","route","rub","rule","run","sack","sail","salt","sand","scale","scarecrow","scarf","scene","scent","school","science","scissors","screw","sea","seashore","seat","secretary","seed","selection","self","sense","servant","shade","shake","shame","shape","sheep","sheet","shelf","ship","shirt","shock","shoe","shoes","shop","show","side","sidewalk","sign","silk","silver","sink","sister","sisters","size","skate","skin","skirt","sky","slave","sleep","sleet","slip","slope","smash","smell","smile","smoke","snail","snails","snake","snakes","sneeze","snow","soap","society","sock","soda","sofa","son","song","songs","sort","sound","soup","space","spade","spark","spiders","sponge","spoon","spot","spring","spy","square","squirrel","stage","stamp","star","start","statement","station","steam","steel","stem","step","stew","stick","sticks","stitch","stocking","stomach","stone","stop","store","story","stove","stranger","straw","stream","street","stretch","string","structure","substance","sugar","suggestion","suit","summer","sun","support","surprise","sweater","swim","swing","system","table","tail","talk","tank","taste","tax","teaching","team","teeth","temper","tendency","tent","territory","test","texture","theory","thing","things","thought","thread","thrill","throat","throne","thumb","thunder","ticket","tiger","time","tin","title","toad","toe","toes","tomatoes","tongue","tooth","toothbrush","toothpaste","top","touch","town","toy","toys","trade","trail","train","trains","tramp","transport","tray","treatment","tree","trees","trick","trip","trouble","trousers","truck","trucks","tub","turkey","turn","twig","twist","umbrella","uncle","underwear","unit","use","vacation","value","van","vase","vegetable","veil","vein","verse","vessel","vest","view","visitor","voice","volcano","volleyball","voyage","walk","wall","war","wash","waste","watch","water","wave","waves","wax","way","wealth","weather","week","weight","wheel","whip","whistle","wilderness","wind","window","wine","wing","winter","wire","wish","wood","wool","word","work","worm","wound","wren","wrench","wrist","writer","writing","yak","yam","yard","yarn","year","yoke","zebra","zephyr","zinc","zipper","zoo"]},function(e,t){e.exports=["abandoned","abashed","aberrant","abhorrent","abiding","abject","ablaze","able","abnormal","aboriginal","abortive","abounding","abrasive","abrupt","absent","absorbed","absorbing","abstracted","absurd","abundant","abusive","acceptable","accessible","accidental","accurate","acidic","acoustic","acrid","actionable","active","actual","adamant","adaptable","addicted","addictive","adept","adhesive","adjoining","adorable","adroit","adventurous","affable","affectionate","afraid","aggressive","agile","agonizing","agreeable","airy","alcoholic","alert","alive","alleged","alluring","aloof","amazing","ambiguous","ambitious","amiable","ample","amused","amusing","ancient","angry","animated","annoyed","annoying","anxious","apathetic","apt","aquatic","ardent","aromatic","arrogant","ashamed","aspiring","assorted","astonishing","astute","attractive","august","auspicious","automatic","available","average","avid","aware","awesome","awful","axiomatic","bad","balmy","barbarous","bashful","bawdy","beautiful","beefy","befitting","belligerent","beneficial","benevolent","bent","berserk","best","better","bewildered","big","billowing","billowy","bitter","bizarre","blessed","bloody","blue","blushing","boiling","bold","boorish","bored","boring","boss","bouncy","boundless","brainy","brash","brave","brawny","breakable","breezy","brief","bright","brisk","broad","broken","bumpy","burly","bustling","busy","cagey","calculating","callous","calm","can","canny","capable","capricious","cared","careful","careless","caring","casual","cautious","ceaseless","celestial","certain","changeable","charming","cheap","cheerful","chemical","chic","chief","childlike","chilly","chivalrous","choice","chosen","chubby","chummy","chunky","civic","civil","clammy","classy","clean","clear","clever","cloistered","close","closed","cloudy","clumsy","cluttered","cogent","coherent","cold","colorful","colossal","combative","comfortable","common","complete","complex","composed","concerned","condemned","confused","conscious","cooing","cool","cooperative","coordinated","cosmic","courageous","cowardly","cozy","crabby","craven","crazy","creepy","crooked","crowded","cruel","cuddly","cultured","cumbersome","curious","curly","curved","curvy","cut","cute","cynical","daffy","daily","dainty","damaged","damaging","damp","dandy","dangerous","dapper","daring","dark","dashing","dazzling","dead","deadpan","deafening","dear","debonair","decent","decisive","decorous","deep","deeply","defeated","defective","defiant","deft","delicate","delicious","delightful","delirious","deluxe","demonic","dependent","depressed","deranged","descriptive","deserted","detailed","determined","devilish","devout","didactic","different","difficult","diligent","direct","direful","dirty","disagreeable","disastrous","discreet","disgusted","disgusting","disillusioned","dispensable","distinct","disturbed","divergent","divine","dizzy","domineering","doted","doting","doubtful","drab","draconian","dramatic","dreamy","dreary","driven","drunk","dry","dull","dusty","dynamic","dysfunctional","eager","early","earsplitting","earthy","easy","eatable","economic","educated","efficacious","efficient","eight","elastic","elated","elderly","electric","elegant","elfin","elite","embarrassed","eminent","empty","enchanted","enchanting","encouraging","end","endurable","energetic","energized","enigmatic","enormous","entertaining","enthusiastic","envious","equable","equal","erect","erratic","ethereal","evanescent","evasive","even","evil","exact","excellent","excited","exciting","exclusive","exotic","expensive","expert","exuberant","exultant","fabulous","faded","faint","fair","faithful","fallacious","false","famed","familiar","famous","fanatical","fancy","fantastic","far","fascinated","fast","fat","faulty","fearful","fearless","feeble","feigned","female","fertile","festive","few","fierce","fiery","filthy","fine","finicky","first","fit","fixed","flagrant","flaky","flashy","flat","flawless","fleet","flimsy","flippant","flowery","flowing","fluent","fluffy","fluttering","flying","foamy","fond","foolish","for","foregoing","forgetful","forlorn","fortunate","fragile","frail","frank","frantic","free","freezing","frequent","fresh","fretful","friendly","frightened","frightening","full","fumbling","fun","functional","funny","furry","furtive","fuscia","future","futuristic","fuzzy","gabby","gainful","gamy","gaping","garrulous","gas","gaudy","general","genial","gentle","giant","giddy","gifted","gigantic","giving","glad","glamorous","gleaming","glib","glistening","glorious","glossy","gnarly","godly","gold","golden","good","goodly","goofy","gorgeous","graceful","grand","grandiose","grateful","gratis","gray","greasy","great","greedy","green","grey","grieving","groovy","grotesque","grouchy","grubby","gruesome","grumpy","guarded","guided","guiltless","gullible","gusty","gutsy","guttural","habitual","half","hallowed","haloed","halting","handsome","handsomely","handy","hanging","hapless","happy","hard","hardy","harmonious","harsh","hateful","heady","healthy","heartbreaking","hearty","heavenly","heavy","hellish","helpful","helpless","heroic","hesitant","hideous","high","highfalutin","hilarious","hip","hissing","historical","holistic","hollow","holy","homeless","homely","honest","honorable","horrible","hospitable","hot","huge","hulking","human","humane","humble","humdrum","humorous","hungry","hunky","hurried","hurt","hushed","husky","hypnotic","hysterical","icky","icy","ideal","idiotic","ignorant","ill","illegal","illustrious","imaginary","immense","imminent","immune","impartial","imperfect","impolite","important","imported","impossible","incandescent","incompetent","inconclusive","incredible","indigo","industrious","inexpensive","infamous","innate","innocent","inquisitive","insidious","instinctive","intelligent","interesting","internal","invincible","irate","irritating","itchy","jaded","jagged","jazzed","jazzy","jealous","jittery","jobless","jolly","jovial","joyful","joyous","jubilant","judicious","juicy","jumbled","jumpy","just","juvenile","kaput","keen","khaki","kind","kindhearted","kindly","kingly","knotty","knowing","knowledgeable","known","labored","lackadaisical","lacking","lame","lamentable","languid","large","last","late","laughable","lavish","lawful","lazy","lean","learned","legal","legit","lethal","level","lewd","light","like","likeable","likely","limber","limitless","limping","literate","little","lively","living","lonely","long","longing","loose","lopsided","loud","lousy","loutish","loved","lovely","loving","low","lowly","loyal","lucid","lucky","ludicrous","lumpy","lush","luxuriant","lying","lyrical","macabre","macho","maddening","madly","magenta","magical","magnificent","main","majestic","major","makeshift","male","malicious","mammoth","maniacal","many","marked","married","marvelous","massive","master","material","materialistic","mature","max","maxed","mean","measly","meaty","medical","meek","mellow","melodic","melted","merciful","mere","merry","messy","mighty","military","milky","mindless","miniature","minor","mint","mirthful","miscreant","misty","mixed","moaning","modern","modest","moldy","momentous","money","moonlit","moral","motionless","mountainous","moving","mucho","muddled","mundane","murky","mushy","mute","mutual","mysterious","naive","nappy","narrow","nasty","native","natural","naughty","nauseating","near","neat","nebulous","necessary","needed","needless","needy","neighborly","nervous","new","next","nice","nifty","nimble","nippy","noble","noiseless","noisy","nonchalant","nondescript","nonstop","normal","nostalgic","nosy","noted","novel","noxious","null","numberless","numero","numerous","nutritious","nutty","oafish","obedient","obeisant","obese","obnoxious","obscene","obsequious","observant","obsolete","obtainable","oceanic","odd","offbeat","okay","old","omniscient","onerous","open","opposite","optimal","orange","ordinary","organic","ossified","outgoing","outrageous","outstanding","oval","overconfident","overjoyed","overrated","overt","overwrought","pacific","painful","painstaking","pale","paltry","panicky","panoramic","parallel","parched","parsimonious","past","pastoral","pathetic","peaceful","peachy","penitent","peppy","perfect","periodic","permissible","perpetual","petite","phobic","physical","picayune","pink","piquant","pithy","placid","plain","plant","plastic","plausible","pleasant","plucky","plum","poetic","pointless","poised","polite","political","poor","posh","possessive","possible","potent","powerful","precious","premium","present","pretty","previous","pricey","prickly","prime","primo","private","prized","pro","probable","productive","profuse","prompt","proper","protective","proud","psychedelic","psychotic","public","puffy","pumped","punchy","puny","pure","purple","purring","pushy","puzzled","puzzling","quack","quaint","quarrelsome","questionable","quick","quickest","quiet","quirky","quixotic","quizzical","rabid","racial","rad","radioactive","ragged","rainy","rambunctious","rampant","rapid","rare","raspy","ratty","reach","ready","real","rebel","receptive","recondite","red","redundant","reflective","regal","regular","relieved","remarkable","reminiscent","repulsive","resilient","resolute","resonant","responsible","rhetorical","rich","right","righteous","rightful","rigid","ripe","ritzy","roasted","robust","romantic","roomy","rooted","rosy","rotten","rough","round","royal","ruddy","rude","rugged","rural","rustic","ruthless","sable","sad","safe","salty","same","sassy","satisfying","saucy","savory","savvy","scandalous","scarce","scared","scary","scattered","scenic","scientific","scintillating","scrawny","screeching","second","secret","secretive","sedate","seemly","selective","selfish","sensitive","separate","serene","serious","shaggy","shaky","shallow","sharp","shiny","shivering","shocking","short","showy","shrewd","shrill","shut","shy","sick","silent","silky","silly","simple","simplistic","sincere","skillful","skinny","sleek","sleepy","slick","slim","slimy","slippery","sloppy","slow","small","smart","smelly","smiley","smiling","smoggy","smooth","snappy","snazzy","sneaky","snobbish","snotty","snowy","snugly","social","soft","soggy","sole","solid","solitary","somber","sophisticated","sordid","sore","sound","sour","spacial","sparkling","special","spectacular","spicy","spiffy","spiky","spiritual","spiteful","splendid","spooky","spotless","spotted","spotty","spry","spurious","squalid","square","squealing","squeamish","stable","staking","stale","standing","star","stark","statuesque","steadfast","steady","steep","stereotyped","sticky","stiff","stimulating","stingy","stoic","stormy","straight","strange","striped","strong","stunning","stupendous","stupid","sturdy","suave","subdued","subsequent","substantial","subtle","successful","succinct","sudden","sulky","sunny","sunset","super","superb","superficial","supreme","sure","swank","swanky","sweet","swell","sweltering","swift","symptomatic","synonymous","taboo","tacit","tacky","talented","tall","tame","tan","tangible","tangy","tart","tasteful","tasteless","tasty","tawdry","teal","tearful","tedious","teeny","telling","temporary","tender","tense","tenuous","terrible","terrific","tested","testy","thankful","therapeutic","thick","thin","thinkable","third","thirsty","thoughtful","thoughtless","threatening","thriving","thundering","tidy","tight","tightfisted","timely","tiny","tired","tiresome","toothsome","top","tops","torpid","tough","touted","towering","tranquil","trashy","tremendous","tricky","trim","trite","tropical","troubled","truculent","true","trusty","truthful","try","typical","ubiquitous","ugliest","ugly","ultra","unable","unaccountable","unadvised","unarmed","unbecoming","unbiased","uncovered","understood","undesirable","undisturbed","unequal","unequaled","uneven","unhealthy","uninterested","unique","united","unkempt","unknown","unnatural","unruly","unsightly","unsuitable","untidy","unused","unusual","unwavering","unwieldy","unwritten","upbeat","uplifting","uppity","upset","uptight","urbane","usable","used","useful","useless","utmost","utopian","utter","uttermost","vacuous","vagabond","vague","valid","valuable","various","vast","vengeful","venomous","verdant","versed","vestal","viable","victorious","vigorous","violent","violet","vital","vivacious","vivid","vocal","vogue","voiceless","volatile","voracious","vulgar","wacky","waggish","waiting","wakeful","wandering","wanted","wanting","warlike","warm","wary","wasteful","watery","weak","wealthy","weary","wet","whimsical","whispering","whole","wholesale","wicked","wide","wiggly","wild","willing","windy","winged","wired","wiry","wise","wistful","witty","woebegone","womanly","wonderful","wooden","woozy","workable","worried","worthless","worthy","wrathful","wretched","wrong","wry","xenophobic","yielding","young","youthful","yummy","zany","zealous","zesty","zippy","zonked"]},function(e,t,n){"use strict";var o=n(1294),r=n(1295),i=n(712);e.exports={formats:i,parse:r,stringify:o}},function(e,t,n){"use strict";var o=n(480),r=n(712),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=r.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:r.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,r,i,a,c,u,d,p,m,g,f,_){var b,v=t;if("function"==typeof u?v=u(n,v):v instanceof Date?v=m(v):"comma"===r&&s(v)&&(v=o.maybeMap(v,(function(e){return e instanceof Date?m(e):e})).join(",")),null===v){if(i)return c&&!f?c(n,h.encoder,_,"key"):n;v=""}if("string"==typeof(b=v)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||o.isBuffer(v))return c?[g(f?n:c(n,h.encoder,_,"key"))+"="+g(c(v,h.encoder,_,"value"))]:[g(n)+"="+g(String(v))];var E,y=[];if(void 0===v)return y;if(s(u))E=u;else{var S=Object.keys(v);E=d?S.sort(d):S}for(var T=0;T<E.length;++T){var w=E[T],C=v[w];if(!a||null!==C){var x=s(v)?"function"==typeof r?r(n,w):n:n+(p?"."+w:"["+w+"]");l(y,e(C,x,r,i,a,c,u,d,p,m,g,f,_))}}return y};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return h;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=r.default;if(void 0!==e.format){if(!i.call(r.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=r.formatters[n],a=h.filter;return("function"==typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:a,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):s(c.filter)&&(n=c.filter);var u,d=[];if("object"!=typeof o||null===o)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[u];n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var g=0;g<n.length;++g){var f=n[g];c.skipNulls&&null===o[f]||l(d,p(o[f],f,m,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var _=d.join(c.delimiter),b=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),_.length>0?b+_:""}},function(e,t,n){"use strict";var o=n(480),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),l=s?i.slice(0,s.index):i,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var d=0;n.depth>0&&null!==(s=a.exec(i))&&d<n.depth;){if(d+=1,!n.plainObjects&&r.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),function(e,t,n,o){for(var r=o?t:c(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=r:a[l]=r:a={0:r}}r=a}return r}(u,t,n,o)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,h=u.split(t.delimiter,d),p=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<h.length;++n)0===h[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[n]?m="utf-8":"utf8=%26%2310003%3B"===h[n]&&(m="iso-8859-1"),p=n,n=h.length);for(n=0;n<h.length;++n)if(n!==p){var g,f,_=h[n],b=_.indexOf("]="),v=-1===b?_.indexOf("="):b+1;-1===v?(g=t.decoder(_,a.decoder,m,"key"),f=t.strictNullHandling?null:""):(g=t.decoder(_.slice(0,v),a.decoder,m,"key"),f=o.maybeMap(c(_.slice(v+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),f&&t.interpretNumericEntities&&"iso-8859-1"===m&&(f=s(f)),_.indexOf("[]=")>-1&&(f=i(f)?[f]:f),r.call(l,g)?l[g]=o.combine(l[g],f):l[g]=f}return l}(e,n):e,d=n.plainObjects?Object.create(null):{},h=Object.keys(u),p=0;p<h.length;++p){var m=h[p],g=l(m,u[m],n,"string"==typeof e);d=o.merge(d,g,n)}return o.compact(d)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(82),r=n.n(o),i=n(104),a=n(86),s=n(96),c=n(130),l=n(88),u=n(6),d=n(95);class h extends u.EventEmitter{constructor(){super(),r()(this,"onSync",async(e,t,n)=>{const o=i.a.get().getEventIndexingManager();if("PREPARED"===t&&"SYNCING"===e){return await o.isEventIndexEmpty()&&await this.addInitialCheckpoints(),void this.startCrawler()}"SYNCING"!==t||"SYNCING"!==e||await o.commitLiveEvents()}),r()(this,"onRoomTimeline",async(e,t,n,o,r)=>{if(a.a.get().isRoomEncrypted(t.roomId)&&!n&&r&&r.liveEvent&&!e.isRedacted())if(e.isBeingDecrypted()){const t=e.getId();this.liveEventsForIndex.add(t)}else await this.addLiveEventToIndex(e)}),r()(this,"onRoomStateEvent",async(e,t)=>{a.a.get().isRoomEncrypted(t.roomId)&&("m.room.encryption"!==e.getType()||await this.isRoomIndexed(t.roomId)||(console.log("EventIndex: Adding a checkpoint for a newly encrypted room",t.roomId),this.addRoomCheckpoint(t.roomId,!0)))}),r()(this,"onEventDecrypted",async(e,t)=>{const n=e.getId();this.liveEventsForIndex.delete(n)&&(t||await this.addLiveEventToIndex(e))}),r()(this,"onRedaction",async(e,t)=>{if(!a.a.get().isRoomEncrypted(t.roomId))return;const n=i.a.get().getEventIndexingManager();try{await n.deleteEvent(e.getAssociatedId())}catch(e){console.log("EventIndex: Error deleting event from index",e)}}),r()(this,"onTimelineReset",async(e,t,n)=>{null!==e&&a.a.get().isRoomEncrypted(e.roomId)&&(console.log("EventIndex: Adding a checkpoint because of a limited timeline",e.roomId),this.addRoomCheckpoint(e.roomId,!1))}),this.crawlerCheckpoints=[],this._crawlerIdleTime=5e3,this._eventsPerCrawl=100,this._crawler=null,this._currentCheckpoint=null,this.liveEventsForIndex=new Set}async init(){const e=i.a.get().getEventIndexingManager();this.crawlerCheckpoints=await e.loadCheckpoints(),console.log("EventIndex: Loaded checkpoints",this.crawlerCheckpoints),this.registerListeners()}registerListeners(){const e=a.a.get();e.on("sync",this.onSync),e.on("Room.timeline",this.onRoomTimeline),e.on("Event.decrypted",this.onEventDecrypted),e.on("Room.timelineReset",this.onTimelineReset),e.on("Room.redaction",this.onRedaction),e.on("RoomState.events",this.onRoomStateEvent)}removeListeners(){const e=a.a.get();null!==e&&(e.removeListener("sync",this.onSync),e.removeListener("Room.timeline",this.onRoomTimeline),e.removeListener("Event.decrypted",this.onEventDecrypted),e.removeListener("Room.timelineReset",this.onTimelineReset),e.removeListener("Room.redaction",this.onRedaction),e.removeListener("RoomState.events",this.onRoomStateEvent))}async addInitialCheckpoints(){const e=i.a.get().getEventIndexingManager(),t=a.a.get(),n=t.getRooms().filter(e=>t.isRoomEncrypted(e.roomId));console.log("EventIndex: Adding initial crawler checkpoints"),await Promise.all(n.map(async t=>{const n=t.getLiveTimeline().getPaginationToken("b"),o={roomId:t.roomId,token:n,direction:"b",fullCrawl:!0},r={roomId:t.roomId,token:n,direction:"f"};try{o.token&&(await e.addCrawlerCheckpoint(o),this.crawlerCheckpoints.push(o)),r.token&&(await e.addCrawlerCheckpoint(r),this.crawlerCheckpoints.push(r))}catch(e){console.log("EventIndex: Error adding initial checkpoints for room",t.roomId,o,r,e)}}))}isValidEvent(e){const t=["m.room.message","m.room.name","m.room.topic"].includes(e.getType())&&!e.isRedacted()&&!e.isDecryptionFailure();let n=!0,o=!0;if("m.room.message"!==e.getType()||e.isRedacted())"m.room.topic"!==e.getType()||e.isRedacted()?"m.room.name"!==e.getType()||e.isRedacted()||e.getContent().name||(o=!1):e.getContent().topic||(o=!1);else{const t=e.getContent().msgtype;n=!!t&&!t.startsWith("m.key.verification"),e.getContent().body||(o=!1)}return t&&n&&o}eventToJson(e){const t=e.toJSON(),n=e.isEncrypted()?t.decrypted:t;return e.isEncrypted()?(n.curve25519Key=e.getSenderKey(),n.ed25519Key=e.getClaimedEd25519Key(),n.algorithm=e.getWireContent().algorithm,n.forwardingCurve25519KeyChain=e.getForwardingCurve25519KeyChain()):(delete n.curve25519Key,delete n.ed25519Key,delete n.algorithm,delete n.forwardingCurve25519KeyChain),n}async addLiveEventToIndex(e){const t=i.a.get().getEventIndexingManager();if(!this.isValidEvent(e))return;const n=this.eventToJson(e),o={displayname:e.sender.rawDisplayName,avatar_url:e.sender.getMxcAvatarUrl()};await t.addEventToIndex(n,o)}emitNewCheckpoint(){this.emit("changedCheckpoint",this.currentRoom())}async addEventsFromLiveTimeline(e){const t=e.getEvents();for(let e=0;e<t.length;e++){const n=t[e];await this.addLiveEventToIndex(n)}}async addRoomCheckpoint(e,t=!1){const n=i.a.get().getEventIndexingManager(),o=a.a.get().getRoom(e);if(!o)return;const r=o.getLiveTimeline(),s=r.getPaginationToken("b");if(!s)return void await this.addEventsFromLiveTimeline(r);const c={roomId:o.roomId,token:s,fullCrawl:t,direction:"b"};console.log("EventIndex: Adding checkpoint",c);try{await n.addCrawlerCheckpoint(c)}catch(e){console.log("EventIndex: Error adding new checkpoint for room",o.roomId,c,e)}this.crawlerCheckpoints.push(c)}async crawlerFunc(){let e=!1;const t=a.a.get(),n=i.a.get().getEventIndexingManager();this._crawler={},this._crawler.cancel=()=>{e=!0};let o=!1;for(;!e;){let r=l.a.getValueAt(d.a.DEVICE,"crawlerSleepTime");if(r=Math.max(r,100),o&&(r=this._crawlerIdleTime),null!==this._currentCheckpoint&&(this._currentCheckpoint=null,this.emitNewCheckpoint()),await Object(c.d)(r),e)break;const i=this.crawlerCheckpoints.shift();if(void 0===i){o=!0;continue}this._currentCheckpoint=i,this.emitNewCheckpoint(),o=!1;const a=t.getEventMapper({preventReEmit:!0});let s;try{s=await t._createMessagesRequest(i.roomId,i.token,this._eventsPerCrawl,i.direction)}catch(e){if(403===e.httpStatus){console.log("EventIndex: Removing checkpoint as we don't have ","permissions to fetch messages from this room.",i);try{await n.removeCrawlerCheckpoint(i)}catch(e){console.log("EventIndex: Error removing checkpoint",i,e)}continue}console.log("EventIndex: Error crawling using checkpoint:",i,",",e),this.crawlerCheckpoints.push(i);continue}if(e){this.crawlerCheckpoints.push(i);break}if(0===s.chunk.length){console.log("EventIndex: Done with the checkpoint",i);try{await n.removeCrawlerCheckpoint(i)}catch(e){console.log("EventIndex: Error removing checkpoint",i,e)}continue}const u=s.chunk.map(a);let h=[];void 0!==s.state&&(h=s.state.map(a));const p={};h.forEach(e=>{e.event.content&&"join"===e.event.content.membership&&(p[e.event.sender]={displayname:e.event.content.displayname,avatar_url:e.event.content.avatar_url})});const m=[];u.forEach(e=>{(e.isBeingDecrypted()||e.isDecryptionFailure())&&m.push(e._decryptionPromise)}),await Promise.all(m);const g=u.filter(this.isValidEvent),f=u.filter(e=>"m.room.redaction"===e.getType()),_=g.map(e=>{const t=this.eventToJson(e);let n={};t.sender in p&&(n=p[t.sender]);return{event:t,profile:n}});let b;s.end&&(b={roomId:i.roomId,token:s.end,fullCrawl:i.fullCrawl,direction:i.direction});try{for(let e=0;e<f.length;e++){const t=f[e],o=t.getAssociatedId();o?await n.deleteEvent(o):console.warn("EventIndex: Redaction event doesn't contain a valid associated event id",t)}const e=await n.addHistoricEvents(_,b,i);if(!b){console.log("EventIndex: The server didn't return a valid ","new checkpoint, not continuing the crawl.",i);continue}!0===e&&!0!==b.fullCrawl?(console.log("EventIndex: Checkpoint had already all events","added, stopping the crawl",i),await n.removeCrawlerCheckpoint(b)):(!0===e&&console.log("EventIndex: Checkpoint had already all events","added, but continuing due to a full crawl",i),this.crawlerCheckpoints.push(b))}catch(e){console.log("EventIndex: Error durring a crawl",e),this.crawlerCheckpoints.push(i)}}this._crawler=null}startCrawler(){null===this._crawler&&this.crawlerFunc()}stopCrawler(){null!==this._crawler&&this._crawler.cancel()}async close(){const e=i.a.get().getEventIndexingManager();this.removeListeners(),this.stopCrawler(),await e.closeEventIndex()}async search(e){return i.a.get().getEventIndexingManager().searchEventIndex(e)}async loadFileEvents(e,t=10,n=null,o=s.c.BACKWARDS){const r=a.a.get(),c=i.a.get().getEventIndexingManager(),l={roomId:e.roomId,limit:t};let u;n&&(l.fromEvent=n,l.direction=o);try{u=await c.loadFileEvents(l)}catch(e){return console.log("EventIndex: Error getting file events",e),[]}const d=r.getEventMapper();return u.map(t=>{const n=d(t.event),o=new s.l(e.roomId,n.getSender());o.name=t.profile.displayname+" ("+n.getSender()+")";const r=d({content:{membership:"join",avatar_url:t.profile.avatar_url,displayname:t.profile.displayname},type:"m.room.member",event_id:n.getId()+":eventIndex",room_id:n.getRoomId(),sender:n.getSender(),origin_server_ts:n.getTs(),state_key:n.getSender()});return o.events.member=r,n.sender=o,n})}async populateFileTimeline(e,t,n,o=10,r=null,i=s.c.BACKWARDS){const a=await this.loadFileEvents(n,o,r,i);null===r&&(a.reverse(),i=i==s.c.BACKWARDS?s.c.FORWARDS:s.c.BACKWARDS),a.forEach(n=>{e.eventIdToTimeline(n.getId())||e.addEventToTimeline(n,t,i==s.c.BACKWARDS)});let c=!1,l="";return a.length>0&&(l=a[a.length-1].getId(),c=!0),console.log("EventIndex: Populating file panel with",a.length,"events and setting the pagination token to",l),t.setPaginationToken(l,s.c.BACKWARDS),c}paginateTimelineWindow(e,t,n,o){const r=t.getTimelineIndex(n);if(!r)return Promise.resolve(!1);if(r.pendingPaginate)return r.pendingPaginate;if(t.extend(n,o))return Promise.resolve(!0);const i=(async(e,t,n,o,r)=>{const i=e._timelineSet,a=t.timeline.getPaginationToken(o),s=await this.populateFileTimeline(i,t.timeline,n,r,a,o);return t.pendingPaginate=null,e.extend(o,r),s})(t,r,e,n,o);return r.pendingPaginate=i,i}async getStats(){return i.a.get().getEventIndexingManager().getStats()}async isRoomIndexed(e){return i.a.get().getEventIndexingManager().isRoomIndexed(e)}currentRoom(){if(null===this._currentCheckpoint&&0===this.crawlerCheckpoints.length)return null;const e=a.a.get();return null!==this._currentCheckpoint?e.getRoom(this._currentCheckpoint.roomId):e.getRoom(this.crawlerCheckpoints[0].roomId)}crawlingRooms(){const e=new Set,t=new Set;this.crawlerCheckpoints.forEach((e,n)=>{t.add(e.roomId)}),null!==this._currentCheckpoint&&t.add(this._currentCheckpoint.roomId);const n=a.a.get();return n.getRooms().filter(e=>n.isRoomEncrypted(e.roomId)).forEach((t,n)=>{e.add(t.roomId)}),{crawlingRooms:t,totalRooms:e}}}},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(86),a=n(87),s=n(250);var c;!function(e){e.Online="online",e.Offline="offline",e.Unavailable="unavailable"}(c||(c={}));t.a=new class{constructor(){r()(this,"unavailableTimer",null),r()(this,"dispatcherRef",null),r()(this,"state",null),r()(this,"onAction",e=>{"user_activity"===e.action&&(this.setState(c.Online),this.unavailableTimer.restart())})}async start(){for(this.unavailableTimer=new s.a(18e4),this.dispatcherRef=a.a.register(this.onAction);this.unavailableTimer;)try{await this.unavailableTimer.finished(),this.setState(c.Unavailable)}catch(e){}}stop(){this.dispatcherRef&&(a.a.unregister(this.dispatcherRef),this.dispatcherRef=null),this.unavailableTimer&&(this.unavailableTimer.abort(),this.unavailableTimer=null)}getState(){return this.state}async setState(e){if(e===this.state)return;const t=this.state;if(this.state=e,!i.a.get().isGuest())try{await i.a.get().setPresence(this.state),console.info("Presence: %s",e)}catch(e){console.error("Failed to set presence: %s",e),this.state=t}}}},function(e,t){e.exports="img/e2e/verified.5be6c9f.svg"},function(e,t,n){!function(){"use strict";function e(e){var t=!0,n=!1,o=null,r={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function i(e){return!!(e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList)}function a(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function s(e){t=!1}function c(){document.addEventListener("mousemove",l),document.addEventListener("mousedown",l),document.addEventListener("mouseup",l),document.addEventListener("pointermove",l),document.addEventListener("pointerdown",l),document.addEventListener("pointerup",l),document.addEventListener("touchmove",l),document.addEventListener("touchstart",l),document.addEventListener("touchend",l)}function l(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(t=!1,document.removeEventListener("mousemove",l),document.removeEventListener("mousedown",l),document.removeEventListener("mouseup",l),document.removeEventListener("pointermove",l),document.removeEventListener("pointerdown",l),document.removeEventListener("pointerup",l),document.removeEventListener("touchmove",l),document.removeEventListener("touchstart",l),document.removeEventListener("touchend",l))}document.addEventListener("keydown",(function(n){n.metaKey||n.altKey||n.ctrlKey||(i(e.activeElement)&&a(e.activeElement),t=!0)}),!0),document.addEventListener("mousedown",s,!0),document.addEventListener("pointerdown",s,!0),document.addEventListener("touchstart",s,!0),document.addEventListener("visibilitychange",(function(e){"hidden"===document.visibilityState&&(n&&(t=!0),c())}),!0),c(),e.addEventListener("focus",(function(e){var n,o,s;i(e.target)&&(t||(n=e.target,o=n.type,"INPUT"===(s=n.tagName)&&r[o]&&!n.readOnly||"TEXTAREA"===s&&!n.readOnly||n.isContentEditable))&&a(e.target)}),!0),e.addEventListener("blur",(function(e){var t;i(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(o),o=window.setTimeout((function(){n=!1}),100),(t=e.target).hasAttribute("data-focus-visible-added")&&(t.classList.remove("focus-visible"),t.removeAttribute("data-focus-visible-added")))}),!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var t;window.applyFocusVisiblePolyfill=e;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(t=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}"undefined"!=typeof document&&e(document)}()},function(e,t,n){var o;o=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var e=document.documentElement,t=null,n="initial",o=n,r=Date.now(),i="false",a=["button","input","select","textarea"],s=[],c=[16,17,18,91,93],l=[],u={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},d=!1,h={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},m=!1;try{var g=Object.defineProperty({},"passive",{get:function(){m=!0}});window.addEventListener("test",null,g)}catch(e){}var f=function(){var e=!!m&&{passive:!0};document.addEventListener("DOMContentLoaded",_),window.PointerEvent?(window.addEventListener("pointerdown",b),window.addEventListener("pointermove",E)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",b),window.addEventListener("MSPointerMove",E)):(window.addEventListener("mousedown",b),window.addEventListener("mousemove",E),"ontouchstart"in window&&(window.addEventListener("touchstart",b,e),window.addEventListener("touchend",b))),window.addEventListener(x(),E,e),window.addEventListener("keydown",b),window.addEventListener("keyup",b),window.addEventListener("focusin",y),window.addEventListener("focusout",S)},_=function(){if(i=!(e.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(o=window.sessionStorage.getItem("what-intent"))}catch(e){}v("input"),v("intent")},b=function(e){var t=e.which,r=u[e.type];"pointer"===r&&(r=w(e));var i=!l.length&&-1===c.indexOf(t),s=l.length&&-1!==l.indexOf(t),d="keyboard"===r&&t&&(i||s)||"mouse"===r||"touch"===r;if(C(r)&&(d=!1),d&&n!==r&&(T("input",n=r),v("input")),d&&o!==r){var h=document.activeElement;h&&h.nodeName&&(-1===a.indexOf(h.nodeName.toLowerCase())||"button"===h.nodeName.toLowerCase()&&!R(h,"form"))&&(T("intent",o=r),v("intent"))}},v=function(t){e.setAttribute("data-what"+t,"input"===t?n:o),O(t)},E=function(e){var t=u[e.type];"pointer"===t&&(t=w(e)),k(e),(!d&&!C(t)||d&&"wheel"===e.type||"mousewheel"===e.type||"DOMMouseScroll"===e.type)&&o!==t&&(T("intent",o=t),v("intent"))},y=function(n){n.target.nodeName?(t=n.target.nodeName.toLowerCase(),e.setAttribute("data-whatelement",t),n.target.classList&&n.target.classList.length&&e.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):S()},S=function(){t=null,e.removeAttribute("data-whatelement"),e.removeAttribute("data-whatclasses")},T=function(e,t){if(i)try{window.sessionStorage.setItem("what-"+e,t)}catch(e){}},w=function(e){return"number"==typeof e.pointerType?p[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},C=function(e){var t=Date.now(),o="mouse"===e&&"touch"===n&&t-r<200;return r=t,o},x=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},O=function(e){for(var t=0,r=s.length;t<r;t++)s[t].type===e&&s[t].fn.call(void 0,"input"===e?n:o)},k=function(e){h.x!==e.screenX||h.y!==e.screenY?(d=!1,h.x=e.screenX,h.y=e.screenY):d=!0},R=function(e,t){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(u[x()]="mouse",f()),{ask:function(e){return"intent"===e?o:n},element:function(){return t},ignoreKeys:function(e){c=e},specificKeys:function(e){l=e},registerOnChange:function(e,t){s.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=function(e){for(var t=0,n=s.length;t<n;t++)if(s[t].fn===e)return t}(e);(t||0===t)&&s.splice(t,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])},e.exports=o()},function(e,t,n){"use strict";t.a={}},function(e,t,n){"use strict";var o={};(0,n(198).assign)(o,n(1303),n(1306),n(736)),e.exports=o},function(e,t,n){"use strict";var o=n(1304),r=n(198),i=n(734),a=n(491),s=n(735),c=Object.prototype.toString;function l(e){if(!(this instanceof l))return new l(e);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=o.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&o.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=o.deflateSetDictionary(this.strm,u)))throw new Error(a[n]);this._dict_set=!0}}function u(e,t){var n=new l(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}l.prototype.push=function(e,t){var n,a,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=i.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new r.Buf8(l),s.next_out=0,s.avail_out=l),1!==(n=o.deflate(s,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(r.shrinkBuf(s.output,s.next_out))):this.onData(r.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=o.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),s.avail_out=0,!0)},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=l,t.deflate=u,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},function(e,t,n){"use strict";var o,r=n(198),i=n(1305),a=n(732),s=n(733),c=n(491);function l(e,t){return e.msg=c[t],t}function u(e){return(e<<1)-(e>4?9:0)}function d(e){for(var t=e.length;--t>=0;)e[t]=0}function h(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(r.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function p(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,h(e.strm)}function m(e,t){e.pending_buf[e.pending++]=t}function g(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function f(e,t){var n,o,r=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,l=e.window,u=e.w_mask,d=e.prev,h=e.strstart+258,p=l[i+a-1],m=l[i+a];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+a]===m&&l[n+a-1]===p&&l[n]===l[i]&&l[++n]===l[i+1]){i+=2,n++;do{}while(l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&i<h);if(o=258-(h-i),i=h-258,o>a){if(e.match_start=t,a=o,o>=s)break;p=l[i+a-1],m=l[i+a]}}}while((t=d[t&u])>c&&0!=--r);return a<=e.lookahead?a:e.lookahead}function _(e){var t,n,o,i,c,l,u,d,h,p,m=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-262)){r.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;do{o=e.head[--t],e.head[t]=o>=m?o-m:0}while(--n);t=n=m;do{o=e.prev[--t],e.prev[t]=o>=m?o-m:0}while(--n);i+=m}if(0===e.strm.avail_in)break;if(l=e.strm,u=e.window,d=e.strstart+e.lookahead,h=i,p=void 0,(p=l.avail_in)>h&&(p=h),n=0===p?0:(l.avail_in-=p,r.arraySet(u,l.input,l.next_in,p,d),1===l.state.wrap?l.adler=a(l.adler,u,p,d):2===l.state.wrap&&(l.adler=s(l.adler,u,p,d)),l.next_in+=p,l.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=3)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+3-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function b(e,t){for(var n,o;;){if(e.lookahead<262){if(_(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=f(e,n)),e.match_length>=3)if(o=i._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else o=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(o&&(p(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(p(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(p(e,!1),0===e.strm.avail_out)?1:2}function v(e,t){for(var n,o,r;;){if(e.lookahead<262){if(_(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=f(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-3,o=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,o&&(p(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((o=i._tr_tally(e,0,e.window[e.strstart-1]))&&p(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(o=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(p(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(p(e,!1),0===e.strm.avail_out)?1:2}function E(e,t,n,o,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=o,this.func=r}function y(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),d(this.dyn_ltree),d(this.dyn_dtree),d(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),d(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),d(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function S(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,i._tr_init(t),0):l(e,-2)}function T(e){var t,n=S(e);return 0===n&&((t=e.state).window_size=2*t.w_size,d(t.head),t.max_lazy_match=o[t.level].max_lazy,t.good_match=o[t.level].good_length,t.nice_match=o[t.level].nice_length,t.max_chain_length=o[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function w(e,t,n,o,i,a){if(!e)return-2;var s=1;if(-1===t&&(t=6),o<0?(s=0,o=-o):o>15&&(s=2,o-=16),i<1||i>9||8!==n||o<8||o>15||t<0||t>9||a<0||a>4)return l(e,-2);8===o&&(o=9);var c=new y;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=o,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=i+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new r.Buf8(2*c.w_size),c.head=new r.Buf16(c.hash_size),c.prev=new r.Buf16(c.w_size),c.lit_bufsize=1<<i+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new r.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=n,T(e)}o=[new E(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(_(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var o=e.block_start+n;if((0===e.strstart||e.strstart>=o)&&(e.lookahead=e.strstart-o,e.strstart=o,p(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(p(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(p(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(p(e,!1),e.strm.avail_out),1)})),new E(4,4,8,4,b),new E(4,5,16,8,b),new E(4,6,32,32,b),new E(4,4,16,16,v),new E(8,16,32,32,v),new E(8,16,128,128,v),new E(8,32,128,256,v),new E(32,128,258,1024,v),new E(32,258,258,4096,v)],t.deflateInit=function(e,t){return w(e,t,8,15,8,0)},t.deflateInit2=w,t.deflateReset=T,t.deflateResetKeep=S,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},t.deflate=function(e,t){var n,r,a,c;if(!e||!e.state||t>5||t<0)return e?l(e,-2):-2;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&4!==t)return l(e,0===e.avail_out?-5:-2);if(r.strm=e,n=r.last_flush,r.last_flush=t,42===r.status)if(2===r.wrap)e.adler=0,m(r,31),m(r,139),m(r,8),r.gzhead?(m(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),m(r,255&r.gzhead.time),m(r,r.gzhead.time>>8&255),m(r,r.gzhead.time>>16&255),m(r,r.gzhead.time>>24&255),m(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),m(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(m(r,255&r.gzhead.extra.length),m(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=s(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(m(r,0),m(r,0),m(r,0),m(r,0),m(r,0),m(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),m(r,3),r.status=113);else{var f=8+(r.w_bits-8<<4)<<8;f|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(f|=32),f+=31-f%31,r.status=113,g(r,f),0!==r.strstart&&(g(r,e.adler>>>16),g(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),h(e),a=r.pending,r.pending!==r.pending_buf_size));)m(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),h(e),a=r.pending,r.pending===r.pending_buf_size)){c=1;break}c=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,m(r,c)}while(0!==c);r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),0===c&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),h(e),a=r.pending,r.pending===r.pending_buf_size)){c=1;break}c=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,m(r,c)}while(0!==c);r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),0===c&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&h(e),r.pending+2<=r.pending_buf_size&&(m(r,255&e.adler),m(r,e.adler>>8&255),e.adler=0,r.status=113)):r.status=113),0!==r.pending){if(h(e),0===e.avail_out)return r.last_flush=-1,0}else if(0===e.avail_in&&u(t)<=u(n)&&4!==t)return l(e,-5);if(666===r.status&&0!==e.avail_in)return l(e,-5);if(0!==e.avail_in||0!==r.lookahead||0!==t&&666!==r.status){var b=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(_(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(p(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(p(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(p(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,o,r,a,s=e.window;;){if(e.lookahead<=258){if(_(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(o=s[r=e.strstart-1])===s[++r]&&o===s[++r]&&o===s[++r]){a=e.strstart+258;do{}while(o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&r<a);e.match_length=258-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=i._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(p(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(p(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(p(e,!1),0===e.strm.avail_out)?1:2}(r,t):o[r.level].func(r,t);if(3!==b&&4!==b||(r.status=666),1===b||3===b)return 0===e.avail_out&&(r.last_flush=-1),0;if(2===b&&(1===t?i._tr_align(r):5!==t&&(i._tr_stored_block(r,0,0,!1),3===t&&(d(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),h(e),0===e.avail_out))return r.last_flush=-1,0}return 4!==t?0:r.wrap<=0?1:(2===r.wrap?(m(r,255&e.adler),m(r,e.adler>>8&255),m(r,e.adler>>16&255),m(r,e.adler>>24&255),m(r,255&e.total_in),m(r,e.total_in>>8&255),m(r,e.total_in>>16&255),m(r,e.total_in>>24&255)):(g(r,e.adler>>>16),g(r,65535&e.adler)),h(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?l(e,-2):(e.state=null,113===t?l(e,-3):0):-2},t.deflateSetDictionary=function(e,t){var n,o,i,s,c,l,u,h,p=t.length;if(!e||!e.state)return-2;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return-2;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(d(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new r.Buf8(n.w_size),r.arraySet(h,t,p-n.w_size,n.w_size,0),t=h,p=n.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,_(n);n.lookahead>=3;){o=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[o+3-1])&n.hash_mask,n.prev[o&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=o,o++}while(--i);n.strstart=o,n.lookahead=2,_(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=l,e.input=u,e.avail_in=c,n.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},function(e,t,n){"use strict";var o=n(198);function r(e){for(var t=e.length;--t>=0;)e[t]=0}var i=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],l=new Array(576);r(l);var u=new Array(60);r(u);var d=new Array(512);r(d);var h=new Array(256);r(h);var p=new Array(29);r(p);var m,g,f,_=new Array(30);function b(e,t,n,o,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=o,this.max_length=r,this.has_stree=e&&e.length}function v(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function E(e){return e<256?d[e]:d[256+(e>>>7)]}function y(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function S(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,y(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function T(e,t,n){S(e,n[2*t],n[2*t+1])}function w(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function C(e,t,n){var o,r,i=new Array(16),a=0;for(o=1;o<=15;o++)i[o]=a=a+n[o-1]<<1;for(r=0;r<=t;r++){var s=e[2*r+1];0!==s&&(e[2*r]=w(i[s]++,s))}}function x(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function O(e){e.bi_valid>8?y(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function k(e,t,n,o){var r=2*t,i=2*n;return e[r]<e[i]||e[r]===e[i]&&o[t]<=o[n]}function R(e,t,n){for(var o=e.heap[n],r=n<<1;r<=e.heap_len&&(r<e.heap_len&&k(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!k(t,o,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=o}function A(e,t,n){var o,r,s,c,l=0;if(0!==e.last_lit)do{o=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],r=e.pending_buf[e.l_buf+l],l++,0===o?T(e,r,t):(T(e,(s=h[r])+256+1,t),0!==(c=i[s])&&S(e,r-=p[s],c),T(e,s=E(--o),n),0!==(c=a[s])&&S(e,o-=_[s],c))}while(l<e.last_lit);T(e,256,t)}function I(e,t){var n,o,r,i=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<c;n++)0!==i[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(r=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[r]=0,e.opt_len--,s&&(e.static_len-=a[2*r+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)R(e,i,n);r=c;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],R(e,i,1),o=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=o,i[2*r]=i[2*n]+i[2*o],e.depth[r]=(e.depth[n]>=e.depth[o]?e.depth[n]:e.depth[o])+1,i[2*n+1]=i[2*o+1]=r,e.heap[1]=r++,R(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,o,r,i,a,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(i=0;i<=15;i++)e.bl_count[i]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(i=c[2*c[2*(o=e.heap[n])+1]+1]+1)>m&&(i=m,g++),c[2*o+1]=i,o>l||(e.bl_count[i]++,a=0,o>=p&&(a=h[o-p]),s=c[2*o],e.opt_len+=s*(i+a),d&&(e.static_len+=s*(u[2*o+1]+a)));if(0!==g){do{for(i=m-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[m]--,g-=2}while(g>0);for(i=m;0!==i;i--)for(o=e.bl_count[i];0!==o;)(r=e.heap[--n])>l||(c[2*r+1]!==i&&(e.opt_len+=(i-c[2*r+1])*c[2*r],c[2*r+1]=i),o--)}}(e,t),C(i,l,e.bl_count)}function D(e,t,n){var o,r,i=-1,a=t[1],s=0,c=7,l=4;for(0===a&&(c=138,l=3),t[2*(n+1)+1]=65535,o=0;o<=n;o++)r=a,a=t[2*(o+1)+1],++s<c&&r===a||(s<l?e.bl_tree[2*r]+=s:0!==r?(r!==i&&e.bl_tree[2*r]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,i=r,0===a?(c=138,l=3):r===a?(c=6,l=3):(c=7,l=4))}function N(e,t,n){var o,r,i=-1,a=t[1],s=0,c=7,l=4;for(0===a&&(c=138,l=3),o=0;o<=n;o++)if(r=a,a=t[2*(o+1)+1],!(++s<c&&r===a)){if(s<l)do{T(e,r,e.bl_tree)}while(0!=--s);else 0!==r?(r!==i&&(T(e,r,e.bl_tree),s--),T(e,16,e.bl_tree),S(e,s-3,2)):s<=10?(T(e,17,e.bl_tree),S(e,s-3,3)):(T(e,18,e.bl_tree),S(e,s-11,7));s=0,i=r,0===a?(c=138,l=3):r===a?(c=6,l=3):(c=7,l=4)}}r(_);var F=!1;function M(e,t,n,r){S(e,0+(r?1:0),3),function(e,t,n,r){O(e),r&&(y(e,n),y(e,~n)),o.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}t._tr_init=function(e){F||(!function(){var e,t,n,o,r,c=new Array(16);for(n=0,o=0;o<28;o++)for(p[o]=n,e=0;e<1<<i[o];e++)h[n++]=o;for(h[n-1]=o,r=0,o=0;o<16;o++)for(_[o]=r,e=0;e<1<<a[o];e++)d[r++]=o;for(r>>=7;o<30;o++)for(_[o]=r<<7,e=0;e<1<<a[o]-7;e++)d[256+r++]=o;for(t=0;t<=15;t++)c[t]=0;for(e=0;e<=143;)l[2*e+1]=8,e++,c[8]++;for(;e<=255;)l[2*e+1]=9,e++,c[9]++;for(;e<=279;)l[2*e+1]=7,e++,c[7]++;for(;e<=287;)l[2*e+1]=8,e++,c[8]++;for(C(l,287,c),e=0;e<30;e++)u[2*e+1]=5,u[2*e]=w(e,5);m=new b(l,i,257,286,15),g=new b(u,a,0,30,15),f=new b(new Array(0),s,0,19,7)}(),F=!0),e.l_desc=new v(e.dyn_ltree,m),e.d_desc=new v(e.dyn_dtree,g),e.bl_desc=new v(e.bl_tree,f),e.bi_buf=0,e.bi_valid=0,x(e)},t._tr_stored_block=M,t._tr_flush_block=function(e,t,n,o){var r,i,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),I(e,e.l_desc),I(e,e.d_desc),a=function(e){var t;for(D(e,e.dyn_ltree,e.l_desc.max_code),D(e,e.dyn_dtree,e.d_desc.max_code),I(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*c[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),r=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=r&&(r=i)):r=i=n+5,n+4<=r&&-1!==t?M(e,t,n,o):4===e.strategy||i===r?(S(e,2+(o?1:0),3),A(e,l,u)):(S(e,4+(o?1:0),3),function(e,t,n,o){var r;for(S(e,t-257,5),S(e,n-1,5),S(e,o-4,4),r=0;r<o;r++)S(e,e.bl_tree[2*c[r]+1],3);N(e,e.dyn_ltree,t-1),N(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),A(e,e.dyn_ltree,e.dyn_dtree)),x(e),o&&O(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(h[n]+256+1)]++,e.dyn_dtree[2*E(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){S(e,2,3),T(e,256,l),function(e){16===e.bi_valid?(y(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},function(e,t,n){"use strict";var o=n(1307),r=n(198),i=n(734),a=n(736),s=n(491),c=n(735),l=n(1310),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=o.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new l,o.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=i.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=o.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(s[n])}function h(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,c,l,d,h=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?h.input=i.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new r.Buf8(p),h.next_out=0,h.avail_out=p),(n=o.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(n=o.inflateSetDictionary(this.strm,m)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=i.utf8border(h.output,h.next_out),l=h.next_out-c,d=i.buf2string(h.output,c),h.next_out=l,h.avail_out=p-l,l&&r.arraySet(h.output,h.output,c,l,0),this.onData(d)):this.onData(r.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(g=!0)}while((h.avail_in>0||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=o.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=d,t.inflate=h,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},t.ungzip=h},function(e,t,n){"use strict";var o=n(198),r=n(732),i=n(733),a=n(1308),s=n(1309);function c(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function l(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function u(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new o.Buf32(852),t.distcode=t.distdyn=new o.Buf32(592),t.sane=1,t.back=-1,0):-2}function d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,u(e)):-2}function h(e,t){var n,o;return e&&e.state?(o=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?-2:(null!==o.window&&o.wbits!==t&&(o.window=null),o.wrap=n,o.wbits=t,d(e))):-2}function p(e,t){var n,o;return e?(o=new l,e.state=o,o.window=null,0!==(n=h(e,t))&&(e.state=null),n):-2}var m,g,f=!0;function _(e){if(f){var t;for(m=new o.Buf32(512),g=new o.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,g,0,e.work,{bits:5}),f=!1}e.lencode=m,e.lenbits=9,e.distcode=g,e.distbits=5}function b(e,t,n,r){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new o.Buf8(a.wsize)),r>=a.wsize?(o.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>r&&(i=r),o.arraySet(a.window,t,n-r,i,a.wnext),(r-=i)?(o.arraySet(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}t.inflateReset=d,t.inflateReset2=h,t.inflateResetKeep=u,t.inflateInit=function(e){return p(e,15)},t.inflateInit2=p,t.inflate=function(e,t){var n,l,u,d,h,p,m,g,f,v,E,y,S,T,w,C,x,O,k,R,A,I,D,N,F=0,M=new o.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(n=e.state).mode&&(n.mode=13),h=e.next_out,u=e.output,m=e.avail_out,d=e.next_in,l=e.input,p=e.avail_in,g=n.hold,f=n.bits,v=p,E=m,I=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;f<16;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}if(2&n.wrap&&35615===g){n.check=0,M[0]=255&g,M[1]=g>>>8&255,n.check=i(n.check,M,2,0),g=0,f=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&g)){e.msg="unknown compression method",n.mode=30;break}if(f-=4,A=8+(15&(g>>>=4)),0===n.wbits)n.wbits=A;else if(A>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<A,e.adler=n.check=1,n.mode=512&g?10:12,g=0,f=0;break;case 2:for(;f<16;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}if(n.flags=g,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=g>>8&1),512&n.flags&&(M[0]=255&g,M[1]=g>>>8&255,n.check=i(n.check,M,2,0)),g=0,f=0,n.mode=3;case 3:for(;f<32;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}n.head&&(n.head.time=g),512&n.flags&&(M[0]=255&g,M[1]=g>>>8&255,M[2]=g>>>16&255,M[3]=g>>>24&255,n.check=i(n.check,M,4,0)),g=0,f=0,n.mode=4;case 4:for(;f<16;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}n.head&&(n.head.xflags=255&g,n.head.os=g>>8),512&n.flags&&(M[0]=255&g,M[1]=g>>>8&255,n.check=i(n.check,M,2,0)),g=0,f=0,n.mode=5;case 5:if(1024&n.flags){for(;f<16;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}n.length=g,n.head&&(n.head.extra_len=g),512&n.flags&&(M[0]=255&g,M[1]=g>>>8&255,n.check=i(n.check,M,2,0)),g=0,f=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((y=n.length)>p&&(y=p),y&&(n.head&&(A=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),o.arraySet(n.head.extra,l,d,y,A)),512&n.flags&&(n.check=i(n.check,l,y,d)),p-=y,d+=y,n.length-=y),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break e;y=0;do{A=l[d+y++],n.head&&A&&n.length<65536&&(n.head.name+=String.fromCharCode(A))}while(A&&y<p);if(512&n.flags&&(n.check=i(n.check,l,y,d)),p-=y,d+=y,A)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break e;y=0;do{A=l[d+y++],n.head&&A&&n.length<65536&&(n.head.comment+=String.fromCharCode(A))}while(A&&y<p);if(512&n.flags&&(n.check=i(n.check,l,y,d)),p-=y,d+=y,A)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;f<16;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}if(g!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}g=0,f=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;f<32;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}e.adler=n.check=c(g),g=0,f=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=h,e.avail_out=m,e.next_in=d,e.avail_in=p,n.hold=g,n.bits=f,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){g>>>=7&f,f-=7&f,n.mode=27;break}for(;f<3;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}switch(n.last=1&g,f-=1,3&(g>>>=1)){case 0:n.mode=14;break;case 1:if(_(n),n.mode=20,6===t){g>>>=2,f-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}g>>>=2,f-=2;break;case 14:for(g>>>=7&f,f-=7&f;f<32;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&g,g=0,f=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(y=n.length){if(y>p&&(y=p),y>m&&(y=m),0===y)break e;o.arraySet(u,l,d,y,h),p-=y,d+=y,m-=y,h+=y,n.length-=y;break}n.mode=12;break;case 17:for(;f<14;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}if(n.nlen=257+(31&g),g>>>=5,f-=5,n.ndist=1+(31&g),g>>>=5,f-=5,n.ncode=4+(15&g),g>>>=4,f-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;f<3;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}n.lens[P[n.have++]]=7&g,g>>>=3,f-=3}for(;n.have<19;)n.lens[P[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,D={bits:n.lenbits},I=s(0,n.lens,0,19,n.lencode,0,n.work,D),n.lenbits=D.bits,I){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;C=(F=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,x=65535&F,!((w=F>>>24)<=f);){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}if(x<16)g>>>=w,f-=w,n.lens[n.have++]=x;else{if(16===x){for(N=w+2;f<N;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}if(g>>>=w,f-=w,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}A=n.lens[n.have-1],y=3+(3&g),g>>>=2,f-=2}else if(17===x){for(N=w+3;f<N;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}f-=w,A=0,y=3+(7&(g>>>=w)),g>>>=3,f-=3}else{for(N=w+7;f<N;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}f-=w,A=0,y=11+(127&(g>>>=w)),g>>>=7,f-=7}if(n.have+y>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;y--;)n.lens[n.have++]=A}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,D={bits:n.lenbits},I=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,D),n.lenbits=D.bits,I){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,D={bits:n.distbits},I=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,D),n.distbits=D.bits,I){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(p>=6&&m>=258){e.next_out=h,e.avail_out=m,e.next_in=d,e.avail_in=p,n.hold=g,n.bits=f,a(e,E),h=e.next_out,u=e.output,m=e.avail_out,d=e.next_in,l=e.input,p=e.avail_in,g=n.hold,f=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;C=(F=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,x=65535&F,!((w=F>>>24)<=f);){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}if(C&&0==(240&C)){for(O=w,k=C,R=x;C=(F=n.lencode[R+((g&(1<<O+k)-1)>>O)])>>>16&255,x=65535&F,!(O+(w=F>>>24)<=f);){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}g>>>=O,f-=O,n.back+=O}if(g>>>=w,f-=w,n.back+=w,n.length=x,0===C){n.mode=26;break}if(32&C){n.back=-1,n.mode=12;break}if(64&C){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&C,n.mode=22;case 22:if(n.extra){for(N=n.extra;f<N;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}n.length+=g&(1<<n.extra)-1,g>>>=n.extra,f-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;C=(F=n.distcode[g&(1<<n.distbits)-1])>>>16&255,x=65535&F,!((w=F>>>24)<=f);){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}if(0==(240&C)){for(O=w,k=C,R=x;C=(F=n.distcode[R+((g&(1<<O+k)-1)>>O)])>>>16&255,x=65535&F,!(O+(w=F>>>24)<=f);){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}g>>>=O,f-=O,n.back+=O}if(g>>>=w,f-=w,n.back+=w,64&C){e.msg="invalid distance code",n.mode=30;break}n.offset=x,n.extra=15&C,n.mode=24;case 24:if(n.extra){for(N=n.extra;f<N;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}n.offset+=g&(1<<n.extra)-1,g>>>=n.extra,f-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===m)break e;if(y=E-m,n.offset>y){if((y=n.offset-y)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}y>n.wnext?(y-=n.wnext,S=n.wsize-y):S=n.wnext-y,y>n.length&&(y=n.length),T=n.window}else T=u,S=h-n.offset,y=n.length;y>m&&(y=m),m-=y,n.length-=y;do{u[h++]=T[S++]}while(--y);0===n.length&&(n.mode=21);break;case 26:if(0===m)break e;u[h++]=n.length,m--,n.mode=21;break;case 27:if(n.wrap){for(;f<32;){if(0===p)break e;p--,g|=l[d++]<<f,f+=8}if(E-=m,e.total_out+=E,n.total+=E,E&&(e.adler=n.check=n.flags?i(n.check,u,E,h-E):r(n.check,u,E,h-E)),E=m,(n.flags?g:c(g))!==n.check){e.msg="incorrect data check",n.mode=30;break}g=0,f=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;f<32;){if(0===p)break e;p--,g+=l[d++]<<f,f+=8}if(g!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}g=0,f=0}n.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;case 32:default:return-2}return e.next_out=h,e.avail_out=m,e.next_in=d,e.avail_in=p,n.hold=g,n.bits=f,(n.wsize||E!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&b(e,e.output,e.next_out,E-e.avail_out)?(n.mode=31,-4):(v-=e.avail_in,E-=e.avail_out,e.total_in+=v,e.total_out+=E,n.total+=E,n.wrap&&E&&(e.adler=n.check=n.flags?i(n.check,u,E,e.next_out-E):r(n.check,u,E,e.next_out-E)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===v&&0===E||4===t)&&0===I&&(I=-5),I)},t.inflateEnd=function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?-2:(n.head=t,t.done=!1,0):-2},t.inflateSetDictionary=function(e,t){var n,o=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?-2:11===n.mode&&r(1,t,o,0)!==n.check?-3:b(e,t,o,o)?(n.mode=31,-4):(n.havedict=1,0):-2},t.inflateInfo="pako inflate (from Nodeca project)"},function(e,t,n){"use strict";e.exports=function(e,t){var n,o,r,i,a,s,c,l,u,d,h,p,m,g,f,_,b,v,E,y,S,T,w,C,x;n=e.state,o=e.next_in,C=e.input,r=o+(e.avail_in-5),i=e.next_out,x=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,h=n.window,p=n.hold,m=n.bits,g=n.lencode,f=n.distcode,_=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{m<15&&(p+=C[o++]<<m,m+=8,p+=C[o++]<<m,m+=8),v=g[p&_];t:for(;;){if(p>>>=E=v>>>24,m-=E,0===(E=v>>>16&255))x[i++]=65535&v;else{if(!(16&E)){if(0==(64&E)){v=g[(65535&v)+(p&(1<<E)-1)];continue t}if(32&E){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}y=65535&v,(E&=15)&&(m<E&&(p+=C[o++]<<m,m+=8),y+=p&(1<<E)-1,p>>>=E,m-=E),m<15&&(p+=C[o++]<<m,m+=8,p+=C[o++]<<m,m+=8),v=f[p&b];n:for(;;){if(p>>>=E=v>>>24,m-=E,!(16&(E=v>>>16&255))){if(0==(64&E)){v=f[(65535&v)+(p&(1<<E)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(S=65535&v,m<(E&=15)&&(p+=C[o++]<<m,(m+=8)<E&&(p+=C[o++]<<m,m+=8)),(S+=p&(1<<E)-1)>c){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=E,m-=E,S>(E=i-a)){if((E=S-E)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(T=0,w=h,0===d){if(T+=l-E,E<y){y-=E;do{x[i++]=h[T++]}while(--E);T=i-S,w=x}}else if(d<E){if(T+=l+d-E,(E-=d)<y){y-=E;do{x[i++]=h[T++]}while(--E);if(T=0,d<y){y-=E=d;do{x[i++]=h[T++]}while(--E);T=i-S,w=x}}}else if(T+=d-E,E<y){y-=E;do{x[i++]=h[T++]}while(--E);T=i-S,w=x}for(;y>2;)x[i++]=w[T++],x[i++]=w[T++],x[i++]=w[T++],y-=3;y&&(x[i++]=w[T++],y>1&&(x[i++]=w[T++]))}else{T=i-S;do{x[i++]=x[T++],x[i++]=x[T++],x[i++]=x[T++],y-=3}while(y>2);y&&(x[i++]=x[T++],y>1&&(x[i++]=x[T++]))}break}}break}}while(o<r&&i<s);o-=y=m>>3,p&=(1<<(m-=y<<3))-1,e.next_in=o,e.next_out=i,e.avail_in=o<r?r-o+5:5-(o-r),e.avail_out=i<s?s-i+257:257-(i-s),n.hold=p,n.bits=m}},function(e,t,n){"use strict";var o=n(198),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,c,l,u,d,h){var p,m,g,f,_,b,v,E,y,S=h.bits,T=0,w=0,C=0,x=0,O=0,k=0,R=0,A=0,I=0,D=0,N=null,F=0,M=new o.Buf16(16),P=new o.Buf16(16),L=null,U=0;for(T=0;T<=15;T++)M[T]=0;for(w=0;w<c;w++)M[t[n+w]]++;for(O=S,x=15;x>=1&&0===M[x];x--);if(O>x&&(O=x),0===x)return l[u++]=20971520,l[u++]=20971520,h.bits=1,0;for(C=1;C<x&&0===M[C];C++);for(O<C&&(O=C),A=1,T=1;T<=15;T++)if(A<<=1,(A-=M[T])<0)return-1;if(A>0&&(0===e||1!==x))return-1;for(P[1]=0,T=1;T<15;T++)P[T+1]=P[T]+M[T];for(w=0;w<c;w++)0!==t[n+w]&&(d[P[t[n+w]]++]=w);if(0===e?(N=L=d,b=19):1===e?(N=r,F-=257,L=i,U-=257,b=256):(N=a,L=s,b=-1),D=0,w=0,T=C,_=u,k=O,R=0,g=-1,f=(I=1<<O)-1,1===e&&I>852||2===e&&I>592)return 1;for(;;){v=T-R,d[w]<b?(E=0,y=d[w]):d[w]>b?(E=L[U+d[w]],y=N[F+d[w]]):(E=96,y=0),p=1<<T-R,C=m=1<<k;do{l[_+(D>>R)+(m-=p)]=v<<24|E<<16|y|0}while(0!==m);for(p=1<<T-1;D&p;)p>>=1;if(0!==p?(D&=p-1,D+=p):D=0,w++,0==--M[T]){if(T===x)break;T=t[n+d[w]]}if(T>O&&(D&f)!==g){for(0===R&&(R=O),_+=C,A=1<<(k=T-R);k+R<x&&!((A-=M[k+R])<=0);)k++,A<<=1;if(I+=1<<k,1===e&&I>852||2===e&&I>592)return 1;l[g=D&f]=O<<24|k<<16|_-u|0}}return 0!==D&&(l[_+D]=T-R<<24|64<<16|0),h.bits=O,0}},function(e,t,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(e,t,n){!function(){"use strict";var t,o=n(1312),r=n(737);function i(e){this.written=0,t=512*(e||20),this.out=r.clean(t)}i.prototype.append=function(e,n,i,a){var s,c,l,u,d,h,p;if("string"==typeof n)n=r.stringToUint8(n);else if(n.constructor!==Uint8Array.prototype.constructor)throw"Invalid input type. You gave me: "+n.constructor.toString().match(/function\s*([$A-Za-z_][0-9A-Za-z_]*)\s*\(/)[1];return"function"==typeof i&&(a=i,i={}),l=(i=i||{}).mode||4095&parseInt("777",8),u=i.mtime||Math.floor(+new Date/1e3),d=i.uid||0,h=i.gid||0,s={fileName:e,fileMode:r.pad(l,7),uid:r.pad(d,7),gid:r.pad(h,7),fileSize:r.pad(n.length,11),mtime:r.pad(u,11),checksum:" ",type:"0",ustar:"ustar ",owner:i.owner||"",group:i.group||""},c=0,Object.keys(s).forEach((function(e){var t,n,o=s[e];for(t=0,n=o.length;t<n;t+=1)c+=o.charCodeAt(t)})),s.checksum=r.pad(c,6)+"\0 ",p=o.format(s),this.out.set(p,this.written),this.written+=p.length,this.written+n.length>this.out.length&&(this.out=r.extend(this.out,this.written,n.length,t)),this.out.set(n,this.written),this.written+=n.length+(512-(n.length%512||512)),this.out.length-this.written<1024&&(this.out=r.extend(this.out,this.written,1024,t)),"function"==typeof a&&a(this.out),this.out},i.prototype.clear=function(){this.written=0,this.out=r.clean(t)},i.utils=r,i.stringToUint8=r.stringToUint8,i.uint8ToBase64=r.uint8ToBase64,i.base64ToUint8=r.base64ToUint8,e.exports=i}()},function(e,t,n){!function(){"use strict";var t,o=n(737);t=[{field:"fileName",length:100},{field:"fileMode",length:8},{field:"uid",length:8},{field:"gid",length:8},{field:"fileSize",length:12},{field:"mtime",length:12},{field:"checksum",length:8},{field:"type",length:1},{field:"linkName",length:100},{field:"ustar",length:8},{field:"owner",length:32},{field:"group",length:32},{field:"majorNumber",length:8},{field:"minorNumber",length:8},{field:"filenamePrefix",length:155},{field:"padding",length:12}],e.exports.structure=t,e.exports.format=function(e,n){var r=o.clean(512),i=0;return t.forEach((function(t){var n,o,a=e[t.field]||"";for(n=0,o=a.length;n<o;n+=1)r[i]=a.charCodeAt(n),i+=1;i+=t.length-n})),"function"==typeof n?n(r,i):r}}()},function(e,t){e.exports="img/element-icons/roomlist/dark-light-mode.f72b785.svg"},function(e,t,n){"use strict";t.__esModule=!0,t.config=t.Transition=t.TransitionGroup=t.SwitchTransition=t.ReplaceTransition=t.CSSTransition=void 0;var o=l(n(1315));t.CSSTransition=o.default;var r=l(n(1319));t.ReplaceTransition=r.default;var i=l(n(1321));t.SwitchTransition=i.default;var a=l(n(741));t.TransitionGroup=a.default;var s=l(n(493));t.Transition=s.default;var c=l(n(739));function l(e){return e&&e.__esModule?e:{default:e}}t.config=c.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;s(n(84));var o=s(n(1316)),r=s(n(1318)),i=s(n(81)),a=s(n(493));n(740);function s(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},u=function(e){var t,n;function r(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1];t.removeClasses(r,"exit"),t.addClass(r,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1]?"appear":"enter";t.addClass(r,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1]?"appear":"enter";t.removeClasses(r,i),t.addClass(r,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,o="string"==typeof n,r=o?""+(o&&n?n+"-":"")+e:n[e];return{baseClassName:r,activeClassName:o?r+"-active":n[e+"Active"],doneClassName:o?r+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=r.prototype;return s.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return(0,o.default)(e,t)}))}(e,r))},s.removeClasses=function(e,t){var n=this.appliedClasses[t],o=n.base,r=n.active,i=n.done;this.appliedClasses[t]={},o&&l(e,o),r&&l(e,r),i&&l(e,i)},s.render=function(){var e=this.props,t=(e.classNames,function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,["classNames"]));return i.default.createElement(a.default,c({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(i.default.Component);u.defaultProps={classNames:""},u.propTypes={};var d=u;t.default=d,e.exports=t.default},function(e,t,n){"use strict";var o=n(106);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,r.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var r=o(n(1317));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function o(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=o(e.className,t):e.setAttribute("class",o(e.className&&e.className.baseVal||"",t))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;a(n(84));var o=a(n(81)),r=a(n(135)),i=a(n(741));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,n;function a(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.handleLifecycle=function(e,t,n){var i,a=this.props.children,s=o.default.Children.toArray(a)[t];if(s.props[e]&&(i=s.props)[e].apply(i,n),this.props[e]){var c=s.props.nodeRef?void 0:r.default.findDOMNode(this);this.props[e](c)}},s.render=function(){var e=this.props,t=e.children,n=e.in,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,["children","in"]),a=o.default.Children.toArray(t),s=a[0],c=a[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,o.default.createElement(i.default,r,n?o.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):o.default.cloneElement(c,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(o.default.Component);s.propTypes={};var c=s;t.default=c,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=r,t.mergeChildMappings=i,t.getInitialChildMapping=function(e,t){return r(e.children,(function(n){return(0,o.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var s=r(e.children),c=i(t,s);return Object.keys(c).forEach((function(r){var i=c[r];if((0,o.isValidElement)(i)){var l=r in t,u=r in s,d=t[r],h=(0,o.isValidElement)(d)&&!d.props.in;!u||l&&!h?u||!l||h?u&&l&&(0,o.isValidElement)(d)&&(c[r]=(0,o.cloneElement)(i,{onExited:n.bind(null,i),in:d.props.in,exit:a(i,"exit",e),enter:a(i,"enter",e)})):c[r]=(0,o.cloneElement)(i,{in:!1}):c[r]=(0,o.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",e),enter:a(i,"enter",e)})}})),c};var o=n(81);function r(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function a(e,t,n){return null!=n[t]?n[t]:e.props[t]}},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.modes=void 0;var o,r,i=c(n(81)),a=(c(n(84)),n(493)),s=c(n(494));function c(e){return e&&e.__esModule?e:{default:e}}var l={out:"out-in",in:"in-out"};t.modes=l;var u=function(e,t,n){return function(){var o;e.props[t]&&(o=e.props)[t].apply(o,arguments),n()}},d=((o={})[l.out]=function(e){var t=e.current,n=e.changeState;return i.default.cloneElement(t,{in:!1,onExited:u(t,"onExited",(function(){n(a.ENTERING,null)}))})},o[l.in]=function(e){var t=e.current,n=e.changeState,o=e.children;return[t,i.default.cloneElement(o,{in:!0,onEntered:u(o,"onEntered",(function(){n(a.ENTERING)}))})]},o),h=((r={})[l.out]=function(e){var t=e.children,n=e.changeState;return i.default.cloneElement(t,{in:!0,onEntered:u(t,"onEntered",(function(){n(a.ENTERED,i.default.cloneElement(t,{in:!0}))}))})},r[l.in]=function(e){var t=e.current,n=e.children,o=e.changeState;return[i.default.cloneElement(t,{in:!1,onExited:u(t,"onExited",(function(){o(a.ENTERED,i.default.cloneElement(n,{in:!0}))}))}),i.default.cloneElement(n,{in:!0})]},r),p=function(e){var t,n;function o(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).state={status:a.ENTERED,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=o.prototype;return r.componentDidMount=function(){this.appeared=!0},o.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===a.ENTERING&&e.mode===l.in?{status:a.ENTERING}:!t.current||(n=t.current,o=e.children,n===o||i.default.isValidElement(n)&&i.default.isValidElement(o)&&null!=n.key&&n.key===o.key)?{current:i.default.cloneElement(e.children,{in:!0})}:{status:a.EXITING};var n,o},r.render=function(){var e,t=this.props,n=t.children,o=t.mode,r=this.state,c=r.status,l=r.current,u={children:n,current:l,changeState:this.changeState,status:c};switch(c){case a.ENTERING:e=h[o](u);break;case a.EXITING:e=d[o](u);break;case a.ENTERED:e=l}return i.default.createElement(s.default.Provider,{value:{isMounting:!this.appeared}},e)},o}(i.default.Component);p.propTypes={},p.defaultProps={mode:l.out};var m=p;t.default=m},function(e,t,n){(function(t){var n;n=function(){"use strict";var e=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),n="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),r="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},i=["top","right","bottom","left","width","height","size","weight"],a="undefined"!=typeof MutationObserver,s=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,i=0;function a(){n&&(n=!1,e()),o&&c()}function s(){r(a)}function c(){var e=Date.now();if(n){if(e-i<2)return;o=!0}else n=!0,o=!1,setTimeout(s,t);i=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;i.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},l=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},u=f(0,0,0,0);function d(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function p(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return u;var o=l(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=d(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=d(o.width),c=d(o.height);if("border-box"===o.boxSizing&&(Math.round(s+i)!==t&&(s-=h(o,"left","right")+i),Math.round(c+a)!==n&&(c-=h(o,"top","bottom")+a)),!function(e){return e===l(e).document.documentElement}(e)){var p=Math.round(s+i)-t,m=Math.round(c+a)-n;1!==Math.abs(p)&&(s-=p),1!==Math.abs(m)&&(c-=m)}return f(r.left,r.top,s,c)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof l(e).SVGGraphicsElement}:function(e){return e instanceof l(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return n?m(e)?function(e){var t=e.getBBox();return f(0,0,t.width,t.height)}(e):p(e):u}function f(e,t,n,o){return{x:e,y:t,width:n,height:o}}var _=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=f(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n,o,r,i,a,s,l,u=(o=(n=t).x,r=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),c(l,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),l);c(this,{target:e,contentRect:u})},v=function(){function t(t,n,o){if(this.activeObservations_=[],this.observations_=new e,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=o}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof l(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof l(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new b(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),E="undefined"!=typeof WeakMap?new WeakMap:new e,y=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),o=new v(t,n,this);E.set(this,o)};return["observe","unobserve","disconnect"].forEach((function(e){y.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}})),void 0!==o.ResizeObserver?o.ResizeObserver:y},e.exports=n()}).call(this,n(5))},function(e,t){e.exports="img/element-icons/warning-badge.2f8ddee.svg"},function(e,t){e.exports="img/element-icons/room/default_app.2034d23.svg"},function(e,t){e.exports="img/element-icons/room/default_video.66250a4.svg"},function(e,t){e.exports="img/element-icons/room/default_cal.65049a4.svg"},function(e,t){e.exports="img/element-icons/room/default_doc.02ee63f.svg"},function(e,t){e.exports="img/element-icons/room/default_clock.e3e0f9b.svg"},function(e,t){e.exports="fonts/Twemoji_Mozilla/TwemojiMozilla-colr.5bb743a.woff2"},function(e,t){e.exports="fonts/Twemoji_Mozilla/TwemojiMozilla-sbix.fb38407.woff2"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return oe}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(90),c=n.n(s),l=n(276),u=n(83),d=n(108),h=n(307),p=n(89),m=n(85),g=n(147),f=n(87),_=n(302),b=n(256),v=n(365),E=n(361),y=n(1335),S=n(98),T=n(501),w=n(502),C=n(116),x=n(1362),O=n(300),k=n(88),R=n(91),A=n(308),I=n(206),D=n(227),N=n(97),F=n(507),M=n(93),P=n(95),L=n(761),U=n(762),B=n(764),j=n(765),G=n(766),q=n(767),H=n(768),V=n(799),z=n(772),K=n(775),W=n(778),Y=n(306),$=n(199),Q=n(169),X=n(115),J=n(249),Z=n(481),ee=n(173);let te=function(e){};const ne="sandbox"in document.createElement("iframe");class oe extends a.a.Component{constructor(t,n){super(t,n),r()(this,"dispatcherRef",void 0),r()(this,"roomStoreToken",void 0),r()(this,"rightPanelStoreToken",void 0),r()(this,"showReadReceiptsWatchRef",void 0),r()(this,"layoutWatcherRef",void 0),r()(this,"unmounted",!1),r()(this,"permalinkCreators",{}),r()(this,"searchId",void 0),r()(this,"roomView",Object(i.createRef)()),r()(this,"searchResultsPanel",Object(i.createRef)()),r()(this,"messagePanel",void 0),r()(this,"onWidgetStoreUpdate",()=>{this.state.room&&this.checkWidgets(this.state.room)}),r()(this,"checkWidgets",e=>{this.setState({hasPinnedWidgets:Q.b.instance.getPinnedApps(e.roomId).length>0})}),r()(this,"onReadReceiptsChange",()=>{this.setState({showReadReceipts:k.a.getValue("showReadReceipts",this.state.roomId)})}),r()(this,"onRoomViewStoreUpdate",e=>{if(this.unmounted)return;if(!e&&this.state.roomId!==C.a.getRoomId())return;const t=C.a.getRoomId(),n={roomId:t,roomAlias:C.a.getRoomAlias(),roomLoading:C.a.isRoomLoading(),roomLoadError:C.a.getRoomLoadError(),joining:C.a.isJoining(),initialEventId:C.a.getInitialEventId(),isInitialEventHighlighted:C.a.isInitialEventHighlighted(),replyToEvent:C.a.getQuotingEvent(),forwardingEvent:C.a.getForwardingEvent(),shouldPeek:this.state.matrixClientIsReady&&C.a.shouldPeek(),showingPinned:k.a.getValue("PinnedEvents.isOpen",t),showReadReceipts:k.a.getValue("showReadReceipts",t)};if(e||!this.state.shouldPeek||n.shouldPeek||this.context.stopPeeking(),console.log("RVS update:",n.roomId,n.roomAlias,"loading?",n.roomLoading,"joining?",n.joining,"initial?",e,"shouldPeek?",n.shouldPeek),e&&(n.room=this.context.getRoom(n.roomId),n.room&&(n.showApps=this.shouldShowApps(n.room),this.onRoomLoaded(n.room))),null===this.state.roomId&&null!==n.roomId&&!n.initialEventId){const e=x.a.getScrollState(n.roomId);e&&(n.initialEventId=e.focussedEvent,n.initialEventPixelOffset=e.pixelOffset)}this.state.initialEventId!==n.initialEventId&&(n.searchResults=null),this.setState(n),e&&this.setupRoom(n.room,n.roomId,n.joining,n.shouldPeek)}),r()(this,"getRoomId",()=>this.state.room?this.state.room.roomId:this.state.roomId),r()(this,"onWidgetEchoStoreUpdate",()=>{this.setState({showApps:this.shouldShowApps(this.state.room)})}),r()(this,"onLayoutChange",()=>{this.setState({useIRCLayout:k.a.getValue("useIRCLayout")})}),r()(this,"onRightPanelStoreUpdate",()=>{this.setState({showRightPanel:A.a.getSharedInstance().isOpenForRoom})}),r()(this,"onPageUnload",e=>h.a.sharedInstance().getCurrentUploads().length>0?e.returnValue=Object(u.a)("You seem to be uploading files, are you sure you want to quit?"):this.getCallForRoom()&&"ended"!==this.state.callState?e.returnValue=Object(u.a)("You seem to be in a call, are you sure you want to quit?"):void 0),r()(this,"onReactKeyDown",e=>{let t=!1;switch(e.key){case S.a.ESCAPE:e.altKey||e.ctrlKey||e.shiftKey||e.metaKey||(this.messagePanel.forgetReadMarker(),this.jumpToLiveTimeline(),t=!0);break;case S.a.PAGE_UP:e.altKey||e.ctrlKey||!e.shiftKey||e.metaKey||(this.jumpToReadMarker(),t=!0);break;case S.a.U:case S.a.U.toUpperCase():Object(S.c)(e)&&e.shiftKey&&(f.a.dispatch({action:"upload_file"},!0),t=!0)}t&&(e.stopPropagation(),e.preventDefault())}),r()(this,"onAction",t=>{switch(t.action){case"message_sent":this.checkDesktopNotifications();break;case"post_sticker_message":this.injectSticker(t.data.content.url,t.data.content.info,t.data.description||t.data.name);break;case"picture_snapshot":h.a.sharedInstance().sendContentListToRoom([t.file],this.state.room.roomId,this.context);break;case"notifier_enabled":case"upload_started":case"upload_finished":case"upload_canceled":this.forceUpdate();break;case"call_state":{if(!t.room_id)return;const e=this.getCallForRoom();this.setState({callState:e?e.state:null});break}case"appsDrawer":this.setState({showApps:t.show});break;case"reply_to_event":this.state.searchResults&&t.event.getRoomId()===this.state.roomId&&!this.unmounted&&this.onCancelSearchClick();break;case"quote":if(this.state.searchResults){const n=t.event.getRoomId();n===this.state.roomId&&this.onCancelSearchClick(),e(()=>{f.a.dispatch({action:"view_room",room_id:n,deferred_action:t})})}break;case"sync_state":this.state.matrixClientIsReady||this.setState({matrixClientIsReady:this.context&&this.context.isInitialSyncComplete()},()=>{this.onRoomViewStoreUpdate(!0)})}}),r()(this,"onRoomTimeline",(e,t,n,o,r)=>{this.unmounted||t&&this.state.room&&t.roomId==this.state.room.roomId&&r.timeline.getTimelineSet()===t.getUnfilteredTimelineSet()&&("org.matrix.room.preview_urls"===e.getType()&&this.updatePreviewUrlVisibility(t),"m.room.encryption"===e.getType()&&this.updateE2EStatus(t),!n&&r&&r.liveEvent&&(this.state.joining||e.getSender()!==this.context.credentials.userId&&(!this.state.searchResults&&this.state.atEndOfLiveTimeline||Object(l.a)(e)||this.setState((e,t)=>({numUnreadMessages:e.numUnreadMessages+1})))))}),r()(this,"onEventDecrypted",e=>{e.isDecryptionFailure()||this.handleEffects(e)}),r()(this,"onEvent",e=>{e.isBeingDecrypted()||e.isDecryptionFailure()||this.handleEffects(e)}),r()(this,"handleEffects",e=>{if(!this.state.room||!this.state.matrixClientIsReady)return;if(e.getRoomId()!==this.state.room.roomId)return;ee.a.instance.getRoomState(this.state.room).isUnread&&$.CHAT_EFFECTS.forEach(t=>{(Object(Y.containsEmoji)(e.getContent(),t.emojis)||e.getContent().msgtype===t.msgType)&&f.a.dispatch({action:"effects."+t.command})})}),r()(this,"onRoomName",e=>{this.state.room&&e.roomId==this.state.room.roomId&&this.forceUpdate()}),r()(this,"onKeyBackupStatus",()=>{this.forceUpdate()}),r()(this,"canResetTimeline",()=>!this.messagePanel||this.messagePanel.canResetTimeline()),r()(this,"onRoomLoaded",e=>{this.calculatePeekRules(e),this.updatePreviewUrlVisibility(e),this.loadMembersIfJoined(e),this.calculateRecommendedVersion(e),this.updateE2EStatus(e),this.updatePermissions(e),this.checkWidgets(e)}),r()(this,"onRoom",e=>{e&&e.roomId===this.state.roomId&&this.setState({room:e},()=>{this.onRoomLoaded(e)})}),r()(this,"onDeviceVerificationChanged",(e,t)=>{const n=this.state.room;n.currentState.getMember(e)&&this.updateE2EStatus(n)}),r()(this,"onUserVerificationChanged",(e,t)=>{const n=this.state.room;n&&n.currentState.getMember(e)&&this.updateE2EStatus(n)}),r()(this,"onCrossSigningKeysChanged",()=>{const e=this.state.room;e&&this.updateE2EStatus(e)}),r()(this,"onAccountData",e=>{const t=e.getType();"org.matrix.preview_urls"!==t&&"im.vector.web.settings"!==t||!this.state.room||this.updatePreviewUrlVisibility(this.state.room)}),r()(this,"onRoomAccountData",(e,t)=>{if(t.roomId==this.state.roomId){const n=e.getType();if("org.matrix.room.color_scheme"===n){const t=e.getContent();console.log("Tinter.tint from onRoomAccountData"),_.a.tint(t.primary_color,t.secondary_color)}else"org.matrix.room.preview_urls"!==n&&"im.vector.web.settings"!==n||this.updatePreviewUrlVisibility(t)}}),r()(this,"onRoomStateEvents",(e,t)=>{this.state.room&&this.state.room.roomId===t.roomId&&this.updatePermissions(this.state.room)}),r()(this,"onRoomStateMember",(e,t,n)=>{this.state.room&&n.roomId===this.state.room.roomId&&this.updateRoomMembers(n)}),r()(this,"onMyMembership",(e,t,n)=>{e.roomId===this.state.roomId&&(this.forceUpdate(),this.loadMembersIfJoined(e),this.updatePermissions(e))}),r()(this,"updateRoomMembers",Object(b.a)(()=>{this.updateDMState(),this.updateE2EStatus(this.state.room)},500)),r()(this,"onSearchResultsFillRequest",e=>{if(!e)return Promise.resolve(!1);if(this.state.searchResults.next_batch){te("requesting more search results");const e=Object(y.b)(this.state.searchResults);return this.handleSearchResult(e)}return te("no more search results"),Promise.resolve(!1)}),r()(this,"onInviteButtonClick",()=>{f.a.dispatch({action:"view_invite",roomId:this.state.room.roomId})}),r()(this,"onJoinButtonClicked",()=>{this.context&&this.context.isGuest()?(f.a.dispatch({action:"do_after_sync_prepared",deferred_action:{action:"view_room",room_id:this.getRoomId()}}),f.a.dispatch({action:"require_registration"})):Promise.resolve().then(()=>{var e;const t=null===(e=this.props.threepidInvite)||void 0===e?void 0:e.signUrl;return f.a.dispatch({action:"join_room",opts:{inviteSignUrl:t,viaServers:this.props.viaServers},_type:"unknown"}),Promise.resolve()})}),r()(this,"onMessageListScroll",e=>{this.messagePanel.isAtEndOfLiveTimeline()?this.setState({numUnreadMessages:0,atEndOfLiveTimeline:!0}):this.setState({atEndOfLiveTimeline:!1}),this.updateTopUnreadMessagesBar()}),r()(this,"onDragOver",e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="none",(e.dataTransfer.types.includes("Files")||e.dataTransfer.types.includes("application/x-moz-file"))&&(this.setState({draggingFile:!0}),e.dataTransfer.dropEffect="copy")}),r()(this,"onDrop",e=>{e.stopPropagation(),e.preventDefault(),h.a.sharedInstance().sendContentListToRoom(e.dataTransfer.files,this.state.room.roomId,this.context),this.setState({draggingFile:!1}),f.a.fire(M.a.FocusComposer)}),r()(this,"onDragLeaveOrEnd",e=>{e.stopPropagation(),e.preventDefault(),this.setState({draggingFile:!1})}),r()(this,"onSearch",(e,t)=>{let n;this.setState({searchTerm:e,searchScope:t,searchResults:{},searchHighlights:[]}),this.searchResultsPanel.current&&this.searchResultsPanel.current.resetScrollState(),this.searchId=(new Date).getTime(),"Room"===t&&(n=this.state.room.roomId),te("sending search request");const o=Object(y.a)(e,n);this.handleSearchResult(o)}),r()(this,"onPinnedClick",()=>{const e=!this.state.showingPinned,t=this.state.room.roomId;this.setState({showingPinned:e,searching:!1}),k.a.setValue("PinnedEvents.isOpen",t,P.a.ROOM_DEVICE,e)}),r()(this,"onSettingsClick",()=>{f.a.dispatch({action:"open_room_settings"})}),r()(this,"onCancelClick",()=>{console.log("updateTint from onCancelClick"),this.updateTint(),this.state.forwardingEvent&&f.a.dispatch({action:"forward_event",event:null}),f.a.fire(M.a.FocusComposer)}),r()(this,"onAppsClick",()=>{f.a.dispatch({action:"appsDrawer",show:!this.state.showApps})}),r()(this,"onLeaveClick",()=>{f.a.dispatch({action:"leave_room",room_id:this.state.room.roomId})}),r()(this,"onForgetClick",()=>{f.a.dispatch({action:"forget_room",room_id:this.state.room.roomId})}),r()(this,"onRejectButtonClicked",e=>{this.setState({rejecting:!0}),this.context.leave(this.state.roomId).then(()=>{f.a.dispatch({action:"view_home_page"}),this.setState({rejecting:!1})},e=>{console.error("Failed to reject invite: %s",e);const t=e.message?e.message:JSON.stringify(e),n=m.getComponent("dialogs.ErrorDialog");p.a.createTrackedDialog("Failed to reject invite","",n,{title:Object(u.a)("Failed to reject invite"),description:t}),this.setState({rejecting:!1,rejectError:e})})}),r()(this,"onRejectAndIgnoreClick",async()=>{this.setState({rejecting:!0});try{const e=this.state.room.getMember(this.context.getUserId()).events.member,t=this.context.getIgnoredUsers();t.push(e.getSender()),await this.context.setIgnoredUsers(t),await this.context.leave(this.state.roomId),f.a.dispatch({action:"view_home_page"}),this.setState({rejecting:!1})}catch(e){console.error("Failed to reject invite: %s",e);const t=e.message?e.message:JSON.stringify(e),n=m.getComponent("dialogs.ErrorDialog");p.a.createTrackedDialog("Failed to reject invite","",n,{title:Object(u.a)("Failed to reject invite"),description:t}),this.setState({rejecting:!1,rejectError:e})}}),r()(this,"onRejectThreepidInviteButtonClicked",e=>{f.a.fire(M.a.ViewRoomDirectory)}),r()(this,"onSearchClick",()=>{this.setState({searching:!this.state.searching,showingPinned:!1})}),r()(this,"onCancelSearchClick",()=>{this.setState({searching:!1,searchResults:null})}),r()(this,"jumpToLiveTimeline",()=>{this.messagePanel.jumpToLiveTimeline(),f.a.fire(M.a.FocusComposer)}),r()(this,"jumpToReadMarker",()=>{this.messagePanel.jumpToReadMarker()}),r()(this,"forgetReadMarker",e=>{e.stopPropagation(),this.messagePanel.forgetReadMarker()}),r()(this,"updateTopUnreadMessagesBar",()=>{if(!this.messagePanel)return;const e=this.messagePanel.canJumpToReadMarker();this.state.showTopUnreadMessagesBar!=e&&this.setState({showTopUnreadMessagesBar:e})}),r()(this,"onResize",()=>{let e=window.innerHeight-261;e<50&&(e=50),this.setState({auxPanelMaxHeight:e})}),r()(this,"onFullscreenClick",()=>{f.a.dispatch({action:"video_fullscreen",fullscreen:!0},!0)}),r()(this,"onMuteAudioClick",()=>{const e=this.getCallForRoom();if(!e)return;const t=!e.isMicrophoneMuted();e.setMicrophoneMuted(t),this.forceUpdate()}),r()(this,"onMuteVideoClick",()=>{const e=this.getCallForRoom();if(!e)return;const t=!e.isLocalVideoMuted();e.setLocalVideoMuted(t),this.forceUpdate()}),r()(this,"onStatusBarVisible",()=>{this.unmounted||this.setState({statusBarVisible:!0})}),r()(this,"onStatusBarHidden",()=>{this.unmounted||this.setState({statusBarVisible:!1})}),r()(this,"handleScrollKey",e=>{let t;this.searchResultsPanel.current?t=this.searchResultsPanel.current:this.messagePanel&&(t=this.messagePanel),t&&t.handleScrollKey(e)}),r()(this,"gatherTimelinePanelRef",e=>{this.messagePanel=e,e&&(console.log("updateTint from RoomView.gatherTimelinePanelRef"),this.updateTint())}),r()(this,"onHiddenHighlightsClick",()=>{const e=this.getOldRoom();e&&f.a.dispatch({action:"view_room",room_id:e.roomId})});const o=this.context.hasLazyLoadMembersEnabled();this.state={roomId:null,roomLoading:!0,peekLoading:!1,shouldPeek:!0,membersLoaded:!o,numUnreadMessages:0,draggingFile:!1,searching:!1,searchResults:null,callState:null,guestsCanJoin:!1,canPeek:!1,showApps:!1,isPeeking:!1,showingPinned:!1,showReadReceipts:!0,showRightPanel:A.a.getSharedInstance().isOpenForRoom,joining:!1,atEndOfLiveTimeline:!0,atEndOfLiveTimelineInit:!1,showTopUnreadMessagesBar:!1,statusBarVisible:!1,canReact:!1,canReply:!1,useIRCLayout:k.a.getValue("useIRCLayout"),matrixClientIsReady:this.context&&this.context.isInitialSyncComplete()},this.dispatcherRef=f.a.register(this.onAction),this.context.on("Room",this.onRoom),this.context.on("Room.timeline",this.onRoomTimeline),this.context.on("Room.name",this.onRoomName),this.context.on("Room.accountData",this.onRoomAccountData),this.context.on("RoomState.events",this.onRoomStateEvents),this.context.on("RoomState.members",this.onRoomStateMember),this.context.on("Room.myMembership",this.onMyMembership),this.context.on("accountData",this.onAccountData),this.context.on("crypto.keyBackupStatus",this.onKeyBackupStatus),this.context.on("deviceVerificationChanged",this.onDeviceVerificationChanged),this.context.on("userTrustStatusChanged",this.onUserVerificationChanged),this.context.on("crossSigning.keysChanged",this.onCrossSigningKeysChanged),this.context.on("Event.decrypted",this.onEventDecrypted),this.context.on("event",this.onEvent),this.roomStoreToken=C.a.addListener(this.onRoomViewStoreUpdate),this.rightPanelStoreToken=A.a.getSharedInstance().addListener(this.onRightPanelStoreUpdate),O.a.on(X.b,this.onWidgetEchoStoreUpdate),Q.b.instance.on(X.b,this.onWidgetStoreUpdate),this.showReadReceiptsWatchRef=k.a.watchSetting("showReadReceipts",null,this.onReadReceiptsChange),this.layoutWatcherRef=k.a.watchSetting("useIRCLayout",null,this.onLayoutChange)}UNSAFE_componentWillMount(){this.onRoomViewStoreUpdate(!0)}getPermalinkCreatorForRoom(e){return this.permalinkCreators[e.roomId]||(this.permalinkCreators[e.roomId]=new d.a(e),this.state.room&&e.roomId===this.state.room.roomId?this.permalinkCreators[e.roomId].start():this.permalinkCreators[e.roomId].load()),this.permalinkCreators[e.roomId]}stopAllPermalinkCreators(){if(this.permalinkCreators)for(const e of Object.keys(this.permalinkCreators))this.permalinkCreators[e].stop()}setupRoom(e,t,n,o){!n&&t&&(this.props.autoJoin?this.onJoinButtonClicked():!e&&o?(console.info("Attempting to peek into room %s",t),this.setState({peekLoading:!0,isPeeking:!0}),this.context.peekInRoom(t).then(e=>{this.unmounted||(this.setState({room:e,peekLoading:!1}),this.onRoomLoaded(e))}).catch(e=>{if(!this.unmounted){if(this.setState({isPeeking:!1}),"M_GUEST_ACCESS_FORBIDDEN"!==e.errcode&&"M_FORBIDDEN"!==e.errcode)throw e;this.setState({peekLoading:!1})}})):e&&(this.context.stopPeeking(),this.setState({isPeeking:!1})))}shouldShowApps(e){if(!ne)return!1;return"false"===localStorage.getItem(e.roomId+"_hide_widget_drawer")}componentDidMount(){const e=this.getCallForRoom(),t=e?e.state:null;this.setState({callState:t}),window.addEventListener("beforeunload",this.onPageUnload),this.props.resizeNotifier&&this.props.resizeNotifier.on("middlePanelResized",this.onResize),this.onResize()}shouldComponentUpdate(e,t){return!v.a(this.props,e)||!v.a(this.state,t)}componentDidUpdate(){if(this.roomView.current){const e=this.roomView.current;e.ondrop||(e.addEventListener("drop",this.onDrop),e.addEventListener("dragover",this.onDragOver),e.addEventListener("dragleave",this.onDragLeaveOrEnd),e.addEventListener("dragend",this.onDragLeaveOrEnd))}this.messagePanel&&!this.state.atEndOfLiveTimelineInit&&this.setState({atEndOfLiveTimelineInit:!0,atEndOfLiveTimeline:this.messagePanel.isAtEndOfLiveTimeline()})}componentWillUnmount(){if(this.unmounted=!0,this.state.roomId&&x.a.setScrollState(this.state.roomId,this.getScrollState()),this.state.shouldPeek&&this.context.stopPeeking(),this.stopAllPermalinkCreators(),this.roomView.current){const e=this.roomView.current;e.removeEventListener("drop",this.onDrop),e.removeEventListener("dragover",this.onDragOver),e.removeEventListener("dragleave",this.onDragLeaveOrEnd),e.removeEventListener("dragend",this.onDragLeaveOrEnd)}f.a.unregister(this.dispatcherRef),this.context&&(this.context.removeListener("Room",this.onRoom),this.context.removeListener("Room.timeline",this.onRoomTimeline),this.context.removeListener("Room.name",this.onRoomName),this.context.removeListener("Room.accountData",this.onRoomAccountData),this.context.removeListener("RoomState.events",this.onRoomStateEvents),this.context.removeListener("Room.myMembership",this.onMyMembership),this.context.removeListener("RoomState.members",this.onRoomStateMember),this.context.removeListener("accountData",this.onAccountData),this.context.removeListener("crypto.keyBackupStatus",this.onKeyBackupStatus),this.context.removeListener("deviceVerificationChanged",this.onDeviceVerificationChanged),this.context.removeListener("userTrustStatusChanged",this.onUserVerificationChanged),this.context.removeListener("crossSigning.keysChanged",this.onCrossSigningKeysChanged),this.context.removeListener("Event.decrypted",this.onEventDecrypted),this.context.removeListener("event",this.onEvent)),window.removeEventListener("beforeunload",this.onPageUnload),this.props.resizeNotifier&&this.props.resizeNotifier.removeListener("middlePanelResized",this.onResize),this.roomStoreToken&&this.roomStoreToken.remove(),this.rightPanelStoreToken&&this.rightPanelStoreToken.remove(),O.a.removeListener(X.b,this.onWidgetEchoStoreUpdate),Q.b.instance.removeListener(X.b,this.onWidgetStoreUpdate),this.showReadReceiptsWatchRef&&k.a.unwatchSetting(this.showReadReceiptsWatchRef),this.updateRoomMembers.cancelPendingCall(),k.a.unwatchSetting(this.layoutWatcherRef)}async calculateRecommendedVersion(e){this.setState({upgradeRecommendation:await e.getRecommendedVersion()})}async loadMembersIfJoined(e){if(this.context.hasLazyLoadMembersEnabled()&&e&&"join"===e.getMyMembership())try{await e.loadMembersIfNeeded(),this.unmounted||this.setState({membersLoaded:!0})}catch(t){const n=`Fetching room members for ${e.roomId} failed. Room members will appear incomplete.`;console.error(n),console.error(t)}}calculatePeekRules(e){const t=e.currentState.getStateEvents("m.room.guest_access","");t&&"can_join"===t.getContent().guest_access&&this.setState({guestsCanJoin:!0});const n=e.currentState.getStateEvents("m.room.history_visibility","");n&&"world_readable"===n.getContent().history_visibility&&this.setState({canPeek:!0})}updatePreviewUrlVisibility({roomId:e}){const t=this.context.isRoomEncrypted(e)?"urlPreviewsEnabled_e2ee":"urlPreviewsEnabled";this.setState({showUrlPreview:k.a.getValue(t,e)})}async updateE2EStatus(e){this.context.isRoomEncrypted(e.roomId)&&(this.context.isCryptoEnabled()?this.setState({e2eStatus:await Object(F.b)(this.context,e)}):this.setState({e2eStatus:F.a.Warning}))}updateTint(){const e=this.state.room;if(!e)return;console.log("Tinter.tint from updateTint");const t=k.a.getValue("roomColor",e.roomId);_.a.tint(t.primary_color,t.secondary_color)}updatePermissions(e){if(e){const t=this.context.getUserId(),n="join"===e.getMyMembership()&&e.currentState.maySendEvent("m.reaction",t),o=e.maySendMessage();this.setState({canReact:n,canReply:o})}}checkDesktopNotifications(){this.state.room.getJoinedMemberCount()+this.state.room.getInvitedMemberCount()>1&&J.default.shouldShowPrompt()&&Object(Z.b)(!0)}updateDMState(){const e=this.state.room;if("join"!=e.getMyMembership())return;const t=e.getDMInviter();t&&E.c(e.roomId,t)}injectSticker(e,t,n){this.context.isGuest()?f.a.dispatch({action:"require_registration"}):h.a.sharedInstance().sendStickerContentToRoom(e,this.state.room.roomId,t,n,this.context).then(void 0,e=>{e.name})}handleSearchResult(e){const t=this.searchId;return this.setState({searchInProgress:!0}),e.then(e=>{if(te("search complete"),this.unmounted||!this.state.searching||this.searchId!=t)return void console.error("Discarding stale search results");let n=e.highlights;n.indexOf(this.state.searchTerm)<0&&(n=n.concat(this.state.searchTerm)),n=n.sort((function(e,t){return t.length-e.length})),this.setState({searchHighlights:n,searchResults:e})},e=>{const t=m.getComponent("dialogs.ErrorDialog");console.error("Search failed",e),p.a.createTrackedDialog("Search failed","",t,{title:Object(u.a)("Search failed"),description:e&&e.message?e.message:Object(u.a)("Server may be unavailable, overloaded, or search timed out :(")})}).finally(()=>{this.setState({searchInProgress:!1})})}getSearchResultTiles(){const e=m.getComponent("rooms.SearchResultTile"),t=m.getComponent("elements.Spinner"),n=[];var o,r;(this.state.searchInProgress&&n.push(a.a.createElement("li",{key:"search-spinner"},a.a.createElement(t,null))),this.state.searchResults.next_batch)||((null===(o=this.state.searchResults)||void 0===o||null===(r=o.results)||void 0===r?void 0:r.length)?n.push(a.a.createElement("li",{key:"search-top-marker"},a.a.createElement("h2",{className:"mx_RoomView_topMarker"},Object(u.a)("No more results")))):n.push(a.a.createElement("li",{key:"search-top-marker"},a.a.createElement("h2",{className:"mx_RoomView_topMarker"},Object(u.a)("No results")))));const i=()=>{const e=this.searchResultsPanel.current;e&&e.checkScroll()};let s;for(let t=((null===(c=this.state.searchResults)||void 0===c||null===(l=c.results)||void 0===l?void 0:l.length)||0)-1;t>=0;t--){var c,l;const o=this.state.searchResults.results[t],r=o.context.getEvent(),d=r.getRoomId(),h=this.context.getRoom(d);if(!h){console.log("Hiding search result from an unknown room",d);continue}if(!Object(I.b)(r))continue;"All"===this.state.searchScope&&d!==s&&(n.push(a.a.createElement("li",{key:r.getId()+"-room"},a.a.createElement("h2",null,Object(u.a)("Room"),": ",h.name))),s=d);const p="#/room/"+d+"/"+r.getId();n.push(a.a.createElement(e,{key:r.getId(),searchResult:o,searchHighlights:this.state.searchHighlights,resultLink:p,permalinkCreator:this.getPermalinkCreatorForRoom(h),onHeightChanged:i}))}return n}getScrollState(){const e=this.messagePanel;if(!e)return null;if(this.state.atEndOfLiveTimeline)return null;const t=e.getScrollState();return!t||t.stuckAtBottom?null:{focussedEvent:t.trackedScrollToken,pixelOffset:t.pixelOffset}}getCallForRoom(){return this.state.room?g.b.sharedInstance().getCallForRoom(this.state.room.roomId):null}getOldRoom(){const e=this.state.room.currentState.getStateEvents("m.room.create","");return e&&e.getContent().predecessor?this.context.getRoom(e.getContent().predecessor.room_id):null}getHiddenHighlightCount(){const e=this.getOldRoom();return e?e.getUnreadNotificationCount("highlight"):0}render(){if(!this.state.room){const n=!this.state.matrixClientIsReady||this.state.roomLoading||this.state.peekLoading;if(n){const e=!this.state.matrixClientIsReady||!this.state.roomId||this.state.peekLoading;return a.a.createElement("div",{className:"mx_RoomView"},a.a.createElement(B.a,null,a.a.createElement(j.a,{canPreview:!1,previewLoading:e&&!this.state.roomLoadError,error:this.state.roomLoadError,loading:n,joining:this.state.joining,oobData:this.props.oobData})))}{var e,t;let n=void 0;this.props.oobData&&(n=this.props.oobData.inviterName);const o=null===(e=this.props.threepidInvite)||void 0===e?void 0:e.toEmail,r=this.state.roomAlias;return a.a.createElement("div",{className:"mx_RoomView"},a.a.createElement(B.a,null,a.a.createElement(j.a,{onJoinClick:this.onJoinButtonClicked,onForgetClick:this.onForgetClick,onRejectClick:this.onRejectThreepidInviteButtonClicked,canPreview:!1,error:this.state.roomLoadError,roomAlias:r,joining:this.state.joining,inviterName:n,invitedEmail:o,oobData:this.props.oobData,signUrl:null===(t=this.props.threepidInvite)||void 0===t?void 0:t.signUrl,room:this.state.room})))}}const n=this.state.room.getMyMembership();if("invite"==n){if(this.state.joining||this.state.rejecting)return a.a.createElement(B.a,null,a.a.createElement(j.a,{canPreview:!1,error:this.state.roomLoadError,joining:this.state.joining,rejecting:this.state.rejecting}));{const e=this.context.credentials.userId,t=this.state.room.getMember(e),n=t?t.events.member:null;let o=Object(u.a)("Unknown");return n&&(o=n.sender?n.sender.name:n.getSender()),a.a.createElement("div",{className:"mx_RoomView"},a.a.createElement(B.a,null,a.a.createElement(j.a,{onJoinClick:this.onJoinButtonClicked,onForgetClick:this.onForgetClick,onRejectClick:this.onRejectButtonClicked,onRejectAndIgnoreClick:this.onRejectAndIgnoreClick,inviterName:o,canPreview:!1,joining:this.state.joining,room:this.state.room})))}}let o=null;{const e=this.getCallForRoom();e&&"ended"!==this.state.callState&&"ringing"!==this.state.callState&&(o=e)}const r=c()({mx_RoomView_scrollheader:!0});let i,s=!0;if(h.a.sharedInstance().getCurrentUploads().length>0){const e=m.getComponent("structures.UploadBar");i=a.a.createElement(e,{room:this.state.room})}else if(!this.state.searchResults){const e=m.getComponent("structures.RoomStatusBar");s=this.state.statusBarVisible,i=a.a.createElement(e,{room:this.state.room,isPeeking:"join"!==n,onInviteClick:this.onInviteButtonClick,onVisible:this.onStatusBarVisible,onHidden:this.onStatusBarHidden})}const l=this.state.upgradeRecommendation,d=l&&l.needsUpgrade&&this.state.room.userMayUpgradeRoom(this.context.credentials.userId),p=this.getHiddenHighlightCount();let g,f=null,_=!1;if(this.state.forwardingEvent)f=a.a.createElement(G.a,{onCancelClick:this.onCancelClick});else if(this.state.searching)_=!0,f=a.a.createElement(q.a,{searchInProgress:this.state.searchInProgress,onCancelClick:this.onCancelSearchClick,onSearch:this.onSearch,isRoomEncrypted:this.context.isRoomEncrypted(this.state.room.roomId)});else if(d)f=a.a.createElement(H.a,{room:this.state.room,recommendation:l}),_=!0;else if(this.state.showingPinned)_=!0,f=a.a.createElement(V.a,{room:this.state.room,onCancelClick:this.onPinnedClick});else if("join"!==n){var b;let e=void 0;this.props.oobData&&(e=this.props.oobData.inviterName);const t=null===(b=this.props.threepidInvite)||void 0===b?void 0:b.toEmail;if(_=!0,g=a.a.createElement(j.a,{onJoinClick:this.onJoinButtonClicked,onForgetClick:this.onForgetClick,onRejectClick:this.onRejectThreepidInviteButtonClicked,joining:this.state.joining,inviterName:e,invitedEmail:t,oobData:this.props.oobData,canPreview:this.state.canPeek,room:this.state.room}),!this.state.canPeek)return a.a.createElement("div",{className:"mx_RoomView"},g)}else p>0&&(f=a.a.createElement(R.a,{element:"div",className:"mx_RoomView_auxPanel_hiddenHighlights",onClick:this.onHiddenHighlightsClick},Object(u.a)("You have %(count)s unread notifications in a prior version of this room.",{count:p})));const v=a.a.createElement(z.a,{room:this.state.room,fullHeight:!1,userId:this.context.credentials.userId,draggingFile:this.state.draggingFile,maxHeight:this.state.auxPanelMaxHeight,showApps:this.state.showApps,onResize:this.onResize,resizeNotifier:this.props.resizeNotifier},f);let E,y;if("join"===n&&!this.state.searchResults){const e=m.getComponent("rooms.MessageComposer");E=a.a.createElement(e,{room:this.state.room,callState:this.state.callState,showApps:this.state.showApps,e2eStatus:this.state.e2eStatus,resizeNotifier:this.props.resizeNotifier,replyToEvent:this.state.replyToEvent,permalinkCreator:this.getPermalinkCreatorForRoom(this.state.room)})}let S;this.state.searchResults&&(y={searchTerm:this.state.searchTerm,searchScope:this.state.searchScope,searchCount:this.state.searchResults.count});let C=!1;this.state.searchResults&&(S=void 0===this.state.searchResults.count?a.a.createElement("div",{className:"mx_RoomView_messagePanel mx_RoomView_messagePanelSearchSpinner"}):a.a.createElement(L.a,{ref:this.searchResultsPanel,className:"mx_RoomView_messagePanel mx_RoomView_searchResultsPanel mx_GroupLayout",onFillRequest:this.onSearchResultsFillRequest,resizeNotifier:this.props.resizeNotifier},a.a.createElement("li",{className:r}),this.getSearchResultTiles()),C=!0);const x=this.state.isInitialEventHighlighted;let O=null;this.state.forwardingEvent?O=this.state.forwardingEvent.getId():x&&(O=this.state.initialEventId);const A=c()("mx_RoomView_messagePanel",{mx_IRCLayout:this.state.useIRCLayout,mx_GroupLayout:!this.state.useIRCLayout}),I=a.a.createElement(U.a,{ref:this.gatherTimelinePanelRef,timelineSet:this.state.room.getUnfilteredTimelineSet(),showReadReceipts:this.state.showReadReceipts,manageReadReceipts:!this.state.isPeeking,manageReadMarkers:!this.state.isPeeking,hidden:C,highlightedEventId:O,eventId:this.state.initialEventId,eventPixelOffset:this.state.initialEventPixelOffset,onScroll:this.onMessageListScroll,onReadMarkerUpdated:this.updateTopUnreadMessagesBar,showUrlPreview:this.state.showUrlPreview,className:A,membersLoaded:this.state.membersLoaded,permalinkCreator:this.getPermalinkCreatorForRoom(this.state.room),resizeNotifier:this.props.resizeNotifier,showReactions:!0,useIRCLayout:this.state.useIRCLayout});let N,F=null;if(this.state.showTopUnreadMessagesBar&&!this.state.searchResults){const e=m.getComponent("rooms.TopUnreadMessagesBar");F=a.a.createElement(e,{onScrollUpClick:this.jumpToReadMarker,onCloseClick:this.forgetReadMarker})}if(!this.state.atEndOfLiveTimeline&&!this.state.searchResults){const e=m.getComponent("rooms.JumpToBottomButton");N=a.a.createElement(e,{highlight:this.state.room.getUnreadNotificationCount("highlight")>0,numUnreadMessages:this.state.numUnreadMessages,onScrollToBottomClick:this.jumpToLiveTimeline})}const M=c()("mx_RoomView_statusArea",{mx_RoomView_statusArea_expanded:s}),P=this.state.room&&this.state.showRightPanel?a.a.createElement(w.a,{room:this.state.room,resizeNotifier:this.props.resizeNotifier}):null,Y=c()("mx_RoomView_timeline",{mx_RoomView_timeline_rr_enabled:this.state.showReadReceipts}),$=c()("mx_RoomView",{mx_RoomView_inCall:Boolean(o)}),Q=k.a.getValue("showChatEffects");return a.a.createElement(D.a.Provider,{value:this.state},a.a.createElement("main",{className:$,ref:this.roomView,onKeyDown:this.onReactKeyDown},Q&&this.roomView.current&&a.a.createElement(W.a,{roomWidth:this.roomView.current.offsetWidth}),a.a.createElement(B.a,null,a.a.createElement(K.a,{room:this.state.room,searchInfo:y,oobData:this.props.oobData,inRoom:"join"===n,onSearchClick:this.onSearchClick,onSettingsClick:this.onSettingsClick,onPinnedClick:this.onPinnedClick,onCancelClick:f&&!_?this.onCancelClick:null,onForgetClick:"leave"===n?this.onForgetClick:null,onLeaveClick:"join"===n?this.onLeaveClick:null,e2eStatus:this.state.e2eStatus,onAppsClick:this.state.hasPinnedWidgets?this.onAppsClick:null,appsShown:this.state.showApps}),a.a.createElement(T.a,{panel:P,resizeNotifier:this.props.resizeNotifier},a.a.createElement("div",{className:"mx_RoomView_body"},v,a.a.createElement("div",{className:Y},F,N,I,S),a.a.createElement("div",{className:M},a.a.createElement("div",{className:"mx_RoomView_statusAreaBox"},a.a.createElement("div",{className:"mx_RoomView_statusAreaBox_line"}),i)),g,E)))))}}r()(oe,"contextType",N.a)}).call(this,n(149).setImmediate)},function(e,t,n){var o=n(1333);e.exports=function(e){if(137!==e[0])throw new Error("Invalid .png file header");if(80!==e[1])throw new Error("Invalid .png file header");if(78!==e[2])throw new Error("Invalid .png file header");if(71!==e[3])throw new Error("Invalid .png file header");if(13!==e[4])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(10!==e[5])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(26!==e[6])throw new Error("Invalid .png file header");if(10!==e[7])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");var t=!1,n=[],s=8;for(;s<e.length;){r[3]=e[s++],r[2]=e[s++],r[1]=e[s++],r[0]=e[s++];var c=a[0]+4,l=new Uint8Array(c);l[0]=e[s++],l[1]=e[s++],l[2]=e[s++],l[3]=e[s++];var u=String.fromCharCode(l[0])+String.fromCharCode(l[1])+String.fromCharCode(l[2])+String.fromCharCode(l[3]);if(!n.length&&"IHDR"!==u)throw new Error("IHDR header missing");if("IEND"===u){t=!0,n.push({name:u,data:new Uint8Array(0)});break}for(var d=4;d<c;d++)l[d]=e[s++];r[3]=e[s++],r[2]=e[s++],r[1]=e[s++],r[0]=e[s++];var h=i[0];if(o.buf(l)!==h)throw new Error("CRC values for "+u+" header do not match, PNG file is likely corrupted");var p=new Uint8Array(l.buffer.slice(4));n.push({name:u,data:p})}if(!t)throw new Error(".png file ended prematurely: no IEND header was found");return n};var r=new Uint8Array(4),i=new Int32Array(r.buffer),a=new Uint32Array(r.buffer)},function(e,t,n){(function(e){var n;n=function(t){t.version="0.3.0";var n=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),o=void 0!==e;function r(e){for(var t=-1,o=0,r=e.length-7;o<r;)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])];for(;o<r+7;)t=t>>>8^n[255&(t^e[o++])];return-1^t}t.table=n,t.bstr=function(t){if(t.length>32768&&o)return r(new e(t));for(var i=-1,a=t.length-1,s=0;s<a;)i=n[255&(i^t.charCodeAt(s++))]^i>>>8,i=n[255&(i^t.charCodeAt(s++))]^i>>>8;return s===a&&(i=i>>>8^n[255&(i^t.charCodeAt(s))]),-1^i},t.buf=function(e){if(e.length>1e4)return r(e);for(var t=-1,o=0,i=e.length-3;o<i;)t=(t=(t=(t=t>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])];for(;o<i+3;)t=t>>>8^n[255&(t^e[o++])];return-1^t},t.str=function(e){for(var t,o,r=-1,i=0,a=e.length;i<a;)(t=e.charCodeAt(i++))<128?r=r>>>8^n[255&(r^t)]:t<2048?r=(r=r>>>8^n[255&(r^(192|t>>6&31))])>>>8^n[255&(r^(128|63&t))]:t>=55296&&t<57344?(t=64+(1023&t),o=1023&e.charCodeAt(i++),r=(r=(r=(r=r>>>8^n[255&(r^(240|t>>8&7))])>>>8^n[255&(r^(128|t>>2&63))])>>>8^n[255&(r^(128|o>>6&15|3&t))])>>>8^n[255&(r^(128|63&o))]):r=(r=(r=r>>>8^n[255&(r^(224|t>>12&15))])>>>8^n[255&(r^(128|t>>6&63))])>>>8^n[255&(r^(128|63&t))];return-1^r}},"undefined"==typeof DO_NOT_EXPORT_CRC?n(t):n({})}).call(this,n(31).Buffer)},function(e,t,n){var o;!function(r){"use strict";var i=r.HTMLCanvasElement&&r.HTMLCanvasElement.prototype,a=r.Blob&&function(){try{return Boolean(new Blob)}catch(e){return!1}}(),s=a&&r.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(e){return!1}}(),c=r.BlobBuilder||r.WebKitBlobBuilder||r.MozBlobBuilder||r.MSBlobBuilder,l=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,u=(a||c)&&r.atob&&r.ArrayBuffer&&r.Uint8Array&&function(e){var t,n,o,r,i,u,d,h,p;if(!(t=e.match(l)))throw new Error("invalid data URI");for(n=t[2]?t[1]:"text/plain"+(t[3]||";charset=US-ASCII"),o=!!t[4],r=e.slice(t[0].length),i=o?atob(r):decodeURIComponent(r),u=new ArrayBuffer(i.length),d=new Uint8Array(u),h=0;h<i.length;h+=1)d[h]=i.charCodeAt(h);return a?new Blob([s?d:u],{type:n}):((p=new c).append(u),p.getBlob(n))};r.HTMLCanvasElement&&!i.toBlob&&(i.mozGetAsFile?i.toBlob=function(e,t,n){var o=this;setTimeout((function(){n&&i.toDataURL&&u?e(u(o.toDataURL(t,n))):e(o.mozGetAsFile("blob",t))}))}:i.toDataURL&&u&&(i.msToBlob?i.toBlob=function(e,t,n){var o=this;setTimeout((function(){(t&&"image/png"!==t||n)&&i.toDataURL&&u?e(u(o.toDataURL(t,n))):e(o.msToBlob(t))}))}:i.toBlob=function(e,t,n){var o=this;setTimeout((function(){e(u(o.toDataURL(t,n)))}))})),void 0===(o=function(){return u}.call(t,n,t,e))||(e.exports=o)}(window)},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return f}));var o=n(213),r=n(86);async function i(e,t){const n=r.a.get(),o={limit:10};void 0!==t&&(o.rooms=[t]);const i={search_categories:{room_events:{search_term:e,filter:o,order_by:"recent",event_context:{before_limit:1,after_limit:1,include_profile:!0}}}};return{response:await n.search({body:i}),query:i}}async function a(e,t){const n=r.a.get(),o=await i(e,t),a={_query:o.query,results:[],highlights:[]};return n._processRoomEventsSearch(a,o.response)}function s(e,t){const n=e.result,o=t.result;return n.origin_server_ts>o.origin_server_ts?-1:n.origin_server_ts<o.origin_server_ts?1:0}async function c(e,t,n=!0){const r=o.a.get(),i={search_term:e,before_limit:1,after_limit:1,limit:10,order_by_recency:!0,room_id:void 0};void 0!==t&&(i.room_id=t);const a=await r.search(i);i.next_batch=a.next_batch;return{response:a,query:i}}function l(e,t){try{const n=e.results[e.results.length-1].result,o=t.results[t.results.length-1].result;return n.origin_server_ts<=o.origin_server_ts?-1:1}catch{return 0}}function u(e,t,n,o){const r=n.concat(o).sort(s);t.results=r.slice(0,10),e.cachedEvents=r.slice(10)}function d(e,t,n){const o=function(e,t,n){const o={},r=e.cachedEvents;let i=e.oldestEventFrom;return o.highlights=e.highlights,t&&n&&n.results?(l(t,n)<0&&(i="local"),u(e,o,t.results,n.results),o.highlights=t.highlights.concat(n.highlights)):t?(l(t,r)<0&&(i="local"),u(e,o,t.results,r)):n&&n.results?(l(n,r)<0&&(i="server"),u(e,o,n.results,r)):(o.results=r,e.cachedEvents=[]),e.oldestEventFrom=i,o}(e,t,n);return e.count?o.count=e.count:o.count=t.count+n.count,t&&(e.seshatQuery.next_batch=t.next_batch),n&&(e.serverSideNextBatch=n.next_batch),e.seshatQuery.next_batch?o.next_batch=e.seshatQuery.next_batch:e.serverSideNextBatch&&(o.next_batch=e.serverSideNextBatch),!o.next_batch&&e.cachedEvents.length>0&&(o.next_batch="cached"),o}function h(e=[]){for(let t=0;t<e.length;t++){const n=e[t].context.getTimeline();for(let e=0;e<n.length;e++){const t=n[e];t.event.curve25519Key&&(t.makeEncrypted("m.room.encrypted",{algorithm:t.event.algorithm},t.event.curve25519Key,t.event.ed25519Key),t._forwardingCurve25519KeyChain=t.event.forwardingCurve25519KeyChain,delete t.event.curve25519Key,delete t.event.ed25519Key,delete t.event.algorithm,delete t.event.forwardingCurve25519KeyChain)}}}function p(e,t){let n;return n=void 0!==t?r.a.get().isRoomEncrypted(t)?async function(e,t){const n={results:[],highlights:[]};if(""===e)return n;const o=await c(e,t);n.seshatQuery=o.query;const i={search_categories:{room_events:o.response}},a=r.a.get()._processRoomEventsSearch(n,i);return h(a.results),a}(e,t):a(e,t):async function(e){const t=r.a.get(),n=i(e),o=c(e);await Promise.all([n,o]);const a=await o,s=await n,l=s.query,u=s.response,p=a.query,m=a.response,g={seshatQuery:p,_query:l,serverSideNextBatch:u.next_batch,cachedEvents:[],oldestEventFrom:"server",results:[],highlights:[]},f={search_categories:{room_events:d(g,m,u.search_categories.room_events)}},_=t._processRoomEventsSearch(g,f);return h(_.results),_}(e),n}function m(e){const t=r.a.get(),n=e.seshatQuery,i=e._query;if(n){if(i){const t=async function(e){const t=o.a.get(),n=r.a.get(),i=e.seshatQuery,a=e.oldestEventFrom;let s,c,l;if(!i.next_batch||e.serverSideNextBatch&&"server"!==a||(s=await t.search(i)),e.serverSideNextBatch&&("local"===a||!i.next_batch)){const t={body:e._query,next_batch:e.serverSideNextBatch};c=await n.search(t)}c&&(l=c.search_categories.room_events);const u={search_categories:{room_events:d(e,s,l)}},p=e.results?e.results.length:0,m=n._processRoomEventsSearch(e,u),g=m.results.length-p;return h(m.results.slice(Math.max(m.results.length-g,0))),e.pendingRequest=null,m}(e);return e.pendingRequest=t,t}{const t=async function(e){const t=o.a.get(),n=e.seshatQuery,i=await t.search(n);e.seshatQuery.next_batch=i.next_batch;const a=i.results.length,s={search_categories:{room_events:i}},c=r.a.get()._processRoomEventsSearch(e,s);return h(c.results.slice(Math.max(c.results.length-a,0))),e.pendingRequest=null,c}(e);return e.pendingRequest=t,t}}return t.backPaginateRoomEventsSearch(e)}function g(e){const t=o.a.get(),n=r.a.get();return e.pendingRequest?e.pendingRequest:null===t?n.backPaginateRoomEventsSearch(e):m(e)}function f(e,t){return null===o.a.get()?a(e,t):p(e,t)}},function(e,t,n){var o=n(1337),r=n(1338),i=n(1355),a=n(1356);function s(e,t,n,i,a){var s=[].slice.call(arguments,1),c=s.length,l="function"==typeof s[c-1];if(!l&&!o())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=t,t=i=void 0):2!==c||t.getContext||(i=n,n=t,t=void 0),new Promise((function(o,a){try{var s=r.create(n,i);o(e(s,t,i))}catch(e){a(e)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(a=n,n=t,t=i=void 0):3===c&&(t.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=n,n=t,t=void 0));try{var u=r.create(n,i);a(null,e(u,t,i))}catch(e){a(e)}}t.create=r.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return a.render(e,n)}))},function(e,t){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},function(e,t,n){var o=n(257),r=n(217),i=n(506),a=n(1339),s=n(1340),c=n(1341),l=n(1342),u=n(1343),d=n(756),h=n(1344),p=n(1347),m=n(1348),g=n(218),f=n(1349),_=n(505);function b(e,t,n){var o,r,i=e.size,a=m.getEncodedBits(t,n);for(o=0;o<15;o++)r=1==(a>>o&1),o<6?e.set(o,8,r,!0):o<8?e.set(o+1,8,r,!0):e.set(i-15+o,8,r,!0),o<8?e.set(8,i-o-1,r,!0):o<9?e.set(8,15-o-1+1,r,!0):e.set(8,15-o-1,r,!0);e.set(i-8,8,1,!0)}function v(e,t,n){var i=new a;n.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),g.getCharCountIndicator(t.mode,e)),t.write(i)}));var s=8*(r.getSymbolTotalCodewords(e)-d.getTotalCodewordsCount(e,t));for(i.getLengthInBits()+4<=s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);for(var c=(s-i.getLengthInBits())/8,l=0;l<c;l++)i.put(l%2?17:236,8);return function(e,t,n){for(var i=r.getSymbolTotalCodewords(t),a=d.getTotalCodewordsCount(t,n),s=i-a,c=d.getBlocksCount(t,n),l=c-i%c,u=Math.floor(i/c),p=Math.floor(s/c),m=p+1,g=u-p,f=new h(g),_=0,b=new Array(c),v=new Array(c),E=0,y=o.from(e.buffer),S=0;S<c;S++){var T=S<l?p:m;b[S]=y.slice(_,_+T),v[S]=f.encode(b[S]),_+=T,E=Math.max(E,T)}var w,C,x=o.alloc(i),O=0;for(w=0;w<E;w++)for(C=0;C<c;C++)w<b[C].length&&(x[O++]=b[C][w]);for(w=0;w<g;w++)for(C=0;C<c;C++)x[O++]=v[C][w];return x}(i,e,t)}function E(e,t,n,o){var i;if(_(e))i=f.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");var a=t;if(!a){var d=f.rawSplit(e);a=p.getBestVersionForData(d,n)}i=f.fromString(e,a||40)}var h=p.getBestVersionForData(i,n);if(!h)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<h)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+h+".\n")}else t=h;var m=v(t,n,i),g=r.getSymbolSize(t),E=new s(g);return function(e,t){for(var n=e.size,o=l.getPositions(t),r=0;r<o.length;r++)for(var i=o[r][0],a=o[r][1],s=-1;s<=7;s++)if(!(i+s<=-1||n<=i+s))for(var c=-1;c<=7;c++)a+c<=-1||n<=a+c||(s>=0&&s<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===s||6===s)||s>=2&&s<=4&&c>=2&&c<=4?e.set(i+s,a+c,!0,!0):e.set(i+s,a+c,!1,!0))}(E,t),function(e){for(var t=e.size,n=8;n<t-8;n++){var o=n%2==0;e.set(n,6,o,!0),e.set(6,n,o,!0)}}(E),function(e,t){for(var n=c.getPositions(t),o=0;o<n.length;o++)for(var r=n[o][0],i=n[o][1],a=-2;a<=2;a++)for(var s=-2;s<=2;s++)-2===a||2===a||-2===s||2===s||0===a&&0===s?e.set(r+a,i+s,!0,!0):e.set(r+a,i+s,!1,!0)}(E,t),b(E,n,0),t>=7&&function(e,t){for(var n,o,r,i=e.size,a=p.getEncodedBits(t),s=0;s<18;s++)n=Math.floor(s/3),o=s%3+i-8-3,r=1==(a>>s&1),e.set(n,o,r,!0),e.set(o,n,r,!0)}(E,t),function(e,t){for(var n=e.size,o=-1,r=n-1,i=7,a=0,s=n-1;s>0;s-=2)for(6===s&&s--;;){for(var c=0;c<2;c++)if(!e.isReserved(r,s-c)){var l=!1;a<t.length&&(l=1==(t[a]>>>i&1)),e.set(r,s-c,l),-1===--i&&(a++,i=7)}if((r+=o)<0||n<=r){r-=o,o=-o;break}}}(E,m),isNaN(o)&&(o=u.getBestMask(E,b.bind(null,E,n))),u.applyMask(o,E),b(E,n,o),{modules:E,version:t,errorCorrectionLevel:n,maskPattern:o,segments:i}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");var n,o,a=i.M;return void 0!==t&&(a=i.from(t.errorCorrectionLevel,i.M),n=p.from(t.version),o=u.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),E(e,n,a,o)}},function(e,t){function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=n},function(e,t,n){var o=n(257);function r(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=o.alloc(e*e),this.reservedBit=o.alloc(e*e)}r.prototype.set=function(e,t,n,o){var r=e*this.size+t;this.data[r]=n,o&&(this.reservedBit[r]=!0)},r.prototype.get=function(e,t){return this.data[e*this.size+t]},r.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},r.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=r},function(e,t,n){var o=n(217).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,n=o(e),r=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7],a=1;a<t-1;a++)i[a]=i[a-1]-r;return i.push(6),i.reverse()},t.getPositions=function(e){for(var n=[],o=t.getRowColCoords(e),r=o.length,i=0;i<r;i++)for(var a=0;a<r;a++)0===i&&0===a||0===i&&a===r-1||i===r-1&&0===a||n.push([o[i],o[a]]);return n}},function(e,t,n){var o=n(217).getSymbolSize;t.getPositions=function(e){var t=o(e);return[[0,0],[t-7,0],[0,t-7]]}},function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var n=3,o=3,r=40,i=10;function a(e,n,o){switch(e){case t.Patterns.PATTERN000:return(n+o)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return o%3==0;case t.Patterns.PATTERN011:return(n+o)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(o/3))%2==0;case t.Patterns.PATTERN101:return n*o%2+n*o%3==0;case t.Patterns.PATTERN110:return(n*o%2+n*o%3)%2==0;case t.Patterns.PATTERN111:return(n*o%3+(n+o)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,o=0,r=0,i=0,a=null,s=null,c=0;c<t;c++){r=i=0,a=s=null;for(var l=0;l<t;l++){var u=e.get(c,l);u===a?r++:(r>=5&&(o+=n+(r-5)),a=u,r=1),(u=e.get(l,c))===s?i++:(i>=5&&(o+=n+(i-5)),s=u,i=1)}r>=5&&(o+=n+(r-5)),i>=5&&(o+=n+(i-5))}return o},t.getPenaltyN2=function(e){for(var t=e.size,n=0,r=0;r<t-1;r++)for(var i=0;i<t-1;i++){var a=e.get(r,i)+e.get(r,i+1)+e.get(r+1,i)+e.get(r+1,i+1);4!==a&&0!==a||n++}return n*o},t.getPenaltyN3=function(e){for(var t=e.size,n=0,o=0,i=0,a=0;a<t;a++){o=i=0;for(var s=0;s<t;s++)o=o<<1&2047|e.get(a,s),s>=10&&(1488===o||93===o)&&n++,i=i<<1&2047|e.get(s,a),s>=10&&(1488===i||93===i)&&n++}return n*r},t.getPenaltyN4=function(e){for(var t=0,n=e.data.length,o=0;o<n;o++)t+=e.data[o];return Math.abs(Math.ceil(100*t/n/5)-10)*i},t.applyMask=function(e,t){for(var n=t.size,o=0;o<n;o++)for(var r=0;r<n;r++)t.isReserved(r,o)||t.xor(r,o,a(e,r,o))},t.getBestMask=function(e,n){for(var o=Object.keys(t.Patterns).length,r=0,i=1/0,a=0;a<o;a++){n(a),t.applyMask(a,e);var s=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),s<i&&(i=s,r=a)}return r}},function(e,t,n){var o=n(257),r=n(1345),i=n(31).Buffer;function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=o.alloc(this.degree),n=i.concat([e,t],e.length+this.degree),a=r.mod(n,this.genPoly),s=this.degree-a.length;if(s>0){var c=o.alloc(this.degree);return a.copy(c,s),c}return a},e.exports=a},function(e,t,n){var o=n(257),r=n(1346);t.mul=function(e,t){for(var n=o.alloc(e.length+t.length-1),i=0;i<e.length;i++)for(var a=0;a<t.length;a++)n[i+a]^=r.mul(e[i],t[a]);return n},t.mod=function(e,t){for(var n=o.from(e);n.length-t.length>=0;){for(var i=n[0],a=0;a<t.length;a++)n[a]^=r.mul(t[a],i);for(var s=0;s<n.length&&0===n[s];)s++;n=n.slice(s)}return n},t.generateECPolynomial=function(e){for(var n=o.from([1]),i=0;i<e;i++)n=t.mul(n,[1,r.exp(i)]);return n}},function(e,t,n){var o=n(257),r=o.alloc(512),i=o.alloc(256);!function(){for(var e=1,t=0;t<255;t++)r[t]=e,i[e]=t,256&(e<<=1)&&(e^=285);for(t=255;t<512;t++)r[t]=r[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return i[e]},t.exp=function(e){return r[e]},t.mul=function(e,t){return 0===e||0===t?0:r[i[e]+i[t]]}},function(e,t,n){var o=n(217),r=n(756),i=n(506),a=n(218),s=n(757),c=n(505),l=o.getBCHDigit(7973);function u(e,t){return a.getCharCountIndicator(e,t)+4}function d(e,t){var n=0;return e.forEach((function(e){var o=u(e.mode,t);n+=o+e.getBitsLength()})),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=a.BYTE);var i=8*(o.getSymbolTotalCodewords(e)-r.getTotalCodewordsCount(e,t));if(n===a.MIXED)return i;var c=i-u(n,e);switch(n){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){var o,r=i.from(n,i.M);if(c(e)){if(e.length>1)return function(e,n){for(var o=1;o<=40;o++){if(d(e,o)<=t.getCapacity(o,n,a.MIXED))return o}}(e,r);if(0===e.length)return 1;o=e[0]}else o=e;return function(e,n,o){for(var r=1;r<=40;r++)if(n<=t.getCapacity(r,o,e))return r}(o.mode,o.getLength(),r)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;o.getBCHDigit(t)-l>=0;)t^=7973<<o.getBCHDigit(t)-l;return e<<12|t}},function(e,t,n){var o=n(217),r=o.getBCHDigit(1335);t.getEncodedBits=function(e,t){for(var n=e.bit<<3|t,i=n<<10;o.getBCHDigit(i)-r>=0;)i^=1335<<o.getBCHDigit(i)-r;return 21522^(n<<10|i)}},function(e,t,n){var o=n(218),r=n(1350),i=n(1351),a=n(1352),s=n(1353),c=n(758),l=n(217),u=n(1354);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){for(var o,r=[];null!==(o=e.exec(n));)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function p(e){var t,n,r=h(c.NUMERIC,o.NUMERIC,e),i=h(c.ALPHANUMERIC,o.ALPHANUMERIC,e);return l.isKanjiModeEnabled()?(t=h(c.BYTE,o.BYTE,e),n=h(c.KANJI,o.KANJI,e)):(t=h(c.BYTE_KANJI,o.BYTE,e),n=[]),r.concat(i,t,n).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function m(e,t){switch(t){case o.NUMERIC:return r.getBitsLength(e);case o.ALPHANUMERIC:return i.getBitsLength(e);case o.KANJI:return s.getBitsLength(e);case o.BYTE:return a.getBitsLength(e)}}function g(e,t){var n,c=o.getBestModeForData(e);if((n=o.from(t,c))!==o.BYTE&&n.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+o.toString(n)+".\n Suggested mode is: "+o.toString(c));switch(n!==o.KANJI||l.isKanjiModeEnabled()||(n=o.BYTE),n){case o.NUMERIC:return new r(e);case o.ALPHANUMERIC:return new i(e);case o.KANJI:return new s(e);case o.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e}),[])},t.fromString=function(e,n){for(var r=function(e,t){for(var n={},r={start:{}},i=["start"],a=0;a<e.length;a++){for(var s=e[a],c=[],l=0;l<s.length;l++){var u=s[l],d=""+a+l;c.push(d),n[d]={node:u,lastCount:0},r[d]={};for(var h=0;h<i.length;h++){var p=i[h];n[p]&&n[p].node.mode===u.mode?(r[p][d]=m(n[p].lastCount+u.length,u.mode)-m(n[p].lastCount,u.mode),n[p].lastCount+=u.length):(n[p]&&(n[p].lastCount=u.length),r[p][d]=m(u.length,u.mode)+4+o.getCharCountIndicator(u.mode,t))}}i=c}for(h=0;h<i.length;h++)r[i[h]].end=0;return{map:r,table:n}}(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];switch(r.mode){case o.NUMERIC:t.push([r,{data:r.data,mode:o.ALPHANUMERIC,length:r.length},{data:r.data,mode:o.BYTE,length:r.length}]);break;case o.ALPHANUMERIC:t.push([r,{data:r.data,mode:o.BYTE,length:r.length}]);break;case o.KANJI:t.push([r,{data:r.data,mode:o.BYTE,length:d(r.data)}]);break;case o.BYTE:t.push([{data:r.data,mode:o.BYTE,length:d(r.data)}])}}return t}(p(e,l.isKanjiModeEnabled())),n),i=u.find_path(r.map,"start","end"),a=[],s=1;s<i.length-1;s++)a.push(r.table[i[s]].node);return t.fromArray(function(e){return e.reduce((function(e,t){var n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(a))},t.rawSplit=function(e){return t.fromArray(p(e,l.isKanjiModeEnabled()))}},function(e,t,n){var o=n(218);function r(e){this.mode=o.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){var t,n,o;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),o=parseInt(n,10),e.put(o,10);var r=this.data.length-t;r>0&&(n=this.data.substr(t),o=parseInt(n,10),e.put(o,3*r+1))},e.exports=r},function(e,t,n){var o=n(218),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=o.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var n=45*r.indexOf(this.data[t]);n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},e.exports=i},function(e,t,n){var o=n(257),r=n(218);function i(e){this.mode=r.BYTE,this.data=o.from(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(var t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},function(e,t,n){var o=n(218),r=n(217);function i(e){this.mode=o.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t;for(t=0;t<this.data.length;t++){var n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=i},function(e,t,n){"use strict";var o={single_source_shortest_paths:function(e,t,n){var r={},i={};i[t]=0;var a,s,c,l,u,d,h,p=o.PriorityQueue.make();for(p.push(t,0);!p.empty();)for(c in s=(a=p.pop()).value,l=a.cost,u=e[s]||{})u.hasOwnProperty(c)&&(d=l+u[c],h=i[c],(void 0===i[c]||h>d)&&(i[c]=d,p.push(c,d),r[c]=s));if(void 0!==n&&void 0===i[n]){var m=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(m)}return r},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],o=t;o;)n.push(o),e[o],o=e[o];return n.reverse(),n},find_path:function(e,t,n){var r=o.single_source_shortest_paths(e,t,n);return o.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(e){var t,n=o.PriorityQueue,r={};for(t in e=e||{},n)n.hasOwnProperty(t)&&(r[t]=n[t]);return r.queue=[],r.sorter=e.sorter||n.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=o},function(e,t,n){var o=n(759);t.render=function(e,t,n){var r=n,i=t;void 0!==r||t&&t.getContext||(r=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),r=o.getOptions(r);var a=o.getImageWidth(e.modules.size,r),s=i.getContext("2d"),c=s.createImageData(a,a);return o.qrToImageData(c.data,e,r),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,i,a),s.putImageData(c,0,0),i},t.renderToDataURL=function(e,n,o){var r=o;void 0!==r||n&&n.getContext||(r=n,n=void 0),r||(r={});var i=t.render(e,n,r),a=r.type||"image/png",s=r.rendererOpts||{};return i.toDataURL(a,s.quality)}},function(e,t,n){var o=n(759);function r(e,t){var n=e.a/255,o=t+'="'+e.hex+'"';return n<1?o+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':o}function i(e,t,n){var o=e+t;return void 0!==n&&(o+=" "+n),o}t.render=function(e,t,n){var a=o.getOptions(t),s=e.modules.size,c=e.modules.data,l=s+2*a.margin,u=a.color.light.a?"<path "+r(a.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",d="<path "+r(a.color.dark,"stroke")+' d="'+function(e,t,n){for(var o="",r=0,a=!1,s=0,c=0;c<e.length;c++){var l=Math.floor(c%t),u=Math.floor(c/t);l||a||(a=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(o+=a?i("M",l+n,.5+u+n):i("m",r,0),r=0,a=!1),l+1<t&&e[c+1]||(o+=i("h",s),s=0)):r++}return o}(c,s,a.margin)+'"/>',h='viewBox="0 0 '+l+" "+l+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof n&&n(null,p),p}},function(e,t){e.exports="img/social/facebook.d547f79.png"},function(e,t){e.exports="img/social/twitter-2.6517b36.png"},function(e,t){e.exports="img/social/linkedin.ab157f6.png"},function(e,t){e.exports="img/social/reddit.eeab8e6.png"},function(e,t){e.exports="img/social/email-1.1134895.png"},function(e,t,n){"use strict";(function(e){class n{constructor(){this._scrollStateMap={}}getScrollState(e){return this._scrollStateMap[e]}setScrollState(e,t){this._scrollStateMap[e]=t}}void 0===e.mx_RoomScrollStateStore&&(e.mx_RoomScrollStateStore=new n),t.a=e.mx_RoomScrollStateStore}).call(this,n(5))},function(e,t){e.exports="img/cancel-red.3d9df3d.svg"},function(e,t){e.exports="img/upload-big.4e229de.svg"},,function(e,t){e.exports="img/download.4f331f0.svg"},function(e,t,n){"use strict";const o=n(1368),r=n(1379);t.parse=function(e,t){return new o(t).parse(e)},t.parseFragment=function(e,t,n){"string"==typeof e&&(n=t,t=e,e=null);return new o(n).parseFragment(t,e)},t.serialize=function(e,t){return new r(e,t).serialize()}},function(e,t,n){"use strict";const o=n(376),r=n(1371),i=n(1372),a=n(1373),s=n(1375),c=n(172),l=n(781),u=n(782),d=n(783),h=n(1378),p=n(513),m=n(512),g=n(220),f=g.TAG_NAMES,_=g.NAMESPACES,b=g.ATTRS,v={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:l},E="IN_TABLE_MODE",y={[f.TR]:"IN_ROW_MODE",[f.TBODY]:"IN_TABLE_BODY_MODE",[f.THEAD]:"IN_TABLE_BODY_MODE",[f.TFOOT]:"IN_TABLE_BODY_MODE",[f.CAPTION]:"IN_CAPTION_MODE",[f.COLGROUP]:"IN_COLUMN_GROUP_MODE",[f.TABLE]:E,[f.BODY]:"IN_BODY_MODE",[f.FRAMESET]:"IN_FRAMESET_MODE"},S={[f.CAPTION]:E,[f.COLGROUP]:E,[f.TBODY]:E,[f.TFOOT]:E,[f.THEAD]:E,[f.COL]:"IN_COLUMN_GROUP_MODE",[f.TR]:"IN_TABLE_BODY_MODE",[f.TD]:"IN_ROW_MODE",[f.TH]:"IN_ROW_MODE"},T={INITIAL_MODE:{[o.CHARACTER_TOKEN]:L,[o.NULL_CHARACTER_TOKEN]:L,[o.WHITESPACE_CHARACTER_TOKEN]:I,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const n=t.forceQuirks?g.DOCUMENT_MODE.QUIRKS:d.getDocumentMode(t);d.isConforming(t)||e._err(p.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode="BEFORE_HTML_MODE"},[o.START_TAG_TOKEN]:L,[o.END_TAG_TOKEN]:L,[o.EOF_TOKEN]:L},BEFORE_HTML_MODE:{[o.CHARACTER_TOKEN]:U,[o.NULL_CHARACTER_TOKEN]:U,[o.WHITESPACE_CHARACTER_TOKEN]:I,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){t.tagName===f.HTML?(e._insertElement(t,_.HTML),e.insertionMode="BEFORE_HEAD_MODE"):U(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n!==f.HTML&&n!==f.HEAD&&n!==f.BODY&&n!==f.BR||U(e,t)},[o.EOF_TOKEN]:U},BEFORE_HEAD_MODE:{[o.CHARACTER_TOKEN]:B,[o.NULL_CHARACTER_TOKEN]:B,[o.WHITESPACE_CHARACTER_TOKEN]:I,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:D,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.HEAD?(e._insertElement(t,_.HTML),e.headElement=e.openElements.current,e.insertionMode="IN_HEAD_MODE"):B(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HEAD||n===f.BODY||n===f.HTML||n===f.BR?B(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[o.EOF_TOKEN]:B},IN_HEAD_MODE:{[o.CHARACTER_TOKEN]:q,[o.NULL_CHARACTER_TOKEN]:q,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:D,[o.START_TAG_TOKEN]:j,[o.END_TAG_TOKEN]:G,[o.EOF_TOKEN]:q},IN_HEAD_NO_SCRIPT_MODE:{[o.CHARACTER_TOKEN]:H,[o.NULL_CHARACTER_TOKEN]:H,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:D,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.BASEFONT||n===f.BGSOUND||n===f.HEAD||n===f.LINK||n===f.META||n===f.NOFRAMES||n===f.STYLE?j(e,t):n===f.NOSCRIPT?e._err(p.nestedNoscriptInHead):H(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.NOSCRIPT?(e.openElements.pop(),e.insertionMode="IN_HEAD_MODE"):n===f.BR?H(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[o.EOF_TOKEN]:H},AFTER_HEAD_MODE:{[o.CHARACTER_TOKEN]:V,[o.NULL_CHARACTER_TOKEN]:V,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:D,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.BODY?(e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode="IN_BODY_MODE"):n===f.FRAMESET?(e._insertElement(t,_.HTML),e.insertionMode="IN_FRAMESET_MODE"):n===f.BASE||n===f.BASEFONT||n===f.BGSOUND||n===f.LINK||n===f.META||n===f.NOFRAMES||n===f.SCRIPT||n===f.STYLE||n===f.TEMPLATE||n===f.TITLE?(e._err(p.abandonedHeadElementChild),e.openElements.push(e.headElement),j(e,t),e.openElements.remove(e.headElement)):n===f.HEAD?e._err(p.misplacedStartTagForHeadElement):V(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.BODY||n===f.HTML||n===f.BR?V(e,t):n===f.TEMPLATE?G(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[o.EOF_TOKEN]:V},IN_BODY_MODE:{[o.CHARACTER_TOKEN]:K,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:z,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:oe,[o.END_TAG_TOKEN]:se,[o.EOF_TOKEN]:ce},TEXT_MODE:{[o.CHARACTER_TOKEN]:M,[o.NULL_CHARACTER_TOKEN]:M,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:I,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:I,[o.END_TAG_TOKEN]:function(e,t){t.tagName===f.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[o.EOF_TOKEN]:function(e,t){e._err(p.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[E]:{[o.CHARACTER_TOKEN]:le,[o.NULL_CHARACTER_TOKEN]:le,[o.WHITESPACE_CHARACTER_TOKEN]:le,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:ue,[o.END_TAG_TOKEN]:de,[o.EOF_TOKEN]:ce},IN_TABLE_TEXT_MODE:{[o.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[o.COMMENT_TOKEN]:pe,[o.DOCTYPE_TOKEN]:pe,[o.START_TAG_TOKEN]:pe,[o.END_TAG_TOKEN]:pe,[o.EOF_TOKEN]:pe},IN_CAPTION_MODE:{[o.CHARACTER_TOKEN]:K,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:z,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.CAPTION||n===f.COL||n===f.COLGROUP||n===f.TBODY||n===f.TD||n===f.TFOOT||n===f.TH||n===f.THEAD||n===f.TR?e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=E,e._processToken(t)):oe(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.CAPTION||n===f.TABLE?e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=E,n===f.TABLE&&e._processToken(t)):n!==f.BODY&&n!==f.COL&&n!==f.COLGROUP&&n!==f.HTML&&n!==f.TBODY&&n!==f.TD&&n!==f.TFOOT&&n!==f.TH&&n!==f.THEAD&&n!==f.TR&&se(e,t)},[o.EOF_TOKEN]:ce},IN_COLUMN_GROUP_MODE:{[o.CHARACTER_TOKEN]:me,[o.NULL_CHARACTER_TOKEN]:me,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.COL?(e._appendElement(t,_.HTML),t.ackSelfClosing=!0):n===f.TEMPLATE?j(e,t):me(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.COLGROUP?e.openElements.currentTagName===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=E):n===f.TEMPLATE?G(e,t):n!==f.COL&&me(e,t)},[o.EOF_TOKEN]:ce},IN_TABLE_BODY_MODE:{[o.CHARACTER_TOKEN]:le,[o.NULL_CHARACTER_TOKEN]:le,[o.WHITESPACE_CHARACTER_TOKEN]:le,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,_.HTML),e.insertionMode="IN_ROW_MODE"):n===f.TH||n===f.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(f.TR),e.insertionMode="IN_ROW_MODE",e._processToken(t)):n===f.CAPTION||n===f.COL||n===f.COLGROUP||n===f.TBODY||n===f.TFOOT||n===f.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=E,e._processToken(t)):ue(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.TBODY||n===f.TFOOT||n===f.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=E):n===f.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=E,e._processToken(t)):(n!==f.BODY&&n!==f.CAPTION&&n!==f.COL&&n!==f.COLGROUP||n!==f.HTML&&n!==f.TD&&n!==f.TH&&n!==f.TR)&&de(e,t)},[o.EOF_TOKEN]:ce},IN_ROW_MODE:{[o.CHARACTER_TOKEN]:le,[o.NULL_CHARACTER_TOKEN]:le,[o.WHITESPACE_CHARACTER_TOKEN]:le,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.TH||n===f.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,_.HTML),e.insertionMode="IN_CELL_MODE",e.activeFormattingElements.insertMarker()):n===f.CAPTION||n===f.COL||n===f.COLGROUP||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR?e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):ue(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.TR?e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE"):n===f.TABLE?e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):n===f.TBODY||n===f.TFOOT||n===f.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(f.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):(n!==f.BODY&&n!==f.CAPTION&&n!==f.COL&&n!==f.COLGROUP||n!==f.HTML&&n!==f.TD&&n!==f.TH)&&de(e,t)},[o.EOF_TOKEN]:ce},IN_CELL_MODE:{[o.CHARACTER_TOKEN]:K,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:z,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.CAPTION||n===f.COL||n===f.COLGROUP||n===f.TBODY||n===f.TD||n===f.TFOOT||n===f.TH||n===f.THEAD||n===f.TR?(e.openElements.hasInTableScope(f.TD)||e.openElements.hasInTableScope(f.TH))&&(e._closeTableCell(),e._processToken(t)):oe(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.TD||n===f.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode="IN_ROW_MODE"):n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==f.BODY&&n!==f.CAPTION&&n!==f.COL&&n!==f.COLGROUP&&n!==f.HTML&&se(e,t)},[o.EOF_TOKEN]:ce},IN_SELECT_MODE:{[o.CHARACTER_TOKEN]:M,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:ge,[o.END_TAG_TOKEN]:fe,[o.EOF_TOKEN]:ce},IN_SELECT_IN_TABLE_MODE:{[o.CHARACTER_TOKEN]:M,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.CAPTION||n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR||n===f.TD||n===f.TH?(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e._processToken(t)):ge(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.CAPTION||n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR||n===f.TD||n===f.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e._processToken(t)):fe(e,t)},[o.EOF_TOKEN]:ce},IN_TEMPLATE_MODE:{[o.CHARACTER_TOKEN]:K,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:z,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;if(n===f.BASE||n===f.BASEFONT||n===f.BGSOUND||n===f.LINK||n===f.META||n===f.NOFRAMES||n===f.SCRIPT||n===f.STYLE||n===f.TEMPLATE||n===f.TITLE)j(e,t);else{const o=S[n]||"IN_BODY_MODE";e._popTmplInsertionMode(),e._pushTmplInsertionMode(o),e.insertionMode=o,e._processToken(t)}},[o.END_TAG_TOKEN]:function(e,t){t.tagName===f.TEMPLATE&&G(e,t)},[o.EOF_TOKEN]:_e},AFTER_BODY_MODE:{[o.CHARACTER_TOKEN]:be,[o.NULL_CHARACTER_TOKEN]:be,[o.WHITESPACE_CHARACTER_TOKEN]:z,[o.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){t.tagName===f.HTML?oe(e,t):be(e,t)},[o.END_TAG_TOKEN]:function(e,t){t.tagName===f.HTML?e.fragmentContext||(e.insertionMode="AFTER_AFTER_BODY_MODE"):be(e,t)},[o.EOF_TOKEN]:P},IN_FRAMESET_MODE:{[o.CHARACTER_TOKEN]:I,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.FRAMESET?e._insertElement(t,_.HTML):n===f.FRAME?(e._appendElement(t,_.HTML),t.ackSelfClosing=!0):n===f.NOFRAMES&&j(e,t)},[o.END_TAG_TOKEN]:function(e,t){t.tagName!==f.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===f.FRAMESET||(e.insertionMode="AFTER_FRAMESET_MODE"))},[o.EOF_TOKEN]:P},AFTER_FRAMESET_MODE:{[o.CHARACTER_TOKEN]:I,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.NOFRAMES&&j(e,t)},[o.END_TAG_TOKEN]:function(e,t){t.tagName===f.HTML&&(e.insertionMode="AFTER_AFTER_FRAMESET_MODE")},[o.EOF_TOKEN]:P},AFTER_AFTER_BODY_MODE:{[o.CHARACTER_TOKEN]:ve,[o.NULL_CHARACTER_TOKEN]:ve,[o.WHITESPACE_CHARACTER_TOKEN]:z,[o.COMMENT_TOKEN]:F,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){t.tagName===f.HTML?oe(e,t):ve(e,t)},[o.END_TAG_TOKEN]:ve,[o.EOF_TOKEN]:P},AFTER_AFTER_FRAMESET_MODE:{[o.CHARACTER_TOKEN]:I,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:z,[o.COMMENT_TOKEN]:F,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.NOFRAMES&&j(e,t)},[o.END_TAG_TOKEN]:I,[o.EOF_TOKEN]:P}};function w(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):ae(e,t),n}function C(e,t){let n=null;for(let o=e.openElements.stackTop;o>=0;o--){const r=e.openElements.items[o];if(r===t.element)break;e._isSpecialElement(r)&&(n=r)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function x(e,t,n){let o=t,r=e.openElements.getCommonAncestor(t);for(let i=0,a=r;a!==n;i++,a=r){r=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&i>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=O(e,n),o===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(o),e.treeAdapter.appendChild(a,o),o=a)}return o}function O(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),o=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,o),t.element=o,o}function k(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const o=e.treeAdapter.getTagName(t),r=e.treeAdapter.getNamespaceURI(t);o===f.TEMPLATE&&r===_.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function R(e,t,n){const o=e.treeAdapter.getNamespaceURI(n.element),r=n.token,i=e.treeAdapter.createElement(r.tagName,o,r.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i)}function A(e,t){let n;for(let o=0;o<8&&(n=w(e,t),n);o++){const t=C(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;const o=x(e,t,n.element),r=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(o),k(e,r,o),R(e,t,n)}}function I(){}function D(e){e._err(p.misplacedDoctype)}function N(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function F(e,t){e._appendCommentNode(t,e.document)}function M(e,t){e._insertCharacters(t)}function P(e){e.stopped=!0}function L(e,t){e._err(p.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,g.DOCUMENT_MODE.QUIRKS),e.insertionMode="BEFORE_HTML_MODE",e._processToken(t)}function U(e,t){e._insertFakeRootElement(),e.insertionMode="BEFORE_HEAD_MODE",e._processToken(t)}function B(e,t){e._insertFakeElement(f.HEAD),e.headElement=e.openElements.current,e.insertionMode="IN_HEAD_MODE",e._processToken(t)}function j(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.BASE||n===f.BASEFONT||n===f.BGSOUND||n===f.LINK||n===f.META?(e._appendElement(t,_.HTML),t.ackSelfClosing=!0):n===f.TITLE?e._switchToTextParsing(t,o.MODE.RCDATA):n===f.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,o.MODE.RAWTEXT):(e._insertElement(t,_.HTML),e.insertionMode="IN_HEAD_NO_SCRIPT_MODE"):n===f.NOFRAMES||n===f.STYLE?e._switchToTextParsing(t,o.MODE.RAWTEXT):n===f.SCRIPT?e._switchToTextParsing(t,o.MODE.SCRIPT_DATA):n===f.TEMPLATE?(e._insertTemplate(t,_.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode="IN_TEMPLATE_MODE",e._pushTmplInsertionMode("IN_TEMPLATE_MODE")):n===f.HEAD?e._err(p.misplacedStartTagForHeadElement):q(e,t)}function G(e,t){const n=t.tagName;n===f.HEAD?(e.openElements.pop(),e.insertionMode="AFTER_HEAD_MODE"):n===f.BODY||n===f.BR||n===f.HTML?q(e,t):n===f.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==f.TEMPLATE&&e._err(p.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(p.endTagWithoutMatchingOpenElement)}function q(e,t){e.openElements.pop(),e.insertionMode="AFTER_HEAD_MODE",e._processToken(t)}function H(e,t){const n=t.type===o.EOF_TOKEN?p.openElementsLeftAfterEof:p.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode="IN_HEAD_MODE",e._processToken(t)}function V(e,t){e._insertFakeElement(f.BODY),e.insertionMode="IN_BODY_MODE",e._processToken(t)}function z(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function K(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function W(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML)}function Y(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function $(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Q(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function X(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,_.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function J(e,t){e._appendElement(t,_.HTML),t.ackSelfClosing=!0}function Z(e,t){e._switchToTextParsing(t,o.MODE.RAWTEXT)}function ee(e,t){e.openElements.currentTagName===f.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML)}function te(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,_.HTML)}function ne(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML)}function oe(e,t){const n=t.tagName;switch(n.length){case 1:n===f.I||n===f.S||n===f.B||n===f.U?$(e,t):n===f.P?W(e,t):n===f.A?function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(f.A);n&&(A(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):ne(e,t);break;case 2:n===f.DL||n===f.OL||n===f.UL?W(e,t):n===f.H1||n===f.H2||n===f.H3||n===f.H4||n===f.H5||n===f.H6?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement();const n=e.openElements.currentTagName;n!==f.H1&&n!==f.H2&&n!==f.H3&&n!==f.H4&&n!==f.H5&&n!==f.H6||e.openElements.pop(),e._insertElement(t,_.HTML)}(e,t):n===f.LI||n===f.DD||n===f.DT?function(e,t){e.framesetOk=!1;const n=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const o=e.openElements.items[t],r=e.treeAdapter.getTagName(o);let i=null;if(n===f.LI&&r===f.LI?i=f.LI:n!==f.DD&&n!==f.DT||r!==f.DD&&r!==f.DT||(i=r),i){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(r!==f.ADDRESS&&r!==f.DIV&&r!==f.P&&e._isSpecialElement(o))break}e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML)}(e,t):n===f.EM||n===f.TT?$(e,t):n===f.BR?X(e,t):n===f.HR?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._appendElement(t,_.HTML),e.framesetOk=!1,e.ackSelfClosing=!0}(e,t):n===f.RB?te(e,t):n===f.RT||n===f.RP?function(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(f.RTC),e._insertElement(t,_.HTML)}(e,t):n!==f.TH&&n!==f.TD&&n!==f.TR&&ne(e,t);break;case 3:n===f.DIV||n===f.DIR||n===f.NAV?W(e,t):n===f.PRE?Y(e,t):n===f.BIG?$(e,t):n===f.IMG||n===f.WBR?X(e,t):n===f.XMP?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,o.MODE.RAWTEXT)}(e,t):n===f.SVG?function(e,t){e._reconstructActiveFormattingElements(),h.adjustTokenSVGAttrs(t),h.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,_.SVG):e._insertElement(t,_.SVG),t.ackSelfClosing=!0}(e,t):n===f.RTC?te(e,t):n!==f.COL&&ne(e,t);break;case 4:n===f.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===f.BASE||n===f.LINK||n===f.META?j(e,t):n===f.BODY?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===f.MAIN||n===f.MENU?W(e,t):n===f.FORM?function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===f.CODE||n===f.FONT?$(e,t):n===f.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(f.NOBR)&&(A(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===f.AREA?X(e,t):n===f.MATH?function(e,t){e._reconstructActiveFormattingElements(),h.adjustTokenMathMLAttrs(t),h.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,_.MATHML):e._insertElement(t,_.MATHML),t.ackSelfClosing=!0}(e,t):n===f.MENU?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML)}(e,t):n!==f.HEAD&&ne(e,t);break;case 5:n===f.STYLE||n===f.TITLE?j(e,t):n===f.ASIDE?W(e,t):n===f.SMALL?$(e,t):n===f.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==g.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode=E}(e,t):n===f.EMBED?X(e,t):n===f.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,_.HTML);const n=o.getTokenAttr(t,b.TYPE);n&&"hidden"===n.toLowerCase()||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===f.PARAM||n===f.TRACK?J(e,t):n===f.IMAGE?function(e,t){t.tagName=f.IMG,X(e,t)}(e,t):n!==f.FRAME&&n!==f.TBODY&&n!==f.TFOOT&&n!==f.THEAD&&ne(e,t);break;case 6:n===f.SCRIPT?j(e,t):n===f.CENTER||n===f.FIGURE||n===f.FOOTER||n===f.HEADER||n===f.HGROUP||n===f.DIALOG?W(e,t):n===f.BUTTON?function(e,t){e.openElements.hasInScope(f.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.framesetOk=!1}(e,t):n===f.STRIKE||n===f.STRONG?$(e,t):n===f.APPLET||n===f.OBJECT?Q(e,t):n===f.KEYGEN?X(e,t):n===f.SOURCE?J(e,t):n===f.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,o.MODE.RAWTEXT)}(e,t):n===f.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode===E||"IN_CAPTION_MODE"===e.insertionMode||"IN_TABLE_BODY_MODE"===e.insertionMode||"IN_ROW_MODE"===e.insertionMode||"IN_CELL_MODE"===e.insertionMode?e.insertionMode="IN_SELECT_IN_TABLE_MODE":e.insertionMode="IN_SELECT_MODE"}(e,t):n===f.OPTION?ee(e,t):ne(e,t);break;case 7:n===f.BGSOUND?j(e,t):n===f.DETAILS||n===f.ADDRESS||n===f.ARTICLE||n===f.SECTION||n===f.SUMMARY?W(e,t):n===f.LISTING?Y(e,t):n===f.MARQUEE?Q(e,t):n===f.NOEMBED?Z(e,t):n!==f.CAPTION&&ne(e,t);break;case 8:n===f.BASEFONT?j(e,t):n===f.FRAMESET?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,_.HTML),e.insertionMode="IN_FRAMESET_MODE")}(e,t):n===f.FIELDSET?W(e,t):n===f.TEXTAREA?function(e,t){e._insertElement(t,_.HTML),e.skipNextNewLine=!0,e.tokenizer.state=o.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode="TEXT_MODE"}(e,t):n===f.TEMPLATE?j(e,t):n===f.NOSCRIPT?e.options.scriptingEnabled?Z(e,t):ne(e,t):n===f.OPTGROUP?ee(e,t):n!==f.COLGROUP&&ne(e,t);break;case 9:n===f.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML),e.tokenizer.state=o.MODE.PLAINTEXT}(e,t):ne(e,t);break;case 10:n===f.BLOCKQUOTE||n===f.FIGCAPTION?W(e,t):ne(e,t);break;default:ne(e,t)}}function re(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function ie(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ae(e,t){const n=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const o=e.openElements.items[t];if(e.treeAdapter.getTagName(o)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(o);break}if(e._isSpecialElement(o))break}}function se(e,t){const n=t.tagName;switch(n.length){case 1:n===f.A||n===f.B||n===f.I||n===f.S||n===f.U?A(e,t):n===f.P?function(e){e.openElements.hasInButtonScope(f.P)||e._insertFakeElement(f.P),e._closePElement()}(e):ae(e,t);break;case 2:n===f.DL||n===f.UL||n===f.OL?re(e,t):n===f.LI?function(e){e.openElements.hasInListItemScope(f.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(f.LI),e.openElements.popUntilTagNamePopped(f.LI))}(e):n===f.DD||n===f.DT?function(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===f.H1||n===f.H2||n===f.H3||n===f.H4||n===f.H5||n===f.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===f.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(f.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===f.EM||n===f.TT?A(e,t):ae(e,t);break;case 3:n===f.BIG?A(e,t):n===f.DIR||n===f.DIV||n===f.NAV||n===f.PRE?re(e,t):ae(e,t);break;case 4:n===f.BODY?function(e){e.openElements.hasInScope(f.BODY)&&(e.insertionMode="AFTER_BODY_MODE")}(e):n===f.HTML?function(e,t){e.openElements.hasInScope(f.BODY)&&(e.insertionMode="AFTER_BODY_MODE",e._processToken(t))}(e,t):n===f.FORM?function(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(f.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(f.FORM):e.openElements.remove(n))}(e):n===f.CODE||n===f.FONT||n===f.NOBR?A(e,t):n===f.MAIN||n===f.MENU?re(e,t):ae(e,t);break;case 5:n===f.ASIDE?re(e,t):n===f.SMALL?A(e,t):ae(e,t);break;case 6:n===f.CENTER||n===f.FIGURE||n===f.FOOTER||n===f.HEADER||n===f.HGROUP||n===f.DIALOG?re(e,t):n===f.APPLET||n===f.OBJECT?ie(e,t):n===f.STRIKE||n===f.STRONG?A(e,t):ae(e,t);break;case 7:n===f.ADDRESS||n===f.ARTICLE||n===f.DETAILS||n===f.SECTION||n===f.SUMMARY||n===f.LISTING?re(e,t):n===f.MARQUEE?ie(e,t):ae(e,t);break;case 8:n===f.FIELDSET?re(e,t):n===f.TEMPLATE?G(e,t):ae(e,t);break;case 10:n===f.BLOCKQUOTE||n===f.FIGCAPTION?re(e,t):ae(e,t);break;default:ae(e,t)}}function ce(e,t){e.tmplInsertionModeStackTop>-1?_e(e,t):e.stopped=!0}function le(e,t){const n=e.openElements.currentTagName;n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode="IN_TABLE_TEXT_MODE",e._processToken(t)):he(e,t)}function ue(e,t){const n=t.tagName;switch(n.length){case 2:n===f.TD||n===f.TH||n===f.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(f.TBODY),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)}(e,t):he(e,t);break;case 3:n===f.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(f.COLGROUP),e.insertionMode="IN_COLUMN_GROUP_MODE",e._processToken(t)}(e,t):he(e,t);break;case 4:n===f.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,_.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):he(e,t);break;case 5:n===f.TABLE?function(e,t){e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===f.STYLE?j(e,t):n===f.TBODY||n===f.TFOOT||n===f.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,_.HTML),e.insertionMode="IN_TABLE_BODY_MODE"}(e,t):n===f.INPUT?function(e,t){const n=o.getTokenAttr(t,b.TYPE);n&&"hidden"===n.toLowerCase()?e._appendElement(t,_.HTML):he(e,t),t.ackSelfClosing=!0}(e,t):he(e,t);break;case 6:n===f.SCRIPT?j(e,t):he(e,t);break;case 7:n===f.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,_.HTML),e.insertionMode="IN_CAPTION_MODE"}(e,t):he(e,t);break;case 8:n===f.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,_.HTML),e.insertionMode="IN_COLUMN_GROUP_MODE"}(e,t):n===f.TEMPLATE?j(e,t):he(e,t);break;default:he(e,t)}}function de(e,t){const n=t.tagName;n===f.TABLE?e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode()):n===f.TEMPLATE?G(e,t):n!==f.BODY&&n!==f.CAPTION&&n!==f.COL&&n!==f.COLGROUP&&n!==f.HTML&&n!==f.TBODY&&n!==f.TD&&n!==f.TFOOT&&n!==f.TH&&n!==f.THEAD&&n!==f.TR&&he(e,t)}function he(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function pe(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)he(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function me(e,t){e.openElements.currentTagName===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=E,e._processToken(t))}function ge(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.OPTION?(e.openElements.currentTagName===f.OPTION&&e.openElements.pop(),e._insertElement(t,_.HTML)):n===f.OPTGROUP?(e.openElements.currentTagName===f.OPTION&&e.openElements.pop(),e.openElements.currentTagName===f.OPTGROUP&&e.openElements.pop(),e._insertElement(t,_.HTML)):n===f.INPUT||n===f.KEYGEN||n===f.TEXTAREA||n===f.SELECT?e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),n!==f.SELECT&&e._processToken(t)):n!==f.SCRIPT&&n!==f.TEMPLATE||j(e,t)}function fe(e,t){const n=t.tagName;if(n===f.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],n=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===f.OPTION&&n===f.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===f.OPTGROUP&&e.openElements.pop()}else n===f.OPTION?e.openElements.currentTagName===f.OPTION&&e.openElements.pop():n===f.SELECT&&e.openElements.hasInSelectScope(f.SELECT)?(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode()):n===f.TEMPLATE&&G(e,t)}function _e(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function be(e,t){e.insertionMode="IN_BODY_MODE",e._processToken(t)}function ve(e,t){e.insertionMode="IN_BODY_MODE",e._processToken(t)}e.exports=class{constructor(e){this.options=u(v,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&c.install(this,a),this.options.onParseError&&c.install(this,s,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(f.TEMPLATE,_.HTML,[]));const n=this.treeAdapter.createElement("documentmock",_.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===f.TEMPLATE&&this._pushTmplInsertionMode("IN_TEMPLATE_MODE"),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const o=this.treeAdapter.getFirstChild(n),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(o,r),r}_bootstrap(e,t){this.tokenizer=new o(this.options),this.stopped=!1,this.insertionMode="INITIAL_MODE",this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new r(this.document,this.treeAdapter),this.activeFormattingElements=new i(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===o.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===o.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==_.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,_.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode="TEXT_MODE"}switchToPlaintextParsing(){this.insertionMode="TEXT_MODE",this.originalInsertionMode="IN_BODY_MODE",this.tokenizer.state=o.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===f.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===_.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===f.TITLE||e===f.TEXTAREA?this.tokenizer.state=o.MODE.RCDATA:e===f.STYLE||e===f.XMP||e===f.IFRAME||e===f.NOEMBED||e===f.NOFRAMES||e===f.NOSCRIPT?this.tokenizer.state=o.MODE.RAWTEXT:e===f.SCRIPT?this.tokenizer.state=o.MODE.SCRIPT_DATA:e===f.PLAINTEXT&&(this.tokenizer.state=o.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",o=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,o)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,_.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,_.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(f.HTML,_.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const n=this.treeAdapter.getNamespaceURI(t);if(n===_.HTML)return!1;if(this.treeAdapter.getTagName(t)===f.ANNOTATION_XML&&n===_.MATHML&&e.type===o.START_TAG_TOKEN&&e.tagName===f.SVG)return!1;const r=e.type===o.CHARACTER_TOKEN||e.type===o.NULL_CHARACTER_TOKEN||e.type===o.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===o.START_TAG_TOKEN&&e.tagName!==f.MGLYPH&&e.tagName!==f.MALIGNMARK)&&!r||!this._isIntegrationPoint(t,_.MATHML))&&((e.type!==o.START_TAG_TOKEN&&!r||!this._isIntegrationPoint(t,_.HTML))&&e.type!==o.EOF_TOKEN)}_processToken(e){T[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){T.IN_BODY_MODE[e.type](this,e)}_processTokenInForeignContent(e){e.type===o.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===o.NULL_CHARACTER_TOKEN?function(e,t){t.chars=m.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===o.WHITESPACE_CHARACTER_TOKEN?M(this,e):e.type===o.COMMENT_TOKEN?N(this,e):e.type===o.START_TAG_TOKEN?function(e,t){if(h.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==_.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),o=e.treeAdapter.getNamespaceURI(n);o===_.MATHML?h.adjustTokenMathMLAttrs(t):o===_.SVG&&(h.adjustTokenSVGTagName(t),h.adjustTokenSVGAttrs(t)),h.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,o):e._insertElement(t,o),t.ackSelfClosing=!0}}(this,e):e.type===o.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){const o=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(o)===_.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(o).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(o);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===o.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(p.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const n=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e),r=this.treeAdapter.getAttrList(e);return h.isIntegrationPoint(n,o,r,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===i.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(let o=t;o<e;o++)n=this.activeFormattingElements.entries[o],this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode="IN_ROW_MODE"}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(f.P),this.openElements.popUntilTagNamePopped(f.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));const o=this.treeAdapter.getTagName(n),r=y[o];if(r){this.insertionMode=r;break}if(!(t||o!==f.TD&&o!==f.TH)){this.insertionMode="IN_CELL_MODE";break}if(!t&&o===f.HEAD){this.insertionMode="IN_HEAD_MODE";break}if(o===f.SELECT){this._resetInsertionModeForSelect(e);break}if(o===f.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(o===f.HTML){this.insertionMode=this.headElement?"AFTER_HEAD_MODE":"BEFORE_HEAD_MODE";break}if(t){this.insertionMode="IN_BODY_MODE";break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===f.TEMPLATE)break;if(n===f.TABLE)return void(this.insertionMode="IN_SELECT_IN_TABLE_MODE")}this.insertionMode="IN_SELECT_MODE"}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===f.TABLE||t===f.TBODY||t===f.TFOOT||t===f.THEAD||t===f.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t],o=this.treeAdapter.getTagName(n),r=this.treeAdapter.getNamespaceURI(n);if(o===f.TEMPLATE&&r===_.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(o===f.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return g.SPECIAL_ELEMENTS[n][t]}}},function(e,t,n){"use strict";const o=n(512),r=n(513),i=o.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(o.isSurrogatePair(t))return this.pos++,this._addGap(),o.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,i.EOF;return this._err(r.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===i.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===i.CARRIAGE_RETURN)return this.skipNextNewLine=!0,i.LINE_FEED;this.skipNextNewLine=!1,o.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===i.LINE_FEED||e===i.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){o.isControlCodePoint(e)?this._err(r.controlCharacterInInputStream):o.isUndefinedCodePoint(e)&&this._err(r.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},function(e,t,n){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},function(e,t,n){"use strict";const o=n(220),r=o.TAG_NAMES,i=o.NAMESPACES;function a(e){switch(e.length){case 1:return e===r.P;case 2:return e===r.RB||e===r.RP||e===r.RT||e===r.DD||e===r.DT||e===r.LI;case 3:return e===r.RTC;case 6:return e===r.OPTION;case 8:return e===r.OPTGROUP}return!1}function s(e){switch(e.length){case 1:return e===r.P;case 2:return e===r.RB||e===r.RP||e===r.RT||e===r.DD||e===r.DT||e===r.LI||e===r.TD||e===r.TH||e===r.TR;case 3:return e===r.RTC;case 5:return e===r.TBODY||e===r.TFOOT||e===r.THEAD;case 6:return e===r.OPTION;case 7:return e===r.CAPTION;case 8:return e===r.OPTGROUP||e===r.COLGROUP}return!1}function c(e,t){switch(e.length){case 2:if(e===r.TD||e===r.TH)return t===i.HTML;if(e===r.MI||e===r.MO||e===r.MN||e===r.MS)return t===i.MATHML;break;case 4:if(e===r.HTML)return t===i.HTML;if(e===r.DESC)return t===i.SVG;break;case 5:if(e===r.TABLE)return t===i.HTML;if(e===r.MTEXT)return t===i.MATHML;if(e===r.TITLE)return t===i.SVG;break;case 6:return(e===r.APPLET||e===r.OBJECT)&&t===i.HTML;case 7:return(e===r.CAPTION||e===r.MARQUEE)&&t===i.HTML;case 8:return e===r.TEMPLATE&&t===i.HTML;case 13:return e===r.FOREIGN_OBJECT&&t===i.SVG;case 14:return e===r.ANNOTATION_XML&&t===i.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===r.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===i.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===i.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===r.H1||e===r.H2||e===r.H3||e===r.H4||e===r.H5||e===r.H6&&t===i.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===r.TD||e===r.TH&&t===i.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==r.TABLE&&this.currentTagName!==r.TEMPLATE&&this.currentTagName!==r.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==r.TBODY&&this.currentTagName!==r.TFOOT&&this.currentTagName!==r.THEAD&&this.currentTagName!==r.TEMPLATE&&this.currentTagName!==r.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==r.TR&&this.currentTagName!==r.TEMPLATE&&this.currentTagName!==r.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===r.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===r.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),o=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&o===i.HTML)return!0;if(c(n,o))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===r.H1||t===r.H2||t===r.H3||t===r.H4||t===r.H5||t===r.H6)&&n===i.HTML)return!0;if(c(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),o=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&o===i.HTML)return!0;if((n===r.UL||n===r.OL)&&o===i.HTML||c(n,o))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),o=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&o===i.HTML)return!0;if(n===r.BUTTON&&o===i.HTML||c(n,o))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===i.HTML){if(n===e)return!0;if(n===r.TABLE||n===r.TEMPLATE||n===r.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===i.HTML){if(t===r.TBODY||t===r.THEAD||t===r.TFOOT)return!0;if(t===r.TABLE||t===r.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===i.HTML){if(n===e)return!0;if(n!==r.OPTION&&n!==r.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;a(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;s(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;a(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},function(e,t,n){"use strict";class o{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const t=[];if(this.length>=3){const n=this.treeAdapter.getAttrList(e).length,r=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const a=this.entries[e];if(a.type===o.MARKER_ENTRY)break;const s=a.element,c=this.treeAdapter.getAttrList(s);this.treeAdapter.getTagName(s)===r&&this.treeAdapter.getNamespaceURI(s)===i&&c.length===n&&t.push({idx:e,attrs:c})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let n=t.length;if(n){const o=this.treeAdapter.getAttrList(e),r=o.length,i=Object.create(null);for(let e=0;e<r;e++){const t=o[e];i[t.name]=t.value}for(let e=0;e<r;e++)for(let o=0;o<n;o++){const r=t[o].attrs[e];if(i[r.name]!==r.value&&(t.splice(o,1),n--),t.length<3)return}for(let e=n-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:o.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:o.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let n=this.length-1;for(;n>=0&&this.entries[n]!==this.bookmark;n--);this.entries.splice(n+1,0,{type:o.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===o.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){const n=this.entries[t];if(n.type===o.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(n.element)===e)return n}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){const n=this.entries[t];if(n.type===o.ELEMENT_ENTRY&&n.element===e)return n}return null}}o.MARKER_ENTRY="MARKER_ENTRY",o.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=o},function(e,t,n){"use strict";const o=n(172),r=n(376),i=n(779),a=n(1374),s=n(220).TAG_NAMES;e.exports=class extends o{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){const n=this.treeAdapter.getNodeSourceCodeLocation(e);if(n&&t.location){const o=t.location,i=this.treeAdapter.getTagName(e);t.type===r.END_TAG_TOKEN&&i===t.tagName?(n.endTag=Object.assign({},o),n.endLine=o.endLine,n.endCol=o.endCol,n.endOffset=o.endOffset):(n.endLine=o.startLine,n.endCol=o.startCol,n.endOffset=o.startOffset)}}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const s=o.install(this.tokenizer,i);e.posTracker=s.posTracker,o.install(this.openElements,a,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){e.currentToken=n,t._processToken.call(this,n);if(n.type===r.END_TAG_TOKEN&&(n.tagName===s.HTML||n.tagName===s.BODY&&this.openElements.hasInScope(s.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const o=this.openElements.items[t];if(this.treeAdapter.getTagName(o)===n.tagName){e._setEndLocation(o,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const n=this.treeAdapter.getChildNodes(this.document),o=n.length;for(let t=0;t<o;t++){const o=n[t];if(this.treeAdapter.isDocumentTypeNode(o)){this.treeAdapter.setNodeSourceCodeLocation(o,e.location);break}}},_attachElementToTree(n){e._setStartLocation(n),e.lastStartTagToken=null,t._attachElementToTree.call(this,n)},_appendElement(n,o){e.lastStartTagToken=n,t._appendElement.call(this,n,o)},_insertElement(n,o){e.lastStartTagToken=n,t._insertElement.call(this,n,o)},_insertTemplate(n){e.lastStartTagToken=n,t._insertTemplate.call(this,n);const o=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(o,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,n){t._appendCommentNode.call(this,e,n);const o=this.treeAdapter.getChildNodes(n),r=o[o.length-1];this.treeAdapter.setNodeSourceCodeLocation(r,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(n){t._insertCharacters.call(this,n);const o=this._shouldFosterParentOnInsertion(),r=o&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,i=this.treeAdapter.getChildNodes(r),a=o&&e.lastFosterParentingLocation.beforeElement?i.indexOf(e.lastFosterParentingLocation.beforeElement)-1:i.length-1,s=i[a],c=this.treeAdapter.getNodeSourceCodeLocation(s);c?(c.endLine=n.location.endLine,c.endCol=n.location.endCol,c.endOffset=n.location.endOffset):this.treeAdapter.setNodeSourceCodeLocation(s,n.location)}}}}},function(e,t,n){"use strict";const o=n(172);e.exports=class extends o{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},function(e,t,n){"use strict";const o=n(514),r=n(1376),i=n(779),a=n(172);e.exports=class extends o{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,o){t._bootstrap.call(this,n,o),a.install(this.tokenizer,r,e.opts),a.install(this.tokenizer,i)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},function(e,t,n){"use strict";const o=n(514),r=n(1377),i=n(172);e.exports=class extends o{constructor(e,t){super(e,t);const n=i.install(e.preprocessor,r,t);this.posTracker=n.posTracker}}},function(e,t,n){"use strict";const o=n(514),r=n(780),i=n(172);e.exports=class extends o{constructor(e,t){super(e,t),this.posTracker=i.install(e,r),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},function(e,t,n){"use strict";const o=n(376),r=n(220),i=r.TAG_NAMES,a=r.NAMESPACES,s=r.ATTRS,c="text/html",l="application/xhtml+xml",u={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},d={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:a.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:a.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:a.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:a.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:a.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:a.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:a.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:a.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:a.XML},"xml:space":{prefix:"xml",name:"space",namespace:a.XML},xmlns:{prefix:"",name:"xmlns",namespace:a.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:a.XMLNS}},h=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},p={[i.B]:!0,[i.BIG]:!0,[i.BLOCKQUOTE]:!0,[i.BODY]:!0,[i.BR]:!0,[i.CENTER]:!0,[i.CODE]:!0,[i.DD]:!0,[i.DIV]:!0,[i.DL]:!0,[i.DT]:!0,[i.EM]:!0,[i.EMBED]:!0,[i.H1]:!0,[i.H2]:!0,[i.H3]:!0,[i.H4]:!0,[i.H5]:!0,[i.H6]:!0,[i.HEAD]:!0,[i.HR]:!0,[i.I]:!0,[i.IMG]:!0,[i.LI]:!0,[i.LISTING]:!0,[i.MENU]:!0,[i.META]:!0,[i.NOBR]:!0,[i.OL]:!0,[i.P]:!0,[i.PRE]:!0,[i.RUBY]:!0,[i.S]:!0,[i.SMALL]:!0,[i.SPAN]:!0,[i.STRONG]:!0,[i.STRIKE]:!0,[i.SUB]:!0,[i.SUP]:!0,[i.TABLE]:!0,[i.TT]:!0,[i.U]:!0,[i.UL]:!0,[i.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!!(t===i.FONT&&(null!==o.getTokenAttr(e,s.COLOR)||null!==o.getTokenAttr(e,s.SIZE)||null!==o.getTokenAttr(e,s.FACE)))||p[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=u[e.attrs[t].name];n&&(e.attrs[t].name=n)}},t.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=d[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}},t.adjustTokenSVGTagName=function(e){const t=h[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=function(e,t,n,o){return!(o&&o!==a.HTML||!function(e,t,n){if(t===a.MATHML&&e===i.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===s.ENCODING){const t=n[e].value.toLowerCase();return t===c||t===l}return t===a.SVG&&(e===i.FOREIGN_OBJECT||e===i.DESC||e===i.TITLE)}(e,t,n))||!(o&&o!==a.MATHML||!function(e,t){return t===a.MATHML&&(e===i.MI||e===i.MO||e===i.MN||e===i.MS||e===i.MTEXT)}(e,t))}},function(e,t,n){"use strict";const o=n(781),r=n(782),i=n(783),a=n(220),s=a.TAG_NAMES,c=a.NAMESPACES,l={treeAdapter:o},u=/&/g,d=/\u00a0/g,h=/"/g,p=/</g,m=/>/g;class g{constructor(e,t){this.options=r(l,t),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=e}serialize(){return this._serializeChildNodes(this.startNode),this.html}_serializeChildNodes(e){const t=this.treeAdapter.getChildNodes(e);if(t)for(let e=0,n=t.length;e<n;e++){const n=t[e];this.treeAdapter.isElementNode(n)?this._serializeElement(n):this.treeAdapter.isTextNode(n)?this._serializeTextNode(n):this.treeAdapter.isCommentNode(n)?this._serializeCommentNode(n):this.treeAdapter.isDocumentTypeNode(n)&&this._serializeDocumentTypeNode(n)}}_serializeElement(e){const t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);if(this.html+="<"+t,this._serializeAttributes(e),this.html+=">",t!==s.AREA&&t!==s.BASE&&t!==s.BASEFONT&&t!==s.BGSOUND&&t!==s.BR&&t!==s.COL&&t!==s.EMBED&&t!==s.FRAME&&t!==s.HR&&t!==s.IMG&&t!==s.INPUT&&t!==s.KEYGEN&&t!==s.LINK&&t!==s.META&&t!==s.PARAM&&t!==s.SOURCE&&t!==s.TRACK&&t!==s.WBR){const o=t===s.TEMPLATE&&n===c.HTML?this.treeAdapter.getTemplateContent(e):e;this._serializeChildNodes(o),this.html+="</"+t+">"}}_serializeAttributes(e){const t=this.treeAdapter.getAttrList(e);for(let e=0,n=t.length;e<n;e++){const n=t[e],o=g.escapeString(n.value,!0);this.html+=" ",n.namespace?n.namespace===c.XML?this.html+="xml:"+n.name:n.namespace===c.XMLNS?("xmlns"!==n.name&&(this.html+="xmlns:"),this.html+=n.name):n.namespace===c.XLINK?this.html+="xlink:"+n.name:this.html+=n.prefix+":"+n.name:this.html+=n.name,this.html+='="'+o+'"'}}_serializeTextNode(e){const t=this.treeAdapter.getTextNodeContent(e),n=this.treeAdapter.getParentNode(e);let o=void 0;n&&this.treeAdapter.isElementNode(n)&&(o=this.treeAdapter.getTagName(n)),o===s.STYLE||o===s.SCRIPT||o===s.XMP||o===s.IFRAME||o===s.NOEMBED||o===s.NOFRAMES||o===s.PLAINTEXT||o===s.NOSCRIPT?this.html+=t:this.html+=g.escapeString(t,!1)}_serializeCommentNode(e){this.html+="\x3c!--"+this.treeAdapter.getCommentNodeContent(e)+"--\x3e"}_serializeDocumentTypeNode(e){const t=this.treeAdapter.getDocumentTypeNodeName(e);this.html+="<"+i.serializeContent(t,null,null)+">"}}g.escapeString=function(e,t){return e=e.replace(u,"&amp;").replace(d,"&nbsp;"),e=t?e.replace(h,"&quot;"):e.replace(p,"&lt;").replace(m,"&gt;")},e.exports=g},function(e,t){e.exports="img/icons-room-add.bd36e26.svg"},function(e,t){e.exports="img/camera.2f271b6.svg"},function(e,t){e.exports="img/icons-groups.29180b0.svg"},function(e,t){e.exports="img/fileicon.a04644a.png"},function(e,t){function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var o=e[t];"object"!=typeof o||Object.isFrozen(o)||n(o)})),e}var o=n,r=n;o.default=r;class i{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data}ignoreMatch(){this.ignore=!0}}function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}function c(e){return e.nodeName.toLowerCase()}var l=Object.freeze({__proto__:null,escapeHTML:a,inherit:s,nodeStream:function(e){const t=[];return function e(n,o){for(let r=n.firstChild;r;r=r.nextSibling)3===r.nodeType?o+=r.nodeValue.length:1===r.nodeType&&(t.push({event:"start",offset:o,node:r}),o=e(r,o),c(r).match(/br|hr|img|input/)||t.push({event:"stop",offset:o,node:r}));return o}(e,0),t},mergeStreams:function(e,t,n){let o=0,r="";const i=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function l(e){r+="<"+c(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+a(e.value)+'"'})).join("")+">"}function u(e){r+="</"+c(e)+">"}function d(e){("start"===e.event?l:u)(e.node)}for(;e.length||t.length;){let t=s();if(r+=a(n.substring(o,t[0].offset)),o=t[0].offset,t===e){i.reverse().forEach(u);do{d(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===o);i.reverse().forEach(l)}else"start"===t[0].event?i.push(t[0].node):i.pop(),d(t.splice(0,1)[0])}return r+a(n.substr(o))}});const u=e=>!!e.kind;class d{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=a(e)}openNode(e){if(!u(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){u(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class h{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{h._collapse(e)}))}}class p extends h{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){return new d(this,this.options).value()}finalize(){return!0}}function m(e){return e?"string"==typeof e?e:e.source:null}const g="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",f={begin:"\\\\[\\s\\S]",relevance:0},_={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[f]},b={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[f]},v={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},E=function(e,t,n={}){const o=s({className:"comment",begin:e,end:t,contains:[]},n);return o.contains.push(v),o.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),o},y=E("//","$"),S=E("/\\*","\\*/"),T=E("#","$"),w={className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},C={className:"number",begin:g,relevance:0},x={className:"number",begin:"\\b(0b[01]+)",relevance:0},O={className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},k={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[f,{begin:/\[/,end:/\]/,relevance:0,contains:[f]}]}]},R={className:"title",begin:"[a-zA-Z]\\w*",relevance:0},A={className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},I={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var D=Object.freeze({__proto__:null,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:g,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>m(e)).join("")}(t,/.*\b/,e.binary,/\b.*/)),s({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:f,APOS_STRING_MODE:_,QUOTE_STRING_MODE:b,PHRASAL_WORDS_MODE:v,COMMENT:E,C_LINE_COMMENT_MODE:y,C_BLOCK_COMMENT_MODE:S,HASH_COMMENT_MODE:T,NUMBER_MODE:w,C_NUMBER_MODE:C,BINARY_NUMBER_MODE:x,CSS_NUMBER_MODE:O,REGEXP_MODE:k,TITLE_MODE:R,UNDERSCORE_TITLE_MODE:A,METHOD_GUARD:I,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});const N=["of","and","for","in","not","or","if","then","parent","list","value"];function F(e){function t(t,n){return new RegExp(m(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=t(function(e,t="|"){const n=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;let o=0,r="";for(let i=0;i<e.length;i++){o+=1;const a=o;let s=m(e[i]);for(i>0&&(r+=t),r+="(";s.length>0;){const e=n.exec(s);if(null==e){r+=s;break}r+=s.substring(0,e.index),s=s.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+a):(r+=e[0],"("===e[0]&&o++)}r+=")"}return r}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),o=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,o)}}class o{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function r(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}if(e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=s(e.classNameAliases||{}),function n(i,a){const c=i;if(i.compiled)return c;i.compiled=!0,i.__beforeBegin=null,i.keywords=i.keywords||i.beginKeywords;let l=null;if("object"==typeof i.keywords&&(l=i.keywords.$pattern,delete i.keywords.$pattern),i.keywords&&(i.keywords=function(e,t){const n={};"string"==typeof e?o("keyword",e):Object.keys(e).forEach((function(t){o(t,e[t])}));return n;function o(e,o){t&&(o=o.toLowerCase()),o.split(" ").forEach((function(t){const o=t.split("|");n[o[0]]=[e,M(o[0],o[1])]}))}}(i.keywords,e.case_insensitive)),i.lexemes&&l)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return c.keywordPatternRe=t(i.lexemes||l||/\w+/,!0),a&&(i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",i.__beforeBegin=r),i.begin||(i.begin=/\B|\b/),c.beginRe=t(i.begin),i.endSameAsBegin&&(i.end=i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(c.endRe=t(i.end)),c.terminator_end=m(i.end)||"",i.endsWithParent&&a.terminator_end&&(c.terminator_end+=(i.end?"|":"")+a.terminator_end)),i.illegal&&(c.illegalRe=t(i.illegal)),void 0===i.relevance&&(i.relevance=1),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map((function(e){return function(e){e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(t){return s(e,{variants:null},t)})));if(e.cached_variants)return e.cached_variants;if(function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(e))return s(e,{starts:e.starts?s(e.starts):null});if(Object.isFrozen(e))return s(e);return e}("self"===e?i:e)}))),i.contains.forEach((function(e){n(e,c)})),i.starts&&n(i.starts,a),c.matcher=function(e){const t=new o;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminator_end&&t.addRule(e.terminator_end,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(c),c}(e)}function M(e,t){return t?Number(t):function(e){return N.includes(e.toLowerCase())}(e)?0:1}function P(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,a(this.code);let t;return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const L=a,U=s,{nodeStream:B,mergeStreams:j}=l,G=Symbol("nomatch");var q=function(e){const t=[],n=Object.create(null),r=Object.create(null),a=[];let s=!0;const c=/(^(<[^>]+>|\t|)+|\n)/gm,l="Could not find the language '{}', did you forget to load/include a language module?",u={disableAutodetect:!0,name:"Plain text",contains:[]};let d={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:p};function h(e){return d.noHighlightRe.test(e)}function m(e,t,n,o){const r={code:t,language:e};T("before:highlight",r);const i=r.result?r.result:g(r.language,r.code,n,o);return i.code=r.code,T("after:highlight",i),i}function g(e,t,o,r){const a=t;function c(e,t){const n=y.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function u(){null!=w.subLanguage?function(){if(""===O)return;let e=null;if("string"==typeof w.subLanguage){if(!n[w.subLanguage])return void x.addText(O);e=g(w.subLanguage,O,!0,C[w.subLanguage]),C[w.subLanguage]=e.top}else e=f(O,w.subLanguage.length?w.subLanguage:null);w.relevance>0&&(k+=e.relevance),x.addSublanguage(e.emitter,e.language)}():function(){if(!w.keywords)return void x.addText(O);let e=0;w.keywordPatternRe.lastIndex=0;let t=w.keywordPatternRe.exec(O),n="";for(;t;){n+=O.substring(e,t.index);const o=c(w,t);if(o){const[e,r]=o;x.addText(n),n="",k+=r;const i=y.classNameAliases[e]||e;x.addKeyword(t[0],i)}else n+=t[0];e=w.keywordPatternRe.lastIndex,t=w.keywordPatternRe.exec(O)}n+=O.substr(e),x.addText(n)}(),O=""}function h(e){return e.className&&x.openNode(y.classNameAliases[e.className]||e.className),w=Object.create(e,{parent:{value:w}}),w}function p(e){return 0===w.matcher.regexIndex?(O+=e[0],1):(I=!0,0)}function m(e){const t=e[0],n=e.rule,o=new i(n),r=[n.__beforeBegin,n["on:begin"]];for(const n of r)if(n&&(n(e,o),o.ignore))return p(t);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?O+=t:(n.excludeBegin&&(O+=t),u(),n.returnBegin||n.excludeBegin||(O=t)),h(n),n.returnBegin?0:t.length}function _(e){const t=e[0],n=a.substr(e.index),o=function e(t,n,o){let r=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(t.endRe,o);if(r){if(t["on:end"]){const e=new i(t);t["on:end"](n,e),e.ignore&&(r=!1)}if(r){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,n,o)}(w,e,n);if(!o)return G;const r=w;r.skip?O+=t:(r.returnEnd||r.excludeEnd||(O+=t),u(),r.excludeEnd&&(O=t));do{w.className&&x.closeNode(),w.skip||w.subLanguage||(k+=w.relevance),w=w.parent}while(w!==o.parent);return o.starts&&(o.endSameAsBegin&&(o.starts.endRe=o.endRe),h(o.starts)),r.returnEnd?0:t.length}let b={};function v(t,n){const r=n&&n[0];if(O+=t,null==r)return u(),0;if("begin"===b.type&&"end"===n.type&&b.index===n.index&&""===r){if(O+=a.slice(n.index,n.index+1),!s){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=b.rule,t}return 1}if(b=n,"begin"===n.type)return m(n);if("illegal"===n.type&&!o){const e=new Error('Illegal lexeme "'+r+'" for mode "'+(w.className||"<unnamed>")+'"');throw e.mode=w,e}if("end"===n.type){const e=_(n);if(e!==G)return e}if("illegal"===n.type&&""===r)return 1;if(A>1e5&&A>3*n.index){throw new Error("potential infinite loop, way more iterations than matches")}return O+=r,r.length}const y=E(e);if(!y)throw console.error(l.replace("{}",e)),new Error('Unknown language: "'+e+'"');const S=F(y);let T="",w=r||S;const C={},x=new d.__emitter(d);!function(){const e=[];for(let t=w;t!==y;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>x.openNode(e))}();let O="",k=0,R=0,A=0,I=!1;try{for(w.matcher.considerAll();;){A++,I?I=!1:w.matcher.considerAll(),w.matcher.lastIndex=R;const e=w.matcher.exec(a);if(!e)break;const t=v(a.substring(R,e.index),e);R=e.index+t}return v(a.substr(R)),x.closeAllNodes(),x.finalize(),T=x.toHTML(),{relevance:k,value:T,language:e,illegal:!1,emitter:x,top:w}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:a.slice(R-100,R+100),mode:t.mode},sofar:T,relevance:0,value:L(a),emitter:x};if(s)return{illegal:!1,relevance:0,value:L(a),emitter:x,language:e,top:w,errorRaised:t};throw t}}function f(e,t){t=t||d.languages||Object.keys(n);const o=function(e){const t={relevance:0,emitter:new d.__emitter(d),value:L(e),illegal:!1,top:u};return t.emitter.addText(e),t}(e),r=t.filter(E).filter(S).map(t=>g(t,e,!1));r.unshift(o);const i=r.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(E(e.language).supersetOf===t.language)return 1;if(E(t.language).supersetOf===e.language)return-1}return 0}),[a,s]=i,c=a;return c.second_best=s,c}function _(e){return d.tabReplace||d.useBR?e.replace(c,e=>"\n"===e?d.useBR?"<br>":e:d.tabReplace?e.replace(/\t/g,d.tabReplace):e):e}function b(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=d.languageDetectRe.exec(t);if(n){const t=E(n[1]);return t||(console.warn(l.replace("{}",n[1])),console.warn("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>h(e)||E(e))}(e);if(h(n))return;T("before:highlightBlock",{block:e,language:n}),d.useBR?(t=document.createElement("div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n")):t=e;const o=t.textContent,i=n?m(n,o,!0):f(o),a=B(t);if(a.length){const e=document.createElement("div");e.innerHTML=i.value,i.value=j(a,B(e),o)}i.value=_(i.value),T("after:highlightBlock",{block:e,result:i}),e.innerHTML=i.value,e.className=function(e,t,n){const o=t?r[t]:n,i=[e.trim()];return e.match(/\bhljs\b/)||i.push("hljs"),e.includes(o)||i.push(o),i.join(" ").trim()}(e.className,n,i.language),e.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}const v=()=>{if(v.called)return;v.called=!0;const e=document.querySelectorAll("pre code");t.forEach.call(e,b)};function E(e){return e=(e||"").toLowerCase(),n[e]||n[r[e]]}function y(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{r[e]=t})}function S(e){const t=E(e);return t&&!t.disableAutodetect}function T(e,t){const n=e;a.forEach((function(e){e[n]&&e[n](t)}))}Object.assign(e,{highlight:m,highlightAuto:f,fixMarkup:function(e){return console.warn("fixMarkup is deprecated and will be removed entirely in v11.0"),console.warn("Please see https://github.com/highlightjs/highlight.js/issues/2534"),_(e)},highlightBlock:b,configure:function(e){e.useBR&&(console.warn("'useBR' option is deprecated and will be removed entirely in v11.0"),console.warn("Please see https://github.com/highlightjs/highlight.js/issues/2559")),d=U(d,e)},initHighlighting:v,initHighlightingOnLoad:function(){window.addEventListener("DOMContentLoaded",v,!1)},registerLanguage:function(t,o){let r=null;try{r=o(e)}catch(e){if(console.error("Language definition for '{}' could not be registered.".replace("{}",t)),!s)throw e;console.error(e),r=u}r.name||(r.name=t),n[t]=r,r.rawDefinition=o.bind(null,e),r.aliases&&y(r.aliases,{languageName:t})},listLanguages:function(){return Object.keys(n)},getLanguage:E,registerAliases:y,requireLanguage:function(e){console.warn("requireLanguage is deprecated and will be removed entirely in the future."),console.warn("Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=E(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:S,inherit:U,addPlugin:function(e){a.push(e)},vuePlugin:P(e).VuePlugin}),e.debugMode=function(){s=!1},e.safeMode=function(){s=!0},e.versionString="10.4.1";for(const e in D)"object"==typeof D[e]&&o(D[e]);return Object.assign(e,D),e}({});e.exports=q},function(e,t){e.exports=function(e){var t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",n="далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",o="null истина ложь неопределено",r=e.inherit(e.NUMBER_MODE),i={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},a={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},s=e.inherit(e.C_LINE_COMMENT_MODE);return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:n,built_in:"разделительстраниц разделительстрок символтабуляции ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",class:"webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц отображениевремениэлементовпланировщика типфайлаформатированногодокумента обходрезультатазапроса типзаписизапроса видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов доступкфайлу режимдиалогавыборафайла режимоткрытияфайла типизмеренияпостроителязапроса видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",type:"comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",literal:o},contains:[{className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,"meta-keyword":n+"загрузитьизфайла вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент "},contains:[s]},{className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"знач",literal:o},contains:[r,i,a]},s]},e.inherit(e.TITLE_MODE,{begin:t})]},s,{className:"symbol",begin:"~",end:";|:",excludeEnd:!0},r,i,a]}}},function(e,t){e.exports=function(e){const t="^[a-zA-Z][a-zA-Z0-9-]*",n="[!@#$^&',?+~`|:]",o=e.COMMENT(";","$"),r={className:"attribute",begin:t+"(?=\\s*=)"};return{name:"Augmented Backus-Naur Form",illegal:n,keywords:["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"].join(" "),contains:[r,o,{className:"symbol",begin:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/},{className:"symbol",begin:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/},{className:"symbol",begin:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/},{className:"symbol",begin:/%[si]/},e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}},function(e,t){e.exports=function(e){const t=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:"^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b",relevance:5},{className:"number",begin:"\\b\\d+\\b",relevance:0},{className:"string",begin:'"('+t.join("|")+")",end:'"',keywords:t.join(" "),illegal:"\\n",relevance:5,contains:[{begin:"HTTP/[12]\\.\\d",relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:"\\n",relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:"\\n",relevance:0},{className:"string",begin:'"Mozilla/\\d\\.\\d \\(',end:'"',illegal:"\\n",relevance:3},{className:"string",begin:'"',end:'"',illegal:"\\n",relevance:0}]}}},function(e,t){e.exports=function(e){const t={className:"rest_arg",begin:"[.]{3}",end:"[a-zA-Z_$][a-zA-Z0-9_$]*",relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:"as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",literal:"true false null undefined"},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"class",beginKeywords:"package",end:/\{/,contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.TITLE_MODE]},{className:"meta",beginKeywords:"import include",end:";",keywords:{"meta-keyword":"import include"}},{className:"function",beginKeywords:"function",end:"[{;]",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t]},{begin:":\\s*([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)"}]},e.METHOD_GUARD],illegal:/#/}}},function(e,t){e.exports=function(e){const t="[A-Za-z](_?[A-Za-z0-9.])*",n=e.COMMENT("--","$"),o={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:"[]\\{\\}%#'\"",contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:t,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:"abort else new return abs elsif not reverse abstract end accept entry select access exception of separate aliased exit or some all others subtype and for out synchronized array function overriding at tagged generic package task begin goto pragma terminate body private then if procedure type case in protected constant interface is raise use declare range delay limited record when delta loop rem while digits renames with do mod requeue xor",literal:"True False"},contains:[n,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:"\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)",relevance:0},{className:"symbol",begin:"'"+t},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:"[]\\{\\}%#'\""},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[n,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:"[]\\{\\}%#'\""},o,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:"[]\\{\\}%#'\""}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:"[]\\{\\}%#'\""},o]}}},function(e,t){e.exports=function(e){var t={className:"built_in",begin:"\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|string|ref|array|double|float|auto|dictionary)"},n={className:"symbol",begin:"[a-zA-Z0-9_]+@"},o={className:"keyword",begin:"<",end:">",contains:[t,n]};return t.contains=[o],n.contains=[o],{name:"AngelScript",aliases:["asc"],keywords:"for in|0 break continue while do|0 return if else case switch namespace is cast or and xor not get|0 in inout|10 out override set|0 private public const default|0 final shared external mixin|10 enum typedef funcdef this super import from interface abstract|0 try catch protected explicit property",illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,n,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}},function(e,t){e.exports=function(e){const t={className:"number",begin:"\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?"};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:"</?",end:">",contains:[t,{className:"number",begin:":\\d{1,5}"},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:"\\s\\[",end:"\\]$"},{className:"variable",begin:"[\\$%]\\{",end:"\\}",contains:["self",{className:"number",begin:"[\\$%]\\d+"}]},t,{className:"number",begin:"\\d+"},e.QUOTE_STRING_MODE]}}],illegal:/\S/}}},function(e,t){e.exports=function(e){const t=e.inherit(e.QUOTE_STRING_MODE,{illegal:""}),n={className:"params",begin:"\\(",end:"\\)",contains:["self",e.C_NUMBER_MODE,t]},o=e.COMMENT("--","$"),r=[o,e.COMMENT("\\(\\*","\\*\\)",{contains:["self",o]}),e.HASH_COMMENT_MODE];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},contains:[t,e.C_NUMBER_MODE,{className:"built_in",begin:"\\b(clipboard info|the clipboard|info for|list (disks|folder)|mount volume|path to|(close|open for) access|(get|set) eof|current date|do shell script|get volume settings|random number|set volume|system attribute|system info|time to GMT|(load|run|store) script|scripting components|ASCII (character|number)|localized string|choose (application|color|file|file name|folder|from list|remote application|URL)|display (alert|dialog))\\b|^\\s*return\\b"},{className:"literal",begin:"\\b(text item delimiters|current application|missing value)\\b"},{className:"keyword",begin:"\\b(apart from|aside from|instead of|out of|greater than|isn't|(doesn't|does not) (equal|come before|come after|contain)|(greater|less) than( or equal)?|(starts?|ends|begins?) with|contained by|comes (before|after)|a (ref|reference)|POSIX file|POSIX path|(date|time) string|quoted form)\\b"},{beginKeywords:"on",illegal:"[${=;\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]}].concat(r),illegal:"//|->|=>|\\[\\["}}},function(e,t){e.exports=function(e){const t="[A-Za-z_][0-9A-Za-z_]*",n={keyword:"if for while var new function do return void else break",literal:"BackSlash DoubleQuote false ForwardSlash Infinity NaN NewLine null PI SingleQuote Tab TextFormatting true undefined",built_in:"Abs Acos Angle Attachments Area AreaGeodetic Asin Atan Atan2 Average Bearing Boolean Buffer BufferGeodetic Ceil Centroid Clip Console Constrain Contains Cos Count Crosses Cut Date DateAdd DateDiff Day Decode DefaultValue Dictionary Difference Disjoint Distance DistanceGeodetic Distinct DomainCode DomainName Equals Exp Extent Feature FeatureSet FeatureSetByAssociation FeatureSetById FeatureSetByPortalItem FeatureSetByRelationshipName FeatureSetByTitle FeatureSetByUrl Filter First Floor Geometry GroupBy Guid HasKey Hour IIf IndexOf Intersection Intersects IsEmpty IsNan IsSelfIntersecting Length LengthGeodetic Log Max Mean Millisecond Min Minute Month MultiPartToSinglePart Multipoint NextSequenceValue Now Number OrderBy Overlaps Point Polygon Polyline Portal Pow Random Relate Reverse RingIsClockWise Round Second SetGeometry Sin Sort Sqrt Stdev Sum SymmetricDifference Tan Text Timestamp Today ToLocal Top Touches ToUTC TrackCurrentTime TrackGeometryWindow TrackIndex TrackStartTime TrackWindow TypeOf Union UrlEncode Variance Weekday When Within Year "},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},r={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},i={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,r]};r.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,o,e.REGEXP_MODE];const a=r.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",aliases:["arcade"],keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:a}]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:a}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}},function(e,t){function n(e){return function(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}("(",e,")?")}function o(e){const t=function(e){const t=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="(decltype\\(auto\\)|"+n("[a-zA-Z_]\\w*::")+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",r={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},i={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t,e.C_BLOCK_COMMENT_MODE]},c={className:"title",begin:n("[a-zA-Z_]\\w*::")+e.IDENT_RE,relevance:0},l=n("[a-zA-Z_]\\w*::")+e.IDENT_RE+"\\s*\\(",u={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},d=[s,r,t,e.C_BLOCK_COMMENT_MODE,a,i],h={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:u,contains:d.concat([{begin:/\(/,end:/\)/,keywords:u,contains:d.concat(["self"]),relevance:0}]),relevance:0},p={className:"function",begin:"("+o+"[\\*&\\s]+)+"+l,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:u,illegal:/[^\w\s\*&:<>]/,contains:[{begin:"decltype\\(auto\\)",keywords:u,relevance:0},{begin:l,returnBegin:!0,contains:[c],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[t,e.C_BLOCK_COMMENT_MODE,i,a,r,{begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,i,a,r]}]},r,t,e.C_BLOCK_COMMENT_MODE,s]};return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],keywords:u,disableAutodetect:!0,illegal:"</",contains:[].concat(h,p,d,[s,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:u,contains:["self",r]},{begin:e.IDENT_RE+"::",keywords:u},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:s,strings:i,keywords:u}}}(e);return t.disableAutodetect=!1,t.name="C++",t.aliases=["cc","c++","h++","hpp","hh","hxx","cxx"],t}e.exports=function(e){const t="boolean byte word String",n="setup loop KeyboardController MouseController SoftwareSerial EthernetServer EthernetClient LiquidCrystal RobotControl GSMVoiceCall EthernetUDP EsploraTFT HttpClient RobotMotor WiFiClient GSMScanner FileSystem Scheduler GSMServer YunClient YunServer IPAddress GSMClient GSMModem Keyboard Ethernet Console GSMBand Esplora Stepper Process WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage Client Server GSMPIN FileIO Bridge Serial EEPROM Stream Mouse Audio Servo File Task GPRS WiFi Wire TFT GSM SPI SD runShellCommandAsynchronously analogWriteResolution retrieveCallingNumber printFirmwareVersion analogReadResolution sendDigitalPortPair noListenOnLocalhost readJoystickButton setFirmwareVersion readJoystickSwitch scrollDisplayRight getVoiceCallStatus scrollDisplayLeft writeMicroseconds delayMicroseconds beginTransmission getSignalStrength runAsynchronously getAsynchronously listenOnLocalhost getCurrentCarrier readAccelerometer messageAvailable sendDigitalPorts lineFollowConfig countryNameWrite runShellCommand readStringUntil rewindDirectory readTemperature setClockDivider readLightSensor endTransmission analogReference detachInterrupt countryNameRead attachInterrupt encryptionType readBytesUntil robotNameWrite readMicrophone robotNameRead cityNameWrite userNameWrite readJoystickY readJoystickX mouseReleased openNextFile scanNetworks noInterrupts digitalWrite beginSpeaker mousePressed isActionDone mouseDragged displayLogos noAutoscroll addParameter remoteNumber getModifiers keyboardRead userNameRead waitContinue processInput parseCommand printVersion readNetworks writeMessage blinkVersion cityNameRead readMessage setDataMode parsePacket isListening setBitOrder beginPacket isDirectory motorsWrite drawCompass digitalRead clearScreen serialEvent rightToLeft setTextSize leftToRight requestFrom keyReleased compassRead analogWrite interrupts WiFiServer disconnect playMelody parseFloat autoscroll getPINUsed setPINUsed setTimeout sendAnalog readSlider analogRead beginWrite createChar motorsStop keyPressed tempoWrite readButton subnetMask debugPrint macAddress writeGreen randomSeed attachGPRS readString sendString remotePort releaseAll mouseMoved background getXChange getYChange answerCall getResult voiceCall endPacket constrain getSocket writeJSON getButton available connected findUntil readBytes exitValue readGreen writeBlue startLoop IPAddress isPressed sendSysex pauseMode gatewayIP setCursor getOemKey tuneWrite noDisplay loadImage switchPIN onRequest onReceive changePIN playFile noBuffer parseInt overflow checkPIN knobRead beginTFT bitClear updateIR bitWrite position writeRGB highByte writeRed setSpeed readBlue noStroke remoteIP transfer shutdown hangCall beginSMS endWrite attached maintain noCursor checkReg checkPUK shiftOut isValid shiftIn pulseIn connect println localIP pinMode getIMEI display noBlink process getBand running beginSD drawBMP lowByte setBand release bitRead prepare pointTo readRed setMode noFill remove listen stroke detach attach noTone exists buffer height bitSet circle config cursor random IRread setDNS endSMS getKey micros millis begin print write ready flush width isPIN blink clear press mkdir rmdir close point yield image BSSID click delay read text move peek beep rect line open seek fill size turn stop home find step tone sqrt RSSI SSID end bit tan cos sin pow map abs max min get run put",r="DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW",i=o(e),a=i.keywords;return a.keyword+=" "+t,a.literal+=" "+r,a.built_in+=" "+n,i.name="Arduino",i.aliases=["ino"],i.supersetOf="cpp",i}},function(e,t){e.exports=function(e){const t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(e){return r("(?=",e,")")}function r(...e){return e.map(e=>n(e)).join("")}function i(...e){return"("+e.map(e=>n(e)).join("|")+")"}e.exports=function(e){const t=r(/[A-Z_]/,r("(",/[A-Z0-9_.-]+:/,")?"),/[A-Z0-9_.-]*/),n={className:"symbol",begin:"&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;"},a={begin:"\\s",contains:[{className:"meta-keyword",begin:"#?[a-z_][a-z1-9_-]+",illegal:"\\n"}]},s=e.inherit(a,{begin:"\\(",end:"\\)"}),c=e.inherit(e.APOS_STRING_MODE,{className:"meta-string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:"[A-Za-z0-9\\._:-]+",relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[n]},{begin:/'/,end:/'/,contains:[n]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:"<![a-z]",end:">",relevance:10,contains:[a,l,c,s,{begin:"\\[",end:"\\]",contains:[{className:"meta",begin:"<![a-z]",end:">",contains:[a,s,l,c]}]}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<!\\[CDATA\\[",end:"\\]\\]>",relevance:10},n,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:"<style(?=\\s|>)",end:">",keywords:{name:"style"},contains:[u],starts:{end:"</style>",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"<script(?=\\s|>)",end:">",keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r(/</,o(r(t,i(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:u}]},{className:"tag",begin:r(/<\//,o(r(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0}]}]}}},function(e,t){e.exports=function(e){return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,5}) .+?( \\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},{className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"},{className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},{className:"strong",begin:"\\B\\*(?![\\*\\s])",end:"(\\n{2}|\\*)",contains:[{begin:"\\\\*\\w",relevance:0}]},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0},{className:"emphasis",begin:"_(?![_\\s])",end:"(\\n{2}|_)",relevance:0},{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},{begin:"^'{3,}[ \\t]*$",relevance:10},{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}},function(e,t){e.exports=function(e){const t="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance";return{name:"AspectJ",keywords:t,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:t+" get set args call",excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:t,illegal:/["\[\]]/,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",keywords:t+" get set args call",relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:t,excludeEnd:!0,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:t,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}},function(e,t){e.exports=function(e){const t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}},function(e,t){e.exports=function(e){const t={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},n={begin:"\\$[A-z0-9_]+"},o={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},r={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"ByRef Case Const ContinueCase ContinueLoop Default Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",built_in:"Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait",literal:"True False And Null Not Or"},contains:[t,n,o,r,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"comments include include-once NoTrayIcon OnAutoItStartRegister pragma compile RequireAdmin"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[o,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},o,t]},{className:"symbol",begin:"@[A-z0-9_]+"},{className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[n,o,r]}]}]}}},function(e,t){e.exports=function(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}},function(e,t){e.exports=function(e){return{name:"Awk",keywords:{keyword:"BEGIN END if else while do for in break continue delete next nextfile function func exit|10"},contains:[{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{name:"X++",aliases:["x++"],keywords:{keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"].join(" "),built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"].join(" "),literal:["default","false","null","true"].join(" ")},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:":",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]}]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]};Object.assign(t,{className:"variable",variants:[{begin:n(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,r]};r.contains.push(a);const s={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t]},c=e.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),l={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[c,e.SHEBANG(),l,s,e.HASH_COMMENT_MODE,i,a,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},t]}}},function(e,t){e.exports=function(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:"ABS ASC AND ATN AUTO|0 BEEP BLOAD|10 BSAVE|10 CALL CALLS CDBL CHAIN CHDIR CHR$|10 CINT CIRCLE CLEAR CLOSE CLS COLOR COM COMMON CONT COS CSNG CSRLIN CVD CVI CVS DATA DATE$ DEFDBL DEFINT DEFSNG DEFSTR DEF|0 SEG USR DELETE DIM DRAW EDIT END ENVIRON ENVIRON$ EOF EQV ERASE ERDEV ERDEV$ ERL ERR ERROR EXP FIELD FILES FIX FOR|0 FRE GET GOSUB|10 GOTO HEX$ IF THEN ELSE|0 INKEY$ INP INPUT INPUT# INPUT$ INSTR IMP INT IOCTL IOCTL$ KEY ON OFF LIST KILL LEFT$ LEN LET LINE LLIST LOAD LOC LOCATE LOF LOG LPRINT USING LSET MERGE MID$ MKDIR MKD$ MKI$ MKS$ MOD NAME NEW NEXT NOISE NOT OCT$ ON OR PEN PLAY STRIG OPEN OPTION BASE OUT PAINT PALETTE PCOPY PEEK PMAP POINT POKE POS PRINT PRINT] PSET PRESET PUT RANDOMIZE READ REM RENUM RESET|0 RESTORE RESUME RETURN|0 RIGHT$ RMDIR RND RSET RUN SAVE SCREEN SGN SHELL SIN SOUND SPACE$ SPC SQR STEP STICK STOP STR$ STRING$ SWAP SYSTEM TAB TAN TIME$ TIMER TROFF TRON TO USR VAL VARPTR VARPTR$ VIEW WAIT WHILE WEND WIDTH WINDOW WRITE XOR"},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}},function(e,t){e.exports=function(e){return{name:"BackusNaur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}},function(e,t){e.exports=function(e){const t={className:"literal",begin:/[+-]/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT("[^\\[\\]\\.,\\+\\-<> \r\n]","[\\[\\]\\.,\\+\\-<> \r\n]",{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?:\+\+|--)/,contains:[t]},t]}}},function(e,t){function n(e){return function(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}("(",e,")?")}e.exports=function(e){const t=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="(decltype\\(auto\\)|"+n("[a-zA-Z_]\\w*::")+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",r={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},i={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t,e.C_BLOCK_COMMENT_MODE]},c={className:"title",begin:n("[a-zA-Z_]\\w*::")+e.IDENT_RE,relevance:0},l=n("[a-zA-Z_]\\w*::")+e.IDENT_RE+"\\s*\\(",u={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},d=[s,r,t,e.C_BLOCK_COMMENT_MODE,a,i],h={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:u,contains:d.concat([{begin:/\(/,end:/\)/,keywords:u,contains:d.concat(["self"]),relevance:0}]),relevance:0},p={className:"function",begin:"("+o+"[\\*&\\s]+)+"+l,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:u,illegal:/[^\w\s\*&:<>]/,contains:[{begin:"decltype\\(auto\\)",keywords:u,relevance:0},{begin:l,returnBegin:!0,contains:[c],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[t,e.C_BLOCK_COMMENT_MODE,i,a,r,{begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,i,a,r]}]},r,t,e.C_BLOCK_COMMENT_MODE,s]};return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],keywords:u,disableAutodetect:!0,illegal:"</",contains:[].concat(h,p,d,[s,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:u,contains:["self",r]},{begin:e.IDENT_RE+"::",keywords:u},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:s,strings:i,keywords:u}}}},function(e,t){function n(e){return function(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}("(",e,")?")}e.exports=function(e){const t=function(e){const t=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="(decltype\\(auto\\)|"+n("[a-zA-Z_]\\w*::")+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",r={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},i={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t,e.C_BLOCK_COMMENT_MODE]},c={className:"title",begin:n("[a-zA-Z_]\\w*::")+e.IDENT_RE,relevance:0},l=n("[a-zA-Z_]\\w*::")+e.IDENT_RE+"\\s*\\(",u={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},d=[s,r,t,e.C_BLOCK_COMMENT_MODE,a,i],h={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:u,contains:d.concat([{begin:/\(/,end:/\)/,keywords:u,contains:d.concat(["self"]),relevance:0}]),relevance:0},p={className:"function",begin:"("+o+"[\\*&\\s]+)+"+l,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:u,illegal:/[^\w\s\*&:<>]/,contains:[{begin:"decltype\\(auto\\)",keywords:u,relevance:0},{begin:l,returnBegin:!0,contains:[c],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[t,e.C_BLOCK_COMMENT_MODE,i,a,r,{begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,i,a,r]}]},r,t,e.C_BLOCK_COMMENT_MODE,s]};return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],keywords:u,disableAutodetect:!0,illegal:"</",contains:[].concat(h,p,d,[s,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:u,contains:["self",r]},{begin:e.IDENT_RE+"::",keywords:u},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:s,strings:i,keywords:u}}}(e);return t.name="C",t.aliases=["c","h"],t}},function(e,t){e.exports=function(e){const t="div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},r={className:"string",begin:/(#\d+)+/},i={className:"function",beginKeywords:"procedure",end:/[:;]/,keywords:"procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[o,r]}].concat(n)},a={className:"class",begin:"OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",returnBegin:!0,contains:[e.TITLE_MODE,i]};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:t,literal:"false true"},illegal:/\/\*/,contains:[o,r,{className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},{className:"string",begin:'"',end:'"'},e.NUMBER_MODE,a,i]}}},function(e,t){e.exports=function(e){return{name:"Capn Proto",aliases:["capnp"],keywords:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},{className:"class",beginKeywords:"struct enum",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"class",beginKeywords:"interface",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]}]}}},function(e,t){e.exports=function(e){const t="assembly module package import alias class interface object given value assign void function new of extends satisfies abstracts in out return break continue throw assert dynamic if else switch case for while try catch finally then let this outer super is exists nonempty",n={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},o=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[n]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return n.contains=o,{name:"Ceylon",keywords:{keyword:t+" shared abstract formal default actual variable late native deprecated final sealed annotation suppressWarnings small",meta:"doc by license see throws tagged"},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(o)}}},function(e,t){e.exports=function(e){return{name:"Clean",aliases:["clean","icl","dcl"],keywords:{keyword:"if let in with where case of class instance otherwise implementation definition system module from import qualified as special code inline foreign export ccall stdcall generic derive infix infixl infixr",built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}},function(e,t){e.exports=function(e){var t="[a-zA-Z_\\-!.?+*=<>&#'][a-zA-Z_\\-!.?+*=<>&#'0-9/;:]*",n="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",o={$pattern:t,"builtin-name":n+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},r={begin:t,relevance:0},i={className:"number",begin:"[-+]?\\d+(\\.\\d+)?",relevance:0},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(";","$",{relevance:0}),c={className:"literal",begin:/\b(true|false|nil)\b/},l={begin:"[\\[\\{]",end:"[\\]\\}]"},u={className:"comment",begin:"\\^"+t},d=e.COMMENT("\\^\\{","\\}"),h={className:"symbol",begin:"[:]{1,2}"+t},p={begin:"\\(",end:"\\)"},m={endsWithParent:!0,relevance:0},g={keywords:o,className:"name",begin:t,relevance:0,starts:m},f=[p,a,u,d,s,h,l,i,c,r],_={beginKeywords:n,lexemes:t,end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:t,relevance:0,excludeEnd:!0,endsParent:!0}].concat(f)};return p.contains=[e.COMMENT("comment",""),_,g,m],m.contains=f,l.contains=f,d.contains=[l],{name:"Clojure",aliases:["clj"],illegal:/\S/,contains:[p,a,u,d,s,h,l,i,c]}}},function(e,t){e.exports=function(e){return{name:"Clojure REPL",contains:[{className:"meta",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}},function(e,t){e.exports=function(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}},function(e,t){const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],o=["true","false","null","undefined","NaN","Infinity"],r=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);e.exports=function(e){const t={keyword:n.concat(["then","unless","until","loop","by","when","and","or","is","isnt","not"]).filter((i=["var","const","let","function","static"],e=>!i.includes(e))).join(" "),literal:o.concat(["yes","no","on","off"]).join(" "),built_in:r.concat(["npm","print"]).join(" ")};var i;const a="[A-Za-z$_][0-9A-Za-z$_]*",s={className:"subst",begin:/#\{/,end:/\}/,keywords:t},c=[e.BINARY_NUMBER_MODE,e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[s,e.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+a},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];s.contains=c;const l=e.inherit(e.TITLE_MODE,{begin:a}),u={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(c)}]};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:t,illegal:/\/\*/,contains:c.concat([e.COMMENT("###","###"),e.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+a+"\\s*=\\s*(\\(.*\\)\\s*)?\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[l,u]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:"(\\(.*\\)\\s*)?\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[u]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[l]},l]},{begin:a+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}},function(e,t){e.exports=function(e){return{name:"Coq",keywords:{keyword:"_|0 as at cofix else end exists exists2 fix for forall fun if IF in let match mod Prop return Set then Type using where with Abort About Add Admit Admitted All Arguments Assumptions Axiom Back BackTo Backtrack Bind Blacklist Canonical Cd Check Class Classes Close Coercion Coercions CoFixpoint CoInductive Collection Combined Compute Conjecture Conjectures Constant constr Constraint Constructors Context Corollary CreateHintDb Cut Declare Defined Definition Delimit Dependencies Dependent Derive Drop eauto End Equality Eval Example Existential Existentials Existing Export exporting Extern Extract Extraction Fact Field Fields File Fixpoint Focus for From Function Functional Generalizable Global Goal Grab Grammar Graph Guarded Heap Hint HintDb Hints Hypotheses Hypothesis ident Identity If Immediate Implicit Import Include Inductive Infix Info Initial Inline Inspect Instance Instances Intro Intros Inversion Inversion_clear Language Left Lemma Let Libraries Library Load LoadPath Local Locate Ltac ML Mode Module Modules Monomorphic Morphism Next NoInline Notation Obligation Obligations Opaque Open Optimize Options Parameter Parameters Parametric Path Paths pattern Polymorphic Preterm Print Printing Program Projections Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark Remove Require Reserved Reset Resolve Restart Rewrite Right Ring Rings Save Scheme Scope Scopes Script Search SearchAbout SearchHead SearchPattern SearchRewrite Section Separate Set Setoid Show Solve Sorted Step Strategies Strategy Structure SubClass Table Tables Tactic Term Test Theorem Time Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused Unfold Universe Universes Unset Unshelve using Variable Variables Variant Verbose Visibility where with",built_in:"abstract absurd admit after apply as assert assumption at auto autorewrite autounfold before bottom btauto by case case_eq cbn cbv change classical_left classical_right clear clearbody cofix compare compute congruence constr_eq constructor contradict contradiction cut cutrewrite cycle decide decompose dependent destruct destruction dintuition discriminate discrR do double dtauto eapply eassumption eauto ecase econstructor edestruct ediscriminate eelim eexact eexists einduction einjection eleft elim elimtype enough equality erewrite eright esimplify_eq esplit evar exact exactly_once exfalso exists f_equal fail field field_simplify field_simplify_eq first firstorder fix fold fourier functional generalize generalizing gfail give_up has_evar hnf idtac in induction injection instantiate intro intro_pattern intros intuition inversion inversion_clear is_evar is_var lapply lazy left lia lra move native_compute nia nsatz omega once pattern pose progress proof psatz quote record red refine reflexivity remember rename repeat replace revert revgoals rewrite rewrite_strat right ring ring_simplify rtauto set setoid_reflexivity setoid_replace setoid_rewrite setoid_symmetry setoid_transitivity shelve shelve_unifiable simpl simple simplify_eq solve specialize split split_Rabs split_Rmult stepl stepr subst sum swap symmetry tactic tauto time timeout top transitivity trivial try tryif unfold unify until using vm_compute with"},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}},function(e,t){e.exports=function(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cos","cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}},function(e,t){function n(e){return function(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}("(",e,")?")}e.exports=function(e){const t=function(e){const t=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="(decltype\\(auto\\)|"+n("[a-zA-Z_]\\w*::")+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",r={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},i={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t,e.C_BLOCK_COMMENT_MODE]},c={className:"title",begin:n("[a-zA-Z_]\\w*::")+e.IDENT_RE,relevance:0},l=n("[a-zA-Z_]\\w*::")+e.IDENT_RE+"\\s*\\(",u={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},d=[s,r,t,e.C_BLOCK_COMMENT_MODE,a,i],h={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:u,contains:d.concat([{begin:/\(/,end:/\)/,keywords:u,contains:d.concat(["self"]),relevance:0}]),relevance:0},p={className:"function",begin:"("+o+"[\\*&\\s]+)+"+l,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:u,illegal:/[^\w\s\*&:<>]/,contains:[{begin:"decltype\\(auto\\)",keywords:u,relevance:0},{begin:l,returnBegin:!0,contains:[c],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[t,e.C_BLOCK_COMMENT_MODE,i,a,r,{begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,i,a,r]}]},r,t,e.C_BLOCK_COMMENT_MODE,s]};return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],keywords:u,disableAutodetect:!0,illegal:"</",contains:[].concat(h,p,d,[s,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:u,contains:["self",r]},{begin:e.IDENT_RE+"::",keywords:u},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:s,strings:i,keywords:u}}}(e);return t.disableAutodetect=!1,t.name="C++",t.aliases=["cc","c++","h++","hpp","hh","hxx","cxx"],t}},function(e,t){e.exports=function(e){const t="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:"primitive rsc_template",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+t.split(" ").join("|")+")\\s+",keywords:t,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}}},function(e,t){e.exports=function(e){var t="(_?[ui](8|16|32|64|128))?",n="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",o={$pattern:"[a-zA-Z_]\\w*[!?=]?",keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},r={className:"subst",begin:/#\{/,end:/\}/,keywords:o},i={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o};function a(e,t){var n=[{begin:e,end:t}];return n[0].contains=n,n}var s={className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:a("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:a("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:a(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:a("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},c={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:a("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:a("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:a(/\{/,/\}/)},{begin:"%q<",end:">",contains:a("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},l={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},u=[i,s,c,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:"%r\\(",end:"\\)",contains:a("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:a("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:a(/\{/,/\}/)},{begin:"%r<",end:">",contains:a("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},l,{className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"})]},e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"})],relevance:10},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"})],relevance:10},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[s,{begin:n}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?(_?f(32|64))?(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return r.contains=u,i.contains=u.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:u}}},function(e,t){e.exports=function(e){var t={keyword:["abstract","as","base","break","case","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]).join(" "),built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","unit","ushort"].join(" "),literal:["default","false","null","true"].join(" ")},n=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),o={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},r={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},i=e.inherit(r,{illegal:/\n/}),a={className:"subst",begin:/\{/,end:/\}/,keywords:t},s=e.inherit(a,{illegal:/\n/}),c={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,s]},l={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},a]},u=e.inherit(l,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},s]});a.contains=[l,c,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,e.C_BLOCK_COMMENT_MODE],s.contains=[u,c,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];var d={variants:[l,c,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h={begin:"<",end:">",contains:[{beginKeywords:"in out"},n]},p=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",m={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:t,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},d,o,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},n,h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[n,h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"meta-string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+p+"\\s+)+"+e.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:t,contains:[{beginKeywords:["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"].join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,h],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,relevance:0,contains:[d,o,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},m]}}},function(e,t){e.exports=function(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:"base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}},function(e,t){e.exports=function(e){var t={begin:/([*]\s?)?(?:[A-Z_.\-\\]+|--[a-zA-Z0-9_-]+)\s*(\/\*\*\/)?:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*"},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9_+()"'.-]+/},{begin:"@(page|font-face)",lexemes:"@[a-z-]+",keywords:"@page @font-face"},{begin:"@",end:"[{;]",illegal:/:/,returnBegin:!0,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:"and or not only",contains:[{begin:/[a-z-]+:/,className:"attribute"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},{begin:/\{/,end:/\}/,illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,{begin:/;/},t]}]}}},function(e,t){e.exports=function(e){const t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},n="((0|[1-9][\\d_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))",o="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",r={className:"number",begin:"\\b"+n+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},i={className:"number",begin:"\\b(((0[xX](([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)\\.([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)|\\.?([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))[pP][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))|((0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(\\.\\d*|([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)))|\\d+\\.(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)|\\.(0|[1-9][\\d_]*)([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))?))([fF]|L|i|[fF]i|Li)?|"+n+"(i|[fF]i|Li))",relevance:0},a={className:"string",begin:"'("+o+"|.)",end:"'",illegal:"."},s={className:"string",begin:'"',contains:[{begin:o,relevance:0}],end:'"[cwd]?'},c=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c,{className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},s,{className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},{className:"string",begin:"`",end:"`[cwd]?"},{className:"string",begin:'q"\\{',end:'\\}"'},i,r,a,{className:"meta",begin:"^#!",end:"$",relevance:5},{className:"meta",begin:"#(line)",end:"$",relevance:5},{className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"}]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.+?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},r={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},i={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};r.contains.push(i),i.contains.push(r);let a=[t,o];return r.contains=r.contains.concat(a),i.contains=i.contains.concat(a),a=a.concat(r,i),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:a},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:a}]}]},t,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},r,i,{className:"quote",begin:"^>\\s+",contains:a,end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},o,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}},function(e,t){e.exports=function(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},o={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]}]};n.contains=[e.C_NUMBER_MODE,o];const r=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],i=r.map(e=>e+"?");return{name:"Dart",keywords:{keyword:"abstract as assert async await break case catch class const continue covariant default deferred do dynamic else enum export extends extension external factory false final finally for Function get hide if implements import in inferface is late library mixin new null on operator part required rethrow return set show static super switch sync this throw true try typedef var void while with yield",built_in:r.concat(i).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]).join(" "),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[o,e.COMMENT("/\\*\\*","\\*/",{subLanguage:"markdown",relevance:0}),e.COMMENT("///+\\s*","$",{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}},function(e,t){e.exports=function(e){const t="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure absolute reintroduce operator as is abstract alias assembler bitpacked break continue cppdecl cvar enumerator experimental platform deprecated unimplemented dynamic export far16 forward generic helper implements interrupt iochecks local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat specialize strict unaligned varargs ",n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},r={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},i={className:"string",begin:/(#\d+)+/},a={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},s={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[r,i,o].concat(n)},o].concat(n)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal","freepascal","lazarus","lpr","lfm"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[r,i,e.NUMBER_MODE,{className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},a,s,o].concat(n)}}},function(e,t){e.exports=function(e){return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^--- +\d+,\d+ +----$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/^index/,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/^\*{15}$/},{begin:/^diff --git/,end:/$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}},function(e,t){e.exports=function(e){const t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[t]}]}}},function(e,t){e.exports=function(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:{keyword:"IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}},function(e,t){e.exports=function(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:"from maintainer expose env arg user onbuild stopsignal",contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}},function(e,t){e.exports=function(e){const t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"if else goto for in do call exit not exist errorlevel defined equ neq lss leq gtr geq",built_in:"prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux shift cd dir echo setlocal endlocal set pause copy append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color comp compact convert date dir diskcomp diskcopy doskey erase fs find findstr format ftype graftabl help keyb label md mkdir mode more move path pause print popd pushd promt rd recover rem rename replace restore rmdir shift sort start subst time title tree type ver verify vol ping net ipconfig taskkill xcopy ren del"},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),t]},{className:"number",begin:"\\b\\d+",relevance:0},t]}}},function(e,t){e.exports=function(e){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}},function(e,t){e.exports=function(e){const t={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},n={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},o={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[e.inherit(t,{className:"meta-string"}),{className:"meta-string",begin:"<",end:">",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r={className:"variable",begin:/&[a-z\d_]*\b/},i={className:"meta-keyword",begin:"/[a-z][a-z\\d-]*/"},a={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},s={className:"params",begin:"<",end:">",contains:[n,r]},c={className:"class",begin:/[a-zA-Z_][a-zA-Z\d_@]*\s\{/,end:/[{;=]/,returnBegin:!0,excludeEnd:!0};return{name:"Device Tree",keywords:"",contains:[{className:"class",begin:"/\\s*\\{",end:/\};/,relevance:10,contains:[r,i,a,c,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t]},r,i,a,c,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,o,{begin:e.IDENT_RE+"::",keywords:""}]}}},function(e,t){e.exports=function(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}},function(e,t){e.exports=function(e){const t=e.COMMENT(/\(\*/,/\*\)/);return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,{className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]}]}}},function(e,t){e.exports=function(e){const t="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",n={$pattern:t,keyword:"and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote require import with|0"},o={className:"subst",begin:/#\{/,end:/\}/,keywords:n},r={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[1-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},i={className:"string",begin:"~[a-z](?=[/|([{<\"'])",contains:[{endsParent:!0,contains:[{contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}]}]}]},a={className:"string",begin:"~[A-Z](?=[/|([{<\"'])",contains:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}]},s={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},c={className:"function",beginKeywords:"def defp defmacro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:t,endsParent:!0})]},l=e.inherit(c,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),u=[s,a,i,e.HASH_COMMENT_MODE,l,c,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[s,{begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"}],relevance:0},{className:"symbol",begin:t+":(?!:)",relevance:0},r,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"},{begin:"->"},{begin:"("+e.RE_STARTERS_RE+")\\s*",contains:[e.HASH_COMMENT_MODE,{begin:/\/: (?=\d+\s*[,\]])/,relevance:0,contains:[r]},{className:"regexp",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}],relevance:0}];return o.contains=u,{name:"Elixir",keywords:n,contains:u}}},function(e,t){e.exports=function(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},o={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]};return{name:"Elm",keywords:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[o,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[o,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,o,{begin:/\{/,end:/\}/,contains:o.contains},t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},{className:"string",begin:"'\\\\?.",end:"'",illegal:"."},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){var t,o="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor __FILE__",built_in:"proc lambda",literal:"true false nil"},i={className:"doctag",begin:"@[A-Za-z]+"},a={begin:"#<",end:">"},s=[e.COMMENT("#","$",{contains:[i]}),e.COMMENT("^=begin","^=end",{contains:[i],relevance:10}),e.COMMENT("^__END__","\\n$")],c={className:"subst",begin:/#\{/,end:/\}/,keywords:r},l={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{begin:/<<[-~]?'?(\w+)\n(?:[^\n]*\n)*?\s*\1\b/,returnBegin:!0,contains:[{begin:/<<[-~]?'?/},e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},u={className:"number",relevance:0,variants:[{begin:"\\b([1-9](_?[0-9])*|0)(\\.([0-9](_?[0-9])*))?([eE][+-]?([0-9](_?[0-9])*)|r)?i?\\b"},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},d={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:r},h=[l,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"}),{begin:"<\\s*",contains:[{begin:"("+e.IDENT_RE+"::)?"+e.IDENT_RE}]}].concat(s)},{className:"function",begin:n(/def\s*/,(t=o+"\\s*(\\(|;|$)",n("(?=",t,")"))),keywords:"def",end:"$|;",contains:[e.inherit(e.TITLE_MODE,{begin:o}),d].concat(s)},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[l,{begin:o}],relevance:0},u,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,relevance:0,keywords:r},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(a,s),relevance:0}].concat(a,s);c.contains=h,d.contains=h;var p=[{begin:/^\s*=>/,starts:{end:"$",contains:h}},{className:"meta",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",starts:{end:"$",contains:h}}];return s.unshift(a),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:r,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(p).concat(s).concat(h)}}},function(e,t){e.exports=function(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:n(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}},function(e,t){e.exports=function(e){const t="[a-z'][a-zA-Z0-9_']*",n="("+t+":"+t+"|"+t+")",o={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},r=e.COMMENT("%","$"),i={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a={begin:"fun\\s+"+t+"/\\d+"},s={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},c={begin:/\{/,end:/\}/,relevance:0},l={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},u={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},d={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},h={beginKeywords:"fun receive if try case",end:"end",keywords:o};h.contains=[r,a,e.inherit(e.APOS_STRING_MODE,{className:""}),h,s,e.QUOTE_STRING_MODE,i,c,l,u,d];const p=[r,a,h,s,e.QUOTE_STRING_MODE,i,c,l,u,d];s.contains[1].contains=p,c.contains=p,d.contains[1].contains=p;const m={className:"params",begin:"\\(",end:"\\)",contains:p};return{name:"Erlang",aliases:["erl"],keywords:o,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[m,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:o,contains:p}},r,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:"-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn -import -include -include_lib -compile -define -else -endif -file -behaviour -behavior -spec"},contains:[m]},i,e.QUOTE_STRING_MODE,d,l,u,c,{begin:/\.$/}]}}},function(e,t){e.exports=function(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:"ABS ACCRINT ACCRINTM ACOS ACOSH ACOT ACOTH AGGREGATE ADDRESS AMORDEGRC AMORLINC AND ARABIC AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BASE BESSELI BESSELJ BESSELK BESSELY BETADIST BETA.DIST BETAINV BETA.INV BIN2DEC BIN2HEX BIN2OCT BINOMDIST BINOM.DIST BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR CALL CEILING CEILING.MATH CEILING.PRECISE CELL CHAR CHIDIST CHIINV CHITEST CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMBINA COMPLEX CONCAT CONCATENATE CONFIDENCE CONFIDENCE.NORM CONFIDENCE.T CONVERT CORREL COS COSH COT COTH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR COVARIANCE.P COVARIANCE.S CRITBINOM CSC CSCH CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS DAYS360 DB DBCS DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DECIMAL DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT ENCODEURL EOMONTH ERF ERF.PRECISE ERFC ERFC.PRECISE ERROR.TYPE EUROCONVERT EVEN EXACT EXP EXPON.DIST EXPONDIST FACT FACTDOUBLE FALSE|0 F.DIST FDIST F.DIST.RT FILTERXML FIND FINDB F.INV F.INV.RT FINV FISHER FISHERINV FIXED FLOOR FLOOR.MATH FLOOR.PRECISE FORECAST FORECAST.ETS FORECAST.ETS.CONFINT FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT FREQUENCY F.TEST FTEST FV FVSCHEDULE GAMMA GAMMA.DIST GAMMADIST GAMMA.INV GAMMAINV GAMMALN GAMMALN.PRECISE GAUSS GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2DEC HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOM.DIST HYPGEOMDIST IF IFERROR IFNA IFS IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMCOSH IMCOT IMCSC IMCSCH IMDIV IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSEC IMSECH IMSIN IMSINH IMSQRT IMSUB IMSUM IMTAN INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISFORMULA ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISREF ISTEXT ISO.CEILING ISOWEEKNUM ISPMT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORM.DIST LOGNORMDIST LOGNORM.INV LOOKUP LOWER MATCH MAX MAXA MAXIFS MDETERM MDURATION MEDIAN MID MIDBs MIN MINIFS MINA MINUTE MINVERSE MIRR MMULT MOD MODE MODE.MULT MODE.SNGL MONTH MROUND MULTINOMIAL MUNIT N NA NEGBINOM.DIST NEGBINOMDIST NETWORKDAYS NETWORKDAYS.INTL NOMINAL NORM.DIST NORMDIST NORMINV NORM.INV NORM.S.DIST NORMSDIST NORM.S.INV NORMSINV NOT NOW NPER NPV NUMBERVALUE OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PDURATION PEARSON PERCENTILE.EXC PERCENTILE.INC PERCENTILE PERCENTRANK.EXC PERCENTRANK.INC PERCENTRANK PERMUT PERMUTATIONA PHI PHONETIC PI PMT POISSON.DIST POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUARTILE.EXC QUARTILE.INC QUOTIENT RADIANS RAND RANDBETWEEN RANK.AVG RANK.EQ RANK RATE RECEIVED REGISTER.ID REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RRI RSQ RTD SEARCH SEARCHB SEC SECH SECOND SERIESSUM SHEET SHEETS SIGN SIN SINH SKEW SKEW.P SLN SLOPE SMALL SQL.REQUEST SQRT SQRTPI STANDARDIZE STDEV STDEV.P STDEV.S STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SWITCH SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD T.DIST T.DIST.2T T.DIST.RT TDIST TEXT TEXTJOIN TIME TIMEVALUE T.INV T.INV.2T TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE|0 TRUNC T.TEST TTEST TYPE UNICHAR UNICODE UPPER VALUE VAR VAR.P VAR.S VARA VARP VARPA VDB VLOOKUP WEBSERVICE WEEKDAY WEEKNUM WEIBULL WEIBULL.DIST WORKDAY WORKDAY.INTL XIRR XNPV XOR YEAR YEARFRAC YIELD YIELDDISC YIELDMAT Z.TEST ZTEST"},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}},function(e,t){e.exports=function(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}},function(e,t){e.exports=function(e){const t={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{literal:"true false",keyword:"case class def else enum if impl import in lat rel index let match namespace switch type yield with"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},{className:"string",variants:[{begin:'"',end:'"'}]},t,e.C_NUMBER_MODE]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},o=/(_[a-z_\d]+)?/,r=/([de][+-]?\d+)?/,i={className:"number",variants:[{begin:n(/\b\d+/,/\.(\d*)/,r,o)},{begin:n(/\b\d+/,r,o)},{begin:n(/\.\d+/,r,o)}],relevance:0},a={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{literal:".False. .True.",keyword:"kind do concurrent local shared while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then block endblock endassociate public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure impure integer real character complex logical codimension dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image sync change team co_broadcast co_max co_min co_sum co_reduce"},illegal:/\/\*/,contains:[{className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},a,{begin:/^C\s*=(?!=)/,relevance:0},t,i]}}},function(e,t){e.exports=function(e){const t={begin:"<",end:">",contains:[e.inherit(e.TITLE_MODE,{begin:/'[a-zA-Z0-9_]+/})]};return{name:"F#",aliases:["fs"],keywords:"abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",illegal:/\/\*/,contains:[{className:"keyword",begin:/\b(yield|return|let|do)!/},{className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:'"""',end:'"""'},e.COMMENT("\\(\\*(\\s)","\\*\\)",{contains:["self"]}),{className:"class",beginKeywords:"type",end:"\\(|=|$",excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE,t]},{className:"meta",begin:"\\[<",end:">\\]",relevance:10},{className:"symbol",begin:"\\B('[A-Za-z])\\b",contains:[e.BACKSLASH_ESCAPE]},e.C_LINE_COMMENT_MODE,e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),e.C_NUMBER_MODE]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},o={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},r={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},i={begin:"/",end:"/",keywords:t,contains:[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},a=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,s={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[r,i,{className:"comment",begin:n(a,(c=n(/[ ]+/,a),n("(",c,")*"))),relevance:0}]};var c;return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:t,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"meta-keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,i,s]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[s]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},o]},e.C_NUMBER_MODE,o]}}},function(e,t){e.exports=function(e){const t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},n=e.COMMENT("@","@"),o={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[{className:"meta-string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},r={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},i=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,r]}],a={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},s=function(t,o,r){const s=e.inherit({className:"function",beginKeywords:t,end:o,excludeEnd:!0,contains:[].concat(i)},r||{});return s.contains.push(a),s.contains.push(e.C_NUMBER_MODE),s.contains.push(e.C_BLOCK_COMMENT_MODE),s.contains.push(n),s},c={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},l={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},u={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},c,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},d={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,c,u,l,"self"]};return u.contains.push(d),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,l,o,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},s("proc keyword",";"),s("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,n,d]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},u,r]}}},function(e,t){e.exports=function(e){const t={$pattern:"[A-Z_][A-Z0-9_.]*",keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},n=e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+e.C_NUMBER_RE}),o=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),n,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[n],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:t,contains:[{className:"meta",begin:"%"},{className:"meta",begin:"([O])([0-9]+)"}].concat(o)}}},function(e,t){e.exports=function(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}},function(e,t){e.exports=function(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}},function(e,t){e.exports=function(e){return{name:"GML",aliases:["gml","GML"],case_insensitive:!1,keywords:{keyword:"begin end if then else while do for break continue with until repeat exit and or xor not return mod div switch case default var globalvar enum #macro #region #endregion",built_in:"is_real is_string is_array is_undefined is_int32 is_int64 is_ptr is_vec3 is_vec4 is_matrix is_bool typeof variable_global_exists variable_global_get variable_global_set variable_instance_exists variable_instance_get variable_instance_set variable_instance_get_names array_length_1d array_length_2d array_height_2d array_equals array_create array_copy random random_range irandom irandom_range random_set_seed random_get_seed randomize randomise choose abs round floor ceil sign frac sqrt sqr exp ln log2 log10 sin cos tan arcsin arccos arctan arctan2 dsin dcos dtan darcsin darccos darctan darctan2 degtorad radtodeg power logn min max mean median clamp lerp dot_product dot_product_3d dot_product_normalised dot_product_3d_normalised dot_product_normalized dot_product_3d_normalized math_set_epsilon math_get_epsilon angle_difference point_distance_3d point_distance point_direction lengthdir_x lengthdir_y real string int64 ptr string_format chr ansi_char ord string_length string_byte_length string_pos string_copy string_char_at string_ord_at string_byte_at string_set_byte_at string_delete string_insert string_lower string_upper string_repeat string_letters string_digits string_lettersdigits string_replace string_replace_all string_count string_hash_to_newline clipboard_has_text clipboard_set_text clipboard_get_text date_current_datetime date_create_datetime date_valid_datetime date_inc_year date_inc_month date_inc_week date_inc_day date_inc_hour date_inc_minute date_inc_second date_get_year date_get_month date_get_week date_get_day date_get_hour date_get_minute date_get_second date_get_weekday date_get_day_of_year date_get_hour_of_year date_get_minute_of_year date_get_second_of_year date_year_span date_month_span date_week_span date_day_span date_hour_span date_minute_span date_second_span date_compare_datetime date_compare_date date_compare_time date_date_of date_time_of date_datetime_string date_date_string date_time_string date_days_in_month date_days_in_year date_leap_year date_is_today date_set_timezone date_get_timezone game_set_speed game_get_speed motion_set motion_add place_free place_empty place_meeting place_snapped move_random move_snap move_towards_point move_contact_solid move_contact_all move_outside_solid move_outside_all move_bounce_solid move_bounce_all move_wrap distance_to_point distance_to_object position_empty position_meeting path_start path_end mp_linear_step mp_potential_step mp_linear_step_object mp_potential_step_object mp_potential_settings mp_linear_path mp_potential_path mp_linear_path_object mp_potential_path_object mp_grid_create mp_grid_destroy mp_grid_clear_all mp_grid_clear_cell mp_grid_clear_rectangle mp_grid_add_cell mp_grid_get_cell mp_grid_add_rectangle mp_grid_add_instances mp_grid_path mp_grid_draw mp_grid_to_ds_grid collision_point collision_rectangle collision_circle collision_ellipse collision_line collision_point_list collision_rectangle_list collision_circle_list collision_ellipse_list collision_line_list instance_position_list instance_place_list point_in_rectangle point_in_triangle point_in_circle rectangle_in_rectangle rectangle_in_triangle rectangle_in_circle instance_find instance_exists instance_number instance_position instance_nearest instance_furthest instance_place instance_create_depth instance_create_layer instance_copy instance_change instance_destroy position_destroy position_change instance_id_get instance_deactivate_all instance_deactivate_object instance_deactivate_region instance_activate_all instance_activate_object instance_activate_region room_goto room_goto_previous room_goto_next room_previous room_next room_restart game_end game_restart game_load game_save game_save_buffer game_load_buffer event_perform event_user event_perform_object event_inherited show_debug_message show_debug_overlay debug_event debug_get_callstack alarm_get alarm_set font_texture_page_size keyboard_set_map keyboard_get_map keyboard_unset_map keyboard_check keyboard_check_pressed keyboard_check_released keyboard_check_direct keyboard_get_numlock keyboard_set_numlock keyboard_key_press keyboard_key_release keyboard_clear io_clear mouse_check_button mouse_check_button_pressed mouse_check_button_released mouse_wheel_up mouse_wheel_down mouse_clear draw_self draw_sprite draw_sprite_pos draw_sprite_ext draw_sprite_stretched draw_sprite_stretched_ext draw_sprite_tiled draw_sprite_tiled_ext draw_sprite_part draw_sprite_part_ext draw_sprite_general draw_clear draw_clear_alpha draw_point draw_line draw_line_width draw_rectangle draw_roundrect draw_roundrect_ext draw_triangle draw_circle draw_ellipse draw_set_circle_precision draw_arrow draw_button draw_path draw_healthbar draw_getpixel draw_getpixel_ext draw_set_colour draw_set_color draw_set_alpha draw_get_colour draw_get_color draw_get_alpha merge_colour make_colour_rgb make_colour_hsv colour_get_red colour_get_green colour_get_blue colour_get_hue colour_get_saturation colour_get_value merge_color make_color_rgb make_color_hsv color_get_red color_get_green color_get_blue color_get_hue color_get_saturation color_get_value merge_color screen_save screen_save_part draw_set_font draw_set_halign draw_set_valign draw_text draw_text_ext string_width string_height string_width_ext string_height_ext draw_text_transformed draw_text_ext_transformed draw_text_colour draw_text_ext_colour draw_text_transformed_colour draw_text_ext_transformed_colour draw_text_color draw_text_ext_color draw_text_transformed_color draw_text_ext_transformed_color draw_point_colour draw_line_colour draw_line_width_colour draw_rectangle_colour draw_roundrect_colour draw_roundrect_colour_ext draw_triangle_colour draw_circle_colour draw_ellipse_colour draw_point_color draw_line_color draw_line_width_color draw_rectangle_color draw_roundrect_color draw_roundrect_color_ext draw_triangle_color draw_circle_color draw_ellipse_color draw_primitive_begin draw_vertex draw_vertex_colour draw_vertex_color draw_primitive_end sprite_get_uvs font_get_uvs sprite_get_texture font_get_texture texture_get_width texture_get_height texture_get_uvs draw_primitive_begin_texture draw_vertex_texture draw_vertex_texture_colour draw_vertex_texture_color texture_global_scale surface_create surface_create_ext surface_resize surface_free surface_exists surface_get_width surface_get_height surface_get_texture surface_set_target surface_set_target_ext surface_reset_target surface_depth_disable surface_get_depth_disable draw_surface draw_surface_stretched draw_surface_tiled draw_surface_part draw_surface_ext draw_surface_stretched_ext draw_surface_tiled_ext draw_surface_part_ext draw_surface_general surface_getpixel surface_getpixel_ext surface_save surface_save_part surface_copy surface_copy_part application_surface_draw_enable application_get_position application_surface_enable application_surface_is_enabled display_get_width display_get_height display_get_orientation display_get_gui_width display_get_gui_height display_reset display_mouse_get_x display_mouse_get_y display_mouse_set display_set_ui_visibility window_set_fullscreen window_get_fullscreen window_set_caption window_set_min_width window_set_max_width window_set_min_height window_set_max_height window_get_visible_rects window_get_caption window_set_cursor window_get_cursor window_set_colour window_get_colour window_set_color window_get_color window_set_position window_set_size window_set_rectangle window_center window_get_x window_get_y window_get_width window_get_height window_mouse_get_x window_mouse_get_y window_mouse_set window_view_mouse_get_x window_view_mouse_get_y window_views_mouse_get_x window_views_mouse_get_y audio_listener_position audio_listener_velocity audio_listener_orientation audio_emitter_position audio_emitter_create audio_emitter_free audio_emitter_exists audio_emitter_pitch audio_emitter_velocity audio_emitter_falloff audio_emitter_gain audio_play_sound audio_play_sound_on audio_play_sound_at audio_stop_sound audio_resume_music audio_music_is_playing audio_resume_sound audio_pause_sound audio_pause_music audio_channel_num audio_sound_length audio_get_type audio_falloff_set_model audio_play_music audio_stop_music audio_master_gain audio_music_gain audio_sound_gain audio_sound_pitch audio_stop_all audio_resume_all audio_pause_all audio_is_playing audio_is_paused audio_exists audio_sound_set_track_position audio_sound_get_track_position audio_emitter_get_gain audio_emitter_get_pitch audio_emitter_get_x audio_emitter_get_y audio_emitter_get_z audio_emitter_get_vx audio_emitter_get_vy audio_emitter_get_vz audio_listener_set_position audio_listener_set_velocity audio_listener_set_orientation audio_listener_get_data audio_set_master_gain audio_get_master_gain audio_sound_get_gain audio_sound_get_pitch audio_get_name audio_sound_set_track_position audio_sound_get_track_position audio_create_stream audio_destroy_stream audio_create_sync_group audio_destroy_sync_group audio_play_in_sync_group audio_start_sync_group audio_stop_sync_group audio_pause_sync_group audio_resume_sync_group audio_sync_group_get_track_pos audio_sync_group_debug audio_sync_group_is_playing audio_debug audio_group_load audio_group_unload audio_group_is_loaded audio_group_load_progress audio_group_name audio_group_stop_all audio_group_set_gain audio_create_buffer_sound audio_free_buffer_sound audio_create_play_queue audio_free_play_queue audio_queue_sound audio_get_recorder_count audio_get_recorder_info audio_start_recording audio_stop_recording audio_sound_get_listener_mask audio_emitter_get_listener_mask audio_get_listener_mask audio_sound_set_listener_mask audio_emitter_set_listener_mask audio_set_listener_mask audio_get_listener_count audio_get_listener_info audio_system show_message show_message_async clickable_add clickable_add_ext clickable_change clickable_change_ext clickable_delete clickable_exists clickable_set_style show_question show_question_async get_integer get_string get_integer_async get_string_async get_login_async get_open_filename get_save_filename get_open_filename_ext get_save_filename_ext show_error highscore_clear highscore_add highscore_value highscore_name draw_highscore sprite_exists sprite_get_name sprite_get_number sprite_get_width sprite_get_height sprite_get_xoffset sprite_get_yoffset sprite_get_bbox_left sprite_get_bbox_right sprite_get_bbox_top sprite_get_bbox_bottom sprite_save sprite_save_strip sprite_set_cache_size sprite_set_cache_size_ext sprite_get_tpe sprite_prefetch sprite_prefetch_multi sprite_flush sprite_flush_multi sprite_set_speed sprite_get_speed_type sprite_get_speed font_exists font_get_name font_get_fontname font_get_bold font_get_italic font_get_first font_get_last font_get_size font_set_cache_size path_exists path_get_name path_get_length path_get_time path_get_kind path_get_closed path_get_precision path_get_number path_get_point_x path_get_point_y path_get_point_speed path_get_x path_get_y path_get_speed script_exists script_get_name timeline_add timeline_delete timeline_clear timeline_exists timeline_get_name timeline_moment_clear timeline_moment_add_script timeline_size timeline_max_moment object_exists object_get_name object_get_sprite object_get_solid object_get_visible object_get_persistent object_get_mask object_get_parent object_get_physics object_is_ancestor room_exists room_get_name sprite_set_offset sprite_duplicate sprite_assign sprite_merge sprite_add sprite_replace sprite_create_from_surface sprite_add_from_surface sprite_delete sprite_set_alpha_from_sprite sprite_collision_mask font_add_enable_aa font_add_get_enable_aa font_add font_add_sprite font_add_sprite_ext font_replace font_replace_sprite font_replace_sprite_ext font_delete path_set_kind path_set_closed path_set_precision path_add path_assign path_duplicate path_append path_delete path_add_point path_insert_point path_change_point path_delete_point path_clear_points path_reverse path_mirror path_flip path_rotate path_rescale path_shift script_execute object_set_sprite object_set_solid object_set_visible object_set_persistent object_set_mask room_set_width room_set_height room_set_persistent room_set_background_colour room_set_background_color room_set_view room_set_viewport room_get_viewport room_set_view_enabled room_add room_duplicate room_assign room_instance_add room_instance_clear room_get_camera room_set_camera asset_get_index asset_get_type file_text_open_from_string file_text_open_read file_text_open_write file_text_open_append file_text_close file_text_write_string file_text_write_real file_text_writeln file_text_read_string file_text_read_real file_text_readln file_text_eof file_text_eoln file_exists file_delete file_rename file_copy directory_exists directory_create directory_destroy file_find_first file_find_next file_find_close file_attributes filename_name filename_path filename_dir filename_drive filename_ext filename_change_ext file_bin_open file_bin_rewrite file_bin_close file_bin_position file_bin_size file_bin_seek file_bin_write_byte file_bin_read_byte parameter_count parameter_string environment_get_variable ini_open_from_string ini_open ini_close ini_read_string ini_read_real ini_write_string ini_write_real ini_key_exists ini_section_exists ini_key_delete ini_section_delete ds_set_precision ds_exists ds_stack_create ds_stack_destroy ds_stack_clear ds_stack_copy ds_stack_size ds_stack_empty ds_stack_push ds_stack_pop ds_stack_top ds_stack_write ds_stack_read ds_queue_create ds_queue_destroy ds_queue_clear ds_queue_copy ds_queue_size ds_queue_empty ds_queue_enqueue ds_queue_dequeue ds_queue_head ds_queue_tail ds_queue_write ds_queue_read ds_list_create ds_list_destroy ds_list_clear ds_list_copy ds_list_size ds_list_empty ds_list_add ds_list_insert ds_list_replace ds_list_delete ds_list_find_index ds_list_find_value ds_list_mark_as_list ds_list_mark_as_map ds_list_sort ds_list_shuffle ds_list_write ds_list_read ds_list_set ds_map_create ds_map_destroy ds_map_clear ds_map_copy ds_map_size ds_map_empty ds_map_add ds_map_add_list ds_map_add_map ds_map_replace ds_map_replace_map ds_map_replace_list ds_map_delete ds_map_exists ds_map_find_value ds_map_find_previous ds_map_find_next ds_map_find_first ds_map_find_last ds_map_write ds_map_read ds_map_secure_save ds_map_secure_load ds_map_secure_load_buffer ds_map_secure_save_buffer ds_map_set ds_priority_create ds_priority_destroy ds_priority_clear ds_priority_copy ds_priority_size ds_priority_empty ds_priority_add ds_priority_change_priority ds_priority_find_priority ds_priority_delete_value ds_priority_delete_min ds_priority_find_min ds_priority_delete_max ds_priority_find_max ds_priority_write ds_priority_read ds_grid_create ds_grid_destroy ds_grid_copy ds_grid_resize ds_grid_width ds_grid_height ds_grid_clear ds_grid_set ds_grid_add ds_grid_multiply ds_grid_set_region ds_grid_add_region ds_grid_multiply_region ds_grid_set_disk ds_grid_add_disk ds_grid_multiply_disk ds_grid_set_grid_region ds_grid_add_grid_region ds_grid_multiply_grid_region ds_grid_get ds_grid_get_sum ds_grid_get_max ds_grid_get_min ds_grid_get_mean ds_grid_get_disk_sum ds_grid_get_disk_min ds_grid_get_disk_max ds_grid_get_disk_mean ds_grid_value_exists ds_grid_value_x ds_grid_value_y ds_grid_value_disk_exists ds_grid_value_disk_x ds_grid_value_disk_y ds_grid_shuffle ds_grid_write ds_grid_read ds_grid_sort ds_grid_set ds_grid_get effect_create_below effect_create_above effect_clear part_type_create part_type_destroy part_type_exists part_type_clear part_type_shape part_type_sprite part_type_size part_type_scale part_type_orientation part_type_life part_type_step part_type_death part_type_speed part_type_direction part_type_gravity part_type_colour1 part_type_colour2 part_type_colour3 part_type_colour_mix part_type_colour_rgb part_type_colour_hsv part_type_color1 part_type_color2 part_type_color3 part_type_color_mix part_type_color_rgb part_type_color_hsv part_type_alpha1 part_type_alpha2 part_type_alpha3 part_type_blend part_system_create part_system_create_layer part_system_destroy part_system_exists part_system_clear part_system_draw_order part_system_depth part_system_position part_system_automatic_update part_system_automatic_draw part_system_update part_system_drawit part_system_get_layer part_system_layer part_particles_create part_particles_create_colour part_particles_create_color part_particles_clear part_particles_count part_emitter_create part_emitter_destroy part_emitter_destroy_all part_emitter_exists part_emitter_clear part_emitter_region part_emitter_burst part_emitter_stream external_call external_define external_free window_handle window_device matrix_get matrix_set matrix_build_identity matrix_build matrix_build_lookat matrix_build_projection_ortho matrix_build_projection_perspective matrix_build_projection_perspective_fov matrix_multiply matrix_transform_vertex matrix_stack_push matrix_stack_pop matrix_stack_multiply matrix_stack_set matrix_stack_clear matrix_stack_top matrix_stack_is_empty browser_input_capture os_get_config os_get_info os_get_language os_get_region os_lock_orientation display_get_dpi_x display_get_dpi_y display_set_gui_size display_set_gui_maximise display_set_gui_maximize device_mouse_dbclick_enable display_set_timing_method display_get_timing_method display_set_sleep_margin display_get_sleep_margin virtual_key_add virtual_key_hide virtual_key_delete virtual_key_show draw_enable_drawevent draw_enable_swf_aa draw_set_swf_aa_level draw_get_swf_aa_level draw_texture_flush draw_flush gpu_set_blendenable gpu_set_ztestenable gpu_set_zfunc gpu_set_zwriteenable gpu_set_lightingenable gpu_set_fog gpu_set_cullmode gpu_set_blendmode gpu_set_blendmode_ext gpu_set_blendmode_ext_sepalpha gpu_set_colorwriteenable gpu_set_colourwriteenable gpu_set_alphatestenable gpu_set_alphatestref gpu_set_alphatestfunc gpu_set_texfilter gpu_set_texfilter_ext gpu_set_texrepeat gpu_set_texrepeat_ext gpu_set_tex_filter gpu_set_tex_filter_ext gpu_set_tex_repeat gpu_set_tex_repeat_ext gpu_set_tex_mip_filter gpu_set_tex_mip_filter_ext gpu_set_tex_mip_bias gpu_set_tex_mip_bias_ext gpu_set_tex_min_mip gpu_set_tex_min_mip_ext gpu_set_tex_max_mip gpu_set_tex_max_mip_ext gpu_set_tex_max_aniso gpu_set_tex_max_aniso_ext gpu_set_tex_mip_enable gpu_set_tex_mip_enable_ext gpu_get_blendenable gpu_get_ztestenable gpu_get_zfunc gpu_get_zwriteenable gpu_get_lightingenable gpu_get_fog gpu_get_cullmode gpu_get_blendmode gpu_get_blendmode_ext gpu_get_blendmode_ext_sepalpha gpu_get_blendmode_src gpu_get_blendmode_dest gpu_get_blendmode_srcalpha gpu_get_blendmode_destalpha gpu_get_colorwriteenable gpu_get_colourwriteenable gpu_get_alphatestenable gpu_get_alphatestref gpu_get_alphatestfunc gpu_get_texfilter gpu_get_texfilter_ext gpu_get_texrepeat gpu_get_texrepeat_ext gpu_get_tex_filter gpu_get_tex_filter_ext gpu_get_tex_repeat gpu_get_tex_repeat_ext gpu_get_tex_mip_filter gpu_get_tex_mip_filter_ext gpu_get_tex_mip_bias gpu_get_tex_mip_bias_ext gpu_get_tex_min_mip gpu_get_tex_min_mip_ext gpu_get_tex_max_mip gpu_get_tex_max_mip_ext gpu_get_tex_max_aniso gpu_get_tex_max_aniso_ext gpu_get_tex_mip_enable gpu_get_tex_mip_enable_ext gpu_push_state gpu_pop_state gpu_get_state gpu_set_state draw_light_define_ambient draw_light_define_direction draw_light_define_point draw_light_enable draw_set_lighting draw_light_get_ambient draw_light_get draw_get_lighting shop_leave_rating url_get_domain url_open url_open_ext url_open_full get_timer achievement_login achievement_logout achievement_post achievement_increment achievement_post_score achievement_available achievement_show_achievements achievement_show_leaderboards achievement_load_friends achievement_load_leaderboard achievement_send_challenge achievement_load_progress achievement_reset achievement_login_status achievement_get_pic achievement_show_challenge_notifications achievement_get_challenges achievement_event achievement_show achievement_get_info cloud_file_save cloud_string_save cloud_synchronise ads_enable ads_disable ads_setup ads_engagement_launch ads_engagement_available ads_engagement_active ads_event ads_event_preload ads_set_reward_callback ads_get_display_height ads_get_display_width ads_move ads_interstitial_available ads_interstitial_display device_get_tilt_x device_get_tilt_y device_get_tilt_z device_is_keypad_open device_mouse_check_button device_mouse_check_button_pressed device_mouse_check_button_released device_mouse_x device_mouse_y device_mouse_raw_x device_mouse_raw_y device_mouse_x_to_gui device_mouse_y_to_gui iap_activate iap_status iap_enumerate_products iap_restore_all iap_acquire iap_consume iap_product_details iap_purchase_details facebook_init facebook_login facebook_status facebook_graph_request facebook_dialog facebook_logout facebook_launch_offerwall facebook_post_message facebook_send_invite facebook_user_id facebook_accesstoken facebook_check_permission facebook_request_read_permissions facebook_request_publish_permissions gamepad_is_supported gamepad_get_device_count gamepad_is_connected gamepad_get_description gamepad_get_button_threshold gamepad_set_button_threshold gamepad_get_axis_deadzone gamepad_set_axis_deadzone gamepad_button_count gamepad_button_check gamepad_button_check_pressed gamepad_button_check_released gamepad_button_value gamepad_axis_count gamepad_axis_value gamepad_set_vibration gamepad_set_colour gamepad_set_color os_is_paused window_has_focus code_is_compiled http_get http_get_file http_post_string http_request json_encode json_decode zip_unzip load_csv base64_encode base64_decode md5_string_unicode md5_string_utf8 md5_file os_is_network_connected sha1_string_unicode sha1_string_utf8 sha1_file os_powersave_enable analytics_event analytics_event_ext win8_livetile_tile_notification win8_livetile_tile_clear win8_livetile_badge_notification win8_livetile_badge_clear win8_livetile_queue_enable win8_secondarytile_pin win8_secondarytile_badge_notification win8_secondarytile_delete win8_livetile_notification_begin win8_livetile_notification_secondary_begin win8_livetile_notification_expiry win8_livetile_notification_tag win8_livetile_notification_text_add win8_livetile_notification_image_add win8_livetile_notification_end win8_appbar_enable win8_appbar_add_element win8_appbar_remove_element win8_settingscharm_add_entry win8_settingscharm_add_html_entry win8_settingscharm_add_xaml_entry win8_settingscharm_set_xaml_property win8_settingscharm_get_xaml_property win8_settingscharm_remove_entry win8_share_image win8_share_screenshot win8_share_file win8_share_url win8_share_text win8_search_enable win8_search_disable win8_search_add_suggestions win8_device_touchscreen_available win8_license_initialize_sandbox win8_license_trial_version winphone_license_trial_version winphone_tile_title winphone_tile_count winphone_tile_back_title winphone_tile_back_content winphone_tile_back_content_wide winphone_tile_front_image winphone_tile_front_image_small winphone_tile_front_image_wide winphone_tile_back_image winphone_tile_back_image_wide winphone_tile_background_colour winphone_tile_background_color winphone_tile_icon_image winphone_tile_small_icon_image winphone_tile_wide_content winphone_tile_cycle_images winphone_tile_small_background_image physics_world_create physics_world_gravity physics_world_update_speed physics_world_update_iterations physics_world_draw_debug physics_pause_enable physics_fixture_create physics_fixture_set_kinematic physics_fixture_set_density physics_fixture_set_awake physics_fixture_set_restitution physics_fixture_set_friction physics_fixture_set_collision_group physics_fixture_set_sensor physics_fixture_set_linear_damping physics_fixture_set_angular_damping physics_fixture_set_circle_shape physics_fixture_set_box_shape physics_fixture_set_edge_shape physics_fixture_set_polygon_shape physics_fixture_set_chain_shape physics_fixture_add_point physics_fixture_bind physics_fixture_bind_ext physics_fixture_delete physics_apply_force physics_apply_impulse physics_apply_angular_impulse physics_apply_local_force physics_apply_local_impulse physics_apply_torque physics_mass_properties physics_draw_debug physics_test_overlap physics_remove_fixture physics_set_friction physics_set_density physics_set_restitution physics_get_friction physics_get_density physics_get_restitution physics_joint_distance_create physics_joint_rope_create physics_joint_revolute_create physics_joint_prismatic_create physics_joint_pulley_create physics_joint_wheel_create physics_joint_weld_create physics_joint_friction_create physics_joint_gear_create physics_joint_enable_motor physics_joint_get_value physics_joint_set_value physics_joint_delete physics_particle_create physics_particle_delete physics_particle_delete_region_circle physics_particle_delete_region_box physics_particle_delete_region_poly physics_particle_set_flags physics_particle_set_category_flags physics_particle_draw physics_particle_draw_ext physics_particle_count physics_particle_get_data physics_particle_get_data_particle physics_particle_group_begin physics_particle_group_circle physics_particle_group_box physics_particle_group_polygon physics_particle_group_add_point physics_particle_group_end physics_particle_group_join physics_particle_group_delete physics_particle_group_count physics_particle_group_get_data physics_particle_group_get_mass physics_particle_group_get_inertia physics_particle_group_get_centre_x physics_particle_group_get_centre_y physics_particle_group_get_vel_x physics_particle_group_get_vel_y physics_particle_group_get_ang_vel physics_particle_group_get_x physics_particle_group_get_y physics_particle_group_get_angle physics_particle_set_group_flags physics_particle_get_group_flags physics_particle_get_max_count physics_particle_get_radius physics_particle_get_density physics_particle_get_damping physics_particle_get_gravity_scale physics_particle_set_max_count physics_particle_set_radius physics_particle_set_density physics_particle_set_damping physics_particle_set_gravity_scale network_create_socket network_create_socket_ext network_create_server network_create_server_raw network_connect network_connect_raw network_send_packet network_send_raw network_send_broadcast network_send_udp network_send_udp_raw network_set_timeout network_set_config network_resolve network_destroy buffer_create buffer_write buffer_read buffer_seek buffer_get_surface buffer_set_surface buffer_delete buffer_exists buffer_get_type buffer_get_alignment buffer_poke buffer_peek buffer_save buffer_save_ext buffer_load buffer_load_ext buffer_load_partial buffer_copy buffer_fill buffer_get_size buffer_tell buffer_resize buffer_md5 buffer_sha1 buffer_base64_encode buffer_base64_decode buffer_base64_decode_ext buffer_sizeof buffer_get_address buffer_create_from_vertex_buffer buffer_create_from_vertex_buffer_ext buffer_copy_from_vertex_buffer buffer_async_group_begin buffer_async_group_option buffer_async_group_end buffer_load_async buffer_save_async gml_release_mode gml_pragma steam_activate_overlay steam_is_overlay_enabled steam_is_overlay_activated steam_get_persona_name steam_initialised steam_is_cloud_enabled_for_app steam_is_cloud_enabled_for_account steam_file_persisted steam_get_quota_total steam_get_quota_free steam_file_write steam_file_write_file steam_file_read steam_file_delete steam_file_exists steam_file_size steam_file_share steam_is_screenshot_requested steam_send_screenshot steam_is_user_logged_on steam_get_user_steam_id steam_user_owns_dlc steam_user_installed_dlc steam_set_achievement steam_get_achievement steam_clear_achievement steam_set_stat_int steam_set_stat_float steam_set_stat_avg_rate steam_get_stat_int steam_get_stat_float steam_get_stat_avg_rate steam_reset_all_stats steam_reset_all_stats_achievements steam_stats_ready steam_create_leaderboard steam_upload_score steam_upload_score_ext steam_download_scores_around_user steam_download_scores steam_download_friends_scores steam_upload_score_buffer steam_upload_score_buffer_ext steam_current_game_language steam_available_languages steam_activate_overlay_browser steam_activate_overlay_user steam_activate_overlay_store steam_get_user_persona_name steam_get_app_id steam_get_user_account_id steam_ugc_download steam_ugc_create_item steam_ugc_start_item_update steam_ugc_set_item_title steam_ugc_set_item_description steam_ugc_set_item_visibility steam_ugc_set_item_tags steam_ugc_set_item_content steam_ugc_set_item_preview steam_ugc_submit_item_update steam_ugc_get_item_update_progress steam_ugc_subscribe_item steam_ugc_unsubscribe_item steam_ugc_num_subscribed_items steam_ugc_get_subscribed_items steam_ugc_get_item_install_info steam_ugc_get_item_update_info steam_ugc_request_item_details steam_ugc_create_query_user steam_ugc_create_query_user_ex steam_ugc_create_query_all steam_ugc_create_query_all_ex steam_ugc_query_set_cloud_filename_filter steam_ugc_query_set_match_any_tag steam_ugc_query_set_search_text steam_ugc_query_set_ranked_by_trend_days steam_ugc_query_add_required_tag steam_ugc_query_add_excluded_tag steam_ugc_query_set_return_long_description steam_ugc_query_set_return_total_only steam_ugc_query_set_allow_cached_response steam_ugc_send_query shader_set shader_get_name shader_reset shader_current shader_is_compiled shader_get_sampler_index shader_get_uniform shader_set_uniform_i shader_set_uniform_i_array shader_set_uniform_f shader_set_uniform_f_array shader_set_uniform_matrix shader_set_uniform_matrix_array shader_enable_corner_id texture_set_stage texture_get_texel_width texture_get_texel_height shaders_are_supported vertex_format_begin vertex_format_end vertex_format_delete vertex_format_add_position vertex_format_add_position_3d vertex_format_add_colour vertex_format_add_color vertex_format_add_normal vertex_format_add_texcoord vertex_format_add_textcoord vertex_format_add_custom vertex_create_buffer vertex_create_buffer_ext vertex_delete_buffer vertex_begin vertex_end vertex_position vertex_position_3d vertex_colour vertex_color vertex_argb vertex_texcoord vertex_normal vertex_float1 vertex_float2 vertex_float3 vertex_float4 vertex_ubyte4 vertex_submit vertex_freeze vertex_get_number vertex_get_buffer_size vertex_create_buffer_from_buffer vertex_create_buffer_from_buffer_ext push_local_notification push_get_first_local_notification push_get_next_local_notification push_cancel_local_notification skeleton_animation_set skeleton_animation_get skeleton_animation_mix skeleton_animation_set_ext skeleton_animation_get_ext skeleton_animation_get_duration skeleton_animation_get_frames skeleton_animation_clear skeleton_skin_set skeleton_skin_get skeleton_attachment_set skeleton_attachment_get skeleton_attachment_create skeleton_collision_draw_set skeleton_bone_data_get skeleton_bone_data_set skeleton_bone_state_get skeleton_bone_state_set skeleton_get_minmax skeleton_get_num_bounds skeleton_get_bounds skeleton_animation_get_frame skeleton_animation_set_frame draw_skeleton draw_skeleton_time draw_skeleton_instance draw_skeleton_collision skeleton_animation_list skeleton_skin_list skeleton_slot_data layer_get_id layer_get_id_at_depth layer_get_depth layer_create layer_destroy layer_destroy_instances layer_add_instance layer_has_instance layer_set_visible layer_get_visible layer_exists layer_x layer_y layer_get_x layer_get_y layer_hspeed layer_vspeed layer_get_hspeed layer_get_vspeed layer_script_begin layer_script_end layer_shader layer_get_script_begin layer_get_script_end layer_get_shader layer_set_target_room layer_get_target_room layer_reset_target_room layer_get_all layer_get_all_elements layer_get_name layer_depth layer_get_element_layer layer_get_element_type layer_element_move layer_force_draw_depth layer_is_draw_depth_forced layer_get_forced_depth layer_background_get_id layer_background_exists layer_background_create layer_background_destroy layer_background_visible layer_background_change layer_background_sprite layer_background_htiled layer_background_vtiled layer_background_stretch layer_background_yscale layer_background_xscale layer_background_blend layer_background_alpha layer_background_index layer_background_speed layer_background_get_visible layer_background_get_sprite layer_background_get_htiled layer_background_get_vtiled layer_background_get_stretch layer_background_get_yscale layer_background_get_xscale layer_background_get_blend layer_background_get_alpha layer_background_get_index layer_background_get_speed layer_sprite_get_id layer_sprite_exists layer_sprite_create layer_sprite_destroy layer_sprite_change layer_sprite_index layer_sprite_speed layer_sprite_xscale layer_sprite_yscale layer_sprite_angle layer_sprite_blend layer_sprite_alpha layer_sprite_x layer_sprite_y layer_sprite_get_sprite layer_sprite_get_index layer_sprite_get_speed layer_sprite_get_xscale layer_sprite_get_yscale layer_sprite_get_angle layer_sprite_get_blend layer_sprite_get_alpha layer_sprite_get_x layer_sprite_get_y layer_tilemap_get_id layer_tilemap_exists layer_tilemap_create layer_tilemap_destroy tilemap_tileset tilemap_x tilemap_y tilemap_set tilemap_set_at_pixel tilemap_get_tileset tilemap_get_tile_width tilemap_get_tile_height tilemap_get_width tilemap_get_height tilemap_get_x tilemap_get_y tilemap_get tilemap_get_at_pixel tilemap_get_cell_x_at_pixel tilemap_get_cell_y_at_pixel tilemap_clear draw_tilemap draw_tile tilemap_set_global_mask tilemap_get_global_mask tilemap_set_mask tilemap_get_mask tilemap_get_frame tile_set_empty tile_set_index tile_set_flip tile_set_mirror tile_set_rotate tile_get_empty tile_get_index tile_get_flip tile_get_mirror tile_get_rotate layer_tile_exists layer_tile_create layer_tile_destroy layer_tile_change layer_tile_xscale layer_tile_yscale layer_tile_blend layer_tile_alpha layer_tile_x layer_tile_y layer_tile_region layer_tile_visible layer_tile_get_sprite layer_tile_get_xscale layer_tile_get_yscale layer_tile_get_blend layer_tile_get_alpha layer_tile_get_x layer_tile_get_y layer_tile_get_region layer_tile_get_visible layer_instance_get_instance instance_activate_layer instance_deactivate_layer camera_create camera_create_view camera_destroy camera_apply camera_get_active camera_get_default camera_set_default camera_set_view_mat camera_set_proj_mat camera_set_update_script camera_set_begin_script camera_set_end_script camera_set_view_pos camera_set_view_size camera_set_view_speed camera_set_view_border camera_set_view_angle camera_set_view_target camera_get_view_mat camera_get_proj_mat camera_get_update_script camera_get_begin_script camera_get_end_script camera_get_view_x camera_get_view_y camera_get_view_width camera_get_view_height camera_get_view_speed_x camera_get_view_speed_y camera_get_view_border_x camera_get_view_border_y camera_get_view_angle camera_get_view_target view_get_camera view_get_visible view_get_xport view_get_yport view_get_wport view_get_hport view_get_surface_id view_set_camera view_set_visible view_set_xport view_set_yport view_set_wport view_set_hport view_set_surface_id gesture_drag_time gesture_drag_distance gesture_flick_speed gesture_double_tap_time gesture_double_tap_distance gesture_pinch_distance gesture_pinch_angle_towards gesture_pinch_angle_away gesture_rotate_time gesture_rotate_angle gesture_tap_count gesture_get_drag_time gesture_get_drag_distance gesture_get_flick_speed gesture_get_double_tap_time gesture_get_double_tap_distance gesture_get_pinch_distance gesture_get_pinch_angle_towards gesture_get_pinch_angle_away gesture_get_rotate_time gesture_get_rotate_angle gesture_get_tap_count keyboard_virtual_show keyboard_virtual_hide keyboard_virtual_status keyboard_virtual_height",literal:"self other all noone global local undefined pointer_invalid pointer_null path_action_stop path_action_restart path_action_continue path_action_reverse true false pi GM_build_date GM_version GM_runtime_version timezone_local timezone_utc gamespeed_fps gamespeed_microseconds ev_create ev_destroy ev_step ev_alarm ev_keyboard ev_mouse ev_collision ev_other ev_draw ev_draw_begin ev_draw_end ev_draw_pre ev_draw_post ev_keypress ev_keyrelease ev_trigger ev_left_button ev_right_button ev_middle_button ev_no_button ev_left_press ev_right_press ev_middle_press ev_left_release ev_right_release ev_middle_release ev_mouse_enter ev_mouse_leave ev_mouse_wheel_up ev_mouse_wheel_down ev_global_left_button ev_global_right_button ev_global_middle_button ev_global_left_press ev_global_right_press ev_global_middle_press ev_global_left_release ev_global_right_release ev_global_middle_release ev_joystick1_left ev_joystick1_right ev_joystick1_up ev_joystick1_down ev_joystick1_button1 ev_joystick1_button2 ev_joystick1_button3 ev_joystick1_button4 ev_joystick1_button5 ev_joystick1_button6 ev_joystick1_button7 ev_joystick1_button8 ev_joystick2_left ev_joystick2_right ev_joystick2_up ev_joystick2_down ev_joystick2_button1 ev_joystick2_button2 ev_joystick2_button3 ev_joystick2_button4 ev_joystick2_button5 ev_joystick2_button6 ev_joystick2_button7 ev_joystick2_button8 ev_outside ev_boundary ev_game_start ev_game_end ev_room_start ev_room_end ev_no_more_lives ev_animation_end ev_end_of_path ev_no_more_health ev_close_button ev_user0 ev_user1 ev_user2 ev_user3 ev_user4 ev_user5 ev_user6 ev_user7 ev_user8 ev_user9 ev_user10 ev_user11 ev_user12 ev_user13 ev_user14 ev_user15 ev_step_normal ev_step_begin ev_step_end ev_gui ev_gui_begin ev_gui_end ev_cleanup ev_gesture ev_gesture_tap ev_gesture_double_tap ev_gesture_drag_start ev_gesture_dragging ev_gesture_drag_end ev_gesture_flick ev_gesture_pinch_start ev_gesture_pinch_in ev_gesture_pinch_out ev_gesture_pinch_end ev_gesture_rotate_start ev_gesture_rotating ev_gesture_rotate_end ev_global_gesture_tap ev_global_gesture_double_tap ev_global_gesture_drag_start ev_global_gesture_dragging ev_global_gesture_drag_end ev_global_gesture_flick ev_global_gesture_pinch_start ev_global_gesture_pinch_in ev_global_gesture_pinch_out ev_global_gesture_pinch_end ev_global_gesture_rotate_start ev_global_gesture_rotating ev_global_gesture_rotate_end vk_nokey vk_anykey vk_enter vk_return vk_shift vk_control vk_alt vk_escape vk_space vk_backspace vk_tab vk_pause vk_printscreen vk_left vk_right vk_up vk_down vk_home vk_end vk_delete vk_insert vk_pageup vk_pagedown vk_f1 vk_f2 vk_f3 vk_f4 vk_f5 vk_f6 vk_f7 vk_f8 vk_f9 vk_f10 vk_f11 vk_f12 vk_numpad0 vk_numpad1 vk_numpad2 vk_numpad3 vk_numpad4 vk_numpad5 vk_numpad6 vk_numpad7 vk_numpad8 vk_numpad9 vk_divide vk_multiply vk_subtract vk_add vk_decimal vk_lshift vk_lcontrol vk_lalt vk_rshift vk_rcontrol vk_ralt mb_any mb_none mb_left mb_right mb_middle c_aqua c_black c_blue c_dkgray c_fuchsia c_gray c_green c_lime c_ltgray c_maroon c_navy c_olive c_purple c_red c_silver c_teal c_white c_yellow c_orange fa_left fa_center fa_right fa_top fa_middle fa_bottom pr_pointlist pr_linelist pr_linestrip pr_trianglelist pr_trianglestrip pr_trianglefan bm_complex bm_normal bm_add bm_max bm_subtract bm_zero bm_one bm_src_colour bm_inv_src_colour bm_src_color bm_inv_src_color bm_src_alpha bm_inv_src_alpha bm_dest_alpha bm_inv_dest_alpha bm_dest_colour bm_inv_dest_colour bm_dest_color bm_inv_dest_color bm_src_alpha_sat tf_point tf_linear tf_anisotropic mip_off mip_on mip_markedonly audio_falloff_none audio_falloff_inverse_distance audio_falloff_inverse_distance_clamped audio_falloff_linear_distance audio_falloff_linear_distance_clamped audio_falloff_exponent_distance audio_falloff_exponent_distance_clamped audio_old_system audio_new_system audio_mono audio_stereo audio_3d cr_default cr_none cr_arrow cr_cross cr_beam cr_size_nesw cr_size_ns cr_size_nwse cr_size_we cr_uparrow cr_hourglass cr_drag cr_appstart cr_handpoint cr_size_all spritespeed_framespersecond spritespeed_framespergameframe asset_object asset_unknown asset_sprite asset_sound asset_room asset_path asset_script asset_font asset_timeline asset_tiles asset_shader fa_readonly fa_hidden fa_sysfile fa_volumeid fa_directory fa_archive ds_type_map ds_type_list ds_type_stack ds_type_queue ds_type_grid ds_type_priority ef_explosion ef_ring ef_ellipse ef_firework ef_smoke ef_smokeup ef_star ef_spark ef_flare ef_cloud ef_rain ef_snow pt_shape_pixel pt_shape_disk pt_shape_square pt_shape_line pt_shape_star pt_shape_circle pt_shape_ring pt_shape_sphere pt_shape_flare pt_shape_spark pt_shape_explosion pt_shape_cloud pt_shape_smoke pt_shape_snow ps_distr_linear ps_distr_gaussian ps_distr_invgaussian ps_shape_rectangle ps_shape_ellipse ps_shape_diamond ps_shape_line ty_real ty_string dll_cdecl dll_stdcall matrix_view matrix_projection matrix_world os_win32 os_windows os_macosx os_ios os_android os_symbian os_linux os_unknown os_winphone os_tizen os_win8native os_wiiu os_3ds os_psvita os_bb10 os_ps4 os_xboxone os_ps3 os_xbox360 os_uwp os_tvos os_switch browser_not_a_browser browser_unknown browser_ie browser_firefox browser_chrome browser_safari browser_safari_mobile browser_opera browser_tizen browser_edge browser_windows_store browser_ie_mobile device_ios_unknown device_ios_iphone device_ios_iphone_retina device_ios_ipad device_ios_ipad_retina device_ios_iphone5 device_ios_iphone6 device_ios_iphone6plus device_emulator device_tablet display_landscape display_landscape_flipped display_portrait display_portrait_flipped tm_sleep tm_countvsyncs of_challenge_win of_challen ge_lose of_challenge_tie leaderboard_type_number leaderboard_type_time_mins_secs cmpfunc_never cmpfunc_less cmpfunc_equal cmpfunc_lessequal cmpfunc_greater cmpfunc_notequal cmpfunc_greaterequal cmpfunc_always cull_noculling cull_clockwise cull_counterclockwise lighttype_dir lighttype_point iap_ev_storeload iap_ev_product iap_ev_purchase iap_ev_consume iap_ev_restore iap_storeload_ok iap_storeload_failed iap_status_uninitialised iap_status_unavailable iap_status_loading iap_status_available iap_status_processing iap_status_restoring iap_failed iap_unavailable iap_available iap_purchased iap_canceled iap_refunded fb_login_default fb_login_fallback_to_webview fb_login_no_fallback_to_webview fb_login_forcing_webview fb_login_use_system_account fb_login_forcing_safari phy_joint_anchor_1_x phy_joint_anchor_1_y phy_joint_anchor_2_x phy_joint_anchor_2_y phy_joint_reaction_force_x phy_joint_reaction_force_y phy_joint_reaction_torque phy_joint_motor_speed phy_joint_angle phy_joint_motor_torque phy_joint_max_motor_torque phy_joint_translation phy_joint_speed phy_joint_motor_force phy_joint_max_motor_force phy_joint_length_1 phy_joint_length_2 phy_joint_damping_ratio phy_joint_frequency phy_joint_lower_angle_limit phy_joint_upper_angle_limit phy_joint_angle_limits phy_joint_max_length phy_joint_max_torque phy_joint_max_force phy_debug_render_aabb phy_debug_render_collision_pairs phy_debug_render_coms phy_debug_render_core_shapes phy_debug_render_joints phy_debug_render_obb phy_debug_render_shapes phy_particle_flag_water phy_particle_flag_zombie phy_particle_flag_wall phy_particle_flag_spring phy_particle_flag_elastic phy_particle_flag_viscous phy_particle_flag_powder phy_particle_flag_tensile phy_particle_flag_colourmixing phy_particle_flag_colormixing phy_particle_group_flag_solid phy_particle_group_flag_rigid phy_particle_data_flag_typeflags phy_particle_data_flag_position phy_particle_data_flag_velocity phy_particle_data_flag_colour phy_particle_data_flag_color phy_particle_data_flag_category achievement_our_info achievement_friends_info achievement_leaderboard_info achievement_achievement_info achievement_filter_all_players achievement_filter_friends_only achievement_filter_favorites_only achievement_type_achievement_challenge achievement_type_score_challenge achievement_pic_loaded achievement_show_ui achievement_show_profile achievement_show_leaderboard achievement_show_achievement achievement_show_bank achievement_show_friend_picker achievement_show_purchase_prompt network_socket_tcp network_socket_udp network_socket_bluetooth network_type_connect network_type_disconnect network_type_data network_type_non_blocking_connect network_config_connect_timeout network_config_use_non_blocking_socket network_config_enable_reliable_udp network_config_disable_reliable_udp buffer_fixed buffer_grow buffer_wrap buffer_fast buffer_vbuffer buffer_network buffer_u8 buffer_s8 buffer_u16 buffer_s16 buffer_u32 buffer_s32 buffer_u64 buffer_f16 buffer_f32 buffer_f64 buffer_bool buffer_text buffer_string buffer_surface_copy buffer_seek_start buffer_seek_relative buffer_seek_end buffer_generalerror buffer_outofspace buffer_outofbounds buffer_invalidtype text_type button_type input_type ANSI_CHARSET DEFAULT_CHARSET EASTEUROPE_CHARSET RUSSIAN_CHARSET SYMBOL_CHARSET SHIFTJIS_CHARSET HANGEUL_CHARSET GB2312_CHARSET CHINESEBIG5_CHARSET JOHAB_CHARSET HEBREW_CHARSET ARABIC_CHARSET GREEK_CHARSET TURKISH_CHARSET VIETNAMESE_CHARSET THAI_CHARSET MAC_CHARSET BALTIC_CHARSET OEM_CHARSET gp_face1 gp_face2 gp_face3 gp_face4 gp_shoulderl gp_shoulderr gp_shoulderlb gp_shoulderrb gp_select gp_start gp_stickl gp_stickr gp_padu gp_padd gp_padl gp_padr gp_axislh gp_axislv gp_axisrh gp_axisrv ov_friends ov_community ov_players ov_settings ov_gamegroup ov_achievements lb_sort_none lb_sort_ascending lb_sort_descending lb_disp_none lb_disp_numeric lb_disp_time_sec lb_disp_time_ms ugc_result_success ugc_filetype_community ugc_filetype_microtrans ugc_visibility_public ugc_visibility_friends_only ugc_visibility_private ugc_query_RankedByVote ugc_query_RankedByPublicationDate ugc_query_AcceptedForGameRankedByAcceptanceDate ugc_query_RankedByTrend ugc_query_FavoritedByFriendsRankedByPublicationDate ugc_query_CreatedByFriendsRankedByPublicationDate ugc_query_RankedByNumTimesReported ugc_query_CreatedByFollowedUsersRankedByPublicationDate ugc_query_NotYetRated ugc_query_RankedByTotalVotesAsc ugc_query_RankedByVotesUp ugc_query_RankedByTextSearch ugc_sortorder_CreationOrderDesc ugc_sortorder_CreationOrderAsc ugc_sortorder_TitleAsc ugc_sortorder_LastUpdatedDesc ugc_sortorder_SubscriptionDateDesc ugc_sortorder_VoteScoreDesc ugc_sortorder_ForModeration ugc_list_Published ugc_list_VotedOn ugc_list_VotedUp ugc_list_VotedDown ugc_list_WillVoteLater ugc_list_Favorited ugc_list_Subscribed ugc_list_UsedOrPlayed ugc_list_Followed ugc_match_Items ugc_match_Items_Mtx ugc_match_Items_ReadyToUse ugc_match_Collections ugc_match_Artwork ugc_match_Videos ugc_match_Screenshots ugc_match_AllGuides ugc_match_WebGuides ugc_match_IntegratedGuides ugc_match_UsableInGame ugc_match_ControllerBindings vertex_usage_position vertex_usage_colour vertex_usage_color vertex_usage_normal vertex_usage_texcoord vertex_usage_textcoord vertex_usage_blendweight vertex_usage_blendindices vertex_usage_psize vertex_usage_tangent vertex_usage_binormal vertex_usage_fog vertex_usage_depth vertex_usage_sample vertex_type_float1 vertex_type_float2 vertex_type_float3 vertex_type_float4 vertex_type_colour vertex_type_color vertex_type_ubyte4 layerelementtype_undefined layerelementtype_background layerelementtype_instance layerelementtype_oldtilemap layerelementtype_sprite layerelementtype_tilemap layerelementtype_particlesystem layerelementtype_tile tile_rotate tile_flip tile_mirror tile_index_mask kbv_type_default kbv_type_ascii kbv_type_url kbv_type_email kbv_type_numbers kbv_type_phone kbv_type_phone_name kbv_returnkey_default kbv_returnkey_go kbv_returnkey_google kbv_returnkey_join kbv_returnkey_next kbv_returnkey_route kbv_returnkey_search kbv_returnkey_send kbv_returnkey_yahoo kbv_returnkey_done kbv_returnkey_continue kbv_returnkey_emergency kbv_autocapitalize_none kbv_autocapitalize_words kbv_autocapitalize_sentences kbv_autocapitalize_characters",symbol:"argument_relative argument argument0 argument1 argument2 argument3 argument4 argument5 argument6 argument7 argument8 argument9 argument10 argument11 argument12 argument13 argument14 argument15 argument_count x y xprevious yprevious xstart ystart hspeed vspeed direction speed friction gravity gravity_direction path_index path_position path_positionprevious path_speed path_scale path_orientation path_endaction object_index id solid persistent mask_index instance_count instance_id room_speed fps fps_real current_time current_year current_month current_day current_weekday current_hour current_minute current_second alarm timeline_index timeline_position timeline_speed timeline_running timeline_loop room room_first room_last room_width room_height room_caption room_persistent score lives health show_score show_lives show_health caption_score caption_lives caption_health event_type event_number event_object event_action application_surface gamemaker_pro gamemaker_registered gamemaker_version error_occurred error_last debug_mode keyboard_key keyboard_lastkey keyboard_lastchar keyboard_string mouse_x mouse_y mouse_button mouse_lastbutton cursor_sprite visible sprite_index sprite_width sprite_height sprite_xoffset sprite_yoffset image_number image_index image_speed depth image_xscale image_yscale image_angle image_alpha image_blend bbox_left bbox_right bbox_top bbox_bottom layer background_colour background_showcolour background_color background_showcolor view_enabled view_current view_visible view_xview view_yview view_wview view_hview view_xport view_yport view_wport view_hport view_angle view_hborder view_vborder view_hspeed view_vspeed view_object view_surface_id view_camera game_id game_display_name game_project_name game_save_id working_directory temp_directory program_directory browser_width browser_height os_type os_device os_browser os_version display_aa async_load delta_time webgl_enabled event_data iap_data phy_rotation phy_position_x phy_position_y phy_angular_velocity phy_linear_velocity_x phy_linear_velocity_y phy_speed_x phy_speed_y phy_speed phy_angular_damping phy_linear_damping phy_bullet phy_fixed_rotation phy_active phy_mass phy_inertia phy_com_x phy_com_y phy_dynamic phy_kinematic phy_sleeping phy_collision_points phy_collision_x phy_collision_y phy_col_normal_x phy_col_normal_y phy_position_xprevious phy_position_yprevious"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){const t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{name:"Go",aliases:["golang"],keywords:t,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,illegal:/["']/}]}]}}},function(e,t){e.exports=function(e){return{name:"Golo",keywords:{keyword:"println readln print import module function local return let var while for foreach times in case when match with break continue augment augmentation each find filter reduce if then else otherwise try catch finally raise throw orIfNull DynamicObject|10 DynamicVariable struct Observable map set vector list array",literal:"true false null"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}},function(e,t){e.exports=function(e){return{name:"Gradle",case_insensitive:!0,keywords:{keyword:"task project allprojects subprojects artifacts buildscript configurations dependencies repositories sourceSets description delete from into include exclude source classpath destinationDir includes options sourceCompatibility targetCompatibility group flatDir doLast doFirst flatten todir fromdir ant def abstract break case catch continue default do else extends final finally for if implements instanceof native new private protected public return static switch synchronized throw throws transient try volatile while strictfp package import false null super this true antlrtask checkstyle codenarc copy boolean byte char class double float int interface long short void compile runTime file fileTree abs any append asList asWritable call collect compareTo count div dump each eachByte eachFile eachLine every find findAll flatten getAt getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter newReader newWriter next plus pop power previous print println push putAt read readBytes readLines reverse reverseEach round size sort splitEachLine step subMap times toInteger toList tokenize upto waitForOrKill withPrintWriter withReader withStream withWriter withWriterAppend write writeLine"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}},function(e,t){function n(e){return function(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}("(?=",e,")")}function o(e,t={}){return t.variants=e,t}e.exports=function(e){const t=o([e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),r={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[e.BACKSLASH_ESCAPE]},i=o([e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]),a=o([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE],{className:"string"});return{name:"Groovy",keywords:{built_in:"this super",literal:"true false null",keyword:"byte short char int long boolean float double void def as in assert trait abstract static volatile transient public private protected synchronized final class interface enum if else for while switch case break default continue throw throws try catch finally implements extends new import package return instanceof"},contains:[e.SHEBANG({binary:"groovy",relevance:10}),t,a,r,i,{className:"class",beginKeywords:"class interface trait enum",end:/\{/,illegal:":",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:"[A-Za-z0-9_$]+[ \t]*:"},{begin:/\?/,end:/:/,relevance:0,contains:[t,a,r,i,"self"]},{className:"symbol",begin:"^[ \t]*"+n("[A-Za-z0-9_$]+:"),excludeBegin:!0,end:"[A-Za-z0-9_$]+:",relevance:0}],illegal:/#|<\//}}},function(e,t){e.exports=function(e){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",!1,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",starts:{end:"\\n",subLanguage:"ruby"}},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,starts:{end:/\}/,subLanguage:"ruby"}}]}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(...e){return e.map(e=>n(e)).join("")}e.exports=function(e){const t={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"].join(" ")},r={literal:["true","false","undefined","null"].join(" ")},i=/\[\]|\[[^\]]+\]/,a=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,s=function(...e){return"("+e.map(e=>n(e)).join("|")+")"}(/""|"[^"]+"/,/''|'[^']+'/,i,a),c=o(o("(",/\.|\.\/|\//,")?"),s,function(e){return o("(",e,")*")}(o(/(\.|\/)/,s))),l=o("(",i,"|",a,")(?==)"),u={begin:c,lexemes:/[\w.\/]+/},d=e.inherit(u,{keywords:r}),h={begin:/\(/,end:/\)/},p={className:"attr",begin:l,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,d,h]}}},m={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},p,d,h],returnEnd:!0},g=e.inherit(u,{className:"name",keywords:t,starts:e.inherit(m,{end:/\)/})});h.contains=[g];const f=e.inherit(u,{keywords:t,className:"name",starts:e.inherit(m,{end:/\}\}/})}),_=e.inherit(u,{keywords:t,className:"name"}),b=e.inherit(u,{className:"name",keywords:t,starts:e.inherit(m,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[f],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[_]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[f]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[_]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[b]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[b]}]}}},function(e,t){e.exports=function(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"meta",begin:/\{-#/,end:/#-\}/},o={className:"meta",begin:"^#",end:"$"},r={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[n,o,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),t]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[i,t],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[i,t],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[r,i,t]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[n,r,i,{begin:/\{/,end:/\}/,contains:i.contains},t]},{beginKeywords:"default",end:"$",contains:[r,i,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[r,e.QUOTE_STRING_MODE,t]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},n,o,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,r,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}]}}},function(e,t){e.exports=function(e){return{name:"Haxe",aliases:["hx"],keywords:{keyword:"break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"},{className:"subst",begin:"\\$",end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@:",end:"$"},{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end error"}},{className:"type",begin:":[ \t]*",end:"[^A-Za-z0-9_ \t\\->]",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:":[ \t]*",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"new *",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"class",beginKeywords:"enum",end:"\\{",contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"abstract",end:"[\\{$]",contains:[{className:"type",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"from +",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"to +",end:"\\W",excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"class",begin:"\\b(class|interface) +",end:"[\\{$]",excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:"\\b(extends|implements) +",keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"function",beginKeywords:"function",end:"\\(",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE]}],illegal:/<\//}}},function(e,t){e.exports=function(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(...e){return e.map(e=>n(e)).join("")}function r(e){const t={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"].join(" ")},r={literal:["true","false","undefined","null"].join(" ")},i=/\[\]|\[[^\]]+\]/,a=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,s=function(...e){return"("+e.map(e=>n(e)).join("|")+")"}(/""|"[^"]+"/,/''|'[^']+'/,i,a),c=o(o("(",/\.|\.\/|\//,")?"),s,function(e){return o("(",e,")*")}(o(/(\.|\/)/,s)));const l=o("(",i,"|",a,")(?==)"),u={begin:c,lexemes:/[\w.\/]+/},d=e.inherit(u,{keywords:r}),h={begin:/\(/,end:/\)/},p={className:"attr",begin:l,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,d,h]}}},m={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},p,d,h],returnEnd:!0},g=e.inherit(u,{className:"name",keywords:t,starts:e.inherit(m,{end:/\)/})});h.contains=[g];const f=e.inherit(u,{keywords:t,className:"name",starts:e.inherit(m,{end:/\}\}/})}),_=e.inherit(u,{keywords:t,className:"name"}),b=e.inherit(u,{className:"name",keywords:t,starts:e.inherit(m,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[f],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[_]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[f]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[_]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[b]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[b]}]}}e.exports=function(e){const t=r(e);return t.name="HTMLbars",e.getLanguage("handlebars")&&(t.disableAutodetect=!0),t}},function(e,t){e.exports=function(e){return{name:"HTTP",aliases:["https"],illegal:"\\S",contains:[{begin:"^HTTP/[0-9\\.]+",end:"$",contains:[{className:"number",begin:"\\b\\d{3}\\b"}]},{begin:"^[A-Z]+ (.*?) HTTP/[0-9\\.]+$",returnBegin:!0,end:"$",contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{begin:"HTTP/[0-9\\.]+"},{className:"keyword",begin:"[A-Z]+"}]},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,illegal:"\\n|\\s|=",starts:{end:"$",relevance:0}},{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}]}}},function(e,t){e.exports=function(e){var t="[a-zA-Z_\\-!.?+*=<>&#'][a-zA-Z_\\-!.?+*=<>&#'0-9/;:]*",n={$pattern:t,"builtin-name":"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},o={begin:t,relevance:0},r={className:"number",begin:"[-+]?\\d+(\\.\\d+)?",relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a=e.COMMENT(";","$",{relevance:0}),s={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},c={begin:"[\\[\\{]",end:"[\\]\\}]"},l={className:"comment",begin:"\\^"+t},u=e.COMMENT("\\^\\{","\\}"),d={className:"symbol",begin:"[:]{1,2}"+t},h={begin:"\\(",end:"\\)"},p={endsWithParent:!0,relevance:0},m={className:"name",relevance:0,keywords:n,begin:t,starts:p},g=[h,i,l,u,a,d,c,r,s,o];return h.contains=[e.COMMENT("comment",""),m,p],p.contains=g,c.contains=g,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),h,i,l,u,a,d,c,r,s]}}},function(e,t){e.exports=function(e){return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:"\\[",end:"\\]"}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:"\\[",end:"\\]",contains:["self"]}]}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(...e){return e.map(e=>n(e)).join("")}e.exports=function(e){const t={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[r,a,i,s,t,"self"],relevance:0},l=function(...e){return"("+e.map(e=>n(e)).join("|")+")"}(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:o(l,"(\\s*\\.\\s*",l,")*",o("(?=",/\s*=\s*[^#\s]/,")")),className:"attr",starts:{end:/$/,contains:[r,c,a,i,s,t]}}]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t=/(_[a-z_\d]+)?/,o=/([de][+-]?\d+)?/,r={className:"number",variants:[{begin:n(/\b\d+/,/\.(\d*)/,o,t)},{begin:n(/\b\d+/,o,t)},{begin:n(/\.\d+/,o,t)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),r]}}},function(e,t){e.exports=function(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",n={className:"number",begin:e.NUMBER_RE,relevance:0},o={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},r={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},i={variants:[{className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,r]},{className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,r]}]},a={$pattern:t,keyword:"and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",built_in:"SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE smHidden smMaximized smMinimized smNormal wmNo wmYes COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID RESULT_VAR_NAME RESULT_VAR_NAME_ENG AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ISBL_SYNTAX NO_SYNTAX XML_SYNTAX WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP atUser atGroup atRole aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty apBegin apEnd alLeft alRight asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways cirCommon cirRevoked ctSignature ctEncode ctSignatureEncode clbUnchecked clbChecked clbGrayed ceISB ceAlways ceNever ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob cfInternal cfDisplay ciUnspecified ciWrite ciRead ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton cctDate cctInteger cctNumeric cctPick cctReference cctString cctText cltInternal cltPrimary cltGUI dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange dssEdit dssInsert dssBrowse dssInActive dftDate dftShortDate dftDateTime dftTimeStamp dotDays dotHours dotMinutes dotSeconds dtkndLocal dtkndUTC arNone arView arEdit arFull ddaView ddaEdit emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ecotFile ecotProcess eaGet eaCopy eaCreate eaCreateStandardRoute edltAll edltNothing edltQuery essmText essmCard esvtLast esvtLastActive esvtSpecified edsfExecutive edsfArchive edstSQLServer edstFile edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile vsDefault vsDesign vsActive vsObsolete etNone etCertificate etPassword etCertificatePassword ecException ecWarning ecInformation estAll estApprovingOnly evtLast evtLastActive evtQuery fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch grhAuto grhX1 grhX2 grhX3 hltText hltRTF hltHTML iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG im8bGrayscale im24bRGB im1bMonochrome itBMP itJPEG itWMF itPNG ikhInformation ikhWarning ikhError ikhNoIcon icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler isShow isHide isByUserSettings jkJob jkNotice jkControlJob jtInner jtLeft jtRight jtFull jtCross lbpAbove lbpBelow lbpLeft lbpRight eltPerConnection eltPerUser sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac sfsItalic sfsStrikeout sfsNormal ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom vtEqual vtGreaterOrEqual vtLessOrEqual vtRange rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth rdWindow rdFile rdPrinter rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument reOnChange reOnChangeValues ttGlobal ttLocal ttUser ttSystem ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal smSelect smLike smCard stNone stAuthenticating stApproving sctString sctStream sstAnsiSort sstNaturalSort svtEqual svtContain soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown tarAbortByUser tarAbortByWorkflowException tvtAllWords tvtExactPhrase tvtAnyWord usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected btAnd btDetailAnd btOr btNotOr btOnly vmView vmSelect vmNavigation vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection wfatPrevious wfatNext wfatCancel wfatFinish wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 wfetQueryParameter wfetText wfetDelimiter wfetLabel wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal waAll waPerformers waManual wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection wiLow wiNormal wiHigh wrtSoft wrtHard wsInit wsRunning wsDone wsControlled wsAborted wsContinued wtmFull wtmFromCurrent wtmOnlyCurrent ",class:"AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",literal:"null true false nil "},s={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:a,relevance:0},c={className:"type",begin:":[ \\t]*("+"IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ".trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},l={className:"variable",keywords:a,begin:t,relevance:0,contains:[c,s]};return{name:"ISBL",aliases:["isbl"],case_insensitive:!0,keywords:a,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:"[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*\\(",end:"\\)$",returnBegin:!0,keywords:a,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:t,built_in:"AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр "},begin:"[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*\\(",end:"\\(",returnBegin:!0,excludeEnd:!0},s,l,o,n,i]},c,s,l,o,n,i]}}},function(e,t){var n="\\.([0-9](_*[0-9])*)",o="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b([0-9](_*[0-9])*)((${n})|\\.)?|(${n}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`},{begin:`\\b([0-9](_*[0-9])*)((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{begin:`\\b0[xX]((${o})\\.?|(${o})?\\.(${o}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${o})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};e.exports=function(e){var t="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",n="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",o={className:"meta",begin:"@"+t,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]};const i=r;return{name:"Java",aliases:["jsp"],keywords:n,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface enum",end:/[{;=]/,excludeEnd:!0,keywords:"class interface enum",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"class",begin:"record\\s+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,excludeEnd:!0,end:/[{;=]/,keywords:n,contains:[{beginKeywords:"record"},{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:n,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"([À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(<[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*)*>)?\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:n,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:n,relevance:0,contains:[o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i,o]}}},function(e,t){const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],o=["true","false","null","undefined","NaN","Infinity"],r=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function i(e){return a("(?=",e,")")}function a(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t="[A-Za-z$_][0-9A-Za-z$_]*",s="<>",c="</>",l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,o=e.input[n];"<"!==o?">"===o&&(((e,{after:t})=>{const n="</"+e[0].slice(1);return-1!==e.input.indexOf(n,t)})(e,{after:n})||t.ignoreMatch()):t.ignoreMatch()}},u={$pattern:"[A-Za-z$_][0-9A-Za-z$_]*",keyword:n.join(" "),literal:o.join(" "),built_in:r.join(" ")},d="\\.([0-9](_?[0-9])*)",h={className:"number",variants:[{begin:`(\\b(0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*)((${d})|\\.)?|(${d}))[eE][+-]?([0-9](_?[0-9])*)\\b`},{begin:`\\b(0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*)\\b((${d})\\b|\\.)?|(${d})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},m={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},g={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},f={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},_={className:"comment",variants:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:t+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},b=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,g,f,h,e.REGEXP_MODE];p.contains=b.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(b)});const v=[].concat(_,p.contains),E=v.concat([{begin:/\(/,end:/\)/,keywords:u,contains:["self"].concat(v)}]),y={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:E};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:E},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,g,f,_,h,{begin:a(/[{,\n]\s*/,i(a(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,t+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:t+i("\\s*:"),relevance:0}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[_,e.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:E}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:s,end:c},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:u,contains:["self",e.inherit(e.TITLE_MODE,{begin:t}),y],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[y,e.inherit(e.TITLE_MODE,{begin:t})]},{variants:[{begin:"\\."+t},{begin:"\\$"+t}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),"self",y]},{begin:"(get|set)\\s+(?="+t+"\\()",end:/\{/,keywords:"get set",contains:[e.inherit(e.TITLE_MODE,{begin:t}),{begin:/\(\)/},y]},{begin:/\$[(.]/}]}}},function(e,t){e.exports=function(e){const t={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"params",begin:/--[\w\-=\/]+/},{className:"function",begin:/:[\w\-.]+/,relevance:0},{className:"string",begin:/\B([\/.])[\w\-.\/=]+/},t]}}},function(e,t){e.exports=function(e){const t={literal:"true false null"},n=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],o=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],r={end:",",endsWithParent:!0,excludeEnd:!0,contains:o,keywords:t},i={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(r,{begin:/:/})].concat(n),illegal:"\\S"},a={begin:"\\[",end:"\\]",contains:[e.inherit(r)],illegal:"\\S"};return o.push(i,a),n.forEach((function(e){o.push(e)})),{name:"JSON",contains:o,keywords:t,illegal:"\\S"}}},function(e,t){e.exports=function(e){var t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",n={$pattern:t,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"].join(" "),literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π",""].join(" "),built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"].join(" ")},o={keywords:n,illegal:/<\//},r={className:"subst",begin:/\$\(/,end:/\)/,keywords:n},i={className:"variable",begin:"\\$"+t},a={className:"string",contains:[e.BACKSLASH_ESCAPE,r,i],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},s={className:"string",contains:[e.BACKSLASH_ESCAPE,r,i],begin:"`",end:"`"},c={className:"meta",begin:"@"+t};return o.name="Julia",o.contains=[{className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},a,s,c,{className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]},e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],r.contains=o.contains,o}},function(e,t){e.exports=function(e){return{name:"Julia REPL",contains:[{className:"meta",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"},aliases:["jldoctest"]}]}}},function(e,t){var n="\\.([0-9](_*[0-9])*)",o="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b([0-9](_*[0-9])*)((${n})|\\.)?|(${n}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`},{begin:`\\b([0-9](_*[0-9])*)((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{begin:`\\b0[xX]((${o})\\.?|(${o})?\\.(${o}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${o})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};e.exports=function(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},o={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},i={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[i,o]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,i,o]}]};o.contains.push(a);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"meta-string"})]}]},l=r,u=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},h=d;return h.variants[1].contains=[d],d.variants[1].contains=[h],{name:"Kotlin",aliases:["kt"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,u,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n,s,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,u],relevance:0},e.C_LINE_COMMENT_MODE,u,s,c,a,e.C_NUMBER_MODE]},u]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},s,c]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},l]}}},function(e,t){e.exports=function(e){const t="\\]|\\?>",n={$pattern:"[a-zA-Z_][\\w.]*|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},o=e.COMMENT("\x3c!--","--\x3e",{relevance:0}),r={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[o]}},i={className:"meta",begin:"\\[/noprocess|<\\?(lasso(script)?|=)"},a={className:"symbol",begin:"'[a-zA-Z_][\\w.]*'"},s=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$][a-zA-Z_][\\w.]*"},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:"[a-zA-Z_][\\w.]*",illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)[a-zA-Z_][\\w.]*",relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[a]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z_][\\w.]*(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:n,contains:[{className:"meta",begin:t,relevance:0,starts:{end:"\\[|<\\?(lasso(script)?|=)",returnEnd:!0,relevance:0,contains:[o]}},r,i,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:n,contains:[{className:"meta",begin:t,relevance:0,starts:{end:"\\[noprocess\\]|<\\?(lasso(script)?|=)",returnEnd:!0,contains:[o]}},r,i].concat(s)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(s)}}},function(e,t){e.exports=function(e){const t=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],n=[{className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:function(...e){return"("+e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("|")+")"}(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(e=>e+"(?![a-zA-Z@:_])"))},{endsParent:!0,begin:new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(e=>e+"(?![a-zA-Z:_])").join("|"))},{endsParent:!0,variants:t},{endsParent:!0,relevance:0,variants:[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}]}]},{className:"params",relevance:0,begin:/#+\d?/},{variants:t},{className:"built_in",relevance:0,begin:/[$&^_]/},{className:"meta",begin:"% !TeX",end:"$",relevance:10},e.COMMENT("%","$",{relevance:0})],o={begin:/\{/,end:/\}/,relevance:0,contains:["self",...n]},r=e.inherit(o,{relevance:0,endsParent:!0,contains:[o,...n]}),i={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[o,...n]},a={begin:/\s+/,relevance:0},s=[r],c=[i],l=function(e,t){return{contains:[a],starts:{relevance:0,contains:e,starts:t}}},u=function(e,t){return{begin:"\\\\"+e+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+e},relevance:0,contains:[a],starts:t}},d=function(t,n){return e.inherit({begin:"\\\\begin(?=[ \t]*(\\r?\\n[ \t]*)?\\{"+t+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},l(s,n))},h=(t="string")=>e.END_SAME_AS_BEGIN({className:t,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),p=function(e){return{className:"string",end:"(?=\\\\end\\{"+e+"\\})"}},m=(e="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:e,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}});return{name:"LaTeX",aliases:["TeX"],contains:[...[...["verb","lstinline"].map(e=>u(e,{contains:[h()]})),u("mint",l(s,{contains:[h()]})),u("mintinline",l(s,{contains:[m(),h()]})),u("url",{contains:[m("link"),m("link")]}),u("hyperref",{contains:[m("link")]}),u("href",l(c,{contains:[m("link")]})),...[].concat(...["","\\*"].map(e=>[d("verbatim"+e,p("verbatim"+e)),d("filecontents"+e,l(s,p("filecontents"+e))),...["","B","L"].map(t=>d(t+"Verbatim"+e,l(c,p(t+"Verbatim"+e))))])),d("minted",l(c,l(s,p("minted"))))],...n]}}},function(e,t){e.exports=function(e){return{name:"LDIF",contains:[{className:"attribute",begin:"^dn",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0},relevance:10},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0}},{className:"literal",begin:"^-",end:"$"},e.HASH_COMMENT_MODE]}}},function(e,t){e.exports=function(e){return{name:"Leaf",contains:[{className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:/ \{/,returnBegin:!0,excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{className:"title",begin:"[A-Za-z_][A-Za-z_0-9]*"},{className:"params",begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"string",begin:'"',end:'"'},{className:"variable",begin:"[A-Za-z_][A-Za-z_0-9]*"}]}]}]}}},function(e,t){e.exports=function(e){var t="([\\w-]+|@\\{[\\w-]+\\})",n=[],o=[],r=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},i=function(e,t,n){return{className:e,begin:t,relevance:n}},a={begin:"\\(",end:"\\)",contains:o,relevance:0};o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r("'"),r('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},i("number","#[0-9A-Fa-f]+\\b"),a,i("variable","@@?[\\w-]+",10),i("variable","@\\{[\\w-]+\\}"),i("built_in","~?`[^`]*?`"),{className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var s=o.concat({begin:/\{/,end:/\}/,contains:n}),c={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(o)},l={begin:t+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:t,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:o}}]},u={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",returnEnd:!0,contains:o,relevance:0}},d={className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:s}},h={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:t,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c,i("keyword","all\\b"),i("variable","@\\{[\\w-]+\\}"),i("selector-tag",t+"%?",0),i("selector-id","#"+t),i("selector-class","\\."+t,0),i("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9_\-+()"'.]+/},{begin:"\\(",end:"\\)",contains:s},{begin:"!important"}]};return n.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u,d,l,h),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:n}}},function(e,t){e.exports=function(e){var t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",o={className:"literal",begin:"\\b(t{1}|nil)\\b"},r={className:"number",variants:[{begin:n,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+n+" +"+n,end:"\\)"}]},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a=e.COMMENT(";","$",{relevance:0}),s={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},l={begin:t,relevance:0},u={begin:"\\|[^]*?\\|"},d={contains:[r,i,s,c,{begin:"\\(",end:"\\)",contains:["self",o,i,r,l]},l],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'\\|[^]*?\\|"}]},h={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},p={begin:"\\(\\s*",end:"\\)"},m={endsWithParent:!0,relevance:0};return p.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:"\\|[^]*?\\|"}]},m],m.contains=[d,h,p,o,r,i,a,s,c,u,l],{name:"Lisp",illegal:/\S/,contains:[r,e.SHEBANG(),o,i,a,d,h,p,l]}}},function(e,t){e.exports=function(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],o=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),r=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,o]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[r,o],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,o]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,o].concat(n),illegal:";$|^\\[|^=|&|\\{"}}},function(e,t){const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],o=["true","false","null","undefined","NaN","Infinity"],r=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);e.exports=function(e){const t={keyword:n.concat(["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"]).join(" "),literal:o.concat(["yes","no","on","off","it","that","void"]).join(" "),built_in:r.concat(["npm","print"]).join(" ")},i="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",a=e.inherit(e.TITLE_MODE,{begin:i}),s={className:"subst",begin:/#\{/,end:/\}/,keywords:t},c={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:t},l=[e.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,c]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,c]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[s,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+i},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];s.contains=l;const u={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(l)}]};return{name:"LiveScript",aliases:["ls"],keywords:t,illegal:/\/\*/,contains:l.concat([e.COMMENT("\\/\\*","\\*\\/"),e.HASH_COMMENT_MODE,{begin:"(#=>|=>|\\|>>|-?->|!->)"},{className:"function",contains:[a,u],returnBegin:!0,variants:[{begin:"("+i+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+i+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+i+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t=/([-a-zA-Z$._][\w$.-]*)/,o={className:"variable",variants:[{begin:n(/%/,t)},{begin:/%\d+/},{begin:/#\d+/}]},r={className:"title",variants:[{begin:n(/@/,t)},{begin:/@\d+/},{begin:n(/!/,t)},{begin:n(/!\d+/,t)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[{className:"type",begin:/\bi\d+(?=\s|\b)/},e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:/"/,end:/[^\\]"/}]},r,{className:"punctuation",relevance:0,begin:/,/},{className:"operator",relevance:0,begin:/=/},o,{className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},{className:"number",variants:[{begin:/0[xX][a-fA-F0-9]+/},{begin:/-?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0}]}}},function(e,t){e.exports=function(e){var t={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},n={className:"number",relevance:0,begin:e.C_NUMBER_RE};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[t,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},n,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},{className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"},{className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}},function(e,t){e.exports=function(e){const t={begin:"\\[=*\\[",end:"\\]=*\\]",contains:["self"]},n=[e.COMMENT("--(?!\\[=*\\[)","$"),e.COMMENT("--\\[=*\\[","\\]=*\\]",{contains:[t],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:n.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:n}].concat(n)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\[=*\\[",end:"\\]=*\\]",contains:[t],relevance:5}])}}},function(e,t){e.exports=function(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},o={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t]},r={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},i={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,o,r,{className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,"meta-keyword":".PHONY"}},i]}}},function(e,t){const n=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Apply","ApplySides","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayQ","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstronomicalData","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomList","AtomQ","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTracks","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","BabyMonsterGroupB","Back","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginFrontEndInteractionPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","Binomial","BinomialDistribution","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockMap","BlockRandom","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CardinalBSplineBasis","CarlemanLinearize","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalData","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","ClosingSaveDialog","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledFunction","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteKaryTree","CompletionsListPacket","Complex","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","ConformAudio","ConformImages","Congruent","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegionBox","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnesWindow","ConoverTest","ConsoleMessage","ConsoleMessagePacket","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","Convergents","ConversionOptions","ConversionRules","ConvertToBitmapPacket","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexPolygonQ","ConvexPolyhedronQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyTag","CopyToClipboard","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePalettePacket","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","Cumulant","CumulantGeneratingFunction","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentlySpeakingPacket","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylindricalDecomposition","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFormatTypeForStyle","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayFlushImagePacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplaySetSizePacket","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DragAndDrop","DrawEdges","DrawFrontFaces","DrawHighlighted","Drop","DropoutLayer","DSolve","DSolveValue","Dt","DualLinearProgramming","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoFunction","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EnableConsolePrintPacket","Enabled","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndFrontEndInteractionPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedProcess","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPostmanTour","FindProcessParameters","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlipView","Floor","FlowPolynomial","FlushPrintOutputPacket","Fold","FoldList","FoldPair","FoldPairList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FractionalBrownianMotionProcess","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceOpacity","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionDomain","FunctionExpand","FunctionInterpolation","FunctionPeriod","FunctionRange","FunctionSpace","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedCell","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoPath","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetBoundingBoxSizePacket","GetContext","GetEnvironment","GetFileName","GetFrontEndOptionsDataPacket","GetLinebreakInformationPacket","GetMenusPacket","GetPageBreakInformationPacket","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","Grad","Gradient","GradientFilter","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphElementData","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","HeaderSize","HeaderStyle","Heads","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","Here","HermiteDecomposition","HermiteH","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IgnoreCase","IgnoreDiacritics","IgnorePunctuation","IgnoreSpellCheck","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImagingDevice","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","Interactive","InteractiveTradingChart","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LibraryDataType","LibraryFunction","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseID","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeContainsQ","MoleculeEquivalentQ","MoleculeGraph","MoleculeModify","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeValue","Moment","Momentary","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborGraph","NearestTo","NebulaData","NeedCurrentFrontEndPackagePacket","NeedCurrentFrontEndSymbolsPacket","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestWhile","NestWhileList","NetAppend","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookCreateReturnObject","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookFindReturnObject","NotebookGet","NotebookGetLayoutInformationPacket","NotebookGetMisspellingsPacket","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookOpenReturnObject","NotebookPath","NotebookPrint","NotebookPut","NotebookPutReturnObject","NotebookRead","NotebookResetGeneratedCells","Notebooks","NotebookSave","NotebookSaveAs","NotebookSelection","NotebookSetupLayoutInformationPacket","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhysicalSystemData","Pi","Pick","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderReplace","Plain","PlanarAngle","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointFigureChart","PointLegend","PointSize","PoissonConsulDistribution","PoissonDistribution","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","Projection","Prolog","PromptForm","ProofObject","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","Quit","Quotient","QuotientRemainder","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomChoice","RandomColor","RandomComplex","RandomEntity","RandomFunction","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecognitionPrior","RecognitionThreshold","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionDifference","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionFillingStyle","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteConnect","RemoteConnectionObject","RemoteFile","RemoteRun","RemoteRunProcess","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetMenusPacket","ResetScheduledTask","ReshapeLayer","Residue","ResizeLayer","Resolve","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RiskAchievementImportance","RiskReductionImportance","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionDuplicateCell","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectionSetStyle","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetBoxFormNamesPacket","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetEvaluationNotebook","SetFileDate","SetFileLoadingContext","SetNotebookStatusLine","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetSpeechParametersPacket","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","SetValue","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SnDispersion","Snippet","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolidAngle","SolidData","SolidRegionQ","Solve","SolveAlways","SolveDelayed","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SpatialGraphDistribution","SpatialMedian","SpatialTransformationLayer","Speak","SpeakerMatchQ","SpeakTextPacket","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","SpellingSuggestionsPacket","Sphere","SphereBox","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripWrapperBoxes","StrokeForm","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTracks","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxBackground","TableViewBoxItemSize","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThompsonGroupTh","Thread","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRules","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","TreeForm","TreeGraph","TreeGraphQ","TreePlot","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValidationLength","ValidationSet","Value","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceTest","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerboseConvertToPostScriptPacket","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","Version","VersionedPreferences","VersionNumber","VertexAdd","VertexCapacity","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoPause","VideoPlay","VideoQ","VideoStop","VideoStream","VideoStreams","VideoTimeSeries","VideoTracks","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$ConditionHold","$ConfiguredKernels","$Context","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultLocalBase","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$PublisherID","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterWolframID","$RequesterWolframUUID","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function o(e){return e?"string"==typeof e?e:e.source:null}function r(e){return i("(",e,")?")}function i(...e){return e.map(e=>o(e)).join("")}function a(...e){return"("+e.map(e=>o(e)).join("|")+")"}e.exports=function(e){const t=a(i(/([2-9]|[1-2]\d|[3][0-5])\^\^/,/(\w*\.\w+|\w+\.\w*|\w+)/),/(\d*\.\d+|\d+\.\d*|\d+)/),o={className:"number",relevance:0,begin:i(t,r(a(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/)),r(/\*\^[+-]?\d+/))},s=/[a-zA-Z$][a-zA-Z0-9$]*/,c=new Set(n),l={variants:[{className:"builtin-symbol",begin:s,"on:begin":(e,t)=>{c.has(e[0])||t.ignoreMatch()}},{className:"symbol",relevance:0,begin:s}]},u={className:"message-name",relevance:0,begin:i("::",s)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[e.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),{className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},{className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},u,l,{className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},e.QUOTE_STRING_MODE,o,{className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},{className:"brace",relevance:0,begin:/[[\](){}]/}]}}},function(e,t){e.exports=function(e){var t={relevance:0,contains:[{begin:"('|\\.')+"}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:t},{begin:"[a-zA-Z][a-zA-Z_0-9]*('|\\.')+",relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:t},{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:t},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE,{begin:'""'}],starts:t},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}},function(e,t){e.exports=function(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}},function(e,t){e.exports=function(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}},function(e,t){e.exports=function(e){const t=e.COMMENT("%","$"),n=e.inherit(e.APOS_STRING_MODE,{relevance:0}),o=e.inherit(e.QUOTE_STRING_MODE,{relevance:0});return o.contains=o.contains.slice(),o.contains.push({className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0}),{name:"Mercury",aliases:["m","moo"],keywords:{keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|--\x3e"},{begin:"=",relevance:0}]},t,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},e.NUMBER_MODE,n,o,{begin:/:-/},{begin:/\.$/}]}}},function(e,t){e.exports=function(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}},function(e,t){e.exports=function(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t=/[dualxmsipn]{0,12}/,o={$pattern:/[\w.]+/,keyword:"getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qq fileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmget sub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedir ioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when"},r={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:o},i={begin:/->\{/,end:/\}/},a={variants:[{begin:/\$\d/},{begin:n(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},s=[e.BACKSLASH_ESCAPE,r,a],c=[a,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),i,{className:"string",contains:s,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,contains:[],relevance:0},{begin:"-?\\w+\\s*=>",contains:[],relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",begin:n(/(s|tr|y)/,/\//,/(\\.|[^\\\/])*/,/\//,/(\\.|[^\\\/])*/,/\//,t),relevance:10},{className:"regexp",begin:/(m|qr)?\//,end:n(/\//,t),contains:[e.BACKSLASH_ESCAPE],relevance:0}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return r.contains=c,i.contains=c,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:c}}},function(e,t){e.exports=function(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}},function(e,t){e.exports=function(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:"public private property continue exit extern new try catch eachin not abstract final select case default const local global field end if then else elseif endif while wend repeat until forever for to step next return module inline throw import",built_in:"DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI",literal:"true false null and or shl shr mod"},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),{className:"function",beginKeywords:"function method",end:"[(=:]|$",illegal:/\n/,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"$",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{className:"built_in",begin:"\\b(self|super)\\b"},{className:"meta",begin:"\\s*#",end:"$",keywords:{"meta-keyword":"if else elseif endif end then"}},{className:"meta",begin:"^\\s*strict\\b"},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}},function(e,t){e.exports=function(e){const t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",o={className:"subst",begin:/#\{/,end:/\}/,keywords:t},r=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];o.contains=r;const i=e.inherit(e.TITLE_MODE,{begin:n}),a={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(r)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:r.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*(\\(.*\\)\\s*)?\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[i,a]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:"(\\(.*\\)\\s*)?\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[a]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[i]},i]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}},function(e,t){e.exports=function(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,endsWithParent:!0,keywords:{keyword:"all alter analyze and any array as asc begin between binary boolean break bucket build by call case cast cluster collate collection commit connect continue correlate cover create database dataset datastore declare decrement delete derived desc describe distinct do drop each element else end every except exclude execute exists explain fetch first flatten for force from function grant group gsi having if ignore ilike in include increment index infer inline inner insert intersect into is join key keys keyspace known last left let letting like limit lsm map mapping matched materialized merge minus namespace nest not number object offset on option or order outer over parse partition password path pool prepare primary private privilege procedure public raw realm reduce rename return returning revoke right role rollback satisfies schema select self semi set show some start statistics string system then to transaction trigger truncate under union unique unknown unnest unset update upsert use user using validate value valued values via view when where while with within work xor",literal:"true false null missing|5",built_in:"array_agg array_append array_concat array_contains array_count array_distinct array_ifnull array_length array_max array_min array_position array_prepend array_put array_range array_remove array_repeat array_replace array_reverse array_sort array_sum avg count max min sum greatest least ifmissing ifmissingornull ifnull missingif nullif ifinf ifnan ifnanorinf naninf neginfif posinfif clock_millis clock_str date_add_millis date_add_str date_diff_millis date_diff_str date_part_millis date_part_str date_trunc_millis date_trunc_str duration_to_str millis str_to_millis millis_to_str millis_to_utc millis_to_zone_name now_millis now_str str_to_duration str_to_utc str_to_zone_name decode_json encode_json encoded_size poly_length base64 base64_encode base64_decode meta uuid abs acos asin atan atan2 ceil cos degrees e exp ln log floor pi power radians random round sign sin sqrt tan trunc object_length object_names object_pairs object_inner_pairs object_values object_inner_values object_add object_put object_remove object_unwrap regexp_contains regexp_like regexp_position regexp_replace contains initcap length lower ltrim position repeat replace rtrim split substr title trim upper isarray isatom isboolean isnumber isobject isstring type toarray toatom toboolean tonumber toobject tostring"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE],relevance:2},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}},function(e,t){e.exports=function(e){const t={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/\}/},{begin:/[$@]/+e.UNDERSCORE_IDENT_RE}]},n={endsWithParent:!0,keywords:{$pattern:"[a-z/_]+",literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[t]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},t]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\{/,contains:[{className:"section",begin:e.UNDERSCORE_IDENT_RE}],relevance:0},{begin:e.UNDERSCORE_IDENT_RE+"\\s",end:";|\\{",returnBegin:!0,contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:n}],relevance:0}],illegal:"[^\\s\\}]"}}},function(e,t){e.exports=function(e){return{name:"Nim",aliases:["nim"],keywords:{keyword:"addr and as asm bind block break case cast const continue converter discard distinct div do elif else end enum except export finally for from func generic if import in include interface is isnot iterator let macro method mixin mod nil not notin object of or out proc ptr raise ref return shl shr static template try tuple type using var when while with without xor yield",literal:"shared guarded stdin stdout stderr result true false",built_in:"int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float float32 float64 bool char string cstring pointer expr stmt void auto any range array openarray varargs seq set clong culong cchar cschar cshort cint csize clonglong cfloat cdouble clongdouble cuchar cushort cuint culonglong cstringarray semistatic"},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}},function(e,t){e.exports=function(e){const t={keyword:"rec with let in inherit assert if else then",literal:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},n={className:"subst",begin:/\$\{/,end:/\}/,keywords:t},o={className:"string",contains:[n],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},r=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,{begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/}]}];return n.contains=r,{name:"Nix",aliases:["nixos"],keywords:t,contains:r}}},function(e,t){e.exports=function(e){return{name:"Node REPL",contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}},function(e,t){e.exports=function(e){const t={className:"variable",begin:/\$+\{[\w.:-]+\}/},n={className:"variable",begin:/\$+\w+/,illegal:/\(\)\{\}/},o={className:"variable",begin:/\$+\([\w^.:-]+\)/},r={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[{className:"meta",begin:/\$(\\[nrt]|\$)/},{className:"variable",begin:/\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)/},t,n,o]};return{name:"NSIS",case_insensitive:!1,keywords:{keyword:"Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecShellWait ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileWriteUTF16LE FileSeek FileWrite FileWriteByte FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetKnownFolderPath GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfRtlLanguage IfShellVarContextAll IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText Int64Cmp Int64CmpU Int64Fmt IntCmp IntCmpU IntFmt IntOp IntPtrCmp IntPtrCmpU IntPtrOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadAndSetImage LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestLongPathAware ManifestMaxVersionTested ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PEAddResource PEDllCharacteristics PERemoveResource PESubsysVer Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegMultiStr WriteRegNone WriteRegStr WriteUninstaller XPStyle",literal:"admin all auto both bottom bzip2 colored components current custom directory false force hide highest ifdiff ifnewer instfiles lastused leave left license listonly lzma nevershow none normal notset off on open print right show silent silentlog smooth textonly top true try un.components un.custom un.directory un.instfiles un.license uninstConfirm user Win10 Win7 Win8 WinVista zlib"},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),{className:"function",beginKeywords:"Function PageEx Section SectionGroup",end:"$"},r,{className:"keyword",begin:/!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|searchparse|searchreplace|system|tempfile|undef|verbose|warning)/},t,n,o,{className:"params",begin:"(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)"},{className:"class",begin:/\w+::\w+/},e.NUMBER_MODE]}}},function(e,t){e.exports=function(e){const t=/[a-zA-Z@][a-zA-Z0-9_]*/,n={$pattern:t,keyword:"@interface @class @protocol @implementation"};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:{$pattern:t,keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},illegal:"</",contains:[{className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+n.keyword.split(" ").join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:n,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}},function(e,t){e.exports=function(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}},function(e,t){e.exports=function(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[{className:"params",begin:"\\(",end:"\\)",contains:["self",n,o,t,{className:"literal",begin:"false|true|PI|undef"}]},e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"meta",keywords:{"meta-keyword":"include use"},begin:"include|use <",end:">"},o,t,{begin:"[*!#%]",relevance:0},r]}}},function(e,t){e.exports=function(e){const t={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},n=e.COMMENT(/\{/,/\}/,{relevance:0}),o=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),r={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},i={className:"string",begin:"(#\\d+)+"},a={className:"function",beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[r,i]},n,o]};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[n,o,e.C_LINE_COMMENT_MODE,r,i,e.NUMBER_MODE,a,{className:"class",begin:"=\\bclass\\b",end:"end;",keywords:t,contains:[r,i,n,o,e.C_LINE_COMMENT_MODE,a]}]}}},function(e,t){e.exports=function(e){const t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,{className:"variable",begin:/\$[\w\d#@][\w\d_]*/},{className:"variable",begin:/<(?!\/)/,end:/>/}]}}},function(e,t){e.exports=function(e){const t=e.COMMENT("--","$"),n="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",o=n.trim().split(" ").map((function(e){return e.split("|")[0]})).join("|"),r="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map((function(e){return e.split("|")[0]})).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],case_insensitive:!0,keywords:{keyword:"ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",built_in:"CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED "},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+r+")\\s*\\("},{begin:"\\.("+o+")\\b"},{begin:"\\b("+o+")\\s+PATH\\b",keywords:{keyword:"PATH",type:n.replace("PATH ","")}},{className:"type",begin:"\\b("+o+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:"\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",end:"\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:"<<\\s*[a-zA-Z_][a-zA-Z_0-9$]*\\s*>>",relevance:10}]}}},function(e,t){e.exports=function(e){const t={className:"variable",begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*(?![A-Za-z0-9])(?![$])"},n={className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},o={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},r=e.inherit(e.APOS_STRING_MODE,{illegal:null}),i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(o)}),a=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(o)}),s={className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[e.inherit(r,{begin:"b'",end:"'"}),e.inherit(i,{begin:'b"',end:'"'}),i,r,a]},c={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},l={keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list match|0 new object or private protected public real return string switch throw trait try unset use var void while xor yield",literal:"false null true",built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Throwable Traversable WeakReference Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass"};return{aliases:["php","php3","php4","php5","php6","php7","php8"],case_insensitive:!0,keywords:l,contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[n]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),n,{className:"keyword",begin:/\$this\b/},t,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[e.UNDERSCORE_TITLE_MODE,{begin:"=>"},{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",t,e.C_BLOCK_COMMENT_MODE,s,c]}]},{className:"class",beginKeywords:"class interface",relevance:0,end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",relevance:0,end:";",contains:[e.UNDERSCORE_TITLE_MODE]},s,c]}}},function(e,t){e.exports=function(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}},function(e,t){e.exports=function(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}},function(e,t){e.exports=function(e){return{name:"Pony",keywords:{keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},contains:[{className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},{begin:e.IDENT_RE+"'",relevance:0},{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}},function(e,t){e.exports=function(e){const t={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},n={begin:"`[\\s\\S]",relevance:0},o={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},r={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[n,o,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},i={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},a=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),s={className:"built_in",variants:[{begin:"(".concat("Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Complete|Confirm|Deny|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",")+(-)[\\w\\d]+")}]},c={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},l={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[o]}]},u={begin:/using\s/,end:/$/,returnBegin:!0,contains:[r,i,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},d={variants:[{className:"operator",begin:"(".concat("-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},h={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(t.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},p=[h,a,n,e.NUMBER_MODE,r,i,s,o,{className:"literal",begin:/\$(null|true|false)\b/},{className:"selector-tag",begin:/@\B/,relevance:0}],m={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",p,{begin:"("+["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"].join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return h.contains.unshift(m),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:t,contains:p.concat(c,l,u,d,m)}}},function(e,t){e.exports=function(e){return{name:"Processing",keywords:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",title:"setup draw",built_in:"displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key keyCode pixels focused frameCount frameRate height width size createGraphics beginDraw createShape loadShape PShape arc ellipse line point quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour millis minute month second year background clear colorMode fill noFill noStroke stroke alpha blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}},function(e,t){e.exports=function(e){const t={begin:/\(/,end:/\)/,relevance:0},n={begin:/\[/,end:/\]/},o={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},r={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},i=[{begin:/[a-z][A-Za-z0-9_]*/,relevance:0},{className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},t,{begin:/:-/},n,o,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,r,{className:"string",begin:/0'(\\'|.)/},{className:"string",begin:/0'\\s/},e.C_NUMBER_MODE];return t.contains=i,n.contains=i,{name:"Prolog",contains:i.concat([{begin:/\.$/}])}}},function(e,t){e.exports=function(e){var t="[ \\t\\f]*",n="([ \\t\\f]*[:=][ \\t\\f]*|[ \\t\\f]+)",o="([^\\\\:= \\t\\f\\n]|\\\\.)+",r={end:n,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\n"}]}};return{name:".properties",case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:"([^\\\\\\W:= \\t\\f\\n]|\\\\.)+[ \\t\\f]*[:=][ \\t\\f]*",relevance:1},{begin:"([^\\\\\\W:= \\t\\f\\n]|\\\\.)+[ \\t\\f]+",relevance:0}],contains:[{className:"attr",begin:"([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",endsParent:!0,relevance:0}],starts:r},{begin:o+n,returnBegin:!0,relevance:0,contains:[{className:"meta",begin:o,endsParent:!0,relevance:0}],starts:r},{className:"attr",relevance:0,begin:o+t+"$"}]}}},function(e,t){e.exports=function(e){return{name:"Protocol Buffers",keywords:{keyword:"package import option optional required repeated group oneof",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"message enum service",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}},function(e,t){e.exports=function(e){const t=e.COMMENT("#","$"),n=e.inherit(e.TITLE_MODE,{begin:"([A-Za-z_]|::)(\\w|::)*"}),o={className:"variable",begin:"\\$([A-Za-z_]|::)(\\w|::)*"},r={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[t,o,r,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[n,t]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE},{begin:/\{/,end:/\}/,keywords:{keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},relevance:0,contains:[r,t,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},o]}],relevance:0}]}}},function(e,t){e.exports=function(e){return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},{className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},{className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"}]}}},function(e,t){e.exports=function(e){const t={keyword:["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"].join(" "),built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"].join(" "),literal:["__debug__","Ellipsis","False","None","NotImplemented","True"].join(" ")},n={className:"meta",begin:/^(>>>|\.\.\.) /},o={className:"subst",begin:/\{/,end:/\}/,keywords:t,illegal:/#/},r={begin:/\{\{/,relevance:0},i={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n,r,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n,r,o]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,r,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,o]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},a="[0-9](_?[0-9])*",s=`(\\b(${a}))?\\.(${a})|\\b(${a})\\.`,c={className:"number",relevance:0,variants:[{begin:`(\\b(${a})|(${s}))[eE][+-]?(${a})[jJ]?\\b`},{begin:`(${s})[jJ]?`},{begin:"\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b"},{begin:"\\b0[bB](_?[01])+[lL]?\\b"},{begin:"\\b0[oO](_?[0-7])+[lL]?\\b"},{begin:"\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b"},{begin:`\\b(${a})[jJ]\\b`}]},l={className:"params",variants:[{begin:/\(\s*\)/,skip:!0,className:null},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:["self",n,c,i,e.HASH_COMMENT_MODE]}]};return o.contains=[i,c,n],{name:"Python",aliases:["py","gyp","ipython"],keywords:t,illegal:/(<\/|->|\?)|=>/,contains:[n,c,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},i,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,l,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[c,l,i]},{begin:/\b(print|exec)\(/}]}}},function(e,t){e.exports=function(e){return{aliases:["pycon"],contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}},function(e,t){e.exports=function(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t="[a-zA-Z_][a-zA-Z0-9\\._]*",o={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:t,returnEnd:!1}},r={begin:t+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:t,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},i={begin:n(t,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:{keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},{className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},o,r,i],illegal:/#/}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/;return{name:"R",illegal:/->/,keywords:{$pattern:t,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{className:"doctag",begin:"@examples",starts:{contains:[{begin:/\n/},{begin:/#'\s*(?=@[a-zA-Z]+)/,endsParent:!0},{begin:/#'/,end:/$/,excludeBegin:!0}]}},{className:"doctag",begin:"@param",end:/$/,contains:[{className:"variable",variants:[{begin:t},{begin:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{className:"doctag",begin:/@[a-zA-Z]+/},{className:"meta-keyword",begin:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{className:"number",variants:[{begin:/([^a-zA-Z0-9._])(?=0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?)/,end:/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,excludeBegin:!0},{begin:/([^a-zA-Z0-9._])(?=0[xX][0-9a-fA-F]+([pP][+-]?\d+)?[Li]?)/,end:/0[xX][0-9a-fA-F]+([pP][+-]?\d+)?[Li]?/,excludeBegin:!0},{begin:/([^a-zA-Z0-9._])(?=(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?[Li]?)/,end:/(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?[Li]?/,excludeBegin:!0}],relevance:0},{begin:"%",end:"%"},{begin:n(/[a-zA-Z][a-zA-Z_0-9]*/,"\\s+<-\\s+")},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}},function(e,t){e.exports=function(e){const t="~?[a-z$_][0-9a-zA-Z$_]*",n="`?[A-Z$_][0-9a-zA-Z$_]*",o="("+(["||","++","**","+.","*","/","*.","/.","..."].map((function(e){return e.split("").map((function(e){return"\\"+e})).join("")})).join("|")+"|\\|>|&&|==|===)"),r="\\s+"+o+"\\s+",i={keyword:"and as asr assert begin class constraint do done downto else end exception external for fun function functor if in include inherit initializer land lazy let lor lsl lsr lxor match method mod module mutable new nonrec object of open or private rec sig struct then to try type val virtual when while with",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit ",literal:"true false"},a="\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",s={className:"number",relevance:0,variants:[{begin:a},{begin:"\\(-"+a+"\\)"}]},c={className:"operator",relevance:0,begin:o},l=[{className:"identifier",relevance:0,begin:t},c,s],u=[e.QUOTE_STRING_MODE,c,{className:"module",begin:"\\b"+n,returnBegin:!0,end:".",contains:[{className:"identifier",begin:n,relevance:0}]}],d=[{className:"module",begin:"\\b"+n,returnBegin:!0,end:".",relevance:0,contains:[{className:"identifier",begin:n,relevance:0}]}],h={className:"function",relevance:0,keywords:i,variants:[{begin:"\\s(\\(\\.?.*?\\)|"+t+")\\s*=>",end:"\\s*=>",returnBegin:!0,relevance:0,contains:[{className:"params",variants:[{begin:t},{begin:"~?[a-z$_][0-9a-zA-Z$_]*(\\s*:\\s*[a-z$_][0-9a-z$_]*(\\(\\s*('?[a-z$_][0-9a-z$_]*\\s*(,'?[a-z$_][0-9a-z$_]*\\s*)*)?\\))?){0,2}"},{begin:/\(\s*\)/}]}]},{begin:"\\s\\(\\.?[^;\\|]*\\)\\s*=>",end:"\\s=>",returnBegin:!0,relevance:0,contains:[{className:"params",relevance:0,variants:[{begin:t,end:"(,|\\n|\\))",relevance:0,contains:[c,{className:"typing",begin:":",end:"(,|\\n)",returnBegin:!0,relevance:0,contains:d}]}]}]},{begin:"\\(\\.\\s"+t+"\\)\\s*=>"}]};u.push(h);const p={className:"constructor",begin:n+"\\(",end:"\\)",illegal:"\\n",keywords:i,contains:[e.QUOTE_STRING_MODE,c,{className:"params",begin:"\\b"+t}]},m={className:"pattern-match",begin:"\\|",returnBegin:!0,keywords:i,end:"=>",relevance:0,contains:[p,c,{relevance:0,className:"constructor",begin:n}]},g={className:"module-access",keywords:i,returnBegin:!0,variants:[{begin:"\\b("+n+"\\.)+"+t},{begin:"\\b("+n+"\\.)+\\(",end:"\\)",returnBegin:!0,contains:[h,{begin:"\\(",end:"\\)",skip:!0}].concat(u)},{begin:"\\b("+n+"\\.)+\\{",end:/\}/}],contains:u};return d.push(g),{name:"ReasonML",aliases:["re"],keywords:i,illegal:"(:-|:=|\\$\\{|\\+=)",contains:[e.COMMENT("/\\*","\\*/",{illegal:"^(#,\\/\\/)"}),{className:"character",begin:"'(\\\\[^']+|[^'])'",illegal:"\\n",relevance:0},e.QUOTE_STRING_MODE,{className:"literal",begin:"\\(\\)",relevance:0},{className:"literal",begin:"\\[\\|",end:"\\|\\]",relevance:0,contains:l},{className:"literal",begin:"\\[",end:"\\]",relevance:0,contains:l},p,{className:"operator",begin:r,illegal:"--\x3e",relevance:0},s,e.C_LINE_COMMENT_MODE,m,h,{className:"module-def",begin:"\\bmodule\\s+"+t+"\\s+"+n+"\\s+=\\s+\\{",end:/\}/,returnBegin:!0,keywords:i,relevance:0,contains:[{className:"module",relevance:0,begin:n},{begin:/\{/,end:/\}/,skip:!0}].concat(u)},g]}}},function(e,t){e.exports=function(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}},function(e,t){e.exports=function(e){const t={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet [a-zA-Z-_][^\\n{]+\\{",end:/\}/,keywords:"facet",contains:[t,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of [a-zA-Z-_][^\\n{]+\\{",end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",t,e.HASH_COMMENT_MODE]},{begin:"^[a-zA-Z-_][^\\n{]+\\{",end:/\}/,contains:[t,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}},function(e,t){e.exports=function(e){const t="foreach do while for if from to step else on-error and or not in",n="true false yes no nothing nil null",o={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},i={className:"string",begin:/'/,end:/'/};return{name:"Microtik RouterOS script",aliases:["routeros","mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:n,keyword:t+" :"+t.split(" ").join(" :")+" :"+"global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime".split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),r,i,o,{begin:/[\w-]+=([^\s{}[\]()]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[r,i,o,{className:"literal",begin:"\\b("+n.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+"add remove enable disable set get print export edit find run debug error info warning".split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"builtin-name",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+"traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw".split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}},function(e,t){e.exports=function(e){return{name:"RenderMan RSL",keywords:{keyword:"float color point normal vector matrix while for if do return else break extern continue",built_in:"abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp faceforward filterstep floor format fresnel incident length lightsource log match max min mod noise normalize ntransform opposite option phong pnoise pow printf ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan texture textureinfo trace transform vtransform xcomp ycomp zcomp"},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"surface displacement light volume imager",end:"\\("},{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}},function(e,t){e.exports=function(e){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}},function(e,t){e.exports=function(e){const t="([ui](8|16|32|64|128|size)|f(32|64))?",n="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!";return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",keyword:"abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield",literal:"true false Some None Ok Err",built_in:n},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+t}],relevance:0},{className:"function",beginKeywords:"fn",end:"(\\(|<)",excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"meta-string",begin:/"/,end:/"/}]},{className:"class",beginKeywords:"type",end:";",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"\\S"},{className:"class",beginKeywords:"trait enum struct union",end:/\{/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"[\\w\\d]"},{begin:e.IDENT_RE+"::",keywords:{built_in:n}},{begin:"->"}]}}},function(e,t){e.exports=function(e){return{name:"SAS",aliases:["sas","SAS"],case_insensitive:!0,keywords:{literal:"null missing _all_ _automatic_ _character_ _infile_ _n_ _name_ _null_ _numeric_ _user_ _webout_",meta:"do if then else end until while abort array attrib by call cards cards4 catname continue datalines datalines4 delete delim delimiter display dm drop endsas error file filename footnote format goto in infile informat input keep label leave length libname link list lostcard merge missing modify options output out page put redirect remove rename replace retain return select set skip startsas stop title update waitsas where window x systask add and alter as cascade check create delete describe distinct drop foreign from group having index insert into in key like message modify msgtype not null on or order primary references reset restrict select set table unique update validate view where"},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{className:"emphasis",begin:/^\s*datalines|cards.*;/,end:/^\s*;\s*$/},{className:"built_in",begin:"%(bquote|nrbquote|cmpres|qcmpres|compstor|datatyp|display|do|else|end|eval|global|goto|if|index|input|keydef|label|left|length|let|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qcmpres|qleft|qlowcase|qscan|qsubstr|qsysfunc|qtrim|quote|qupcase|scan|str|substr|superq|syscall|sysevalf|sysexec|sysfunc|sysget|syslput|sysprod|sysrc|sysrput|then|to|trim|unquote|until|upcase|verify|while|window)"},{className:"name",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:"[^%](abs|addr|airy|arcos|arsin|atan|attrc|attrn|band|betainv|blshift|bnot|bor|brshift|bxor|byte|cdf|ceil|cexist|cinv|close|cnonct|collate|compbl|compound|compress|cos|cosh|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|date|datejul|datepart|datetime|day|dclose|depdb|depdbsl|depdbsl|depsl|depsl|depsyd|depsyd|deptab|deptab|dequote|dhms|dif|digamma|dim|dinfo|dnum|dopen|doptname|doptnum|dread|dropnote|dsname|erf|erfc|exist|exp|fappend|fclose|fcol|fdelete|fetch|fetchobs|fexist|fget|fileexist|filename|fileref|finfo|finv|fipname|fipnamel|fipstate|floor|fnonct|fnote|fopen|foptname|foptnum|fpoint|fpos|fput|fread|frewind|frlen|fsep|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|hbound|hms|hosthelp|hour|ibessel|index|indexc|indexw|input|inputc|inputn|int|intck|intnx|intrr|irr|jbessel|juldate|kurtosis|lag|lbound|left|length|lgamma|libname|libref|log|log10|log2|logpdf|logpmf|logsdf|lowcase|max|mdy|mean|min|minute|mod|month|mopen|mort|n|netpv|nmiss|normal|note|npv|open|ordinal|pathname|pdf|peek|peekc|pmf|point|poisson|poke|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probt|put|putc|putn|qtr|quote|ranbin|rancau|ranexp|rangam|range|rank|rannor|ranpoi|rantbl|rantri|ranuni|repeat|resolve|reverse|rewind|right|round|saving|scan|sdf|second|sign|sin|sinh|skewness|soundex|spedis|sqrt|std|stderr|stfips|stname|stnamel|substr|sum|symget|sysget|sysmsg|sysprod|sysrc|system|tan|tanh|time|timepart|tinv|tnonct|today|translate|tranwrd|trigamma|trim|trimn|trunc|uniform|upcase|uss|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vtype|vtypex|weekday|year|yyq|zipfips|zipname|zipnamel|zipstate)[(]"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}},function(e,t){e.exports=function(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},n={className:"string",variants:[{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'"""',end:'"""',relevance:10},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[t],relevance:10}]},o={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},r={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},i={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o]},r]},a={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[r]};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},o,a,i,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}},function(e,t){e.exports=function(e){var t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n={$pattern:t,"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},o={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},r={className:"number",variants:[{begin:"(-|\\+)?\\d+([./]\\d+)?",relevance:0},{begin:"(-|\\+)?\\d+([./]\\d+)?[+\\-](-|\\+)?\\d+([./]\\d+)?i",relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},i=e.QUOTE_STRING_MODE,a=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],s={begin:t,relevance:0},c={className:"symbol",begin:"'"+t},l={endsWithParent:!0,relevance:0},u={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",o,i,r,s,c]}]},d={className:"name",relevance:0,begin:t,keywords:n},h={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[d,{begin:/\(/,end:/\)/,endsParent:!0,contains:[s]}]},d,l]};return l.contains=[o,r,i,s,c,u,h].concat(a),{name:"Scheme",illegal:/\S/,contains:[e.SHEBANG(),r,i,c,u,h].concat(a)}}},function(e,t){e.exports=function(e){const t=[e.C_NUMBER_MODE,{className:"string",begin:"'|\"",end:"'|\"",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:t},e.COMMENT("//","$")].concat(t)}}},function(e,t){e.exports=function(e){var t={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"},n={className:"number",begin:"#[0-9A-Fa-f]+"};return e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{className:"selector-pseudo",begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{className:"selector-pseudo",begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},t,{className:"attribute",begin:"\\b(src|z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[t,n,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@(page|font-face)",lexemes:"@[a-z-]+",keywords:"@page @font-face"},{begin:"@",end:"[{;]",returnBegin:!0,keywords:"and or not only",contains:[{begin:"@[a-z-]+",className:"keyword"},t,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n,e.CSS_NUMBER_MODE]}]}}},function(e,t){e.exports=function(e){return{name:"Shell Session",aliases:["console"],contains:[{className:"meta",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#]/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}},function(e,t){e.exports=function(e){const t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"];return{name:"Smali",aliases:["smali"],contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"].join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"].join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:"L[^(;:\n]*;",relevance:0},{begin:"[vp][0-9]+"}]}}},function(e,t){e.exports=function(e){const t={className:"string",begin:"\\$.{1}"},n={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:"self super nil true false thisContext",contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:"[a-z][a-zA-Z0-9_]*:",relevance:0},e.C_NUMBER_MODE,n,t,{begin:"\\|[ ]*[a-z][a-zA-Z0-9_]*([ ]+[a-z][a-zA-Z0-9_]*)*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?[a-z][a-zA-Z0-9_]*"}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,t,e.C_NUMBER_MODE,n]}]}}},function(e,t){e.exports=function(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}},function(e,t){e.exports=function(e){const t={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},n={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"define undef ifdef ifndef else endif include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(t,{className:"meta-string"}),{className:"meta-string",begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",aliases:["sqf"],case_insensitive:!0,keywords:{keyword:"case catch default do else exit exitWith for forEach from if private switch then throw to try waitUntil while with",built_in:"abs accTime acos action actionIDs actionKeys actionKeysImages actionKeysNames actionKeysNamesArray actionName actionParams activateAddons activatedAddons activateKey add3DENConnection add3DENEventHandler add3DENLayer addAction addBackpack addBackpackCargo addBackpackCargoGlobal addBackpackGlobal addCamShake addCuratorAddons addCuratorCameraArea addCuratorEditableObjects addCuratorEditingArea addCuratorPoints addEditorObject addEventHandler addForce addGoggles addGroupIcon addHandgunItem addHeadgear addItem addItemCargo addItemCargoGlobal addItemPool addItemToBackpack addItemToUniform addItemToVest addLiveStats addMagazine addMagazineAmmoCargo addMagazineCargo addMagazineCargoGlobal addMagazineGlobal addMagazinePool addMagazines addMagazineTurret addMenu addMenuItem addMissionEventHandler addMPEventHandler addMusicEventHandler addOwnedMine addPlayerScores addPrimaryWeaponItem addPublicVariableEventHandler addRating addResources addScore addScoreSide addSecondaryWeaponItem addSwitchableUnit addTeamMember addToRemainsCollector addTorque addUniform addVehicle addVest addWaypoint addWeapon addWeaponCargo addWeaponCargoGlobal addWeaponGlobal addWeaponItem addWeaponPool addWeaponTurret admin agent agents AGLToASL aimedAtTarget aimPos airDensityRTD airplaneThrottle airportSide AISFinishHeal alive all3DENEntities allAirports allControls allCurators allCutLayers allDead allDeadMen allDisplays allGroups allMapMarkers allMines allMissionObjects allow3DMode allowCrewInImmobile allowCuratorLogicIgnoreAreas allowDamage allowDammage allowFileOperations allowFleeing allowGetIn allowSprint allPlayers allSimpleObjects allSites allTurrets allUnits allUnitsUAV allVariables ammo ammoOnPylon and animate animateBay animateDoor animatePylon animateSource animationNames animationPhase animationSourcePhase animationState append apply armoryPoints arrayIntersect asin ASLToAGL ASLToATL assert assignAsCargo assignAsCargoIndex assignAsCommander assignAsDriver assignAsGunner assignAsTurret assignCurator assignedCargo assignedCommander assignedDriver assignedGunner assignedItems assignedTarget assignedTeam assignedVehicle assignedVehicleRole assignItem assignTeam assignToAirport atan atan2 atg ATLToASL attachedObject attachedObjects attachedTo attachObject attachTo attackEnabled backpack backpackCargo backpackContainer backpackItems backpackMagazines backpackSpaceFor behaviour benchmark binocular boundingBox boundingBoxReal boundingCenter breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode call callExtension camCommand camCommit camCommitPrepared camCommitted camConstuctionSetParams camCreate camDestroy cameraEffect cameraEffectEnableHUD cameraInterest cameraOn cameraView campaignConfigFile camPreload camPreloaded camPrepareBank camPrepareDir camPrepareDive camPrepareFocus camPrepareFov camPrepareFovRange camPreparePos camPrepareRelPos camPrepareTarget camSetBank camSetDir camSetDive camSetFocus camSetFov camSetFovRange camSetPos camSetRelPos camSetTarget camTarget camUseNVG canAdd canAddItemToBackpack canAddItemToUniform canAddItemToVest cancelSimpleTaskDestination canFire canMove canSlingLoad canStand canSuspend canTriggerDynamicSimulation canUnloadInCombat canVehicleCargo captive captiveNum cbChecked cbSetChecked ceil channelEnabled cheatsEnabled checkAIFeature checkVisibility className clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal clearMagazinePool clearOverlay clearRadio clearWeaponCargo clearWeaponCargoGlobal clearWeaponPool clientOwner closeDialog closeDisplay closeOverlay collapseObjectTree collect3DENHistory collectiveRTD combatMode commandArtilleryFire commandChat commander commandFire commandFollow commandFSM commandGetOut commandingMenu commandMove commandRadio commandStop commandSuppressiveFire commandTarget commandWatch comment commitOverlay compile compileFinal completedFSM composeText configClasses configFile configHierarchy configName configProperties configSourceAddonList configSourceMod configSourceModList confirmSensorTarget connectTerminalToUAV controlsGroupCtrl copyFromClipboard copyToClipboard copyWaypoints cos count countEnemy countFriendly countSide countType countUnknown create3DENComposition create3DENEntity createAgent createCenter createDialog createDiaryLink createDiaryRecord createDiarySubject createDisplay createGearDialog createGroup createGuardedPoint createLocation createMarker createMarkerLocal createMenu createMine createMissionDisplay createMPCampaignDisplay createSimpleObject createSimpleTask createSite createSoundSource createTask createTeam createTrigger createUnit createVehicle createVehicleCrew createVehicleLocal crew ctAddHeader ctAddRow ctClear ctCurSel ctData ctFindHeaderRows ctFindRowHeader ctHeaderControls ctHeaderCount ctRemoveHeaders ctRemoveRows ctrlActivate ctrlAddEventHandler ctrlAngle ctrlAutoScrollDelay ctrlAutoScrollRewind ctrlAutoScrollSpeed ctrlChecked ctrlClassName ctrlCommit ctrlCommitted ctrlCreate ctrlDelete ctrlEnable ctrlEnabled ctrlFade ctrlHTMLLoaded ctrlIDC ctrlIDD ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone ctrlMapCursor ctrlMapMouseOver ctrlMapScale ctrlMapScreenToWorld ctrlMapWorldToScreen ctrlModel ctrlModelDirAndUp ctrlModelScale ctrlParent ctrlParentControlsGroup ctrlPosition ctrlRemoveAllEventHandlers ctrlRemoveEventHandler ctrlScale ctrlSetActiveColor ctrlSetAngle ctrlSetAutoScrollDelay ctrlSetAutoScrollRewind ctrlSetAutoScrollSpeed ctrlSetBackgroundColor ctrlSetChecked ctrlSetEventHandler ctrlSetFade ctrlSetFocus ctrlSetFont ctrlSetFontH1 ctrlSetFontH1B ctrlSetFontH2 ctrlSetFontH2B ctrlSetFontH3 ctrlSetFontH3B ctrlSetFontH4 ctrlSetFontH4B ctrlSetFontH5 ctrlSetFontH5B ctrlSetFontH6 ctrlSetFontH6B ctrlSetFontHeight ctrlSetFontHeightH1 ctrlSetFontHeightH2 ctrlSetFontHeightH3 ctrlSetFontHeightH4 ctrlSetFontHeightH5 ctrlSetFontHeightH6 ctrlSetFontHeightSecondary ctrlSetFontP ctrlSetFontPB ctrlSetFontSecondary ctrlSetForegroundColor ctrlSetModel ctrlSetModelDirAndUp ctrlSetModelScale ctrlSetPixelPrecision ctrlSetPosition ctrlSetScale ctrlSetStructuredText ctrlSetText ctrlSetTextColor ctrlSetTooltip ctrlSetTooltipColorBox ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ctrlTextWidth ctrlType ctrlVisible ctRowControls ctRowCount ctSetCurSel ctSetData ctSetHeaderTemplate ctSetRowTemplate ctSetValue ctValue curatorAddons curatorCamera curatorCameraArea curatorCameraAreaCeiling curatorCoef curatorEditableObjects curatorEditingArea curatorEditingAreaType curatorMouseOver curatorPoints curatorRegisteredObjects curatorSelected curatorWaypointCost current3DENOperation currentChannel currentCommand currentMagazine currentMagazineDetail currentMagazineDetailTurret currentMagazineTurret currentMuzzle currentNamespace currentTask currentTasks currentThrowable currentVisionMode currentWaypoint currentWeapon currentWeaponMode currentWeaponTurret currentZeroing cursorObject cursorTarget customChat customRadio cutFadeOut cutObj cutRsc cutText damage date dateToNumber daytime deActivateKey debriefingText debugFSM debugLog deg delete3DENEntities deleteAt deleteCenter deleteCollection deleteEditorObject deleteGroup deleteGroupWhenEmpty deleteIdentity deleteLocation deleteMarker deleteMarkerLocal deleteRange deleteResources deleteSite deleteStatus deleteTeam deleteVehicle deleteVehicleCrew deleteWaypoint detach detectedMines diag_activeMissionFSMs diag_activeScripts diag_activeSQFScripts diag_activeSQSScripts diag_captureFrame diag_captureFrameToFile diag_captureSlowFrame diag_codePerformance diag_drawMode diag_enable diag_enabled diag_fps diag_fpsMin diag_frameNo diag_lightNewLoad diag_list diag_log diag_logSlowFrame diag_mergeConfigFile diag_recordTurretLimits diag_setLightNew diag_tickTime diag_toggle dialog diarySubjectExists didJIP didJIPOwner difficulty difficultyEnabled difficultyEnabledRTD difficultyOption direction directSay disableAI disableCollisionWith disableConversation disableDebriefingStats disableMapIndicators disableNVGEquipment disableRemoteSensors disableSerialization disableTIEquipment disableUAVConnectability disableUserInput displayAddEventHandler displayCtrl displayParent displayRemoveAllEventHandlers displayRemoveEventHandler displaySetEventHandler dissolveTeam distance distance2D distanceSqr distributionRegion do3DENAction doArtilleryFire doFire doFollow doFSM doGetOut doMove doorPhase doStop doSuppressiveFire doTarget doWatch drawArrow drawEllipse drawIcon drawIcon3D drawLine drawLine3D drawLink drawLocation drawPolygon drawRectangle drawTriangle driver drop dynamicSimulationDistance dynamicSimulationDistanceCoef dynamicSimulationEnabled dynamicSimulationSystemEnabled echo edit3DENMissionAttributes editObject editorSetEventHandler effectiveCommander emptyPositions enableAI enableAIFeature enableAimPrecision enableAttack enableAudioFeature enableAutoStartUpRTD enableAutoTrimRTD enableCamShake enableCaustics enableChannel enableCollisionWith enableCopilot enableDebriefingStats enableDiagLegend enableDynamicSimulation enableDynamicSimulationSystem enableEndDialog enableEngineArtillery enableEnvironment enableFatigue enableGunLights enableInfoPanelComponent enableIRLasers enableMimics enablePersonTurret enableRadio enableReload enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation enableSimulationGlobal enableStamina enableTeamSwitch enableTraffic enableUAVConnectability enableUAVWaypoints enableVehicleCargo enableVehicleSensor enableWeaponDisassembly endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities environmentEnabled estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack everyContainer exec execEditorScript execFSM execVM exp expectedDestination exportJIPMessages eyeDirection eyePos face faction fadeMusic fadeRadio fadeSound fadeSpeech failMission fillWeaponsFromPool find findCover findDisplay findEditorObject findEmptyPosition findEmptyPositionReady findIf findNearestEnemy finishMissionInit finite fire fireAtTarget firstBackpack flag flagAnimationPhase flagOwner flagSide flagTexture fleeing floor flyInHeight flyInHeightASL fog fogForecast fogParams forceAddUniform forcedMap forceEnd forceFlagTexture forceFollowRoad forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange forEachMember forEachMemberAgent forEachMemberTeam forgetTarget format formation formationDirection formationLeader formationMembers formationPosition formationTask formatText formLeader freeLook fromEditor fuel fullCrew gearIDCAmmoCount gearSlotAmmoCount gearSlotData get3DENActionState get3DENAttribute get3DENCamera get3DENConnections get3DENEntity get3DENEntityID get3DENGrid get3DENIconsVisible get3DENLayerEntities get3DENLinesVisible get3DENMissionAttribute get3DENMouseOver get3DENSelected getAimingCoef getAllEnvSoundControllers getAllHitPointsDamage getAllOwnedMines getAllSoundControllers getAmmoCargo getAnimAimPrecision getAnimSpeedCoef getArray getArtilleryAmmo getArtilleryComputerSettings getArtilleryETA getAssignedCuratorLogic getAssignedCuratorUnit getBackpackCargo getBleedingRemaining getBurningValue getCameraViewDirection getCargoIndex getCenterOfMass getClientState getClientStateNumber getCompatiblePylonMagazines getConnectedUAV getContainerMaxLoad getCursorObjectParams getCustomAimCoef getDammage getDescription getDir getDirVisual getDLCAssetsUsage getDLCAssetsUsageByName getDLCs getEditorCamera getEditorMode getEditorObjectScope getElevationOffset getEnvSoundController getFatigue getForcedFlagTexture getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos getMarkerSize getMarkerType getMass getMissionConfig getMissionConfigValue getMissionDLCs getMissionLayerEntities getModelInfo getMousePosition getMusicPlayedTime getNumber getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs getPilotCameraDirection getPilotCameraPosition getPilotCameraRotation getPilotCameraTarget getPlateNumber getPlayerChannel getPlayerScores getPlayerUID getPos getPosASL getPosASLVisual getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getPylonMagazines getRelDir getRelPos getRemoteSensorsDisabled getRepairCargo getResolution getShadowDistance getShotParents getSlingLoad getSoundController getSoundControllerResult getSpeed getStamina getStatValue getSuppression getTerrainGrid getTerrainHeightASL getText getTotalDLCUsageTime getUnitLoadout getUnitTrait getUserMFDText getUserMFDvalue getVariable getVehicleCargo getWeaponCargo getWeaponSway getWingsOrientationRTD getWingsPositionRTD getWPPos glanceAt globalChat globalRadio goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId groupOwner groupRadio groupSelectedUnits groupSelectUnit gunner gusts halt handgunItems handgunMagazine handgunWeapon handsHit hasInterface hasPilotCamera hasWeapon hcAllGroups hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup hcShowBar hcShownBar headgear hideBody hideObject hideObjectGlobal hideSelection hint hintC hintCadet hintSilent hmd hostMission htmlLoad HUDMovementLevels humidity image importAllGroups importance in inArea inAreaArray incapacitatedState inflame inflamed infoPanel infoPanelComponentEnabled infoPanelComponents infoPanels inGameUISetEventHandler inheritsFrom initAmbientLife inPolygon inputAction inRangeOfArtillery insertEditorObject intersect is3DEN is3DENMultiplayer isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest isBleeding isBurning isClass isCollisionLightOn isCopilotEnabled isDamageAllowed isDedicated isDLCAvailable isEngineOn isEqualTo isEqualType isEqualTypeAll isEqualTypeAny isEqualTypeArray isEqualTypeParams isFilePatchingEnabled isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader isGroupDeletedWhenEmpty isHidden isInRemainsCollector isInstructorFigureEnabled isIRLaserOn isKeyActive isKindOf isLaserOn isLightOn isLocalized isManualFire isMarkedForCollection isMultiplayer isMultiplayerSolo isNil isNull isNumber isObjectHidden isObjectRTD isOnRoad isPipEnabled isPlayer isRealTime isRemoteExecuted isRemoteExecutedJIP isServer isShowing3DIcons isSimpleObject isSprintAllowed isStaminaEnabled isSteamMission isStreamFriendlyUIEnabled isText isTouchingGround isTurnedOut isTutHintsEnabled isUAVConnectable isUAVConnected isUIContext isUniformAllowed isVehicleCargo isVehicleRadarOn isVehicleSensorEnabled isWalking isWeaponDeployed isWeaponRested itemCargo items itemsWithMagazines join joinAs joinAsSilent joinSilent joinString kbAddDatabase kbAddDatabaseTargets kbAddTopic kbHasTopic kbReact kbRemoveTopic kbTell kbWasSaid keyImage keyName knowsAbout land landAt landResult language laserTarget lbAdd lbClear lbColor lbColorRight lbCurSel lbData lbDelete lbIsSelected lbPicture lbPictureRight lbSelection lbSetColor lbSetColorRight lbSetCurSel lbSetData lbSetPicture lbSetPictureColor lbSetPictureColorDisabled lbSetPictureColorSelected lbSetPictureRight lbSetPictureRightColor lbSetPictureRightColorDisabled lbSetPictureRightColorSelected lbSetSelectColor lbSetSelectColorRight lbSetSelected lbSetText lbSetTextRight lbSetTooltip lbSetValue lbSize lbSort lbSortByValue lbText lbTextRight lbValue leader leaderboardDeInit leaderboardGetRows leaderboardInit leaderboardRequestRowsFriends leaderboardsRequestUploadScore leaderboardsRequestUploadScoreKeepBest leaderboardState leaveVehicle libraryCredits libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed linearConversion lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith linkItem list listObjects listRemoteTargets listVehicleSensors ln lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbSort lnbSortByValue lnbText lnbValue load loadAbs loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform loadVest local localize locationPosition lock lockCameraTo lockCargo lockDriver locked lockedCargo lockedDriver lockedTurret lockIdentity lockTurret lockWP log logEntities logNetwork logNetworkTerminate lookAt lookAtPos magazineCargo magazines magazinesAllTurrets magazinesAmmo magazinesAmmoCargo magazinesAmmoFull magazinesDetail magazinesDetailBackpack magazinesDetailUniform magazinesDetailVest magazinesTurret magazineTurretAmmo mapAnimAdd mapAnimClear mapAnimCommit mapAnimDone mapCenterOnCamera mapGridPosition markAsFinishedOnSteam markerAlpha markerBrush markerColor markerDir markerPos markerShape markerSize markerText markerType max members menuAction menuAdd menuChecked menuClear menuCollapse menuData menuDelete menuEnable menuEnabled menuExpand menuHover menuPicture menuSetAction menuSetCheck menuSetData menuSetPicture menuSetValue menuShortcut menuShortcutText menuSize menuSort menuText menuURL menuValue min mineActive mineDetectedBy missionConfigFile missionDifficulty missionName missionNamespace missionStart missionVersion mod modelToWorld modelToWorldVisual modelToWorldVisualWorld modelToWorldWorld modParams moonIntensity moonPhase morale move move3DENCamera moveInAny moveInCargo moveInCommander moveInDriver moveInGunner moveInTurret moveObjectToEnd moveOut moveTime moveTo moveToCompleted moveToFailed musicVolume name nameSound nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing nearestObject nearestObjects nearestTerrainObjects nearObjects nearObjectsReady nearRoads nearSupplies nearTargets needReload netId netObjNull newOverlay nextMenuItemIndex nextWeatherChange nMenuItems not numberOfEnginesRTD numberToDate objectCurators objectFromNetId objectParent objStatus onBriefingGroup onBriefingNotes onBriefingPlan onBriefingTeamSwitch onCommandModeChanged onDoubleClick onEachFrame onGroupIconClick onGroupIconOverEnter onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected onPlayerDisconnected onPreloadFinished onPreloadStarted onShowNewObject onTeamSwitch openCuratorInterface openDLCPage openMap openSteamApp openYoutubeVideo or orderGetIn overcast overcastForecast owner param params parseNumber parseSimpleArray parseText parsingNamespace particlesQuality pickWeaponPool pitch pixelGrid pixelGridBase pixelGridNoUIScale pixelH pixelW playableSlotsNumber playableUnits playAction playActionNow player playerRespawnTime playerSide playersNumber playGesture playMission playMove playMoveNow playMusic playScriptedMission playSound playSound3D position positionCameraToWorld posScreenToWorld posWorldToScreen ppEffectAdjust ppEffectCommit ppEffectCommitted ppEffectCreate ppEffectDestroy ppEffectEnable ppEffectEnabled ppEffectForceInNVG precision preloadCamera preloadObject preloadSound preloadTitleObj preloadTitleRsc preprocessFile preprocessFileLineNumbers primaryWeapon primaryWeaponItems primaryWeaponMagazine priority processDiaryLink productVersion profileName profileNamespace profileNameSteam progressLoadingScreen progressPosition progressSetPosition publicVariable publicVariableClient publicVariableServer pushBack pushBackUnique putWeaponPool queryItemsPool queryMagazinePool queryWeaponPool rad radioChannelAdd radioChannelCreate radioChannelRemove radioChannelSetCallSign radioChannelSetLabel radioVolume rain rainbow random rank rankId rating rectangular registeredTasks registerTask reload reloadEnabled remoteControl remoteExec remoteExecCall remoteExecutedOwner remove3DENConnection remove3DENEventHandler remove3DENLayer removeAction removeAll3DENEventHandlers removeAllActions removeAllAssignedItems removeAllContainers removeAllCuratorAddons removeAllCuratorCameraAreas removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems removeAllItemsWithMagazines removeAllMissionEventHandlers removeAllMPEventHandlers removeAllMusicEventHandlers removeAllOwnedMines removeAllPrimaryWeaponItems removeAllWeapons removeBackpack removeBackpackGlobal removeCuratorAddons removeCuratorCameraArea removeCuratorEditableObjects removeCuratorEditingArea removeDrawIcon removeDrawLinks removeEventHandler removeFromRemainsCollector removeGoggles removeGroupIcon removeHandgunItem removeHeadgear removeItem removeItemFromBackpack removeItemFromUniform removeItemFromVest removeItems removeMagazine removeMagazineGlobal removeMagazines removeMagazinesTurret removeMagazineTurret removeMenuItem removeMissionEventHandler removeMPEventHandler removeMusicEventHandler removeOwnedMine removePrimaryWeaponItem removeSecondaryWeaponItem removeSimpleTask removeSwitchableUnit removeTeamMember removeUniform removeVest removeWeapon removeWeaponAttachmentCargo removeWeaponCargo removeWeaponGlobal removeWeaponTurret reportRemoteTarget requiredVersion resetCamShake resetSubgroupDirection resize resources respawnVehicle restartEditorCamera reveal revealMine reverse reversedMouseY roadAt roadsConnectedTo roleDescription ropeAttachedObjects ropeAttachedTo ropeAttachEnabled ropeAttachTo ropeCreate ropeCut ropeDestroy ropeDetach ropeEndPosition ropeLength ropes ropeUnwind ropeUnwound rotorsForcesRTD rotorsRpmRTD round runInitScript safeZoneH safeZoneW safeZoneWAbs safeZoneX safeZoneXAbs safeZoneY save3DENInventory saveGame saveIdentity saveJoysticks saveOverlay saveProfileNamespace saveStatus saveVar savingEnabled say say2D say3D scopeName score scoreSide screenshot screenToWorld scriptDone scriptName scudState secondaryWeapon secondaryWeaponItems secondaryWeaponMagazine select selectBestPlaces selectDiarySubject selectedEditorObjects selectEditorObject selectionNames selectionPosition selectLeader selectMax selectMin selectNoPlayer selectPlayer selectRandom selectRandomWeighted selectWeapon selectWeaponTurret sendAUMessage sendSimpleCommand sendTask sendTaskResult sendUDPMessage serverCommand serverCommandAvailable serverCommandExecutable serverName serverTime set set3DENAttribute set3DENAttributes set3DENGrid set3DENIconsVisible set3DENLayer set3DENLinesVisible set3DENLogicType set3DENMissionAttribute set3DENMissionAttributes set3DENModelsVisible set3DENObjectType set3DENSelected setAccTime setActualCollectiveRTD setAirplaneThrottle setAirportSide setAmmo setAmmoCargo setAmmoOnPylon setAnimSpeedCoef setAperture setApertureNew setArmoryPoints setAttributes setAutonomous setBehaviour setBleedingRemaining setBrakesRTD setCameraInterest setCamShakeDefParams setCamShakeParams setCamUseTI setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation setConvoySeparation setCuratorCameraAreaCeiling setCuratorCoef setCuratorEditingAreaType setCuratorWaypointCost setCurrentChannel setCurrentTask setCurrentWaypoint setCustomAimCoef setCustomWeightRTD setDamage setDammage setDate setDebriefingText setDefaultCamera setDestination setDetailMapBlendPars setDir setDirection setDrawIcon setDriveOnPath setDropInterval setDynamicSimulationDistance setDynamicSimulationDistanceCoef setEditorMode setEditorObjectScope setEffectCondition setEngineRPMRTD setFace setFaceAnimation setFatigue setFeatureType setFlagAnimationPhase setFlagOwner setFlagSide setFlagTexture setFog setFormation setFormationTask setFormDir setFriend setFromEditor setFSMVariable setFuel setFuelCargo setGroupIcon setGroupIconParams setGroupIconsSelectable setGroupIconsVisible setGroupId setGroupIdGlobal setGroupOwner setGusts setHideBehind setHit setHitIndex setHitPointDamage setHorizonParallaxCoef setHUDMovementLevels setIdentity setImportance setInfoPanel setLeader setLightAmbient setLightAttenuation setLightBrightness setLightColor setLightDayLight setLightFlareMaxDistance setLightFlareSize setLightIntensity setLightnings setLightUseFlare setLocalWindParams setMagazineTurretAmmo setMarkerAlpha setMarkerAlphaLocal setMarkerBrush setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal setMarkerPos setMarkerPosLocal setMarkerShape setMarkerShapeLocal setMarkerSize setMarkerSizeLocal setMarkerText setMarkerTextLocal setMarkerType setMarkerTypeLocal setMass setMimic setMousePosition setMusicEffect setMusicEventHandler setName setNameSound setObjectArguments setObjectMaterial setObjectMaterialGlobal setObjectProxy setObjectTexture setObjectTextureGlobal setObjectViewDistance setOvercast setOwner setOxygenRemaining setParticleCircle setParticleClass setParticleFire setParticleParams setParticleRandom setPilotCameraDirection setPilotCameraRotation setPilotCameraTarget setPilotLight setPiPEffect setPitch setPlateNumber setPlayable setPlayerRespawnTime setPos setPosASL setPosASL2 setPosASLW setPosATL setPosition setPosWorld setPylonLoadOut setPylonsPriority setRadioMsg setRain setRainbow setRandomLip setRank setRectangular setRepairCargo setRotorBrakeRTD setShadowDistance setShotParents setSide setSimpleTaskAlwaysVisible setSimpleTaskCustomData setSimpleTaskDescription setSimpleTaskDestination setSimpleTaskTarget setSimpleTaskType setSimulWeatherLayers setSize setSkill setSlingLoad setSoundEffect setSpeaker setSpeech setSpeedMode setStamina setStaminaScheme setStatValue setSuppression setSystemOfUnits setTargetAge setTaskMarkerOffset setTaskResult setTaskState setTerrainGrid setText setTimeMultiplier setTitleEffect setTrafficDensity setTrafficDistance setTrafficGap setTrafficSpeed setTriggerActivation setTriggerArea setTriggerStatements setTriggerText setTriggerTimeout setTriggerType setType setUnconscious setUnitAbility setUnitLoadout setUnitPos setUnitPosWeak setUnitRank setUnitRecoilCoefficient setUnitTrait setUnloadInCombat setUserActionText setUserMFDText setUserMFDvalue setVariable setVectorDir setVectorDirAndUp setVectorUp setVehicleAmmo setVehicleAmmoDef setVehicleArmor setVehicleCargo setVehicleId setVehicleLock setVehiclePosition setVehicleRadar setVehicleReceiveRemoteTargets setVehicleReportOwnPosition setVehicleReportRemoteTargets setVehicleTIPars setVehicleVarName setVelocity setVelocityModelSpace setVelocityTransformation setViewDistance setVisibleIfTreeCollapsed setWantedRPMRTD setWaves setWaypointBehaviour setWaypointCombatMode setWaypointCompletionRadius setWaypointDescription setWaypointForceBehaviour setWaypointFormation setWaypointHousePosition setWaypointLoiterRadius setWaypointLoiterType setWaypointName setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout setWaypointType setWaypointVisible setWeaponReloadingTime setWind setWindDir setWindForce setWindStr setWingForceScaleRTD setWPPos show3DIcons showChat showCinemaBorder showCommandingMenu showCompass showCuratorCompass showGPS showHUD showLegend showMap shownArtilleryComputer shownChat shownCompass shownCuratorCompass showNewEditorObject shownGPS shownHUD shownMap shownPad shownRadio shownScoretable shownUAVFeed shownWarrant shownWatch showPad showRadio showScoretable showSubtitles showUAVFeed showWarrant showWatch showWaypoint showWaypoints side sideChat sideEnemy sideFriendly sideRadio simpleTasks simulationEnabled simulCloudDensity simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime sleep sliderPosition sliderRange sliderSetPosition sliderSetRange sliderSetSpeed sliderSpeed slingLoadAssistantShown soldierMagazines someAmmo sort soundVolume spawn speaker speed speedMode splitString sqrt squadParams stance startLoadingScreen step stop stopEngineRTD stopped str sunOrMoon supportInfo suppressFor surfaceIsWater surfaceNormal surfaceType swimInDepth switchableUnits switchAction switchCamera switchGesture switchLight switchMove synchronizedObjects synchronizedTriggers synchronizedWaypoints synchronizeObjectsAdd synchronizeObjectsRemove synchronizeTrigger synchronizeWaypoint systemChat systemOfUnits tan targetKnowledge targets targetsAggregate targetsQuery taskAlwaysVisible taskChildren taskCompleted taskCustomData taskDescription taskDestination taskHint taskMarkerOffset taskParent taskResult taskState taskType teamMember teamName teams teamSwitch teamSwitchEnabled teamType terminate terrainIntersect terrainIntersectASL terrainIntersectAtASL text textLog textLogFormat tg time timeMultiplier titleCut titleFadeOut titleObj titleRsc titleText toArray toFixed toLower toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle triggerAttachObject triggerAttachVehicle triggerDynamicSimulation triggerStatements triggerText triggerTimeout triggerTimeoutCurrent triggerType turretLocal turretOwner turretUnit tvAdd tvClear tvCollapse tvCollapseAll tvCount tvCurSel tvData tvDelete tvExpand tvExpandAll tvPicture tvSetColor tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetPictureColorDisabled tvSetPictureColorSelected tvSetPictureRight tvSetPictureRightColor tvSetPictureRightColorDisabled tvSetPictureRightColorSelected tvSetText tvSetTooltip tvSetValue tvSort tvSortByValue tvText tvTooltip tvValue type typeName typeOf UAVControl uiNamespace uiSleep unassignCurator unassignItem unassignTeam unassignVehicle underwater uniform uniformContainer uniformItems uniformMagazines unitAddons unitAimPosition unitAimPositionVisual unitBackpack unitIsUAV unitPos unitReady unitRecoilCoefficient units unitsBelowHeight unlinkItem unlockAchievement unregisterTask updateDrawIcon updateMenuItem updateObjectTree useAISteeringComponent useAudioTimeForMoves userInputDisabled vectorAdd vectorCos vectorCrossProduct vectorDiff vectorDir vectorDirVisual vectorDistance vectorDistanceSqr vectorDotProduct vectorFromTo vectorMagnitude vectorMagnitudeSqr vectorModelToWorld vectorModelToWorldVisual vectorMultiply vectorNormalized vectorUp vectorUpVisual vectorWorldToModel vectorWorldToModelVisual vehicle vehicleCargoEnabled vehicleChat vehicleRadio vehicleReceiveRemoteTargets vehicleReportOwnPosition vehicleReportRemoteTargets vehicles vehicleVarName velocity velocityModelSpace verifySignature vest vestContainer vestItems vestMagazines viewDistance visibleCompass visibleGPS visibleMap visiblePosition visiblePositionASL visibleScoretable visibleWatch waves waypointAttachedObject waypointAttachedVehicle waypointAttachObject waypointAttachVehicle waypointBehaviour waypointCombatMode waypointCompletionRadius waypointDescription waypointForceBehaviour waypointFormation waypointHousePosition waypointLoiterRadius waypointLoiterType waypointName waypointPosition waypoints waypointScript waypointsEnabledUAV waypointShow waypointSpeed waypointStatements waypointTimeout waypointTimeoutCurrent waypointType waypointVisible weaponAccessories weaponAccessoriesCargo weaponCargo weaponDirection weaponInertia weaponLowered weapons weaponsItems weaponsItemsCargo weaponState weaponsTurret weightRTD WFSideText wind ",literal:"blufor civilian configNull controlNull displayNull east endl false grpNull independent lineBreak locationNull nil objNull opfor pi resistance scriptNull sideAmbientLife sideEmpty sideLogic sideUnknown taskNull teamMemberNull true west"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,{className:"variable",begin:/\b_+[a-zA-Z]\w*/},{className:"title",begin:/[a-zA-Z][a-zA-Z0-9]+_fnc_\w*/},t,n],illegal:/#|^\$ /}}},function(e,t){e.exports=function(e){var t=e.COMMENT("--","$");return{name:"SQL",case_insensitive:!0,illegal:/[<>{}*]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",end:/;/,endsWithParent:!0,keywords:{$pattern:/[\w\.]+/,keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:"`",end:"`"},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,e.HASH_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE,t,e.HASH_COMMENT_MODE]}}},function(e,t){e.exports=function(e){return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:["functions","model","data","parameters","quantities","transformed","generated"].join(" "),keyword:["for","in","if","else","while","break","continue","return"].concat(["int","real","vector","ordered","positive_ordered","simplex","unit_vector","row_vector","matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"]).concat(["print","reject","increment_log_prob|10","integrate_ode|10","integrate_ode_rk45|10","integrate_ode_bdf|10","algebra_solver"]).join(" "),built_in:["Phi","Phi_approx","abs","acos","acosh","algebra_solver","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bernoulli_cdf","bernoulli_lccdf","bernoulli_lcdf","bernoulli_logit_lpmf","bernoulli_logit_rng","bernoulli_lpmf","bernoulli_rng","bessel_first_kind","bessel_second_kind","beta_binomial_cdf","beta_binomial_lccdf","beta_binomial_lcdf","beta_binomial_lpmf","beta_binomial_rng","beta_cdf","beta_lccdf","beta_lcdf","beta_lpdf","beta_rng","binary_log_loss","binomial_cdf","binomial_coefficient_log","binomial_lccdf","binomial_lcdf","binomial_logit_lpmf","binomial_lpmf","binomial_rng","block","categorical_logit_lpmf","categorical_logit_rng","categorical_lpmf","categorical_rng","cauchy_cdf","cauchy_lccdf","cauchy_lcdf","cauchy_lpdf","cauchy_rng","cbrt","ceil","chi_square_cdf","chi_square_lccdf","chi_square_lcdf","chi_square_lpdf","chi_square_rng","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","cos","cosh","cov_exp_quad","crossprod","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","determinant","diag_matrix","diag_post_multiply","diag_pre_multiply","diagonal","digamma","dims","dirichlet_lpdf","dirichlet_rng","distance","dot_product","dot_self","double_exponential_cdf","double_exponential_lccdf","double_exponential_lcdf","double_exponential_lpdf","double_exponential_rng","e","eigenvalues_sym","eigenvectors_sym","erf","erfc","exp","exp2","exp_mod_normal_cdf","exp_mod_normal_lccdf","exp_mod_normal_lcdf","exp_mod_normal_lpdf","exp_mod_normal_rng","expm1","exponential_cdf","exponential_lccdf","exponential_lcdf","exponential_lpdf","exponential_rng","fabs","falling_factorial","fdim","floor","fma","fmax","fmin","fmod","frechet_cdf","frechet_lccdf","frechet_lcdf","frechet_lpdf","frechet_rng","gamma_cdf","gamma_lccdf","gamma_lcdf","gamma_lpdf","gamma_p","gamma_q","gamma_rng","gaussian_dlm_obs_lpdf","get_lp","gumbel_cdf","gumbel_lccdf","gumbel_lcdf","gumbel_lpdf","gumbel_rng","head","hypergeometric_lpmf","hypergeometric_rng","hypot","inc_beta","int_step","integrate_ode","integrate_ode_bdf","integrate_ode_rk45","inv","inv_Phi","inv_chi_square_cdf","inv_chi_square_lccdf","inv_chi_square_lcdf","inv_chi_square_lpdf","inv_chi_square_rng","inv_cloglog","inv_gamma_cdf","inv_gamma_lccdf","inv_gamma_lcdf","inv_gamma_lpdf","inv_gamma_rng","inv_logit","inv_sqrt","inv_square","inv_wishart_lpdf","inv_wishart_rng","inverse","inverse_spd","is_inf","is_nan","lbeta","lchoose","lgamma","lkj_corr_cholesky_lpdf","lkj_corr_cholesky_rng","lkj_corr_lpdf","lkj_corr_rng","lmgamma","lmultiply","log","log10","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log2","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_mix","log_rising_factorial","log_softmax","log_sum_exp","logistic_cdf","logistic_lccdf","logistic_lcdf","logistic_lpdf","logistic_rng","logit","lognormal_cdf","lognormal_lccdf","lognormal_lcdf","lognormal_lpdf","lognormal_rng","machine_precision","matrix_exp","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multi_gp_cholesky_lpdf","multi_gp_lpdf","multi_normal_cholesky_lpdf","multi_normal_cholesky_rng","multi_normal_lpdf","multi_normal_prec_lpdf","multi_normal_rng","multi_student_t_lpdf","multi_student_t_rng","multinomial_lpmf","multinomial_rng","multiply_log","multiply_lower_tri_self_transpose","neg_binomial_2_cdf","neg_binomial_2_lccdf","neg_binomial_2_lcdf","neg_binomial_2_log_lpmf","neg_binomial_2_log_rng","neg_binomial_2_lpmf","neg_binomial_2_rng","neg_binomial_cdf","neg_binomial_lccdf","neg_binomial_lcdf","neg_binomial_lpmf","neg_binomial_rng","negative_infinity","normal_cdf","normal_lccdf","normal_lcdf","normal_lpdf","normal_rng","not_a_number","num_elements","ordered_logistic_lpmf","ordered_logistic_rng","owens_t","pareto_cdf","pareto_lccdf","pareto_lcdf","pareto_lpdf","pareto_rng","pareto_type_2_cdf","pareto_type_2_lccdf","pareto_type_2_lcdf","pareto_type_2_lpdf","pareto_type_2_rng","pi","poisson_cdf","poisson_lccdf","poisson_lcdf","poisson_log_lpmf","poisson_log_rng","poisson_lpmf","poisson_rng","positive_infinity","pow","print","prod","qr_Q","qr_R","quad_form","quad_form_diag","quad_form_sym","rank","rayleigh_cdf","rayleigh_lccdf","rayleigh_lcdf","rayleigh_lpdf","rayleigh_rng","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scaled_inv_chi_square_cdf","scaled_inv_chi_square_lccdf","scaled_inv_chi_square_lcdf","scaled_inv_chi_square_lpdf","scaled_inv_chi_square_rng","sd","segment","sin","singular_values","sinh","size","skew_normal_cdf","skew_normal_lccdf","skew_normal_lcdf","skew_normal_lpdf","skew_normal_rng","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","sqrt2","square","squared_distance","step","student_t_cdf","student_t_lccdf","student_t_lcdf","student_t_lpdf","student_t_rng","sub_col","sub_row","sum","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_cdf","uniform_lccdf","uniform_lcdf","uniform_lpdf","uniform_rng","variance","von_mises_lpdf","von_mises_rng","weibull_cdf","weibull_lccdf","weibull_lcdf","weibull_lpdf","weibull_rng","wiener_lpdf","wishart_lpdf","wishart_rng"].join(" ")},contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/#/,/$/,{relevance:0,keywords:{"meta-keyword":"include"}}),e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{className:"doctag",begin:/@(return|param)/}]}),{begin:/<\s*lower\s*=/,keywords:"lower"},{begin:/[<,]\s*upper\s*=/,keywords:"upper"},{className:"keyword",begin:/\btarget\s*\+=/,relevance:10},{begin:"~\\s*("+e.IDENT_RE+")\\s*\\(",keywords:["bernoulli","bernoulli_logit","beta","beta_binomial","binomial","binomial_logit","categorical","categorical_logit","cauchy","chi_square","dirichlet","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","lkj_corr","lkj_corr_cholesky","logistic","lognormal","multi_gp","multi_gp_cholesky","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_t","multinomial","neg_binomial","neg_binomial_2","neg_binomial_2_log","normal","ordered_logistic","pareto","pareto_type_2","poisson","poisson_log","rayleigh","scaled_inv_chi_square","skew_normal","student_t","uniform","von_mises","weibull","wiener","wishart"].join(" ")},{className:"number",variants:[{begin:/\b\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/},{begin:/\.\d+(?:[eE][+-]?\d+)?\b/}],relevance:0},{className:"string",begin:'"',end:'"',relevance:0}]}}},function(e,t){e.exports=function(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/},{className:"string",variants:[{begin:'`"[^\r\n]*?"\''},{begin:'"[^\r\n"]*"'}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ \t]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}},function(e,t){e.exports=function(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:"HEADER ENDSEC DATA"},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}},function(e,t){e.exports=function(e){var t={className:"variable",begin:"\\$"+e.IDENT_RE},n={className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"};return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,])",className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,])",className:"selector-id"},{begin:"\\b("+["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"].join("|")+")(?=[.\\s\\n[:,])",className:"selector-tag"},{begin:"&?:?:\\b("+["after","before","first-letter","first-line","active","first-child","focus","hover","lang","link","visited"].join("|")+")(?=[.\\s\\n[:,])"},{begin:"@("+["charset","css","debug","extend","font-face","for","import","include","media","mixin","page","warn","while"].join("|")+")\\b"},t,e.CSS_NUMBER_MODE,e.NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[n,t,e.APOS_STRING_MODE,e.CSS_NUMBER_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-variant-ligatures","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse().join("|")+")\\b",starts:{end:/;|$/,contains:[n,t,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE,e.NUMBER_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/\./,relevance:0}}]}}},function(e,t){e.exports=function(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:"\\[\n(multipart)?",end:"\\]\n"},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}},function(e,t){e.exports=function(e){var t={$pattern:/[\w#]+/,keyword:"#available #colorLiteral #column #else #elseif #endif #file #fileLiteral #function #if #imageLiteral #line #selector #sourceLocation _ __COLUMN__ __FILE__ __FUNCTION__ __LINE__ Any as as! as? associatedtype associativity break case catch class continue convenience default defer deinit didSet do dynamic dynamicType else enum extension fallthrough false fileprivate final for func get guard if import in indirect infix init inout internal is lazy left let mutating nil none nonmutating open operator optional override postfix precedence prefix private protocol Protocol public repeat required rethrows return right self Self set some static struct subscript super switch throw throws true try try! try? Type typealias unowned var weak where while willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue anyGenerator assert assertionFailure bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c compactMap contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal fatalError filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare map max maxElement min minElement numericCast overlaps partition posix precondition preconditionFailure print println quickSort readLine reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith stride strideof strideofValue swap toString transcode underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers withUnsafePointer withUnsafePointers withVaList zip"},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),o={className:"subst",begin:/\\\(/,end:"\\)",keywords:t,contains:[]},r={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/"""/,end:/"""/},{begin:/"/,end:/"/}]},i={className:"number",relevance:0,variants:[{begin:"\\b(([0-9]_*)+)(\\.(([0-9]_*)+))?([eE][+-]?(([0-9]_*)+))?\\b"},{begin:"\\b0x(([0-9a-fA-F]_*)+)(\\.(([0-9a-fA-F]_*)+))?([pP][+-]?(([0-9]_*)+))?\\b"},{begin:/\b0o([0-7]_*)+\b/},{begin:/\b0b([01]_*)+\b/}]};return o.contains=[i],{name:"Swift",keywords:t,contains:[r,e.C_LINE_COMMENT_MODE,n,{className:"type",begin:"\\b[A-Z][\\wÀ-ʸ']*[!?]"},{className:"type",begin:"\\b[A-Z][\\wÀ-ʸ']*",relevance:0},i,{className:"function",beginKeywords:"func",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{begin:/</,end:/>/},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,contains:["self",i,r,e.C_BLOCK_COMMENT_MODE,{begin:":"}],illegal:/["']/}],illegal:/\[|%/},{className:"class",beginKeywords:"struct protocol class extension enum",keywords:t,end:"\\{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/})]},{className:"meta",begin:"(@discardableResult|@warn_unused_result|@exported|@lazy|@noescape|@NSCopying|@NSManaged|@objc|@objcMembers|@convention|@required|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix|@autoclosure|@testable|@available|@nonobjc|@NSApplicationMain|@UIApplicationMain|@dynamicMemberLookup|@propertyWrapper|@main)\\b"},{beginKeywords:"import",end:/$/,contains:[e.C_LINE_COMMENT_MODE,n],relevance:0}]}}},function(e,t){e.exports=function(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\(/,end:/\)/,contains:["self",{begin:/\\./}]}],relevance:10},{className:"keyword",begin:/\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,end:/\(/,excludeEnd:!0},{className:"variable",begin:/%[_a-zA-Z0-9:]*/,end:"%"},{className:"symbol",begin:/\\./}]}}},function(e,t){e.exports=function(e){var t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},r=e.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),i={className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},a={end:",",endsWithParent:!0,excludeEnd:!0,contains:[],keywords:t,relevance:0},s={begin:/\{/,end:/\}/,contains:[a],illegal:"\\n",relevance:0},c={begin:"\\[",end:"\\]",contains:[a],illegal:"\\n",relevance:0},l=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},i,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},s,c,o],u=[...l];return u.pop(),u.push(r),a.contains=u,{name:"YAML",case_insensitive:!0,aliases:["yml","YAML"],contains:l}}},function(e,t){e.exports=function(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}},function(e,t){e.exports=function(e){return{name:"Tcl",aliases:["tk"],keywords:"after append apply array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock close concat continue dde dict encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent filename flush for foreach format gets glob global history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename return safe scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update uplevel upvar variable vwait while",contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{excludeEnd:!0,variants:[{begin:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*\\(([a-zA-Z0-9_])*\\)",end:"[^a-zA-Z0-9_\\}\\$]"},{begin:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"(\\))?[^a-zA-Z0-9_\\}\\$]"}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},{className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]}]}}},function(e,t){e.exports=function(e){return{name:"Thrift",keywords:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:"bool byte i16 i32 i64 double string binary",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",end:">",keywords:"bool byte i16 i32 i64 double string binary",contains:["self"]}]}}},function(e,t){e.exports=function(e){const t={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"};return{name:"TP",keywords:{keyword:"ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN SUBSTR FINDSTR VOFFSET PROG ATTR MN POS",literal:"ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET"},contains:[{className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,n]},{className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,n]},{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}},function(e,t){e.exports=function(e){var t="attribute block constant cycle date dump include max min parent random range source template_from_string",n={beginKeywords:t,keywords:{name:t},relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},o={begin:/\|[A-Za-z_]+:?/,keywords:"abs batch capitalize column convert_encoding date date_modify default escape filter first format inky_to_html inline_css join json_encode keys last length lower map markdown merge nl2br number_format raw reduce replace reverse round slice sort spaceless split striptags title trim upper url_encode",contains:[n]},r="apply autoescape block deprecated do embed extends filter flush for from if import include macro sandbox set use verbatim with";return r=r+" "+r.split(" ").map((function(e){return"end"+e})).join(" "),{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:r,starts:{endsWithParent:!0,contains:[o,n],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",o,n]}]}}},function(e,t){const n="[A-Za-z$_][0-9A-Za-z$_]*",o=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],i=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function a(e){return s("(?=",e,")")}function s(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={$pattern:n,keyword:o.concat(["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"]).join(" "),literal:r.join(" "),built_in:i.concat(["any","void","number","boolean","string","object","never","enum"]).join(" ")},c={className:"meta",begin:"@[A-Za-z$_][0-9A-Za-z$_]*"},l=(e,t,n)=>{const o=e.contains.findIndex(e=>e.label===t);if(-1===o)throw new Error("can not find mode to replace");e.contains.splice(o,1,n)},u=function(e){const t=n,c="<>",l="</>",u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,o=e.input[n];"<"!==o?">"===o&&(((e,{after:t})=>{const n="</"+e[0].slice(1);return-1!==e.input.indexOf(n,t)})(e,{after:n})||t.ignoreMatch()):t.ignoreMatch()}},d={$pattern:n,keyword:o.join(" "),literal:r.join(" "),built_in:i.join(" ")},h="\\.([0-9](_?[0-9])*)",p={className:"number",variants:[{begin:`(\\b(0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*)((${h})|\\.)?|(${h}))[eE][+-]?([0-9](_?[0-9])*)\\b`},{begin:`\\b(0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*)\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},m={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},g={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"xml"}},f={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"css"}},_={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,m]},b={className:"comment",variants:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:t+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,g,f,_,p,e.REGEXP_MODE];m.contains=v.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(v)});const E=[].concat(b,m.contains),y=E.concat([{begin:/\(/,end:/\)/,keywords:d,contains:["self"].concat(E)}]),S={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:y},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,g,f,_,b,p,{begin:s(/[{,\n]\s*/,a(s(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,t+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:t+a("\\s*:"),relevance:0}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[b,e.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:c,end:l},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:d,contains:["self",e.inherit(e.TITLE_MODE,{begin:t}),S],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[S,e.inherit(e.TITLE_MODE,{begin:t})]},{variants:[{begin:"\\."+t},{begin:"\\$"+t}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),"self",S]},{begin:"(get|set)\\s+(?="+t+"\\()",end:/\{/,keywords:"get set",contains:[e.inherit(e.TITLE_MODE,{begin:t}),{begin:/\(\)/},S]},{begin:/\$[(.]/}]}}(e);return Object.assign(u.keywords,t),u.exports.PARAMS_CONTAINS.push(c),u.contains=u.contains.concat([c,{beginKeywords:"namespace",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"}]),l(u,"shebang",e.SHEBANG()),l(u,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/}),u.contains.find(e=>"function"===e.className).relevance=0,Object.assign(u,{name:"TypeScript",aliases:["ts"]}),u}},function(e,t){e.exports=function(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$",relevance:2}]}}},function(e,t){e.exports=function(e){return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,keywords:{keyword:"addhandler addressof alias and andalso aggregate ansi as async assembly auto await binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into is isfalse isnot istrue iterator join key let lib like loop me mid mod module mustinherit mustoverride mybase myclass nameof namespace narrowing new next not notinheritable notoverridable of off on operator option optional or order orelse overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim rem removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly xor yield",built_in:"boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype date decimal directcast double gettype getxmlnamespace iif integer long object sbyte short single string trycast typeof uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT("'","$",{returnBegin:!0,contains:[{className:"doctag",begin:"'''|\x3c!--|--\x3e",contains:[e.PHRASAL_WORDS_MODE]},{className:"doctag",begin:"</?",end:">",contains:[e.PHRASAL_WORDS_MODE]}]}),e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end region externalsource"}}]}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(...e){return e.map(e=>n(e)).join("")}function r(...e){return"("+e.map(e=>n(e)).join("|")+")"}e.exports=function(e){const t="lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid split cint sin datepart ltrim sqr time derived eval date formatpercent exp inputbox left ascw chrw regexp cstr err".split(" "),n={begin:o(r(...t),"\\s*\\("),relevance:0,keywords:{built_in:t.join(" ")}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"].join(" "),literal:"true false null nothing empty"},illegal:"//",contains:[n,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}},function(e,t){e.exports=function(e){return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:{$pattern:/[\w\$]+/,keyword:"accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf|0 bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate|5 genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor",literal:"null",built_in:"$finish $stop $exit $fatal $error $warning $info $realtime $time $printtimescale $bitstoreal $bitstoshortreal $itor $signed $cast $bits $stime $timeformat $realtobits $shortrealtobits $rtoi $unsigned $asserton $assertkill $assertpasson $assertfailon $assertnonvacuouson $assertoff $assertcontrol $assertpassoff $assertfailoff $assertvacuousoff $isunbounded $sampled $fell $changed $past_gclk $fell_gclk $changed_gclk $rising_gclk $steady_gclk $coverage_control $coverage_get $coverage_save $set_coverage_db_name $rose $stable $past $rose_gclk $stable_gclk $future_gclk $falling_gclk $changing_gclk $display $coverage_get_max $coverage_merge $get_coverage $load_coverage_db $typename $unpacked_dimensions $left $low $increment $clog2 $ln $log10 $exp $sqrt $pow $floor $ceil $sin $cos $tan $countbits $onehot $isunknown $fatal $warning $dimensions $right $high $size $asin $acos $atan $atan2 $hypot $sinh $cosh $tanh $asinh $acosh $atanh $countones $onehot0 $error $info $random $dist_chi_square $dist_erlang $dist_exponential $dist_normal $dist_poisson $dist_t $dist_uniform $q_initialize $q_remove $q_exam $async$and$array $async$nand$array $async$or$array $async$nor$array $sync$and$array $sync$nand$array $sync$or$array $sync$nor$array $q_add $q_full $psprintf $async$and$plane $async$nand$plane $async$or$plane $async$nor$plane $sync$and$plane $sync$nand$plane $sync$or$plane $sync$nor$plane $system $display $displayb $displayh $displayo $strobe $strobeb $strobeh $strobeo $write $readmemb $readmemh $writememh $value$plusargs $dumpvars $dumpon $dumplimit $dumpports $dumpportson $dumpportslimit $writeb $writeh $writeo $monitor $monitorb $monitorh $monitoro $writememb $dumpfile $dumpoff $dumpall $dumpflush $dumpportsoff $dumpportsall $dumpportsflush $fclose $fdisplay $fdisplayb $fdisplayh $fdisplayo $fstrobe $fstrobeb $fstrobeh $fstrobeo $swrite $swriteb $swriteh $swriteo $fscanf $fread $fseek $fflush $feof $fopen $fwrite $fwriteb $fwriteh $fwriteo $fmonitor $fmonitorb $fmonitorh $fmonitoro $sformat $sformatf $fgetc $ungetc $fgets $sscanf $rewind $ftell $ferror"},contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"\\b((\\d+'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\B(('(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\b([0-9_])+",relevance:0}]},{className:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{className:"meta",begin:"`",end:"$",keywords:{"meta-keyword":"define __FILE__ __LINE__ begin_keywords celldefine default_nettype define else elsif end_keywords endcelldefine endif ifdef ifndef include line nounconnected_drive pragma resetall timescale unconnected_drive undef undefineall"},relevance:0}]}}},function(e,t){e.exports=function(e){return{name:"VHDL",case_insensitive:!0,keywords:{keyword:"abs access after alias all and architecture array assert assume assume_guarantee attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package parameter port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable view vmode vprop vunit wait when while with xnor xor",built_in:"boolean bit character integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_logic std_logic_vector unsigned signed boolean_vector integer_vector std_ulogic std_ulogic_vector unresolved_unsigned u_unsigned unresolved_signed u_signed real_vector time_vector",literal:"false true note warning error failure line text side width"},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:"\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)",relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}},function(e,t){e.exports=function(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]*/},{className:"function",beginKeywords:"function function!",end:"$",relevance:0,contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}},function(e,t){e.exports=function(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}},function(e,t){e.exports=function(e){const t={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:"if then else do while until for loop import with is as where when by data constant integer real text name boolean symbol infix prefix postfix block tree",literal:"true false nil",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts"},n={className:"string",begin:'"',end:'"',illegal:"\\n"},o={beginKeywords:"import",end:"$",keywords:t,contains:[n]},r={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:t}})]};return{name:"XL",aliases:["tao"],keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:"<<",end:">>"},r,o,{className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},e.NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{name:"XQuery",aliases:["xpath","xq"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z\$][a-zA-Z0-9_:\-]*/,keyword:"module schema namespace boundary-space preserve no-preserve strip default collation base-uri ordering context decimal-format decimal-separator copy-namespaces empty-sequence except exponent-separator external grouping-separator inherit no-inherit lax minus-sign per-mille percent schema-attribute schema-element strict unordered zero-digit declare import option function validate variable for at in let where order group by return if then else tumbling sliding window start when only end previous next stable ascending descending allowing empty greatest least some every satisfies switch case typeswitch try catch and or to union intersect instance of treat as castable cast map array delete insert into replace value rename copy modify update",type:"item document-node node attribute document element comment namespace namespace-node processing-instruction text construction xs:anyAtomicType xs:untypedAtomic xs:duration xs:time xs:decimal xs:float xs:double xs:gYearMonth xs:gYear xs:gMonthDay xs:gMonth xs:gDay xs:boolean xs:base64Binary xs:hexBinary xs:anyURI xs:QName xs:NOTATION xs:dateTime xs:dateTimeStamp xs:date xs:string xs:normalizedString xs:token xs:language xs:NMTOKEN xs:Name xs:NCName xs:ID xs:IDREF xs:ENTITY xs:integer xs:nonPositiveInteger xs:negativeInteger xs:long xs:int xs:short xs:byte xs:nonNegativeInteger xs:unisignedLong xs:unsignedInt xs:unsignedShort xs:unsignedByte xs:positiveInteger xs:yearMonthDuration xs:dayTimeDuration",literal:"eq ne lt le gt ge is self:: child:: descendant:: descendant-or-self:: attribute:: following:: following-sibling:: parent:: ancestor:: ancestor-or-self:: preceding:: preceding-sibling:: NaN"},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^<\/\$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{className:"comment",begin:"\\(:",end:":\\)",relevance:10,contains:[{className:"doctag",begin:"@\\w+"}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w\._:\-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w\._:\-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}},function(e,t){e.exports=function(e){const t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n=e.UNDERSCORE_TITLE_MODE,o={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},r="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:r,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),{className:"string",begin:"<<<['\"]?\\w+['\"]?$",end:"^\\w+;",contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[n,{className:"params",begin:"\\(",end:"\\)",keywords:r,contains:["self",e.C_BLOCK_COMMENT_MODE,t,o]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},n]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[n]},{beginKeywords:"use",end:";",contains:[n]},{begin:"=>"},t,o]}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=n(83),u=n(103);class d extends a.a.Component{constructor(e){super(e),this.state={errorText:null},this._captchaWidgetId=null,this._recaptchaContainer=Object(i.createRef)(),u.a.instance.track("onboarding_grecaptcha_begin")}componentDidMount(){if(e.grecaptcha)this._onCaptchaLoaded();else{console.log("Loading recaptcha script..."),window.mx_on_recaptcha_loaded=()=>{this._onCaptchaLoaded()};const e=document.createElement("script");e.setAttribute("src","https://www.recaptcha.net/recaptcha/api.js?onload=mx_on_recaptcha_loaded&render=explicit"),this._recaptchaContainer.current.appendChild(e)}}componentWillUnmount(){this._resetRecaptcha()}_renderRecaptcha(t){if(!e.grecaptcha)throw console.error("grecaptcha not loaded!"),new Error("Recaptcha did not load successfully");const n=this.props.sitePublicKey;if(!n)throw console.error("No public key for recaptcha!"),new Error("This server has not supplied enough information for Recaptcha authentication");console.info("Rendering to %s",t),this._captchaWidgetId=e.grecaptcha.render(t,{sitekey:n,callback:this.props.onCaptchaResponse})}_resetRecaptcha(){null!==this._captchaWidgetId&&e.grecaptcha.reset(this._captchaWidgetId)}_onCaptchaLoaded(){console.log("Loaded recaptcha script.");try{this._renderRecaptcha("mx_recaptcha"),this.setState({errorText:null}),u.a.instance.track("onboarding_grecaptcha_loaded")}catch(e){this.setState({errorText:e.toString()}),u.a.instance.track("onboarding_grecaptcha_error",{error:e.toString()})}}render(){let e=null;return this.state.errorText&&(e=a.a.createElement("div",{className:"error"},this.state.errorText)),a.a.createElement("div",{ref:this._recaptchaContainer},a.a.createElement("p",null,Object(l.a)("This homeserver would like to make sure you are not a robot.")),a.a.createElement("div",{id:"mx_recaptcha"}),e)}}r()(d,"propTypes",{sitePublicKey:c.a.string,onCaptchaResponse:c.a.func}),r()(d,"defaultProps",{onCaptchaResponse:()=>{}})}).call(this,n(5))},function(e,t){e.exports="img/icon_context_delete.f02c798.svg"},function(e,t,n){"use strict";e.exports.Node=n(515),e.exports.Parser=n(1578),e.exports.Renderer=n(516),e.exports.HtmlRenderer=n(1584),e.exports.XmlRenderer=n(1585)},function(e,t,n){"use strict";var o=n(515),r=n(259).unescapeString,i=n(259).OPENTAG,a=n(259).CLOSETAG,s=n(1580),c=[/./,/^<(?:script|pre|style)(?:\s|>|$)/i,/^<!--/,/^<[?]/,/^<![A-Z]/,/^<!\[CDATA\[/,/^<[/]?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[123456]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i,new RegExp("^(?:"+i+"|"+a+")\\s*$","i")],l=[/./,/<\/(?:script|pre|style)>/i,/-->/,/\?>/,/>/,/\]\]>/],u=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,d=/^[#`~*+_=<>0-9-]/,h=/[^ \t\f\v\r\n]/,p=/^[*+-]/,m=/^(\d{1,9})([.)])/,g=/^#{1,6}(?:[ \t]+|$)/,f=/^`{3,}(?!.*`)|^~{3,}/,_=/^(?:`{3,}|~{3,})(?= *$)/,b=/^(?:=+|-+)[ \t]*$/,v=/\r\n|\n|\r/,E=function(e){return 32===e||9===e},y=function(e,t){return t<e.length?e.charCodeAt(t):-1},S=function(e){for(;e;){if(e._lastLineBlank)return!0;var t=e.type;if(e._lastLineChecked||"list"!==t&&"item"!==t){e._lastLineChecked=!0;break}e._lastLineChecked=!0,e=e._lastChild}return!1},T=function(){if(this.partiallyConsumedTab){this.offset+=1;var e=4-this.column%4;this.tip._string_content+=" ".repeat(e)}this.tip._string_content+=this.currentLine.slice(this.offset)+"\n"},w=function(e,t){for(;!this.blocks[this.tip.type].canContain(e);)this.finalize(this.tip,this.lineNumber-1);var n=t+1,r=new o(e,[[this.lineNumber,n],[0,0]]);return r._string_content="",this.tip.appendChild(r),this.tip=r,r},C=function(){if(!this.allClosed){for(;this.oldtip!==this.lastMatchedContainer;){var e=this.oldtip._parent;this.finalize(this.oldtip,this.lineNumber-1),this.oldtip=e}this.allClosed=!0}},x={document:{continue:function(){return 0},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},list:{continue:function(){return 0},finalize:function(e,t){for(var n=t._firstChild;n;){if(S(n)&&n._next){t._listData.tight=!1;break}for(var o=n._firstChild;o;){if(S(o)&&(n._next||o._next)){t._listData.tight=!1;break}o=o._next}n=n._next}},canContain:function(e){return"item"===e},acceptsLines:!1},block_quote:{continue:function(e){var t=e.currentLine;return e.indented||62!==y(t,e.nextNonspace)?1:(e.advanceNextNonspace(),e.advanceOffset(1,!1),E(y(t,e.offset))&&e.advanceOffset(1,!0),0)},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},item:{continue:function(e,t){if(e.blank){if(null==t._firstChild)return 1;e.advanceNextNonspace()}else{if(!(e.indent>=t._listData.markerOffset+t._listData.padding))return 1;e.advanceOffset(t._listData.markerOffset+t._listData.padding,!0)}return 0},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},heading:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},thematic_break:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},code_block:{continue:function(e,t){var n=e.currentLine,o=e.indent;if(t._isFenced){var r=o<=3&&n.charAt(e.nextNonspace)===t._fenceChar&&n.slice(e.nextNonspace).match(_);if(r&&r[0].length>=t._fenceLength)return e.lastLineLength=r[0].length,e.finalize(t,e.lineNumber),2;for(var i=t._fenceOffset;i>0&&E(y(n,e.offset));)e.advanceOffset(1,!0),i--}else if(o>=4)e.advanceOffset(4,!0);else{if(!e.blank)return 1;e.advanceNextNonspace()}return 0},finalize:function(e,t){if(t._isFenced){var n=t._string_content,o=n.indexOf("\n"),i=n.slice(0,o),a=n.slice(o+1);t.info=r(i.trim()),t._literal=a}else t._literal=t._string_content.replace(/(\n *)+$/,"\n");t._string_content=null},canContain:function(){return!1},acceptsLines:!0},html_block:{continue:function(e,t){return!e.blank||6!==t._htmlBlockType&&7!==t._htmlBlockType?0:1},finalize:function(e,t){t._literal=t._string_content.replace(/(\n *)+$/,""),t._string_content=null},canContain:function(){return!1},acceptsLines:!0},paragraph:{continue:function(e){return e.blank?1:0},finalize:function(e,t){for(var n,o,r=!1;91===y(t._string_content,0)&&(n=e.inlineParser.parseReference(t._string_content,e.refmap));)t._string_content=t._string_content.slice(n),r=!0;r&&(o=t._string_content,!h.test(o))&&t.unlink()},canContain:function(){return!1},acceptsLines:!0}},O=[function(e){return e.indented||62!==y(e.currentLine,e.nextNonspace)?0:(e.advanceNextNonspace(),e.advanceOffset(1,!1),E(y(e.currentLine,e.offset))&&e.advanceOffset(1,!0),e.closeUnmatchedBlocks(),e.addChild("block_quote",e.nextNonspace),1)},function(e){var t;if(!e.indented&&(t=e.currentLine.slice(e.nextNonspace).match(g))){e.advanceNextNonspace(),e.advanceOffset(t[0].length,!1),e.closeUnmatchedBlocks();var n=e.addChild("heading",e.nextNonspace);return n.level=t[0].trim().length,n._string_content=e.currentLine.slice(e.offset).replace(/^[ \t]*#+[ \t]*$/,"").replace(/[ \t]+#+[ \t]*$/,""),e.advanceOffset(e.currentLine.length-e.offset),2}return 0},function(e){var t;if(!e.indented&&(t=e.currentLine.slice(e.nextNonspace).match(f))){var n=t[0].length;e.closeUnmatchedBlocks();var o=e.addChild("code_block",e.nextNonspace);return o._isFenced=!0,o._fenceLength=n,o._fenceChar=t[0][0],o._fenceOffset=e.indent,e.advanceNextNonspace(),e.advanceOffset(n,!1),2}return 0},function(e,t){if(!e.indented&&60===y(e.currentLine,e.nextNonspace)){var n,o=e.currentLine.slice(e.nextNonspace);for(n=1;n<=7;n++){if(c[n].test(o)&&(n<7||"paragraph"!==t.type))return e.closeUnmatchedBlocks(),e.addChild("html_block",e.offset)._htmlBlockType=n,2}}return 0},function(e,t){var n;if(!e.indented&&"paragraph"===t.type&&(n=e.currentLine.slice(e.nextNonspace).match(b))){var r;for(e.closeUnmatchedBlocks();91===y(t._string_content,0)&&(r=e.inlineParser.parseReference(t._string_content,e.refmap));)t._string_content=t._string_content.slice(r);if(t._string_content.length>0){var i=new o("heading",t.sourcepos);return i.level="="===n[0][0]?1:2,i._string_content=t._string_content,t.insertAfter(i),t.unlink(),e.tip=i,e.advanceOffset(e.currentLine.length-e.offset,!1),2}return 0}return 0},function(e){return!e.indented&&u.test(e.currentLine.slice(e.nextNonspace))?(e.closeUnmatchedBlocks(),e.addChild("thematic_break",e.nextNonspace),e.advanceOffset(e.currentLine.length-e.offset,!1),2):0},function(e,t){var n,o,r;return e.indented&&"list"!==t.type||!(n=function(e,t){var n,o,r,i,a=e.currentLine.slice(e.nextNonspace),s={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:e.indent};if(e.indent>=4)return null;if(n=a.match(p))s.type="bullet",s.bulletChar=n[0][0];else{if(!(n=a.match(m))||"paragraph"===t.type&&"1"!==n[1])return null;s.type="ordered",s.start=parseInt(n[1]),s.delimiter=n[2]}if(-1!==(o=y(e.currentLine,e.nextNonspace+n[0].length))&&9!==o&&32!==o)return null;if("paragraph"===t.type&&!e.currentLine.slice(e.nextNonspace+n[0].length).match(h))return null;e.advanceNextNonspace(),e.advanceOffset(n[0].length,!0),r=e.column,i=e.offset;do{e.advanceOffset(1,!0),o=y(e.currentLine,e.offset)}while(e.column-r<5&&E(o));var c=-1===y(e.currentLine,e.offset),l=e.column-r;return l>=5||l<1||c?(s.padding=n[0].length+1,e.column=r,e.offset=i,E(y(e.currentLine,e.offset))&&e.advanceOffset(1,!0)):s.padding=n[0].length+l,s}(e,t))?0:(e.closeUnmatchedBlocks(),"list"===e.tip.type&&(o=t._listData,r=n,o.type===r.type&&o.delimiter===r.delimiter&&o.bulletChar===r.bulletChar)||((t=e.addChild("list",e.nextNonspace))._listData=n),(t=e.addChild("item",e.nextNonspace))._listData=n,1)},function(e){return e.indented&&"paragraph"!==e.tip.type&&!e.blank?(e.advanceOffset(4,!0),e.closeUnmatchedBlocks(),e.addChild("code_block",e.offset),2):0}],k=function(e,t){for(var n,o,r,i=this.currentLine;e>0&&(r=i[this.offset]);)"\t"===r?(n=4-this.column%4,t?(this.partiallyConsumedTab=n>e,o=n>e?e:n,this.column+=o,this.offset+=this.partiallyConsumedTab?0:1,e-=o):(this.partiallyConsumedTab=!1,this.column+=n,this.offset+=1,e-=1)):(this.partiallyConsumedTab=!1,this.offset+=1,this.column+=1,e-=1)},R=function(){this.offset=this.nextNonspace,this.column=this.nextNonspaceColumn,this.partiallyConsumedTab=!1},A=function(){for(var e,t=this.currentLine,n=this.offset,o=this.column;""!==(e=t.charAt(n));)if(" "===e)n++,o++;else{if("\t"!==e)break;n++,o+=4-o%4}this.blank="\n"===e||"\r"===e||""===e,this.nextNonspace=n,this.nextNonspaceColumn=o,this.indent=this.nextNonspaceColumn-this.column,this.indented=this.indent>=4},I=function(e){var t,n,o=!0,r=this.doc;for(this.oldtip=this.tip,this.offset=0,this.column=0,this.blank=!1,this.partiallyConsumedTab=!1,this.lineNumber+=1,-1!==e.indexOf("\0")&&(e=e.replace(/\0/g,"<22>")),this.currentLine=e;(n=r._lastChild)&&n._open;){switch(r=n,this.findNextNonspace(),this.blocks[r.type].continue(this,r)){case 0:break;case 1:o=!1;break;case 2:return;default:throw"continue returned illegal value, must be 0, 1, or 2"}if(!o){r=r._parent;break}}this.allClosed=r===this.oldtip,this.lastMatchedContainer=r;for(var i="paragraph"!==r.type&&x[r.type].acceptsLines,a=this.blockStarts,s=a.length;!i;){if(this.findNextNonspace(),!this.indented&&!d.test(e.slice(this.nextNonspace))){this.advanceNextNonspace();break}for(var c=0;c<s;){var u=a[c](this,r);if(1===u){r=this.tip;break}if(2===u){r=this.tip,i=!0;break}c++}if(c===s){this.advanceNextNonspace();break}}if(this.allClosed||this.blank||"paragraph"!==this.tip.type){this.closeUnmatchedBlocks(),this.blank&&r.lastChild&&(r.lastChild._lastLineBlank=!0),t=r.type;for(var h=this.blank&&!("block_quote"===t||"code_block"===t&&r._isFenced||"item"===t&&!r._firstChild&&r.sourcepos[0][0]===this.lineNumber),p=r;p;)p._lastLineBlank=h,p=p._parent;this.blocks[t].acceptsLines?(this.addLine(),"html_block"===t&&r._htmlBlockType>=1&&r._htmlBlockType<=5&&l[r._htmlBlockType].test(this.currentLine.slice(this.offset))&&(this.lastLineLength=e.length,this.finalize(r,this.lineNumber))):this.offset<e.length&&!this.blank&&(r=this.addChild("paragraph",this.offset),this.advanceNextNonspace(),this.addLine())}else this.addLine();this.lastLineLength=e.length},D=function(e,t){var n=e._parent;e._open=!1,e.sourcepos[1]=[t,this.lastLineLength],this.blocks[e.type].finalize(this,e),this.tip=n},N=function(e){var t,n,o,r=e.walker();for(this.inlineParser.refmap=this.refmap,this.inlineParser.options=this.options;n=r.next();)o=(t=n.node).type,n.entering||"paragraph"!==o&&"heading"!==o||this.inlineParser.parse(t)},F=function(){return new o("document",[[1,1],[0,0]])},M=function(e){this.doc=new F,this.tip=this.doc,this.refmap={},this.lineNumber=0,this.lastLineLength=0,this.offset=0,this.column=0,this.lastMatchedContainer=this.doc,this.currentLine="",this.options.time&&console.time("preparing input");var t=e.split(v),n=t.length;10===e.charCodeAt(e.length-1)&&(n-=1),this.options.time&&console.timeEnd("preparing input"),this.options.time&&console.time("block parsing");for(var o=0;o<n;o++)this.incorporateLine(t[o]);for(;this.tip;)this.finalize(this.tip,n);return this.options.time&&console.timeEnd("block parsing"),this.options.time&&console.time("inline parsing"),this.processInlines(this.doc),this.options.time&&console.timeEnd("inline parsing"),this.doc};e.exports=function(e){return{doc:new F,blocks:x,blockStarts:O,tip:this.doc,oldtip:this.doc,currentLine:"",lineNumber:0,offset:0,column:0,nextNonspace:0,nextNonspaceColumn:0,indent:0,indented:!1,blank:!1,partiallyConsumedTab:!1,allClosed:!0,lastMatchedContainer:this.doc,refmap:{},lastLineLength:0,inlineParser:new s(e),findNextNonspace:A,advanceOffset:k,advanceNextNonspace:R,addLine:T,addChild:w,incorporateLine:I,finalize:D,processInlines:N,closeUnmatchedBlocks:C,parse:M,options:e||{}}}},function(e,t,n){"use strict";var o={};function r(e,t,n){var i,a,s,c,l,u="";for("string"!=typeof t&&(n=t,t=r.defaultChars),void 0===n&&(n=!0),l=function(e){var t,n,r=o[e];if(r)return r;for(r=o[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}(t),i=0,a=e.length;i<a;i++)if(s=e.charCodeAt(i),n&&37===s&&i+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3)))u+=e.slice(i,i+3),i+=2;else if(s<128)u+=l[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<a&&(c=e.charCodeAt(i+1))>=56320&&c<=57343){u+=encodeURIComponent(e[i]+e[i+1]),i++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[i]);return u}r.defaultChars=";/?:@&=+$,-_.!~*'()#",r.componentChars="-_.!~*'()",e.exports=r},function(e,t,n){"use strict";var o=n(515),r=n(259),i=n(1581),a=r.normalizeURI,s=r.unescapeString,c=n(1582),l=n(451).decodeHTML;n(1583);var u=r.ESCAPABLE,d="\\\\"+u,h=r.ENTITY,p=r.reHtmlTag,m=new RegExp(/[!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/),g=new RegExp('^(?:"('+d+'|[^"\\x00])*"|\'('+d+"|[^'\\x00])*'|\\(("+d+"|[^()\\x00])*\\))"),f=/^(?:<(?:[^<>\n\\\x00]|\\.)*>)/,_=new RegExp("^"+u),b=new RegExp("^"+h,"i"),v=/`+/,E=/^`+/,y=/\.\.\./g,S=/--+/g,T=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,w=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,C=/^ *(?:\n *)?/,x=/^[ \t\n\x0b\x0c\x0d]/,O=/^\s/,k=/ *$/,R=/^ */,A=/^ *(?:\n|$)/,I=/^\[(?:[^\\\[\]]|\\.){0,1000}\]/,D=/^[^\n`\[\]\\!<&*_'"]+/m,N=function(e){var t=new o("text");return t._literal=e,t},F=function(e){var t=e.exec(this.subject.slice(this.pos));return null===t?null:(this.pos+=t.index+t[0].length,t[0])},M=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1},P=function(){return this.match(C),!0},L=function(e){var t=this.match(E);if(null===t)return!1;for(var n,r,i,a=this.pos;null!==(n=this.match(v));)if(n===t)return r=new o("code"),(i=this.subject.slice(a,this.pos-t.length).replace(/\n/gm," ")).length>0&&null!==i.match(/[^ ]/)&&" "==i[0]&&" "==i[i.length-1]?r._literal=i.slice(1,i.length-1):r._literal=i,e.appendChild(r),!0;return this.pos=a,e.appendChild(N(t)),!0},U=function(e){var t,n=this.subject;return this.pos+=1,10===this.peek()?(this.pos+=1,t=new o("linebreak"),e.appendChild(t)):_.test(n.charAt(this.pos))?(e.appendChild(N(n.charAt(this.pos))),this.pos+=1):e.appendChild(N("\\")),!0},B=function(e){var t,n,r;return(t=this.match(T))?(n=t.slice(1,t.length-1),(r=new o("link"))._destination=a("mailto:"+n),r._title="",r.appendChild(N(n)),e.appendChild(r),!0):!!(t=this.match(w))&&(n=t.slice(1,t.length-1),(r=new o("link"))._destination=a(n),r._title="",r.appendChild(N(n)),e.appendChild(r),!0)},j=function(e){var t=this.match(p);if(null===t)return!1;var n=new o("html_inline");return n._literal=t,e.appendChild(n),!0},G=function(e){var t,n,o,r,i,a,s,l,u,d,h,p=0,g=this.pos;if(39===e||34===e)p++,this.pos++;else for(;this.peek()===e;)p++,this.pos++;return 0===p?null:(t=0===g?"\n":this.subject.charAt(g-1),n=-1===(o=this.peek())?"\n":c(o),l=O.test(n),u=m.test(n),d=O.test(t),h=m.test(t),r=!l&&(!u||d||h),i=!d&&(!h||l||u),95===e?(a=r&&(!i||h),s=i&&(!r||u)):39===e||34===e?(a=r&&!i,s=i):(a=r,s=i),this.pos=g,{numdelims:p,can_open:a,can_close:s})},q=function(e,t){var n=this.scanDelims(e);if(!n)return!1;var o,r=n.numdelims,i=this.pos;this.pos+=r,o=39===e?"":34===e?"“":this.subject.slice(i,this.pos);var a=N(o);return t.appendChild(a),!n.can_open&&!n.can_close||!this.options.smart&&39===e&&34===e||(this.delimiters={cc:e,numdelims:r,origdelims:r,node:a,previous:this.delimiters,next:null,can_open:n.can_open,can_close:n.can_close},null!==this.delimiters.previous&&(this.delimiters.previous.next=this.delimiters)),!0},H=function(e){null!==e.previous&&(e.previous.next=e.next),null===e.next?this.delimiters=e.previous:e.next.previous=e.previous},V=function(e){for(var t,n,r,i,a,s,c,l,u,d,h,p,m=[[],[],[]],g=!1,f=0;f<3;f++)m[f][95]=e,m[f][42]=e,m[f][39]=e,m[f][34]=e;for(n=this.delimiters;null!==n&&n.previous!==e;)n=n.previous;for(;null!==n;){var _=n.cc;if(n.can_close){for(t=n.previous,d=!1;null!==t&&t!==e&&t!==m[n.origdelims%3][_];){if(g=(n.can_open||t.can_close)&&n.origdelims%3!=0&&(t.origdelims+n.origdelims)%3==0,t.cc===n.cc&&t.can_open&&!g){d=!0;break}t=t.previous}if(r=n,42===_||95===_)if(d){c=n.numdelims>=2&&t.numdelims>=2?2:1,i=t.node,a=n.node,t.numdelims-=c,n.numdelims-=c,i._literal=i._literal.slice(0,i._literal.length-c),a._literal=a._literal.slice(0,a._literal.length-c);var b=new o(1===c?"emph":"strong");for(l=i._next;l&&l!==a;)u=l._next,l.unlink(),b.appendChild(l),l=u;i.insertAfter(b),p=n,(h=t).next!==p&&(h.next=p,p.previous=h),0===t.numdelims&&(i.unlink(),this.removeDelimiter(t)),0===n.numdelims&&(a.unlink(),s=n.next,this.removeDelimiter(n),n=s)}else n=n.next;else 39===_?(n.node._literal="",d&&(t.node._literal=""),n=n.next):34===_&&(n.node._literal="”",d&&(t.node.literal="“"),n=n.next);d||(m[r.origdelims%3][_]=r.previous,r.can_open||this.removeDelimiter(r))}else n=n.next}for(;null!==this.delimiters&&this.delimiters!==e;)this.removeDelimiter(this.delimiters)},z=function(){var e=this.match(g);return null===e?null:s(e.substr(1,e.length-2))},K=function(){var e=this.match(f);if(null===e){if(60===this.peek())return null;for(var t,n=this.pos,o=0;-1!==(t=this.peek());)if(92===t&&_.test(this.subject.charAt(this.pos+1)))this.pos+=1,-1!==this.peek()&&(this.pos+=1);else if(40===t)this.pos+=1,o+=1;else if(41===t){if(o<1)break;this.pos+=1,o-=1}else{if(null!==x.exec(c(t)))break;this.pos+=1}return this.pos===n&&41!==t||0!==o?null:(e=this.subject.substr(n,this.pos-n),a(s(e)))}return a(s(e.substr(1,e.length-2)))},W=function(){var e=this.match(I);return null===e||e.length>1001?0:e.length},Y=function(e){var t=this.pos;this.pos+=1;var n=N("[");return e.appendChild(n),this.addBracket(n,t,!1),!0},$=function(e){var t=this.pos;if(this.pos+=1,91===this.peek()){this.pos+=1;var n=N("![");e.appendChild(n),this.addBracket(n,t+1,!0)}else e.appendChild(N("!"));return!0},Q=function(e){var t,n,r,a,s,c,l=!1;if(this.pos+=1,t=this.pos,null===(c=this.brackets))return e.appendChild(N("]")),!0;if(!c.active)return e.appendChild(N("]")),this.removeBracket(),!0;n=c.image;var u=this.pos;if(40===this.peek()&&(this.pos++,this.spnl()&&null!==(r=this.parseLinkDestination())&&this.spnl()&&(x.test(this.subject.charAt(this.pos-1))&&(a=this.parseLinkTitle()),1)&&this.spnl()&&41===this.peek()?(this.pos+=1,l=!0):this.pos=u),!l){var d=this.pos,h=this.parseLinkLabel();if(h>2?s=this.subject.slice(d,d+h):c.bracketAfter||(s=this.subject.slice(c.index,t)),0===h&&(this.pos=u),s){var p=this.refmap[i(s)];p&&(r=p.destination,a=p.title,l=!0)}}if(l){var m,g,f=new o(n?"image":"link");for(f._destination=r,f._title=a||"",m=c.node._next;m;)g=m._next,m.unlink(),f.appendChild(m),m=g;if(e.appendChild(f),this.processEmphasis(c.previousDelimiter),this.removeBracket(),c.node.unlink(),!n)for(c=this.brackets;null!==c;)c.image||(c.active=!1),c=c.previous;return!0}return this.removeBracket(),this.pos=t,e.appendChild(N("]")),!0},X=function(e,t,n){null!==this.brackets&&(this.brackets.bracketAfter=!0),this.brackets={node:e,previous:this.brackets,previousDelimiter:this.delimiters,index:t,image:n,active:!0}},J=function(){this.brackets=this.brackets.previous},Z=function(e){var t;return!!(t=this.match(b))&&(e.appendChild(N(l(t))),!0)},ee=function(e){var t;return!!(t=this.match(D))&&(this.options.smart?e.appendChild(N(t.replace(y,"…").replace(S,(function(e){var t=0,n=0;return e.length%3==0?n=e.length/3:e.length%2==0?t=e.length/2:e.length%3==2?(t=1,n=(e.length-2)/3):(t=2,n=(e.length-4)/3),"—".repeat(n)+"".repeat(t)})))):e.appendChild(N(t)),!0)},te=function(e){this.pos+=1;var t=e._lastChild;if(t&&"text"===t.type&&" "===t._literal[t._literal.length-1]){var n=" "===t._literal[t._literal.length-2];t._literal=t._literal.replace(k,""),e.appendChild(new o(n?"linebreak":"softbreak"))}else e.appendChild(new o("softbreak"));return this.match(R),!0},ne=function(e,t){var n,o,r,a;this.subject=e,this.pos=0;var s=this.pos;if(0===(a=this.parseLinkLabel()))return 0;if(n=this.subject.substr(0,a),58!==this.peek())return this.pos=s,0;if(this.pos++,this.spnl(),null===(o=this.parseLinkDestination()))return this.pos=s,0;var c=this.pos;this.spnl(),this.pos!==c&&(r=this.parseLinkTitle()),null===r&&(r="",this.pos=c);var l=!0;if(null===this.match(A)&&(""===r?l=!1:(r="",this.pos=c,l=null!==this.match(A))),!l)return this.pos=s,0;var u=i(n);return""===u?(this.pos=s,0):(t[u]||(t[u]={destination:o,title:r}),this.pos-s)},oe=function(e){var t=!1,n=this.peek();if(-1===n)return!1;switch(n){case 10:t=this.parseNewline(e);break;case 92:t=this.parseBackslash(e);break;case 96:t=this.parseBackticks(e);break;case 42:case 95:t=this.handleDelim(n,e);break;case 39:case 34:t=this.options.smart&&this.handleDelim(n,e);break;case 91:t=this.parseOpenBracket(e);break;case 33:t=this.parseBang(e);break;case 93:t=this.parseCloseBracket(e);break;case 60:t=this.parseAutolink(e)||this.parseHtmlTag(e);break;case 38:t=this.parseEntity(e);break;default:t=this.parseString(e)}return t||(this.pos+=1,e.appendChild(N(c(n)))),!0},re=function(e){for(this.subject=e._string_content.trim(),this.pos=0,this.delimiters=null,this.brackets=null;this.parseInline(e););e._string_content=null,this.processEmphasis(null)};e.exports=function(e){return{subject:"",delimiters:null,brackets:null,pos:0,refmap:{},match:F,peek:M,spnl:P,parseBackticks:L,parseBackslash:U,parseAutolink:B,parseHtmlTag:j,scanDelims:G,handleDelim:q,parseLinkTitle:z,parseLinkDestination:K,parseLinkLabel:W,parseOpenBracket:Y,parseBang:$,parseCloseBracket:Q,addBracket:X,removeBracket:J,parseEntity:Z,parseString:ee,parseNewline:te,parseReference:ne,parseInline:oe,processEmphasis:V,removeDelimiter:H,options:e||{},parse:re}}},function(e,t,n){"use strict";var o=/[ \t\r\n]+|[A-Z\xB5\xC0-\xD6\xD8-\xDF\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u0149\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u017F\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C5\u01C7\u01C8\u01CA\u01CB\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F0-\u01F2\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0345\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03AB\u03B0\u03C2\u03CF-\u03D1\u03D5\u03D6\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F0\u03F1\u03F4\u03F5\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u0587\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E96-\u1E9B\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F50\u1F52\u1F54\u1F56\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1F80-\u1FAF\u1FB2-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD2\u1FD3\u1FD6-\u1FDB\u1FE2-\u1FE4\u1FE6-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u2132\u2160-\u216F\u2183\u24B6-\u24CF\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0\uA7B1\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27]|\uD806[\uDCA0-\uDCBF]/g,r={A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","µ":"μ","À":"à","Á":"á","Â":"â","Ã":"ã","Ä":"ä","Å":"å","Æ":"æ","Ç":"ç","È":"è","É":"é","Ê":"ê","Ë":"ë","Ì":"ì","Í":"í","Î":"î","Ï":"ï","Ð":"ð","Ñ":"ñ","Ò":"ò","Ó":"ó","Ô":"ô","Õ":"õ","Ö":"ö","Ø":"ø","Ù":"ù","Ú":"ú","Û":"û","Ü":"ü","Ý":"ý","Þ":"þ","Ā":"ā","Ă":"ă","Ą":"ą","Ć":"ć","Ĉ":"ĉ","Ċ":"ċ","Č":"č","Ď":"ď","Đ":"đ","Ē":"ē","Ĕ":"ĕ","Ė":"ė","Ę":"ę","Ě":"ě","Ĝ":"ĝ","Ğ":"ğ","Ġ":"ġ","Ģ":"ģ","Ĥ":"ĥ","Ħ":"ħ","Ĩ":"ĩ","Ī":"ī","Ĭ":"ĭ","Į":"į","IJ":"ij","Ĵ":"ĵ","Ķ":"ķ","Ĺ":"ĺ","Ļ":"ļ","Ľ":"ľ","Ŀ":"ŀ","Ł":"ł","Ń":"ń","Ņ":"ņ","Ň":"ň","Ŋ":"ŋ","Ō":"ō","Ŏ":"ŏ","Ő":"ő","Œ":"œ","Ŕ":"ŕ","Ŗ":"ŗ","Ř":"ř","Ś":"ś","Ŝ":"ŝ","Ş":"ş","Š":"š","Ţ":"ţ","Ť":"ť","Ŧ":"ŧ","Ũ":"ũ","Ū":"ū","Ŭ":"ŭ","Ů":"ů","Ű":"ű","Ų":"ų","Ŵ":"ŵ","Ŷ":"ŷ","Ÿ":"ÿ","Ź":"ź","Ż":"ż","Ž":"ž","ſ":"s","Ɓ":"ɓ","Ƃ":"ƃ","Ƅ":"ƅ","Ɔ":"ɔ","Ƈ":"ƈ","Ɖ":"ɖ","Ɗ":"ɗ","Ƌ":"ƌ","Ǝ":"ǝ","Ə":"ə","Ɛ":"ɛ","Ƒ":"ƒ","Ɠ":"ɠ","Ɣ":"ɣ","Ɩ":"ɩ","Ɨ":"ɨ","Ƙ":"ƙ","Ɯ":"ɯ","Ɲ":"ɲ","Ɵ":"ɵ","Ơ":"ơ","Ƣ":"ƣ","Ƥ":"ƥ","Ʀ":"ʀ","Ƨ":"ƨ","Ʃ":"ʃ","Ƭ":"ƭ","Ʈ":"ʈ","Ư":"ư","Ʊ":"ʊ","Ʋ":"ʋ","Ƴ":"ƴ","Ƶ":"ƶ","Ʒ":"ʒ","Ƹ":"ƹ","Ƽ":"ƽ","DŽ":"dž","Dž":"dž","LJ":"lj","Lj":"lj","NJ":"nj","Nj":"nj","Ǎ":"ǎ","Ǐ":"ǐ","Ǒ":"ǒ","Ǔ":"ǔ","Ǖ":"ǖ","Ǘ":"ǘ","Ǚ":"ǚ","Ǜ":"ǜ","Ǟ":"ǟ","Ǡ":"ǡ","Ǣ":"ǣ","Ǥ":"ǥ","Ǧ":"ǧ","Ǩ":"ǩ","Ǫ":"ǫ","Ǭ":"ǭ","Ǯ":"ǯ","DZ":"dz","Dz":"dz","Ǵ":"ǵ","Ƕ":"ƕ","Ƿ":"ƿ","Ǹ":"ǹ","Ǻ":"ǻ","Ǽ":"ǽ","Ǿ":"ǿ","Ȁ":"ȁ","Ȃ":"ȃ","Ȅ":"ȅ","Ȇ":"ȇ","Ȉ":"ȉ","Ȋ":"ȋ","Ȍ":"ȍ","Ȏ":"ȏ","Ȑ":"ȑ","Ȓ":"ȓ","Ȕ":"ȕ","Ȗ":"ȗ","Ș":"ș","Ț":"ț","Ȝ":"ȝ","Ȟ":"ȟ","Ƞ":"ƞ","Ȣ":"ȣ","Ȥ":"ȥ","Ȧ":"ȧ","Ȩ":"ȩ","Ȫ":"ȫ","Ȭ":"ȭ","Ȯ":"ȯ","Ȱ":"ȱ","Ȳ":"ȳ","Ⱥ":"ⱥ","Ȼ":"ȼ","Ƚ":"ƚ","Ⱦ":"ⱦ","Ɂ":"ɂ","Ƀ":"ƀ","Ʉ":"ʉ","Ʌ":"ʌ","Ɇ":"ɇ","Ɉ":"ɉ","Ɋ":"ɋ","Ɍ":"ɍ","Ɏ":"ɏ","ͅ":"ι","Ͱ":"ͱ","Ͳ":"ͳ","Ͷ":"ͷ","Ϳ":"ϳ","Ά":"ά","Έ":"έ","Ή":"ή","Ί":"ί","Ό":"ό","Ύ":"ύ","Ώ":"ώ","Α":"α","Β":"β","Γ":"γ","Δ":"δ","Ε":"ε","Ζ":"ζ","Η":"η","Θ":"θ","Ι":"ι","Κ":"κ","Λ":"λ","Μ":"μ","Ν":"ν","Ξ":"ξ","Ο":"ο","Π":"π","Ρ":"ρ","Σ":"σ","Τ":"τ","Υ":"υ","Φ":"φ","Χ":"χ","Ψ":"ψ","Ω":"ω","Ϊ":"ϊ","Ϋ":"ϋ","ς":"σ","Ϗ":"ϗ","ϐ":"β","ϑ":"θ","ϕ":"φ","ϖ":"π","Ϙ":"ϙ","Ϛ":"ϛ","Ϝ":"ϝ","Ϟ":"ϟ","Ϡ":"ϡ","Ϣ":"ϣ","Ϥ":"ϥ","Ϧ":"ϧ","Ϩ":"ϩ","Ϫ":"ϫ","Ϭ":"ϭ","Ϯ":"ϯ","ϰ":"κ","ϱ":"ρ","ϴ":"θ","ϵ":"ε","Ϸ":"ϸ","Ϲ":"ϲ","Ϻ":"ϻ","Ͻ":"ͻ","Ͼ":"ͼ","Ͽ":"ͽ","Ѐ":"ѐ","Ё":"ё","Ђ":"ђ","Ѓ":"ѓ","Є":"є","Ѕ":"ѕ","І":"і","Ї":"ї","Ј":"ј","Љ":"љ","Њ":"њ","Ћ":"ћ","Ќ":"ќ","Ѝ":"ѝ","Ў":"ў","Џ":"џ","А":"а","Б":"б","В":"в","Г":"г","Д":"д","Е":"е","Ж":"ж","З":"з","И":"и","Й":"й","К":"к","Л":"л","М":"м","Н":"н","О":"о","П":"п","Р":"р","С":"с","Т":"т","У":"у","Ф":"ф","Х":"х","Ц":"ц","Ч":"ч","Ш":"ш","Щ":"щ","Ъ":"ъ","Ы":"ы","Ь":"ь","Э":"э","Ю":"ю","Я":"я","Ѡ":"ѡ","Ѣ":"ѣ","Ѥ":"ѥ","Ѧ":"ѧ","Ѩ":"ѩ","Ѫ":"ѫ","Ѭ":"ѭ","Ѯ":"ѯ","Ѱ":"ѱ","Ѳ":"ѳ","Ѵ":"ѵ","Ѷ":"ѷ","Ѹ":"ѹ","Ѻ":"ѻ","Ѽ":"ѽ","Ѿ":"ѿ","Ҁ":"ҁ","Ҋ":"ҋ","Ҍ":"ҍ","Ҏ":"ҏ","Ґ":"ґ","Ғ":"ғ","Ҕ":"ҕ","Җ":"җ","Ҙ":"ҙ","Қ":"қ","Ҝ":"ҝ","Ҟ":"ҟ","Ҡ":"ҡ","Ң":"ң","Ҥ":"ҥ","Ҧ":"ҧ","Ҩ":"ҩ","Ҫ":"ҫ","Ҭ":"ҭ","Ү":"ү","Ұ":"ұ","Ҳ":"ҳ","Ҵ":"ҵ","Ҷ":"ҷ","Ҹ":"ҹ","Һ":"һ","Ҽ":"ҽ","Ҿ":"ҿ","Ӏ":"ӏ","Ӂ":"ӂ","Ӄ":"ӄ","Ӆ":"ӆ","Ӈ":"ӈ","Ӊ":"ӊ","Ӌ":"ӌ","Ӎ":"ӎ","Ӑ":"ӑ","Ӓ":"ӓ","Ӕ":"ӕ","Ӗ":"ӗ","Ә":"ә","Ӛ":"ӛ","Ӝ":"ӝ","Ӟ":"ӟ","Ӡ":"ӡ","Ӣ":"ӣ","Ӥ":"ӥ","Ӧ":"ӧ","Ө":"ө","Ӫ":"ӫ","Ӭ":"ӭ","Ӯ":"ӯ","Ӱ":"ӱ","Ӳ":"ӳ","Ӵ":"ӵ","Ӷ":"ӷ","Ӹ":"ӹ","Ӻ":"ӻ","Ӽ":"ӽ","Ӿ":"ӿ","Ԁ":"ԁ","Ԃ":"ԃ","Ԅ":"ԅ","Ԇ":"ԇ","Ԉ":"ԉ","Ԋ":"ԋ","Ԍ":"ԍ","Ԏ":"ԏ","Ԑ":"ԑ","Ԓ":"ԓ","Ԕ":"ԕ","Ԗ":"ԗ","Ԙ":"ԙ","Ԛ":"ԛ","Ԝ":"ԝ","Ԟ":"ԟ","Ԡ":"ԡ","Ԣ":"ԣ","Ԥ":"ԥ","Ԧ":"ԧ","Ԩ":"ԩ","Ԫ":"ԫ","Ԭ":"ԭ","Ԯ":"ԯ","Ա":"ա","Բ":"բ","Գ":"գ","Դ":"դ","Ե":"ե","Զ":"զ","Է":"է","Ը":"ը","Թ":"թ","Ժ":"ժ","Ի":"ի","Լ":"լ","Խ":"խ","Ծ":"ծ","Կ":"կ","Հ":"հ","Ձ":"ձ","Ղ":"ղ","Ճ":"ճ","Մ":"մ","Յ":"յ","Ն":"ն","Շ":"շ","Ո":"ո","Չ":"չ","Պ":"պ","Ջ":"ջ","Ռ":"ռ","Ս":"ս","Վ":"վ","Տ":"տ","Ր":"ր","Ց":"ց","Ւ":"ւ","Փ":"փ","Ք":"ք","Օ":"օ","Ֆ":"ֆ","Ⴀ":"ⴀ","Ⴁ":"ⴁ","Ⴂ":"ⴂ","Ⴃ":"ⴃ","Ⴄ":"ⴄ","Ⴅ":"ⴅ","Ⴆ":"ⴆ","Ⴇ":"ⴇ","Ⴈ":"ⴈ","Ⴉ":"ⴉ","Ⴊ":"ⴊ","Ⴋ":"ⴋ","Ⴌ":"ⴌ","Ⴍ":"ⴍ","Ⴎ":"ⴎ","Ⴏ":"ⴏ","Ⴐ":"ⴐ","Ⴑ":"ⴑ","Ⴒ":"ⴒ","Ⴓ":"ⴓ","Ⴔ":"ⴔ","Ⴕ":"ⴕ","Ⴖ":"ⴖ","Ⴗ":"ⴗ","Ⴘ":"ⴘ","Ⴙ":"ⴙ","Ⴚ":"ⴚ","Ⴛ":"ⴛ","Ⴜ":"ⴜ","Ⴝ":"ⴝ","Ⴞ":"ⴞ","Ⴟ":"ⴟ","Ⴠ":"ⴠ","Ⴡ":"ⴡ","Ⴢ":"ⴢ","Ⴣ":"ⴣ","Ⴤ":"ⴤ","Ⴥ":"ⴥ","Ⴧ":"ⴧ","Ⴭ":"ⴭ","Ḁ":"ḁ","Ḃ":"ḃ","Ḅ":"ḅ","Ḇ":"ḇ","Ḉ":"ḉ","Ḋ":"ḋ","Ḍ":"ḍ","Ḏ":"ḏ","Ḑ":"ḑ","Ḓ":"ḓ","Ḕ":"ḕ","Ḗ":"ḗ","Ḙ":"ḙ","Ḛ":"ḛ","Ḝ":"ḝ","Ḟ":"ḟ","Ḡ":"ḡ","Ḣ":"ḣ","Ḥ":"ḥ","Ḧ":"ḧ","Ḩ":"ḩ","Ḫ":"ḫ","Ḭ":"ḭ","Ḯ":"ḯ","Ḱ":"ḱ","Ḳ":"ḳ","Ḵ":"ḵ","Ḷ":"ḷ","Ḹ":"ḹ","Ḻ":"ḻ","Ḽ":"ḽ","Ḿ":"ḿ","Ṁ":"ṁ","Ṃ":"ṃ","Ṅ":"ṅ","Ṇ":"ṇ","Ṉ":"ṉ","Ṋ":"ṋ","Ṍ":"ṍ","Ṏ":"ṏ","Ṑ":"ṑ","Ṓ":"ṓ","Ṕ":"ṕ","Ṗ":"ṗ","Ṙ":"ṙ","Ṛ":"ṛ","Ṝ":"ṝ","Ṟ":"ṟ","Ṡ":"ṡ","Ṣ":"ṣ","Ṥ":"ṥ","Ṧ":"ṧ","Ṩ":"ṩ","Ṫ":"ṫ","Ṭ":"ṭ","Ṯ":"ṯ","Ṱ":"ṱ","Ṳ":"ṳ","Ṵ":"ṵ","Ṷ":"ṷ","Ṹ":"ṹ","Ṻ":"ṻ","Ṽ":"ṽ","Ṿ":"ṿ","Ẁ":"ẁ","Ẃ":"ẃ","Ẅ":"ẅ","Ẇ":"ẇ","Ẉ":"ẉ","Ẋ":"ẋ","Ẍ":"ẍ","Ẏ":"ẏ","Ẑ":"ẑ","Ẓ":"ẓ","Ẕ":"ẕ","ẛ":"ṡ","Ạ":"ạ","Ả":"ả","Ấ":"ấ","Ầ":"ầ","Ẩ":"ẩ","Ẫ":"ẫ","Ậ":"ậ","Ắ":"ắ","Ằ":"ằ","Ẳ":"ẳ","Ẵ":"ẵ","Ặ":"ặ","Ẹ":"ẹ","Ẻ":"ẻ","Ẽ":"ẽ","Ế":"ế","Ề":"ề","Ể":"ể","Ễ":"ễ","Ệ":"ệ","Ỉ":"ỉ","Ị":"ị","Ọ":"ọ","Ỏ":"ỏ","Ố":"ố","Ồ":"ồ","Ổ":"ổ","Ỗ":"ỗ","Ộ":"ộ","Ớ":"ớ","Ờ":"ờ","Ở":"ở","Ỡ":"ỡ","Ợ":"ợ","Ụ":"ụ","Ủ":"ủ","Ứ":"ứ","Ừ":"ừ","Ử":"ử","Ữ":"ữ","Ự":"ự","Ỳ":"ỳ","Ỵ":"ỵ","Ỷ":"ỷ","Ỹ":"ỹ","Ỻ":"ỻ","Ỽ":"ỽ","Ỿ":"ỿ","Ἀ":"ἀ","Ἁ":"ἁ","Ἂ":"ἂ","Ἃ":"ἃ","Ἄ":"ἄ","Ἅ":"ἅ","Ἆ":"ἆ","Ἇ":"ἇ","Ἐ":"ἐ","Ἑ":"ἑ","Ἒ":"ἒ","Ἓ":"ἓ","Ἔ":"ἔ","Ἕ":"ἕ","Ἠ":"ἠ","Ἡ":"ἡ","Ἢ":"ἢ","Ἣ":"ἣ","Ἤ":"ἤ","Ἥ":"ἥ","Ἦ":"ἦ","Ἧ":"ἧ","Ἰ":"ἰ","Ἱ":"ἱ","Ἲ":"ἲ","Ἳ":"ἳ","Ἴ":"ἴ","Ἵ":"ἵ","Ἶ":"ἶ","Ἷ":"ἷ","Ὀ":"ὀ","Ὁ":"ὁ","Ὂ":"ὂ","Ὃ":"ὃ","Ὄ":"ὄ","Ὅ":"ὅ","Ὑ":"ὑ","Ὓ":"ὓ","Ὕ":"ὕ","Ὗ":"ὗ","Ὠ":"ὠ","Ὡ":"ὡ","Ὢ":"ὢ","Ὣ":"ὣ","Ὤ":"ὤ","Ὥ":"ὥ","Ὦ":"ὦ","Ὧ":"ὧ","Ᾰ":"ᾰ","Ᾱ":"ᾱ","Ὰ":"ὰ","Ά":"ά","":"ι","Ὲ":"ὲ","Έ":"έ","Ὴ":"ὴ","Ή":"ή","Ῐ":"ῐ","Ῑ":"ῑ","Ὶ":"ὶ","Ί":"ί","Ῠ":"ῠ","Ῡ":"ῡ","Ὺ":"ὺ","Ύ":"ύ","Ῥ":"ῥ","Ὸ":"ὸ","Ό":"ό","Ὼ":"ὼ","Ώ":"ώ","Ω":"ω","":"k","Å":"å","Ⅎ":"ⅎ","":"","Ⅱ":"ⅱ","Ⅲ":"ⅲ","Ⅳ":"ⅳ","":"","Ⅵ":"ⅵ","Ⅶ":"ⅶ","Ⅷ":"ⅷ","Ⅸ":"ⅸ","":"","Ⅺ":"ⅺ","Ⅻ":"ⅻ","":"","":"","":"","":"ⅿ","Ↄ":"ↄ","Ⓐ":"ⓐ","Ⓑ":"ⓑ","Ⓒ":"ⓒ","Ⓓ":"ⓓ","Ⓔ":"ⓔ","Ⓕ":"ⓕ","Ⓖ":"ⓖ","Ⓗ":"ⓗ","Ⓘ":"ⓘ","Ⓙ":"ⓙ","Ⓚ":"ⓚ","Ⓛ":"ⓛ","Ⓜ":"ⓜ","Ⓝ":"ⓝ","Ⓞ":"ⓞ","Ⓟ":"ⓟ","Ⓠ":"ⓠ","Ⓡ":"ⓡ","Ⓢ":"ⓢ","Ⓣ":"ⓣ","Ⓤ":"ⓤ","Ⓥ":"ⓥ","Ⓦ":"ⓦ","Ⓧ":"ⓧ","Ⓨ":"ⓨ","Ⓩ":"ⓩ","Ⰰ":"ⰰ","Ⰱ":"ⰱ","Ⰲ":"ⰲ","Ⰳ":"ⰳ","Ⰴ":"ⰴ","Ⰵ":"ⰵ","Ⰶ":"ⰶ","Ⰷ":"ⰷ","Ⰸ":"ⰸ","Ⰹ":"ⰹ","Ⰺ":"ⰺ","Ⰻ":"ⰻ","Ⰼ":"ⰼ","Ⰽ":"ⰽ","Ⰾ":"ⰾ","Ⰿ":"ⰿ","Ⱀ":"ⱀ","Ⱁ":"ⱁ","Ⱂ":"ⱂ","Ⱃ":"ⱃ","Ⱄ":"ⱄ","Ⱅ":"ⱅ","Ⱆ":"ⱆ","Ⱇ":"ⱇ","Ⱈ":"ⱈ","Ⱉ":"ⱉ","Ⱊ":"ⱊ","Ⱋ":"ⱋ","Ⱌ":"ⱌ","Ⱍ":"ⱍ","Ⱎ":"ⱎ","Ⱏ":"ⱏ","Ⱐ":"ⱐ","Ⱑ":"ⱑ","Ⱒ":"ⱒ","Ⱓ":"ⱓ","Ⱔ":"ⱔ","Ⱕ":"ⱕ","Ⱖ":"ⱖ","Ⱗ":"ⱗ","Ⱘ":"ⱘ","Ⱙ":"ⱙ","Ⱚ":"ⱚ","Ⱛ":"ⱛ","Ⱜ":"ⱜ","Ⱝ":"ⱝ","Ⱞ":"ⱞ","Ⱡ":"ⱡ","Ɫ":"ɫ","Ᵽ":"ᵽ","Ɽ":"ɽ","Ⱨ":"ⱨ","Ⱪ":"ⱪ","Ⱬ":"ⱬ","Ɑ":"ɑ","Ɱ":"ɱ","Ɐ":"ɐ","Ɒ":"ɒ","Ⱳ":"ⱳ","Ⱶ":"ⱶ","Ȿ":"ȿ","Ɀ":"ɀ","Ⲁ":"ⲁ","Ⲃ":"ⲃ","Ⲅ":"","Ⲇ":"ⲇ","Ⲉ":"ⲉ","Ⲋ":"ⲋ","Ⲍ":"ⲍ","":"ⲏ","Ⲑ":"ⲑ","":"ⲓ","":"ⲕ","Ⲗ":"ⲗ","":"ⲙ","":"ⲛ","Ⲝ":"ⲝ","":"","Ⲡ":"ⲡ","":"","":"","":"ⲧ","":"ⲩ","Ⲫ":"ⲫ","":"ⲭ","Ⲯ":"ⲯ","Ⲱ":"ⲱ","Ⲳ":"ⲳ","Ⲵ":"ⲵ","Ⲷ":"ⲷ","Ⲹ":"ⲹ","":"ⲻ","Ⲽ":"ⲽ","Ⲿ":"ⲿ","Ⳁ":"ⳁ","Ⳃ":"ⳃ","Ⳅ":"ⳅ","":"ⳇ","Ⳉ":"ⳉ","":"ⳋ","":"ⳍ","Ⳏ":"ⳏ","":"ⳑ","":"ⳓ","Ⳕ":"ⳕ","Ⳗ":"ⳗ","Ⳙ":"ⳙ","Ⳛ":"ⳛ","Ⳝ":"ⳝ","Ⳟ":"ⳟ","Ⳡ":"ⳡ","Ⳣ":"ⳣ","Ⳬ":"ⳬ","Ⳮ":"ⳮ","Ⳳ":"ⳳ","Ꙁ":"ꙁ","Ꙃ":"ꙃ","":"ꙅ","Ꙇ":"","Ꙉ":"ꙉ","Ꙋ":"ꙋ","Ꙍ":"ꙍ","Ꙏ":"ꙏ","Ꙑ":"ꙑ","Ꙓ":"ꙓ","Ꙕ":"ꙕ","Ꙗ":"ꙗ","Ꙙ":"ꙙ","Ꙛ":"ꙛ","Ꙝ":"ꙝ","Ꙟ":"ꙟ","Ꙡ":"ꙡ","Ꙣ":"ꙣ","Ꙥ":"ꙥ","Ꙧ":"ꙧ","Ꙩ":"ꙩ","Ꙫ":"ꙫ","Ꙭ":"ꙭ","Ꚁ":"ꚁ","Ꚃ":"ꚃ","Ꚅ":"ꚅ","Ꚇ":"ꚇ","Ꚉ":"ꚉ","Ꚋ":"ꚋ","Ꚍ":"ꚍ","Ꚏ":"ꚏ","Ꚑ":"ꚑ","Ꚓ":"ꚓ","Ꚕ":"ꚕ","Ꚗ":"ꚗ","Ꚙ":"ꚙ","Ꚛ":"ꚛ","Ꜣ":"ꜣ","Ꜥ":"ꜥ","Ꜧ":"ꜧ","Ꜩ":"ꜩ","Ꜫ":"ꜫ","Ꜭ":"ꜭ","Ꜯ":"ꜯ","Ꜳ":"ꜳ","Ꜵ":"ꜵ","Ꜷ":"ꜷ","Ꜹ":"ꜹ","Ꜻ":"ꜻ","Ꜽ":"ꜽ","Ꜿ":"ꜿ","Ꝁ":"ꝁ","Ꝃ":"ꝃ","Ꝅ":"ꝅ","Ꝇ":"ꝇ","Ꝉ":"ꝉ","Ꝋ":"ꝋ","Ꝍ":"ꝍ","Ꝏ":"ꝏ","Ꝑ":"ꝑ","Ꝓ":"ꝓ","Ꝕ":"ꝕ","Ꝗ":"ꝗ","Ꝙ":"ꝙ","":"ꝛ","Ꝝ":"ꝝ","Ꝟ":"ꝟ","Ꝡ":"ꝡ","Ꝣ":"ꝣ","Ꝥ":"ꝥ","Ꝧ":"ꝧ","Ꝩ":"ꝩ","":"ꝫ","Ꝭ":"ꝭ","":"ꝯ","Ꝺ":"ꝺ","Ꝼ":"ꝼ","Ᵹ":"ᵹ","Ꝿ":"ꝿ","Ꞁ":"ꞁ","Ꞃ":"ꞃ","Ꞅ":"ꞅ","Ꞇ":"ꞇ","Ꞌ":"","Ɥ":"ɥ","Ꞑ":"ꞑ","Ꞓ":"ꞓ","Ꞗ":"ꞗ","":"","Ꞛ":"ꞛ","Ꞝ":"ꞝ","Ꞟ":"","Ꞡ":"ꞡ","Ꞣ":"ꞣ","Ꞥ":"ꞥ","Ꞧ":"ꞧ","Ꞩ":"ꞩ","Ɦ":"ɦ","":"ɜ","Ɡ":"ɡ","Ɬ":"ɬ","Ʞ":"ʞ","Ʇ":"ʇ","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","":"","𐐀":"𐐨","𐐁":"𐐩","𐐂":"𐐪","𐐃":"𐐫","𐐄":"𐐬","𐐅":"𐐭","𐐆":"𐐮","𐐇":"𐐯","𐐈":"𐐰","𐐉":"𐐱","𐐊":"𐐲","𐐋":"𐐳","𐐌":"𐐴","𐐍":"𐐵","𐐎":"𐐶","𐐏":"𐐷","𐐐":"𐐸","𐐑":"𐐹","𐐒":"𐐺","𐐓":"𐐻","𐐔":"𐐼","𐐕":"𐐽","𐐖":"𐐾","𐐗":"𐐿","𐐘":"𐑀","𐐙":"𐑁","𐐚":"𐑂","𐐛":"𐑃","𐐜":"𐑄","𐐝":"𐑅","𐐞":"𐑆","𐐟":"𐑇","𐐠":"𐑈","𐐡":"𐑉","𐐢":"𐑊","𐐣":"𐑋","𐐤":"𐑌","𐐥":"𐑍","𐐦":"𐑎","𐐧":"𐑏","𑢠":"𑣀","𑢡":"𑣁","𑢢":"𑣂","𑢣":"𑣃","𑢤":"𑣄","𑢥":"𑣅","𑢦":"𑣆","𑢧":"𑣇","𑢨":"𑣈","𑢩":"𑣉","𑢪":"𑣊","𑢫":"𑣋","𑢬":"𑣌","𑢭":"𑣍","𑢮":"𑣎","𑢯":"𑣏","𑢰":"𑣐","𑢱":"𑣑","𑢲":"𑣒","𑢳":"𑣓","𑢴":"𑣔","𑢵":"𑣕","𑢶":"𑣖","𑢷":"𑣗","𑢸":"𑣘","𑢹":"𑣙","𑢺":"𑣚","𑢻":"𑣛","𑢼":"𑣜","𑢽":"𑣝","𑢾":"𑣞","𑢿":"𑣟","ß":"ss","İ":"i̇","ʼn":"ʼn","ǰ":"ǰ","ΐ":"ΐ","ΰ":"ΰ","և":"եւ","ẖ":"ẖ","ẗ":"ẗ","ẘ":"ẘ","ẙ":"ẙ","ẚ":"aʾ","ẞ":"ss","ὐ":"ὐ","ὒ":"ὒ","ὔ":"ὔ","ὖ":"ὖ","ᾀ":"ἀι","ᾁ":"ἁι","ᾂ":"ἂι","ᾃ":"ἃι","ᾄ":"ἄι","ᾅ":"ἅι","ᾆ":"ἆι","ᾇ":"ἇι","ᾈ":"ἀι","ᾉ":"ἁι","ᾊ":"ἂι","ᾋ":"ἃι","ᾌ":"ἄι","ᾍ":"ἅι","ᾎ":"ἆι","ᾏ":"ἇι","ᾐ":"ἠι","ᾑ":"ἡι","ᾒ":"ἢι","ᾓ":"ἣι","ᾔ":"ἤι","ᾕ":"ἥι","ᾖ":"ἦι","ᾗ":"ἧι","ᾘ":"ἠι","ᾙ":"ἡι","ᾚ":"ἢι","ᾛ":"ἣι","ᾜ":"ἤι","ᾝ":"ἥι","ᾞ":"ἦι","ᾟ":"ἧι","ᾠ":"ὠι","ᾡ":"ὡι","ᾢ":"ὢι","ᾣ":"ὣι","ᾤ":"ὤι","ᾥ":"ὥι","ᾦ":"ὦι","ᾧ":"ὧι","ᾨ":"ὠι","ᾩ":"ὡι","ᾪ":"ὢι","ᾫ":"ὣι","ᾬ":"ὤι","ᾭ":"ὥι","ᾮ":"ὦι","ᾯ":"ὧι","ᾲ":"ὰι","ᾳ":"αι","ᾴ":"άι","ᾶ":"ᾶ","ᾷ":"ᾶι","ᾼ":"αι","ῂ":"ὴι","ῃ":"ηι","ῄ":"ήι","ῆ":"ῆ","ῇ":"ῆι","ῌ":"ηι","ῒ":"ῒ","ΐ":"ΐ","ῖ":"ῖ","ῗ":"ῗ","ῢ":"ῢ","ΰ":"ΰ","ῤ":"ῤ","ῦ":"ῦ","ῧ":"ῧ","ῲ":"ὼι","ῳ":"ωι","ῴ":"ώι","ῶ":"ῶ","ῷ":"ῶι","ῼ":"ωι","ff":"ff","fi":"fi","fl":"fl","ffi":"ffi","ffl":"ffl","ſt":"st","st":"st","ﬓ":"մն","ﬔ":"մե","ﬕ":"մի","ﬖ":"վն","ﬗ":"մխ"};e.exports=function(e){return e.slice(1,e.length-1).trim().replace(o,(function(e){return r[e]||" "}))}},function(e,t,n){"use strict";if(String.fromCodePoint)e.exports=function(e){try{return String.fromCodePoint(e)}catch(e){if(e instanceof RangeError)return String.fromCharCode(65533);throw e}};else{var o=String.fromCharCode,r=Math.floor;e.exports=function(){var e,t,n=16384,i=[],a=-1,s=arguments.length;if(!s)return"";for(var c="";++a<s;){var l=Number(arguments[a]);if(!isFinite(l)||l<0||l>1114111||r(l)!==l)return String.fromCharCode(65533);l<=65535?i.push(l):(e=55296+((l-=65536)>>10),t=l%1024+56320,i.push(e,t)),(a+1===s||i.length>n)&&(c+=o.apply(null,i),i.length=0)}return c}}},function(e,t){String.prototype.repeat||function(){"use strict";var e=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),t=function(e){if(null==this)throw TypeError();var t=String(this),n=e?Number(e):0;if(n!=n&&(n=0),n<0||n==1/0)throw RangeError();for(var o="";n;)n%2==1&&(o+=t),n>1&&(t+=t),n>>=1;return o};e?e(String.prototype,"repeat",{value:t,configurable:!0,writable:!0}):String.prototype.repeat=t}()},function(e,t,n){"use strict";var o=n(516),r=/^javascript:|vbscript:|file:|data:/i,i=/^data:image\/(?:png|gif|jpeg|webp)/i,a=function(e){return r.test(e)&&!i.test(e)};function s(e){(e=e||{}).softbreak=e.softbreak||"\n",this.disableTags=0,this.lastOut="\n",this.options=e}s.prototype=Object.create(o.prototype),s.prototype.text=function(e){this.out(e.literal)},s.prototype.html_inline=function(e){this.options.safe?this.lit("\x3c!-- raw HTML omitted --\x3e"):this.lit(e.literal)},s.prototype.html_block=function(e){this.cr(),this.options.safe?this.lit("\x3c!-- raw HTML omitted --\x3e"):this.lit(e.literal),this.cr()},s.prototype.softbreak=function(){this.lit(this.options.softbreak)},s.prototype.linebreak=function(){this.tag("br",[],!0),this.cr()},s.prototype.link=function(e,t){var n=this.attrs(e);t?(this.options.safe&&a(e.destination)||n.push(["href",this.esc(e.destination)]),e.title&&n.push(["title",this.esc(e.title)]),this.tag("a",n)):this.tag("/a")},s.prototype.image=function(e,t){t?(0===this.disableTags&&(this.options.safe&&a(e.destination)?this.lit('<img src="" alt="'):this.lit('<img src="'+this.esc(e.destination)+'" alt="')),this.disableTags+=1):(this.disableTags-=1,0===this.disableTags&&(e.title&&this.lit('" title="'+this.esc(e.title)),this.lit('" />')))},s.prototype.emph=function(e,t){this.tag(t?"em":"/em")},s.prototype.strong=function(e,t){this.tag(t?"strong":"/strong")},s.prototype.paragraph=function(e,t){var n=e.parent.parent,o=this.attrs(e);null!==n&&"list"===n.type&&n.listTight||(t?(this.cr(),this.tag("p",o)):(this.tag("/p"),this.cr()))},s.prototype.heading=function(e,t){var n="h"+e.level,o=this.attrs(e);t?(this.cr(),this.tag(n,o)):(this.tag("/"+n),this.cr())},s.prototype.code=function(e){this.tag("code"),this.out(e.literal),this.tag("/code")},s.prototype.code_block=function(e){var t=e.info?e.info.split(/\s+/):[],n=this.attrs(e);t.length>0&&t[0].length>0&&n.push(["class","language-"+this.esc(t[0])]),this.cr(),this.tag("pre"),this.tag("code",n),this.out(e.literal),this.tag("/code"),this.tag("/pre"),this.cr()},s.prototype.thematic_break=function(e){var t=this.attrs(e);this.cr(),this.tag("hr",t,!0),this.cr()},s.prototype.block_quote=function(e,t){var n=this.attrs(e);t?(this.cr(),this.tag("blockquote",n),this.cr()):(this.cr(),this.tag("/blockquote"),this.cr())},s.prototype.list=function(e,t){var n="bullet"===e.listType?"ul":"ol",o=this.attrs(e);if(t){var r=e.listStart;null!==r&&1!==r&&o.push(["start",r.toString()]),this.cr(),this.tag(n,o),this.cr()}else this.cr(),this.tag("/"+n),this.cr()},s.prototype.item=function(e,t){var n=this.attrs(e);t?this.tag("li",n):(this.tag("/li"),this.cr())},s.prototype.custom_inline=function(e,t){t&&e.onEnter?this.lit(e.onEnter):!t&&e.onExit&&this.lit(e.onExit)},s.prototype.custom_block=function(e,t){this.cr(),t&&e.onEnter?this.lit(e.onEnter):!t&&e.onExit&&this.lit(e.onExit),this.cr()},s.prototype.esc=n(259).escapeXml,s.prototype.out=function(e){this.lit(this.esc(e))},s.prototype.tag=function(e,t,n){if(!(this.disableTags>0)){if(this.buffer+="<"+e,t&&t.length>0)for(var o,r=0;void 0!==(o=t[r]);)this.buffer+=" "+o[0]+'="'+o[1]+'"',r++;n&&(this.buffer+=" /"),this.buffer+=">",this.lastOut=">"}},s.prototype.attrs=function(e){var t=[];if(this.options.sourcepos){var n=e.sourcepos;n&&t.push(["data-sourcepos",String(n[0][0])+":"+String(n[0][1])+"-"+String(n[1][0])+":"+String(n[1][1])])}return t},e.exports=s},function(e,t,n){"use strict";var o=n(516),r=/\<[^>]*\>/;function i(e){e=e||{},this.disableTags=0,this.lastOut="\n",this.indentLevel=0,this.indent=" ",this.options=e}i.prototype=Object.create(o.prototype),i.prototype.render=function(e){var t,n;this.buffer="";var o,r,i,a,s,c,l=e.walker(),u=this.options;for(u.time&&console.time("rendering"),this.buffer+='<?xml version="1.0" encoding="UTF-8"?>\n',this.buffer+='<!DOCTYPE document SYSTEM "CommonMark.dtd">\n';o=l.next();)if(i=o.entering,c=(r=o.node).type,a=r.isContainer,s="thematic_break"===c||"linebreak"===c||"softbreak"===c,n=c.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase(),i){switch(t=[],c){case"document":t.push(["xmlns","http://commonmark.org/xml/1.0"]);break;case"list":null!==r.listType&&t.push(["type",r.listType.toLowerCase()]),null!==r.listStart&&t.push(["start",String(r.listStart)]),null!==r.listTight&&t.push(["tight",r.listTight?"true":"false"]);var d=r.listDelimiter;if(null!==d){var h="";h="."===d?"period":"paren",t.push(["delimiter",h])}break;case"code_block":r.info&&t.push(["info",r.info]);break;case"heading":t.push(["level",String(r.level)]);break;case"link":case"image":t.push(["destination",r.destination]),t.push(["title",r.title]);break;case"custom_inline":case"custom_block":t.push(["on_enter",r.onEnter]),t.push(["on_exit",r.onExit])}if(u.sourcepos){var p=r.sourcepos;p&&t.push(["sourcepos",String(p[0][0])+":"+String(p[0][1])+"-"+String(p[1][0])+":"+String(p[1][1])])}if(this.cr(),this.out(this.tag(n,t,s)),a)this.indentLevel+=1;else if(!a&&!s){var m=r.literal;m&&this.out(this.esc(m)),this.out(this.tag("/"+n))}}else this.indentLevel-=1,this.cr(),this.out(this.tag("/"+n));return u.time&&console.timeEnd("rendering"),this.buffer+="\n",this.buffer},i.prototype.out=function(e){this.disableTags>0?this.buffer+=e.replace(r,""):this.buffer+=e,this.lastOut=e},i.prototype.cr=function(){if("\n"!==this.lastOut){this.buffer+="\n",this.lastOut="\n";for(var e=this.indentLevel;e>0;e--)this.buffer+=this.indent}},i.prototype.tag=function(e,t,n){var o="<"+e;if(t&&t.length>0)for(var r,i=0;void 0!==(r=t[i]);)o+=" "+r[0]+'="'+this.esc(r[1])+'"',i++;return n&&(o+=" /"),o+=">"},i.prototype.esc=n(259).escapeXml,e.exports=i},function(e,t){e.exports="img/feather-customised/files.d6a33b8.svg"},function(e,t){e.exports="img/search-icon-vector.c463bb6.svg"},function(e,t){e.exports="img/icon-email-user.af133ff.svg"},function(e,t){e.exports="img/icon-address-delete.40c8a04.svg"},function(e,t){e.exports="img/icons-directory.a0cc9b7.svg"},function(e,t){e.exports="img/icons-people.af03c4c.svg"},function(e,t){var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};n.Diff=function(e,t){return[e,t]},n.prototype.diff_main=function(e,t,o,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=r;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[new n.Diff(0,e)]:[];void 0===o&&(o=!0);var a=o,s=this.diff_commonPrefix(e,t),c=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);var l=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);var u=this.diff_compute_(e,t,a,i);return c&&u.unshift(new n.Diff(0,c)),l&&u.push(new n.Diff(0,l)),this.diff_cleanupMerge(u),u},n.prototype.diff_compute_=function(e,t,o,r){var i;if(!e)return[new n.Diff(1,t)];if(!t)return[new n.Diff(-1,e)];var a=e.length>t.length?e:t,s=e.length>t.length?t:e,c=a.indexOf(s);if(-1!=c)return i=[new n.Diff(1,a.substring(0,c)),new n.Diff(0,s),new n.Diff(1,a.substring(c+s.length))],e.length>t.length&&(i[0][0]=i[2][0]=-1),i;if(1==s.length)return[new n.Diff(-1,e),new n.Diff(1,t)];var l=this.diff_halfMatch_(e,t);if(l){var u=l[0],d=l[1],h=l[2],p=l[3],m=l[4],g=this.diff_main(u,h,o,r),f=this.diff_main(d,p,o,r);return g.concat([new n.Diff(0,m)],f)}return o&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)},n.prototype.diff_lineMode_=function(e,t,o){var r=this.diff_linesToChars_(e,t);e=r.chars1,t=r.chars2;var i=r.lineArray,a=this.diff_main(e,t,!1,o);this.diff_charsToLines_(a,i),this.diff_cleanupSemantic(a),a.push(new n.Diff(0,""));for(var s=0,c=0,l=0,u="",d="";s<a.length;){switch(a[s][0]){case 1:l++,d+=a[s][1];break;case-1:c++,u+=a[s][1];break;case 0:if(c>=1&&l>=1){a.splice(s-c-l,c+l),s=s-c-l;for(var h=this.diff_main(u,d,!1,o),p=h.length-1;p>=0;p--)a.splice(s,0,h[p]);s+=h.length}l=0,c=0,u="",d=""}s++}return a.pop(),a},n.prototype.diff_bisect_=function(e,t,o){for(var r=e.length,i=t.length,a=Math.ceil((r+i)/2),s=a,c=2*a,l=new Array(c),u=new Array(c),d=0;d<c;d++)l[d]=-1,u[d]=-1;l[s+1]=0,u[s+1]=0;for(var h=r-i,p=h%2!=0,m=0,g=0,f=0,_=0,b=0;b<a&&!((new Date).getTime()>o);b++){for(var v=-b+m;v<=b-g;v+=2){for(var E=s+v,y=(x=v==-b||v!=b&&l[E-1]<l[E+1]?l[E+1]:l[E-1]+1)-v;x<r&&y<i&&e.charAt(x)==t.charAt(y);)x++,y++;if(l[E]=x,x>r)g+=2;else if(y>i)m+=2;else if(p){if((w=s+h-v)>=0&&w<c&&-1!=u[w])if(x>=(T=r-u[w]))return this.diff_bisectSplit_(e,t,x,y,o)}}for(var S=-b+f;S<=b-_;S+=2){for(var T,w=s+S,C=(T=S==-b||S!=b&&u[w-1]<u[w+1]?u[w+1]:u[w-1]+1)-S;T<r&&C<i&&e.charAt(r-T-1)==t.charAt(i-C-1);)T++,C++;if(u[w]=T,T>r)_+=2;else if(C>i)f+=2;else if(!p){if((E=s+h-S)>=0&&E<c&&-1!=l[E]){var x;y=s+(x=l[E])-E;if(x>=(T=r-T))return this.diff_bisectSplit_(e,t,x,y,o)}}}}return[new n.Diff(-1,e),new n.Diff(1,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,o,r){var i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),c=t.substring(o),l=this.diff_main(i,a,!1,r),u=this.diff_main(s,c,!1,r);return l.concat(u)},n.prototype.diff_linesToChars_=function(e,t){var n=[],o={};function r(e){for(var t="",r=0,a=-1,s=n.length;a<e.length-1;){-1==(a=e.indexOf("\n",r))&&(a=e.length-1);var c=e.substring(r,a+1);(o.hasOwnProperty?o.hasOwnProperty(c):void 0!==o[c])?t+=String.fromCharCode(o[c]):(s==i&&(c=e.substring(r),a=e.length),t+=String.fromCharCode(s),o[c]=s,n[s++]=c),r=a+1}return t}n[0]="";var i=4e4,a=r(e);return i=65535,{chars1:a,chars2:r(t),lineArray:n}},n.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var o=e[n][1],r=[],i=0;i<o.length;i++)r[i]=t[o.charCodeAt(i)];e[n][1]=r.join("")}},n.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(i,r)==t.substring(i,r)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r},n.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(e.length-r,e.length-i)==t.substring(t.length-r,t.length-i)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r},n.prototype.diff_commonOverlap_=function(e,t){var n=e.length,o=t.length;if(0==n||0==o)return 0;n>o?e=e.substring(n-o):n<o&&(t=t.substring(0,n));var r=Math.min(n,o);if(e==t)return r;for(var i=0,a=1;;){var s=e.substring(r-a),c=t.indexOf(s);if(-1==c)return i;a+=c,0!=c&&e.substring(r-a)!=t.substring(0,a)||(i=a,a++)}},n.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;var r=this;function i(e,t,n){for(var o,i,a,s,c=e.substring(n,n+Math.floor(e.length/4)),l=-1,u="";-1!=(l=t.indexOf(c,l+1));){var d=r.diff_commonPrefix(e.substring(n),t.substring(l)),h=r.diff_commonSuffix(e.substring(0,n),t.substring(0,l));u.length<h+d&&(u=t.substring(l-h,l)+t.substring(l,l+d),o=e.substring(0,n-h),i=e.substring(n+d),a=t.substring(0,l-h),s=t.substring(l+d))}return 2*u.length>=e.length?[o,i,a,s,u]:null}var a,s,c,l,u,d=i(n,o,Math.ceil(n.length/4)),h=i(n,o,Math.ceil(n.length/2));return d||h?(a=h?d&&d[4].length>h[4].length?d:h:d,e.length>t.length?(s=a[0],c=a[1],l=a[2],u=a[3]):(l=a[0],u=a[1],s=a[2],c=a[3]),[s,c,l,u,a[4]]):null},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,o=[],r=0,i=null,a=0,s=0,c=0,l=0,u=0;a<e.length;)0==e[a][0]?(o[r++]=a,s=l,c=u,l=0,u=0,i=e[a][1]):(1==e[a][0]?l+=e[a][1].length:u+=e[a][1].length,i&&i.length<=Math.max(s,c)&&i.length<=Math.max(l,u)&&(e.splice(o[r-1],0,new n.Diff(-1,i)),e[o[r-1]+1][0]=1,r--,a=--r>0?o[r-1]:-1,s=0,c=0,l=0,u=0,i=null,t=!0)),a++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a<e.length;){if(-1==e[a-1][0]&&1==e[a][0]){var d=e[a-1][1],h=e[a][1],p=this.diff_commonOverlap_(d,h),m=this.diff_commonOverlap_(h,d);p>=m?(p>=d.length/2||p>=h.length/2)&&(e.splice(a,0,new n.Diff(0,h.substring(0,p))),e[a-1][1]=d.substring(0,d.length-p),e[a+1][1]=h.substring(p),a++):(m>=d.length/2||m>=h.length/2)&&(e.splice(a,0,new n.Diff(0,d.substring(0,m))),e[a-1][0]=1,e[a-1][1]=h.substring(0,h.length-m),e[a+1][0]=-1,e[a+1][1]=d.substring(m),a++),a++}a++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var o=e.charAt(e.length-1),r=t.charAt(0),i=o.match(n.nonAlphaNumericRegex_),a=r.match(n.nonAlphaNumericRegex_),s=i&&o.match(n.whitespaceRegex_),c=a&&r.match(n.whitespaceRegex_),l=s&&o.match(n.linebreakRegex_),u=c&&r.match(n.linebreakRegex_),d=l&&e.match(n.blanklineEndRegex_),h=u&&t.match(n.blanklineStartRegex_);return d||h?5:l||u?4:i&&!s&&c?3:s||c?2:i||a?1:0}for(var o=1;o<e.length-1;){if(0==e[o-1][0]&&0==e[o+1][0]){var r=e[o-1][1],i=e[o][1],a=e[o+1][1],s=this.diff_commonSuffix(r,i);if(s){var c=i.substring(i.length-s);r=r.substring(0,r.length-s),i=c+i.substring(0,i.length-s),a=c+a}for(var l=r,u=i,d=a,h=t(r,i)+t(i,a);i.charAt(0)===a.charAt(0);){r+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);var p=t(r,i)+t(i,a);p>=h&&(h=p,l=r,u=i,d=a)}e[o-1][1]!=l&&(l?e[o-1][1]=l:(e.splice(o-1,1),o--),e[o][1]=u,d?e[o+1][1]=d:(e.splice(o+1,1),o--))}o++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,o=[],r=0,i=null,a=0,s=!1,c=!1,l=!1,u=!1;a<e.length;)0==e[a][0]?(e[a][1].length<this.Diff_EditCost&&(l||u)?(o[r++]=a,s=l,c=u,i=e[a][1]):(r=0,i=null),l=u=!1):(-1==e[a][0]?u=!0:l=!0,i&&(s&&c&&l&&u||i.length<this.Diff_EditCost/2&&s+c+l+u==3)&&(e.splice(o[r-1],0,new n.Diff(-1,i)),e[o[r-1]+1][0]=1,r--,i=null,s&&c?(l=u=!0,r=0):(a=--r>0?o[r-1]:-1,l=u=!1),t=!0)),a++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push(new n.Diff(0,""));for(var t,o=0,r=0,i=0,a="",s="";o<e.length;)switch(e[o][0]){case 1:i++,s+=e[o][1],o++;break;case-1:r++,a+=e[o][1],o++;break;case 0:r+i>1?(0!==r&&0!==i&&(0!==(t=this.diff_commonPrefix(s,a))&&(o-r-i>0&&0==e[o-r-i-1][0]?e[o-r-i-1][1]+=s.substring(0,t):(e.splice(0,0,new n.Diff(0,s.substring(0,t))),o++),s=s.substring(t),a=a.substring(t)),0!==(t=this.diff_commonSuffix(s,a))&&(e[o][1]=s.substring(s.length-t)+e[o][1],s=s.substring(0,s.length-t),a=a.substring(0,a.length-t))),o-=r+i,e.splice(o,r+i),a.length&&(e.splice(o,0,new n.Diff(-1,a)),o++),s.length&&(e.splice(o,0,new n.Diff(1,s)),o++),o++):0!==o&&0==e[o-1][0]?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,i=0,r=0,a="",s=""}""===e[e.length-1][1]&&e.pop();var c=!1;for(o=1;o<e.length-1;)0==e[o-1][0]&&0==e[o+1][0]&&(e[o][1].substring(e[o][1].length-e[o-1][1].length)==e[o-1][1]?(e[o][1]=e[o-1][1]+e[o][1].substring(0,e[o][1].length-e[o-1][1].length),e[o+1][1]=e[o-1][1]+e[o+1][1],e.splice(o-1,1),c=!0):e[o][1].substring(0,e[o+1][1].length)==e[o+1][1]&&(e[o-1][1]+=e[o+1][1],e[o][1]=e[o][1].substring(e[o+1][1].length)+e[o+1][1],e.splice(o+1,1),c=!0)),o++;c&&this.diff_cleanupMerge(e)},n.prototype.diff_xIndex=function(e,t){var n,o=0,r=0,i=0,a=0;for(n=0;n<e.length&&(1!==e[n][0]&&(o+=e[n][1].length),-1!==e[n][0]&&(r+=e[n][1].length),!(o>t));n++)i=o,a=r;return e.length!=n&&-1===e[n][0]?a:a+(t-i)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,o=/</g,r=/>/g,i=/\n/g,a=0;a<e.length;a++){var s=e[a][0],c=e[a][1].replace(n,"&amp;").replace(o,"&lt;").replace(r,"&gt;").replace(i,"&para;<br>");switch(s){case 1:t[a]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case-1:t[a]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:t[a]="<span>"+c+"</span>"}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},n.prototype.diff_text2=function(e){for(var t=[],n=0;n<e.length;n++)-1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},n.prototype.diff_levenshtein=function(e){for(var t=0,n=0,o=0,r=0;r<e.length;r++){var i=e[r][0],a=e[r][1];switch(i){case 1:n+=a.length;break;case-1:o+=a.length;break;case 0:t+=Math.max(n,o),n=0,o=0}}return t+=Math.max(n,o)},n.prototype.diff_toDelta=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n][0]){case 1:t[n]="+"+encodeURI(e[n][1]);break;case-1:t[n]="-"+e[n][1].length;break;case 0:t[n]="="+e[n][1].length}return t.join("\t").replace(/%20/g," ")},n.prototype.diff_fromDelta=function(e,t){for(var o=[],r=0,i=0,a=t.split(/\t/g),s=0;s<a.length;s++){var c=a[s].substring(1);switch(a[s].charAt(0)){case"+":try{o[r++]=new n.Diff(1,decodeURI(c))}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+c)}break;case"-":case"=":var l=parseInt(c,10);if(isNaN(l)||l<0)throw new Error("Invalid number in diff_fromDelta: "+c);var u=e.substring(i,i+=l);"="==a[s].charAt(0)?o[r++]=new n.Diff(0,u):o[r++]=new n.Diff(-1,u);break;default:if(a[s])throw new Error("Invalid diff operation in diff_fromDelta: "+a[s])}}if(i!=e.length)throw new Error("Delta length ("+i+") does not equal source text length ("+e.length+").");return o},n.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},n.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var o=this.match_alphabet_(t),r=this;function i(e,o){var i=e/t.length,a=Math.abs(n-o);return r.Match_Distance?i+a/r.Match_Distance:a?1:i}var a=this.Match_Threshold,s=e.indexOf(t,n);-1!=s&&(a=Math.min(i(0,s),a),-1!=(s=e.lastIndexOf(t,n+t.length))&&(a=Math.min(i(0,s),a)));var c,l,u=1<<t.length-1;s=-1;for(var d,h=t.length+e.length,p=0;p<t.length;p++){for(c=0,l=h;c<l;)i(p,n+l)<=a?c=l:h=l,l=Math.floor((h-c)/2+c);h=l;var m=Math.max(1,n-l+1),g=Math.min(n+l,e.length)+t.length,f=Array(g+2);f[g+1]=(1<<p)-1;for(var _=g;_>=m;_--){var b=o[e.charAt(_-1)];if(f[_]=0===p?(f[_+1]<<1|1)&b:(f[_+1]<<1|1)&b|(d[_+1]|d[_])<<1|1|d[_+1],f[_]&u){var v=i(p,_-1);if(v<=a){if(a=v,!((s=_-1)>n))break;m=Math.max(1,2*n-s)}}}if(i(p+1,n)>a)break;d=f}return s},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},n.prototype.patch_addContext_=function(e,t){if(0!=t.length){if(null===e.start2)throw Error("patch not initialized");for(var o=t.substring(e.start2,e.start2+e.length1),r=0;t.indexOf(o)!=t.lastIndexOf(o)&&o.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,o=t.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin;var i=t.substring(e.start2-r,e.start2);i&&e.diffs.unshift(new n.Diff(0,i));var a=t.substring(e.start2+e.length1,e.start2+e.length1+r);a&&e.diffs.push(new n.Diff(0,a)),e.start1-=i.length,e.start2-=i.length,e.length1+=i.length+a.length,e.length2+=i.length+a.length}},n.prototype.patch_make=function(e,t,o){var r,i;if("string"==typeof e&&"string"==typeof t&&void 0===o)r=e,(i=this.diff_main(r,t,!0)).length>2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(e&&"object"==typeof e&&void 0===t&&void 0===o)i=e,r=this.diff_text1(i);else if("string"==typeof e&&t&&"object"==typeof t&&void 0===o)r=e,i=t;else{if("string"!=typeof e||"string"!=typeof t||!o||"object"!=typeof o)throw new Error("Unknown call format to patch_make.");r=e,i=o}if(0===i.length)return[];for(var a=[],s=new n.patch_obj,c=0,l=0,u=0,d=r,h=r,p=0;p<i.length;p++){var m=i[p][0],g=i[p][1];switch(c||0===m||(s.start1=l,s.start2=u),m){case 1:s.diffs[c++]=i[p],s.length2+=g.length,h=h.substring(0,u)+g+h.substring(u);break;case-1:s.length1+=g.length,s.diffs[c++]=i[p],h=h.substring(0,u)+h.substring(u+g.length);break;case 0:g.length<=2*this.Patch_Margin&&c&&i.length!=p+1?(s.diffs[c++]=i[p],s.length1+=g.length,s.length2+=g.length):g.length>=2*this.Patch_Margin&&c&&(this.patch_addContext_(s,d),a.push(s),s=new n.patch_obj,c=0,d=h,l=u)}1!==m&&(l+=g.length),-1!==m&&(u+=g.length)}return c&&(this.patch_addContext_(s,d),a.push(s)),a},n.prototype.patch_deepCopy=function(e){for(var t=[],o=0;o<e.length;o++){var r=e[o],i=new n.patch_obj;i.diffs=[];for(var a=0;a<r.diffs.length;a++)i.diffs[a]=new n.Diff(r.diffs[a][0],r.diffs[a][1]);i.start1=r.start1,i.start2=r.start2,i.length1=r.length1,i.length2=r.length2,t[o]=i}return t},n.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var n=this.patch_addPadding(e);t=n+t+n,this.patch_splitMax(e);for(var o=0,r=[],i=0;i<e.length;i++){var a,s,c=e[i].start2+o,l=this.diff_text1(e[i].diffs),u=-1;if(l.length>this.Match_MaxBits?-1!=(a=this.match_main(t,l.substring(0,this.Match_MaxBits),c))&&(-1==(u=this.match_main(t,l.substring(l.length-this.Match_MaxBits),c+l.length-this.Match_MaxBits))||a>=u)&&(a=-1):a=this.match_main(t,l,c),-1==a)r[i]=!1,o-=e[i].length2-e[i].length1;else if(r[i]=!0,o=a-c,l==(s=-1==u?t.substring(a,a+l.length):t.substring(a,u+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[i].diffs)+t.substring(a+l.length);else{var d=this.diff_main(l,s,!1);if(l.length>this.Match_MaxBits&&this.diff_levenshtein(d)/l.length>this.Patch_DeleteThreshold)r[i]=!1;else{this.diff_cleanupSemanticLossless(d);for(var h,p=0,m=0;m<e[i].diffs.length;m++){var g=e[i].diffs[m];0!==g[0]&&(h=this.diff_xIndex(d,p)),1===g[0]?t=t.substring(0,a+h)+g[1]+t.substring(a+h):-1===g[0]&&(t=t.substring(0,a+h)+t.substring(a+this.diff_xIndex(d,p+g[1].length))),-1!==g[0]&&(p+=g[1].length)}}}}return[t=t.substring(n.length,t.length-n.length),r]},n.prototype.patch_addPadding=function(e){for(var t=this.Patch_Margin,o="",r=1;r<=t;r++)o+=String.fromCharCode(r);for(r=0;r<e.length;r++)e[r].start1+=t,e[r].start2+=t;var i=e[0],a=i.diffs;if(0==a.length||0!=a[0][0])a.unshift(new n.Diff(0,o)),i.start1-=t,i.start2-=t,i.length1+=t,i.length2+=t;else if(t>a[0][1].length){var s=t-a[0][1].length;a[0][1]=o.substring(a[0][1].length)+a[0][1],i.start1-=s,i.start2-=s,i.length1+=s,i.length2+=s}if(0==(a=(i=e[e.length-1]).diffs).length||0!=a[a.length-1][0])a.push(new n.Diff(0,o)),i.length1+=t,i.length2+=t;else if(t>a[a.length-1][1].length){s=t-a[a.length-1][1].length;a[a.length-1][1]+=o.substring(0,s),i.length1+=s,i.length2+=s}return o},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,o=0;o<e.length;o++)if(!(e[o].length1<=t)){var r=e[o];e.splice(o--,1);for(var i=r.start1,a=r.start2,s="";0!==r.diffs.length;){var c=new n.patch_obj,l=!0;for(c.start1=i-s.length,c.start2=a-s.length,""!==s&&(c.length1=c.length2=s.length,c.diffs.push(new n.Diff(0,s)));0!==r.diffs.length&&c.length1<t-this.Patch_Margin;){var u=r.diffs[0][0],d=r.diffs[0][1];1===u?(c.length2+=d.length,a+=d.length,c.diffs.push(r.diffs.shift()),l=!1):-1===u&&1==c.diffs.length&&0==c.diffs[0][0]&&d.length>2*t?(c.length1+=d.length,i+=d.length,l=!1,c.diffs.push(new n.Diff(u,d)),r.diffs.shift()):(d=d.substring(0,t-c.length1-this.Patch_Margin),c.length1+=d.length,i+=d.length,0===u?(c.length2+=d.length,a+=d.length):l=!1,c.diffs.push(new n.Diff(u,d)),d==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(d.length))}s=(s=this.diff_text2(c.diffs)).substring(s.length-this.Patch_Margin);var h=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);""!==h&&(c.length1+=h.length,c.length2+=h.length,0!==c.diffs.length&&0===c.diffs[c.diffs.length-1][0]?c.diffs[c.diffs.length-1][1]+=h:c.diffs.push(new n.Diff(0,h))),l||e.splice(++o,0,c)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},n.prototype.patch_fromText=function(e){var t=[];if(!e)return t;for(var o=e.split("\n"),r=0,i=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;r<o.length;){var a=o[r].match(i);if(!a)throw new Error("Invalid patch string: "+o[r]);var s=new n.patch_obj;for(t.push(s),s.start1=parseInt(a[1],10),""===a[2]?(s.start1--,s.length1=1):"0"==a[2]?s.length1=0:(s.start1--,s.length1=parseInt(a[2],10)),s.start2=parseInt(a[3],10),""===a[4]?(s.start2--,s.length2=1):"0"==a[4]?s.length2=0:(s.start2--,s.length2=parseInt(a[4],10)),r++;r<o.length;){var c=o[r].charAt(0);try{var l=decodeURI(o[r].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+l)}if("-"==c)s.diffs.push(new n.Diff(-1,l));else if("+"==c)s.diffs.push(new n.Diff(1,l));else if(" "==c)s.diffs.push(new n.Diff(0,l));else{if("@"==c)break;if(""!==c)throw new Error('Invalid patch mode "'+c+'" in: '+l)}r++}}return t},(n.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case 1:e="+";break;case-1:e="-";break;case 0:e=" "}t[n+1]=e+encodeURI(this.diffs[n][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=n,e.exports.diff_match_patch=n,e.exports.DIFF_DELETE=-1,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},function(e,t,n){"use strict";function o(e,t,n){var r;return"#text"===e.nodeName?r=n.document.createTextNode(e.data):"#comment"===e.nodeName?r=n.document.createComment(e.data):("svg"===e.nodeName||t?(r=n.document.createElementNS("http://www.w3.org/2000/svg",e.nodeName),t=!0):r=n.document.createElement(e.nodeName),e.attributes&&Object.entries(e.attributes).forEach((function(e){var t=e[0],n=e[1];return r.setAttribute(t,n)})),e.childNodes&&e.childNodes.forEach((function(e){return r.appendChild(o(e,t,n))})),n.valueDiffing&&(e.value&&(r.value=e.value),e.checked&&(r.checked=e.checked),e.selected&&(r.selected=e.selected))),r}function r(e,t){for(t=t.slice();t.length>0;){if(!e.childNodes)return!1;var n=t.splice(0,1)[0];e=e.childNodes[n]}return e}function i(e,t,n){var i,a,s,c,l=r(e,t[n._const.route]),u={diff:t,node:l};if(n.preDiffApply(u))return!0;switch(t[n._const.action]){case n._const.addAttribute:if(!l||!l.setAttribute)return!1;l.setAttribute(t[n._const.name],t[n._const.value]);break;case n._const.modifyAttribute:if(!l||!l.setAttribute)return!1;l.setAttribute(t[n._const.name],t[n._const.newValue]),"INPUT"===l.nodeName&&"value"===t[n._const.name]&&(l.value=t[n._const.newValue]);break;case n._const.removeAttribute:if(!l||!l.removeAttribute)return!1;l.removeAttribute(t[n._const.name]);break;case n._const.modifyTextElement:if(!l||3!==l.nodeType)return!1;n.textDiff(l,l.data,t[n._const.oldValue],t[n._const.newValue]);break;case n._const.modifyValue:if(!l||void 0===l.value)return!1;l.value=t[n._const.newValue];break;case n._const.modifyComment:if(!l||void 0===l.data)return!1;n.textDiff(l,l.data,t[n._const.oldValue],t[n._const.newValue]);break;case n._const.modifyChecked:if(!l||void 0===l.checked)return!1;l.checked=t[n._const.newValue];break;case n._const.modifySelected:if(!l||void 0===l.selected)return!1;l.selected=t[n._const.newValue];break;case n._const.replaceElement:l.parentNode.replaceChild(o(t[n._const.newValue],"http://www.w3.org/2000/svg"===l.namespaceURI,n),l);break;case n._const.relocateGroup:Array.apply(void 0,new Array(t.groupLength)).map((function(){return l.removeChild(l.childNodes[t[n._const.from]])})).forEach((function(e,o){0===o&&(a=l.childNodes[t[n._const.to]]),l.insertBefore(e,a||null)}));break;case n._const.removeElement:l.parentNode.removeChild(l);break;case n._const.addElement:c=(s=t[n._const.route].slice()).splice(s.length-1,1)[0],(l=r(e,s)).insertBefore(o(t[n._const.element],"http://www.w3.org/2000/svg"===l.namespaceURI,n),l.childNodes[c]||null);break;case n._const.removeTextElement:if(!l||3!==l.nodeType)return!1;l.parentNode.removeChild(l);break;case n._const.addTextElement:if(c=(s=t[n._const.route].slice()).splice(s.length-1,1)[0],i=n.document.createTextNode(t[n._const.value]),!(l=r(e,s))||!l.childNodes)return!1;l.insertBefore(i,l.childNodes[c]||null);break;default:console.log("unknown action")}return u.newNode=i,n.postDiffApply(u),!0}function a(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function s(e,t,n){t.length||(t=[t]),(t=t.slice()).reverse(),t.forEach((function(t){!function(e,t,n){switch(t[n._const.action]){case n._const.addAttribute:t[n._const.action]=n._const.removeAttribute,i(e,t,n);break;case n._const.modifyAttribute:a(t,n._const.oldValue,n._const.newValue),i(e,t,n);break;case n._const.removeAttribute:t[n._const.action]=n._const.addAttribute,i(e,t,n);break;case n._const.modifyTextElement:case n._const.modifyValue:case n._const.modifyComment:case n._const.modifyChecked:case n._const.modifySelected:case n._const.replaceElement:a(t,n._const.oldValue,n._const.newValue),i(e,t,n);break;case n._const.relocateGroup:a(t,n._const.from,n._const.to),i(e,t,n);break;case n._const.removeElement:t[n._const.action]=n._const.addElement,i(e,t,n);break;case n._const.addElement:t[n._const.action]=n._const.removeElement,i(e,t,n);break;case n._const.removeTextElement:t[n._const.action]=n._const.addTextElement,i(e,t,n);break;case n._const.addTextElement:t[n._const.action]=n._const.removeTextElement,i(e,t,n);break;default:console.log("unknown action")}}(e,t,n)}))}Object.defineProperty(t,"__esModule",{value:!0});var c=function(e){var t=this;void 0===e&&(e={}),Object.entries(e).forEach((function(e){var n=e[0],o=e[1];return t[n]=o}))};function l(e){var t=[];return"#text"!==e.nodeName&&"#comment"!==e.nodeName&&(t.push(e.nodeName),e.attributes&&(e.attributes.class&&t.push(e.nodeName+"."+e.attributes.class.replace(/ /g,".")),e.attributes.id&&t.push(e.nodeName+"#"+e.attributes.id))),t}function u(e){var t={},n={};return e.forEach((function(e){l(e).forEach((function(e){var o=e in t;o||e in n?o&&(delete t[e],n[e]=!0):t[e]=!0}))})),t}function d(e,t){var n=u(e),o=u(t),r={};return Object.keys(n).forEach((function(e){o[e]&&(r[e]=!0)})),r}function h(e){return delete e.outerDone,delete e.innerDone,delete e.valueDone,!e.childNodes||e.childNodes.every(h)}function p(e,t){if(!["nodeName","value","checked","selected","data"].every((function(n){return e[n]===t[n]})))return!1;if(Boolean(e.attributes)!==Boolean(t.attributes))return!1;if(Boolean(e.childNodes)!==Boolean(t.childNodes))return!1;if(e.attributes){var n=Object.keys(e.attributes),o=Object.keys(t.attributes);if(n.length!==o.length)return!1;if(!n.every((function(n){return e.attributes[n]===t.attributes[n]})))return!1}if(e.childNodes){if(e.childNodes.length!==t.childNodes.length)return!1;if(!e.childNodes.every((function(e,n){return p(e,t.childNodes[n])})))return!1}return!0}function m(e,t,n,o,r){if(!e||!t)return!1;if(e.nodeName!==t.nodeName)return!1;if("#text"===e.nodeName)return!!r||e.data===t.data;if(e.nodeName in n)return!0;if(e.attributes&&t.attributes){if(e.attributes.id){if(e.attributes.id!==t.attributes.id)return!1;if(e.nodeName+"#"+e.attributes.id in n)return!0}if(e.attributes.class&&e.attributes.class===t.attributes.class&&e.nodeName+"."+e.attributes.class.replace(/ /g,".")in n)return!0}if(o)return!0;var i=e.childNodes?e.childNodes.slice().reverse():[],a=t.childNodes?t.childNodes.slice().reverse():[];if(i.length!==a.length)return!1;if(r)return i.every((function(e,t){return e.nodeName===a[t].nodeName}));var s=d(i,a);return i.every((function(e,t){return m(e,a[t],s,!0,!0)}))}function g(e){return JSON.parse(JSON.stringify(e))}function f(e,t,n,o){var r=0,i=[],a=e.length,s=t.length,c=Array.apply(void 0,new Array(a+1)).map((function(){return[]})),u=d(e,t),h=a===s;h&&e.some((function(e,n){var o=l(e),r=l(t[n]);return o.length!==r.length?(h=!1,!0):(o.some((function(e,t){if(e!==r[t])return h=!1,!0})),!h||void 0)}));for(var p=0;p<a;p++)for(var g=e[p],f=0;f<s;f++){var _=t[f];n[p]||o[f]||!m(g,_,u,h)?c[p+1][f+1]=0:(c[p+1][f+1]=c[p][f]?c[p][f]+1:1,c[p+1][f+1]>=r&&(r=c[p+1][f+1],i=[p+1,f+1]))}return 0!==r&&{oldValue:i[0]-r,newValue:i[1]-r,length:r}}function _(e,t){return Array.apply(void 0,new Array(e)).map((function(){return t}))}c.prototype.toString=function(){return JSON.stringify(this)},c.prototype.setValue=function(e,t){return this[e]=t,this};var b=function(){this.list=[]};function v(e,t){var n,o,r=e;for(t=t.slice();t.length>0;){if(!r.childNodes)return!1;o=t.splice(0,1)[0],n=r,r=r.childNodes[o]}return{node:r,parentNode:n,nodeIndex:o}}function E(e,t,n){return t.forEach((function(t){!function(e,t,n){var o,r,i,a=v(e,t[n._const.route]),s=a.node,c=a.parentNode,l=a.nodeIndex,u=[],d={diff:t,node:s};if(n.preDiffApply(d))return!0;switch(t[n._const.action]){case n._const.addAttribute:s.attributes||(s.attributes={}),s.attributes[t[n._const.name]]=t[n._const.value],"checked"===t[n._const.name]?s.checked=!0:"selected"===t[n._const.name]?s.selected=!0:"INPUT"===s.nodeName&&"value"===t[n._const.name]&&(s.value=t[n._const.value]);break;case n._const.modifyAttribute:s.attributes[t[n._const.name]]=t[n._const.newValue];break;case n._const.removeAttribute:delete s.attributes[t[n._const.name]],0===Object.keys(s.attributes).length&&delete s.attributes,"checked"===t[n._const.name]?s.checked=!1:"selected"===t[n._const.name]?delete s.selected:"INPUT"===s.nodeName&&"value"===t[n._const.name]&&delete s.value;break;case n._const.modifyTextElement:s.data=t[n._const.newValue];break;case n._const.modifyValue:s.value=t[n._const.newValue];break;case n._const.modifyComment:s.data=t[n._const.newValue];break;case n._const.modifyChecked:s.checked=t[n._const.newValue];break;case n._const.modifySelected:s.selected=t[n._const.newValue];break;case n._const.replaceElement:(o=g(t[n._const.newValue])).outerDone=!0,o.innerDone=!0,o.valueDone=!0,c.childNodes[l]=o;break;case n._const.relocateGroup:s.childNodes.splice(t[n._const.from],t.groupLength).reverse().forEach((function(e){return s.childNodes.splice(t[n._const.to],0,e)})),s.subsets&&s.subsets.forEach((function(e){if(t[n._const.from]<t[n._const.to]&&e.oldValue<=t[n._const.to]&&e.oldValue>t[n._const.from]){e.oldValue-=t.groupLength;var o=e.oldValue+e.length-t[n._const.to];o>0&&(u.push({oldValue:t[n._const.to]+t.groupLength,newValue:e.newValue+e.length-o,length:o}),e.length-=o)}else if(t[n._const.from]>t[n._const.to]&&e.oldValue>t[n._const.to]&&e.oldValue<t[n._const.from]){e.oldValue+=t.groupLength;var r=e.oldValue+e.length-t[n._const.to];r>0&&(u.push({oldValue:t[n._const.to]+t.groupLength,newValue:e.newValue+e.length-r,length:r}),e.length-=r)}else e.oldValue===t[n._const.from]&&(e.oldValue=t[n._const.to])}));break;case n._const.removeElement:c.childNodes.splice(l,1),c.subsets&&c.subsets.forEach((function(e){e.oldValue>l?e.oldValue-=1:e.oldValue===l?e.delete=!0:e.oldValue<l&&e.oldValue+e.length>l&&(e.oldValue+e.length-1===l?e.length--:(u.push({newValue:e.newValue+l-e.oldValue,oldValue:l,length:e.length-l+e.oldValue-1}),e.length=l-e.oldValue))})),s=c;break;case n._const.addElement:r=t[n._const.route].slice(),i=r.splice(r.length-1,1)[0],s=v(e,r).node,(o=g(t[n._const.element])).outerDone=!0,o.innerDone=!0,o.valueDone=!0,s.childNodes||(s.childNodes=[]),i>=s.childNodes.length?s.childNodes.push(o):s.childNodes.splice(i,0,o),s.subsets&&s.subsets.forEach((function(e){if(e.oldValue>=i)e.oldValue+=1;else if(e.oldValue<i&&e.oldValue+e.length>i){var t=e.oldValue+e.length-i;u.push({newValue:e.newValue+e.length-t,oldValue:i+1,length:t}),e.length-=t}}));break;case n._const.removeTextElement:c.childNodes.splice(l,1),"TEXTAREA"===c.nodeName&&delete c.value,c.subsets&&c.subsets.forEach((function(e){e.oldValue>l?e.oldValue-=1:e.oldValue===l?e.delete=!0:e.oldValue<l&&e.oldValue+e.length>l&&(e.oldValue+e.length-1===l?e.length--:(u.push({newValue:e.newValue+l-e.oldValue,oldValue:l,length:e.length-l+e.oldValue-1}),e.length=l-e.oldValue))})),s=c;break;case n._const.addTextElement:r=t[n._const.route].slice(),i=r.splice(r.length-1,1)[0],(o={}).nodeName="#text",o.data=t[n._const.value],(s=v(e,r).node).childNodes||(s.childNodes=[]),i>=s.childNodes.length?s.childNodes.push(o):s.childNodes.splice(i,0,o),"TEXTAREA"===s.nodeName&&(s.value=t[n._const.newValue]),s.subsets&&s.subsets.forEach((function(e){if(e.oldValue>=i&&(e.oldValue+=1),e.oldValue<i&&e.oldValue+e.length>i){var t=e.oldValue+e.length-i;u.push({newValue:e.newValue+e.length-t,oldValue:i+1,length:t}),e.length-=t}}));break;default:console.log("unknown action")}s.subsets&&(s.subsets=s.subsets.filter((function(e){return!e.delete&&e.oldValue!==e.newValue})),u.length&&(s.subsets=s.subsets.concat(u))),d.newNode=o,n.postDiffApply(d)}(e,t,n)})),!0}function y(e,t){void 0===t&&(t={});var n={};return n.nodeName=e.nodeName,"#text"===n.nodeName||"#comment"===n.nodeName?n.data=e.data:(e.attributes&&e.attributes.length>0&&(n.attributes={},Array.prototype.slice.call(e.attributes).forEach((function(e){return n.attributes[e.name]=e.value}))),"TEXTAREA"===n.nodeName?n.value=e.value:e.childNodes&&e.childNodes.length>0&&(n.childNodes=[],Array.prototype.slice.call(e.childNodes).forEach((function(e){return n.childNodes.push(y(e,t))}))),t.valueDiffing&&(void 0!==e.checked&&e.type&&["radio","checkbox"].includes(e.type.toLowerCase())?n.checked=e.checked:void 0!==e.value&&(n.value=e.value),void 0!==e.selected&&(n.selected=e.selected))),n}b.prototype.add=function(e){var t;(t=this.list).push.apply(t,e)},b.prototype.forEach=function(e){this.list.forEach((function(t){return e(t)}))};var S=/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g,T=Object.create?Object.create(null):{},w=/\s([^'"\/\s><]+?)[\s\/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function C(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}var x={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuItem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function O(e,t){void 0===t&&(t={components:T});var n,o=[],r=-1,i=[],a={},s=!1;return e.replace(S,(function(c,l){if(s){if(c!=="</"+n.nodeName+">")return;s=!1}var u,d="/"!==c.charAt(1),h=l+c.length,p=e.charAt(h);if(d&&(r++,"tag"===(n=function(e){var t={nodeName:"",attributes:{}},n=e.match(/<\/?([^\s]+?)[\/\s>]/);n&&(t.nodeName=n[1].toUpperCase(),(x[n[1].toLowerCase()]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0));for(var o=new RegExp(w),r=null,i=!1;!i;)if(null===(r=o.exec(e)))i=!0;else if(r[0].trim())if(r[1]){var a=r[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attributes[s[0]]=s[1],o.lastIndex--}else r[2]&&(t.attributes[r[2]]=r[3].trim().substring(1,r[3].length-1));return t}(c)).type&&t.components[n.nodeName]&&(n.type="component",s=!0),n.voidElement||s||!p||"<"===p||(n.childNodes||(n.childNodes=[]),n.childNodes.push({nodeName:"#text",data:C(e.slice(h,e.indexOf("<",h)))})),a[n.tagName]=n,0===r&&o.push(n),(u=i[r-1])&&(u.childNodes||(u.childNodes=[]),u.childNodes.push(n)),i[r]=n),(!d||n.voidElement)&&(r--,!s&&"<"!==p&&p)){u=-1===r?o:i[r].childNodes||[];var m=e.indexOf("<",h),g=C(e.slice(h,-1===m?void 0:m));u.push({nodeName:"#text",data:g})}})),o[0]}function k(e){return function e(t){return delete t.voidElement,t.childNodes&&t.childNodes.forEach((function(t){return e(t)})),t}(O(e))}var R=function(e,t,n){this.options=n,this.t1=e instanceof HTMLElement?y(e,this.options):"string"==typeof e?k(e,this.options):JSON.parse(JSON.stringify(e)),this.t2=t instanceof HTMLElement?y(t,this.options):"string"==typeof t?k(t,this.options):JSON.parse(JSON.stringify(t)),this.diffcount=0,this.foundAll=!1,this.debug&&(this.t1Orig=y(e,this.options),this.t2Orig=y(t,this.options)),this.tracker=new b};R.prototype.init=function(){return this.findDiffs(this.t1,this.t2)},R.prototype.findDiffs=function(e,t){var n;do{if(this.options.debug&&(this.diffcount+=1,this.diffcount>this.options.diffcap))throw window.diffError=[this.t1Orig,this.t2Orig],new Error("surpassed diffcap:"+JSON.stringify(this.t1Orig)+" -> "+JSON.stringify(this.t2Orig));0===(n=this.findNextDiff(e,t,[])).length&&(p(e,t)||(this.foundAll?console.error("Could not find remaining diffs!"):(this.foundAll=!0,h(e),n=this.findNextDiff(e,t,[])))),n.length>0&&(this.foundAll=!1,this.tracker.add(n),E(e,n,this.options))}while(n.length>0);return this.tracker.list},R.prototype.findNextDiff=function(e,t,n){var o,r;if(this.options.maxDepth&&n.length>this.options.maxDepth)return[];if(!e.outerDone){if(o=this.findOuterDiff(e,t,n),this.options.filterOuterDiff&&(r=this.options.filterOuterDiff(e,t,o))&&(o=r),o.length>0)return e.outerDone=!0,o;e.outerDone=!0}if(!e.innerDone){if((o=this.findInnerDiff(e,t,n)).length>0)return o;e.innerDone=!0}if(this.options.valueDiffing&&!e.valueDone){if((o=this.findValueDiff(e,t,n)).length>0)return e.valueDone=!0,o;e.valueDone=!0}return[]},R.prototype.findOuterDiff=function(e,t,n){var o,r,i,a,s,l,u=[];if(e.nodeName!==t.nodeName){if(!n.length)throw new Error("Top level nodes have to be of the same kind.");return[(new c).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,g(e)).setValue(this.options._const.newValue,g(t)).setValue(this.options._const.route,n)]}if(n.length&&this.options.maxNodeDiffCount<Math.abs((e.childNodes||[]).length-(t.childNodes||[]).length))return[(new c).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,g(e)).setValue(this.options._const.newValue,g(t)).setValue(this.options._const.route,n)];if(e.data!==t.data)return"#text"===e.nodeName?[(new c).setValue(this.options._const.action,this.options._const.modifyTextElement).setValue(this.options._const.route,n).setValue(this.options._const.oldValue,e.data).setValue(this.options._const.newValue,t.data)]:[(new c).setValue(this.options._const.action,this.options._const.modifyComment).setValue(this.options._const.route,n).setValue(this.options._const.oldValue,e.data).setValue(this.options._const.newValue,t.data)];for(r=e.attributes?Object.keys(e.attributes).sort():[],i=t.attributes?Object.keys(t.attributes).sort():[],a=r.length,l=0;l<a;l++)o=r[l],-1===(s=i.indexOf(o))?u.push((new c).setValue(this.options._const.action,this.options._const.removeAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,o).setValue(this.options._const.value,e.attributes[o])):(i.splice(s,1),e.attributes[o]!==t.attributes[o]&&u.push((new c).setValue(this.options._const.action,this.options._const.modifyAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,o).setValue(this.options._const.oldValue,e.attributes[o]).setValue(this.options._const.newValue,t.attributes[o])));for(a=i.length,l=0;l<a;l++)o=i[l],u.push((new c).setValue(this.options._const.action,this.options._const.addAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,o).setValue(this.options._const.value,t.attributes[o]));return u},R.prototype.findInnerDiff=function(e,t,n){var o=e.childNodes?e.childNodes.slice():[],r=t.childNodes?t.childNodes.slice():[],i=Math.max(o.length,r.length),a=Math.abs(o.length-r.length),s=[],l=0;if(!this.options.maxChildCount||i<this.options.maxChildCount){var u=e.subsets&&e.subsetsAge--?e.subsets:e.childNodes&&t.childNodes?function(e,t){for(var n=e.childNodes?e.childNodes:[],o=t.childNodes?t.childNodes:[],r=_(n.length,!1),i=_(o.length,!1),a=[],s=!0,c=function(){return arguments[1]};s;)(s=f(n,o,r,i))&&(a.push(s),Array.apply(void 0,new Array(s.length)).map(c).forEach((function(e){return t=e,r[s.oldValue+t]=!0,void(i[s.newValue+t]=!0);var t})));return e.subsets=a,e.subsetsAge=100,a}(e,t):[];if(u.length>0&&(s=this.attemptGroupRelocation(e,t,u,n)).length>0)return s}for(var d=0;d<i;d+=1){var h=o[d],m=r[d];a&&(h&&!m?"#text"===h.nodeName?(s.push((new c).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.value,h.data)),l-=1):(s.push((new c).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.element,g(h))),l-=1):m&&!h&&("#text"===m.nodeName?s.push((new c).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.value,m.data)):s.push((new c).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.element,g(m))))),h&&m&&(!this.options.maxChildCount||i<this.options.maxChildCount?s=s.concat(this.findNextDiff(h,m,n.concat(l))):p(h,m)||(o.length>r.length?(s=s.concat([(new c).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.element,g(h)).setValue(this.options._const.route,n.concat(l))]),o.splice(d,1),l-=1,a-=1):o.length<r.length?(s=s.concat([(new c).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.element,g(m)).setValue(this.options._const.route,n.concat(l))]),o.splice(d,0,{}),a-=1):s=s.concat([(new c).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,g(h)).setValue(this.options._const.newValue,g(m)).setValue(this.options._const.route,n.concat(l))]))),l+=1}return e.innerDone=!0,s},R.prototype.attemptGroupRelocation=function(e,t,n,o){for(var r,i,a,s,l,u,d=function(e,t,n){var o=e.childNodes?_(e.childNodes.length,!0):[],r=t.childNodes?_(t.childNodes.length,!0):[],i=0;return n.forEach((function(e){for(var t=e.oldValue+e.length,n=e.newValue+e.length,a=e.oldValue;a<t;a+=1)o[a]=i;for(var s=e.newValue;s<n;s+=1)r[s]=i;i+=1})),{gaps1:o,gaps2:r}}(e,t,n),h=d.gaps1,p=d.gaps2,f=Math.min(h.length,p.length),b=[],v=0,E=0;v<f;E+=1,v+=1)if(!0===h[v])if("#text"===(s=e.childNodes[E]).nodeName){if("#text"===t.childNodes[v].nodeName&&s.data!==t.childNodes[v].data){for(u=E;e.childNodes.length>u+1&&"#text"===e.childNodes[u+1].nodeName;)if(u+=1,t.childNodes[v].data===e.childNodes[u].data){l=!0;break}if(!l)return b.push((new c).setValue(this.options._const.action,this.options._const.modifyTextElement).setValue(this.options._const.route,o.concat(v)).setValue(this.options._const.oldValue,s.data).setValue(this.options._const.newValue,t.childNodes[v].data)),b}b.push((new c).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,o.concat(v)).setValue(this.options._const.value,s.data)),h.splice(v,1),f=Math.min(h.length,p.length),v-=1}else b.push((new c).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,o.concat(v)).setValue(this.options._const.element,g(s))),h.splice(v,1),f=Math.min(h.length,p.length),v-=1;else if(!0===p[v])"#text"===(s=t.childNodes[v]).nodeName?(b.push((new c).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,o.concat(v)).setValue(this.options._const.value,s.data)),h.splice(v,0,!0),f=Math.min(h.length,p.length),E-=1):(b.push((new c).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,o.concat(v)).setValue(this.options._const.element,g(s))),h.splice(v,0,!0),f=Math.min(h.length,p.length),E-=1);else if(h[v]!==p[v]){if(b.length>0)return b;if(a=n[h[v]],(i=Math.min(a.newValue,e.childNodes.length-a.length))!==a.oldValue){r=!1;for(var y=0;y<a.length;y+=1)m(e.childNodes[i+y],e.childNodes[a.oldValue+y],[],!1,!0)||(r=!0);if(r)return[(new c).setValue(this.options._const.action,this.options._const.relocateGroup).setValue("groupLength",a.length).setValue(this.options._const.from,a.oldValue).setValue(this.options._const.to,i).setValue(this.options._const.route,o)]}}return b},R.prototype.findValueDiff=function(e,t,n){var o=[];return e.selected!==t.selected&&o.push((new c).setValue(this.options._const.action,this.options._const.modifySelected).setValue(this.options._const.oldValue,e.selected).setValue(this.options._const.newValue,t.selected).setValue(this.options._const.route,n)),(e.value||t.value)&&e.value!==t.value&&"OPTION"!==e.nodeName&&o.push((new c).setValue(this.options._const.action,this.options._const.modifyValue).setValue(this.options._const.oldValue,e.value||"").setValue(this.options._const.newValue,t.value||"").setValue(this.options._const.route,n)),e.checked!==t.checked&&o.push((new c).setValue(this.options._const.action,this.options._const.modifyChecked).setValue(this.options._const.oldValue,e.checked).setValue(this.options._const.newValue,t.checked).setValue(this.options._const.route,n)),o};var A={debug:!1,diffcap:10,maxDepth:!1,maxChildCount:50,valueDiffing:!0,textDiff:function(e,t,n,o){e.data=o},preVirtualDiffApply:function(){},postVirtualDiffApply:function(){},preDiffApply:function(){},postDiffApply:function(){},filterOuterDiff:null,compress:!1,_const:!1,document:!(!window||!window.document)&&window.document},I=function(e){var t=this;if(void 0===e&&(e={}),this.options=e,Object.entries(A).forEach((function(e){var n=e[0],o=e[1];Object.prototype.hasOwnProperty.call(t.options,n)||(t.options[n]=o)})),!this.options._const){var n=["addAttribute","modifyAttribute","removeAttribute","modifyTextElement","relocateGroup","removeElement","addElement","removeTextElement","addTextElement","replaceElement","modifyValue","modifyChecked","modifySelected","modifyComment","action","route","oldValue","newValue","element","group","from","to","name","value","data","attributes","nodeName","childNodes","checked","selected"];this.options._const={},this.options.compress?n.forEach((function(e,n){return t.options._const[e]=n})):n.forEach((function(e){return t.options._const[e]=e}))}this.DiffFinder=R};I.prototype.apply=function(e,t){return function(e,t,n){return t.every((function(t){return i(e,t,n)}))}(e,t,this.options)},I.prototype.undo=function(e,t){return s(e,t,this.options)},I.prototype.diff=function(e,t){return new this.DiffFinder(e,t,this.options).init()};var D=function(e){var t=this;void 0===e&&(e={}),this.pad="│ ",this.padding="",this.tick=1,this.messages=[];var n=function(e,n){var o=e[n];e[n]=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];t.fin(n,Array.prototype.slice.call(r));var a=o.apply(e,r);return t.fout(n,a),a}};for(var o in e)"function"==typeof e[o]&&n(e,o);this.log("┌ TRACELOG START")};D.prototype.fin=function(e,t){this.padding+=this.pad,this.log("├─> entering "+e,t)},D.prototype.fout=function(e,t){this.log("│<──┘ generated return value",t),this.padding=this.padding.substring(0,this.padding.length-this.pad.length)},D.prototype.format=function(e,t){return function(e){for(e=""+e;e.length<4;)e="0"+e;return e}(t)+"> "+this.padding+e},D.prototype.log=function(){var e=Array.prototype.slice.call(arguments),t=function(e){return e?"string"==typeof e?e:e instanceof HTMLElement?e.outerHTML||"<empty>":e instanceof Array?"["+e.map(t).join(",")+"]":e.toString()||e.valueOf()||"<unknown>":"<falsey>"};e=e.map(t).join(", "),this.messages.push(this.format(e,this.tick++))},D.prototype.toString=function(){for(var e="└───";e.length<=this.padding.length+this.pad.length;)e+="× ";var t=this.padding;return this.padding="",e=this.format(e,this.tick),this.padding=t,this.messages.join("\n")+"\n"+e},t.DiffDOM=I,t.TraceLogger=D,t.nodeToObj=y,t.stringToObj=k},function(e,t){e.exports="img/icons-show-stickers.4e420bf.svg"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return R}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(135),c=n.n(s),l=n(84),u=n.n(l),d=n(790),h=n.n(d),p=n(121),m=n(126),g=n(85),f=n(89),_=n(87),b=n(83),v=n(100),E=n(88),y=n(238),S=n(791),T=n(160),w=n(108),C=n(375),x=n(113);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class R extends a.a.Component{constructor(t){super(t),r()(this,"onCancelClick",t=>{this.setState({widgetHidden:!0}),e.localStorage&&e.localStorage.setItem("hide_preview_"+this.props.mxEvent.getId(),"1"),this.forceUpdate()}),r()(this,"onEmoteSenderClick",e=>{const t=this.props.mxEvent;_.a.dispatch({action:"insert_mention",user_id:t.getSender()})}),r()(this,"getEventTileOps",()=>({isWidgetHidden:()=>this.state.widgetHidden,unhideWidget:()=>{this.setState({widgetHidden:!1}),e.localStorage&&e.localStorage.removeItem("hide_preview_"+this.props.mxEvent.getId())}})),r()(this,"onStarterLinkClick",(e,t)=>{t.preventDefault();const n=T.a.sharedInstance();if(!n.hasManager())return void n.openNoManagerDialog();const o=n.getPrimaryManager(),r=o.getScalarClient();r.connect().then(()=>{const t=r.getStarterLink(e),n=g.getComponent("dialogs.QuestionDialog"),i=o.uiUrl;f.a.createTrackedDialog("Add an integration","",n,{title:Object(b.a)("Add an Integration"),description:a.a.createElement("div",null,Object(b.a)("You are about to be taken to a third-party site so you can authenticate your account for use with %(integrationsUrl)s. Do you wish to continue?",{integrationsUrl:i})),button:Object(b.a)("Continue"),onFinished(e){if(!e)return;const n=window.screen.width>1024?1024:window.screen.width,o=window.screen.height>800?800:window.screen.height,r=(window.screen.width-n)/2,i=`height=${o}, width=${n}, top=${(window.screen.height-o)/2}, left=${r},`;window.open(t,"_blank",i).opener=null}})})}),r()(this,"_openHistoryDialog",async()=>{const e=g.getComponent("views.dialogs.MessageEditHistoryDialog");f.a.createDialog(e,{mxEvent:this.props.mxEvent})}),this._content=Object(i.createRef)(),this.state={links:[],widgetHidden:!1}}componentDidMount(){this._unmounted=!1,this._pills=[],this.props.editState||this._applyFormatting()}_applyFormatting(){if(this.activateSpoilers([this._content.current]),Object(S.a)([this._content.current],this.props.mxEvent,this._pills),p.f(this._content.current),this.calculateUrlPreview(),"org.matrix.custom.html"===this.props.mxEvent.getContent().format){const e=c.a.findDOMNode(this).getElementsByTagName("code");e.length>0&&setTimeout(()=>{if(!this._unmounted)for(let t=0;t<e.length;t++)if(E.a.getValue("enableSyntaxHighlightLanguageDetection"))h.a.highlightBlock(e[t]);else{0!=e[t].className.split(/\s+/).filter((function(e){return e.startsWith("language-")&&!e.startsWith("language-_")})).length&&h.a.highlightBlock(e[t])}},10),this._addCodeCopyButton()}}componentDidUpdate(e){if(!this.props.editState){const t=e.editState&&!this.props.editState;(e.replacingEventId!==this.props.replacingEventId||t)&&this._applyFormatting()}}componentWillUnmount(){this._unmounted=!0,Object(S.b)(this._pills)}shouldComponentUpdate(e,t){return e.mxEvent.getId()!==this.props.mxEvent.getId()||e.highlights!==this.props.highlights||e.replacingEventId!==this.props.replacingEventId||e.highlightLink!==this.props.highlightLink||e.showUrlPreview!==this.props.showUrlPreview||e.editState!==this.props.editState||t.links!==this.state.links||t.widgetHidden!==this.state.widgetHidden}calculateUrlPreview(){if(this.props.showUrlPreview){let t=this.findLinks([this._content.current]);if(t.length){const n=new Set;if(t=t.filter(e=>!n.has(e)&&(n.add(e),!0)),this.setState({links:t}),e.localStorage){const t=e.localStorage.getItem("hide_preview_"+this.props.mxEvent.getId());this.setState({widgetHidden:t})}}else this.state.links.length&&this.setState({links:[]})}}activateSpoilers(e){let t=e[0];for(;t;){if("SPAN"===t.tagName&&"string"==typeof t.getAttribute("data-mx-spoiler")){const e=document.createElement("span"),n=t.getAttribute("data-mx-spoiler"),o=g.getComponent("elements.Spoiler");t.removeAttribute("data-mx-spoiler");const r=a.a.createElement(o,{reason:n,contentHtml:t.outerHTML});c.a.render(r,e),t.parentNode.replaceChild(e,t),t=e}t.childNodes&&t.childNodes.length&&this.activateSpoilers(t.childNodes),t=t.nextSibling}}findLinks(e){let t=[];for(let n=0;n<e.length;n++){const o=e[n];if("A"===o.tagName&&o.getAttribute("href"))this.isLinkPreviewable(o)&&t.push(o.getAttribute("href"));else{if("PRE"===o.tagName||"CODE"===o.tagName||"BLOCKQUOTE"===o.tagName)continue;o.children&&o.children.length&&(t=t.concat(this.findLinks(o.children)))}}return t}isLinkPreviewable(e){if(!e.getAttribute("href").startsWith("http://")&&!e.getAttribute("href").startsWith("https://"))return!1;if(e.textContent.indexOf("/")>-1)return!0;{const t=e.getAttribute("href").match(/^https?:\/\/(.*?)(\/|$)/)[1];return!Object(w.c)(t)&&!e.textContent.toLowerCase().trim().startsWith(t.toLowerCase())}}_addCodeCopyButton(){Array.from(c.a.findDOMNode(this).querySelectorAll(".mx_EventTile_body pre")).forEach(e=>{const t=document.createElement("span");t.className="mx_EventTile_copyButton",t.onclick=async()=>{const e=t.parentNode.getElementsByTagName("pre")[0],n=await Object(C.b)(e.textContent),o=t.getBoundingClientRect(),r=g.getComponent("context_menus.GenericTextContextMenu"),{close:i}=v.l(r,k(k({},Object(v.n)(o,2)),{},{message:n?Object(b.a)("Copied!"):Object(b.a)("Failed to copy")}));t.onmouseleave=i};const n=document.createElement("div");n.className="mx_EventTile_pre_container",e.parentNode.replaceChild(n,e),n.appendChild(e),n.appendChild(t)})}_renderEditedMarker(){const e=this.props.mxEvent.replacingEventDate(),t=e&&Object(m.a)(e),n=a.a.createElement("div",null,a.a.createElement("div",{className:"mx_Tooltip_title"},Object(b.a)("Edited at %(date)s",{date:t})),a.a.createElement("div",{className:"mx_Tooltip_sub"},Object(b.a)("Click to view edits")));return a.a.createElement(x.a,{className:"mx_EventTile_edited",onClick:this._openHistoryDialog,title:Object(b.a)("Edited at %(date)s. Click to view edits.",{date:t}),tooltip:n},a.a.createElement("span",null,`(${Object(b.a)("edited")})`))}render(){if(this.props.editState){const e=g.getComponent("rooms.EditMessageComposer");return a.a.createElement(e,{editState:this.props.editState,className:"mx_EventTile_content"})}const e=this.props.mxEvent,t=e.getContent(),n=!e.replacingEvent()&&y.a.getParentEventId(e);let o,r=p.b(t,this.props.highlights,{disableBigEmoji:"m.emote"===t.msgtype||!E.a.getValue("TextualBody.enableBigEmoji"),stripReplyFallback:n,ref:this._content});if(this.props.replacingEventId&&(r=[r,this._renderEditedMarker()]),this.props.highlightLink?r=a.a.createElement("a",{href:this.props.highlightLink},r):t.data&&"string"==typeof t.data["org.matrix.neb.starter_link"]&&(r=a.a.createElement("a",{href:"#",onClick:this.onStarterLinkClick.bind(this,t.data["org.matrix.neb.starter_link"])},r)),this.state.links.length&&!this.state.widgetHidden&&this.props.showUrlPreview){const e=g.getComponent("rooms.LinkPreviewWidget");o=this.state.links.map(t=>a.a.createElement(e,{key:t,link:t,mxEvent:this.props.mxEvent,onCancelClick:this.onCancelClick,onHeightChanged:this.props.onHeightChanged}))}switch(t.msgtype){case"m.emote":return a.a.createElement("span",{className:"mx_MEmoteBody mx_EventTile_content"},"* ",a.a.createElement("span",{className:"mx_MEmoteBody_sender",onClick:this.onEmoteSenderClick},e.sender?e.sender.name:e.getSender())," ",r,o);case"m.notice":return a.a.createElement("span",{className:"mx_MNoticeBody mx_EventTile_content"},r,o);default:return a.a.createElement("span",{className:"mx_MTextBody mx_EventTile_content"},r,o)}}}r()(R,"propTypes",{mxEvent:u.a.object.isRequired,highlights:u.a.array,highlightLink:u.a.string,showUrlPreview:u.a.bool,onHeightChanged:u.a.func,tileShape:u.a.string})}).call(this,n(5))},function(e,t){e.exports="img/plus.53bc1d6.svg"},function(e,t){e.exports="img/stickerpack-placeholder.9c54c13.png"},function(e,t){e.exports="img/room_replaced.80042bb.svg"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(84),c=n.n(s),l=(n(1600),n(83)),u=n(126),d=n(1601),h=n(85),p=n(320);let m=!1;try{e.localStorage&&(m="true"==e.localStorage.getItem("avatar_bounce"))}catch(e){}class g extends a.a.Component{constructor(e){super(e),this._avatar=Object(i.createRef)(),this.state={suppressDisplay:!this.props.suppressAnimation}}componentWillUnmount(){const e=this.props.readReceiptInfo;if(!e)return;if(this.props.checkUnmounting&&this.props.checkUnmounting())return;const t=this._avatar.current;e.top=t.offsetTop,e.left=t.offsetLeft,e.parent=t.offsetParent}componentDidMount(){if(!this.state.suppressDisplay)return;let e=-15;const t=this.props.readReceiptInfo;t&&t.parent&&(e=t.top+t.parent.getBoundingClientRect().top);const n=this._avatar.current;let o;n.offsetParent?o=e-n.offsetParent.getBoundingClientRect().top:(console.warn(`ReadReceiptMarker for ${this.props.fallbackUserId} in has no offsetParent`),o=0);const r=[],i=[];if(t&&t.left){r.push({top:o+"px",left:Object(p.a)(t.left)});const e={duration:100,easing:"easeOut"};i.push(e)}r.push({top:o+"px",left:"0px"}),i.push({duration:m?Math.min(200*Math.log(Math.abs(o)),3e3):300,easing:m?"easeOutBounce":"easeOutCubic"}),this.setState({suppressDisplay:!1,startStyles:r,enterTransitionOpts:i})}render(){const e=h.getComponent("avatars.MemberAvatar");if(this.state.suppressDisplay)return a.a.createElement("div",{ref:this._avatar});const t={left:Object(p.a)(this.props.leftOffset),top:"0px",visibility:this.props.hidden?"hidden":"visible"};let n;if(this.props.timestamp){const e=Object(u.a)(new Date(this.props.timestamp),this.props.showTwelveHour);n=this.props.member&&this.props.fallbackUserId!==this.props.member.rawDisplayName?Object(l.a)("Seen by %(displayName)s (%(userName)s) at %(dateTime)s",{displayName:this.props.member.rawDisplayName,userName:this.props.fallbackUserId,dateTime:e}):Object(l.a)("Seen by %(userName)s at %(dateTime)s",{userName:this.props.fallbackUserId,dateTime:e})}return a.a.createElement(d.a,{startStyles:this.state.startStyles,enterTransitionOpts:this.state.enterTransitionOpts},a.a.createElement(e,{member:this.props.member,fallbackUserId:this.props.fallbackUserId,"aria-hidden":"true",width:14,height:14,resizeMethod:"crop",style:t,title:n,onClick:this.props.onClick,inputRef:this._avatar}))}}r()(g,"propTypes",{member:c.a.object,fallbackUserId:c.a.string.isRequired,leftOffset:c.a.number,hidden:c.a.bool,suppressAnimation:c.a.bool,readReceiptInfo:c.a.object,checkUnmounting:c.a.func,onClick:c.a.func,timestamp:c.a.number,showTwelveHour:c.a.bool}),r()(g,"defaultProps",{leftOffset:0})}).call(this,n(5))},function(e,t,n){"use strict";var o=n(792);n.n(o).a.Easings.easeOutBounce=function(e){return 1-function(e){let t,n=4;for(;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}(1-e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(82),r=n.n(o),i=n(81),a=n.n(i),s=n(135),c=n.n(s),l=n(792),u=n.n(l),d=n(84),h=n.n(d);class p extends a.a.Component{constructor(e){super(e),this.nodes={},this._updateChildren(this.props.children)}componentDidUpdate(){this._updateChildren(this.props.children)}_updateChildren(e){const t=this.children||{};this.children={},a.a.Children.toArray(e).forEach(e=>{if(t[e.key]){const n=t[e.key],o=c.a.findDOMNode(this.nodes[n.key]);o&&o.style.left!==e.props.style.left&&u()(o,{left:e.props.style.left},this.props.transition).then(()=>{"visible"===o.style.visibility&&"hidden"===e.props.style.visibility&&(o.style.visibility=e.props.style.visibility)}),o&&"hidden"===o.style.visibility&&"visible"===e.props.style.visibility&&(o.style.visibility=e.props.style.visibility),this.children[e.key]=a.a.cloneElement(n,e.props,e.props.children)}else{const t={},n=e.props.style,o=this.props.startStyles;if(o.length>0){const e=o[0];t.style=e}t.ref=t=>this._collectNode(e.key,t,n),this.children[e.key]=a.a.cloneElement(e,t)}})}_collectNode(e,t,n){if(t&&void 0===this.nodes[e]&&this.props.startStyles.length>0){const e=this.props.startStyles,r=this.props.enterTransitionOpts,i=c.a.findDOMNode(t);for(var o=1;o<e.length;++o)u()(i,e[o],r[o-1]);u()(i,n,r[o-1]).then(()=>{i.style.visibility=n.visibility})}else if(null===t){const t=c.a.findDOMNode(this.nodes[e]);t&&u.a.Utilities.removeData(t)}this.nodes[e]=t}render(){return a.a.createElement("span",null,Object.values(this.children))}}r()(p,"propTypes",{children:h.a.any,transition:h.a.object,startStyles:h.a.array,enterTransitionOpts:h.a.array}),r()(p,"defaultProps",{startStyles:[],enterTransitionOpts:[]})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{async supportsEventIndexing(){return!0}async initEventIndex(e,t){throw new Error("Unimplemented")}async addEventToIndex(e,t){throw new Error("Unimplemented")}async deleteEvent(e){throw new Error("Unimplemented")}indexIsEmpty(){throw new Error("Unimplemented")}isRoomIndexed(e){throw new Error("Unimplemented")}async getStats(){throw new Error("Unimplemented")}async getUserVersion(){throw new Error("Unimplemented")}async setUserVersion(e){throw new Error("Unimplemented")}async commitLiveEvents(){throw new Error("Unimplemented")}async searchEventIndex(e){throw new Error("Unimplemented")}async addHistoricEvents(e,t,n){throw new Error("Unimplemented")}async addCrawlerCheckpoint(e){throw new Error("Unimplemented")}async removeCrawlerCheckpoint(e){throw new Error("Unimplemented")}async loadCheckpoints(){throw new Error("Unimplemented")}async loadFileEvents(e){throw new Error("Unimplemented")}async closeEventIndex(){throw new Error("Unimplemented")}async deleteEventIndex(){throw new Error("Unimplemented")}}},function(e,t,n){var o;!function(r,i){"use strict";var a="model",s="name",c="type",l="vendor",u="version",d="mobile",h="tablet",p="smarttv",m={extend:function(e,t){var n={};for(var o in e)t[o]&&t[o].length%2==0?n[o]=t[o].concat(e[o]):n[o]=e[o];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},g={rgx:function(e,t){for(var n,o,r,i,a,s,c=0;c<t.length&&!a;){var l=t[c],u=t[c+1];for(n=o=0;n<l.length&&!a;)if(a=l[n++].exec(e))for(r=0;r<u.length;r++)s=a[++o],"object"==typeof(i=u[r])&&i.length>0?2==i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,s):this[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=s?s.replace(i[1],i[2]):void 0:this[i[0]]=s?i[1].call(this,s,i[2]):void 0:4==i.length&&(this[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):void 0):this[i]=s||void 0;c+=2}},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(m.has(t[n][o],e))return"?"===n?void 0:n}else if(m.has(t[n],e))return"?"===n?void 0:n;return e}},f={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},_={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[s,u],[/(opios)[\/\s]+([\w\.]+)/i],[[s,"Opera Mini"],u],[/\s(opr)\/([\w\.]+)/i],[[s,"Opera"],u],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[s,u],[/(konqueror)\/([\w\.]+)/i],[[s,"Konqueror"],u],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[s,"IE"],u],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[s,"Edge"],u],[/(yabrowser)\/([\w\.]+)/i],[[s,"Yandex"],u],[/(Avast)\/([\w\.]+)/i],[[s,"Avast Secure Browser"],u],[/(AVG)\/([\w\.]+)/i],[[s,"AVG Secure Browser"],u],[/(puffin)\/([\w\.]+)/i],[[s,"Puffin"],u],[/(focus)\/([\w\.]+)/i],[[s,"Firefox Focus"],u],[/(opt)\/([\w\.]+)/i],[[s,"Opera Touch"],u],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[s,"UCBrowser"],u],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],u],[/(windowswechat qbcore)\/([\w\.]+)/i],[[s,"WeChat(Win) Desktop"],u],[/(micromessenger)\/([\w\.]+)/i],[[s,"WeChat"],u],[/(brave)\/([\w\.]+)/i],[[s,"Brave"],u],[/(qqbrowserlite)\/([\w\.]+)/i],[s,u],[/(QQ)\/([\d\.]+)/i],[s,u],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[s,u],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[s,u],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[s,u],[/(MetaSr)[\/\s]?([\w\.]+)/i],[s],[/(LBBROWSER)/i],[s],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[u,[s,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[u,[s,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[s,u],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[u,[s,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[s,/(.+)/,"$1 WebView"],u],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[s,/(.+(?:g|us))(.+)/,"$1 $2"],u],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[u,[s,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[s,"Sailfish Browser"],u],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[s,u],[/(dolfin)\/([\w\.]+)/i],[[s,"Dolphin"],u],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[s,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[s,"Chrome"],u],[/(coast)\/([\w\.]+)/i],[[s,"Opera Coast"],u],[/fxios\/([\w\.-]+)/i],[u,[s,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[u,[s,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[u,s],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[s,"GSA"],u],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[s,[u,g.str,f.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[s,u],[/(navigator|netscape)\/([\w\.-]+)/i],[[s,"Netscape"],u],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[s,u]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",m.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",m.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",m.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[a,l,[c,h]],[/applecoremedia\/[\w\.]+ \((ipad)/],[a,[l,"Apple"],[c,h]],[/(apple\s{0,1}tv)/i],[[a,"Apple TV"],[l,"Apple"],[c,p]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[l,a,[c,h]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[a,[l,"Amazon"],[c,h]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[a,g.str,f.device.amazon.model],[l,"Amazon"],[c,d]],[/android.+aft([bms])\sbuild/i],[a,[l,"Amazon"],[c,p]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[a,l,[c,d]],[/\((ip[honed|\s\w*]+);/i],[a,[l,"Apple"],[c,d]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[l,a,[c,d]],[/\(bb10;\s(\w+)/i],[a,[l,"BlackBerry"],[c,d]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[a,[l,"Asus"],[c,h]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[l,"Sony"],[a,"Xperia Tablet"],[c,h]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[l,"Sony"],[c,d]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[l,a,[c,"console"]],[/android.+;\s(shield)\sbuild/i],[a,[l,"Nvidia"],[c,"console"]],[/(playstation\s[34portablevi]+)/i],[a,[l,"Sony"],[c,"console"]],[/(sprint\s(\w+))/i],[[l,g.str,f.device.sprint.vendor],[a,g.str,f.device.sprint.model],[c,d]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[l,[a,/_/g," "],[c,d]],[/(nexus\s9)/i],[a,[l,"HTC"],[c,h]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[a,[l,"Huawei"],[c,d]],[/android.+(bah2?-a?[lw]\d{2})/i],[a,[l,"Huawei"],[c,h]],[/(microsoft);\s(lumia[\s\w]+)/i],[l,a,[c,d]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[a,[l,"Microsoft"],[c,"console"]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[l,"Microsoft"],[c,d]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[a,[l,"Motorola"],[c,d]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[a,[l,"Motorola"],[c,h]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[l,m.trim],[a,m.trim],[c,p]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[l,"Samsung"],[c,p]],[/\(dtv[\);].+(aquos)/i],[a,[l,"Sharp"],[c,p]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[l,"Samsung"],a,[c,h]],[/smart-tv.+(samsung)/i],[l,[c,p],a],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[l,"Samsung"],a,[c,d]],[/sie-(\w*)/i],[a,[l,"Siemens"],[c,d]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[l,"Nokia"],a,[c,d]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[a,[l,"Acer"],[c,h]],[/android.+([vl]k\-?\d{3})\s+build/i],[a,[l,"LG"],[c,h]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[l,"LG"],a,[c,h]],[/(lg) netcast\.tv/i],[l,a,[c,p]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[a,[l,"LG"],[c,d]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[l,a,[c,h]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[a,[l,"Lenovo"],[c,h]],[/(lenovo)[_\s-]?([\w-]+)/i],[l,a,[c,d]],[/linux;.+((jolla));/i],[l,a,[c,d]],[/((pebble))app\/[\d\.]+\s/i],[l,a,[c,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[l,a,[c,d]],[/crkey/i],[[a,"Chromecast"],[l,"Google"],[c,p]],[/android.+;\s(glass)\s\d/i],[a,[l,"Google"],[c,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[a,[l,"Google"],[c,h]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[a,[l,"Google"],[c,d]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[l,"Xiaomi"],[c,d]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[l,"Xiaomi"],[c,h]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[a,[l,"Meizu"],[c,d]],[/(mz)-([\w-]{2,})/i],[[l,"Meizu"],a,[c,d]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[a,[l,"OnePlus"],[c,d]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[a,[l,"RCA"],[c,h]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[a,[l,"Dell"],[c,h]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[a,[l,"Verizon"],[c,h]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[l,"Barnes & Noble"],a,[c,h]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[a,[l,"NuVision"],[c,h]],[/android.+;\s(k88)\sbuild/i],[a,[l,"ZTE"],[c,h]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[a,[l,"Swiss"],[c,d]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[a,[l,"Swiss"],[c,h]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[a,[l,"Zeki"],[c,h]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[l,"Dragon Touch"],a,[c,h]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[a,[l,"Insignia"],[c,h]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[a,[l,"NextBook"],[c,h]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[l,"Voice"],a,[c,d]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[l,"LvTel"],a,[c,d]],[/android.+;\s(PH-1)\s/i],[a,[l,"Essential"],[c,d]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[a,[l,"Envizen"],[c,h]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[l,a,[c,h]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[a,[l,"MachSpeed"],[c,h]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[l,a,[c,h]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[a,[l,"Rotor"],[c,h]],[/android.+(KS(.+))\s+build/i],[a,[l,"Amazon"],[c,h]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[l,a,[c,h]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[c,m.lowerize],l,a],[/[\s\/\(](smart-?tv)[;\)]/i],[[c,p]],[/(android[\w\.\s\-]{0,9});.+build/i],[a,[l,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[u,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[u,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[s,u],[/rv\:([\w\.]{1,9}).+(gecko)/i],[u,s]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[s,u],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[s,[u,g.str,f.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[s,"Windows"],[u,g.str,f.os.windows.version]],[/\((bb)(10);/i],[[s,"BlackBerry"],u],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[s,u],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[s,"Symbian"],u],[/\((series40);/i],[s],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[s,"Firefox OS"],u],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[s,u],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[s,"Chromium OS"],u],[/(sunos)\s?([\w\.\d]*)/i],[[s,"Solaris"],u],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[s,u],[/(haiku)\s(\w+)/i],[s,u],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[u,/_/g,"."],[s,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[s,"Mac OS"],[u,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[s,u]]},b=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof b))return new b(e,t).getResult();var n=e||(r&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:""),o=t?m.extend(_,t):_;return this.getBrowser=function(){var e={name:void 0,version:void 0};return g.rgx.call(e,n,o.browser),e.major=m.major(e.version),e},this.getCPU=function(){var e={architecture:void 0};return g.rgx.call(e,n,o.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return g.rgx.call(e,n,o.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return g.rgx.call(e,n,o.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return g.rgx.call(e,n,o.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=e,this},this};b.VERSION="0.7.21",b.BROWSER={NAME:s,MAJOR:"major",VERSION:u},b.CPU={ARCHITECTURE:"architecture"},b.DEVICE={MODEL:a,VENDOR:l,TYPE:c,CONSOLE:"console",MOBILE:d,SMARTTV:p,TABLET:h,WEARABLE:"wearable",EMBEDDED:"embedded"},b.ENGINE={NAME:s,VERSION:u},b.OS={NAME:s,VERSION:u},void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=b),t.UAParser=b):void 0===(o=function(){return b}.call(t,n,t,e))||(e.exports=o);var v=r&&(r.jQuery||r.Zepto);if(v&&!v.ua){var E=new b;v.ua=E.getResult(),v.ua.get=function(){return E.getUA()},v.ua.set=function(e){E.setUA(e);var t=E.getResult();for(var n in t)v.ua[n]=t[n]}}}("object"==typeof window?window:this)},,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"components",(function(){return ng}));var o=n(100),r=n(81),i=n.n(r),a=n(114);function s(e){const t=e.embeddedPages;let n=null;return t&&(n=t.homeUrl),n||(n=e.welcomePageUrl),n}var c=n(83),l=n(92),u=n(85),d=n(87),h=n(93),p=n(163),m=n(226),g=n(91),f=n(115),_=n(150),b=n(97),v=n(393),E=n(110),y=n(103);const S=()=>{E.a.trackEvent("home_page","button","dm"),y.a.instance.track("home_page_button",{button:"dm"}),d.a.dispatch({action:"view_create_chat"})},T=()=>{E.a.trackEvent("home_page","button","room_directory"),y.a.instance.track("home_page_button",{button:"room_directory"}),d.a.fire(h.a.ViewRoomDirectory)},w=()=>{E.a.trackEvent("home_page","button","create_room"),y.a.instance.track("home_page_button",{button:"create_room"}),d.a.dispatch({action:"view_create_room"})},C=e=>({displayName:m.a.instance.displayName||e,avatarUrl:m.a.instance.getHttpAvatarUrl(v.a)}),x=()=>{const e=Object(r.useContext)(b.a),t=e.getUserId(),[n,o]=Object(r.useState)(C(t));return Object(_.a)(m.a.instance,f.b,()=>{o(C(t))}),r.createElement("div",null,r.createElement(v.b,{hasAvatar:!!n.avatarUrl,hasAvatarLabel:Object(c.a)("Great, that'll help people know it's you"),noAvatarLabel:Object(c.a)("Add a photo so people know it's you."),setAvatarUrl:t=>e.setAvatarUrl(t)},r.createElement(p.a,{idName:t,name:n.displayName,url:n.avatarUrl,width:v.a,height:v.a,resizeMethod:"crop"})),r.createElement("h1",null,Object(c.a)("Welcome %(name)s",{name:n.displayName})),r.createElement("h4",null,Object(c.a)("Now, let's help you get started")))};var O=({justRegistered:e=!1})=>{const t=l.a.get(),n=s(t);if(n){const e=u.getComponent("structures.EmbeddedPage");return r.createElement(e,{className:"mx_HomePage",url:n,scrollbar:!0})}let o;if(e)o=r.createElement(x,null);else{const e=t.branding;let n="themes/element/img/logos/element-logo.svg";e&&e.authHeaderLogoUrl&&(n=e.authHeaderLogoUrl),o=r.createElement(r.Fragment,null,r.createElement("img",{src:n,alt:t.brand}),r.createElement("h1",null,Object(c.a)("Welcome to %(appName)s",{appName:t.brand})),r.createElement("h4",null,Object(c.a)("Liberate your communication")))}return r.createElement(a.a,{className:"mx_HomePage mx_HomePage_default"},r.createElement("div",{className:"mx_HomePage_default_wrapper"},o,r.createElement("div",{className:"mx_HomePage_default_buttons"},r.createElement(g.a,{onClick:S,className:"mx_HomePage_button_sendDm"},Object(c.a)("Send a Direct Message")),r.createElement(g.a,{onClick:T,className:"mx_HomePage_button_explore"},Object(c.a)("Explore Public Rooms")),r.createElement(g.a,{onClick:w,className:"mx_HomePage_button_createGroup"},Object(c.a)("Create a Group Chat")))))},k=n(82),R=n.n(k),A=n(178),I=n(394);class D{static fetchJoinedGroups(e){return Object(I.a)("GroupActions.fetchJoinedGroups",()=>e.getJoinedGroups(),null)}}var N=n(325),F=n(90),M=n.n(F),P=n(88),L=n(113);class U extends i.a.PureComponent{constructor(e){super(e),R()(this,"tagStoreRef",void 0),R()(this,"onTagStoreUpdate",()=>{const e=0===A.a.getSelectedTags().length;this.setState({selected:e})}),R()(this,"onTileClick",e=>{e.preventDefault(),e.stopPropagation(),d.a.dispatch({action:"deselect_tags"})}),this.state={selected:0===A.a.getSelectedTags().length}}componentDidMount(){this.tagStoreRef=A.a.addListener(this.onTagStoreUpdate)}componentWillUnmount(){this.tagStoreRef.remove()}render(){const e=M()({mx_TagTile:!0,mx_TagTile_prototype:!0,mx_TagTile_selected_prototype:this.state.selected,mx_TagTile_home:!0});return i.a.createElement(L.a,{className:e,onClick:this.onTileClick,title:Object(c.a)("Home")},i.a.createElement("div",{className:"mx_TagTile_avatar"},i.a.createElement("div",{className:"mx_TagTile_homeIcon"})))}}class B extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{orderedTags:[],selectedTags:[]}),R()(this,"_onGroupMyMembership",()=>{this.unmounted||d.a.dispatch(D.fetchJoinedGroups(this.context))}),R()(this,"_onClientSync",(e,t)=>{"ERROR"!==e&&t!==e&&d.a.dispatch(D.fetchJoinedGroups(this.context))}),R()(this,"onMouseDown",e=>{this.state.selectedTags.length>0&&d.a.dispatch({action:"deselect_tags"})}),R()(this,"onClearFilterClick",e=>{d.a.dispatch({action:"deselect_tags"})})}componentDidMount(){this.unmounted=!1,this.context.on("Group.myMembership",this._onGroupMyMembership),this.context.on("sync",this._onClientSync),this._groupFilterOrderStoreToken=A.a.addListener(()=>{this.unmounted||this.setState({orderedTags:A.a.getOrderedTags()||[],selectedTags:A.a.getSelectedTags()})}),d.a.dispatch(D.fetchJoinedGroups(this.context))}componentWillUnmount(){this.unmounted=!0,this.context.removeListener("Group.myMembership",this._onGroupMyMembership),this.context.removeListener("sync",this._onClientSync),this._groupFilterOrderStoreToken&&this._groupFilterOrderStoreToken.remove()}renderGlobalIcon(){return P.a.getValue("feature_communities_v2_prototypes")?i.a.createElement("div",null,i.a.createElement(U,null),i.a.createElement("hr",{className:"mx_GroupFilterPanel_divider"})):null}render(){const e=u.getComponent("elements.DNDTagTile"),t=u.getComponent("elements.ActionButton"),n=this.state.orderedTags.map((t,n)=>i.a.createElement(e,{key:t,tag:t,index:n,selected:this.state.selectedTags.includes(t)})),o=this.state.selectedTags.length>0,r=M()("mx_GroupFilterPanel",{mx_GroupFilterPanel_items_selected:o});let s=i.a.createElement(t,{tooltip:!0,label:Object(c.a)("Communities"),action:"toggle_my_groups",className:"mx_TagTile mx_TagTile_plus"});return P.a.getValue("feature_communities_v2_prototypes")&&(s=i.a.createElement(t,{tooltip:!0,label:Object(c.a)("Create community"),action:"view_create_group",className:"mx_TagTile mx_TagTile_plus"})),i.a.createElement("div",{className:r,onClick:this.onClearFilterClick},i.a.createElement(a.a,{className:"mx_GroupFilterPanel_scroller",onMouseDown:this.onMouseDown},i.a.createElement(N.Droppable,{droppableId:"tag-panel-droppable",type:"draggable-TagTile"},(e,t)=>i.a.createElement("div",{className:"mx_GroupFilterPanel_tagTileContainer",ref:e.innerRef},this.renderGlobalIcon(),n,i.a.createElement("div",null,s),e.placeholder))))}}R()(B,"contextType",b.a);var j=B,G=n(586),q=n(146);class H extends i.a.Component{constructor(e){super(e),this.state={tags:G.a.getSortedTags()}}componentDidMount(){this._tagStoreToken=G.a.addListener(()=>{this.setState({tags:G.a.getSortedTags()})})}componentWillUnmount(){this._tagStoreToken&&this._tagStoreToken.remove()}render(){const e=this.state.tags.map(e=>i.a.createElement(V,{tag:e,key:e.name})),t=M()("mx_CustomRoomTagPanel",{mx_CustomRoomTagPanel_empty:0===this.state.tags.length});return i.a.createElement("div",{className:t},i.a.createElement("div",{className:"mx_CustomRoomTagPanel_divider"}),i.a.createElement(a.a,{className:"mx_CustomRoomTagPanel_scroller"},e))}}class V extends i.a.Component{constructor(...e){super(...e),R()(this,"onClick",()=>{d.a.dispatch({action:"select_custom_room_tag",tag:this.props.tag.name})})}render(){const e=u.getComponent("avatars.BaseAvatar"),t=u.getComponent("elements.AccessibleTooltipButton"),n=this.props.tag,o=M()({CustomRoomTagPanel_tileSelected:n.selected}),r=n.name,a=n.badgeNotifState;let s;if(a){const e=M()({mx_TagTile_badge:!0,mx_TagTile_badgeHighlight:a.hasMentions});s=i.a.createElement("div",{className:e},q.c(a.count))}return i.a.createElement(t,{className:o,onClick:this.onClick,title:r},i.a.createElement("div",{className:"mx_TagTile_avatar"},i.a.createElement(e,{name:n.avatarLetter,idName:r,width:40,height:40}),s))}}var z=H,K=n(174),W=n(142),Y=n(116),$=n(120),Q=n(477),X=n(86),J=n(94),Z=n.n(J),ee=n(99),te=n.n(ee);class ne extends i.a.Component{getGroupAvatarUrl(){return X.a.get().mxcUrlToHttp(this.props.groupAvatarUrl,this.props.width,this.props.height,this.props.resizeMethod)}render(){const e=this.props,{groupId:t,groupAvatarUrl:n,groupName:o}=e,r=te()(e,["groupId","groupAvatarUrl","groupName"]);return i.a.createElement(p.a,Z()({name:o||this.props.groupId[1],idName:this.props.groupId,url:this.getGroupAvatarUrl()},r))}}R()(ne,"defaultProps",{width:36,height:36,resizeMethod:"crop"});var oe=n(298);class re extends i.a.Component{constructor(e){super(e),R()(this,"onTileMouseEnter",()=>{this.setState({hover:!0})}),R()(this,"onTileMouseLeave",()=>{this.setState({hover:!1})}),this.state={hover:!1}}render(){const e=M()({mx_RoomTile:!0,mx_TemporaryTile:!0,mx_RoomTile_selected:this.props.isSelected,mx_RoomTile_minimized:this.props.isMinimized}),t=i.a.createElement(oe.a,{notification:this.props.notificationState,forceCount:!1});let n=this.props.displayName;"string"!=typeof n&&(n=""),n=n.replace(":",":");const o=M()({mx_RoomTile_name:!0,mx_RoomTile_nameHasUnreadEvents:this.props.notificationState.isUnread});let r=i.a.createElement("div",{className:"mx_RoomTile_nameContainer"},i.a.createElement("div",{title:n,className:o,tabIndex:-1,dir:"auto"},n));this.props.isMinimized&&(r=null);let a=K.a;return this.props.isMinimized&&(a=K.b),i.a.createElement(i.a.Fragment,null,i.a.createElement(a,{className:e,onMouseEnter:this.onTileMouseEnter,onMouseLeave:this.onTileMouseLeave,onClick:this.props.onClick,role:"treeitem",title:this.props.isMinimized?n:void 0},i.a.createElement("div",{className:"mx_RoomTile_avatarContainer"},this.props.avatar),r,i.a.createElement("div",{className:"mx_RoomTile_badgeContainer"},t)))}}var ie=n(245);class ae extends ie.b{constructor(e,t,n){super(),this._symbol=e,this._count=t,this._color=n}static forCount(e,t){return new ae(null,e,t)}static forSymbol(e,t){return new ae(e,0,t)}}var se=n(244),ce=n(173),le=n(117),ue=n(145),de=n(246),he=n(156),pe=n(147);const me=[$.a.Invite,$.a.Favourite,$.a.DM,$.a.Untagged,$.a.LowPriority,$.a.ServerNotice,$.a.Archived],ge=$.a.LowPriority,fe=[$.a.DM,$.a.Untagged],_e=e=>{(e||d.a).dispatch({action:"view_create_chat"})},be=e=>r.createElement(de.c,{first:!0},r.createElement(de.b,{label:Object(c.a)("Start a Conversation"),iconClassName:"mx_RoomList_iconPlus",onClick:t=>{t.preventDefault(),t.stopPropagation(),e(),d.a.dispatch({action:"view_create_chat"})}}),r.createElement(de.b,{label:Object(c.a)("Open dial pad"),iconClassName:"mx_RoomList_iconDialpad",onClick:t=>{t.preventDefault(),t.stopPropagation(),e(),d.a.fire(h.a.OpenDialPad)}})),ve={[$.a.Invite]:{sectionLabel:Object(c.b)("Invites"),isInvite:!0,defaultHidden:!1},[$.a.Favourite]:{sectionLabel:Object(c.b)("Favourites"),isInvite:!1,defaultHidden:!1},[$.a.DM]:{sectionLabel:Object(c.b)("People"),isInvite:!1,defaultHidden:!1,addRoomLabel:Object(c.b)("Start chat")},[$.a.Untagged]:{sectionLabel:Object(c.b)("Rooms"),isInvite:!1,defaultHidden:!1,addRoomLabel:Object(c.b)("Add room"),addRoomContextMenu:e=>r.createElement(de.c,{first:!0},r.createElement(de.b,{label:Object(c.a)("Create new room"),iconClassName:"mx_RoomList_iconPlus",onClick:t=>{t.preventDefault(),t.stopPropagation(),e(),d.a.dispatch({action:"view_create_room"})}}),r.createElement(de.b,{label:he.a.instance.getSelectedCommunityId()?Object(c.a)("Explore community rooms"):Object(c.a)("Explore public rooms"),iconClassName:"mx_RoomList_iconExplore",onClick:t=>{t.preventDefault(),t.stopPropagation(),e(),d.a.fire(h.a.ViewRoomDirectory)}}))},[$.a.LowPriority]:{sectionLabel:Object(c.b)("Low priority"),isInvite:!1,defaultHidden:!1},[$.a.ServerNotice]:{sectionLabel:Object(c.b)("System Alerts"),isInvite:!1,defaultHidden:!1},[$.a.Archived]:{sectionLabel:Object(c.b)("Historical"),isInvite:!1,defaultHidden:!0}};class Ee extends r.PureComponent{constructor(e){super(e),R()(this,"dispatcherRef",void 0),R()(this,"customTagStoreRef",void 0),R()(this,"tagAesthetics",void 0),R()(this,"onAction",e=>{if(e.action===h.a.ViewRoomDelta){const t=e,n=Y.a.getRoomId(),o=this.getRoomDelta(n,t.delta,t.unread);o&&d.a.dispatch({action:"view_room",room_id:o.roomId,show_room_tile:!0})}else e.action===h.a.PstnSupportUpdated&&(this.updateDmAddRoomAction(),this.updateLists())}),R()(this,"getRoomDelta",(e,t,n=!1)=>{const o=W.b.instance.orderedLists,r=[];me.forEach(t=>{let i=o[t];n&&(i=i.filter(t=>{const n=ce.a.instance.getRoomState(t);return n.room.roomId===e||n.isUnread})),r.push(...i)});const i=r.findIndex(t=>t.roomId===e),[a]=r.slice((i+t)%r.length);return a}),R()(this,"updateLists",()=>{const e=W.b.instance.orderedLists;P.a.getValue("advancedRoomListLogging")&&console.log("new lists",e);const t=Object.keys(this.state.sublists),n=Object.keys(e).filter(e=>!Object($.d)(e)||G.a.getTags()[e]),o=!!W.b.instance.getFirstNameFilterCondition();let r=this.state.isNameFiltering!==o||Object(le.d)(t,n);if(!r)for(const t of n){const n=this.state.sublists[t],o=e[t];if(n.length!==o.length){r=!0;break}}if(r){const t=Object(ue.f)(e,n),r=Object(ue.e)(t,(e,t)=>Object(le.c)(t));this.setState({sublists:r,isNameFiltering:o},()=>{this.props.onResize()})}}),R()(this,"onStartChat",()=>{var e;const t=null===(e=W.b.instance.getFirstNameFilterCondition())||void 0===e?void 0:e.search;d.a.dispatch({action:"view_create_chat",initialText:t})}),R()(this,"onExplore",()=>{var e;const t=null===(e=W.b.instance.getFirstNameFilterCondition())||void 0===e?void 0:e.search;d.a.dispatch({action:h.a.ViewRoomDirectory,initialText:t})}),this.state={sublists:{},isNameFiltering:!!W.b.instance.getFirstNameFilterCondition()},this.tagAesthetics=Object(ue.e)(ve),this.updateDmAddRoomAction(),this.dispatcherRef=d.a.register(this.onAction)}componentDidMount(){W.b.instance.on(W.a,this.updateLists),this.customTagStoreRef=G.a.addListener(this.updateLists),this.updateLists()}componentWillUnmount(){W.b.instance.off(W.a,this.updateLists),d.a.unregister(this.dispatcherRef),this.customTagStoreRef&&this.customTagStoreRef.remove()}updateDmAddRoomAction(){const e=Object(ue.e)(ve[$.a.DM]);pe.b.sharedInstance().getSupportsPstnProtocol()?e.addRoomContextMenu=be:e.onAddRoom=_e,this.tagAesthetics[$.a.DM]=e}renderCommunityInvites(){return X.a.get().getGroups().filter(e=>"invite"===e.myMembership).map(e=>{const t=r.createElement(ne,{groupId:e.groupId,groupName:e.name,groupAvatarUrl:e.avatarUrl,width:32,height:32,resizeMethod:"crop"});return r.createElement(re,{isMinimized:this.props.isMinimized,isSelected:!1,displayName:e.name,avatar:t,notificationState:ae.forSymbol("!",se.a.Red),onClick:()=>{d.a.dispatch({action:"view_group",group_id:e.groupId})},key:"temporaryGroupTile_"+e.groupId})})}renderSublists(){const e=[],t=me.reduce((e,t)=>{if(t===ge){const t=Object.keys(this.state.sublists).filter(e=>Object($.d)(e));e.push(...t)}return e.push(t),e},[]),n=!this.state.isNameFiltering&&Object.values(W.b.instance.unfilteredLists).every(e=>!(null==e?void 0:e.length));for(const i of t){const t=this.state.sublists[i]||[],a=i===$.a.Invite?this.renderCommunityInvites():null;if(0===t.length+(a?a.length:0)&&!fe.includes(i))continue;const s=Object($.d)(i)?((o=i).startsWith("u.")&&(o=o.substring(2)),{sectionLabel:Object(c.b)("Custom Tag"),sectionLabelRaw:o,isInvite:!1,defaultHidden:!1}):this.tagAesthetics[i];if(!s)throw new Error(`Tag ${i} does not have aesthetics`);e.push(r.createElement(Q.b,{key:"sublist-"+i,tagId:i,forRooms:!0,startAsHidden:s.defaultHidden,label:s.sectionLabelRaw?s.sectionLabelRaw:Object(c.a)(s.sectionLabel),onAddRoom:s.onAddRoom,addRoomLabel:s.addRoomLabel?Object(c.a)(s.addRoomLabel):s.addRoomLabel,addRoomContextMenu:s.addRoomContextMenu,isMinimized:this.props.isMinimized,onResize:this.props.onResize,showSkeleton:n,extraBadTilesThatShouldntExist:a}))}var o;return e}render(){let e;if(!this.props.isMinimized)if(this.state.isNameFiltering)e=r.createElement("div",{className:"mx_RoomList_explorePrompt"},r.createElement("div",null,Object(c.a)("Can't see what youre looking for?")),r.createElement(g.a,{className:"mx_RoomList_explorePrompt_startChat",kind:"link",onClick:this.onStartChat},Object(c.a)("Start a new chat")),r.createElement(g.a,{className:"mx_RoomList_explorePrompt_explore",kind:"link",onClick:this.onExplore},Object(c.a)("Explore all public rooms")));else if(Object.values(this.state.sublists).some(e=>e.length>0)){const t=W.b.instance.unfilteredLists,n=t[$.a.Untagged]||[],o=t[$.a.Archived]||[];n.length<1&&o<1&&(e=r.createElement("div",{className:"mx_RoomList_explorePrompt"},r.createElement("div",null,Object(c.a)("Use the + to make a new room or explore existing ones below")),r.createElement(g.a,{className:"mx_RoomList_explorePrompt_startChat",kind:"link",onClick:this.onStartChat},Object(c.a)("Start a new chat")),r.createElement(g.a,{className:"mx_RoomList_explorePrompt_explore",kind:"link",onClick:this.onExplore},Object(c.a)("Explore all public rooms"))))}const t=this.renderSublists();return r.createElement(K.c,{handleHomeEnd:!0,onKeyDown:this.props.onKeyDown},({onKeyDownHandler:n})=>r.createElement("div",{onFocus:this.props.onFocus,onBlur:this.props.onBlur,onKeyDown:n,className:"mx_RoomList",role:"tree","aria-label":Object(c.a)("Rooms")},t,e))}}var ye=n(84),Se=n.n(ye);class Te{constructor(e,t,n,o){this.id=e,this.label=t,this.icon=n,this.body=o}}class we extends r.Component{constructor(e){super(e);let t=0;if(e.initialTabId){const n=e.tabs.findIndex(t=>t.id===e.initialTabId);n>=0&&(t=n)}this.state={activeTabIndex:t}}_getActiveTabIndex(){return this.state&&this.state.activeTabIndex?this.state.activeTabIndex:0}_setActiveTab(e){const t=this.props.tabs.indexOf(e);-1!==t?this.setState({activeTabIndex:t}):console.error("Could not find tab "+e.label+" in tabs")}_renderTabLabel(e){const t=u.getComponent("elements.AccessibleButton");let n="mx_TabbedView_tabLabel ";this.props.tabs.indexOf(e)===this._getActiveTabIndex()&&(n+="mx_TabbedView_tabLabel_active");let o=null;e.icon&&(o=r.createElement("span",{className:"mx_TabbedView_maskedIcon "+e.icon}));const i=Object(c.a)(e.label);return r.createElement(t,{className:n,key:"tab_label_"+e.label,onClick:()=>this._setActiveTab(e)},o,r.createElement("span",{className:"mx_TabbedView_tabLabel_text"},i))}_renderTabPanel(e){return r.createElement("div",{className:"mx_TabbedView_tabPanel",key:"mx_tabpanel_"+e.label},r.createElement(a.a,{className:"mx_TabbedView_tabPanelContent"},e.body))}render(){const e=this.props.tabs.map(e=>this._renderTabLabel(e)),t=this._renderTabPanel(this.props.tabs[this._getActiveTabIndex()]);return r.createElement("div",{className:"mx_TabbedView"},r.createElement("div",{className:"mx_TabbedView_tabLabels"},e),t)}}var Ce=n(102),xe=n(107),Oe=n.n(xe),ke=n(1293),Re=n.n(ke);function Ae(e){const t=l.a.get().hosting_signup_link;if(!t)return null;if(!e)return t;if("matrix.org"!==X.a.get().getDomain())return null;try{const n=Oe.a.parse(t),o=Re.a.parse(n.query);return o.utm_campaign=e,n.search=void 0,n.query=o,n.format()}catch(e){return t}}var Ie=n(89),De=n(143);class Ne extends i.a.Component{constructor(){super(),R()(this,"_uploadAvatar",()=>{this._avatarUpload.current.click()}),R()(this,"_removeAvatar",()=>{this._avatarUpload.current.value="",this.setState({avatarUrl:void 0,avatarFile:void 0,enableProfileSave:!0})}),R()(this,"_clearProfile",async e=>{e.stopPropagation(),e.preventDefault(),this.state.enableProfileSave&&(this._removeAvatar(),this.setState({enableProfileSave:!1,displayName:this.state.originalDisplayName}))}),R()(this,"_saveProfile",async e=>{if(e.stopPropagation(),e.preventDefault(),!this.state.enableProfileSave)return;this.setState({enableProfileSave:!1});const t=X.a.get(),n={};try{if(this.state.originalDisplayName!==this.state.displayName&&(await t.setDisplayName(this.state.displayName),n.originalDisplayName=this.state.displayName),this.state.avatarFile){console.log(`Uploading new avatar, ${this.state.avatarFile.name} of type ${this.state.avatarFile.type}, (${this.state.avatarFile.size}) bytes`);const e=await t.uploadContent(this.state.avatarFile);await t.setAvatarUrl(e),n.avatarUrl=t.mxcUrlToHttp(e,96,96,"crop",!1),n.originalAvatarUrl=n.avatarUrl,n.avatarFile=null}else this.state.originalAvatarUrl!==this.state.avatarUrl&&await t.setAvatarUrl("")}catch(e){console.log("Failed to save profile",e),Ie.a.createTrackedDialog("Failed to save profile","",De.a,{title:Object(c.a)("Failed to save your profile"),description:e&&e.message?e.message:Object(c.a)("The operation could not be completed")})}this.setState(n)}),R()(this,"_onDisplayNameChanged",e=>{this.setState({displayName:e.target.value,enableProfileSave:!0})}),R()(this,"_onAvatarChanged",e=>{if(!e.target.files||!e.target.files.length)return void this.setState({avatarUrl:this.state.originalAvatarUrl,avatarFile:null,enableProfileSave:!1});const t=e.target.files[0],n=new FileReader;n.onload=e=>{this.setState({avatarUrl:e.target.result,avatarFile:t,enableProfileSave:!0})},n.readAsDataURL(t)});const e=X.a.get();let t=m.a.instance.avatarMxc;t&&(t=e.mxcUrlToHttp(t,96,96,"crop",!1)),this.state={userId:e.getUserId(),originalDisplayName:m.a.instance.displayName,displayName:m.a.instance.displayName,originalAvatarUrl:t,avatarUrl:t,avatarFile:null,enableProfileSave:!1},this._avatarUpload=Object(r.createRef)()}render(){const e=Ae("user-settings");let t=null;e&&(t=i.a.createElement("span",{className:"mx_ProfileSettings_hostingSignup"},Object(c.a)("<a>Upgrade</a> to your own domain",{},{a:t=>i.a.createElement("a",{href:e,target:"_blank",rel:"noreferrer noopener"},t)}),i.a.createElement("a",{href:e,target:"_blank",rel:"noreferrer noopener"},i.a.createElement("img",{src:n(713),width:"11",height:"10",alt:""}))));const o=u.getComponent("elements.AccessibleButton"),r=u.getComponent("settings.AvatarSetting");return i.a.createElement("form",{onSubmit:this._saveProfile,autoComplete:"off",noValidate:!0,className:"mx_ProfileSettings_profileForm"},i.a.createElement("input",{type:"file",ref:this._avatarUpload,className:"mx_ProfileSettings_avatarUpload",onChange:this._onAvatarChanged,accept:"image/*"}),i.a.createElement("div",{className:"mx_ProfileSettings_profile"},i.a.createElement("div",{className:"mx_ProfileSettings_controls"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Profile")),i.a.createElement(Ce.a,{label:Object(c.a)("Display Name"),type:"text",value:this.state.displayName,autoComplete:"off",onChange:this._onDisplayNameChanged}),i.a.createElement("p",null,this.state.userId,t)),i.a.createElement(r,{avatarUrl:this.state.avatarUrl,avatarName:this.state.displayName||this.state.userId,avatarAltText:Object(c.a)("Profile picture"),uploadAvatar:this._uploadAvatar,removeAvatar:this._removeAvatar})),i.a.createElement("div",{className:"mx_ProfileSettings_buttons"},i.a.createElement(o,{onClick:this._clearProfile,kind:"link",disabled:!this.state.enableProfileSave},Object(c.a)("Cancel")),i.a.createElement(o,{onClick:this._saveProfile,kind:"primary",disabled:!this.state.enableProfileSave},Object(c.a)("Save"))))}}class Fe extends i.a.Component{constructor(e){super(e),this._onSearchChange=this._onSearchChange.bind(this),this.state={searchQuery:"",langs:null}}componentDidMount(){if(c.c().then(e=>{e.sort((function(e,t){return e.label<t.label?-1:e.label>t.label?1:0})),this.setState({langs:e})}).catch(()=>{this.setState({langs:["en"]})}),!this.props.value){const e=P.a.getValue("language",null,!0);if(e)this.props.onOptionChange(e);else{const e=c.i(c.e());this.props.onOptionChange(e)}}}_onSearchChange(e){this.setState({searchQuery:e})}render(){if(null===this.state.langs){const e=u.getComponent("elements.Spinner");return i.a.createElement(e,null)}const e=u.getComponent("elements.Dropdown");let t;t=this.state.searchQuery?this.state.langs.filter(e=>function(e,t){return!!t.label.toUpperCase().includes(e.toUpperCase())||t.value.toUpperCase()===e.toUpperCase()}(this.state.searchQuery,e)):this.state.langs;const n=t.map(e=>i.a.createElement("div",{key:e.value},e.label));let o=P.a.getValue("language",null,!0),r=null;return o||(o=navigator.language||navigator.userLanguage),r=this.props.value||o,i.a.createElement(e,{id:"mx_LanguageDropdown",className:this.props.className,onOptionChange:this.props.onOptionChange,onSearchChange:this._onSearchChange,searchEnabled:!0,value:r,label:Object(c.a)("Language Dropdown"),disabled:this.props.disabled},n)}}Fe.propTypes={className:Se.a.string,onOptionChange:Se.a.func.isRequired,value:Se.a.string};var Me=n(301),Pe=n(96),Le=n(197);const Ue=new Error("User cancelled auth session");class Be extends i.a.Component{constructor(e){super(e),R()(this,"_requestEmailToken",async(...e)=>{this.setState({busy:!0});try{return await this.props.requestEmailToken(...e)}finally{this.setState({busy:!1})}}),R()(this,"tryContinue",()=>{this._stageComponent.current&&this._stageComponent.current.tryContinue&&this._stageComponent.current.tryContinue()}),R()(this,"_authStateUpdated",(e,t)=>{const n=this.state.authStage;this.setState({busy:!1,authStage:e,stageState:t,errorText:t.error},()=>{n!=e&&this._setFocus()})}),R()(this,"_requestCallback",e=>this.props.makeRequest(e)),R()(this,"_onBusyChanged",e=>{e&&this.setState({busy:!0,errorText:null,stageErrorText:null})}),R()(this,"_submitAuthDict",e=>{this._authLogic.submitAuthDict(e)}),R()(this,"_onPhaseChange",e=>{this.props.onStagePhaseChange&&this.props.onStagePhaseChange(this.state.authStage,e||0)}),R()(this,"_onStageCancel",()=>{this.props.onAuthFinished(!1,Ue)}),R()(this,"_onAuthStageFailed",e=>{this.props.onAuthFinished(!1,e)}),R()(this,"_setEmailSid",e=>{this._authLogic.setEmailSid(e)}),this.state={authStage:null,busy:!1,errorText:null,stageErrorText:null,submitButtonEnabled:!1},this._unmounted=!1,this._authLogic=new Pe.h({authData:this.props.authData,doRequest:this._requestCallback,busyChanged:this._onBusyChanged,inputs:this.props.inputs,stateUpdated:this._authStateUpdated,matrixClient:this.props.matrixClient,sessionId:this.props.sessionId,clientSecret:this.props.clientSecret,emailSid:this.props.emailSid,requestEmailToken:this._requestEmailToken}),this._intervalId=null,this.props.poll&&(this._intervalId=setInterval(()=>{this._authLogic.poll()},2e3)),this._stageComponent=Object(r.createRef)()}UNSAFE_componentWillMount(){this._authLogic.attemptAuth().then(e=>{const t={emailSid:this._authLogic.getEmailSid(),clientSecret:this._authLogic.getClientSecret()};this.props.onAuthFinished(!0,e,t)}).catch(e=>{if(this.props.onAuthFinished(!1,e),console.error("Error during user-interactive auth:",e),this._unmounted)return;const t=e.message||e.toString();this.setState({errorText:t})})}componentWillUnmount(){this._unmounted=!0,null!==this._intervalId&&clearInterval(this._intervalId)}_setFocus(){this._stageComponent.current&&this._stageComponent.current.focus&&this._stageComponent.current.focus()}_renderCurrentStage(){const e=this.state.authStage;if(!e){if(this.state.busy){const e=u.getComponent("elements.Spinner");return i.a.createElement(e,null)}return null}const t=Object(Le.d)(e);return i.a.createElement(t,{ref:this._stageComponent,loginType:e,matrixClient:this.props.matrixClient,authSessionId:this._authLogic.getSessionId(),clientSecret:this._authLogic.getClientSecret(),stageParams:this._authLogic.getStageParams(e),submitAuthDict:this._submitAuthDict,errorText:this.state.stageErrorText,busy:this.state.busy,inputs:this.props.inputs,stageState:this.state.stageState,fail:this._onAuthStageFailed,setEmailSid:this._setEmailSid,showContinue:!this.props.continueIsManaged,onPhaseChange:this._onPhaseChange,continueText:this.props.continueText,continueKind:this.props.continueKind,onCancel:this._onStageCancel})}render(){let e=null;return this.state.errorText&&(e=i.a.createElement("div",{className:"error"},this.state.errorText)),i.a.createElement("div",null,i.a.createElement("div",null,this._renderCurrentStage(),e))}}R()(Be,"propTypes",{matrixClient:Se.a.object.isRequired,authData:Se.a.shape({flows:Se.a.array,params:Se.a.object,session:Se.a.string}),makeRequest:Se.a.func.isRequired,onAuthFinished:Se.a.func.isRequired,inputs:Se.a.object,requestEmailToken:Se.a.func,sessionId:Se.a.string,clientSecret:Se.a.string,emailSid:Se.a.string,poll:Se.a.bool,continueIsManaged:Se.a.bool,onStagePhaseChange:Se.a.func,continueText:Se.a.string,continueKind:Se.a.string});var je=n(138);class Ge extends i.a.Component{constructor(e){super(e),R()(this,"_onStagePhaseChange",(e,t)=>{const n={[Le.c.PHASE_PREAUTH]:{body:Object(c.a)("Confirm your account deactivation by using Single Sign On to prove your identity."),continueText:Object(c.a)("Single Sign On"),continueKind:"danger"},[Le.c.PHASE_POSTAUTH]:{body:Object(c.a)("Are you sure you want to deactivate your account? This is irreversible."),continueText:Object(c.a)("Confirm account deactivation"),continueKind:"danger"}},o={[Le.c.LOGIN_TYPE]:n,[Le.c.UNSTABLE_LOGIN_TYPE]:n,[Le.b.LOGIN_TYPE]:{[Le.a]:{body:Object(c.a)("To continue, please enter your password:")}}}[e];let r=null,i=null,a=null;if(o){const e=o[t];e&&e.body&&(r=e.body),e&&e.continueText&&(i=e.continueText),e&&e.continueKind&&(a=e.continueKind)}this.setState({bodyText:r,continueText:i,continueKind:a})}),R()(this,"_onUIAuthFinished",(e,t,n)=>{e||(t!==Ue?(console.error("Error during UI Auth:",{result:t,extra:n}),this.setState({errStr:Object(c.a)("There was a problem communicating with the server. Please try again.")})):this._onCancel())}),R()(this,"_onUIAuthComplete",e=>{X.a.get().deactivateAccount(e,this.state.shouldErase).then(e=>{E.a.trackEvent("Account","Deactivate Account"),Me.j(),this.props.onFinished(!0)}).catch(e=>{console.error(e),this.setState({errStr:Object(c.a)("There was a problem communicating with the server. Please try again.")})})}),R()(this,"_onEraseFieldChange",e=>{this.setState({shouldErase:e.target.checked,authEnabled:!1}),this._initAuth(e.target.checked)}),this.state={shouldErase:!1,errStr:null,authData:null,authEnabled:!0,bodyText:null,continueText:null,continueKind:null},this._initAuth(!1)}_onCancel(){this.props.onFinished(!1)}_initAuth(e){X.a.get().deactivateAccount(null,e).then(e=>{console.warn("User's account got deactivated without confirmation: Server had no auth"),this.setState({errStr:Object(c.a)("Server did not require any authentication")})}).catch(e=>{e&&401===e.httpStatus&&e.data?this.setState({authData:e.data,authEnabled:!0}):this.setState({errStr:Object(c.a)("Server did not return valid authentication information.")})})}render(){const e=u.getComponent("views.dialogs.BaseDialog");let t=null;this.state.errStr&&(t=i.a.createElement("div",{className:"error"},this.state.errStr));let n=i.a.createElement("div",null,Object(c.a)("Loading..."));return this.state.authData&&this.state.authEnabled&&(n=i.a.createElement("div",null,this.state.bodyText,i.a.createElement(Be,{matrixClient:X.a.get(),authData:this.state.authData,makeRequest:this._onUIAuthComplete,onAuthFinished:this._onUIAuthFinished,onStagePhaseChange:this._onStagePhaseChange,continueText:this.state.continueText,continueKind:this.state.continueKind}))),i.a.createElement(e,{className:"mx_DeactivateAccountDialog",onFinished:this.props.onFinished,titleClass:"danger",title:Object(c.a)("Deactivate Account")},i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement("p",null,Object(c.a)("This will make your account permanently unusable. You will not be able to log in, and no one will be able to re-register the same user ID. This will cause your account to leave all rooms it is participating in, and it will remove your account details from your identity server. <b>This action is irreversible.</b>",{},{b:e=>i.a.createElement("b",null," ",e," ")})),i.a.createElement("p",null,Object(c.a)("Deactivating your account <b>does not by default cause us to forget messages you have sent.</b> If you would like us to forget your messages, please tick the box below.",{},{b:e=>i.a.createElement("b",null," ",e," ")})),i.a.createElement("p",null,Object(c.a)("Message visibility in Matrix is similar to email. Our forgetting your messages means that messages you have sent will not be shared with any new or unregistered users, but registered users who already have access to these messages will still have access to their copy.")),i.a.createElement("div",{className:"mx_DeactivateAccountDialog_input_section"},i.a.createElement("p",null,i.a.createElement(je.a,{checked:this.state.shouldErase,onChange:this._onEraseFieldChange},Object(c.a)("Please forget all messages I have sent when my account is deactivated (<b>Warning:</b> this will cause future users to see an incomplete view of conversations)",{},{b:e=>i.a.createElement("b",null,e)}))),t,n)))}}Ge.propTypes={onFinished:Se.a.func.isRequired};var qe=n(104),He=n(294),Ve=n(194),ze=n(243);async function Ke(e,t){const n=e.getUserId();let{threepids:o}=await e.getThreePids();if(t&&(o=o.filter(e=>e.medium===t)),o.length>0&&e.getIdentityServerUrl())try{const r=new Ve.a,i=await r.getAccessToken({check:!1}),a=o.map(({medium:e,address:t})=>[e,t]),s=await e.bulkLookupThreePids(a,i);for(const[e,r,i]of s.threepids){if(i!==n)continue;if(t&&e!==t)continue;const a=o.find(t=>t.medium===e&&t.address===r);a&&(a.bound=!0)}}catch(e){if("M_TERMS_NOT_SIGNED"!==e.errcode)throw e}return o}var We=n(112),Ye=n(95),$e=n(101);class Qe extends i.a.Component{constructor(){super(),R()(this,"_onAction",e=>{"id_server_changed"===e.action&&(this.setState({haveIdServer:Boolean(X.a.get().getIdentityServerUrl())}),this._getThreepidState())}),R()(this,"_onEmailsChange",e=>{this.setState({emails:e})}),R()(this,"_onMsisdnsChange",e=>{this.setState({msisdns:e})}),R()(this,"_onLanguageChange",e=>{this.state.language!==e&&(P.a.setValue("language",null,Ye.a.DEVICE,e),this.setState({language:e}),qe.a.get().reload())}),R()(this,"_onPasswordChangeError",e=>{let t=e.error||"";403===e.httpStatus?t=Object(c.a)("Failed to change password. Is your password correct?"):e.httpStatus&&(t+=` (HTTP status ${e.httpStatus})`);const n=u.getComponent("dialogs.ErrorDialog");console.error("Failed to change password: "+t),Ie.a.createTrackedDialog("Failed to change password","",n,{title:Object(c.a)("Error"),description:t})}),R()(this,"_onPasswordChanged",()=>{const e=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Password changed","",e,{title:Object(c.a)("Success"),description:Object(c.a)("Your password was successfully changed. You will not receive push notifications on other sessions until you log back in to them")+"."})}),R()(this,"_onDeactivateClicked",()=>{Ie.a.createTrackedDialog("Deactivate Account","",Ge,{onFinished:e=>{e&&this.props.closeSettingsFn()}})}),this.state={language:c.d(),haveIdServer:Boolean(X.a.get().getIdentityServerUrl()),serverSupportsSeparateAddAndBind:null,idServerHasUnsignedTerms:!1,requiredPolicyInfo:{hasTerms:!1},emails:[],msisdns:[],loading3pids:!0},this.dispatcherRef=d.a.register(this._onAction)}async UNSAFE_componentWillMount(){const e=X.a.get(),t=await e.doesServerSupportSeparateAddAndBind(),n=(await e.getCapabilities())["m.change_password"],o=!n||!1!==n.enabled;this.setState({serverSupportsSeparateAddAndBind:t,canChangePassword:o}),this._getThreepidState()}componentWillUnmount(){d.a.unregister(this.dispatcherRef)}async _getThreepidState(){const e=X.a.get();this._checkTerms();let t=[];try{t=await Ke(e)}catch(e){const t=X.a.get().getIdentityServerUrl();console.warn(`Unable to reach identity server at ${t} to check for 3PIDs bindings in Settings`),console.warn(e)}this.setState({emails:t.filter(e=>"email"===e.medium),msisdns:t.filter(e=>"msisdn"===e.medium),loading3pids:!1})}async _checkTerms(){if(!this.state.haveIdServer)return void this.setState({idServerHasUnsignedTerms:!1});const e=X.a.get().getIdentityServerUrl(),t=new Ve.a;try{const n=await t.getAccessToken({check:!1});await Object(He.d)([new He.a(Pe.m.IS,e,n)],(t,n,o)=>new Promise((o,r)=>{this.setState({idServerName:Object(ze.a)(e),requiredPolicyInfo:{hasTerms:!0,policiesAndServices:t,agreedUrls:n,resolve:o}})})),this.setState({requiredPolicyInfo:{hasTerms:!1}})}catch(t){console.warn(`Unable to reach identity server at ${e} to check for terms in Settings`),console.warn(t)}}_renderProfileSection(){return i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement(Ne,null))}_renderAccountSection(){const e=u.getComponent("views.settings.ChangePassword"),t=u.getComponent("views.settings.account.EmailAddresses"),n=u.getComponent("views.settings.account.PhoneNumbers");let o=i.a.createElement(e,{className:"mx_GeneralUserSettingsTab_changePassword",rowClassName:"",buttonKind:"primary",onError:this._onPasswordChangeError,onFinished:this._onPasswordChanged}),r=null;if(P.a.getValue($e.a.ThirdPartyID)&&(this.state.haveIdServer||!0===this.state.serverSupportsSeparateAddAndBind)){const e=this.state.loading3pids?i.a.createElement(We.a,null):i.a.createElement(t,{emails:this.state.emails,onEmailsChange:this._onEmailsChange}),o=this.state.loading3pids?i.a.createElement(We.a,null):i.a.createElement(n,{msisdns:this.state.msisdns,onMsisdnsChange:this._onMsisdnsChange});r=i.a.createElement("div",null,i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Email addresses")),e,i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Phone numbers")),o)}else null===this.state.serverSupportsSeparateAddAndBind&&(r=i.a.createElement(We.a,null));let a=Object(c.a)("Set a new account password...");return this.state.canChangePassword||(a=null,o=null),i.a.createElement("div",{className:"mx_SettingsTab_section mx_GeneralUserSettingsTab_accountSection"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Account")),i.a.createElement("p",{className:"mx_SettingsTab_subsectionText"},a),o,r)}_renderLanguageSection(){return i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Language and region")),i.a.createElement(Fe,{className:"mx_GeneralUserSettingsTab_languageInput",onOptionChange:this._onLanguageChange,value:this.state.language}))}_renderDiscoverySection(){const e=u.getComponent("views.settings.SetIdServer");if(this.state.requiredPolicyInfo.hasTerms){const t=u.getComponent("views.terms.InlineTermsAgreement"),n=i.a.createElement("span",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Agree to the identity server (%(serverName)s) Terms of Service to allow yourself to be discoverable by email address or phone number.",{serverName:this.state.idServerName}));return i.a.createElement("div",null,i.a.createElement(t,{policiesAndServicePairs:this.state.requiredPolicyInfo.policiesAndServices,agreedUrls:this.state.requiredPolicyInfo.agreedUrls,onFinished:this.state.requiredPolicyInfo.resolve,introElement:n}),i.a.createElement(e,{missingTerms:!0}))}const t=u.getComponent("views.settings.discovery.EmailAddresses"),n=u.getComponent("views.settings.discovery.PhoneNumbers"),o=this.state.loading3pids?i.a.createElement(We.a,null):i.a.createElement(t,{emails:this.state.emails}),r=this.state.loading3pids?i.a.createElement(We.a,null):i.a.createElement(n,{msisdns:this.state.msisdns}),a=this.state.haveIdServer?i.a.createElement("div",{className:"mx_GeneralUserSettingsTab_discovery"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Email addresses")),o,i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Phone numbers")),r):null;return i.a.createElement("div",{className:"mx_SettingsTab_section"},a,i.a.createElement(e,null))}_renderManagementSection(){return i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Account management")),i.a.createElement("span",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Deactivating your account is a permanent action - be careful!")),i.a.createElement(g.a,{onClick:this._onDeactivateClicked,kind:"danger"},Object(c.a)("Deactivate Account")))}_renderIntegrationManagerSection(){if(!P.a.getValue($e.a.Widgets))return null;const e=u.getComponent("views.settings.SetIntegrationManager");return i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement(e,null))}render(){const e=this.state.requiredPolicyInfo.hasTerms?i.a.createElement("img",{className:"mx_GeneralUserSettingsTab_warningIcon",src:n(489),width:"18",height:"18",alt:Object(c.a)("Warning")}):null;let t,o;return P.a.getValue($e.a.Deactivate)&&(t=i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Deactivate account")),this._renderManagementSection())),P.a.getValue($e.a.IdentityServer)&&(o=i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"mx_SettingsTab_heading"},e," ",Object(c.a)("Discovery")),this._renderDiscoverySection())),i.a.createElement("div",{className:"mx_SettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("General")),this._renderProfileSection(),this._renderAccountSection(),this._renderLanguageSection(),o,this._renderIntegrationManagerSection(),t)}}R()(Qe,"propTypes",{closeSettingsFn:Se.a.func.isRequired});var Xe=n(171);class Je extends i.a.Component{constructor(...e){super(...e),R()(this,"_onChange",async e=>{await P.a.setValue(this.props.featureId,null,Ye.a.DEVICE,e),this.forceUpdate()})}render(){const e=P.a.getDisplayName(this.props.featureId),t=P.a.getValue(this.props.featureId),n=P.a.canSetValue(this.props.featureId,null,Ye.a.DEVICE);return i.a.createElement(Xe.a,{value:t,label:e,onChange:this._onChange,disabled:!n})}}R()(Je,"propTypes",{featureId:Se.a.string.isRequired});class Ze extends i.a.Component{constructor(){super()}render(){const e=u.getComponent("views.elements.SettingsFlag"),t=P.a.getFeatureSettingNames().map(e=>i.a.createElement(Je,{featureId:e,key:e}));return i.a.createElement("div",{className:"mx_SettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Labs")),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Customise your experience with experimental labs features. <a>Learn more</a>.",{},{a:e=>i.a.createElement("a",{href:"https://github.com/vector-im/element-web/blob/develop/docs/labs.md",rel:"noreferrer noopener",target:"_blank"},e)})),i.a.createElement("div",{className:"mx_SettingsTab_section"},t,i.a.createElement(e,{name:"enableWidgetScreenshots",level:Ye.a.ACCOUNT}),i.a.createElement(e,{name:"showHiddenEventsInTimeline",level:Ye.a.DEVICE}),i.a.createElement(e,{name:"lowBandwidth",level:Ye.a.DEVICE}),i.a.createElement(e,{name:"advancedRoomListLogging",level:Ye.a.DEVICE})))}}var et=n(253),tt=n(370);class nt extends r.Component{offset(e,t){const n=e.reduce((e,n)=>t>n?e+1:e,0);if(0===n)return 0;if(n===e.length)return 100;const o=e[n-1],r=e[n],i=1/(e.length-1);return 100*(n-1+(t-o)/(r-o))*i}render(){const e=this.props.values.map(e=>r.createElement(ot,{active:e<=this.props.value,label:this.props.displayFunc(e),onClick:this.props.disabled?()=>{}:()=>this.props.onSelectionChange(e),key:e,disabled:this.props.disabled}));let t=null;if(!this.props.disabled){const e=this.offset(this.props.values,this.props.value);t=r.createElement("div",{className:"mx_Slider_selection"},r.createElement("div",{className:"mx_Slider_selectionDot",style:{left:"calc(-0.55em + "+e+"%)"}}),r.createElement("hr",{style:{width:e+"%"}}))}return r.createElement("div",{className:"mx_Slider"},r.createElement("div",null,r.createElement("div",{className:"mx_Slider_bar"},r.createElement("hr",{onClick:this.props.disabled?()=>{}:this.onClick.bind(this)}),t),r.createElement("div",{className:"mx_Slider_dotContainer"},e)))}onClick(e){const t=e.target.clientWidth,n=e.nativeEvent.offsetX/t,o=this.props.values[Math.round(n*(this.props.values.length-1))];this.props.onSelectionChange(o)}}class ot extends r.PureComponent{render(){let e="mx_Slider_dot";return!this.props.disabled&&this.props.active&&(e+=" mx_Slider_dotActive"),r.createElement("span",{onClick:this.props.onClick,className:"mx_Slider_dotValue"},r.createElement("div",{className:e}),r.createElement("div",{className:"mx_Slider_labelContainer"},r.createElement("div",{className:"mx_Slider_label"},this.props.label)))}}var rt=n(724),it=n(222),at=n(371);class st extends i.a.Component{constructor(e){super(e),R()(this,"onChange",async e=>{await this.save(e),this.setState({value:e}),this.props.onChange&&this.props.onChange(e)}),R()(this,"checkBoxOnChange",e=>{this.onChange(e.target.checked)}),R()(this,"save",async e=>{await P.a.setValue(this.props.name,this.props.roomId,this.props.level,void 0!==e?e:this.state.value)}),this.state={value:P.a.getValueAt(this.props.level,this.props.name,this.props.roomId,this.props.isExplicit)}}render(){const e=P.a.canSetValue(this.props.name,this.props.roomId,this.props.level);let t=this.props.label;return t=t?Object(c.a)(t):P.a.getDisplayName(this.props.name,this.props.level),this.props.useCheckbox?i.a.createElement(je.a,{checked:this.state.value,onChange:this.checkBoxOnChange,disabled:this.props.disabled||!e},t):i.a.createElement("div",{className:"mx_SettingsFlag"},i.a.createElement("span",{className:"mx_SettingsFlag_label"},t),i.a.createElement(at.a,{checked:this.state.value,onChange:this.onChange,disabled:this.props.disabled||!e,"aria-label":t}))}}var ct=n(129),lt=n(223),ut=n(206);class dt extends i.a.Component{constructor(e){super(e),this.state={userId:"@erim:fink.fink",displayname:"Erimayas Fink",avatar_url:null}}async componentDidMount(){const e=X.a.get(),t=e.getUserId(),n=await e.getProfileInfo(t),o=lt.c({avatarUrl:n.avatar_url},32,32,"crop");this.setState({userId:t,displayname:n.displayname,avatar_url:o})}fakeEvent({userId:e,displayname:t,avatar_url:n}){const o={type:"m.room.message",sender:e,content:{"m.new_content":{msgtype:"m.text",body:this.props.message,displayname:t,avatar_url:n},msgtype:"m.text",body:this.props.message,displayname:t,avatar_url:n},unsigned:{age:97},event_id:"$9999999999999999999999999999999999999999999",room_id:"!999999999999999999:example.org"},r=new ct.b(o);return r.sender={name:t,userId:e,getAvatarUrl:(...e)=>n},r}render(){const e=this.fakeEvent(this.state),t=M()(this.props.className,{mx_IRCLayout:this.props.useIRCLayout,mx_GroupLayout:!this.props.useIRCLayout});return i.a.createElement("div",{className:t},i.a.createElement(ut.a,{mxEvent:e,useIRCLayout:this.props.useIRCLayout,enableFlair:P.a.getValue($e.a.Flair)}))}}var ht=function({name:e,definitions:t,value:n,className:o,outlined:r,onChange:a}){const s=e=>{a(e.target.value)};return i.a.createElement(i.a.Fragment,null,t.map(t=>i.a.createElement(i.a.Fragment,{key:t.value},i.a.createElement(it.a,{className:M()(o,t.className),onChange:s,checked:void 0!==t.checked?t.checked:t.value===n,name:e,value:t.value,disabled:t.disabled,outlined:r},t.label),t.description)))};function pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(n),!0).forEach((function(t){R()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class gt extends i.a.Component{constructor(e){super(e),R()(this,"MESSAGE_PREVIEW_TEXT",Object(c.a)("Hey you. You're the best!")),R()(this,"themeTimer",void 0),R()(this,"onThemeChange",e=>{if(this.state.theme===e)return;const t=P.a.getValue("theme");P.a.setValue("theme",null,Ye.a.DEVICE,e).catch(()=>{d.a.dispatch({action:h.a.RecheckTheme}),this.setState({theme:t})}),this.setState({theme:e}),d.a.dispatch({action:h.a.RecheckTheme,forceTheme:e})}),R()(this,"onUseSystemThemeChanged",e=>{this.setState({useSystemTheme:e}),P.a.setValue("use_system_theme",null,Ye.a.DEVICE,e),d.a.dispatch({action:h.a.RecheckTheme})}),R()(this,"onFontSizeChanged",e=>{this.setState({fontSize:e.toString()}),P.a.setValue("baseFontSize",null,Ye.a.DEVICE,e-rt.a.SIZE_DIFF)}),R()(this,"onValidateFontSize",async({value:e})=>{const t=parseFloat(e),n=rt.a.MIN_SIZE+rt.a.SIZE_DIFF,o=rt.a.MAX_SIZE+rt.a.SIZE_DIFF;return isNaN(t)?{valid:!1,feedback:Object(c.a)("Size must be a number")}:n<=t&&t<=o?(P.a.setValue("baseFontSize",null,Ye.a.DEVICE,parseInt(e,10)-rt.a.SIZE_DIFF),{valid:!0,feedback:Object(c.a)("Use between %(min)s pt and %(max)s pt",{min:n,max:o})}):{valid:!1,feedback:Object(c.a)("Custom font size can only be between %(min)s pt and %(max)s pt",{min:n,max:o})}}),R()(this,"onAddCustomTheme",async()=>{let e=P.a.getValue("custom_themes");e||(e=[]),e=e.map(e=>e),this.themeTimer&&clearTimeout(this.themeTimer);try{const t=await fetch(this.state.customThemeUrl),n=await t.json();if(!n||"string"!=typeof n.name||"object"!=typeof n.colors)return void this.setState({customThemeMessage:{text:Object(c.a)("Invalid theme schema."),isError:!0}});e.push(n)}catch(e){return console.error(e),void this.setState({customThemeMessage:{text:Object(c.a)("Error downloading theme information."),isError:!0}})}await P.a.setValue("custom_themes",null,Ye.a.ACCOUNT,e),this.setState({customThemeUrl:"",customThemeMessage:{text:Object(c.a)("Theme added!"),isError:!1}}),this.themeTimer=setTimeout(()=>{this.setState({customThemeMessage:{text:"",isError:!1}})},3e3)}),R()(this,"onCustomThemeChange",e=>{this.setState({customThemeUrl:e.target.value})}),R()(this,"onLayoutChange",e=>{const t="true"===e.target.value;this.setState({useIRCLayout:t}),P.a.setValue("useIRCLayout",null,Ye.a.DEVICE,t)}),R()(this,"renderLayoutSection",()=>i.a.createElement("div",{className:"mx_SettingsTab_section mx_AppearanceUserSettingsTab_Layout"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Message layout")),i.a.createElement("div",{className:"mx_AppearanceUserSettingsTab_Layout_RadioButtons"},i.a.createElement("div",{className:M()("mx_AppearanceUserSettingsTab_Layout_RadioButton",{mx_AppearanceUserSettingsTab_Layout_RadioButton_selected:this.state.useIRCLayout})},i.a.createElement(dt,{className:"mx_AppearanceUserSettingsTab_Layout_RadioButton_preview",message:this.MESSAGE_PREVIEW_TEXT,useIRCLayout:!0}),i.a.createElement(it.a,{name:"layout",value:"true",checked:this.state.useIRCLayout,onChange:this.onLayoutChange},Object(c.a)("Compact"))),i.a.createElement("div",{className:"mx_AppearanceUserSettingsTab_spacer"}),i.a.createElement("div",{className:M()("mx_AppearanceUserSettingsTab_Layout_RadioButton",{mx_AppearanceUserSettingsTab_Layout_RadioButton_selected:!this.state.useIRCLayout})},i.a.createElement(dt,{className:"mx_AppearanceUserSettingsTab_Layout_RadioButton_preview",message:this.MESSAGE_PREVIEW_TEXT,useIRCLayout:!1}),i.a.createElement(it.a,{name:"layout",value:"false",checked:!this.state.useIRCLayout,onChange:this.onLayoutChange},Object(c.a)("Modern")))))),this.state=mt(mt({fontSize:(P.a.getValue("baseFontSize",null)+rt.a.SIZE_DIFF).toString()},this.calculateThemeState()),{},{customThemeUrl:"",customThemeMessage:{isError:!1,text:""},useCustomFontSize:P.a.getValue("useCustomFontSize"),useSystemFont:P.a.getValue("useSystemFont"),systemFont:P.a.getValue("systemFont"),showAdvanced:!1,useIRCLayout:P.a.getValue("useIRCLayout")})}calculateThemeState(){const e=P.a.getValue("theme"),t=P.a.getValueAt(Ye.a.DEVICE,"use_system_theme",null,!1,!0),n=P.a.getValueAt(Ye.a.DEVICE,"theme",null,!1,!0);return t?{theme:e,useSystemTheme:!0}:n?{theme:e,useSystemTheme:!1}:{theme:e,useSystemTheme:P.a.getValueAt(Ye.a.DEVICE,"use_system_theme")}}renderThemeSection(){let e,t;if((new tt.a).isSystemThemeSupported()&&(e=i.a.createElement("div",null,i.a.createElement(je.a,{checked:this.state.useSystemTheme,onChange:e=>this.onUseSystemThemeChanged(e.target.checked)},P.a.getDisplayName("use_system_theme")))),P.a.getValue("feature_custom_themes")){let e=null;this.state.customThemeMessage.text&&(e=this.state.customThemeMessage.isError?i.a.createElement("div",{className:"text-error"},this.state.customThemeMessage.text):i.a.createElement("div",{className:"text-success"},this.state.customThemeMessage.text)),t=i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("form",{onSubmit:this.onAddCustomTheme},i.a.createElement(Ce.a,{label:Object(c.a)("Custom theme URL"),type:"text",id:"mx_GeneralUserSettingsTab_customThemeInput",autoComplete:"off",onChange:this.onCustomThemeChange,value:this.state.customThemeUrl}),i.a.createElement(g.a,{onClick:this.onAddCustomTheme,type:"submit",kind:"primary_sm",disabled:!this.state.customThemeUrl.trim()},Object(c.a)("Add theme")),e))}const n=Object.entries(Object(et.b)()).map(e=>({id:e[0],name:e[1]})),o=n.filter(e=>!e.id.startsWith("custom-")),r=n.filter(e=>!o.includes(e)).sort((e,t)=>e.name.localeCompare(t.name)),a=[...o,...r];return i.a.createElement("div",{className:"mx_SettingsTab_section mx_AppearanceUserSettingsTab_themeSection"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Theme")),e,i.a.createElement("div",{className:"mx_ThemeSelectors"},i.a.createElement(ht,{name:"theme",definitions:a.map(e=>({value:e.id,label:e.name,disabled:this.state.useSystemTheme,className:"mx_ThemeSelector_"+e.id})),onChange:this.onThemeChange,value:this.state.useSystemTheme?void 0:this.state.theme,outlined:!0})),t)}renderFontSection(){return i.a.createElement("div",{className:"mx_SettingsTab_section mx_AppearanceUserSettingsTab_fontScaling"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Font size")),i.a.createElement(dt,{className:"mx_AppearanceUserSettingsTab_fontSlider_preview",message:this.MESSAGE_PREVIEW_TEXT,useIRCLayout:this.state.useIRCLayout}),i.a.createElement("div",{className:"mx_AppearanceUserSettingsTab_fontSlider"},i.a.createElement("div",{className:"mx_AppearanceUserSettingsTab_fontSlider_smallText"},"Aa"),i.a.createElement(nt,{values:[13,14,15,16,18],value:parseInt(this.state.fontSize,10),onSelectionChange:this.onFontSizeChanged,displayFunc:e=>"",disabled:this.state.useCustomFontSize}),i.a.createElement("div",{className:"mx_AppearanceUserSettingsTab_fontSlider_largeText"},"Aa")),i.a.createElement(st,{name:"useCustomFontSize",level:Ye.a.ACCOUNT,onChange:e=>this.setState({useCustomFontSize:e}),useCheckbox:!0}),i.a.createElement(Ce.a,{type:"number",label:Object(c.a)("Font size"),autoComplete:"off",placeholder:this.state.fontSize.toString(),value:this.state.fontSize.toString(),id:"font_size_field",onValidate:this.onValidateFontSize,onChange:e=>this.setState({fontSize:e.target.value}),disabled:!this.state.useCustomFontSize,className:"mx_SettingsTab_customFontSizeField"}))}renderAdvancedSection(){if(!P.a.getValue($e.a.AdvancedSettings))return null;const e=l.a.get().brand,t=i.a.createElement("div",{className:"mx_AppearanceUserSettingsTab_AdvancedToggle",onClick:()=>this.setState({showAdvanced:!this.state.showAdvanced})},this.state.showAdvanced?Object(c.a)("Hide advanced"):Object(c.a)("Show advanced"));let n;if(this.state.showAdvanced){const t=Object(c.a)("Set the name of a font installed on your system & %(brand)s will attempt to use it.",{brand:e});n=i.a.createElement(i.a.Fragment,null,i.a.createElement(st,{name:"useCompactLayout",level:Ye.a.DEVICE,useCheckbox:!0,disabled:this.state.useIRCLayout}),i.a.createElement(st,{name:"useIRCLayout",level:Ye.a.DEVICE,useCheckbox:!0,onChange:e=>this.setState({useIRCLayout:e})}),i.a.createElement(st,{name:"useSystemFont",level:Ye.a.DEVICE,useCheckbox:!0,onChange:e=>this.setState({useSystemFont:e})}),i.a.createElement(Ce.a,{className:"mx_AppearanceUserSettingsTab_systemFont",label:P.a.getDisplayName("systemFont"),onChange:e=>{this.setState({systemFont:e.target.value}),P.a.setValue("systemFont",null,Ye.a.DEVICE,e.target.value)},tooltipContent:t,forceTooltipVisible:!0,disabled:!this.state.useSystemFont,value:this.state.systemFont}))}return i.a.createElement("div",{className:"mx_SettingsTab_section mx_AppearanceUserSettingsTab_Advanced"},t,n)}render(){const e=l.a.get().brand;return i.a.createElement("div",{className:"mx_SettingsTab mx_AppearanceUserSettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Customise your appearance")),i.a.createElement("div",{className:"mx_SettingsTab_SubHeading"},Object(c.a)("Appearance Settings only affect this %(brand)s session.",{brand:e})),this.renderThemeSection(),this.renderFontSection(),this.renderAdvancedSection())}}var ft=n(130),_t=n(155),bt=n(295),vt=n(148),Et=n(251),yt=n(170);class St extends i.a.PureComponent{constructor(e){super(e),R()(this,"_onKeyBackupSessionsRemaining",e=>{this.setState({sessionsRemaining:e})}),R()(this,"_onKeyBackupStatus",()=>{this._loadBackupStatus()}),R()(this,"_startNewBackup",()=>{Ie.a.createTrackedDialogAsync("Key Backup","Key Backup",n.e(4).then(n.bind(null,1607)),{onFinished:()=>{this._loadBackupStatus()}},null,!1,!0)}),R()(this,"_deleteBackup",()=>{Ie.a.createTrackedDialog("Delete Backup","",vt.a,{title:Object(c.a)("Delete Backup"),description:Object(c.a)("Are you sure? You will lose your encrypted messages if your keys are not backed up properly."),button:Object(c.a)("Delete Backup"),danger:!0,onFinished:e=>{e&&(this.setState({loading:!0}),X.a.get().deleteKeyBackupVersion(this.state.backupInfo.version).then(()=>{this._loadBackupStatus()}))}})}),R()(this,"_restoreBackup",async()=>{Ie.a.createTrackedDialog("Restore Backup","",Et.a,null,null,!1,!0)}),R()(this,"_resetSecretStorage",async()=>{this.setState({error:null});try{await Object(yt.b)(()=>{},!0)}catch(e){if(console.error("Error resetting secret storage",e),this._unmounted)return;this.setState({error:e})}this._unmounted||this._loadBackupStatus()}),this._unmounted=!1,this.state={loading:!0,error:null,backupKeyStored:null,backupKeyCached:null,backupKeyWellFormed:null,secretStorageKeyInAccount:null,secretStorageReady:null,backupInfo:null,backupSigStatus:null,sessionsRemaining:0}}componentDidMount(){this._checkKeyBackupStatus(),X.a.get().on("crypto.keyBackupStatus",this._onKeyBackupStatus),X.a.get().on("crypto.keyBackupSessionsRemaining",this._onKeyBackupSessionsRemaining)}componentWillUnmount(){this._unmounted=!0,X.a.get()&&(X.a.get().removeListener("crypto.keyBackupStatus",this._onKeyBackupStatus),X.a.get().removeListener("crypto.keyBackupSessionsRemaining",this._onKeyBackupSessionsRemaining))}async _checkKeyBackupStatus(){this._getUpdatedDiagnostics();try{const{backupInfo:e,trustInfo:t}=await X.a.get().checkKeyBackup();this.setState({loading:!1,error:null,backupInfo:e,backupSigStatus:t})}catch(e){if(console.log("Unable to fetch check backup status",e),this._unmounted)return;this.setState({loading:!1,error:e,backupInfo:null,backupSigStatus:null})}}async _loadBackupStatus(){this.setState({loading:!0}),this._getUpdatedDiagnostics();try{const e=await X.a.get().getKeyBackupVersion(),t=await X.a.get().isKeyBackupTrusted(e);if(this._unmounted)return;this.setState({loading:!1,error:null,backupInfo:e,backupSigStatus:t})}catch(e){if(console.log("Unable to fetch key backup status",e),this._unmounted)return;this.setState({loading:!1,error:e,backupInfo:null,backupSigStatus:null})}}async _getUpdatedDiagnostics(){const e=X.a.get(),t=e._crypto._secretStorage,n=!!await e.isKeyBackupKeyStored(),o=await e._crypto.getSessionBackupPrivateKey(),r=!!o,i=o instanceof Uint8Array,a=await t.hasKey(),s=await e.isSecretStorageReady();this._unmounted||this.setState({backupKeyStored:n,backupKeyCached:r,backupKeyWellFormed:i,secretStorageKeyInAccount:a,secretStorageReady:s})}render(){const{loading:e,error:t,backupKeyStored:n,backupKeyCached:o,backupKeyWellFormed:r,secretStorageKeyInAccount:a,secretStorageReady:s,backupInfo:l,backupSigStatus:u,sessionsRemaining:d}=this.state;let h,p,m;const f=[];if(t)h=i.a.createElement("div",{className:"error"},Object(c.a)("Unable to load key backup status"));else if(e)h=i.a.createElement(We.a,null);else if(l){let e,t=Object(c.a)("Restore from Backup");X.a.get().getKeyBackupEnabled()?h=i.a.createElement("p",null,"✅ ",Object(c.a)("This session is backing up your keys. ")):(h=i.a.createElement(i.a.Fragment,null,i.a.createElement("p",null,Object(c.a)("This session is <b>not backing up your keys</b>, but you do have an existing backup you can restore from and add to going forward.",{},{b:e=>i.a.createElement("b",null,e)})),i.a.createElement("p",null,Object(c.a)("Connect this session to key backup before signing out to avoid losing any keys that may only be on this session."))),t=Object(c.a)("Connect this session to Key Backup")),e=X.a.get().getKeyBackupEnabled()?d>0?i.a.createElement("div",null,Object(c.a)("Backing up %(sessionsRemaining)s keys...",{sessionsRemaining:d})," ",i.a.createElement("br",null)):i.a.createElement("div",null,Object(c.a)("All keys backed up")," ",i.a.createElement("br",null)):"";let n,o=u.sigs.map((e,t)=>{const n=e.device?e.device.getDisplayName()||e.device.deviceId:null,o=t=>i.a.createElement("span",{className:e.valid?"mx_SecureBackupPanel_sigValid":"mx_SecureBackupPanel_sigInvalid"},t),r=t=>i.a.createElement("span",{className:e.device&&e.deviceTrust.isVerified()?"mx_SecureBackupPanel_deviceVerified":"mx_SecureBackupPanel_deviceNotVerified"},t),a=e=>i.a.createElement("span",{className:"mx_SecureBackupPanel_deviceName"},n),s=e.device&&e.device.getFingerprint()===X.a.get().getDeviceEd25519Key(),l=e.crossSigningId&&e.deviceId===X.a.get().getCrossSigningId();let u;return e.valid&&l?u=Object(c.a)("Backup has a <validity>valid</validity> signature from this user",{},{validity:o}):!e.valid&&l?u=Object(c.a)("Backup has a <validity>invalid</validity> signature from this user",{},{validity:o}):e.crossSigningId?u=Object(c.a)("Backup has a signature from <verify>unknown</verify> user with ID %(deviceId)s",{deviceId:e.deviceId},{verify:r}):e.device?e.valid&&s?u=Object(c.a)("Backup has a <validity>valid</validity> signature from this session",{},{validity:o}):!e.valid&&s?u=Object(c.a)("Backup has an <validity>invalid</validity> signature from this session",{},{validity:o}):e.valid&&e.deviceTrust.isVerified()?u=Object(c.a)("Backup has a <validity>valid</validity> signature from <verify>verified</verify> session <device></device>",{},{validity:o,verify:r,device:a}):e.valid&&!e.deviceTrust.isVerified()?u=Object(c.a)("Backup has a <validity>valid</validity> signature from <verify>unverified</verify> session <device></device>",{},{validity:o,verify:r,device:a}):!e.valid&&e.deviceTrust.isVerified()?u=Object(c.a)("Backup has an <validity>invalid</validity> signature from <verify>verified</verify> session <device></device>",{},{validity:o,verify:r,device:a}):e.valid||e.deviceTrust.isVerified()||(u=Object(c.a)("Backup has an <validity>invalid</validity> signature from <verify>unverified</verify> session <device></device>",{},{validity:o,verify:r,device:a})):u=Object(c.a)("Backup has a signature from <verify>unknown</verify> session with ID %(deviceId)s",{deviceId:e.deviceId},{verify:r}),i.a.createElement("div",{key:t},u)});0===u.sigs.length&&(o=Object(c.a)("Backup is not signed by any of your sessions")),u.trusted_locally&&(n=Object(c.a)("This backup is trusted because it has been restored on this session")),p=i.a.createElement(i.a.Fragment,null,i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Backup version:")),i.a.createElement("td",null,l.version)),i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Algorithm:")),i.a.createElement("td",null,l.algorithm))),m=i.a.createElement(i.a.Fragment,null,e,i.a.createElement("div",null,o),i.a.createElement("div",null,n)),f.push(i.a.createElement(g.a,{key:"restore",kind:"primary",onClick:this._restoreBackup},t)),Object(bt.c)()||f.push(i.a.createElement(g.a,{key:"delete",kind:"danger",onClick:this._deleteBackup},Object(c.a)("Delete Backup")))}else h=i.a.createElement(i.a.Fragment,null,i.a.createElement("p",null,Object(c.a)("Your keys are <b>not being backed up from this session</b>.",{},{b:e=>i.a.createElement("b",null,e)})),i.a.createElement("p",null,Object(c.a)("Back up your keys before signing out to avoid losing them."))),f.push(i.a.createElement(g.a,{key:"setup",kind:"primary",onClick:this._startNewBackup},Object(c.a)("Set up")));a&&f.push(i.a.createElement(g.a,{key:"reset",kind:"danger",onClick:this._resetSecretStorage},Object(c.a)("Reset")));let _,b="";return o&&(b=", ",b+=r?Object(c.a)("well formed"):Object(c.a)("unexpected type")),f.length&&(_=i.a.createElement("div",{className:"mx_SecureBackupPanel_buttonRow"},f)),i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Back up your encryption keys with your account data in case you lose access to your sessions. Your keys will be secured with a unique Recovery Key.")),h,i.a.createElement("details",null,i.a.createElement("summary",null,Object(c.a)("Advanced")),i.a.createElement("table",{className:"mx_SecureBackupPanel_statusList"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Backup key stored:")),i.a.createElement("td",null,!0===n?Object(c.a)("in secret storage"):Object(c.a)("not stored"))),i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Backup key cached:")),i.a.createElement("td",null,o?Object(c.a)("cached locally"):Object(c.a)("not found locally"),b)),i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Secret storage public key:")),i.a.createElement("td",null,a?Object(c.a)("in account data"):Object(c.a)("not found"))),i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Secret storage:")),i.a.createElement("td",null,s?Object(c.a)("ready"):Object(c.a)("not ready"))),p)),m),_)}}var Tt=e=>{const t=u.getComponent("views.elements.SettingsFlag");return i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Encryption")),i.a.createElement(t,{name:"e2ee.manuallyVerifyAllSessions",level:Ye.a.DEVICE}),i.a.createElement("div",{className:"mx_E2eAdvancedPanel_settingLongDescription"},Object(c.a)("Individually verify each session used by a user to mark it as trusted, not trusting cross-signed devices.")))};class wt extends i.a.Component{constructor(...e){super(...e),R()(this,"_onUnignoreClicked",e=>{this.props.onUnignored(this.props.userId)})}render(){const e="mx_SecurityUserSettingsTab_ignoredUser_"+this.props.userId;return i.a.createElement("div",{className:"mx_SecurityUserSettingsTab_ignoredUser"},i.a.createElement(g.a,{onClick:this._onUnignoreClicked,kind:"primary_sm","aria-describedby":e,disabled:this.props.inProgress},Object(c.a)("Unignore")),i.a.createElement("span",{id:e},this.props.userId))}}R()(wt,"propTypes",{userId:Se.a.string.isRequired,onUnignored:Se.a.func.isRequired,inProgress:Se.a.bool.isRequired});class Ct extends i.a.Component{constructor(){super(),R()(this,"_updateBlacklistDevicesFlag",e=>{X.a.get().setGlobalBlacklistUnverifiedDevices(e)}),R()(this,"_updateAnalytics",e=>{e?E.a.enable():E.a.disable(),y.a.instance.enable(!e)}),R()(this,"_onExportE2eKeysClicked",()=>{Ie.a.createTrackedDialogAsync("Export E2E Keys","",n.e(3).then(n.bind(null,1626)),{matrixClient:X.a.get()})}),R()(this,"_onImportE2eKeysClicked",()=>{Ie.a.createTrackedDialogAsync("Import E2E Keys","",n.e(25).then(n.bind(null,1627)),{matrixClient:X.a.get()})}),R()(this,"_onGoToUserProfileClick",()=>{d.a.dispatch({action:"view_user_info",userId:X.a.get().getUserId()}),this.props.closeSettingsFn()}),R()(this,"_onUserUnignored",async e=>{const{ignoredUserIds:t,waitingUnignored:n}=this.state,o=t.filter(e=>!n.includes(e)),r=o.indexOf(e);-1!==r&&(o.splice(r,1),this.setState(({waitingUnignored:t})=>({waitingUnignored:[...t,e]})),X.a.get().setIgnoredUsers(o))}),R()(this,"_getInvitedRooms",()=>X.a.get().getRooms().filter(e=>e.hasMembershipState(X.a.get().getUserId(),"invite"))),R()(this,"_manageInvites",async e=>{this.setState({managingInvites:!0});const t=this._getInvitedRooms().map(e=>e.roomId),n=this,o=X.a.get(),r=e?o.joinRoom.bind(o):o.leave.bind(o);for(let e=0;e<t.length;e++){const o=t[e];await r(o).then(()=>{this.setState({invitedRoomAmt:n.state.invitedRoomAmt-1})},async t=>{"M_LIMIT_EXCEEDED"===t.errcode?(await Object(ft.d)(t.retry_after_ms||2500),e--):console.warn(t)})}this.setState({managingInvites:!1})}),R()(this,"_onAcceptAllInvitesClicked",e=>{this._manageInvites(!0)}),R()(this,"_onRejectAllInvitesClicked",e=>{this._manageInvites(!1)});const e=this._getInvitedRooms();this.state={ignoredUserIds:X.a.get().getIgnoredUsers(),waitingUnignored:[],managingInvites:!1,invitedRoomAmt:e.length},this._onAction=this._onAction.bind(this)}_onAction({action:e}){if("ignore_state_changed"===e){const e=X.a.get().getIgnoredUsers(),t=this.state.waitingUnignored.filter(t=>e.includes(t));this.setState({ignoredUserIds:e,waitingUnignored:t})}}componentDidMount(){this.dispatcherRef=d.a.register(this._onAction)}componentWillUnmount(){d.a.unregister(this.dispatcherRef)}_renderCurrentDeviceInfo(){const e=u.getComponent("views.elements.SettingsFlag"),t=X.a.get(),n=t.deviceId;let o=t.getDeviceEd25519Key();o=o?q.e(o):Object(c.a)("<not supported>");let r,a=null;return t.isCryptoEnabled()&&(a=i.a.createElement("div",{className:"mx_SecurityUserSettingsTab_importExportButtons"},i.a.createElement(g.a,{kind:"primary",onClick:this._onExportE2eKeysClicked},Object(c.a)("Export E2E room keys")),i.a.createElement(g.a,{kind:"primary",onClick:this._onImportE2eKeysClicked},Object(c.a)("Import E2E room keys")))),P.a.isEnabled("blacklistUnverifiedDevices")&&(r=i.a.createElement(e,{name:"blacklistUnverifiedDevices",level:Ye.a.DEVICE,onChange:this._updateBlacklistDevicesFlag})),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Cryptography")),i.a.createElement("ul",{className:"mx_SettingsTab_subsectionText mx_SecurityUserSettingsTab_deviceInfo"},i.a.createElement("li",null,i.a.createElement("label",null,Object(c.a)("Session ID:")),i.a.createElement("span",null,i.a.createElement("code",null,n))),i.a.createElement("li",null,i.a.createElement("label",null,Object(c.a)("Session key:")),i.a.createElement("span",null,i.a.createElement("code",null,i.a.createElement("b",null,o))))),a,r)}_renderIgnoredUsers(){const{waitingUnignored:e,ignoredUserIds:t}=this.state;if(!t||0===t.length)return null;const n=t.map(t=>i.a.createElement(wt,{userId:t,onUnignored:this._onUserUnignored,key:t,inProgress:e.includes(t)}));return i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Ignored users")),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},n))}_renderManageInvites(){if(0===this.state.invitedRoomAmt)return null;const e=this._getInvitedRooms(),t=u.getComponent("elements.InlineSpinner"),n=this._onAcceptAllInvitesClicked.bind(this,e),o=this._onRejectAllInvitesClicked.bind(this,e);return i.a.createElement("div",{className:"mx_SettingsTab_section mx_SecurityUserSettingsTab_bulkOptions"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Bulk options")),i.a.createElement(g.a,{onClick:n,kind:"primary",disabled:this.state.managingInvites},Object(c.a)("Accept all %(invitedRooms)s invites",{invitedRooms:this.state.invitedRoomAmt})),i.a.createElement(g.a,{onClick:o,kind:"danger",disabled:this.state.managingInvites},Object(c.a)("Reject all %(invitedRooms)s invites",{invitedRooms:this.state.invitedRoomAmt})),this.state.managingInvites?i.a.createElement(t,null):i.a.createElement("div",null))}render(){const e=l.a.get().brand,t=u.getComponent("views.settings.DevicesPanel"),n=u.getComponent("views.elements.SettingsFlag"),o=u.getComponent("views.settings.EventIndexPanel"),r=i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Secure Backup")),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},i.a.createElement(St,null))),a=i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Message search")),i.a.createElement(o,null)),s=u.getComponent("views.settings.CrossSigningPanel"),d=i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Cross-signing")),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},i.a.createElement(s,null)));let h,p;Object(_t.e)()||(h=i.a.createElement("div",{className:"mx_SecurityUserSettingsTab_warning"},Object(c.a)("Your server admin has disabled end-to-end encryption by default in private rooms & Direct Messages."))),(E.a.canEnable()||y.a.instance.canEnable())&&(p=i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Privacy")),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Analytics")),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("%(brand)s collects anonymous analytics to allow us to improve the application.",{brand:e})," ",Object(c.a)("Privacy is important to us, so we don't collect any personal or identifiable data for our analytics."),i.a.createElement(g.a,{className:"mx_SettingsTab_linkBtn",onClick:E.a.showDetailsModal},Object(c.a)("Learn more about how we use analytics."))),i.a.createElement(n,{name:"analyticsOptIn",level:Ye.a.DEVICE,onChange:this._updateAnalytics}))));const m=u.getComponent("views.settings.E2eAdvancedPanel");let f;if(P.a.getValue($e.a.AdvancedSettings)){const e=this._renderIgnoredUsers(),t=this._renderManageInvites(),n=P.a.isEnabled("e2ee.manuallyVerifyAllSessions")?i.a.createElement(m,null):null;(e||t||n)&&(f=i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Advanced")),i.a.createElement("div",{className:"mx_SettingsTab_section"},e,t,n)))}return i.a.createElement("div",{className:"mx_SettingsTab mx_SecurityUserSettingsTab"},h,i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Where youre logged in")),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",null,Object(c.a)("Manage the names of and sign out of your sessions below or <a>verify them in your User Profile</a>.",{},{a:e=>i.a.createElement(g.a,{kind:"link",onClick:this._onGoToUserProfileClick},e)})),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("A session's public name is visible to people you communicate with"),i.a.createElement(t,null))),i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Encryption")),i.a.createElement("div",{className:"mx_SettingsTab_section"},r,a,d,this._renderCurrentDeviceInfo()),p,f)}}R()(Ct,"propTypes",{closeSettingsFn:Se.a.func.isRequired});class xt extends i.a.Component{constructor(){super()}render(){const e=u.getComponent("views.settings.Notifications");return i.a.createElement("div",{className:"mx_SettingsTab mx_NotificationUserSettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Notifications")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement(e,null)))}}class Ot extends i.a.Component{constructor(){super(),R()(this,"_onAutoLaunchChange",e=>{qe.a.get().setAutoLaunchEnabled(e).then(()=>this.setState({autoLaunch:e}))}),R()(this,"_onAlwaysShowMenuBarChange",e=>{qe.a.get().setAutoHideMenuBarEnabled(!e).then(()=>this.setState({alwaysShowMenuBar:e}))}),R()(this,"_onMinimizeToTrayChange",e=>{qe.a.get().setMinimizeToTrayEnabled(e).then(()=>this.setState({minimizeToTray:e}))}),R()(this,"_onAutocompleteDelayChange",e=>{this.setState({autocompleteDelay:e.target.value}),P.a.setValue("autocompleteDelay",null,Ye.a.DEVICE,e.target.value)}),R()(this,"_onReadMarkerInViewThresholdMs",e=>{this.setState({readMarkerInViewThresholdMs:e.target.value}),P.a.setValue("readMarkerInViewThresholdMs",null,Ye.a.DEVICE,e.target.value)}),R()(this,"_onReadMarkerOutOfViewThresholdMs",e=>{this.setState({readMarkerOutOfViewThresholdMs:e.target.value}),P.a.setValue("readMarkerOutOfViewThresholdMs",null,Ye.a.DEVICE,e.target.value)}),this.state={autoLaunch:!1,autoLaunchSupported:!1,alwaysShowMenuBar:!0,alwaysShowMenuBarSupported:!1,minimizeToTray:!0,minimizeToTraySupported:!1,autocompleteDelay:P.a.getValueAt(Ye.a.DEVICE,"autocompleteDelay").toString(10),readMarkerInViewThresholdMs:P.a.getValueAt(Ye.a.DEVICE,"readMarkerInViewThresholdMs").toString(10),readMarkerOutOfViewThresholdMs:P.a.getValueAt(Ye.a.DEVICE,"readMarkerOutOfViewThresholdMs").toString(10)}}async componentDidMount(){const e=qe.a.get(),t=await e.supportsAutoLaunch();let n=!1;t&&(n=await e.getAutoLaunchEnabled());const o=await e.supportsAutoHideMenuBar();let r=!0;o&&(r=!await e.getAutoHideMenuBarEnabled());const i=await e.supportsMinimizeToTray();let a=!0;i&&(a=await e.getMinimizeToTrayEnabled()),this.setState({autoLaunch:n,autoLaunchSupported:t,alwaysShowMenuBarSupported:o,alwaysShowMenuBar:r,minimizeToTraySupported:i,minimizeToTray:a})}_renderGroup(e){const t=u.getComponent("views.elements.SettingsFlag");return e.filter(P.a.isEnabled).map(e=>i.a.createElement(t,{key:e,name:e,level:Ye.a.ACCOUNT}))}render(){let e=null;this.state.autoLaunchSupported&&(e=i.a.createElement(Xe.a,{value:this.state.autoLaunch,onChange:this._onAutoLaunchChange,label:Object(c.a)("Start automatically after system login")}));let t=null;this.state.alwaysShowMenuBarSupported&&(t=i.a.createElement(Xe.a,{value:this.state.alwaysShowMenuBar,onChange:this._onAlwaysShowMenuBarChange,label:Object(c.a)("Always show the window menu bar")}));let n=null;return this.state.minimizeToTraySupported&&(n=i.a.createElement(Xe.a,{value:this.state.minimizeToTray,onChange:this._onMinimizeToTrayChange,label:Object(c.a)("Show tray icon and minimize window to it on close")})),i.a.createElement("div",{className:"mx_SettingsTab mx_PreferencesUserSettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Preferences")),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Room list")),this._renderGroup(Ot.ROOM_LIST_SETTINGS)),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Composer")),this._renderGroup(Ot.COMPOSER_SETTINGS)),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Timeline")),this._renderGroup(Ot.TIMELINE_SETTINGS)),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("General")),this._renderGroup(Ot.GENERAL_SETTINGS),n,t,e,i.a.createElement(Ce.a,{label:Object(c.a)("Autocomplete delay (ms)"),type:"number",value:this.state.autocompleteDelay,onChange:this._onAutocompleteDelayChange}),i.a.createElement(Ce.a,{label:Object(c.a)("Read Marker lifetime (ms)"),type:"number",value:this.state.readMarkerInViewThresholdMs,onChange:this._onReadMarkerInViewThresholdMs}),i.a.createElement(Ce.a,{label:Object(c.a)("Read Marker off-screen lifetime (ms)"),type:"number",value:this.state.readMarkerOutOfViewThresholdMs,onChange:this._onReadMarkerOutOfViewThresholdMs})))}}R()(Ot,"ROOM_LIST_SETTINGS",["breadcrumbs"]),R()(Ot,"COMPOSER_SETTINGS",["MessageComposerInput.autoReplaceEmoji","MessageComposerInput.suggestEmoji","sendTypingNotifications","MessageComposerInput.ctrlEnterToSend"]),R()(Ot,"TIMELINE_SETTINGS",["showTypingNotifications","autoplayGifsAndVideos","urlPreviewsEnabled","TextualBody.enableBigEmoji","showReadReceipts","showTwelveHourTimestamps","alwaysShowTimestamps","showRedactions","enableSyntaxHighlightLanguageDetection","showJoinLeaves","showAvatarChanges","showDisplaynameChanges","showImages","showChatEffects","Pill.shouldShowPillAvatar"]),R()(Ot,"GENERAL_SETTINGS",["TagPanel.enableTagPanel","promptBeforeInviteUnknownUsers"]);var kt=async function(){return(await navigator.mediaDevices.enumerateDevices()).some(e=>!!e.label)},Rt=function(){return navigator.mediaDevices.enumerateDevices().then((function(e){const t=[],n=[],o=[];return e.forEach(e=>{switch(e.kind){case"audiooutput":t.push(e);break;case"audioinput":n.push(e);break;case"videoinput":o.push(e)}}),{audiooutput:t,audioinput:n,videoinput:o}}),e=>{console.log("Unable to refresh WebRTC Devices: ",e)})},At=function(){const e=P.a.getValue("webrtc_audiooutput"),t=P.a.getValue("webrtc_audioinput"),n=P.a.getValue("webrtc_videoinput");Pe.s(e),Pe.r(t),Pe.t(n)},It=function(e){P.a.setValue("webrtc_audiooutput",null,Ye.a.DEVICE,e),Pe.s(e)},Dt=function(e){P.a.setValue("webrtc_audioinput",null,Ye.a.DEVICE,e),Pe.r(e)},Nt=function(e){P.a.setValue("webrtc_videoinput",null,Ye.a.DEVICE,e),Pe.t(e)},Ft=function(){return P.a.getValueAt(Ye.a.DEVICE,"webrtc_audiooutput")},Mt=function(){return P.a.getValueAt(Ye.a.DEVICE,"webrtc_audioinput")},Pt=function(){return P.a.getValueAt(Ye.a.DEVICE,"webrtc_videoinput")};class Lt extends i.a.Component{constructor(){super(),R()(this,"_refreshMediaDevices",async e=>{this.setState({mediaDevices:await Rt(),activeAudioOutput:Ft(),activeAudioInput:Mt(),activeVideoInput:Pt()}),e&&e.getTracks().forEach(e=>e.stop())}),R()(this,"_requestMediaPermissions",async()=>{let e,t,n;try{e={video:!0,audio:!0},t=await navigator.mediaDevices.getUserMedia(e)}catch(o){if("NotFoundError"===o.name){e={audio:!0};try{t=await navigator.mediaDevices.getUserMedia(e)}catch(e){n=e}}else n=o}if(n){const e=l.a.get().brand,t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("No media permissions","",t,{title:Object(c.a)("No media permissions"),description:Object(c.a)("You may need to manually permit %(brand)s to access your microphone/webcam",{brand:e})})}else this._refreshMediaDevices(t)}),R()(this,"_setAudioOutput",e=>{It(e.target.value),this.setState({activeAudioOutput:e.target.value})}),R()(this,"_setAudioInput",e=>{Dt(e.target.value),this.setState({activeAudioInput:e.target.value})}),R()(this,"_setVideoInput",e=>{Nt(e.target.value),this.setState({activeVideoInput:e.target.value})}),R()(this,"_changeWebRtcMethod",e=>{X.a.get().setForceTURN(!e)}),R()(this,"_changeFallbackICEServerAllowed",e=>{X.a.get().setFallbackICEServerAllowed(e)}),this.state={mediaDevices:!1,activeAudioOutput:null,activeAudioInput:null,activeVideoInput:null}}async componentDidMount(){await kt()&&this._refreshMediaDevices()}_renderDeviceOptions(e,t){return e.map(e=>i.a.createElement("option",{key:`${t}-${e.deviceId}`,value:e.deviceId},e.label))}render(){const e=u.getComponent("views.elements.SettingsFlag");let t=null,n=null,o=null,r=null;if(!1===this.state.mediaDevices)t=i.a.createElement("div",{className:"mx_VoiceUserSettingsTab_missingMediaPermissions"},i.a.createElement("p",null,Object(c.a)("Missing media permissions, click the button below to request.")),i.a.createElement(g.a,{onClick:this._requestMediaPermissions,kind:"primary"},Object(c.a)("Request media permissions")));else if(this.state.mediaDevices){n=i.a.createElement("p",null,Object(c.a)("No Audio Outputs detected")),o=i.a.createElement("p",null,Object(c.a)("No Microphones detected")),r=i.a.createElement("p",null,Object(c.a)("No Webcams detected"));const e={deviceId:"",label:Object(c.a)("Default Device")},t=t=>t.some(e=>"default"===e.deviceId)?"default":(t.unshift(e),""),a=this.state.mediaDevices.audiooutput.slice(0);if(a.length>0){const e=t(a);n=i.a.createElement(Ce.a,{element:"select",label:Object(c.a)("Audio Output"),value:this.state.activeAudioOutput||e,onChange:this._setAudioOutput},this._renderDeviceOptions(a,"audioOutput"))}const s=this.state.mediaDevices.audioinput.slice(0);if(s.length>0){const e=t(s);o=i.a.createElement(Ce.a,{element:"select",label:Object(c.a)("Microphone"),value:this.state.activeAudioInput||e,onChange:this._setAudioInput},this._renderDeviceOptions(s,"audioInput"))}const l=this.state.mediaDevices.videoinput.slice(0);if(l.length>0){const e=t(l);r=i.a.createElement(Ce.a,{element:"select",label:Object(c.a)("Camera"),value:this.state.activeVideoInput||e,onChange:this._setVideoInput},this._renderDeviceOptions(l,"videoInput"))}}return i.a.createElement("div",{className:"mx_SettingsTab mx_VoiceUserSettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Voice & Video")),i.a.createElement("div",{className:"mx_SettingsTab_section"},t,n,o,r,i.a.createElement(e,{name:"VideoView.flipVideoHorizontally",level:Ye.a.ACCOUNT}),i.a.createElement(e,{name:"webRtcAllowPeerToPeer",level:Ye.a.DEVICE,onChange:this._changeWebRtcMethod}),i.a.createElement(e,{name:"fallbackICEServerAllowed",level:Ye.a.DEVICE,onChange:this._changeFallbackICEServerAllowed})))}}var Ut=n(490),Bt=n(254);var jt=n(215);function Gt(){qe.a.get().installUpdate()}const qt=[Bt.c.Ready,Bt.c.Error,Bt.c.NotAvailable];var Ht=()=>{const[e,t]=Object(r.useState)(null);((e,t)=>{const n=Object(r.useRef)(e=>{});Object(r.useEffect)(()=>{n.current=t},[t]),Object(r.useEffect)(()=>{const t=e.register(e=>n.current(e));return()=>{e.unregister(t)}},[e])})(d.a,e=>{let{action:n}=e,o=te()(e,["action"]);n===h.a.CheckUpdates&&t(o)});const n=e&&!qt.includes(e.status);let o;return e&&(o=i.a.createElement("span",{className:"mx_UpdateCheckButton_summary"},function(e,t){switch(e){case Bt.c.Error:return Object(c.a)("Error encountered (%(errorDetail)s).",{errorDetail:t});case Bt.c.Checking:return Object(c.a)("Checking for an update...");case Bt.c.NotAvailable:return Object(c.a)("No update available.");case Bt.c.Downloading:return Object(c.a)("Downloading update...");case Bt.c.Ready:return Object(c.a)("New version available. <a>Update now.</a>",{},{a:e=>i.a.createElement(g.a,{kind:"link",onClick:Gt},e)})}}(e.status,e.detail),n&&i.a.createElement(jt.a,null))),i.a.createElement(i.a.Fragment,null,i.a.createElement(g.a,{onClick:()=>{t(null),qe.a.get().startUpdateCheck()},kind:"primary",disabled:n},Object(c.a)("Check for update")),o)};class Vt extends i.a.Component{constructor(){super(),R()(this,"_onClearCacheAndReload",e=>{qe.a.get()&&(console.log("Clear cache & reload clicked"),X.a.get().stopClient(),X.a.get().store.deleteAllData().then(()=>{qe.a.get().reload()}))}),R()(this,"_onBugReport",e=>{const t=u.getComponent("dialogs.BugReportDialog");t&&Ie.a.createTrackedDialog("Bug Report Dialog","",t,{})}),R()(this,"_onStartBotChat",e=>{this.props.closeSettingsFn(),Object(_t.b)({dmUserId:l.a.get().welcomeUserId,andView:!0})}),R()(this,"_showSpoiler",e=>{const t=e.target;t.innerHTML=t.getAttribute("data-spoiler");const n=document.createRange();n.selectNodeContents(t);const o=window.getSelection();o.removeAllRanges(),o.addRange(n)}),this.state={appVersion:null,canUpdate:!1}}componentDidMount(){qe.a.get().getAppVersion().then(e=>this.setState({appVersion:e})).catch(e=>{console.error("Error getting vector version: ",e)}),qe.a.get().canSelfUpdate().then(e=>this.setState({canUpdate:e})).catch(e=>{console.error("Error getting self updatability: ",e)})}_renderLegal(){if(!l.a.get().terms_and_conditions_links)return null;const e=[];for(const t of l.a.get().terms_and_conditions_links)e.push(i.a.createElement("div",{key:t.url},i.a.createElement("a",{href:t.url,rel:"noreferrer noopener",target:"_blank"},t.text)));return i.a.createElement("div",{className:"mx_SettingsTab_section mx_HelpUserSettingsTab_versions"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Legal")),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},e))}_renderCredits(){return i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Credits")),i.a.createElement("ul",null,i.a.createElement("li",null,"The ",i.a.createElement("a",{href:"themes/element/img/backgrounds/lake.jpg",rel:"noreferrer noopener",target:"_blank"},"default cover photo")," is © ",i.a.createElement("a",{href:"https://www.flickr.com/golan",rel:"noreferrer noopener",target:"_blank"},"Jesús Roncero")," ","used under the terms of ",i.a.createElement("a",{href:"https://creativecommons.org/licenses/by-sa/4.0/",rel:"noreferrer noopener",target:"_blank"},"CC-BY-SA 4.0"),"."),i.a.createElement("li",null,"The ",i.a.createElement("a",{href:"https://github.com/matrix-org/twemoji-colr",rel:"noreferrer noopener",target:"_blank"}," twemoji-colr")," font is © ",i.a.createElement("a",{href:"https://mozilla.org",rel:"noreferrer noopener",target:"_blank"},"Mozilla Foundation")," ","used under the terms of ",i.a.createElement("a",{href:"http://www.apache.org/licenses/LICENSE-2.0",rel:"noreferrer noopener",target:"_blank"},"Apache 2.0"),"."),i.a.createElement("li",null,"The ",i.a.createElement("a",{href:"https://twemoji.twitter.com/",rel:"noreferrer noopener",target:"_blank"},"Twemoji")," emoji art is © ",i.a.createElement("a",{href:"https://twemoji.twitter.com/",rel:"noreferrer noopener",target:"_blank"},"Twitter, Inc and other contributors")," used under the terms of ",i.a.createElement("a",{href:"https://creativecommons.org/licenses/by/4.0/",rel:"noreferrer noopener",target:"_blank"},"CC-BY 4.0"),".")))}render(){const e=l.a.get().brand;let t=Object(c.a)("For help with using %(brand)s, click <a>here</a>.",{brand:e},{a:e=>i.a.createElement("a",{href:"https://element.io/help",rel:"noreferrer noopener",target:"_blank"},e)});l.a.get().welcomeUserId&&Object(c.d)().startsWith("en")&&(t=i.a.createElement("div",null,Object(c.a)("For help with using %(brand)s, click <a>here</a> or start a chat with our bot using the button below.",{brand:e},{a:e=>i.a.createElement("a",{href:"https://element.io/help",rel:"noreferrer noopener",target:"_blank"},e)}),i.a.createElement("div",null,i.a.createElement(g.a,{onClick:this._onStartBotChat,kind:"primary"},Object(c.a)("Chat with %(brand)s Bot",{brand:e})))));const n=this.state.appVersion||"unknown";let o=X.a.get().olmVersion;o=o?`${o[0]}.${o[1]}.${o[2]}`:"<not-enabled>";let r,a=null;return this.state.canUpdate&&(a=i.a.createElement(Ht,null)),l.a.get().bug_report_endpoint_url&&(r=i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Bug reporting")),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("If you've submitted a bug via GitHub, debug logs can help us track down the problem. Debug logs contain application usage data including your username, the IDs or aliases of the rooms or groups you have visited and the usernames of other users. They do not contain messages."),i.a.createElement("div",{className:"mx_HelpUserSettingsTab_debugButton"},i.a.createElement(g.a,{onClick:this._onBugReport,kind:"primary"},Object(c.a)("Submit debug logs"))),Object(c.a)("To report a Matrix-related security issue, please read the Matrix.org <a>Security Disclosure Policy</a>.",{},{a:e=>i.a.createElement("a",{href:"https://matrix.org/security-disclosure-policy/",rel:"noreferrer noopener",target:"_blank"},e)})))),i.a.createElement("div",{className:"mx_SettingsTab mx_HelpUserSettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Help & About")),r,i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("FAQ")),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},t),i.a.createElement(g.a,{kind:"primary",onClick:Ut.d},Object(c.a)("Keyboard Shortcuts"))),i.a.createElement("div",{className:"mx_SettingsTab_section mx_HelpUserSettingsTab_versions"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Versions")),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("%(brand)s version:",{brand:e})," ",n,i.a.createElement("br",null),Object(c.a)("olm version:")," ",o,i.a.createElement("br",null),a)),this._renderLegal(),this._renderCredits(),i.a.createElement("div",{className:"mx_SettingsTab_section mx_HelpUserSettingsTab_versions"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Advanced")),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Homeserver is")," ",i.a.createElement("code",null,X.a.get().getHomeserverUrl()),i.a.createElement("br",null),Object(c.a)("Identity Server is")," ",i.a.createElement("code",null,X.a.get().getIdentityServerUrl()),i.a.createElement("br",null),Object(c.a)("Access Token:")+" ",i.a.createElement(g.a,{element:"span",onClick:this._showSpoiler,"data-spoiler":X.a.get().getAccessToken()},"<",Object(c.a)("click to reveal"),">"),i.a.createElement("div",{className:"mx_HelpUserSettingsTab_debugButton"},i.a.createElement(g.a,{onClick:this._onClearCacheAndReload,kind:"danger"},Object(c.a)("Clear cache and reload"))))))}}R()(Vt,"propTypes",{closeSettingsFn:Se.a.func.isRequired});class zt extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{error:null,groups:null})}componentDidMount(){this.context.getJoinedGroups().then(e=>{this.setState({groups:e.groups||[],error:null})},e=>{console.error(e),this.setState({groups:null,error:e})})}render(){let e="",t=null;const n=this.state.groups;if(this.state.error)e=Object(c.a)("Something went wrong when trying to get your communities.");else if(null===n)e=Object(c.a)("Loading...");else if(n.length>0){const o=u.getComponent("groups.GroupPublicityToggle");t=n.map((e,t)=>i.a.createElement(o,{key:t,groupId:e})),e=Object(c.a)("Display your community flair in rooms configured to show it.")}else e=Object(c.a)("You're not currently a member of any communities.");return i.a.createElement("div",null,i.a.createElement("p",{className:"mx_SettingsTab_subsectionText"},e),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},t))}}R()(zt,"contextType",b.a);class Kt extends i.a.Component{render(){return i.a.createElement("div",{className:"mx_SettingsTab"},i.a.createElement("span",{className:"mx_SettingsTab_heading"},Object(c.a)("Flair")),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement(zt,null)))}}var Wt=n(484),Yt=(n(800),n(364));class $t extends i.a.Component{constructor(){super(),R()(this,"_onPersonalRuleChanged",e=>{this.setState({newPersonalRule:e.target.value})}),R()(this,"_onNewListChanged",e=>{this.setState({newList:e.target.value})}),R()(this,"_onAddPersonalRule",async e=>{e.preventDefault(),e.stopPropagation();let t=Yt.d;this.state.newPersonalRule.startsWith("@")&&(t=Yt.e),this.setState({busy:!0});try{const e=await Wt.a.sharedInstance().getOrCreatePersonalList();await e.banEntity(t,this.state.newPersonalRule,Object(c.a)("Ignored/Blocked")),this.setState({newPersonalRule:""})}catch(e){console.error(e);const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Failed to add Mjolnir rule","",t,{title:Object(c.a)("Error adding ignored user/server"),description:Object(c.a)("Something went wrong. Please try again or view your console for hints.")})}finally{this.setState({busy:!1})}}),R()(this,"_onSubscribeList",async e=>{e.preventDefault(),e.stopPropagation(),this.setState({busy:!0});try{const e=await X.a.get().joinRoom(this.state.newList);await Wt.a.sharedInstance().subscribeToList(e.roomId),this.setState({newList:""})}catch(e){console.error(e);const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Failed to subscribe to Mjolnir list","",t,{title:Object(c.a)("Error subscribing to list"),description:Object(c.a)("Please verify the room ID or address and try again.")})}finally{this.setState({busy:!1})}}),this.state={busy:!1,newPersonalRule:"",newList:""}}async _removePersonalRule(e){this.setState({busy:!0});try{const t=Wt.a.sharedInstance().getPersonalList();await t.unbanEntity(e.kind,e.entity)}catch(e){console.error(e);const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Failed to remove Mjolnir rule","",t,{title:Object(c.a)("Error removing ignored user/server"),description:Object(c.a)("Something went wrong. Please try again or view your console for hints.")})}finally{this.setState({busy:!1})}}async _unsubscribeFromList(e){this.setState({busy:!0});try{await Wt.a.sharedInstance().unsubscribeFromList(e.roomId),await X.a.get().leave(e.roomId)}catch(e){console.error(e);const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Failed to unsubscribe from Mjolnir list","",t,{title:Object(c.a)("Error unsubscribing from list"),description:Object(c.a)("Please try again or view your console for hints.")})}finally{this.setState({busy:!1})}}_viewListRules(e){const t=u.getComponent("dialogs.QuestionDialog"),n=X.a.get().getRoom(e.roomId),o=n?n.name:e.roomId,r=e=>{if(0===e.length)return i.a.createElement("i",null,Object(c.a)("None"));const t=[];for(const n of e)t.push(i.a.createElement("li",{key:n.kind+n.entity},i.a.createElement("code",null,n.entity)));return i.a.createElement("ul",null,t)};Ie.a.createTrackedDialog("View Mjolnir list rules","",t,{title:Object(c.a)("Ban list rules - %(roomName)s",{roomName:o}),description:i.a.createElement("div",null,i.a.createElement("h3",null,Object(c.a)("Server rules")),r(e.serverRules),i.a.createElement("h3",null,Object(c.a)("User rules")),r(e.userRules)),button:Object(c.a)("Close"),hasCancelButton:!1})}_renderPersonalBanListRules(){const e=u.getComponent("elements.AccessibleButton"),t=Wt.a.sharedInstance().getPersonalList(),n=t?[...t.userRules,...t.serverRules]:[];if(!t||n.length<=0)return i.a.createElement("i",null,Object(c.a)("You have not ignored anyone."));const o=[];for(const t of n)o.push(i.a.createElement("li",{key:t.entity,className:"mx_MjolnirUserSettingsTab_listItem"},i.a.createElement(e,{kind:"danger_sm",onClick:()=>this._removePersonalRule(t),disabled:this.state.busy},Object(c.a)("Remove"))," ",i.a.createElement("code",null,t.entity)));return i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("You are currently ignoring:")),i.a.createElement("ul",null,o))}_renderSubscribedBanLists(){const e=u.getComponent("elements.AccessibleButton"),t=Wt.a.sharedInstance().getPersonalList(),n=Wt.a.sharedInstance().lists.filter(e=>!t||t.roomId!==e.roomId);if(!n||n.length<=0)return i.a.createElement("i",null,Object(c.a)("You are not subscribed to any lists"));const o=[];for(const t of n){const n=X.a.get().getRoom(t.roomId),r=n?i.a.createElement("span",null,n.name," (",i.a.createElement("code",null,t.roomId),")"):i.a.createElement("code",null,"list.roomId");o.push(i.a.createElement("li",{key:t.roomId,className:"mx_MjolnirUserSettingsTab_listItem"},i.a.createElement(e,{kind:"danger_sm",onClick:()=>this._unsubscribeFromList(t),disabled:this.state.busy},Object(c.a)("Unsubscribe"))," ",i.a.createElement(e,{kind:"primary_sm",onClick:()=>this._viewListRules(t),disabled:this.state.busy},Object(c.a)("View rules"))," ",r))}return i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("You are currently subscribed to:")),i.a.createElement("ul",null,o))}render(){const e=u.getComponent("elements.Field"),t=u.getComponent("elements.AccessibleButton"),n=l.a.get().brand;return i.a.createElement("div",{className:"mx_SettingsTab mx_MjolnirUserSettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Ignored users")),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},i.a.createElement("span",{className:"warning"},Object(c.a)("⚠ These settings are meant for advanced users.")),i.a.createElement("br",null),i.a.createElement("br",null),Object(c.a)("Add users and servers you want to ignore here. Use asterisks to have %(brand)s match any characters. For example, <code>@bot:*</code> would ignore all users that have the name 'bot' on any server.",{brand:n},{code:e=>i.a.createElement("code",null,e)}),i.a.createElement("br",null),i.a.createElement("br",null),Object(c.a)("Ignoring people is done through ban lists which contain rules for who to ban. Subscribing to a ban list means the users/servers blocked by that list will be hidden from you."))),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Personal ban list")),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Your personal ban list holds all the users/servers you personally don't want to see messages from. After ignoring your first user/server, a new room will show up in your room list named 'My Ban List' - stay in this room to keep the ban list in effect.")),i.a.createElement("div",null,this._renderPersonalBanListRules()),i.a.createElement("div",null,i.a.createElement("form",{onSubmit:this._onAddPersonalRule,autoComplete:"off"},i.a.createElement(e,{type:"text",label:Object(c.a)("Server or user ID to ignore"),placeholder:Object(c.a)("eg: @bot:* or example.org"),value:this.state.newPersonalRule,onChange:this._onPersonalRuleChanged}),i.a.createElement(t,{type:"submit",kind:"primary",onClick:this._onAddPersonalRule,disabled:this.state.busy},Object(c.a)("Ignore"))))),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Subscribed lists")),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},i.a.createElement("span",{className:"warning"},Object(c.a)("Subscribing to a ban list will cause you to join it!"))," ",i.a.createElement("span",null,Object(c.a)("If this isn't what you want, please use a different tool to ignore users."))),i.a.createElement("div",null,this._renderSubscribedBanLists()),i.a.createElement("div",null,i.a.createElement("form",{onSubmit:this._onSubscribeList,autoComplete:"off"},i.a.createElement(e,{type:"text",label:Object(c.a)("Room ID or address of ban list"),value:this.state.newList,onChange:this._onNewListChanged}),i.a.createElement(t,{type:"submit",kind:"primary",onClick:this._onSubscribeList,disabled:this.state.busy},Object(c.a)("Subscribe"))))))}}class Qt extends i.a.Component{constructor(){super(),this.state={mjolnirEnabled:P.a.getValue("feature_mjolnir")}}componentDidMount(){this._mjolnirWatcher=P.a.watchSetting("feature_mjolnir",null,this._mjolnirChanged.bind(this))}componentWillUnmount(){P.a.unwatchSetting(this._mjolnirWatcher)}_mjolnirChanged(e,t,n,o){this.setState({mjolnirEnabled:o})}_getTabs(){const e=[];return e.push(new Te("USER_GENERAL_TAB",Object(c.b)("General"),"mx_UserSettingsDialog_settingsIcon",i.a.createElement(Qe,{closeSettingsFn:this.props.onFinished}))),e.push(new Te("USER_APPEARANCE_TAB",Object(c.b)("Appearance"),"mx_UserSettingsDialog_appearanceIcon",i.a.createElement(gt,null))),P.a.getValue($e.a.Flair)&&e.push(new Te("USER_FLAIR_TAB",Object(c.b)("Flair"),"mx_UserSettingsDialog_flairIcon",i.a.createElement(Kt,null))),e.push(new Te("USER_NOTIFICATIONS_TAB",Object(c.b)("Notifications"),"mx_UserSettingsDialog_bellIcon",i.a.createElement(xt,null))),e.push(new Te("USER_PREFERENCES_TAB",Object(c.b)("Preferences"),"mx_UserSettingsDialog_preferencesIcon",i.a.createElement(Ot,null))),P.a.getValue($e.a.Voip)&&e.push(new Te("USER_VOICE_TAB",Object(c.b)("Voice & Video"),"mx_UserSettingsDialog_voiceIcon",i.a.createElement(Lt,null))),e.push(new Te("USER_SECURITY_TAB",Object(c.b)("Security & Privacy"),"mx_UserSettingsDialog_securityIcon",i.a.createElement(Ct,{closeSettingsFn:this.props.onFinished}))),l.a.get().showLabsSettings&&e.push(new Te("USER_LABS_TAB",Object(c.b)("Labs"),"mx_UserSettingsDialog_labsIcon",i.a.createElement(Ze,null))),this.state.mjolnirEnabled&&e.push(new Te("USER_MJOLNIR_TAB",Object(c.b)("Ignored users"),"mx_UserSettingsDialog_mjolnirIcon",i.a.createElement($t,null))),e.push(new Te("USER_HELP_TAB",Object(c.b)("Help & About"),"mx_UserSettingsDialog_helpIcon",i.a.createElement(Vt,{closeSettingsFn:this.props.onFinished}))),e}render(){const e=u.getComponent("views.dialogs.BaseDialog");return i.a.createElement(e,{className:"mx_UserSettingsDialog",hasCancel:!0,onFinished:this.props.onFinished,title:Object(c.a)("Settings")},i.a.createElement("div",{className:"ms_SettingsDialog_content"},i.a.createElement(we,{tabs:this._getTabs(),initialTabId:this.props.initialTabId})))}}R()(Qt,"propTypes",{onFinished:Se.a.func.isRequired,initialTabId:Se.a.string});var Xt=n(731);class Jt extends i.a.Component{constructor(e){super(e),R()(this,"_onDownload",async e=>{this.setState({downloadBusy:!0}),this._downloadProgressCallback(Object(c.a)("Preparing to download logs"));try{await Object(Xt.b)({sendLogs:!0,progressCallback:this._downloadProgressCallback,label:this.props.label}),this.setState({downloadBusy:!1,downloadProgress:null})}catch(e){this._unmounted||this.setState({downloadBusy:!1,downloadProgress:Object(c.a)("Failed to send logs: ")+""+e.message})}}),this.state={sendLogs:!0,busy:!1,err:null,issueUrl:"",text:e.initialText||"",progress:null,downloadBusy:!1,downloadProgress:null},this._unmounted=!1,this._onSubmit=this._onSubmit.bind(this),this._onCancel=this._onCancel.bind(this),this._onTextChange=this._onTextChange.bind(this),this._onIssueUrlChange=this._onIssueUrlChange.bind(this),this._onSendLogsChange=this._onSendLogsChange.bind(this),this._sendProgressCallback=this._sendProgressCallback.bind(this),this._downloadProgressCallback=this._downloadProgressCallback.bind(this)}componentWillUnmount(){this._unmounted=!0}_onCancel(e){this.props.onFinished(!1)}_onSubmit(e){if(!(this.state.text&&this.state.text.trim()||this.state.issueUrl&&this.state.issueUrl.trim()))return void this.setState({err:Object(c.a)("Please tell us what went wrong or, better, create a GitHub issue that describes the problem.")});const t=(this.state.text.length>0?this.state.text+"\n\n":"")+"Issue: "+(this.state.issueUrl.length>0?this.state.issueUrl:"No issue link given");this.setState({busy:!0,progress:null,err:null}),this._sendProgressCallback(Object(c.a)("Preparing to send logs")),Object(Xt.a)(l.a.get().bug_report_endpoint_url,{userText:t,sendLogs:!0,progressCallback:this._sendProgressCallback,label:this.props.label}).then(()=>{if(!this._unmounted){this.props.onFinished(!1);const e=u.getComponent("dialogs.QuestionDialog");Ie.a.createTrackedDialog("Bug report sent","",e,{title:Object(c.a)("Logs sent"),description:Object(c.a)("Thank you!"),hasCancelButton:!1})}},e=>{this._unmounted||this.setState({busy:!1,progress:null,err:Object(c.a)("Failed to send logs: ")+""+e.message})})}_onTextChange(e){this.setState({text:e.target.value})}_onIssueUrlChange(e){this.setState({issueUrl:e.target.value})}_onSendLogsChange(e){this.setState({sendLogs:e.target.checked})}_sendProgressCallback(e){this._unmounted||this.setState({progress:e})}_downloadProgressCallback(e){this._unmounted||this.setState({downloadProgress:e})}render(){const e=u.getComponent("elements.Spinner"),t=u.getComponent("views.dialogs.BaseDialog"),n=u.getComponent("views.elements.DialogButtons"),o=u.getComponent("elements.Field");let r=null;this.state.err&&(r=i.a.createElement("div",{className:"error"},this.state.err));let a,s=null;return this.state.busy&&(s=i.a.createElement("div",{className:"progress"},i.a.createElement(e,null),this.state.progress," ...")),window.Modernizr&&Object.values(window.Modernizr).some(e=>!1===e)&&(a=i.a.createElement("p",null,i.a.createElement("b",null,Object(c.a)("Reminder: Your browser is unsupported, so your experience may be unpredictable.")))),i.a.createElement(t,{className:"mx_BugReportDialog",onFinished:this._onCancel,title:Object(c.a)("Submit debug logs"),contentId:"mx_Dialog_content"},i.a.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},a,i.a.createElement("p",null,Object(c.a)("Debug logs contain application usage data including your username, the IDs or aliases of the rooms or groups you have visited and the usernames of other users. They do not contain messages.")),i.a.createElement("p",null,i.a.createElement("b",null,Object(c.a)("Before submitting logs, you must <a>create a GitHub issue</a> to describe your problem.",{},{a:e=>i.a.createElement("a",{target:"_blank",href:"https://github.com/vector-im/element-web/issues/new"},e)}))),i.a.createElement("div",{className:"mx_BugReportDialog_download"},i.a.createElement(g.a,{onClick:this._onDownload,kind:"link",disabled:this.state.downloadBusy},Object(c.a)("Download logs")),this.state.downloadProgress&&i.a.createElement("span",null,this.state.downloadProgress," ...")),i.a.createElement(o,{type:"text",className:"mx_BugReportDialog_field_input",label:Object(c.a)("GitHub issue"),onChange:this._onIssueUrlChange,value:this.state.issueUrl,placeholder:"https://github.com/vector-im/element-web/issues/..."}),i.a.createElement(o,{className:"mx_BugReportDialog_field_input",element:"textarea",label:Object(c.a)("Notes"),rows:5,onChange:this._onTextChange,value:this.state.text,placeholder:Object(c.a)("If there is additional context that would help in analysing the issue, such as what you were doing at the time, room IDs, user IDs, etc., please include those things here.")}),s,r),i.a.createElement(n,{primaryButton:Object(c.a)("Send logs"),onPrimaryButtonClick:this._onSubmit,focus:!0,onCancel:this._onCancel,disabled:this.state.busy}))}}Jt.propTypes={onFinished:Se.a.func.isRequired,initialText:Se.a.string};var Zt=n(304);var en=e=>{const[t,n]=Object(r.useState)(""),[o,a]=Object(r.useState)(""),s=()=>{e.onFinished(),Ie.a.createTrackedDialog("Bug Report Dialog","",Jt,{})},u=y.a.instance.canEnable(),d=l.a.get().brand;let h,p;return u&&(h=i.a.createElement(i.a.Fragment,null,i.a.createElement("hr",null),i.a.createElement("div",{className:"mx_FeedbackDialog_section mx_FeedbackDialog_rateApp"},i.a.createElement("h3",null,Object(c.a)("Rate %(brand)s",{brand:d})),i.a.createElement("p",null,Object(c.a)("Tell us below how you feel about %(brand)s so far.",{brand:d})),i.a.createElement("p",null,Object(c.a)("Please go into as much detail as you like, so we can track down the problem.")),i.a.createElement(ht,{name:"feedbackRating",value:t,onChange:n,definitions:[{value:"1",label:"😠"},{value:"2",label:"😞"},{value:"3",label:"😑"},{value:"4",label:"😄"},{value:"5",label:"😍"}]}),i.a.createElement(Ce.a,{id:"feedbackComment",label:Object(c.a)("Add comment"),placeholder:Object(c.a)("Comment"),type:"text",autoComplete:"off",value:o,element:"textarea",onChange:e=>{a(e.target.value)}})))),u&&(p=i.a.createElement("h2",null,Object(c.a)("There are two ways you can provide feedback and help us improve %(brand)s.",{brand:d}))),i.a.createElement(vt.a,{className:"mx_FeedbackDialog",hasCancelButton:!!u,title:Object(c.a)("Feedback"),description:i.a.createElement(i.a.Fragment,null,p,i.a.createElement("div",{className:"mx_FeedbackDialog_section mx_FeedbackDialog_reportBug"},i.a.createElement("h3",null,Object(c.a)("Report a bug")),i.a.createElement("p",null,Object(c.a)("Please view <existingIssuesLink>existing bugs on Github</existingIssuesLink> first. No match? <newIssueLink>Start a new one</newIssueLink>.",{},{existingIssuesLink:e=>i.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://github.com/vector-im/element-web/issues?q=is%3Aopen+is%3Aissue+sort%3Areactions-%2B1-desc"},e),newIssueLink:e=>i.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://github.com/vector-im/element-web/issues/new"},e)})),i.a.createElement("p",null,Object(c.a)("PRO TIP: If you start a bug, please submit <debugLogsLink>debug logs</debugLogsLink> to help us track down the problem.",{},{debugLogsLink:e=>i.a.createElement(g.a,{kind:"link",onClick:s},e)}))),h),button:u?Object(c.a)("Send feedback"):Object(c.a)("Go back"),buttonDisabled:u&&""===t,onFinished:n=>{u&&n&&(y.a.instance.reportFeedback(parseInt(t,10),o),Ie.a.createTrackedDialog("Feedback sent","",Zt.a,{title:Object(c.a)("Feedback sent"),description:Object(c.a)("Thank you!")})),e.onFinished()}})};class tn extends i.a.Component{constructor(){super(),R()(this,"defaultProps",{onFinished:function(){}}),this._onSettingsLinkClick=this._onSettingsLinkClick.bind(this),this._onExportE2eKeysClicked=this._onExportE2eKeysClicked.bind(this),this._onFinished=this._onFinished.bind(this),this._onSetRecoveryMethodClick=this._onSetRecoveryMethodClick.bind(this),this._onLogoutConfirm=this._onLogoutConfirm.bind(this);const e=X.a.get(),t=e.isCryptoEnabled()&&!e.getKeyBackupEnabled();this.state={shouldLoadBackupStatus:t,loading:t,backupInfo:null,error:null},t&&this._loadBackupStatus()}async _loadBackupStatus(){try{const e=await X.a.get().getKeyBackupVersion();this.setState({loading:!1,backupInfo:e})}catch(e){console.log("Unable to fetch key backup status",e),this.setState({loading:!1,error:e})}}_onSettingsLinkClick(){this.props.onFinished()}_onExportE2eKeysClicked(){Ie.a.createTrackedDialogAsync("Export E2E Keys","",n.e(3).then(n.bind(null,1626)),{matrixClient:X.a.get()})}_onFinished(e){e&&d.a.dispatch({action:"logout"}),this.props.onFinished()}_onSetRecoveryMethodClick(){this.state.backupInfo?Ie.a.createTrackedDialog("Restore Backup","",Et.a,null,null,!1,!0):Ie.a.createTrackedDialogAsync("Key Backup","Key Backup",n.e(4).then(n.bind(null,1607)),null,null,!1,!0),this.props.onFinished()}_onLogoutConfirm(){d.a.dispatch({action:"logout"}),this.props.onFinished()}render(){if(this.state.shouldLoadBackupStatus){const e=u.getComponent("views.dialogs.BaseDialog"),t=i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Encrypted messages are secured with end-to-end encryption. Only you and the recipient(s) have the keys to read these messages.")),i.a.createElement("p",null,Object(c.a)("Back up your keys before signing out to avoid losing them.")));let n;if(this.state.loading){const e=u.getComponent("views.elements.Spinner");n=i.a.createElement(e,null)}else{const e=u.getComponent("views.elements.DialogButtons");let o;o=this.state.backupInfo?Object(c.a)("Connect this session to Key Backup"):Object(c.a)("Start using Key Backup"),n=i.a.createElement("div",null,i.a.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},t),i.a.createElement(e,{primaryButton:o,hasCancel:!1,onPrimaryButtonClick:this._onSetRecoveryMethodClick,focus:!0},i.a.createElement("button",{onClick:this._onLogoutConfirm},Object(c.a)("I don't want my encrypted messages"))),i.a.createElement("details",null,i.a.createElement("summary",null,Object(c.a)("Advanced")),i.a.createElement("p",null,i.a.createElement("button",{onClick:this._onExportE2eKeysClicked},Object(c.a)("Manually export keys")))))}return i.a.createElement(e,{title:Object(c.a)("You'll lose access to your encrypted messages"),contentId:"mx_Dialog_content",hasCancel:!0,onFinished:this._onFinished},n)}{const e=u.getComponent("views.dialogs.QuestionDialog");return i.a.createElement(e,{hasCancelButton:!0,title:Object(c.a)("Sign out"),description:Object(c.a)("Are you sure you want to sign out?"),button:Object(c.a)("Sign out"),onFinished:this._onFinished})}}}var nn=n(154),on=n(118),rn=n(136),an=n(140);class sn extends i.a.PureComponent{constructor(e){super(e),R()(this,"avatarUploadRef",i.a.createRef()),R()(this,"onNameChange",e=>{this.setState({name:e.target.value})}),R()(this,"onSubmit",async e=>{if(e.preventDefault(),e.stopPropagation(),!this.state.busy){this.setState({busy:!0});try{let e=this.state.currentAvatarUrl||"";this.state.avatarFile&&(e=await X.a.get().uploadContent(this.state.avatarFile)),await X.a.get().setGroupProfile(this.props.communityId,{name:this.state.name,avatar_url:e}),await an.a.refreshGroupProfile(X.a.get(),this.props.communityId),this.props.onFinished(!0)}catch(e){console.error(e),this.setState({busy:!1,error:Object(c.a)("There was an error updating your community. The server is unable to process your request.")})}}}),R()(this,"onAvatarChanged",e=>{if(e.target.files&&e.target.files.length){this.setState({busy:!0});const t=e.target.files[0],n=new FileReader;n.onload=e=>{this.setState({avatarFile:t,busy:!1,avatarPreview:e.target.result})},n.readAsDataURL(t)}else this.setState({avatarFile:null})}),R()(this,"onChangeAvatar",()=>{this.avatarUploadRef.current&&this.avatarUploadRef.current.click()});const t=he.a.instance.getCommunityProfile(e.communityId);this.state={name:(null==t?void 0:t.name)||"",error:null,busy:!1,avatarFile:null,avatarPreview:null,currentAvatarUrl:null==t?void 0:t.avatarUrl}}render(){let e=i.a.createElement("img",{src:this.state.avatarPreview,className:"mx_EditCommunityPrototypeDialog_avatar"});if(!this.state.avatarPreview)if(this.state.currentAvatarUrl){const t=X.a.get().mxcUrlToHttp(this.state.currentAvatarUrl);e=i.a.createElement("img",{src:t,className:"mx_EditCommunityPrototypeDialog_avatar"})}else e=i.a.createElement("div",{className:"mx_EditCommunityPrototypeDialog_placeholderAvatar"});return i.a.createElement(rn.a,{className:"mx_EditCommunityPrototypeDialog",onFinished:this.props.onFinished,title:Object(c.a)("Update community")},i.a.createElement("form",{onSubmit:this.onSubmit},i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement("div",{className:"mx_EditCommunityPrototypeDialog_rowName"},i.a.createElement(Ce.a,{value:this.state.name,onChange:this.onNameChange,placeholder:Object(c.a)("Enter name"),label:Object(c.a)("Enter name")})),i.a.createElement("div",{className:"mx_EditCommunityPrototypeDialog_rowAvatar"},i.a.createElement("input",{type:"file",style:{display:"none"},ref:this.avatarUploadRef,accept:"image/*",onChange:this.onAvatarChanged}),i.a.createElement(g.a,{onClick:this.onChangeAvatar,className:"mx_EditCommunityPrototypeDialog_avatarContainer"},e),i.a.createElement("div",{className:"mx_EditCommunityPrototypeDialog_tip"},i.a.createElement("b",null,Object(c.a)("Add image (optional)")),i.a.createElement("span",null,Object(c.a)("An image will help people identify your community.")))),i.a.createElement(g.a,{kind:"primary",onClick:this.onSubmit,disabled:this.state.busy},Object(c.a)("Save")))))}}class cn extends i.a.Component{constructor(e){super(e),R()(this,"dispatcherRef",void 0),R()(this,"themeWatcherRef",void 0),R()(this,"buttonRef",Object(r.createRef)()),R()(this,"tagStoreRef",void 0),R()(this,"onTagStoreUpdate",()=>{this.forceUpdate()}),R()(this,"onProfileUpdate",async()=>{this.forceUpdate()}),R()(this,"onThemeChanged",()=>{this.setState({isDarkTheme:this.isUserOnDarkTheme()})}),R()(this,"onAction",e=>{e.action===h.a.ToggleUserMenu&&(this.state.contextMenuPosition?this.setState({contextMenuPosition:null}):this.buttonRef.current&&this.buttonRef.current.click())}),R()(this,"onOpenMenuClick",e=>{e.preventDefault(),e.stopPropagation();const t=e.target;this.setState({contextMenuPosition:t.getBoundingClientRect()})}),R()(this,"onContextMenu",e=>{e.preventDefault(),e.stopPropagation(),this.setState({contextMenuPosition:{left:e.clientX,top:e.clientY,width:20,height:0}})}),R()(this,"onCloseMenu",()=>{this.setState({contextMenuPosition:null})}),R()(this,"onSwitchThemeClick",e=>{e.preventDefault(),e.stopPropagation(),P.a.setValue("use_system_theme",null,Ye.a.DEVICE,!1);const t=this.state.isDarkTheme?"light":"dark";P.a.setValue("theme",null,Ye.a.DEVICE,t)}),R()(this,"onSettingsOpen",(e,t)=>{e.preventDefault(),e.stopPropagation();const n={action:h.a.ViewUserSettings,initialTabId:t};d.a.dispatch(n),this.setState({contextMenuPosition:null})}),R()(this,"onShowArchived",e=>{e.preventDefault(),e.stopPropagation(),console.log("TODO: Show archived rooms")}),R()(this,"onProvideFeedback",e=>{e.preventDefault(),e.stopPropagation(),Ie.a.createTrackedDialog("Feedback Dialog","",en),this.setState({contextMenuPosition:null})}),R()(this,"onSignOutClick",async e=>{var t;e.preventDefault(),e.stopPropagation();const n=X.a.get();n&&n.isCryptoEnabled()&&(null===(t=await n.exportRoomKeys())||void 0===t?void 0:t.length)?Ie.a.createTrackedDialog("Logout from LeftPanel","",tn):d.a.dispatch({action:"logout"}),this.setState({contextMenuPosition:null})}),R()(this,"onSignInClick",()=>{d.a.dispatch({action:"start_login"}),this.setState({contextMenuPosition:null})}),R()(this,"onRegisterClick",()=>{d.a.dispatch({action:"start_registration"}),this.setState({contextMenuPosition:null})}),R()(this,"onHomeClick",e=>{e.preventDefault(),e.stopPropagation(),d.a.dispatch({action:"view_home_page"}),this.setState({contextMenuPosition:null})}),R()(this,"onCommunitySettingsClick",e=>{e.preventDefault(),e.stopPropagation(),Ie.a.createTrackedDialog("Edit Community","",sn,{communityId:he.a.instance.getSelectedCommunityId()}),this.setState({contextMenuPosition:null})}),R()(this,"onCommunityMembersClick",e=>{e.preventDefault(),e.stopPropagation();const t=he.a.instance.getSelectedCommunityGeneralChat();t?(d.a.dispatch({action:"view_room",room_id:t.roomId},!0),d.a.dispatch({action:h.a.SetRightPanelPhase,phase:on.b.RoomMemberList})):Ie.a.createTrackedDialog("Failed to find general chat","",De.a,{title:Object(c.a)("Failed to find the general chat for this community"),description:Object(c.a)("Failed to find the general chat for this community")}),this.setState({contextMenuPosition:null})}),R()(this,"onCommunityInviteClick",e=>{e.preventDefault(),e.stopPropagation(),Object(nn.e)(he.a.instance.getSelectedCommunityId()),this.setState({contextMenuPosition:null})}),R()(this,"renderContextMenu",()=>{if(!this.state.contextMenuPosition)return null;const e=he.a.instance.getSelectedCommunityName();let t;const o=Ae("user-context-menu");X.a.get().isGuest()?t=i.a.createElement("div",{className:"mx_UserMenu_contextMenu_header mx_UserMenu_contextMenu_guestPrompts"},Object(c.a)("Got an account? <a>Sign in</a>",{},{a:e=>i.a.createElement(g.a,{kind:"link",onClick:this.onSignInClick},e)}),Object(c.a)("New here? <a>Create an account</a>",{},{a:e=>i.a.createElement(g.a,{kind:"link",onClick:this.onRegisterClick},e)})):o&&(t=i.a.createElement("div",{className:"mx_UserMenu_contextMenu_header mx_UserMenu_contextMenu_hostingLink"},Object(c.a)("<a>Upgrade</a> to your own domain",{},{a:e=>i.a.createElement("a",{href:o,target:"_blank",rel:"noreferrer noopener",tabIndex:-1},e)})));let r,a=null;this.hasHomePage&&(a=i.a.createElement(de.b,{iconClassName:"mx_UserMenu_iconHome",label:Object(c.a)("Home"),onClick:this.onHomeClick})),P.a.getValue($e.a.Feedback)&&(r=i.a.createElement(de.b,{iconClassName:"mx_UserMenu_iconMessage",label:Object(c.a)("Feedback"),onClick:this.onProvideFeedback}));let s=i.a.createElement("div",{className:"mx_UserMenu_contextMenu_name"},i.a.createElement("span",{className:"mx_UserMenu_contextMenu_displayName"},m.a.instance.displayName),i.a.createElement("span",{className:"mx_UserMenu_contextMenu_userId"},X.a.get().getUserId())),l=i.a.createElement(i.a.Fragment,null,i.a.createElement(de.c,null,a,i.a.createElement(de.b,{iconClassName:"mx_UserMenu_iconBell",label:Object(c.a)("Notification settings"),onClick:e=>this.onSettingsOpen(e,"USER_NOTIFICATIONS_TAB")}),i.a.createElement(de.b,{iconClassName:"mx_UserMenu_iconLock",label:Object(c.a)("Security & privacy"),onClick:e=>this.onSettingsOpen(e,"USER_SECURITY_TAB")}),i.a.createElement(de.b,{iconClassName:"mx_UserMenu_iconSettings",label:Object(c.a)("All settings"),onClick:e=>this.onSettingsOpen(e,null)}),r),i.a.createElement(de.c,{red:!0},i.a.createElement(de.b,{iconClassName:"mx_UserMenu_iconSignOut",label:Object(c.a)("Sign out"),onClick:this.onSignOutClick}))),u=null;if(e){const t=he.a.instance.getSelectedCommunityId();let n,o;s=i.a.createElement("div",{className:"mx_UserMenu_contextMenu_name"},i.a.createElement("span",{className:"mx_UserMenu_contextMenu_displayName"},e)),he.a.instance.canInviteTo(t)&&(o=i.a.createElement(de.b,{iconClassName:"mx_UserMenu_iconInvite",label:Object(c.a)("Invite"),onClick:this.onCommunityInviteClick})),he.a.instance.isAdminOf(t)&&(n=i.a.createElement(de.b,{iconClassName:"mx_UserMenu_iconSettings",label:Object(c.a)("Settings"),"aria-label":Object(c.a)("Community settings"),onClick:this.onCommunitySettingsClick})),l=i.a.createElement(de.c,null,n,i.a.createElement(de.b,{iconClassName:"mx_UserMenu_iconMembers",label:Object(c.a)("Members"),onClick:this.onCommunityMembersClick}),o),u=i.a.createElement(i.a.Fragment,null,i.a.createElement("hr",null),i.a.createElement("div",{className:"mx_UserMenu_contextMenu_header"},i.a.createElement("div",{className:"mx_UserMenu_contextMenu_name"},i.a.createElement("span",{className:"mx_UserMenu_contextMenu_displayName"},m.a.instance.displayName),i.a.createElement("span",{className:"mx_UserMenu_contextMenu_userId"},X.a.get().getUserId()))),i.a.createElement(de.c,null,i.a.createElement(de.b,{iconClassName:"mx_UserMenu_iconSettings",label:Object(c.a)("Settings"),"aria-label":Object(c.a)("User settings"),onClick:e=>this.onSettingsOpen(e,null)}),r),i.a.createElement(de.c,{red:!0},i.a.createElement(de.b,{iconClassName:"mx_UserMenu_iconSignOut",label:Object(c.a)("Sign out"),onClick:this.onSignOutClick})))}else X.a.get().isGuest()&&(l=i.a.createElement(i.a.Fragment,null,i.a.createElement(de.c,null,a,i.a.createElement(de.b,{iconClassName:"mx_UserMenu_iconSettings",label:Object(c.a)("Settings"),onClick:e=>this.onSettingsOpen(e,null)}),r)));const d=M()({mx_UserMenu_contextMenu:!0,mx_UserMenu_contextMenu_prototype:!!e});return i.a.createElement(de.e,{left:this.state.contextMenuPosition.width+this.state.contextMenuPosition.left-10,top:this.state.contextMenuPosition.top+this.state.contextMenuPosition.height+8,onFinished:this.onCloseMenu,className:d},i.a.createElement("div",{className:"mx_UserMenu_contextMenu_header"},s,i.a.createElement(L.a,{className:"mx_UserMenu_contextMenu_themeButton",onClick:this.onSwitchThemeClick,title:this.state.isDarkTheme?Object(c.a)("Switch to light mode"):Object(c.a)("Switch to dark mode")},i.a.createElement("img",{src:n(1313),alt:Object(c.a)("Switch theme"),width:16}))),t,l,u)}),this.state={contextMenuPosition:null,isDarkTheme:this.isUserOnDarkTheme()},m.a.instance.on(f.b,this.onProfileUpdate)}get hasHomePage(){return!!s(l.a.get())}componentDidMount(){this.dispatcherRef=d.a.register(this.onAction),this.themeWatcherRef=P.a.watchSetting("theme",null,this.onThemeChanged),this.tagStoreRef=A.a.addListener(this.onTagStoreUpdate)}componentWillUnmount(){this.themeWatcherRef&&P.a.unwatchSetting(this.themeWatcherRef),this.dispatcherRef&&d.a.unregister(this.dispatcherRef),m.a.instance.off(f.b,this.onProfileUpdate),this.tagStoreRef.remove()}isUserOnDarkTheme(){const e=P.a.getValue("theme");return e.startsWith("custom-")?Object(et.c)(e.substring("custom-".length)).is_dark:"dark"===e}render(){const e=X.a.get().getUserId(),t=m.a.instance.displayName||e,n=m.a.instance.getHttpAvatarUrl(32),r=he.a.instance.getSelectedCommunityName();let a=!1,s=Object(c.a)("User menu"),l=i.a.createElement("span",{className:"mx_UserMenu_userName"},t),u=i.a.createElement("span",{className:"mx_UserMenu_headerButtons"});r?(l=i.a.createElement("div",{className:"mx_UserMenu_doubleName"},i.a.createElement("span",{className:"mx_UserMenu_userName"},r),i.a.createElement("span",{className:"mx_UserMenu_subUserName"},t)),s=Object(c.a)("Community and user menu"),a=!0):P.a.getValue("feature_communities_v2_prototypes")&&(l=i.a.createElement("div",{className:"mx_UserMenu_doubleName"},i.a.createElement("span",{className:"mx_UserMenu_userName"},Object(c.a)("Home")),i.a.createElement("span",{className:"mx_UserMenu_subUserName"},t)),a=!0),this.props.isMinimized&&(l=null,u=null);const d=M()({mx_UserMenu:!0,mx_UserMenu_minimized:this.props.isMinimized,mx_UserMenu_prototype:a});return i.a.createElement(i.a.Fragment,null,i.a.createElement(o.c,{className:d,onClick:this.onOpenMenuClick,inputRef:this.buttonRef,label:s,isExpanded:!!this.state.contextMenuPosition,onContextMenu:this.onContextMenu},i.a.createElement("div",{className:"mx_UserMenu_row"},i.a.createElement("span",{className:"mx_UserMenu_userAvatarContainer"},i.a.createElement(p.a,{idName:e,name:t,url:n,width:32,height:32,resizeMethod:"crop",className:"mx_UserMenu_userAvatar"})),l,u)),this.renderContextMenu())}}var ln=n(738),un=n(139),dn=n(1);class hn extends un.a{constructor(){super(d.a),R()(this,"waitingRooms",[]),R()(this,"onMyMembership",async e=>{const t=P.a.getValue("breadcrumbs",null,!0);this.meetsRoomRequirement&&Object(dn.r)(t)&&await P.a.setValue("breadcrumbs",null,Ye.a.ACCOUNT,!0)}),R()(this,"onRoom",async e=>{const t=this.waitingRooms.find(t=>t.roomId===e.roomId);t&&(this.waitingRooms.splice(this.waitingRooms.indexOf(t),1),Date.now()-t.addedTs>9e4||await this.appendRoom(e))}),P.a.monitorSetting("breadcrumb_rooms",null),P.a.monitorSetting("breadcrumbs",null)}static get instance(){return hn.internalInstance}get rooms(){return this.state.rooms||[]}get visible(){return this.state.enabled&&this.meetsRoomRequirement}get meetsRoomRequirement(){return this.matrixClient&&this.matrixClient.getVisibleRooms().length>=20}async onAction(e){if(this.matrixClient)if("setting_updated"===e.action)"breadcrumb_rooms"===e.settingName?await this.updateRooms():"breadcrumbs"===e.settingName&&await this.updateState({enabled:P.a.getValue("breadcrumbs",null)});else if("view_room"===e.action)if(e.auto_join&&!this.matrixClient.getRoom(e.room_id))this.waitingRooms.push({roomId:e.room_id,addedTs:Date.now()});else{const t=this.matrixClient.getRoom(e.room_id);t&&await this.appendRoom(t)}}async onReady(){await this.updateRooms(),await this.updateState({enabled:P.a.getValue("breadcrumbs",null)}),this.matrixClient.on("Room.myMembership",this.onMyMembership),this.matrixClient.on("Room",this.onRoom)}async onNotReady(){this.matrixClient.removeListener("Room.myMembership",this.onMyMembership),this.matrixClient.removeListener("Room",this.onRoom)}async updateRooms(){let e=P.a.getValue("breadcrumb_rooms");e&&0!==e.length||(e=[]);const t=e.map(e=>this.matrixClient.getRoom(e)).filter(e=>!!e),n=this.state.rooms||[];Object(le.d)(t,n)&&await this.updateState({rooms:t})}async appendRoom(e){let t=!1;const n=(this.state.rooms||[]).slice(),o=this.matrixClient.getRoomUpgradeHistory(e.roomId);if(o.length>1){e=o[o.length-1];for(let e=0;e<o.length-1;e++){const r=n.findIndex(t=>t.roomId===o[e].roomId);-1!==r&&(n.splice(r,1),t=!0)}}const r=n.findIndex(t=>t.roomId===e.roomId);if(0!==r&&(-1!==r&&n.splice(r,1),n.splice(0,0,e),t=!0),n.length>20&&(n.splice(20,n.length-20),t=!0),t){await this.updateState({rooms:n});const e=n.map(e=>e.roomId);e.length>0&&await P.a.setValue("breadcrumb_rooms",null,Ye.a.ACCOUNT,e)}}}R()(hn,"internalInstance",new hn);var pn=n(384),mn=n(1314),gn=n(98);var fn=e=>{let{children:t}=e,n=te()(e,["children"]);return i.a.createElement(K.c,{handleHomeEnd:!0,onKeyDown:(e,t)=>{const n=e.target;if("INPUT"===n.tagName)return;let o=!0;switch(e.key){case gn.a.ARROW_UP:case gn.a.ARROW_DOWN:n.hasAttribute("aria-haspopup")&&n.click();break;case gn.a.ARROW_LEFT:case gn.a.ARROW_RIGHT:if(t.refs.length>0){const n=t.refs.findIndex(e=>e===t.activeRef),o=e.key===gn.a.ARROW_RIGHT?1:-1;t.refs.slice((n+o)%t.refs.length)[0].current.focus()}break;default:o=!1}o&&(e.preventDefault(),e.stopPropagation())}},({onKeyDownHandler:e})=>i.a.createElement("div",Z()({},n,{onKeyDown:e,role:"toolbar"}),t))};class _n extends i.a.PureComponent{constructor(e){super(e),R()(this,"isMounted",!0),R()(this,"onBreadcrumbsUpdate",()=>{this.isMounted&&(this.setState({doAnimation:!1,skipFirst:!0}),setTimeout(()=>this.setState({doAnimation:!0,skipFirst:!1}),0))}),R()(this,"viewRoom",(e,t)=>{E.a.trackEvent("Breadcrumbs","click_node",String(t)),d.a.dispatch({action:"view_room",room_id:e.roomId})}),this.state={doAnimation:!0,skipFirst:!1},hn.instance.on(f.b,this.onBreadcrumbsUpdate)}componentWillUnmount(){this.isMounted=!1,hn.instance.off(f.b,this.onBreadcrumbsUpdate)}render(){const e=hn.instance.rooms.map((e,t)=>{const n=W.b.instance.getTagsForRoom(e),o=n.includes($.a.DM)?$.a.DM:n[0];return i.a.createElement(K.b,{className:"mx_RoomBreadcrumbs_crumb",key:e.roomId,onClick:()=>this.viewRoom(e,t),"aria-label":Object(c.a)("Room %(name)s",{name:e.name}),title:e.name,tooltipClassName:"mx_RoomBreadcrumbs_Tooltip"},i.a.createElement(pn.a,{room:e,avatarSize:32,tag:o,displayBadge:!0,forceCount:!0}))});return e.length>0?i.a.createElement(mn.CSSTransition,{appear:!0,in:this.state.doAnimation,timeout:640,classNames:"mx_RoomBreadcrumbs"},i.a.createElement(fn,{className:"mx_RoomBreadcrumbs"},e.slice(this.state.skipFirst?1:0))):i.a.createElement("div",{className:"mx_RoomBreadcrumbs"},i.a.createElement("div",{className:"mx_RoomBreadcrumbs_placeholder"},Object(c.a)("No recently visited rooms")))}}class bn extends i.a.Component{constructor(e){super(e),R()(this,"onMouseWheel",e=>{if(this.props.verticalScrollsHorizontally&&this._scrollElement){const t=0,n=1,o=(new Date).getTime();if(Math.abs(e.deltaX)>0?(this._likelyTrackpadUser=!0,this._checkAgainForTrackpad=o+6e4):this._likelyTrackpadUser&&o>=this._checkAgainForTrackpad&&(this._likelyTrackpadUser=!1),this._likelyTrackpadUser)return;if(Math.abs(e.deltaX)<=t){const t=e.deltaY<0?-50:50,o=Math.abs(e.deltaY)<25?e.deltaY+t:e.deltaY;this._scrollElement.scrollLeft+=o*n}}}),this._collectScroller=this._collectScroller.bind(this),this._collectScrollerComponent=this._collectScrollerComponent.bind(this),this.checkOverflow=this.checkOverflow.bind(this),this._scrollElement=null,this._autoHideScrollbar=null,this._likelyTrackpadUser=null,this._checkAgainForTrackpad=0,this.state={leftIndicatorOffset:0,rightIndicatorOffset:0}}moveToOrigin(){this._scrollElement&&(this._scrollElement.scrollLeft=0,this._scrollElement.scrollTop=0)}_collectScroller(e){e&&!this._scrollElement&&(this._scrollElement=e,this._scrollElement.addEventListener("scroll",this.checkOverflow),this.checkOverflow())}_collectScrollerComponent(e){this._autoHideScrollbar=e}componentDidUpdate(e){(e&&e.children&&e.children.length||0)!==(this.props.children&&this.props.children.length||0)&&this.checkOverflow()}componentDidMount(){this.checkOverflow()}checkOverflow(){const e=this._scrollElement.scrollTop>0,t=this._scrollElement.scrollHeight>this._scrollElement.scrollTop+this._scrollElement.clientHeight,n=this._scrollElement.scrollLeft>0,o=this._scrollElement.scrollWidth>this._scrollElement.scrollLeft+this._scrollElement.clientWidth;e?this._scrollElement.classList.add("mx_IndicatorScrollbar_topOverflow"):this._scrollElement.classList.remove("mx_IndicatorScrollbar_topOverflow"),t?this._scrollElement.classList.add("mx_IndicatorScrollbar_bottomOverflow"):this._scrollElement.classList.remove("mx_IndicatorScrollbar_bottomOverflow"),n?this._scrollElement.classList.add("mx_IndicatorScrollbar_leftOverflow"):this._scrollElement.classList.remove("mx_IndicatorScrollbar_leftOverflow"),o?this._scrollElement.classList.add("mx_IndicatorScrollbar_rightOverflow"):this._scrollElement.classList.remove("mx_IndicatorScrollbar_rightOverflow"),this.props.trackHorizontalOverflow&&this.setState({leftIndicatorOffset:n?this._scrollElement.scrollLeft+"px":"0",rightIndicatorOffset:o?`-${this._scrollElement.scrollLeft}px`:"0"})}getScrollTop(){return this._autoHideScrollbar.getScrollTop()}componentWillUnmount(){this._scrollElement&&this._scrollElement.removeEventListener("scroll",this.checkOverflow)}render(){const e={left:this.state.leftIndicatorOffset},t={right:this.state.rightIndicatorOffset},n=this.props.trackHorizontalOverflow?i.a.createElement("div",{className:"mx_IndicatorScrollbar_leftOverflowIndicator",style:e}):null,o=this.props.trackHorizontalOverflow?i.a.createElement("div",{className:"mx_IndicatorScrollbar_rightOverflowIndicator",style:t}):null;return i.a.createElement(a.a,Z()({ref:this._collectScrollerComponent,wrappedRef:this._collectScroller,onWheel:this.onMouseWheel},this.props),n,this.props.children,o)}}R()(bn,"propTypes",{trackHorizontalOverflow:Se.a.bool,verticalScrollsHorizontally:Se.a.bool});var vn=()=>{const[e,t]=Object(r.useState)(null);return Object(_.a)(W.b.instance,W.a,()=>{if(W.b.instance.getFirstNameFilterCondition()){const e=Object.values(W.b.instance.orderedLists).flat(1).length;t(e)}else t(null)}),"number"!=typeof e?null:i.a.createElement("div",{className:"mx_LeftPanel_roomListFilterCount"},Object(c.a)("%(count)s results",{count:e}))},En=n(366),yn=n(742),Sn=n(122);const Tn=e=>e?e.getContent():void 0;var wn=n(305);const Cn=(e,t=null,n=!1)=>{const[o,i]=Object(r.useState)(P.a.getValue(e,t,n));return Object(r.useEffect)(()=>{const o=P.a.watchSetting(e,t,()=>{i(P.a.getValue(e,t,n))});return()=>{P.a.unwatchSetting(o)}},[e,t,n]),o};var xn=({onResize:e})=>{const t=Object(r.useContext)(b.a),n=((e,t)=>{const[n,o]=Object(r.useState)(()=>Tn(e.getAccountData(t))),i=Object(r.useCallback)(e=>{e.getType()===t&&o(e.getContent())},[t]);return Object(_.a)(e,"accountData",i),n||{}})(t,"m.widgets"),o=Cn("Widgets.leftPanel"),a=Object(r.useMemo)(()=>{if(!n||!o)return null;const e=Object.values(n).find(e=>e.id===o);return e?Sn.a.makeAppConfig(e.state_key,e.content,e.sender,null,e.id):null},[n,o]),[s,c]=Object(yn.a)("left-panel-widget-height",280),[l,u]=Object(yn.a)("left-panel-widget-expanded",!0);Object(r.useEffect)(e,[l]);const[d,h,p]=Object(K.e)(),m=h?0:-1;if(!a)return null;let f;return l&&(f=i.a.createElement(En.Resizable,{size:{height:s},minHeight:100,maxHeight:Math.min(window.innerHeight/2,500),onResize:e,onResizeStop:(e,t,n,o)=>{c(s+o.height)},handleWrapperClass:"mx_LeftPanelWidget_resizerHandles",handleClasses:{top:"mx_LeftPanelWidget_resizerHandle"},className:"mx_LeftPanelWidget_resizeBox",enable:{top:!0}},i.a.createElement(wn.a,{app:a,fullWidth:!0,show:!0,showMenubar:!1,userWidget:!0,userId:t.getUserId(),creatorUserId:a.creatorUserId,widgetPageTitle:Sn.a.getWidgetDataTitle(a),waitForIframeLoad:a.waitForIframeLoad}))),i.a.createElement("div",{className:"mx_LeftPanelWidget"},i.a.createElement("div",{onFocus:d,className:"mx_LeftPanelWidget_headerContainer",onKeyDown:e=>{switch(e.key){case gn.a.ARROW_LEFT:e.stopPropagation(),u(!1);break;case gn.a.ARROW_RIGHT:e.stopPropagation(),u(!0)}}},i.a.createElement("div",{className:"mx_LeftPanelWidget_stickable"},i.a.createElement(g.a,{onFocus:d,inputRef:p,tabIndex:m,className:"mx_LeftPanelWidget_headerText",role:"treeitem","aria-expanded":l,"aria-level":1,onClick:()=>{u(e=>!e)}},i.a.createElement("span",{className:M()({mx_LeftPanelWidget_collapseBtn:!0,mx_LeftPanelWidget_collapseBtn_collapsed:!l})}),i.a.createElement("span",null,Sn.a.getWidgetName(a))))),f)};const On=["mx_RoomSearch_input","mx_RoomSearch_minimizedHandle","mx_RoomSublist_headerText","mx_RoomTile","mx_RoomSublist_showNButton"];class kn extends r.Component{constructor(e){super(e),R()(this,"listContainerRef",Object(r.createRef)()),R()(this,"groupFilterPanelWatcherRef",void 0),R()(this,"bgImageWatcherRef",void 0),R()(this,"focusedElement",null),R()(this,"isDoingStickyHeaders",!1),R()(this,"onExplore",()=>{d.a.fire(h.a.ViewRoomDirectory)}),R()(this,"onBreadcrumbsUpdate",()=>{const e=hn.instance.visible;if(e!==this.state.showBreadcrumbs){if(this.setState({showBreadcrumbs:e}),!this.listContainerRef.current)return;this.handleStickyHeaders(this.listContainerRef.current)}}),R()(this,"onBackgroundImageUpdate",()=>{let e=m.a.instance.getHttpAvatarUrl(32);const t=P.a.getValue("RoomList.backgroundImage");t&&(e=X.a.get().mxcUrlToHttp(t,32,32));const n=`url(${e})`;e?document.body.style.getPropertyValue("--avatar-url")!==n&&document.body.style.setProperty("--avatar-url",n):document.body.style.removeProperty("--avatar-url")}),R()(this,"onScroll",e=>{const t=e.target;this.handleStickyHeaders(t)}),R()(this,"onResize",()=>{this.listContainerRef.current&&this.handleStickyHeaders(this.listContainerRef.current)}),R()(this,"onFocus",e=>{this.focusedElement=e.target}),R()(this,"onBlur",()=>{this.focusedElement=null}),R()(this,"onKeyDown",e=>{if(this.focusedElement)switch(e.key){case gn.a.ARROW_UP:case gn.a.ARROW_DOWN:e.stopPropagation(),e.preventDefault(),this.onMoveFocus(e.key===gn.a.ARROW_UP)}}),R()(this,"onEnter",()=>{const e=this.listContainerRef.current.querySelector(".mx_RoomTile");if(e)return e.click(),!0}),R()(this,"onMoveFocus",e=>{let t,n=this.focusedElement,o=!1;do{const r=e?n.lastElementChild:n.firstElementChild,i=e?n.previousElementSibling:n.nextElementSibling;o?r?n=r:i?n=i:(o=!1,n=n.parentElement):i?(n=i,o=!0):n=n.parentElement,n&&(t=n.classList)}while(n&&!On.some(e=>t.contains(e)));n&&(n.focus(),this.focusedElement=n)}),this.state={showBreadcrumbs:hn.instance.visible,showGroupFilterPanel:P.a.getValue("TagPanel.enableTagPanel")},hn.instance.on(f.b,this.onBreadcrumbsUpdate),W.b.instance.on(W.a,this.onBreadcrumbsUpdate),m.a.instance.on(f.b,this.onBackgroundImageUpdate),this.bgImageWatcherRef=P.a.watchSetting("RoomList.backgroundImage",null,this.onBackgroundImageUpdate),this.groupFilterPanelWatcherRef=P.a.watchSetting("TagPanel.enableTagPanel",null,()=>{this.setState({showGroupFilterPanel:P.a.getValue("TagPanel.enableTagPanel")})}),this.props.resizeNotifier.on("middlePanelResizedNoisy",this.onResize)}componentWillUnmount(){P.a.unwatchSetting(this.groupFilterPanelWatcherRef),P.a.unwatchSetting(this.bgImageWatcherRef),hn.instance.off(f.b,this.onBreadcrumbsUpdate),W.b.instance.off(W.a,this.onBreadcrumbsUpdate),m.a.instance.off(f.b,this.onBackgroundImageUpdate),this.props.resizeNotifier.off("middlePanelResizedNoisy",this.onResize)}handleStickyHeaders(e){this.isDoingStickyHeaders||(this.isDoingStickyHeaders=!0,window.requestAnimationFrame(()=>{this.doStickyHeaders(e),this.isDoingStickyHeaders=!1}))}doStickyHeaders(e){const t=e.scrollTop,n=e.offsetHeight+e.scrollTop,o=e.querySelectorAll(".mx_RoomSublist"),r=e.clientWidth-15,i=new Map;let a,s;for(const e of o){const r=e.querySelector(".mx_RoomSublist_stickable");r.style.removeProperty("display");const c=.4,l=e.offsetTop+c*Q.a<=t,u=e.offsetTop+c*Q.a>=n;l||e===o[0]?(i.set(r,{stickyTop:!0}),a&&(a.style.display="none",i.set(a,{makeInvisible:!0})),a=r):u&&!s?(i.set(r,{stickyBottom:!0}),s=r):i.set(r,{})}for(const t of i.keys()){const n=i.get(t);if(n.makeInvisible)t.style.display="none";else{if(n.stickyTop){t.classList.contains("mx_RoomSublist_headerContainer_stickyTop")||t.classList.add("mx_RoomSublist_headerContainer_stickyTop");const n=e.parentElement.offsetTop+"px";t.style.top!==n&&(t.style.top=n)}else t.classList.contains("mx_RoomSublist_headerContainer_stickyTop")&&t.classList.remove("mx_RoomSublist_headerContainer_stickyTop"),t.style.top&&t.style.removeProperty("top");if(n.stickyBottom){t.classList.contains("mx_RoomSublist_headerContainer_stickyBottom")||t.classList.add("mx_RoomSublist_headerContainer_stickyBottom");const n=window.innerHeight-(e.parentElement.offsetTop+e.parentElement.offsetHeight)+"px";t.style.bottom!==n&&(t.style.bottom=n)}else t.classList.contains("mx_RoomSublist_headerContainer_stickyBottom")&&t.classList.remove("mx_RoomSublist_headerContainer_stickyBottom"),t.style.bottom&&t.style.removeProperty("bottom");if(n.stickyTop||n.stickyBottom){t.classList.contains("mx_RoomSublist_headerContainer_sticky")||t.classList.add("mx_RoomSublist_headerContainer_sticky");const e=r+"px";t.style.width!==e&&(t.style.width=e)}else n.stickyTop||n.stickyBottom||(t.classList.contains("mx_RoomSublist_headerContainer_sticky")&&t.classList.remove("mx_RoomSublist_headerContainer_sticky"),t.style.width&&t.style.removeProperty("width"))}}const c=e.parentElement;a?c.classList.add("mx_LeftPanel_roomListWrapper_stickyTop"):c.classList.remove("mx_LeftPanel_roomListWrapper_stickyTop"),s?c.classList.add("mx_LeftPanel_roomListWrapper_stickyBottom"):c.classList.remove("mx_LeftPanel_roomListWrapper_stickyBottom")}renderHeader(){return r.createElement("div",{className:"mx_LeftPanel_userHeader"},r.createElement(cn,{isMinimized:this.props.isMinimized}))}renderBreadcrumbs(){if(this.state.showBreadcrumbs&&!this.props.isMinimized)return r.createElement(bn,{className:"mx_LeftPanel_breadcrumbsContainer mx_AutoHideScrollbar",verticalScrollsHorizontally:!0,tabIndex:-1},r.createElement(_n,null))}renderSearchExplore(){return r.createElement("div",{className:"mx_LeftPanel_filterContainer",onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown},r.createElement(ln.a,{isMinimized:this.props.isMinimized,onVerticalArrow:this.onKeyDown,onEnter:this.onEnter}),r.createElement(L.a,{className:"mx_LeftPanel_exploreButton",onClick:this.onExplore,title:Object(c.a)("Explore rooms")}))}render(){const e=this.state.showGroupFilterPanel?r.createElement("div",{className:"mx_LeftPanel_GroupFilterPanelContainer"},r.createElement(j,null),P.a.getValue("feature_custom_tags")?r.createElement(z,null):null):null,t=r.createElement(Ee,{onKeyDown:this.onKeyDown,resizeNotifier:null,onFocus:this.onFocus,onBlur:this.onBlur,isMinimized:this.props.isMinimized,onResize:this.onResize}),n=M()({mx_LeftPanel:!0,mx_LeftPanel_hasGroupFilterPanel:!!e,mx_LeftPanel_minimized:this.props.isMinimized}),o=M()("mx_LeftPanel_actualRoomListContainer","mx_AutoHideScrollbar");return r.createElement("div",{className:n},e,r.createElement("aside",{className:"mx_LeftPanel_roomListContainer"},this.renderHeader(),this.renderSearchExplore(),this.renderBreadcrumbs(),r.createElement(vn,null),r.createElement("div",{className:"mx_LeftPanel_roomListWrapper"},r.createElement("div",{className:o,onScroll:this.onScroll,ref:this.listContainerRef,tabIndex:-1},t)),!this.props.isMinimized&&r.createElement(xn,{onResize:this.onResize})))}}var Rn=n(265),An=n(721);async function In(){console.log("Checking for COLR support");const{userAgent:e}=navigator;if(e.includes("Firefox"))return console.log("Browser is Firefox - assuming COLR is supported"),!0;if(!e.includes("Chrome")&&e.includes("Safari"))return function(e){console.log("Browser is Safari - checking version for COLR support");try{const t=e.match(/Mac OS X ([\d|_]+).*Version\/([\d|.]+).*Safari/);if(t){const e=t[1],n=t[2],o=e.split("_").map(e=>parseInt(e,10)),r=n.split(".").map(e=>parseInt(e,10)),i=o[0]>=10&&o[1]>=14&&r[0]>=12;return console.log(`COLR support on Safari requires macOS 10.14 and Safari 12, detected Safari ${n} on macOS ${e}, COLR supported: `+i),i}}catch(e){console.error("Error in Safari COLR version check",e)}return console.warn("Couldn't determine Safari version to check COLR font support, assuming no."),!1}(e);try{const e=document.createElement("canvas"),t=e.getContext("2d"),n=new Image,o=`\n <svg xmlns="http://www.w3.org/2000/svg" width="20" height="100" style="background:#fff;fill:#000;">\n <style type="text/css">\n @font-face {\n font-family: "chromacheck-colr";\n src: url(data:application/x-font-woff;base64,${"d09GRgABAAAAAAKAAAwAAAAAAowAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABDT0xSAAACVAAAABYAAAAYAAIAJUNQQUwAAAJsAAAAEgAAABLJAAAQT1MvMgAAAYAAAAA6AAAAYBfxJ0pjbWFwAAABxAAAACcAAAAsAAzpM2dseWYAAAH0AAAAGgAAABoNIh0kaGVhZAAAARwAAAAvAAAANgxLumdoaGVhAAABTAAAABUAAAAkCAEEAmhtdHgAAAG8AAAABgAAAAYEAAAAbG9jYQAAAewAAAAGAAAABgANAABtYXhwAAABZAAAABsAAAAgAg4AHW5hbWUAAAIQAAAAOAAAAD4C5wsecG9zdAAAAkgAAAAMAAAAIAADAAB4AWNgZGAAYQ5+qdB4fpuvDNIsDCBwaQGTAIi+VlscBaJZGMDiHAxMIAoAtjIF/QB4AWNgZGBgYQACOAkUQQWMAAGRABAAAAB4AWNgZGBgYGJgAdMMUJILJMQgAWICAAH3AC4AeAFjYGFhYJzAwMrAwDST6QwDA0M/hGZ8zWDMyMmAChgFkDgKQMBw4CXDSwYWEBdIYgAFBgYA/8sIdAAABAAAAAAAAAB4AWNgYGBkYAZiBgYeBhYGBSDNAoRA/kuG//8hpDgjWJ4BAFVMBiYAAAAAAAANAAAAAQAAAAAEAAQAAAMAABEhESEEAPwABAD8AAAAeAEtxgUNgAAAAMHHIQTShTlOAty9/4bf7AARCwlBNhBw4L/43qXjYGUmf19TMuLcj/BJL3XfBg54AWNgZsALAAB9AAR4AWNgYGAEYj4gFgGygGwICQACOwAoAAAAAAABAAEAAQAAAA4AAAAAyP8AAA=="}) format("woff");\n }\n </style>\n <text x="0" y="0" font-size="20">\n <tspan font-family="chromacheck-colr" x="0" dy="20">&#xe900;</tspan>\n </text>\n </svg>`;e.width=20,e.height=100,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),console.log("Waiting for COLR SVG to load"),await new Promise(e=>n.onload=e),console.log("Drawing canvas to detect COLR support"),t.drawImage(n,0,0);const r=200===t.getImageData(10,10,1,1).data[0];return console.log("Canvas check revealed COLR is supported? "+r),r}catch(e){return console.error("Couldn't load COLR font",e),!1}}let Dn=!1;async function Nn(){if(!Dn)if(Dn=!0,await In()){const e=`url('${n(1329)}')`;document.fonts.add(new FontFace("Twemoji",e,{})),document.fonts.add(new FontFace("Twemoji",e,{weight:600})),document.fonts.add(new FontFace("Twemoji",e,{weight:700}))}else{const e=`url('${n(1330)}')`;document.fonts.add(new FontFace("Twemoji",e,{})),document.fonts.add(new FontFace("Twemoji",e,{weight:600})),document.fonts.add(new FontFace("Twemoji",e,{weight:700}))}}var Fn=n(386);class Mn{static moveTag(e,t,n){let o=A.a.getOrderedTags(),r=A.a.getRemovedTagsAccountData()||[];if(!o)return;o=o.filter(e=>e!==t),o=[...o.slice(0,n),t,...o.slice(n)],r=r.filter(e=>e!==t);const i=A.a.getStoreId();return Object(I.a)("TagOrderActions.moveTag",()=>(E.a.trackEvent("TagOrderActions","commitTagOrdering"),e.setAccountData("im.vector.web.tag_ordering",{tags:o,removedTags:r,_storeId:i})),()=>({tags:o,removedTags:r}))}static removeTag(e,t){const n=A.a.getOrderedTags(),o=A.a.getRemovedTagsAccountData()||[];if(o.includes(t))return new Fn.a(()=>{});o.push(t);const r=A.a.getStoreId();return Object(I.a)("TagOrderActions.removeTag",()=>(E.a.trackEvent("TagOrderActions","removeTag"),e.setAccountData("im.vector.web.tag_ordering",{tags:n,removedTags:o,_storeId:r})),()=>({removedTags:o}))}}var Pn=n(694),Ln=n(497),Un=n(373),Bn=(n(498),n(749));class jn extends Bn.a{notifyCollapsed(e){const t=this.resizer.config.onCollapsed;t&&t(e,this.id,this.domNode)}}class Gn extends Un.a{static createItem(e,t,n){return new jn(e,t,n)}constructor(e){var t,n;super(e),R()(this,"toggleSize",void 0),R()(this,"isCollapsed",!1),this.toggleSize=null===(t=e.resizer)||void 0===t||null===(n=t.config)||void 0===n?void 0:n.toggleSize}resize(e){const t=e<this.toggleSize;t&&!this.isCollapsed?(this.isCollapsed=!0,this.item.notifyCollapsed(!0)):!t&&this.isCollapsed&&(this.item.notifyCollapsed(!1),this.isCollapsed=!1),t||super.resize(e)}}var qn=n(499),Hn=n(157),Vn=n(134),zn=n(303);const Kn=()=>{Vn.a.sharedInstance().dismissToast("serverlimit")};var Wn=n(196),Yn=n(482),$n=n(119);class Qn extends i.a.Component{constructor(e){super(e),R()(this,"dispatcherRef",void 0),R()(this,"onAction",e=>{switch(e.action){case"call_state":{const t=pe.b.sharedInstance().getCallForRoom(e.room_id);t&&t.state===$n.e.Ringing?this.setState({incomingCall:t}):this.setState({incomingCall:null})}}}),R()(this,"onAnswerClick",e=>{e.stopPropagation(),d.a.dispatch({action:"answer",room_id:this.state.incomingCall.roomId})}),R()(this,"onRejectClick",e=>{e.stopPropagation(),d.a.dispatch({action:"reject",room_id:this.state.incomingCall.roomId})}),this.dispatcherRef=d.a.register(this.onAction),this.state={incomingCall:null}}componentWillUnmount(){d.a.unregister(this.dispatcherRef)}render(){if(!this.state.incomingCall)return null;let e=null;this.state.incomingCall&&(e=X.a.get().getRoom(this.state.incomingCall.roomId));const t=e?e.name:Object(c.a)("Unknown caller");let n=null;return this.state.incomingCall&&(n="voice"===this.state.incomingCall.type?Object(c.a)("Incoming voice call"):"video"===this.state.incomingCall.type?Object(c.a)("Incoming video call"):Object(c.a)("Incoming call")),i.a.createElement("div",{className:"mx_IncomingCallBox"},i.a.createElement("div",{className:"mx_IncomingCallBox_CallerInfo"},i.a.createElement(Wn.a,{room:e,height:32,width:32}),i.a.createElement("div",null,i.a.createElement("h1",null,t),i.a.createElement("p",null,n))),i.a.createElement("div",{className:"mx_IncomingCallBox_buttons"},i.a.createElement(Yn.a,{className:"mx_IncomingCallBox_decline",onClick:this.onRejectClick,kind:"danger",label:Object(c.a)("Decline")}),i.a.createElement("div",{className:"mx_IncomingCallBox_spacer"}),i.a.createElement(Yn.a,{className:"mx_IncomingCallBox_accept",onClick:this.onAnswerClick,kind:"primary",label:Object(c.a)("Accept")})))}}var Xn=n(500),Jn=n(247);class Zn extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{roomId:Y.a.getRoomId(),persistentWidgetId:Jn.a.getPersistentWidgetId()}),R()(this,"_onRoomViewStoreUpdate",e=>{Y.a.getRoomId()!==this.state.roomId&&this.setState({roomId:Y.a.getRoomId()})}),R()(this,"_onActiveWidgetStoreUpdate",()=>{this.setState({persistentWidgetId:Jn.a.getPersistentWidgetId()})})}componentDidMount(){this._roomStoreToken=Y.a.addListener(this._onRoomViewStoreUpdate),Jn.a.on("update",this._onActiveWidgetStoreUpdate)}componentWillUnmount(){this._roomStoreToken&&this._roomStoreToken.remove(),Jn.a.removeListener("update",this._onActiveWidgetStoreUpdate)}render(){if(this.state.persistentWidgetId){const e=Jn.a.getRoomId(this.state.persistentWidgetId);if(this.state.roomId!==e){const t=X.a.get().getRoom(e);if(!t)return null;const n=Sn.a.getRoomWidgets(t).find(e=>e.getStateKey()===Jn.a.getPersistentWidgetId()),o=Sn.a.makeAppConfig(n.getStateKey(),n.getContent(),n.getSender(),e,n.getId()),r=u.getComponent("elements.AppTile");return i.a.createElement(r,{key:o.id,app:o,fullWidth:!0,room:t,userId:X.a.get().credentials.userId,creatorUserId:o.creatorUserId,widgetPageTitle:Sn.a.getWidgetDataTitle(o),waitForIframeLoad:o.waitForIframeLoad,miniMode:!0,showMenubar:!1})}}return null}}const eo=[$n.e.Connected,$n.e.InviteSent,$n.e.Connecting,$n.e.CreateAnswer,$n.e.CreateOffer,$n.e.WaitLocalMedia];function to(e){let t=null,n=[];for(const o of e)eo.includes(o.state)&&(o.isRemoteOnHold()||null!==t?n.push(o):t=o);return null===t&&n.length>0&&(t=n[0],n=n.slice(1)),n.length>1&&console.log("Found more than 1 secondary call! Other calls will not be shown."),[t,n]}class no extends i.a.Component{constructor(e){super(e),R()(this,"roomStoreToken",void 0),R()(this,"dispatcherRef",void 0),R()(this,"settingsWatcherRef",void 0),R()(this,"onRoomViewStoreUpdate",e=>{if(Y.a.getRoomId()===this.state.roomId)return;const t=Y.a.getRoomId(),[n,o]=to(pe.b.sharedInstance().getAllActiveCallsNotInRoom(t));this.setState({roomId:t,primaryCall:n,secondaryCall:o[0]})}),R()(this,"onAction",e=>{switch(e.action){case"call_state":{const[e,t]=to(pe.b.sharedInstance().getAllActiveCallsNotInRoom(this.state.roomId));this.setState({primaryCall:e,secondaryCall:t[0]});break}}}),R()(this,"onCallRemoteHold",()=>{const[e,t]=to(pe.b.sharedInstance().getAllActiveCallsNotInRoom(this.state.roomId));this.setState({primaryCall:e,secondaryCall:t[0]})});const t=Y.a.getRoomId(),[n,o]=to(pe.b.sharedInstance().getAllActiveCallsNotInRoom(t));this.state={roomId:t,primaryCall:n,secondaryCall:o[0]}}componentDidMount(){this.roomStoreToken=Y.a.addListener(this.onRoomViewStoreUpdate),this.dispatcherRef=d.a.register(this.onAction),X.a.get().on($n.c.RemoteHoldUnhold,this.onCallRemoteHold)}componentWillUnmount(){X.a.get().removeListener($n.c.RemoteHoldUnhold,this.onCallRemoteHold),this.roomStoreToken&&this.roomStoreToken.remove(),d.a.unregister(this.dispatcherRef),P.a.unwatchSetting(this.settingsWatcherRef)}render(){return this.state.primaryCall?i.a.createElement(Xn.a,{call:this.state.primaryCall,secondaryCall:this.state.secondaryCall,pipMode:!0}):i.a.createElement(Zn,null)}}class oo extends i.a.PureComponent{render(){return i.a.createElement("div",{className:"mx_CallContainer"},i.a.createElement(Qn,null),i.a.createElement(no,null))}}var ro=n(701);class io extends r.PureComponent{constructor(e,t){super(e,t),R()(this,"onUpdateToasts",()=>{this.setState({toasts:ro.a.instance.components})}),this.state={toasts:ro.a.instance.components},ro.a.instance.on(f.b,this.onUpdateToasts)}componentWillUnmount(){ro.a.instance.off(f.b,this.onUpdateToasts)}render(){const e=this.state.toasts.map((e,t)=>r.createElement("div",{className:"mx_NonUrgentToastContainer_toast",key:"toast-"+t},r.createElement(e,{})));return r.createElement("div",{className:"mx_NonUrgentToastContainer",role:"alert"},e)}}function ao(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||!!e.getAttribute("contenteditable")}class so extends r.Component{constructor(e,t){super(e,t),R()(this,"_matrixClient",void 0),R()(this,"_roomView",void 0),R()(this,"_resizeContainer",void 0),R()(this,"_compactLayoutWatcherRef",void 0),R()(this,"resizer",void 0),R()(this,"canResetTimelineInRoom",e=>!this._roomView.current||this._roomView.current.canResetTimeline()),R()(this,"onAccountData",e=>{"m.ignored_user_list"===e.getType()&&d.a.dispatch({action:"ignore_state_changed"})}),R()(this,"onCompactLayoutChanged",(e,t,n,o,r)=>{this.setState({useCompactLayout:o})}),R()(this,"onSync",(e,t,n)=>{const o=this.state.syncErrorData&&this.state.syncErrorData.error&&this.state.syncErrorData.error.errcode,r=n&&n.error&&n.error.errcode;e===t&&o===r||("ERROR"===e?this.setState({syncErrorData:n}):this.setState({syncErrorData:null}),"PREPARED"===t&&"SYNCING"===e?this._updateServerNoticeEvents():this._calculateServerLimitToast(this.state.syncErrorData,this.state.usageLimitEventContent))}),R()(this,"onRoomStateEvents",(e,t)=>{const n=W.b.instance.orderedLists[$.a.ServerNotice];n&&n.some(t=>t.roomId===e.getRoomId())&&this._updateServerNoticeEvents()}),R()(this,"_updateServerNoticeEvents",async()=>{const e=W.b.instance.orderedLists[$.a.ServerNotice];if(!e)return[];const t=[];for(const n of e){const e=n.currentState.getStateEvents("m.room.pinned_events","");if(!e||!e.getContent().pinned)continue;const o=e.getContent().pinned.slice(0,2);for(const e of o){const o=(await this._matrixClient.getEventTimeline(n.getUnfilteredTimelineSet(),e,0)).getEvents().find(t=>t.getId()===e);o&&t.push(o)}}const n=t.find(e=>e&&"m.room.message"===e.getType()&&"m.server_notice.usage_limit_reached"===e.getContent().server_notice_type),o=n&&n.getContent();this._calculateServerLimitToast(this.state.syncErrorData,o),this.setState({usageLimitEventContent:o})}),R()(this,"_onPaste",e=>{let t=!1,n=e.target;for(;!t&&n;)t=ao(n),n=n.parentElement;t||d.a.fire(h.a.FocusComposer,!0)}),R()(this,"_onReactKeyDown",e=>{this._onKeyDown(e)}),R()(this,"_onNativeKeyDown",e=>{e.target===document.body&&this._onKeyDown(e)}),R()(this,"_onKeyDown",e=>{let t=!1;const n=Object(gn.d)(e),o=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey,r=e.key===gn.a.ALT||e.key===gn.a.CONTROL||e.key===gn.a.META||e.key===gn.a.SHIFT,i=gn.b?e.metaKey:e.ctrlKey;switch(e.key){case gn.a.PAGE_UP:case gn.a.PAGE_DOWN:o||r||(this._onScrollKeyPressed(e),t=!0);break;case gn.a.HOME:case gn.a.END:!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||(this._onScrollKeyPressed(e),t=!0);break;case gn.a.K:n&&(d.a.dispatch({action:"focus_room_filter"}),t=!0);break;case gn.a.BACKTICK:n&&(d.a.fire(h.a.ToggleUserMenu),t=!0);break;case gn.a.SLASH:Object(gn.c)(e)&&(Ut.d(),t=!0);break;case gn.a.H:e.altKey&&i&&(d.a.dispatch({action:"view_home_page"}),Ie.a.closeCurrentModal("homeKeyboardShortcut"),t=!0);break;case gn.a.ARROW_UP:case gn.a.ARROW_DOWN:!e.altKey||e.ctrlKey||e.metaKey||(d.a.dispatch({action:h.a.ViewRoomDelta,delta:e.key===gn.a.ARROW_UP?-1:1,unread:e.shiftKey}),t=!0);break;case gn.a.PERIOD:!n||"room_view"!==this.props.page_type&&"group_view"!==this.props.page_type||(d.a.dispatch({action:h.a.ToggleRightPanel,type:"room_view"===this.props.page_type?"room":"group"}),t=!0);break;default:t=qe.a.get().onKeyDown(e)}if(t)e.stopPropagation(),e.preventDefault();else if(!(r||e.altKey||e.ctrlKey||e.metaKey)){const t=e.target!==document.body&&(e.key===gn.a.SPACE||e.key===gn.a.ENTER);if(e.key===gn.a.CONTEXT_MENU)return;t||e.key===gn.a.TAB||ao(e.target)||(d.a.fire(h.a.FocusComposer,!0),e.stopPropagation())}}),R()(this,"_onScrollKeyPressed",e=>{this._roomView.current&&this._roomView.current.handleScrollKey(e)}),R()(this,"_onDragEnd",e=>{if(!e.destination)return;const t=e.destination.droppableId;if("tag-panel-droppable"===t){const t=e.draggableId.split(" ").pop();d.a.dispatch(Mn.moveTag(this._matrixClient,t,e.destination.index),!0)}else t.startsWith("room-sub-list-droppable_")&&this._onRoomTileEndDrag(e)}),R()(this,"_onRoomTileEndDrag",e=>{let t=e.destination.droppableId.split("_")[1],n=e.source.droppableId.split("_")[1];"undefined"===t&&(t=void 0),"undefined"===n&&(n=void 0);const o=e.draggableId.split("_")[1],r=e.source.index,i=e.destination.index;d.a.dispatch(Pn.a.tagRoom(this._matrixClient,this._matrixClient.getRoom(o),n,t,r,i),!0)}),this.state={syncErrorData:void 0,useCompactLayout:P.a.getValue("useCompactLayout")},this._matrixClient=this.props.matrixClient,At(),document.addEventListener("keydown",this._onNativeKeyDown,!1),this._updateServerNoticeEvents(),this._matrixClient.on("accountData",this.onAccountData),this._matrixClient.on("sync",this.onSync),this._matrixClient.on("RoomState.events",this.onRoomStateEvents),this._compactLayoutWatcherRef=P.a.watchSetting("useCompactLayout",null,this.onCompactLayoutChanged),Nn(),this._roomView=r.createRef(),this._resizeContainer=r.createRef()}componentDidMount(){this.resizer=this._createResizer(),this.resizer.attach(),this._loadResizerPreferences()}componentWillUnmount(){document.removeEventListener("keydown",this._onNativeKeyDown,!1),this._matrixClient.removeListener("accountData",this.onAccountData),this._matrixClient.removeListener("sync",this.onSync),this._matrixClient.removeListener("RoomState.events",this.onRoomStateEvents),P.a.unwatchSetting(this._compactLayoutWatcherRef),this.resizer.detach()}shouldComponentUpdate(){return Boolean(X.a.get())}_createResizer(){let e;const t={toggleSize:210,onCollapsed:e=>{e?(d.a.dispatch({action:"hide_left_panel"},!0),window.localStorage.setItem("mx_lhs_size","0")):d.a.dispatch({action:"show_left_panel"},!0)},onResized:t=>{e=t,this.props.resizeNotifier.notifyLeftHandleResized()},onResizeStart:()=>{this.props.resizeNotifier.startResizing()},onResizeStop:()=>{window.localStorage.setItem("mx_lhs_size",""+e),this.props.resizeNotifier.stopResizing()}},n=new qn.a(this._resizeContainer.current,Gn,t);return n.setClassNames({handle:"mx_ResizeHandle",vertical:"mx_ResizeHandle_vertical",reverse:"mx_ResizeHandle_reverse"}),n}_loadResizerPreferences(){let e=parseInt(window.localStorage.getItem("mx_lhs_size"),10);isNaN(e)&&(e=350),this.resizer.forHandleAt(0).resize(e)}_calculateServerLimitToast(e,t){const n=e&&e.error&&"M_RESOURCE_LIMIT_EXCEEDED"===e.error.errcode;n&&(t=e.error.data),t?((e,t,n)=>{const o=Object(zn.a)(e,t,{monthly_active_user:Object(c.b)("Your homeserver has exceeded its user limit."),"":Object(c.b)("Your homeserver has exceeded one of its resource limits.")}),r=Object(zn.a)(e,t,{"":Object(c.b)("Contact your <a>server admin</a>.")});Vn.a.sharedInstance().addOrReplaceToast({key:"serverlimit",title:Object(c.a)("Warning"),props:{description:i.a.createElement(i.a.Fragment,null,o," ",r),acceptLabel:Object(c.a)("Ok"),onAccept:Kn},component:Hn.a,priority:70})})(t.limit_type,t.admin_contact):Kn()}render(){const e=u.getComponent("structures.RoomView"),t=u.getComponent("structures.UserView"),n=u.getComponent("structures.GroupView"),o=u.getComponent("structures.MyGroups"),i=u.getComponent("structures.ToastContainer");let a;switch(this.props.page_type){case An.a.RoomView:a=r.createElement(e,{ref:this._roomView,autoJoin:this.props.autoJoin,onRegistered:this.props.onRegistered,threepidInvite:this.props.threepidInvite,oobData:this.props.roomOobData,viaServers:this.props.viaServers,key:this.props.currentRoomId||"roomview",resizeNotifier:this.props.resizeNotifier});break;case An.a.MyGroups:a=r.createElement(o,null);break;case An.a.RoomDirectory:break;case An.a.HomePage:a=r.createElement(O,{justRegistered:this.props.justRegistered});break;case An.a.UserView:a=r.createElement(t,{userId:this.props.currentUserId,resizeNotifier:this.props.resizeNotifier});break;case An.a.GroupView:a=r.createElement(n,{groupId:this.props.currentGroupId,isNew:this.props.currentGroupIsNew,resizeNotifier:this.props.resizeNotifier})}let s="mx_MatrixChat";this.state.useCompactLayout&&(s+=" mx_MatrixChat_useCompactLayout");const c=r.createElement(kn,{isMinimized:this.props.collapseLhs||!1,resizeNotifier:this.props.resizeNotifier});return r.createElement(b.a.Provider,{value:this._matrixClient},r.createElement("div",{onPaste:this._onPaste,onKeyDown:this._onReactKeyDown,className:"mx_MatrixChat_wrapper","aria-hidden":this.props.hideToSRUsers},r.createElement(i,null),r.createElement(N.DragDropContext,{onDragEnd:this._onDragEnd},r.createElement("div",{ref:this._resizeContainer,className:s},c,r.createElement(Ln.a,null),a))),r.createElement(oo,null),r.createElement(io,null))}}R()(so,"displayName","LoggedInView"),R()(so,"propTypes",{matrixClient:ye.instanceOf(Rn.b).isRequired,page_type:ye.string.isRequired,onRoomCreated:ye.func,onRegistered:ye.func,viaServers:ye.arrayOf(ye.string)});var co=so,lo=n(796),uo=n(1331);class ho extends r.Component{constructor(e,t){super(e,t),R()(this,"_onToastStoreUpdate",()=>{this.setState({toasts:Vn.a.sharedInstance().getToasts(),countSeen:Vn.a.sharedInstance().getCountSeen()})}),this.state={toasts:Vn.a.sharedInstance().getToasts(),countSeen:Vn.a.sharedInstance().getCountSeen()},Vn.a.sharedInstance().on("update",this._onToastStoreUpdate)}componentWillUnmount(){Vn.a.sharedInstance().removeListener("update",this._onToastStoreUpdate)}render(){const e=this.state.toasts.length,t=e>1;let n;if(0!==e){const o=this.state.toasts[0],{title:i,icon:a,key:s,component:c,className:l,props:u}=o,d=M()("mx_Toast_toast",{mx_Toast_hasIcon:a,["mx_Toast_icon_"+a]:a},l);let h;(t||this.state.countSeen>0)&&(h=` (${this.state.countSeen+1}/${this.state.countSeen+e})`);const p=Object.assign({},u,{key:s,toastKey:s});n=r.createElement("div",{className:d},r.createElement("div",{className:"mx_Toast_title"},r.createElement("h2",null,i),r.createElement("span",null,h)),r.createElement("div",{className:"mx_Toast_body"},r.createElement(c,p)))}const o=M()("mx_ToastContainer",{mx_ToastContainer_stacked:t});return r.createElement("div",{className:o,role:"alert"},n)}}var po,mo=n(367),go=n(260),fo=n(252);let _o=Object(fo.a)("views.auth.AuthPage")(po=class extends i.a.PureComponent{render(){const e=u.getComponent("auth.AuthFooter");return i.a.createElement("div",{className:"mx_AuthPage"},i.a.createElement("div",{className:"mx_AuthPage_modal"},this.props.children),i.a.createElement(e,null))}})||po;var bo=n(159),vo=n(210);const Eo=/^[0-9 -.]+$/;const yo=127462-"A".charCodeAt(0),So=/^[A-Z]{2}$/,To=[{iso2:"GB",name:Object(c.b)("United Kingdom"),prefix:"44"},{iso2:"US",name:Object(c.b)("United States"),prefix:"1"},{iso2:"AF",name:Object(c.b)("Afghanistan"),prefix:"93"},{iso2:"AX",name:Object(c.b)("Åland Islands"),prefix:"358"},{iso2:"AL",name:Object(c.b)("Albania"),prefix:"355"},{iso2:"DZ",name:Object(c.b)("Algeria"),prefix:"213"},{iso2:"AS",name:Object(c.b)("American Samoa"),prefix:"1"},{iso2:"AD",name:Object(c.b)("Andorra"),prefix:"376"},{iso2:"AO",name:Object(c.b)("Angola"),prefix:"244"},{iso2:"AI",name:Object(c.b)("Anguilla"),prefix:"1"},{iso2:"AQ",name:Object(c.b)("Antarctica"),prefix:"672"},{iso2:"AG",name:Object(c.b)("Antigua & Barbuda"),prefix:"1"},{iso2:"AR",name:Object(c.b)("Argentina"),prefix:"54"},{iso2:"AM",name:Object(c.b)("Armenia"),prefix:"374"},{iso2:"AW",name:Object(c.b)("Aruba"),prefix:"297"},{iso2:"AU",name:Object(c.b)("Australia"),prefix:"61"},{iso2:"AT",name:Object(c.b)("Austria"),prefix:"43"},{iso2:"AZ",name:Object(c.b)("Azerbaijan"),prefix:"994"},{iso2:"BS",name:Object(c.b)("Bahamas"),prefix:"1"},{iso2:"BH",name:Object(c.b)("Bahrain"),prefix:"973"},{iso2:"BD",name:Object(c.b)("Bangladesh"),prefix:"880"},{iso2:"BB",name:Object(c.b)("Barbados"),prefix:"1"},{iso2:"BY",name:Object(c.b)("Belarus"),prefix:"375"},{iso2:"BE",name:Object(c.b)("Belgium"),prefix:"32"},{iso2:"BZ",name:Object(c.b)("Belize"),prefix:"501"},{iso2:"BJ",name:Object(c.b)("Benin"),prefix:"229"},{iso2:"BM",name:Object(c.b)("Bermuda"),prefix:"1"},{iso2:"BT",name:Object(c.b)("Bhutan"),prefix:"975"},{iso2:"BO",name:Object(c.b)("Bolivia"),prefix:"591"},{iso2:"BA",name:Object(c.b)("Bosnia"),prefix:"387"},{iso2:"BW",name:Object(c.b)("Botswana"),prefix:"267"},{iso2:"BV",name:Object(c.b)("Bouvet Island"),prefix:"47"},{iso2:"BR",name:Object(c.b)("Brazil"),prefix:"55"},{iso2:"IO",name:Object(c.b)("British Indian Ocean Territory"),prefix:"246"},{iso2:"VG",name:Object(c.b)("British Virgin Islands"),prefix:"1"},{iso2:"BN",name:Object(c.b)("Brunei"),prefix:"673"},{iso2:"BG",name:Object(c.b)("Bulgaria"),prefix:"359"},{iso2:"BF",name:Object(c.b)("Burkina Faso"),prefix:"226"},{iso2:"BI",name:Object(c.b)("Burundi"),prefix:"257"},{iso2:"KH",name:Object(c.b)("Cambodia"),prefix:"855"},{iso2:"CM",name:Object(c.b)("Cameroon"),prefix:"237"},{iso2:"CA",name:Object(c.b)("Canada"),prefix:"1"},{iso2:"CV",name:Object(c.b)("Cape Verde"),prefix:"238"},{iso2:"BQ",name:Object(c.b)("Caribbean Netherlands"),prefix:"599"},{iso2:"KY",name:Object(c.b)("Cayman Islands"),prefix:"1"},{iso2:"CF",name:Object(c.b)("Central African Republic"),prefix:"236"},{iso2:"TD",name:Object(c.b)("Chad"),prefix:"235"},{iso2:"CL",name:Object(c.b)("Chile"),prefix:"56"},{iso2:"CN",name:Object(c.b)("China"),prefix:"86"},{iso2:"CX",name:Object(c.b)("Christmas Island"),prefix:"61"},{iso2:"CC",name:Object(c.b)("Cocos (Keeling) Islands"),prefix:"61"},{iso2:"CO",name:Object(c.b)("Colombia"),prefix:"57"},{iso2:"KM",name:Object(c.b)("Comoros"),prefix:"269"},{iso2:"CG",name:Object(c.b)("Congo - Brazzaville"),prefix:"242"},{iso2:"CD",name:Object(c.b)("Congo - Kinshasa"),prefix:"243"},{iso2:"CK",name:Object(c.b)("Cook Islands"),prefix:"682"},{iso2:"CR",name:Object(c.b)("Costa Rica"),prefix:"506"},{iso2:"HR",name:Object(c.b)("Croatia"),prefix:"385"},{iso2:"CU",name:Object(c.b)("Cuba"),prefix:"53"},{iso2:"CW",name:Object(c.b)("Curaçao"),prefix:"599"},{iso2:"CY",name:Object(c.b)("Cyprus"),prefix:"357"},{iso2:"CZ",name:Object(c.b)("Czech Republic"),prefix:"420"},{iso2:"CI",name:Object(c.b)("Côte dIvoire"),prefix:"225"},{iso2:"DK",name:Object(c.b)("Denmark"),prefix:"45"},{iso2:"DJ",name:Object(c.b)("Djibouti"),prefix:"253"},{iso2:"DM",name:Object(c.b)("Dominica"),prefix:"1"},{iso2:"DO",name:Object(c.b)("Dominican Republic"),prefix:"1"},{iso2:"EC",name:Object(c.b)("Ecuador"),prefix:"593"},{iso2:"EG",name:Object(c.b)("Egypt"),prefix:"20"},{iso2:"SV",name:Object(c.b)("El Salvador"),prefix:"503"},{iso2:"GQ",name:Object(c.b)("Equatorial Guinea"),prefix:"240"},{iso2:"ER",name:Object(c.b)("Eritrea"),prefix:"291"},{iso2:"EE",name:Object(c.b)("Estonia"),prefix:"372"},{iso2:"ET",name:Object(c.b)("Ethiopia"),prefix:"251"},{iso2:"FK",name:Object(c.b)("Falkland Islands"),prefix:"500"},{iso2:"FO",name:Object(c.b)("Faroe Islands"),prefix:"298"},{iso2:"FJ",name:Object(c.b)("Fiji"),prefix:"679"},{iso2:"FI",name:Object(c.b)("Finland"),prefix:"358"},{iso2:"FR",name:Object(c.b)("France"),prefix:"33"},{iso2:"GF",name:Object(c.b)("French Guiana"),prefix:"594"},{iso2:"PF",name:Object(c.b)("French Polynesia"),prefix:"689"},{iso2:"TF",name:Object(c.b)("French Southern Territories"),prefix:"262"},{iso2:"GA",name:Object(c.b)("Gabon"),prefix:"241"},{iso2:"GM",name:Object(c.b)("Gambia"),prefix:"220"},{iso2:"GE",name:Object(c.b)("Georgia"),prefix:"995"},{iso2:"DE",name:Object(c.b)("Germany"),prefix:"49"},{iso2:"GH",name:Object(c.b)("Ghana"),prefix:"233"},{iso2:"GI",name:Object(c.b)("Gibraltar"),prefix:"350"},{iso2:"GR",name:Object(c.b)("Greece"),prefix:"30"},{iso2:"GL",name:Object(c.b)("Greenland"),prefix:"299"},{iso2:"GD",name:Object(c.b)("Grenada"),prefix:"1"},{iso2:"GP",name:Object(c.b)("Guadeloupe"),prefix:"590"},{iso2:"GU",name:Object(c.b)("Guam"),prefix:"1"},{iso2:"GT",name:Object(c.b)("Guatemala"),prefix:"502"},{iso2:"GG",name:Object(c.b)("Guernsey"),prefix:"44"},{iso2:"GN",name:Object(c.b)("Guinea"),prefix:"224"},{iso2:"GW",name:Object(c.b)("Guinea-Bissau"),prefix:"245"},{iso2:"GY",name:Object(c.b)("Guyana"),prefix:"592"},{iso2:"HT",name:Object(c.b)("Haiti"),prefix:"509"},{iso2:"HM",name:Object(c.b)("Heard & McDonald Islands"),prefix:"672"},{iso2:"HN",name:Object(c.b)("Honduras"),prefix:"504"},{iso2:"HK",name:Object(c.b)("Hong Kong"),prefix:"852"},{iso2:"HU",name:Object(c.b)("Hungary"),prefix:"36"},{iso2:"IS",name:Object(c.b)("Iceland"),prefix:"354"},{iso2:"IN",name:Object(c.b)("India"),prefix:"91"},{iso2:"ID",name:Object(c.b)("Indonesia"),prefix:"62"},{iso2:"IR",name:Object(c.b)("Iran"),prefix:"98"},{iso2:"IQ",name:Object(c.b)("Iraq"),prefix:"964"},{iso2:"IE",name:Object(c.b)("Ireland"),prefix:"353"},{iso2:"IM",name:Object(c.b)("Isle of Man"),prefix:"44"},{iso2:"IL",name:Object(c.b)("Israel"),prefix:"972"},{iso2:"IT",name:Object(c.b)("Italy"),prefix:"39"},{iso2:"JM",name:Object(c.b)("Jamaica"),prefix:"1"},{iso2:"JP",name:Object(c.b)("Japan"),prefix:"81"},{iso2:"JE",name:Object(c.b)("Jersey"),prefix:"44"},{iso2:"JO",name:Object(c.b)("Jordan"),prefix:"962"},{iso2:"KZ",name:Object(c.b)("Kazakhstan"),prefix:"7"},{iso2:"KE",name:Object(c.b)("Kenya"),prefix:"254"},{iso2:"KI",name:Object(c.b)("Kiribati"),prefix:"686"},{iso2:"XK",name:Object(c.b)("Kosovo"),prefix:"383"},{iso2:"KW",name:Object(c.b)("Kuwait"),prefix:"965"},{iso2:"KG",name:Object(c.b)("Kyrgyzstan"),prefix:"996"},{iso2:"LA",name:Object(c.b)("Laos"),prefix:"856"},{iso2:"LV",name:Object(c.b)("Latvia"),prefix:"371"},{iso2:"LB",name:Object(c.b)("Lebanon"),prefix:"961"},{iso2:"LS",name:Object(c.b)("Lesotho"),prefix:"266"},{iso2:"LR",name:Object(c.b)("Liberia"),prefix:"231"},{iso2:"LY",name:Object(c.b)("Libya"),prefix:"218"},{iso2:"LI",name:Object(c.b)("Liechtenstein"),prefix:"423"},{iso2:"LT",name:Object(c.b)("Lithuania"),prefix:"370"},{iso2:"LU",name:Object(c.b)("Luxembourg"),prefix:"352"},{iso2:"MO",name:Object(c.b)("Macau"),prefix:"853"},{iso2:"MK",name:Object(c.b)("Macedonia"),prefix:"389"},{iso2:"MG",name:Object(c.b)("Madagascar"),prefix:"261"},{iso2:"MW",name:Object(c.b)("Malawi"),prefix:"265"},{iso2:"MY",name:Object(c.b)("Malaysia"),prefix:"60"},{iso2:"MV",name:Object(c.b)("Maldives"),prefix:"960"},{iso2:"ML",name:Object(c.b)("Mali"),prefix:"223"},{iso2:"MT",name:Object(c.b)("Malta"),prefix:"356"},{iso2:"MH",name:Object(c.b)("Marshall Islands"),prefix:"692"},{iso2:"MQ",name:Object(c.b)("Martinique"),prefix:"596"},{iso2:"MR",name:Object(c.b)("Mauritania"),prefix:"222"},{iso2:"MU",name:Object(c.b)("Mauritius"),prefix:"230"},{iso2:"YT",name:Object(c.b)("Mayotte"),prefix:"262"},{iso2:"MX",name:Object(c.b)("Mexico"),prefix:"52"},{iso2:"FM",name:Object(c.b)("Micronesia"),prefix:"691"},{iso2:"MD",name:Object(c.b)("Moldova"),prefix:"373"},{iso2:"MC",name:Object(c.b)("Monaco"),prefix:"377"},{iso2:"MN",name:Object(c.b)("Mongolia"),prefix:"976"},{iso2:"ME",name:Object(c.b)("Montenegro"),prefix:"382"},{iso2:"MS",name:Object(c.b)("Montserrat"),prefix:"1"},{iso2:"MA",name:Object(c.b)("Morocco"),prefix:"212"},{iso2:"MZ",name:Object(c.b)("Mozambique"),prefix:"258"},{iso2:"MM",name:Object(c.b)("Myanmar"),prefix:"95"},{iso2:"NA",name:Object(c.b)("Namibia"),prefix:"264"},{iso2:"NR",name:Object(c.b)("Nauru"),prefix:"674"},{iso2:"NP",name:Object(c.b)("Nepal"),prefix:"977"},{iso2:"NL",name:Object(c.b)("Netherlands"),prefix:"31"},{iso2:"NC",name:Object(c.b)("New Caledonia"),prefix:"687"},{iso2:"NZ",name:Object(c.b)("New Zealand"),prefix:"64"},{iso2:"NI",name:Object(c.b)("Nicaragua"),prefix:"505"},{iso2:"NE",name:Object(c.b)("Niger"),prefix:"227"},{iso2:"NG",name:Object(c.b)("Nigeria"),prefix:"234"},{iso2:"NU",name:Object(c.b)("Niue"),prefix:"683"},{iso2:"NF",name:Object(c.b)("Norfolk Island"),prefix:"672"},{iso2:"KP",name:Object(c.b)("North Korea"),prefix:"850"},{iso2:"MP",name:Object(c.b)("Northern Mariana Islands"),prefix:"1"},{iso2:"NO",name:Object(c.b)("Norway"),prefix:"47"},{iso2:"OM",name:Object(c.b)("Oman"),prefix:"968"},{iso2:"PK",name:Object(c.b)("Pakistan"),prefix:"92"},{iso2:"PW",name:Object(c.b)("Palau"),prefix:"680"},{iso2:"PS",name:Object(c.b)("Palestine"),prefix:"970"},{iso2:"PA",name:Object(c.b)("Panama"),prefix:"507"},{iso2:"PG",name:Object(c.b)("Papua New Guinea"),prefix:"675"},{iso2:"PY",name:Object(c.b)("Paraguay"),prefix:"595"},{iso2:"PE",name:Object(c.b)("Peru"),prefix:"51"},{iso2:"PH",name:Object(c.b)("Philippines"),prefix:"63"},{iso2:"PN",name:Object(c.b)("Pitcairn Islands"),prefix:"870"},{iso2:"PL",name:Object(c.b)("Poland"),prefix:"48"},{iso2:"PT",name:Object(c.b)("Portugal"),prefix:"351"},{iso2:"PR",name:Object(c.b)("Puerto Rico"),prefix:"1"},{iso2:"QA",name:Object(c.b)("Qatar"),prefix:"974"},{iso2:"RO",name:Object(c.b)("Romania"),prefix:"40"},{iso2:"RU",name:Object(c.b)("Russia"),prefix:"7"},{iso2:"RW",name:Object(c.b)("Rwanda"),prefix:"250"},{iso2:"RE",name:Object(c.b)("Réunion"),prefix:"262"},{iso2:"WS",name:Object(c.b)("Samoa"),prefix:"685"},{iso2:"SM",name:Object(c.b)("San Marino"),prefix:"378"},{iso2:"SA",name:Object(c.b)("Saudi Arabia"),prefix:"966"},{iso2:"SN",name:Object(c.b)("Senegal"),prefix:"221"},{iso2:"RS",name:Object(c.b)("Serbia"),prefix:"381 p"},{iso2:"SC",name:Object(c.b)("Seychelles"),prefix:"248"},{iso2:"SL",name:Object(c.b)("Sierra Leone"),prefix:"232"},{iso2:"SG",name:Object(c.b)("Singapore"),prefix:"65"},{iso2:"SX",name:Object(c.b)("Sint Maarten"),prefix:"1"},{iso2:"SK",name:Object(c.b)("Slovakia"),prefix:"421"},{iso2:"SI",name:Object(c.b)("Slovenia"),prefix:"386"},{iso2:"SB",name:Object(c.b)("Solomon Islands"),prefix:"677"},{iso2:"SO",name:Object(c.b)("Somalia"),prefix:"252"},{iso2:"ZA",name:Object(c.b)("South Africa"),prefix:"27"},{iso2:"GS",name:Object(c.b)("South Georgia & South Sandwich Islands"),prefix:"500"},{iso2:"KR",name:Object(c.b)("South Korea"),prefix:"82"},{iso2:"SS",name:Object(c.b)("South Sudan"),prefix:"211"},{iso2:"ES",name:Object(c.b)("Spain"),prefix:"34"},{iso2:"LK",name:Object(c.b)("Sri Lanka"),prefix:"94"},{iso2:"BL",name:Object(c.b)("St. Barthélemy"),prefix:"590"},{iso2:"SH",name:Object(c.b)("St. Helena"),prefix:"290 n"},{iso2:"KN",name:Object(c.b)("St. Kitts & Nevis"),prefix:"1"},{iso2:"LC",name:Object(c.b)("St. Lucia"),prefix:"1"},{iso2:"MF",name:Object(c.b)("St. Martin"),prefix:"590"},{iso2:"PM",name:Object(c.b)("St. Pierre & Miquelon"),prefix:"508"},{iso2:"VC",name:Object(c.b)("St. Vincent & Grenadines"),prefix:"1"},{iso2:"SD",name:Object(c.b)("Sudan"),prefix:"249"},{iso2:"SR",name:Object(c.b)("Suriname"),prefix:"597"},{iso2:"SJ",name:Object(c.b)("Svalbard & Jan Mayen"),prefix:"47"},{iso2:"SZ",name:Object(c.b)("Swaziland"),prefix:"268"},{iso2:"SE",name:Object(c.b)("Sweden"),prefix:"46"},{iso2:"CH",name:Object(c.b)("Switzerland"),prefix:"41"},{iso2:"SY",name:Object(c.b)("Syria"),prefix:"963"},{iso2:"ST",name:Object(c.b)("São Tomé & Príncipe"),prefix:"239"},{iso2:"TW",name:Object(c.b)("Taiwan"),prefix:"886"},{iso2:"TJ",name:Object(c.b)("Tajikistan"),prefix:"992"},{iso2:"TZ",name:Object(c.b)("Tanzania"),prefix:"255"},{iso2:"TH",name:Object(c.b)("Thailand"),prefix:"66"},{iso2:"TL",name:Object(c.b)("Timor-Leste"),prefix:"670"},{iso2:"TG",name:Object(c.b)("Togo"),prefix:"228"},{iso2:"TK",name:Object(c.b)("Tokelau"),prefix:"690"},{iso2:"TO",name:Object(c.b)("Tonga"),prefix:"676"},{iso2:"TT",name:Object(c.b)("Trinidad & Tobago"),prefix:"1"},{iso2:"TN",name:Object(c.b)("Tunisia"),prefix:"216"},{iso2:"TR",name:Object(c.b)("Turkey"),prefix:"90"},{iso2:"TM",name:Object(c.b)("Turkmenistan"),prefix:"993"},{iso2:"TC",name:Object(c.b)("Turks & Caicos Islands"),prefix:"1"},{iso2:"TV",name:Object(c.b)("Tuvalu"),prefix:"688"},{iso2:"VI",name:Object(c.b)("U.S. Virgin Islands"),prefix:"1"},{iso2:"UG",name:Object(c.b)("Uganda"),prefix:"256"},{iso2:"UA",name:Object(c.b)("Ukraine"),prefix:"380"},{iso2:"AE",name:Object(c.b)("United Arab Emirates"),prefix:"971"},{iso2:"UY",name:Object(c.b)("Uruguay"),prefix:"598"},{iso2:"UZ",name:Object(c.b)("Uzbekistan"),prefix:"998"},{iso2:"VU",name:Object(c.b)("Vanuatu"),prefix:"678"},{iso2:"VA",name:Object(c.b)("Vatican City"),prefix:"39"},{iso2:"VE",name:Object(c.b)("Venezuela"),prefix:"58"},{iso2:"VN",name:Object(c.b)("Vietnam"),prefix:"84"},{iso2:"WF",name:Object(c.b)("Wallis & Futuna"),prefix:"681"},{iso2:"EH",name:Object(c.b)("Western Sahara"),prefix:"212"},{iso2:"YE",name:Object(c.b)("Yemen"),prefix:"967"},{iso2:"ZM",name:Object(c.b)("Zambia"),prefix:"260"},{iso2:"ZW",name:Object(c.b)("Zimbabwe"),prefix:"263"}],wo={};for(const e of To)wo[e.iso2]=e;function Co(e,t){return"+"===e[0]&&(e=e.slice(1)),0==t.name.toUpperCase().indexOf(e.toUpperCase())||(t.iso2==e.toUpperCase()||-1!==t.prefix.indexOf(e))}class xo extends i.a.Component{constructor(e){super(e),this._onSearchChange=this._onSearchChange.bind(this),this._onOptionChange=this._onOptionChange.bind(this),this._getShortOption=this._getShortOption.bind(this);let t=To[0];const n=l.a.get().defaultCountryCode;if(n){const e=To.find(e=>e.iso2===n.toUpperCase());e&&(t=e)}this.state={searchQuery:"",defaultCountry:t}}componentDidMount(){this.props.value||this.props.onOptionChange(this.state.defaultCountry)}_onSearchChange(e){this.setState({searchQuery:e})}_onOptionChange(e){this.props.onOptionChange(wo[e])}_flagImgForIso2(e){return i.a.createElement("div",{className:"mx_Dropdown_option_emoji"},(t=e,So.test(t)?String.fromCodePoint(...t.split("").map(e=>yo+e.charCodeAt(0))):""));var t}_getShortOption(e){if(!this.props.isSmall)return;let t;return this.props.showPrefix&&(t="+"+wo[e].prefix),i.a.createElement("span",{className:"mx_CountryDropdown_shortOption"},this._flagImgForIso2(e),t)}render(){const e=u.getComponent("elements.Dropdown");let t;if(this.state.searchQuery){if(t=To.filter(Co.bind(this,this.state.searchQuery)),2==this.state.searchQuery.length&&wo[this.state.searchQuery.toUpperCase()]){const e=wo[this.state.searchQuery.toUpperCase()];t=t.filter(t=>t.iso2!=e.iso2),t.unshift(e)}}else t=To;const n=t.map(e=>i.a.createElement("div",{className:"mx_CountryDropdown_option",key:e.iso2},this._flagImgForIso2(e.iso2),Object(c.a)(e.name)," (+",e.prefix,")")),o=this.props.value||this.state.defaultCountry.iso2;return i.a.createElement(e,{id:"mx_CountryDropdown",className:this.props.className+" mx_CountryDropdown",onOptionChange:this._onOptionChange,onSearchChange:this._onSearchChange,menuWidth:298,getShortOption:this._getShortOption,value:o,searchEnabled:!0,disabled:this.props.disabled,label:Object(c.a)("Country Dropdown")},n)}}xo.propTypes={className:Se.a.string,isSmall:Se.a.bool,showPrefix:Se.a.bool,onOptionChange:Se.a.func.isRequired,value:Se.a.string,disabled:Se.a.bool};const Oo=/^[0-9()\-\s]*$/;var ko;!function(e){e.Email="login_field_email",e.MatrixId="login_field_mxid",e.Phone="login_field_phone",e.Password="login_field_phone"}(ko||(ko={}));class Ro extends i.a.PureComponent{constructor(e){super(e),R()(this,"onForgotPasswordClick",e=>{e.preventDefault(),e.stopPropagation(),this.props.onForgotPasswordClick()}),R()(this,"onSubmitForm",async e=>{e.preventDefault();if(!await this.verifyFieldsBeforeSubmit())return void y.a.instance.track("onboarding_registration_submit_failed");let t="",n=null,o=null;switch(this.state.loginType){case ko.Email:case ko.MatrixId:t=this.props.username;break;case ko.Phone:n=this.props.phoneCountry,o=this.props.phoneNumber}this.props.onSubmit(t,n,o,this.state.password)}),R()(this,"onUsernameChanged",e=>{this.props.onUsernameChanged(e.target.value)}),R()(this,"onUsernameFocus",()=>{this.state.loginType===ko.MatrixId?y.a.instance.track("onboarding_login_mxid_focus"):y.a.instance.track("onboarding_login_email_focus")}),R()(this,"onUsernameBlur",e=>{this.state.loginType===ko.MatrixId?y.a.instance.track("onboarding_login_mxid_blur"):y.a.instance.track("onboarding_login_email_blur"),this.props.onUsernameBlur(e.target.value)}),R()(this,"onLoginTypeChange",e=>{const t=e.target.value;this.setState({loginType:t}),this.props.onUsernameChanged(""),y.a.instance.track("onboarding_login_type_changed",{loginType:t})}),R()(this,"onPhoneCountryChanged",e=>{this.props.onPhoneCountryChanged(e.iso2)}),R()(this,"onPhoneNumberChanged",e=>{this.props.onPhoneNumberChanged(e.target.value)}),R()(this,"onPhoneNumberFocus",()=>{y.a.instance.track("onboarding_login_phone_number_focus")}),R()(this,"onPhoneNumberBlur",e=>{y.a.instance.track("onboarding_login_phone_number_blur")}),R()(this,"onPasswordChanged",e=>{this.setState({password:e.target.value})}),R()(this,"validateUsernameRules",Object(bo.a)({rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Enter username")}]})),R()(this,"onUsernameValidate",async e=>{const t=await this.validateUsernameRules(e);return this.markFieldValid(ko.MatrixId,t.valid),t}),R()(this,"validateEmailRules",Object(bo.a)({rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Enter email address")},{key:"email",test:({value:e})=>!e||vo.a(e),invalid:()=>Object(c.a)("Doesn't look like a valid email address")}]})),R()(this,"onEmailValidate",async e=>{const t=await this.validateEmailRules(e);return this.markFieldValid(ko.Email,t.valid),t}),R()(this,"validatePhoneNumberRules",Object(bo.a)({rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Enter phone number")},{key:"number",test:({value:e})=>!e||Oo.test(e),invalid:()=>Object(c.a)("That phone number doesn't look quite right, please check and try again")}]})),R()(this,"onPhoneNumberValidate",async e=>{const t=await this.validatePhoneNumberRules(e);return this.markFieldValid(ko.Password,t.valid),t}),R()(this,"validatePasswordRules",Object(bo.a)({rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Enter password")}]})),R()(this,"onPasswordValidate",async e=>{const t=await this.validatePasswordRules(e);return this.markFieldValid(ko.Password,t.valid),t}),this.state={fieldValid:{},loginType:ko.MatrixId,password:""}}async verifyFieldsBeforeSubmit(){const e=document.activeElement;e&&e.blur();const t=[this.state.loginType,ko.Password];for(const e of t){const t=this[e];t&&await t.validate({allowEmpty:!1})}if(await new Promise(e=>this.setState({},e)),this.allFieldsValid())return!0;const n=this.findFirstInvalidField(t);return!n||(n.focus(),n.validate({allowEmpty:!1,focused:!0}),!1)}allFieldsValid(){const e=Object.keys(this.state.fieldValid);for(let t=0;t<e.length;++t)if(!this.state.fieldValid[e[t]])return!1;return!0}findFirstInvalidField(e){for(const t of e)if(!this.state.fieldValid[t]&&this[t])return this[t];return null}markFieldValid(e,t){const{fieldValid:n}=this.state;n[e]=t,this.setState({fieldValid:n})}renderLoginField(e,t){const n={error:!1};switch(e){case ko.Email:return n.error=this.props.loginIncorrect&&!this.props.username,i.a.createElement(Ce.a,{className:M()(n),name:"username",key:"email_input",type:"text",label:Object(c.a)("Email"),placeholder:"joe@example.com",value:this.props.username,onChange:this.onUsernameChanged,onFocus:this.onUsernameFocus,onBlur:this.onUsernameBlur,disabled:this.props.disableSubmit,autoFocus:t,onValidate:this.onEmailValidate,ref:e=>this[ko.Email]=e});case ko.MatrixId:return n.error=this.props.loginIncorrect&&!this.props.username,i.a.createElement(Ce.a,{className:M()(n),name:"username",key:"username_input",type:"text",label:Object(c.a)("Username"),placeholder:Object(c.a)("Username").toLocaleLowerCase(),value:this.props.username,onChange:this.onUsernameChanged,onFocus:this.onUsernameFocus,onBlur:this.onUsernameBlur,disabled:this.props.disableSubmit,autoFocus:t,onValidate:this.onUsernameValidate,ref:e=>this[ko.MatrixId]=e});case ko.Phone:{n.error=this.props.loginIncorrect&&!this.props.phoneNumber;const e=i.a.createElement(xo,{value:this.props.phoneCountry,isSmall:!0,showPrefix:!0,onOptionChange:this.onPhoneCountryChanged});return i.a.createElement(Ce.a,{className:M()(n),name:"phoneNumber",key:"phone_input",type:"text",label:Object(c.a)("Phone"),value:this.props.phoneNumber,prefixComponent:e,onChange:this.onPhoneNumberChanged,onFocus:this.onPhoneNumberFocus,onBlur:this.onPhoneNumberBlur,disabled:this.props.disableSubmit,autoFocus:t,onValidate:this.onPhoneNumberValidate,ref:e=>this[ko.Password]=e})}}}isLoginEmpty(){switch(this.state.loginType){case ko.Email:case ko.MatrixId:return!this.props.username;case ko.Phone:return!this.props.phoneCountry||!this.props.phoneNumber}}render(){let e;this.props.onForgotPasswordClick&&(e=i.a.createElement(g.a,{className:"mx_Login_forgot",disabled:this.props.busy,kind:"link",onClick:this.onForgotPasswordClick},Object(c.a)("Forgot password?")));const t=M()({error:this.props.loginIncorrect&&!this.isLoginEmpty()}),n=!this.isLoginEmpty(),o=this.renderLoginField(this.state.loginType,!n);let r;return l.a.get().disable_3pid_login||(r=i.a.createElement("div",{className:"mx_Login_type_container"},i.a.createElement("label",{className:"mx_Login_type_label"},Object(c.a)("Sign in with")),i.a.createElement(Ce.a,{element:"select",value:this.state.loginType,onChange:this.onLoginTypeChange,disabled:this.props.disableSubmit},i.a.createElement("option",{key:ko.MatrixId,value:ko.MatrixId},Object(c.a)("Username")),i.a.createElement("option",{key:ko.Email,value:ko.Email},Object(c.a)("Email address")),i.a.createElement("option",{key:ko.Password,value:ko.Password},Object(c.a)("Phone"))))),i.a.createElement("div",null,i.a.createElement("form",{onSubmit:this.onSubmitForm},r,o,i.a.createElement(Ce.a,{className:t,type:"password",name:"password",label:Object(c.a)("Password"),value:this.state.password,onChange:this.onPasswordChanged,disabled:this.props.disableSubmit,autoFocus:n,onValidate:this.onPasswordValidate,ref:e=>this[ko.Password]=e}),e,!this.props.busy&&i.a.createElement("input",{className:"mx_Login_submit",type:"submit",value:Object(c.a)("Sign in"),disabled:this.props.disableSubmit})))}}R()(Ro,"defaultProps",{onUsernameChanged:function(){},onUsernameBlur:function(){},onPhoneCountryChanged:function(){},onPhoneNumberChanged:function(){},loginIncorrect:!1,disableSubmit:!1});const Ao=e=>{let{matrixClient:t,loginType:n,fragmentAfterLogin:o,idp:r,primary:a,mini:s}=e,l=te()(e,["matrixClient","loginType","fragmentAfterLogin","idp","primary","mini"]);const u=a?"primary":"primary_outline",d=r?Object(c.a)("Continue with %(provider)s",{provider:r.name}):Object(c.a)("Sign in with single sign-on"),h=()=>{qe.a.get().startSingleSignOn(t,n,o,null==r?void 0:r.id)};let p;"string"==typeof(null==r?void 0:r.icon)&&(r.icon.startsWith("mxc://")||r.icon.startsWith("https://"))&&(p=i.a.createElement("img",{src:t.mxcUrlToHttp(r.icon,24,24,"crop",!0),height:"24",width:"24",alt:d}));const m=M()("mx_SSOButton",{mx_SSOButton_mini:s});return s?i.a.createElement(g.a,Z()({},l,{className:m,kind:u,onClick:h}),p):i.a.createElement(g.a,Z()({},l,{className:m,kind:u,onClick:h}),p,d)};var Io=({matrixClient:e,flow:t,loginType:n,fragmentAfterLogin:o,primary:r})=>{const a=t["org.matrix.msc2858.identity_providers"]||[];return a.length<2?i.a.createElement("div",{className:"mx_SSOButtons"},i.a.createElement(Ao,{matrixClient:e,loginType:n,fragmentAfterLogin:o,idp:a[0],primary:r})):i.a.createElement("div",{className:"mx_SSOButtons"},a.map(t=>i.a.createElement(Ao,{key:t.id,matrixClient:e,loginType:n,fragmentAfterLogin:o,idp:t,mini:!0,primary:r})))},Do=n(299),No=n(270);class Fo extends i.a.PureComponent{constructor(e){super(e),R()(this,"defaultServer",void 0),R()(this,"fieldRef",Object(r.createRef)()),R()(this,"validatedConf",void 0),R()(this,"onDefaultChosen",()=>{this.setState({defaultChosen:!0})}),R()(this,"onOtherChosen",()=>{this.setState({defaultChosen:!1})}),R()(this,"onHomeserverChange",e=>{this.setState({otherHomeserver:e.target.value})}),R()(this,"validate",Object(bo.a)({deriveData:async({value:e})=>{let t=e.trim();if(!t.includes("://"))try{const e=await No.a.findClientConfig(t);return this.validatedConf=go.b.buildValidatedConfigFromDiscovery(t,e),{}}catch(e){console.error(`Attempted ${t} as a server_name but it failed`,e)}t.includes("://")||(t="https://"+t);try{return this.validatedConf=await go.b.validateServerConfigWithStaticUrls(t),{}}catch(e){console.error(e);if(go.b.authComponentStateForError(e).isFatalError){let t=Object(c.a)("Unable to validate homeserver");return e.translatedMessage&&(t=e.translatedMessage),{error:t}}try{return this.validatedConf=await go.b.validateServerConfigWithStaticUrls(t,null,!0),{}}catch(e){return console.error(e),{error:Object(c.a)("Invalid URL")}}}},rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Specify a homeserver")},{key:"valid",test:async function({value:e},{error:t}){return!e||!t},invalid:function({error:e}){return e}}]})),R()(this,"onHomeserverValidate",e=>this.validate(e)),R()(this,"onSubmit",async e=>{e.preventDefault();if(!await this.fieldRef.current.validate({allowEmpty:!1}))return this.fieldRef.current.focus(),void this.fieldRef.current.validate({allowEmpty:!1,focused:!0});this.props.onFinished(this.validatedConf)});const t=l.a.get();this.defaultServer=t.validated_server_config;const{serverConfig:n}=this.props;let o="";n.isDefault||(o=n.isNameResolvable&&n.hsName?n.hsName:n.hsUrl),this.state={defaultChosen:n.isDefault,otherHomeserver:o}}render(){let e;"matrix.org"===this.defaultServer.hsName&&(e=Object(c.a)("Matrix.org is the biggest public homeserver in the world, so its a good place for many."));let t=this.defaultServer.hsName;return this.defaultServer.hsNameIsDifferent&&(t=i.a.createElement(Do.a,{class:"mx_Login_underlinedServerName",tooltip:this.defaultServer.hsUrl},this.defaultServer.hsName)),i.a.createElement(rn.a,{title:this.props.title||Object(c.a)("Sign into your homeserver"),className:"mx_ServerPickerDialog",contentId:"mx_ServerPickerDialog",onFinished:this.props.onFinished,fixedWidth:!1,hasCancel:!0},i.a.createElement("form",{className:"mx_Dialog_content",id:"mx_ServerPickerDialog",onSubmit:this.onSubmit},i.a.createElement("p",null,Object(c.a)("We call the places where you can host your account homeservers.")," ",e),i.a.createElement(it.a,{name:"defaultChosen",value:"true",checked:this.state.defaultChosen,onChange:this.onDefaultChosen},t),i.a.createElement(it.a,{name:"defaultChosen",value:"false",className:"mx_ServerPickerDialog_otherHomeserverRadio",checked:!this.state.defaultChosen,onChange:this.onOtherChosen},i.a.createElement(Ce.a,{type:"text",className:"mx_ServerPickerDialog_otherHomeserver",label:Object(c.a)("Other homeserver"),onChange:this.onHomeserverChange,onClick:this.onOtherChosen,ref:this.fieldRef,onValidate:this.onHomeserverValidate,value:this.state.otherHomeserver,validateOnChange:!1,validateOnFocus:!1})),i.a.createElement("p",null,Object(c.a)("Use your preferred Matrix homeserver if you have one, or host your own.")),i.a.createElement(g.a,{className:"mx_ServerPickerDialog_continue",kind:"primary",onClick:this.onSubmit},Object(c.a)("Continue")),i.a.createElement("h4",null,Object(c.a)("Learn more")),i.a.createElement("a",{href:"https://matrix.org/faq/#what-is-a-homeserver%3F",target:"_blank",rel:"noreferrer noopener"},Object(c.a)("About homeservers"))))}}const Mo=()=>{Ie.a.createTrackedDialog("Custom Server Dialog","",Zt.a,{title:Object(c.a)("Server Options"),description:Object(c.a)("You can use the custom server options to sign into other Matrix servers by specifying a different homeserver URL. This allows you to use Element with an existing Matrix account on a different homeserver."),button:Object(c.a)("Dismiss"),hasCloseButton:!1,fixedWidth:!1},"mx_ServerPicker_helpDialog")};var Po=({title:e,dialogTitle:t,serverConfig:n,onServerConfigChange:o})=>{let r;if(!l.a.get().disable_custom_urls&&o){const e=()=>{((e,t,n)=>{Ie.a.createTrackedDialog("Server Picker","",Fo,{title:e,serverConfig:t,onFinished:n})})(t,n,e=>{e&&o(e)})};r=i.a.createElement(g.a,{className:"mx_ServerPicker_change",kind:"link",onClick:e},Object(c.a)("Edit"))}let a,s=n.isNameResolvable?n.hsName:n.hsUrl;return n.hsNameIsDifferent&&(s=i.a.createElement(Do.a,{class:"mx_Login_underlinedServerName",tooltip:n.hsUrl},n.hsName)),"matrix.org"===n.hsName&&(a=i.a.createElement("span",{className:"mx_ServerPicker_desc"},Object(c.a)("Join millions for free on the largest public server"))),i.a.createElement("div",{className:"mx_ServerPicker"},i.a.createElement("h3",null,e||Object(c.a)("Homeserver")),i.a.createElement(g.a,{className:"mx_ServerPicker_help",onClick:Mo}),i.a.createElement("span",{className:"mx_ServerPicker_server"},s),r,a)};function Lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(n),!0).forEach((function(t){R()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(c.b)("Invalid homeserver discovery response"),Object(c.b)("Failed to get autodiscovery configuration from server"),Object(c.b)("Invalid base_url for m.homeserver"),Object(c.b)("Homeserver URL does not appear to be a valid Matrix homeserver"),Object(c.b)("Invalid identity server discovery response"),Object(c.b)("Invalid base_url for m.identity_server"),Object(c.b)("Identity server URL does not appear to be a valid identity server"),Object(c.b)("General failure");class Bo extends i.a.PureComponent{constructor(e){super(e),R()(this,"unmounted",!1),R()(this,"loginLogic",void 0),R()(this,"stepRendererMap",void 0),R()(this,"isBusy",()=>this.state.busy||this.props.busy),R()(this,"onPasswordLogin",async(e,t,n,o)=>{if(!this.state.serverIsAlive){this.setState({busy:!0});let e=!0;try{await go.b.validateServerConfigWithStaticUrls(this.props.serverConfig.hsUrl,this.props.serverConfig.isUrl),this.setState({serverIsAlive:!0,errorText:""})}catch(t){const n=go.b.authComponentStateForError(t);this.setState(Uo({busy:!1,busyLoggingIn:!1},n)),e=!n.serverErrorIsFatal}if(!e)return}this.setState({busy:!0,busyLoggingIn:!0,errorText:null,loginIncorrect:!1}),this.loginLogic.loginViaPassword(e,t,n,o).then(e=>{this.setState({serverIsAlive:!0}),this.props.onLoggedIn(e,o)},t=>{if(this.unmounted)return;let n;const o=e.indexOf("@")>0;if(400===t.httpStatus&&o)n=Object(c.a)("This homeserver does not support login using email address.");else if("M_RESOURCE_LIMIT_EXCEEDED"===t.errcode){const e=Object(zn.a)(t.data.limit_type,t.data.admin_contact,{monthly_active_user:Object(c.b)("This homeserver has hit its Monthly Active User limit."),"":Object(c.b)("This homeserver has exceeded one of its resource limits.")}),o=Object(zn.a)(t.data.limit_type,t.data.admin_contact,{"":Object(c.b)("Please <a>contact your service administrator</a> to continue using this service.")});n=i.a.createElement("div",null,i.a.createElement("div",null,e),i.a.createElement("div",{className:"mx_Login_smallError"},o))}else n=401===t.httpStatus||403===t.httpStatus?"M_USER_DEACTIVATED"===t.errcode?Object(c.a)("This account has been deactivated."):l.a.get().disable_custom_urls?i.a.createElement("div",null,i.a.createElement("div",null,Object(c.a)("Incorrect username and/or password.")),i.a.createElement("div",{className:"mx_Login_smallError"},Object(c.a)("Please note you are logging into the %(hs)s server, not matrix.org.",{hs:this.props.serverConfig.hsName}))):Object(c.a)("Incorrect username and/or password."):this.errorTextFromError(t);this.setState({busy:!1,busyLoggingIn:!1,errorText:n,loginIncorrect:401===t.httpStatus||403===t.httpStatus})})}),R()(this,"onUsernameChanged",e=>{this.setState({username:e})}),R()(this,"onUsernameBlur",async e=>{const t="@"===e[0];if(this.setState({username:e,busy:t,errorText:null,canTryLogin:!0}),t){const t=e.split(":").slice(1).join(":");try{const e=await go.b.validateServerName(t);this.props.onServerConfigChange(e),this.setState({busy:!1})}catch(e){console.error("Problem parsing URL or unhandled error doing .well-known discovery:",e);let t=Object(c.a)("Failed to perform homeserver discovery");e.translatedMessage&&(t=e.translatedMessage);let n=t,o={};go.b.isLivelinessError(e)&&(n=this.state.errorText,o=go.b.authComponentStateForError(e)),this.setState(Uo({busy:!1,errorText:n},o))}}}),R()(this,"onPhoneCountryChanged",e=>{this.setState({phoneCountry:e})}),R()(this,"onPhoneNumberChanged",e=>{this.setState({phoneNumber:e})}),R()(this,"onRegisterClick",e=>{e.preventDefault(),e.stopPropagation(),this.props.onRegisterClick()}),R()(this,"onTryRegisterClick",e=>{const t=this.state.flows.find(e=>"m.login.password"===e.type),n=this.state.flows.find(e=>"m.login.sso"===e.type||"m.login.cas"===e.type);if(n&&!t){e.preventDefault(),e.stopPropagation();const t="m.login.sso"===n.type?"sso":"cas";qe.a.get().startSingleSignOn(this.loginLogic.createTemporaryClient(),t,this.props.fragmentAfterLogin)}else this.onRegisterClick(e)}),R()(this,"isSupportedFlow",e=>!!this.stepRendererMap[e.type]||(console.log("Skipping flow",e,"due to unsupported login type",e.type),!1)),R()(this,"renderPasswordStep",()=>i.a.createElement(Ro,{onSubmit:this.onPasswordLogin,username:this.state.username,phoneCountry:this.state.phoneCountry,phoneNumber:this.state.phoneNumber,onUsernameChanged:this.onUsernameChanged,onUsernameBlur:this.onUsernameBlur,onPhoneCountryChanged:this.onPhoneCountryChanged,onPhoneNumberChanged:this.onPhoneNumberChanged,onForgotPasswordClick:this.props.onForgotPasswordClick,loginIncorrect:this.state.loginIncorrect,serverConfig:this.props.serverConfig,disableSubmit:this.isBusy(),busy:this.props.isSyncing||this.state.busyLoggingIn})),R()(this,"renderSsoStep",e=>{const t=this.state.flows.find(t=>t.type==="m.login."+e);return i.a.createElement(Io,{matrixClient:this.loginLogic.createTemporaryClient(),flow:t,loginType:e,fragmentAfterLogin:this.props.fragmentAfterLogin,primary:!this.state.flows.find(e=>"m.login.password"===e.type)})}),this.state={busy:!1,busyLoggingIn:null,errorText:null,loginIncorrect:!1,canTryLogin:!0,flows:null,username:"",phoneCountry:null,phoneNumber:"",serverIsAlive:!0,serverErrorIsFatal:!1,serverDeadError:""},this.stepRendererMap={"m.login.password":this.renderPasswordStep,"m.login.cas":()=>this.renderSsoStep("cas"),"m.login.sso":()=>this.renderSsoStep("sso")},y.a.instance.track("onboarding_login_begin")}UNSAFE_componentWillMount(){this.initLoginLogic(this.props.serverConfig)}componentWillUnmount(){this.unmounted=!0}UNSAFE_componentWillReceiveProps(e){e.serverConfig.hsUrl===this.props.serverConfig.hsUrl&&e.serverConfig.isUrl===this.props.serverConfig.isUrl||this.initLoginLogic(e.serverConfig)}async initLoginLogic({hsUrl:e,isUrl:t}){let n=!1;this.props.serverConfig.isDefault&&e===this.props.serverConfig.hsUrl&&t===this.props.serverConfig.isUrl&&(n=!0);const o=n?this.props.fallbackHsUrl:null,r=new mo.a(e,t,o,{defaultDeviceDisplayName:this.props.defaultDeviceDisplayName});this.loginLogic=r,this.setState({busy:!0,loginIncorrect:!1});try{const{warning:n}=await go.b.validateServerConfigWithStaticUrls(e,t);n?this.setState(Uo(Uo({},go.b.authComponentStateForError(n)),{},{errorText:""})):this.setState({serverIsAlive:!0,errorText:""})}catch(e){this.setState(Uo({busy:!1},go.b.authComponentStateForError(e)))}r.getFlows().then(e=>{const t=e.filter(this.isSupportedFlow);t.length>0?this.setState({flows:t}):this.setState({errorText:Object(c.a)("This homeserver doesn't offer any login flows which are supported by this client.")})},e=>{this.setState({errorText:this.errorTextFromError(e),loginIncorrect:!1,canTryLogin:!1})}).finally(()=>{this.setState({busy:!1})})}errorTextFromError(e){let t=e.errcode;!t&&e.httpStatus&&(t="HTTP "+e.httpStatus);let n=Object(c.a)("There was a problem communicating with the homeserver, please try again later.")+(t?" ("+t+")":"");return"rejected"===e.cors&&(n="https:"!==window.location.protocol||!this.props.serverConfig.hsUrl.startsWith("http:")&&this.props.serverConfig.hsUrl.startsWith("http")?i.a.createElement("span",null,Object(c.a)("Can't connect to homeserver - please check your connectivity, ensure your <a>homeserver's SSL certificate</a> is trusted, and that a browser extension is not blocking requests.",{},{a:e=>i.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:this.props.serverConfig.hsUrl},e)})):i.a.createElement("span",null,Object(c.a)("Can't connect to homeserver via HTTP when an HTTPS URL is in your browser bar. Either use HTTPS or <a>enable unsafe scripts</a>.",{},{a:e=>i.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://www.google.com/search?&q=enable%20unsafe%20scripts"},e)}))),n}renderLoginComponentForFlows(){if(!this.state.flows)return null;const e=["m.login.password","m.login.sso"].map(e=>this.state.flows.find(t=>t.type===e)).filter(Boolean);return i.a.createElement(i.a.Fragment,null,e.map(e=>{const t=this.stepRendererMap[e.type];return i.a.createElement(i.a.Fragment,{key:e.type},t())}))}render(){const e=u.getComponent("auth.AuthHeader"),t=u.getComponent("auth.AuthBody"),n=this.isBusy()&&!this.state.busyLoggingIn?i.a.createElement("div",{className:"mx_Login_loader"},i.a.createElement(We.a,null)):null,o=this.state.errorText;let r,a,s;if(o&&(r=i.a.createElement("div",{className:"mx_Login_error"},o)),!this.state.serverIsAlive){const e=M()({mx_Login_error:!0,mx_Login_serverError:!0,mx_Login_serverErrorNonFatal:!this.state.serverErrorIsFatal});a=i.a.createElement("div",{className:e},this.state.serverDeadError)}return this.props.isSyncing||this.state.busyLoggingIn?s=i.a.createElement("div",{className:"mx_AuthBody_paddedFooter"},i.a.createElement("div",{className:"mx_AuthBody_paddedFooter_title"},i.a.createElement(jt.a,{w:20,h:20}),this.props.isSyncing?Object(c.a)("Syncing..."):Object(c.a)("Signing In...")),this.props.isSyncing&&i.a.createElement("div",{className:"mx_AuthBody_paddedFooter_subtitle"},Object(c.a)("If you've joined lots of rooms, this might take a while"))):P.a.getValue($e.a.Registration)&&(s=i.a.createElement("span",{className:"mx_AuthBody_changeFlow"},Object(c.a)("New? <a>Create account</a>",{},{a:e=>i.a.createElement("a",{onClick:this.onTryRegisterClick,href:"#"},e)}))),i.a.createElement(_o,null,i.a.createElement(e,{disableLanguageSelector:this.props.isSyncing||this.state.busyLoggingIn}),i.a.createElement(t,null,i.a.createElement("h2",null,Object(c.a)("Sign in"),n),r,a,i.a.createElement(Po,{serverConfig:this.props.serverConfig,onServerConfigChange:this.props.onServerConfigChange}),this.renderLoginComponentForFlows(),s))}}function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class Go extends i.a.Component{constructor(e){super(e),R()(this,"loginLogic",void 0),R()(this,"onFormSubmit",e=>{this.setState({errorText:"",busy:!0,formVals:e,doingUIAuth:!0})}),R()(this,"requestEmailToken",(e,t,n,o)=>this.state.matrixClient.requestRegisterEmailToken(e,t,n,this.props.makeRegistrationUrl({client_secret:t,hs_url:this.state.matrixClient.getHomeserverUrl(),is_url:this.state.matrixClient.getIdentityServerUrl(),session_id:o}))),R()(this,"onUIAuthFinished",async(e,t,n)=>{if(!e){let e=t.message||t.toString();if("M_RESOURCE_LIMIT_EXCEEDED"===t.errcode){const n=Object(zn.a)(t.data.limit_type,t.data.admin_contact,{monthly_active_user:Object(c.b)("This homeserver has hit its Monthly Active User limit."),"":Object(c.b)("This homeserver has exceeded one of its resource limits.")}),o=Object(zn.a)(t.data.limit_type,t.data.admin_contact,{"":Object(c.b)("Please <a>contact your service administrator</a> to continue using this service.")});e=i.a.createElement("div",null,i.a.createElement("p",null,n),i.a.createElement("p",null,o))}else if(t.required_stages&&t.required_stages.indexOf("m.login.msisdn")>-1){let n=!1;for(const e of t.available_flows)n=n||e.stages.includes("m.login.msisdn");n||(e=Object(c.a)("This server does not support authentication with a phone number."))}else"M_USER_IN_USE"===t.errcode&&(e=Object(c.a)("That username already exists, please try another."));return void this.setState({busy:!1,doingUIAuth:!1,errorText:e})}X.a.setJustRegisteredUserId(t.user_id);const o={doingUIAuth:!1,registeredUsername:t.user_id,differentLoggedInUserId:null,completedNoSignin:!1,busy:!0},[r,a]=await Me.b();r&&!a&&r!==t.userId&&(console.log(`Found a session for ${r} but ${t.userId} has just registered.`),o.differentLoggedInUserId=r),t.access_token?(await this.props.onLoggedIn({userId:t.user_id,deviceId:t.device_id,homeserverUrl:this.state.matrixClient.getHomeserverUrl(),identityServerUrl:this.state.matrixClient.getIdentityServerUrl(),accessToken:t.access_token},this.state.formVals.password),this.setupPushers()):(o.busy=!1,o.completedNoSignin=!0),this.setState(o)}),R()(this,"onLoginClick",e=>{e.preventDefault(),e.stopPropagation(),this.props.onLoginClick()}),R()(this,"onGoToFormClicked",e=>{e.preventDefault(),e.stopPropagation(),this.replaceClient(this.props.serverConfig),this.setState({busy:!1,doingUIAuth:!1})}),R()(this,"makeRegisterRequest",e=>{let t=Boolean(this.state.formVals.email);this.state.formVals.password||(t=null);const n={username:this.state.formVals.username,password:this.state.formVals.password,initial_device_display_name:this.props.defaultDeviceDisplayName,auth:void 0,inhibit_login:void 0};return e&&(n.auth=e),null!=t&&(n.inhibit_login=t),this.state.matrixClient.registerRequest(n)}),R()(this,"onLoginClickWithCheck",async e=>{e.preventDefault();await Me.h({ignoreGuest:!0})||this.props.onLoginClick()}),this.state={busy:!1,errorText:null,formVals:{email:this.props.email},doingUIAuth:Boolean(this.props.sessionId),flows:null,completedNoSignin:!1,serverIsAlive:!0,serverErrorIsFatal:!1,serverDeadError:""};const{hsUrl:t,isUrl:n}=this.props.serverConfig;this.loginLogic=new mo.a(t,n,null,{defaultDeviceDisplayName:"Element login check"})}componentDidMount(){this.replaceClient(this.props.serverConfig)}UNSAFE_componentWillReceiveProps(e){e.serverConfig.hsUrl===this.props.serverConfig.hsUrl&&e.serverConfig.isUrl===this.props.serverConfig.isUrl||this.replaceClient(e.serverConfig)}async replaceClient(e){this.setState({errorText:null,serverDeadError:null,serverErrorIsFatal:!1,busy:!0});try{await go.b.validateServerConfigWithStaticUrls(e.hsUrl,e.isUrl),this.setState({serverIsAlive:!0,serverErrorIsFatal:!1})}catch(e){if(this.setState(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(n),!0).forEach((function(t){R()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({busy:!1},go.b.authComponentStateForError(e,"register"))),this.state.serverErrorIsFatal)return}const{hsUrl:t,isUrl:n}=e,o=Pe.q.createClient({baseUrl:t,idBaseUrl:n});let r;this.loginLogic.setHomeserverUrl(t),this.loginLogic.setIdentityServerUrl(n);try{r=(await this.loginLogic.getFlows()).find(e=>"m.login.sso"===e.type||"m.login.cas"===e.type)}catch(e){console.error("Failed to get login flows to check for SSO support",e)}this.setState({matrixClient:o,ssoFlow:r,busy:!1});const i=e=>{this.setState({errorText:Object(c.a)("Unable to query for supported registration methods."),flows:[]})};try{this.state.doingUIAuth||(await this.makeRegisterRequest(null),console.log("Expecting 401 from register request but got success!"))}catch(e){401===e.httpStatus?this.setState({flows:e.data.flows}):403===e.httpStatus&&"M_UNKNOWN"===e.errcode?r?d.a.dispatch({action:"start_login"}):this.setState({serverErrorIsFatal:!0,errorText:Object(c.a)("Registration has been disabled on this homeserver."),flows:[]}):(console.log("Unable to query for supported registration methods.",e),i())}}setupPushers(){if(!this.props.brand)return Promise.resolve();const e=X.a.get();return e.getPushers().then(t=>{const n=t.pushers;for(let t=0;t<n.length;++t)if("email"===n[t].kind){const o=n[t];o.data={brand:this.props.brand},e.setPusher(o).then(()=>{console.log("Set email branding to "+this.props.brand)},e=>{console.error("Couldn't set email branding: "+e)})}},e=>{console.error("Couldn't get pushers: "+e)})}getUIAuthInputs(){return{emailAddress:this.state.formVals.email,phoneCountry:this.state.formVals.phoneCountry,phoneNumber:this.state.formVals.phoneNumber}}renderRegisterComponent(){const e=u.getComponent("structures.InteractiveAuth"),t=u.getComponent("elements.Spinner"),n=u.getComponent("auth.RegistrationForm");if(this.state.matrixClient&&this.state.doingUIAuth)return i.a.createElement(e,{matrixClient:this.state.matrixClient,makeRequest:this.makeRegisterRequest,onAuthFinished:this.onUIAuthFinished,inputs:this.getUIAuthInputs(),requestEmailToken:this.requestEmailToken,sessionId:this.props.sessionId,clientSecret:this.props.clientSecret,emailSid:this.props.idSid,poll:!0});if(!this.state.matrixClient&&!this.state.busy)return null;if(this.state.busy||!this.state.flows)return i.a.createElement("div",{className:"mx_AuthBody_spinner"},i.a.createElement(t,null));if(this.state.flows.length){let e;if(this.state.ssoFlow){let t;(this.state.ssoFlow["org.matrix.msc2858.identity_providers"]||[]).length>1&&(t=i.a.createElement("h3",{className:"mx_AuthBody_centered"},Object(c.a)("Continue with %(ssoButtons)s",{ssoButtons:""}).trim())),e=i.a.createElement(i.a.Fragment,null,t,i.a.createElement(Io,{matrixClient:this.loginLogic.createTemporaryClient(),flow:this.state.ssoFlow,loginType:"m.login.sso"===this.state.ssoFlow.type?"sso":"cas",fragmentAfterLogin:this.props.fragmentAfterLogin}),i.a.createElement("h3",{className:"mx_AuthBody_centered"},Object(c.a)("%(ssoButtons)s Or %(usernamePassword)s",{ssoButtons:"",usernamePassword:""}).trim()))}return i.a.createElement(i.a.Fragment,null,e,i.a.createElement(n,{defaultUsername:this.state.formVals.username,defaultEmail:this.state.formVals.email,defaultPhoneCountry:this.state.formVals.phoneCountry,defaultPhoneNumber:this.state.formVals.phoneNumber,defaultPassword:this.state.formVals.password,onRegisterClick:this.onFormSubmit,flows:this.state.flows,serverConfig:this.props.serverConfig,canSubmit:!this.state.serverErrorIsFatal}))}}render(){const e=u.getComponent("auth.AuthHeader"),t=u.getComponent("auth.AuthBody"),n=u.getComponent("elements.AccessibleButton");let o;const r=this.state.errorText;let a;if(r&&(o=i.a.createElement("div",{className:"mx_Login_error"},r)),!this.state.serverIsAlive){const e=M()({mx_Login_error:!0,mx_Login_serverError:!0,mx_Login_serverErrorNonFatal:!this.state.serverErrorIsFatal});a=i.a.createElement("div",{className:e},this.state.serverDeadError)}const s=i.a.createElement("span",{className:"mx_AuthBody_changeFlow"},Object(c.a)("Already have an account? <a>Sign in here</a>",{},{a:e=>i.a.createElement("a",{onClick:this.onLoginClick,href:"#"},e)}));let l,d;if(this.state.doingUIAuth&&(l=i.a.createElement("a",{className:"mx_AuthBody_changeFlow",onClick:this.onGoToFormClicked,href:"#"},Object(c.a)("Go back"))),this.state.completedNoSignin){let e;e=this.state.differentLoggedInUserId?i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Your new account (%(newAccountId)s) is registered, but you're already logged into a different account (%(loggedInUserId)s).",{newAccountId:this.state.registeredUsername,loggedInUserId:this.state.differentLoggedInUserId})),i.a.createElement("p",null,i.a.createElement(n,{element:"span",className:"mx_linkButton",onClick:this.onLoginClickWithCheck},Object(c.a)("Continue with previous account")))):this.state.formVals.password?i.a.createElement("h3",null,Object(c.a)("<a>Log in</a> to your new account.",{},{a:e=>i.a.createElement("a",{href:"#/login",onClick:this.onLoginClickWithCheck},e)})):i.a.createElement("h3",null,Object(c.a)("You can now close this window or <a>log in</a> to your new account.",{},{a:e=>i.a.createElement("a",{href:"#/login",onClick:this.onLoginClickWithCheck},e)})),d=i.a.createElement("div",null,i.a.createElement("h2",null,Object(c.a)("Registration Successful")),e)}else d=i.a.createElement("div",null,i.a.createElement("h2",null,Object(c.a)("Create account")),o,a,i.a.createElement(Po,{title:Object(c.a)("Host account on"),dialogTitle:Object(c.a)("Decide where your account is hosted"),serverConfig:this.props.serverConfig,onServerConfigChange:this.state.doingUIAuth?void 0:this.props.onServerConfigChange}),this.renderRegisterComponent(),l,s);return i.a.createElement(_o,null,i.a.createElement(e,null),i.a.createElement(t,null,d))}}var qo=n(309),Ho=n(722),Vo=n(214);const zo=Object(bo.a)({rules:[{key:"email",test:({value:e})=>!e||vo.a(e),invalid:()=>Object(c.a)("Doesn't look like a valid email address")}]});var Ko,Wo=({onFinished:e})=>{const[t,n]=Object(r.useState)(""),o=Object(r.useRef)(),i=async()=>{if(t){if(!await o.current.validate({allowEmpty:!1}))return o.current.focus(),void o.current.validate({allowEmpty:!1,focused:!0})}e(!0,t)};return r.createElement(rn.a,{title:Object(c.a)("Continuing without email"),className:"mx_RegistrationEmailPromptDialog",contentId:"mx_RegistrationEmailPromptDialog",onFinished:()=>e(!1),fixedWidth:!1},r.createElement("div",{className:"mx_Dialog_content",id:"mx_RegistrationEmailPromptDialog"},r.createElement("p",null,Object(c.a)("Just a heads up, if you don't add an email and forget your password, you could <b>permanently lose access to your account</b>.",{},{b:e=>r.createElement("b",null,e)})),r.createElement("form",{onSubmit:i},r.createElement(Ce.a,{ref:o,type:"text",label:Object(c.a)("Email (optional)"),value:t,onChange:e=>{n(e.target.value)},onValidate:async e=>await zo(e),onFocus:()=>y.a.instance.track("onboarding_registration_email2_focus"),onBlur:()=>y.a.instance.track("onboarding_registration_email2_blur")}))),r.createElement(Vo.a,{primaryButton:Object(c.a)("Continue"),onPrimaryButtonClick:i,hasCancel:!1}))};!function(e){e.Email="field_email",e.PhoneNumber="field_phone_number",e.Username="field_username",e.Password="field_password",e.PasswordConfirm="field_password_confirm"}(Ko||(Ko={}));class Yo extends i.a.PureComponent{constructor(e){super(e),R()(this,"onSubmit",async e=>{if(e.preventDefault(),e.persist(),!this.props.canSubmit)return;if(await this.verifyFieldsBeforeSubmit())if(""===this.state.email){if(!this.showEmail())return void this.doSubmit(e);y.a.instance.track("onboarding_registration_submit_warn"),Ie.a.createTrackedDialog("Email prompt dialog","",Wo,{onFinished:async(t,n)=>{t&&this.setState({email:n},()=>{this.doSubmit(e)})}})}else this.doSubmit(e);else y.a.instance.track("onboarding_registration_submit_failed")}),R()(this,"onEmailChange",e=>{this.setState({email:e.target.value})}),R()(this,"onEmailValidate",async e=>{const t=await this.validateEmailRules(e);return this.markFieldValid(Ko.Email,t.valid),t}),R()(this,"validateEmailRules",Object(bo.a)({description:()=>Object(c.a)("Use an email address to recover your account"),hideDescriptionIfValid:!0,rules:[{key:"required",test({value:e,allowEmpty:t}){return t||!this.authStepIsRequired("m.login.email.identity")||!!e},invalid:()=>Object(c.a)("Enter email address (required on this homeserver)")},{key:"email",test:({value:e})=>!e||vo.a(e),invalid:()=>Object(c.a)("Doesn't look like a valid email address")}]})),R()(this,"onPasswordChange",e=>{this.setState({password:e.target.value})}),R()(this,"onPasswordValidate",e=>{this.markFieldValid(Ko.Password,e.valid)}),R()(this,"onPasswordConfirmChange",e=>{this.setState({passwordConfirm:e.target.value})}),R()(this,"onPasswordConfirmValidate",async e=>{const t=await this.validatePasswordConfirmRules(e);return this.markFieldValid(Ko.PasswordConfirm,t.valid),t}),R()(this,"validatePasswordConfirmRules",Object(bo.a)({rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Confirm password")},{key:"match",test({value:e}){return!e||e===this.state.password},invalid:()=>Object(c.a)("Passwords don't match")}]})),R()(this,"onPhoneCountryChange",e=>{this.setState({phoneCountry:e.iso2})}),R()(this,"onPhoneNumberChange",e=>{this.setState({phoneNumber:e.target.value})}),R()(this,"onPhoneNumberValidate",async e=>{const t=await this.validatePhoneNumberRules(e);return this.markFieldValid(Ko.PhoneNumber,t.valid),t}),R()(this,"validatePhoneNumberRules",Object(bo.a)({description:()=>Object(c.a)("Other users can invite you to rooms using your contact details"),hideDescriptionIfValid:!0,rules:[{key:"required",test({value:e,allowEmpty:t}){return t||!this.authStepIsRequired("m.login.msisdn")||!!e},invalid:()=>Object(c.a)("Enter phone number (required on this homeserver)")},{key:"email",test:({value:e})=>{return!e||(t=e,Eo.test(t));var t},invalid:()=>Object(c.a)("That phone number doesn't look quite right, please check and try again")}]})),R()(this,"onUsernameChange",e=>{this.setState({username:e.target.value})}),R()(this,"onUsernameValidate",async e=>{const t=await this.validateUsernameRules(e);return this.markFieldValid(Ko.Username,t.valid),t}),R()(this,"validateUsernameRules",Object(bo.a)({description:()=>Object(c.a)("Use lowercase letters, numbers, dashes and underscores only"),hideDescriptionIfValid:!0,rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Enter username")},{key:"safeLocalpart",test:({value:e})=>!e||Ho.a.test(e),invalid:()=>Object(c.a)("Some characters not allowed")}]})),this.state={fieldValid:{},phoneCountry:this.props.defaultPhoneCountry,username:this.props.defaultUsername||"",email:this.props.defaultEmail||"",phoneNumber:this.props.defaultPhoneNumber||"",password:this.props.defaultPassword||"",passwordConfirm:this.props.defaultPassword||"",passwordComplexity:null},y.a.instance.track("onboarding_registration_begin")}doSubmit(e){const t=this.state.email.trim();y.a.instance.track("onboarding_registration_submit_ok",{email:!!t});const n=this.props.onRegisterClick({username:this.state.username.trim(),password:this.state.password.trim(),email:t,phoneCountry:this.state.phoneCountry,phoneNumber:this.state.phoneNumber});n&&(e.target.disabled=!0,n.finally((function(){e.target.disabled=!1})))}async verifyFieldsBeforeSubmit(){const e=document.activeElement;e&&e.blur();const t=[Ko.Username,Ko.Password,Ko.PasswordConfirm,Ko.Email,Ko.PhoneNumber];for(const e of t){const t=this[e];t&&await t.validate({allowEmpty:!1})}if(await new Promise(e=>this.setState({},e)),this.allFieldsValid())return!0;const n=this.findFirstInvalidField(t);return!n||(n.focus(),n.validate({allowEmpty:!1,focused:!0}),!1)}allFieldsValid(){const e=Object.keys(this.state.fieldValid);for(let t=0;t<e.length;++t)if(!this.state.fieldValid[e[t]])return!1;return!0}findFirstInvalidField(e){for(const t of e)if(!this.state.fieldValid[t]&&this[t])return this[t];return null}markFieldValid(e,t){const{fieldValid:n}=this.state;n[e]=t,this.setState({fieldValid:n})}authStepIsRequired(e){return this.props.flows.every(t=>t.stages.includes(e))}authStepIsUsed(e){return this.props.flows.some(t=>t.stages.includes(e))}showEmail(){return!!this.authStepIsUsed("m.login.email.identity")}showPhoneNumber(){return!(l.a.get().disable_3pid_login||!this.authStepIsUsed("m.login.msisdn"))}renderEmail(){if(!this.showEmail())return null;const e=this.authStepIsRequired("m.login.email.identity")?Object(c.a)("Email"):Object(c.a)("Email (optional)");return i.a.createElement(Ce.a,{ref:e=>this[Ko.Email]=e,type:"text",label:e,value:this.state.email,onChange:this.onEmailChange,onValidate:this.onEmailValidate,onFocus:()=>y.a.instance.track("onboarding_registration_email_focus"),onBlur:()=>y.a.instance.track("onboarding_registration_email_blur")})}renderPassword(){return i.a.createElement(qo.a,{id:"mx_RegistrationForm_password",fieldRef:e=>this[Ko.Password]=e,minScore:3,value:this.state.password,onChange:this.onPasswordChange,onValidate:this.onPasswordValidate,onFocus:()=>y.a.instance.track("onboarding_registration_password_focus"),onBlur:()=>y.a.instance.track("onboarding_registration_password_blur")})}renderPasswordConfirm(){return i.a.createElement(Ce.a,{id:"mx_RegistrationForm_passwordConfirm",ref:e=>this[Ko.PasswordConfirm]=e,type:"password",autoComplete:"new-password",label:Object(c.a)("Confirm password"),value:this.state.passwordConfirm,onChange:this.onPasswordConfirmChange,onValidate:this.onPasswordConfirmValidate,onFocus:()=>y.a.instance.track("onboarding_registration_passwordConfirm_focus"),onBlur:()=>y.a.instance.track("onboarding_registration_passwordConfirm_blur")})}renderPhoneNumber(){if(!this.showPhoneNumber())return null;const e=u.getComponent("views.auth.CountryDropdown"),t=this.authStepIsRequired("m.login.msisdn")?Object(c.a)("Phone"):Object(c.a)("Phone (optional)"),n=i.a.createElement(e,{value:this.state.phoneCountry,isSmall:!0,showPrefix:!0,onOptionChange:this.onPhoneCountryChange});return i.a.createElement(Ce.a,{ref:e=>this[Ko.PhoneNumber]=e,type:"text",label:t,value:this.state.phoneNumber,prefixComponent:n,onChange:this.onPhoneNumberChange,onValidate:this.onPhoneNumberValidate})}renderUsername(){return i.a.createElement(Ce.a,{id:"mx_RegistrationForm_username",ref:e=>this[Ko.Username]=e,type:"text",autoFocus:!0,label:Object(c.a)("Username"),placeholder:Object(c.a)("Username").toLocaleLowerCase(),value:this.state.username,onChange:this.onUsernameChange,onValidate:this.onUsernameValidate,onFocus:()=>y.a.instance.track("onboarding_registration_username_focus"),onBlur:()=>y.a.instance.track("onboarding_registration_username_blur")})}render(){const e=i.a.createElement("input",{className:"mx_Login_submit",type:"submit",value:Object(c.a)("Register"),disabled:!this.props.canSubmit});let t=null;return this.showEmail()&&(t=this.showPhoneNumber()?i.a.createElement("div",null,Object(c.a)("Add an email to be able to reset your password.")," ",Object(c.a)("Use email or phone to optionally be discoverable by existing contacts.")):i.a.createElement("div",null,Object(c.a)("Add an email to be able to reset your password.")," ",Object(c.a)("Use email to optionally be discoverable by existing contacts."))),i.a.createElement("div",null,i.a.createElement("form",{onSubmit:this.onSubmit},i.a.createElement("div",{className:"mx_AuthBody_fieldRow"},this.renderUsername()),i.a.createElement("div",{className:"mx_AuthBody_fieldRow"},this.renderPassword(),this.renderPasswordConfirm()),i.a.createElement("div",{className:"mx_AuthBody_fieldRow"},this.renderEmail(),this.renderPhoneNumber()),t,e))}}R()(Yo,"defaultProps",{onValidationChange:console.error,canSubmit:!0});var $o=n(258),Qo=n(496),Xo=n(752),Jo=n(372),Zo=n(682),er=n(725),tr=n(383),nr=n(748),or=n(703),rr=n(503),ir=n(798),ar=n(508);class sr extends i.a.Component{constructor(e){super(e),R()(this,"onMouseDown",e=>{this.setState({location:{currentX:e.clientX,currentY:e.clientY}}),document.addEventListener("mousemove",this.state.onMouseMove),document.addEventListener("mouseup",this.state.onMouseUp)}),R()(this,"onMouseUp",e=>{document.removeEventListener("mousemove",this.state.onMouseMove),document.removeEventListener("mouseup",this.state.onMouseUp),this.props.onMouseUp(e)}),this.state={onMouseMove:this.onMouseMove.bind(this),onMouseUp:this.onMouseUp.bind(this),location:{currentX:0,currentY:0}}}onMouseMove(e){const t=this.props.dragFunc(this.state.location,e);this.setState({location:t})}render(){return i.a.createElement("div",{className:this.props.className,onMouseDown:this.onMouseDown.bind(this)})}}var cr=n(778);var lr=({events:e,children:t,threshold:n=3,onToggle:o,startExpanded:a,summaryMembers:s=[],summaryText:l})=>{const[u,d]=(e=>{const[t,n]=Object(r.useState)(e);return[t,()=>{n(!t)},n]})(a);Object(r.useEffect)(()=>{o&&o()},[u]);const h=e.map(e=>e.getId()).join(",");if(e.length<n)return i.a.createElement("div",{className:"mx_EventListSummary","data-scroll-tokens":h},t);let p;if(u)p=i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"mx_EventListSummary_line"}," "),t);else{const e=s.map(e=>i.a.createElement($o.a,{key:e.userId,member:e,width:14,height:14}));p=i.a.createElement("div",{className:"mx_EventTile_line"},i.a.createElement("div",{className:"mx_EventTile_info"},i.a.createElement("span",{className:"mx_EventListSummary_avatars",onClick:d},e),i.a.createElement("span",{className:"mx_TextualEvent mx_EventListSummary_summary"},l)))}return i.a.createElement("li",{className:"mx_EventListSummary","data-scroll-tokens":h},i.a.createElement(g.a,{className:"mx_EventListSummary_toggle",onClick:d,"aria-expanded":u},u?Object(c.a)("collapse"):Object(c.a)("expand")),p)};class ur extends i.a.Component{constructor(e){super(e),R()(this,"dragFunc",(e,t)=>{const n=t.clientX-e.currentX,o=this.state.width+n;return o<this.props.minWidth||o>this.props.maxWidth?e:(this.setState({width:o}),this.updateCSSWidth.bind(this)(o),{currentX:t.clientX,currentY:e.currentY})}),this.state={width:P.a.getValue("ircDisplayNameWidth",this.props.roomId),IRCLayoutRoot:null}}componentDidMount(){this.setState({IRCLayoutRoot:document.querySelector(".mx_IRCLayout")},()=>this.updateCSSWidth(this.state.width))}updateCSSWidth(e){this.state.IRCLayoutRoot.style.setProperty("--name-width",e+"px")}onMoueUp(e){this.props.roomId&&P.a.setValue("ircDisplayNameWidth",this.props.roomId,Ye.a.ROOM_DEVICE,this.state.width)}render(){return i.a.createElement(sr,{className:"mx_ProfileResizer",dragFunc:this.dragFunc.bind(this),onMouseUp:this.onMoueUp.bind(this)})}}var dr,hr=n(726);!function(e){e.Joined="joined",e.Left="left",e.JoinedAndLeft="joined_and_left",e.LeftAndJoined="left_and_joined",e.InviteReject="invite_reject",e.InviteWithdrawal="invite_withdrawal",e.Invited="invited",e.Banned="banned",e.Unbanned="unbanned",e.Kicked="kicked",e.ChangedName="changed_name",e.ChangedAvatar="changed_avatar",e.NoChange="no_change"}(dr||(dr={}));class pr extends i.a.Component{shouldComponentUpdate(e){return e.events.length!==this.props.events.length||e.events.length<this.props.threshold}generateSummary(e,t){const n=t.map(t=>{const n=e[t],o=this.renderNameList(n),r=t.split(","),i=pr.getCanonicalTransitions(r),a=pr.coalesceRepeatedTransitions(i).map(e=>pr.getDescriptionForTransition(e.transitionType,n.length,e.repeats)),s=Object(q.b)(a);return Object(c.a)("%(nameList)s %(transitionList)s",{nameList:o,transitionList:s})});return n?n.join(", "):null}renderNameList(e){return Object(q.b)(e,this.props.summaryLength)}static getCanonicalTransitions(e){const t={[dr.Joined]:{after:dr.Left,newTransition:dr.JoinedAndLeft},[dr.Left]:{after:dr.Joined,newTransition:dr.LeftAndJoined}},n=[];for(let o=0;o<e.length;o++){const r=e[o],i=e[o+1];let a=r;o<e.length-1&&t[r]&&t[r].after===i&&(a=t[r].newTransition,o++),n.push(a)}return n}static coalesceRepeatedTransitions(e){const t=[];for(let n=0;n<e.length;n++)t.length>0&&t[t.length-1].transitionType===e[n]?t[t.length-1].repeats+=1:t.push({transitionType:e[n],repeats:1});return t}static getDescriptionForTransition(e,t,n){let o=null;switch(e){case"joined":o=t>1?Object(c.a)("%(severalUsers)sjoined %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)sjoined %(count)s times",{oneUser:"",count:n});break;case"left":o=t>1?Object(c.a)("%(severalUsers)sleft %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)sleft %(count)s times",{oneUser:"",count:n});break;case"joined_and_left":o=t>1?Object(c.a)("%(severalUsers)sjoined and left %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)sjoined and left %(count)s times",{oneUser:"",count:n});break;case"left_and_joined":o=t>1?Object(c.a)("%(severalUsers)sleft and rejoined %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)sleft and rejoined %(count)s times",{oneUser:"",count:n});break;case"invite_reject":o=t>1?Object(c.a)("%(severalUsers)srejected their invitations %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)srejected their invitation %(count)s times",{oneUser:"",count:n});break;case"invite_withdrawal":o=t>1?Object(c.a)("%(severalUsers)shad their invitations withdrawn %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)shad their invitation withdrawn %(count)s times",{oneUser:"",count:n});break;case"invited":o=t>1?Object(c.a)("were invited %(count)s times",{count:n}):Object(c.a)("was invited %(count)s times",{count:n});break;case"banned":o=t>1?Object(c.a)("were banned %(count)s times",{count:n}):Object(c.a)("was banned %(count)s times",{count:n});break;case"unbanned":o=t>1?Object(c.a)("were unbanned %(count)s times",{count:n}):Object(c.a)("was unbanned %(count)s times",{count:n});break;case"kicked":o=t>1?Object(c.a)("were kicked %(count)s times",{count:n}):Object(c.a)("was kicked %(count)s times",{count:n});break;case"changed_name":o=t>1?Object(c.a)("%(severalUsers)schanged their name %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)schanged their name %(count)s times",{oneUser:"",count:n});break;case"changed_avatar":o=t>1?Object(c.a)("%(severalUsers)schanged their avatar %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)schanged their avatar %(count)s times",{oneUser:"",count:n});break;case"no_change":o=t>1?Object(c.a)("%(severalUsers)smade no changes %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)smade no changes %(count)s times",{oneUser:"",count:n})}return o}static getTransitionSequence(e){return e.map(pr.getTransition)}static getTransition(e){if("m.room.third_party_invite"===e.mxEvent.getType())return Object(nn.c)(e.mxEvent)?dr.Invited:dr.InviteWithdrawal;switch(e.mxEvent.getContent().membership){case"invite":return dr.Invited;case"ban":return dr.Banned;case"join":return"join"===e.mxEvent.getPrevContent().membership?e.mxEvent.getContent().displayname!==e.mxEvent.getPrevContent().displayname?dr.ChangedName:e.mxEvent.getContent().avatar_url!==e.mxEvent.getPrevContent().avatar_url?dr.ChangedAvatar:dr.NoChange:dr.Joined;case"leave":if(e.mxEvent.getSender()===e.mxEvent.getStateKey())switch(e.mxEvent.getPrevContent().membership){case"invite":return dr.InviteReject;default:return dr.Left}switch(e.mxEvent.getPrevContent().membership){case"invite":return dr.InviteWithdrawal;case"ban":return dr.Unbanned;default:return dr.Kicked}default:return null}}getAggregate(e){const t={},n={};return Object.keys(e).forEach(o=>{const r=e[o][0],i=r.displayName,a=pr.getTransitionSequence(e[o]).join(",");t[a]||(t[a]=[],n[a]=-1),t[a].push(i),(-1===n[a]||r.index<n[a])&&(n[a]=r.index)}),{names:t,indices:n}}render(){const e=this.props.events,t=new Map,n={};e.forEach((e,o)=>{const r=e.getStateKey();n[r]||(n[r]=[]),e.target&&t.set(r,e.target);let i=r;"m.room.third_party_invite"===e.getType()?i=e.getContent().display_name:e.target&&(i=e.target.name),n[r].push({mxEvent:e,displayName:i,index:o})});const o=this.getAggregate(n),r=Object.keys(o.names).sort((e,t)=>o.indices[e]-o.indices[t]);return i.a.createElement(lr,{events:this.props.events,threshold:this.props.threshold,onToggle:this.props.onToggle,startExpanded:this.props.startExpanded,children:this.props.children,summaryMembers:[...t.values()],summaryText:this.generateSummary(o.names,r)})}}R()(pr,"defaultProps",{summaryLength:1,threshold:3,avatarsMaxLength:5});var mr=({value:e,max:t})=>i.a.createElement("progress",{className:"mx_ProgressBar",max:t,value:e}),gr=n(504),fr=n(314),_r=n(105);function br(){return P.a.getValue("recent_emoji")||[]}function vr(e=24){let t=br();t.length<1&&(!function(){const e=JSON.parse(window.localStorage.mx_reaction_count||"{}"),t=Object.entries(e).sort(([,[e,t]],[,[n,o]])=>o-t).map(([e,[t,n]])=>[e,t]);P.a.setValue("recent_emoji",null,Ye.a.ACCOUNT,t.slice(0,100))}(),t=br());return Object(_r.orderBy)(t,"1","desc").slice(0,e).map(([e])=>e)}var Er=n(289);class yr extends i.a.PureComponent{constructor(...e){super(...e),R()(this,"onKeyDown",e=>{let t=!0;switch(e.key){case gn.a.ARROW_LEFT:this.changeCategoryRelative(-1);break;case gn.a.ARROW_RIGHT:this.changeCategoryRelative(1);break;case gn.a.HOME:this.changeCategoryAbsolute(0);break;case gn.a.END:this.changeCategoryAbsolute(this.props.categories.length-1,-1);break;default:t=!1}t&&(e.preventDefault(),e.stopPropagation())})}findNearestEnabled(e,t){e+=this.props.categories.length;const n=[...this.props.categories,...this.props.categories,...this.props.categories];for(;e<n.length&&e>=0;){if(n[e].enabled)return e%this.props.categories.length;e+=t>0?1:-1}}changeCategoryRelative(e){const t=this.props.categories.findIndex(e=>e.visible);this.changeCategoryAbsolute(t+e,e)}changeCategoryAbsolute(e,t=1){const n=this.props.categories[this.findNearestEnabled(e,t)];n&&(this.props.onAnchorClick(n.id),n.ref.current.focus())}render(){return i.a.createElement("nav",{className:"mx_EmojiPicker_header",role:"tablist","aria-label":Object(c.a)("Categories"),onKeyDown:this.onKeyDown},this.props.categories.map(e=>{const t=M()("mx_EmojiPicker_anchor mx_EmojiPicker_anchor_"+e.id,{mx_EmojiPicker_anchor_visible:e.visible});return i.a.createElement("button",{disabled:!e.enabled,key:e.id,ref:e.ref,className:t,onClick:()=>this.props.onAnchorClick(e.id),title:e.name,role:"tab",tabIndex:e.visible?0:-1,"aria-selected":e.visible,"aria-controls":"mx_EmojiPicker_category_"+e.id})}))}}var Sr=yr;class Tr extends i.a.PureComponent{constructor(...e){super(...e),R()(this,"inputRef",i.a.createRef()),R()(this,"onKeyDown",e=>{e.key===gn.a.ENTER&&(this.props.onEnter(),e.stopPropagation(),e.preventDefault())})}componentDidMount(){setTimeout(()=>this.inputRef.current.focus(),0)}render(){let e;return e=this.props.query?i.a.createElement("button",{onClick:()=>this.props.onChange(""),className:"mx_EmojiPicker_search_icon mx_EmojiPicker_search_clear",title:Object(c.a)("Cancel search")}):i.a.createElement("span",{className:"mx_EmojiPicker_search_icon"}),i.a.createElement("div",{className:"mx_EmojiPicker_search"},i.a.createElement("input",{autoFocus:!0,type:"text",placeholder:"Search",value:this.props.query,onChange:e=>this.props.onChange(e.target.value),onKeyDown:this.onKeyDown,ref:this.inputRef}),e)}}var wr=Tr;class Cr extends i.a.PureComponent{render(){const{unicode:e="",annotation:t="",shortcodes:[n=""]}=this.props.emoji||{};return i.a.createElement("div",{className:"mx_EmojiPicker_footer mx_EmojiPicker_preview"},i.a.createElement("div",{className:"mx_EmojiPicker_preview_emoji"},e),i.a.createElement("div",{className:"mx_EmojiPicker_preview_text"},i.a.createElement("div",{className:"mx_EmojiPicker_name mx_EmojiPicker_preview_name"},t),i.a.createElement("div",{className:"mx_EmojiPicker_shortcode"},n)))}}var xr=Cr;class Or extends i.a.PureComponent{render(){const{onClick:e,onMouseEnter:t,onMouseLeave:n,emoji:r,selectedEmojis:a}=this.props,s=a&&a.has(r.unicode);return i.a.createElement(o.f,{element:"li",onClick:()=>e(r),onMouseEnter:()=>t(r),onMouseLeave:()=>n(r),className:"mx_EmojiPicker_item_wrapper",label:r.unicode},i.a.createElement("div",{className:"mx_EmojiPicker_item "+(s?"mx_EmojiPicker_item_selected":"")},r.unicode))}}var kr=Or;const Rr=["👍","👎","😄","🎉","😕","❤️","🚀","👀"].map(e=>{const t=Object(Er.e)(e);if(!t)throw new Error(`Emoji ${e} doesn't exist in emojibase`);return t});class Ar extends i.a.Component{constructor(e){super(e),R()(this,"onMouseEnter",e=>{this.setState({hover:e})}),R()(this,"onMouseLeave",()=>{this.setState({hover:null})}),this.state={hover:null}}render(){return i.a.createElement("section",{className:"mx_EmojiPicker_footer mx_EmojiPicker_quick mx_EmojiPicker_category"},i.a.createElement("h2",{className:"mx_EmojiPicker_quick_header mx_EmojiPicker_category_label"},this.state.hover?i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"mx_EmojiPicker_name"},this.state.hover.annotation),i.a.createElement("span",{className:"mx_EmojiPicker_shortcode"},this.state.hover.shortcodes[0])):Object(c.a)("Quick Reactions")),i.a.createElement("ul",{className:"mx_EmojiPicker_list","aria-label":Object(c.a)("Quick Reactions")},Rr.map(e=>i.a.createElement(kr,{key:e.hexcode,emoji:e,onClick:this.props.onClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,selectedEmojis:this.props.selectedEmojis}))))}}var Ir=Ar;function Dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class Nr extends i.a.Component{constructor(e){super(e),R()(this,"recentlyUsed",void 0),R()(this,"memoizedDataByCategory",void 0),R()(this,"categories",void 0),R()(this,"bodyRef",i.a.createRef()),R()(this,"onScroll",()=>{const e=this.bodyRef.current;this.setState({scrollTop:e.scrollTop,viewportHeight:e.clientHeight}),this.updateVisibility()}),R()(this,"updateVisibility",()=>{const e=this.bodyRef.current,t=e.getBoundingClientRect();for(const n of this.categories){const o=e.querySelector(`[data-category-id="${n.id}"]`);if(!o){n.visible=!1,n.ref.current.classList.remove("mx_EmojiPicker_anchor_visible");continue}const r=o.getBoundingClientRect(),i=r.y-t.y,a=r.y+r.height-t.y;n.visible=i<t.height&&a>0,n.visible?(n.ref.current.classList.add("mx_EmojiPicker_anchor_visible"),n.ref.current.setAttribute("aria-selected","true"),n.ref.current.setAttribute("tabindex","0")):(n.ref.current.classList.remove("mx_EmojiPicker_anchor_visible"),n.ref.current.setAttribute("aria-selected","false"),n.ref.current.setAttribute("tabindex","-1"))}}),R()(this,"scrollToCategory",e=>{this.bodyRef.current.querySelector(`[data-category-id="${e}"]`).scrollIntoView()}),R()(this,"onChangeFilter",e=>{e=e.toLowerCase();for(const t of this.categories){let n;n=e.includes(this.state.filter)?this.memoizedDataByCategory[t.id]:"recent"===t.id?this.recentlyUsed:Er.a[t.id],n=n.filter(t=>t.filterString.includes(e)),this.memoizedDataByCategory[t.id]=n,t.enabled=n.length>0,t.ref.current.disabled=!t.enabled}this.setState({filter:e}),setTimeout(this.updateVisibility,0)}),R()(this,"onEnterFilter",()=>{const e=this.bodyRef.current.querySelector(".mx_EmojiPicker_item");e&&e.click()}),R()(this,"onHoverEmoji",e=>{this.setState({previewEmoji:e})}),R()(this,"onHoverEmojiEnd",e=>{this.setState({previewEmoji:null})}),R()(this,"onClickEmoji",e=>{!1!==this.props.onChoose(e.unicode)&&function(e){const t=br(),n=t.findIndex(([t])=>t===e);let o;n>=0?([o]=t.splice(n,1),o[1]++):o=[e,1],P.a.setValue("recent_emoji",null,Ye.a.ACCOUNT,[o,...t].slice(0,100))}(e.unicode)}),this.state={filter:"",previewEmoji:null,scrollTop:0,viewportHeight:280},this.recentlyUsed=Array.from(new Set(vr().map(Er.e).filter(Boolean))),this.memoizedDataByCategory=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dr(Object(n),!0).forEach((function(t){R()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({recent:this.recentlyUsed},Er.a),this.categories=[{id:"recent",name:Object(c.a)("Frequently Used"),enabled:this.recentlyUsed.length>0,visible:this.recentlyUsed.length>0,ref:i.a.createRef()},{id:"people",name:Object(c.a)("Smileys & People"),enabled:!0,visible:!0,ref:i.a.createRef()},{id:"nature",name:Object(c.a)("Animals & Nature"),enabled:!0,visible:!1,ref:i.a.createRef()},{id:"foods",name:Object(c.a)("Food & Drink"),enabled:!0,visible:!1,ref:i.a.createRef()},{id:"activity",name:Object(c.a)("Activities"),enabled:!0,visible:!1,ref:i.a.createRef()},{id:"places",name:Object(c.a)("Travel & Places"),enabled:!0,visible:!1,ref:i.a.createRef()},{id:"objects",name:Object(c.a)("Objects"),enabled:!0,visible:!1,ref:i.a.createRef()},{id:"symbols",name:Object(c.a)("Symbols"),enabled:!0,visible:!1,ref:i.a.createRef()},{id:"flags",name:Object(c.a)("Flags"),enabled:!0,visible:!1,ref:i.a.createRef()}]}static categoryHeightForEmojiCount(e){return 0===e?0:22+37*Math.ceil(e/8)}render(){let e=0;return i.a.createElement("div",{className:"mx_EmojiPicker"},i.a.createElement(Sr,{categories:this.categories,onAnchorClick:this.scrollToCategory}),i.a.createElement(wr,{query:this.state.filter,onChange:this.onChangeFilter,onEnter:this.onEnterFilter}),i.a.createElement(a.a,{className:"mx_EmojiPicker_body",wrappedRef:e=>{this.bodyRef.current=e},onScroll:this.onScroll},this.categories.map(t=>{const n=this.memoizedDataByCategory[t.id],o=i.a.createElement(Ur,{key:t.id,id:t.id,name:t.name,heightBefore:e,viewportHeight:this.state.viewportHeight,scrollTop:this.state.scrollTop,emojis:n,onClick:this.onClickEmoji,onMouseEnter:this.onHoverEmoji,onMouseLeave:this.onHoverEmojiEnd,selectedEmojis:this.props.selectedEmojis}),r=Nr.categoryHeightForEmojiCount(n.length);return e+=r,o})),this.state.previewEmoji||!this.props.showQuickReactions?i.a.createElement(xr,{emoji:this.state.previewEmoji}):i.a.createElement(Ir,{onClick:this.onClickEmoji,selectedEmojis:this.props.selectedEmojis}))}}var Fr=Nr;class Mr{constructor(e,t,n){this.topCount=e,this.renderCount=t,this.bottomCount=n}contains(e){return!(!e.renderCount&&this.renderCount)&&(e.topCount>=this.topCount&&e.topCount+e.renderCount<=this.topCount+this.renderCount)}expand(e){if(0===this.renderCount)return this;const t=Math.min(e,this.topCount),n=Math.min(e,this.bottomCount);return new Mr(this.topCount-t,this.renderCount+t+n,this.bottomCount-n)}totalSize(){return this.topCount+this.renderCount+this.bottomCount}}class Pr extends i.a.Component{constructor(e){super(e),this.state={}}static getDerivedStateFromProps(e,t){const n=Pr.getVisibleRangeFromProps(e),o=n.expand(e.overflowMargin),r=n.expand(e.overflowItems);return!(!!t.renderRange&&r.totalSize()!==t.renderRange.totalSize())&&t.renderRange&&t.renderRange.contains(o)?null:{renderRange:r}}static getVisibleRangeFromProps(e){const{items:t,itemHeight:n,scrollTop:o,height:r}=e,i=t?t.length:0,a=Math.min(Math.max(0,Math.floor(o/n)),i),s=i-a,c=0!==r?Math.ceil(r/n):0,l=Math.min(c,s);return new Mr(a,l,s-l)}render(){const{itemHeight:e,items:t,renderItem:n}=this.props,{renderRange:o}=this.state,{topCount:r,renderCount:a,bottomCount:s}=o,c=r*e,l=s*e,u=(t||[]).slice(r,r+a),d=this.props.element||"div",h={style:{paddingTop:c+"px",paddingBottom:l+"px"},className:this.props.className};return i.a.createElement(d,h,u.map(n))}}Pr.defaultProps={overflowItems:20,overflowMargin:5},Pr.propTypes={itemHeight:Se.a.number.isRequired,renderItem:Se.a.func.isRequired,scrollTop:Se.a.number.isRequired,height:Se.a.number.isRequired,items:Se.a.array,overflowMargin:Se.a.number,overflowItems:Se.a.number};class Lr extends i.a.PureComponent{constructor(...e){super(...e),R()(this,"renderEmojiRow",e=>{const{onClick:t,onMouseEnter:n,onMouseLeave:o,selectedEmojis:r,emojis:a}=this.props,s=a.slice(8*e,8*(e+1));return i.a.createElement("div",{key:e},s.map(e=>i.a.createElement(kr,{key:e.hexcode,emoji:e,selectedEmojis:r,onClick:t,onMouseEnter:n,onMouseLeave:o})))})}render(){const{emojis:e,name:t,heightBefore:n,viewportHeight:o,scrollTop:r}=this.props;if(!e||0===e.length)return null;const a=new Array(Math.ceil(e.length/8));for(let e=0;e<a.length;++e)a[e]=e;const s=r,c=s+o,l=n+22,u=l+37*a.length,d=Math.max(s,l),h=Math.min(c,u),p=Math.max(0,h-d),m=Math.max(0,r-l);return i.a.createElement("section",{id:"mx_EmojiPicker_category_"+this.props.id,className:"mx_EmojiPicker_category","data-category-id":this.props.id,role:"tabpanel","aria-label":t},i.a.createElement("h2",{className:"mx_EmojiPicker_category_label"},t),i.a.createElement(Pr,{element:"ul",className:"mx_EmojiPicker_list",itemHeight:37,items:a,scrollTop:m,height:p,overflowItems:3,overflowMargin:0,renderItem:this.renderEmojiRow}))}}var Ur=Lr;class Br extends i.a.Component{constructor(e){super(e),R()(this,"onReactionsChange",()=>{this.setState({selectedEmojis:new Set(Object.keys(this.getReactions()))})}),R()(this,"onChoose",e=>{this.componentWillUnmount(),this.props.onFinished();const t=this.getReactions();return t.hasOwnProperty(e)?(X.a.get().redactEvent(this.props.mxEvent.getRoomId(),t[e]),!1):(X.a.get().sendEvent(this.props.mxEvent.getRoomId(),"m.reaction",{"m.relates_to":{rel_type:"m.annotation",event_id:this.props.mxEvent.getId(),key:e}}),d.a.dispatch({action:"message_sent"}),!0)}),this.state={selectedEmojis:new Set(Object.keys(this.getReactions()))},this.addListeners()}componentDidUpdate(e){e.reactions!==this.props.reactions&&(this.addListeners(),this.onReactionsChange())}addListeners(){this.props.reactions&&(this.props.reactions.on("Relations.add",this.onReactionsChange),this.props.reactions.on("Relations.remove",this.onReactionsChange),this.props.reactions.on("Relations.redaction",this.onReactionsChange))}componentWillUnmount(){this.props.reactions&&(this.props.reactions.removeListener("Relations.add",this.onReactionsChange),this.props.reactions.removeListener("Relations.remove",this.onReactionsChange),this.props.reactions.removeListener("Relations.redaction",this.onReactionsChange))}getReactions(){if(!this.props.reactions)return{};const e=X.a.get().getUserId(),t=this.props.reactions.getAnnotationsBySender()[e]||[];return Object.fromEntries([...t].filter(e=>!e.isRedacted()).map(e=>[e.getRelation().key,e.getId()]))}render(){return i.a.createElement(Fr,{onChoose:this.onChoose,selectedEmojis:this.state.selectedEmojis,showQuickReactions:!0})}}var jr=Br;var Gr=Object(r.forwardRef)(({className:e,title:t,subtitle:n,children:o},r)=>i.a.createElement("div",{className:M()("mx_EventTileBubble",e),ref:r},i.a.createElement("div",{className:"mx_EventTileBubble_title"},t),n&&i.a.createElement("div",{className:"mx_EventTileBubble_subtitle"},n),o)),qr=n(123);var Hr=Object(r.forwardRef)(({mxEvent:e},t)=>{const n=Object(r.useContext)(b.a),o=e.getRoomId(),a=X.a.get().isRoomEncrypted(o);if("m.megolm.v1.aes-sha2"===e.getContent().algorithm&&a){let e;const t=qr.a.shared().getUserIdForRoomId(o);if(t){var s,l;const r=(null==n||null===(s=n.getRoom(o))||void 0===s||null===(l=s.getMember(t))||void 0===l?void 0:l.rawDisplayName)||t;e=Object(c.a)("Messages here are end-to-end encrypted. Verify %(displayName)s in their profile - tap on their avatar.",{displayName:r})}else e=Object(c.a)("Messages in this room are end-to-end encrypted. When people join, you can verify them in their profile, just tap on their avatar.");return i.a.createElement(Gr,{className:"mx_cryptoEvent mx_cryptoEvent_icon",title:Object(c.a)("Encryption enabled"),subtitle:e})}return a?i.a.createElement(Gr,{className:"mx_cryptoEvent mx_cryptoEvent_icon",title:Object(c.a)("Encryption enabled"),subtitle:Object(c.a)("Ignored attempt to disable encryption")}):i.a.createElement(Gr,{className:"mx_cryptoEvent mx_cryptoEvent_icon mx_cryptoEvent_icon_warning",title:Object(c.a)("Encryption not enabled"),subtitle:Object(c.a)("The encryption used by this room isn't supported."),ref:t})}),Vr=n(169);class zr extends i.a.PureComponent{constructor(e){super(e)}render(){var e;const t=this.props.mxEvent.getContent().url,n=this.props.mxEvent.getPrevContent().url,o=(null===(e=this.props.mxEvent.sender)||void 0===e?void 0:e.name)||this.props.mxEvent.getSender();let r=Object(c.a)("Join the conference at the top of this room");return Vr.b.instance.isPinned(this.props.mxEvent.getRoomId(),this.props.mxEvent.getStateKey())||(r=Object(c.a)("Join the conference from the room information card on the right")),t?n?i.a.createElement(Gr,{className:"mx_MJitsiWidgetEvent",title:Object(c.a)("Video conference updated by %(senderName)s",{senderName:o}),subtitle:r}):i.a.createElement(Gr,{className:"mx_MJitsiWidgetEvent",title:Object(c.a)("Video conference started by %(senderName)s",{senderName:o}),subtitle:r}):i.a.createElement(Gr,{className:"mx_MJitsiWidgetEvent",title:Object(c.a)("Video conference ended by %(senderName)s",{senderName:o})})}}var Kr=n(297),Wr=n.n(Kr),Yr=n(753),$r=n.n(Yr);const Qr={"image/jpeg":!0,"image/gif":!0,"image/png":!0,"video/mp4":!0,"video/webm":!0,"video/ogg":!0,"audio/mp4":!0,"audio/webm":!0,"audio/aac":!0,"audio/mpeg":!0,"audio/ogg":!0,"audio/wave":!0,"audio/wav":!0,"audio/x-wav":!0,"audio/x-pn-wav":!0,"audio/flac":!0,"audio/x-flac":!0};function Xr(e){const t=X.a.get().mxcUrlToHttp(e.url);return Promise.resolve(fetch(t)).then((function(e){return e.arrayBuffer()})).then((function(t){return $r.a.decryptAttachment(t,e)})).then((function(t){let n=e.mimetype?e.mimetype.split(";")[0].trim():"";Qr[n]||(n="application/octet-stream");return new Blob([t],{type:n})}))}var Jr=n(302),Zr=n(16),ei=n.n(Zr);let ti,ni=0;const oi={};function ri(e){if(!e)return"";const t=window.getComputedStyle(e,null);let n=t.cssText;if(""==n)for(let e=0;e<t.length;e++)n+=t[e]+":",n+=t.getPropertyValue(t[e])+";";return n}Jr.a.registerTintable((function(){ei()({uri:n(1366)},(e,t,n)=>{if(e)return;const o=(new DOMParser).parseFromString(n,"image/svg+xml"),r=Jr.a.calcSvgFixups([{contentDocument:o}]);Jr.a.applySvgFixups(r);const i=(new XMLSerializer).serializeToString(o);ti="data:image/svg+xml;base64,"+window.btoa(i),Object.keys(oi).forEach((function(e){oi[e].tint()}))})}));class ii extends i.a.Component{constructor(e){super(e),R()(this,"tint",()=>{this._downloadImage.current&&(this._downloadImage.current.src=ti),this._iframe.current&&this._iframe.current.contentWindow.postMessage({imgSrc:ti,style:ri(this._dummyLink.current)},"*")}),this.state={decryptedBlob:this.props.decryptedBlob?this.props.decryptedBlob:null},this._iframe=Object(r.createRef)(),this._dummyLink=Object(r.createRef)(),this._downloadImage=Object(r.createRef)()}presentableTextForFile(e){let t=Object(c.a)("Attachment");return e.body&&e.body.length>0&&(t=e.body),e.info&&e.info.size&&(t+=" ("+Wr()(e.info.size)+")"),t}_getContentUrl(){const e=this.props.mxEvent.getContent();return X.a.get().mxcUrlToHttp(e.url)}componentDidMount(){this.id=ni++,oi[this.id]=this,this.tint()}componentDidUpdate(e,t){this.props.onHeightChanged&&!t.decryptedBlob&&this.state.decryptedBlob&&this.props.onHeightChanged()}componentWillUnmount(){delete oi[this.id]}render(){const e=this.props.mxEvent.getContent(),t=this.presentableTextForFile(e),n=void 0!==e.file,o=e.body&&e.body.length>0?e.body:Object(c.a)("Attachment"),r=this._getContentUrl(),a=u.getComponent("dialogs.ErrorDialog"),s=e.info?e.info.size:null,l=e.info?e.info.mimetype:"application/octet-stream";if(n){if(null===this.state.decryptedBlob){let n=!1;const o=t=>{if(n)return!1;n=!0,Xr(e.file).then(e=>{this.setState({decryptedBlob:e})}).catch(e=>{console.warn("Unable to decrypt attachment: ",e),Ie.a.createTrackedDialog("Error decrypting attachment","",a,{title:Object(c.a)("Error"),description:Object(c.a)("Error decrypting attachment")})}).finally(()=>{n=!1})};return i.a.createElement("span",{className:"mx_MFileBody"},i.a.createElement("div",{className:"mx_MFileBody_download"},i.a.createElement(g.a,{onClick:o},Object(c.a)("Decrypt %(text)s",{text:t}))))}const n=e=>{e.target.contentWindow.postMessage({imgSrc:ti,style:ri(this._dummyLink.current),blob:this.state.decryptedBlob,download:o,textContent:Object(c.a)("Download %(text)s",{text:t}),auto:!this.props.decryptedBlob},"*")},r="usercontent/";return i.a.createElement("span",{className:"mx_MFileBody"},i.a.createElement("div",{className:"mx_MFileBody_download"},i.a.createElement("div",{style:{display:"none"}},i.a.createElement("a",{ref:this._dummyLink})),i.a.createElement("iframe",{src:`${r}?origin=${encodeURIComponent(window.location.origin)}`,onLoad:n,ref:this._iframe,sandbox:"allow-scripts allow-downloads allow-downloads-without-user-activation"})))}if(r){const n={target:"_blank",rel:"noreferrer noopener",href:r},a="number"!=typeof s||s>524288e3;return["application/pdf"].includes(l)&&!a?n.onClick=e=>{console.log(`Downloading ${l} as blob (unencrypted)`),e.preventDefault(),e.stopPropagation(),fetch(r).then(e=>e.blob()).then(e=>{const t=URL.createObjectURL(e),n=document.createElement("a");n.download=o,n.href=t,document.body.appendChild(n),n.click(),n.remove()})}:n.download=o,"file_grid"===this.props.tileShape?i.a.createElement("span",{className:"mx_MFileBody"},i.a.createElement("div",{className:"mx_MFileBody_download"},i.a.createElement("a",Z()({className:"mx_MFileBody_downloadLink"},n),o),i.a.createElement("div",{className:"mx_MImageBody_size"},e.info&&e.info.size?Wr()(e.info.size):""))):i.a.createElement("span",{className:"mx_MFileBody"},i.a.createElement("div",{className:"mx_MFileBody_download"},i.a.createElement("a",n,i.a.createElement("img",{src:ti,width:"12",height:"14",ref:this._downloadImage}),Object(c.a)("Download %(text)s",{text:t}))))}{const e=t?": "+t:"";return i.a.createElement("span",{className:"mx_MFileBody"},Object(c.a)("Invalid file%(extra)s",{extra:e}))}}}R()(ii,"propTypes",{mxEvent:Se.a.object.isRequired,decryptedBlob:Se.a.object,onHeightChanged:Se.a.func,tileShape:Se.a.string});class ai extends i.a.PureComponent{constructor(e){super(e),R()(this,"videoRef",i.a.createRef()),R()(this,"videoOnPlay",async()=>{if(this.hasContentUrl()||this.state.fetchingData||this.state.error)return;this.setState({fetchingData:!0});const e=this.props.mxEvent.getContent();if(!e.file)return void this.setState({error:"No file given in content"});const t=await Xr(e.file),n=URL.createObjectURL(t);this.setState({decryptedUrl:n,decryptedBlob:t,fetchingData:!1},()=>{this.videoRef.current&&this.videoRef.current.play()}),this.props.onHeightChanged()}),this.state={fetchingData:!1,decryptedUrl:null,decryptedThumbnailUrl:null,decryptedBlob:null,error:null}}thumbScale(e,t,n,o){if(!e||!t)return;if(e<n&&t<o)return 1;const r=n/e,i=o/t;return r<i?r:i}getContentUrl(){const e=this.props.mxEvent.getContent();return void 0!==e.file?this.state.decryptedUrl:X.a.get().mxcUrlToHttp(e.url)}hasContentUrl(){const e=this.getContentUrl();return e&&!e.startsWith("data:")}getThumbUrl(){const e=this.props.mxEvent.getContent();return void 0!==e.file?this.state.decryptedThumbnailUrl:e.info&&e.info.thumbnail_url?X.a.get().mxcUrlToHttp(e.info.thumbnail_url):null}async componentDidMount(){const e=P.a.getValue("autoplayGifsAndVideos"),t=this.props.mxEvent.getContent();if(void 0!==t.file&&null===this.state.decryptedUrl){let o=Promise.resolve(null);t.info&&t.info.thumbnail_file&&(o=Xr(t.info.thumbnail_file).then((function(e){return URL.createObjectURL(e)})));try{const r=await o;if(e){console.log("Preloading video");const e=await Xr(t.file),n=URL.createObjectURL(e);this.setState({decryptedUrl:n,decryptedThumbnailUrl:r,decryptedBlob:e}),this.props.onHeightChanged()}else{var n;console.log("NOT preloading video"),this.setState({decryptedUrl:`data:${null==t||null===(n=t.info)||void 0===n?void 0:n.mimetype},`,decryptedThumbnailUrl:r,decryptedBlob:null})}}catch(e){console.warn("Unable to decrypt attachment: ",e),this.setState({error:e})}}}componentWillUnmount(){this.state.decryptedUrl&&URL.revokeObjectURL(this.state.decryptedUrl),this.state.decryptedThumbnailUrl&&URL.revokeObjectURL(this.state.decryptedThumbnailUrl)}render(){const e=this.props.mxEvent.getContent(),t=P.a.getValue("autoplayGifsAndVideos");if(null!==this.state.error)return i.a.createElement("span",{className:"mx_MVideoBody"},i.a.createElement("img",{src:n(255),width:"16",height:"16"}),Object(c.a)("Error decrypting video"));if(void 0!==e.file&&null===this.state.decryptedUrl&&t)return i.a.createElement("span",{className:"mx_MVideoBody"},i.a.createElement("div",{className:"mx_MImageBody_thumbnail mx_MImageBody_thumbnail_spinner"},i.a.createElement(jt.a,null)));const o=this.getContentUrl(),r=this.getThumbUrl();let a=null,s=null,l=null,u="metadata";if(e.info){const t=this.thumbScale(e.info.w,e.info.h,480,360);t&&(s=Math.floor(e.info.w*t),a=Math.floor(e.info.h*t)),r&&(l=r,u="none")}return i.a.createElement("span",{className:"mx_MVideoBody"},i.a.createElement("video",{className:"mx_MVideoBody",ref:this.videoRef,src:o,title:e.body,controls:!0,preload:u,muted:t,autoPlay:t,height:a,width:s,poster:l,onPlay:this.videoOnPlay}),i.a.createElement(ii,Z()({},this.props,{decryptedBlob:this.state.decryptedBlob})))}}var si=n(509),ci=n(216);const li=({text:e})=>{const t=u.getComponent("elements.Spinner");return i.a.createElement("div",{className:"mx_EncryptionInfo_spinner"},i.a.createElement(t,null),e)};var ui,di,hi,pi=({waitingForOtherParty:e,waitingForNetwork:t,member:n,onStartVerification:o,isRoomEncrypted:r,inDialog:a,isSelfVerification:s})=>{let l,d;if(e||t){let t;t=e?s?Object(c.a)("Waiting for you to accept on your other session…"):Object(c.a)("Waiting for %(displayName)s to accept…",{displayName:n.displayName||n.name||n.userId}):Object(c.a)("Accepting…"),l=i.a.createElement(li,{text:t})}else{const e=u.getComponent("elements.AccessibleButton");l=i.a.createElement(e,{kind:"primary",className:"mx_UserInfo_wideButton",onClick:o},Object(c.a)("Start Verification"))}return d=r?i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Messages in this room are end-to-end encrypted.")),i.a.createElement("p",null,Object(c.a)("Your messages are secured and only you and the recipient have the unique keys to unlock them."))):i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Messages in this room are not end-to-end encrypted.")),i.a.createElement("p",null,Object(c.a)("In encrypted rooms, your messages are secured and only you and the recipient have the unique keys to unlock them."))),a?l:i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Encryption")),d),i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Verify User")),i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("For extra security, verify this user by checking a one-time code on both of your devices.")),i.a.createElement("p",null,Object(c.a)("To be secure, do this in person or use a trusted way to communicate.")),l)))},mi=n(317),gi=n(268);let fi=Object(fo.a)("views.elements.crypto.VerificationQRCode")((hi=di=class extends i.a.PureComponent{render(){return i.a.createElement(gr.a,{data:[{data:this.props.qrCodeData.buffer,mode:"byte"}],className:"mx_VerificationQRCode",width:196})}},R()(di,"propTypes",{qrCodeData:Se.a.object.isRequired}),ui=hi))||ui;var _i,bi=n(212),vi=n(203);!function(e){e[e.PHASE_UNSENT=0]="PHASE_UNSENT",e[e.PHASE_REQUESTED=1]="PHASE_REQUESTED",e[e.PHASE_READY=2]="PHASE_READY",e[e.PHASE_DONE=3]="PHASE_DONE",e[e.PHASE_STARTED=4]="PHASE_STARTED",e[e.PHASE_CANCELLED=5]="PHASE_CANCELLED"}(_i||(_i={}));class Ei extends i.a.PureComponent{constructor(e){super(e),R()(this,"hasVerifier",void 0),R()(this,"onReciprocateYesClick",()=>{this.setState({reciprocateButtonClicked:!0}),this.state.reciprocateQREvent.confirm()}),R()(this,"onReciprocateNoClick",()=>{this.setState({reciprocateButtonClicked:!0}),this.state.reciprocateQREvent.cancel()}),R()(this,"startSAS",async()=>{this.setState({emojiButtonClicked:!0});const e=this.props.request.beginKeyVerification(mi.d.SAS);try{await e.verify()}catch(e){console.error(e)}}),R()(this,"onSasMatchesClick",()=>{this.state.sasEvent.confirm()}),R()(this,"onSasMismatchesClick",()=>{this.state.sasEvent.mismatch()}),R()(this,"updateVerifierState",()=>{const{request:e}=this.props,{sasEvent:t,reciprocateQREvent:n}=e.verifier;e.verifier.off("show_sas",this.updateVerifierState),e.verifier.off("show_reciprocate_qr",this.updateVerifierState),this.setState({sasEvent:t,reciprocateQREvent:n})}),R()(this,"onRequestChange",async()=>{const{request:e}=this.props,t=this.hasVerifier;if(this.hasVerifier=!!e.verifier,!t&&this.hasVerifier){e.verifier.on("show_sas",this.updateVerifierState),e.verifier.on("show_reciprocate_qr",this.updateVerifierState);try{await e.verifier.verify()}catch(e){console.error("error verify",e)}}}),this.state={},this.hasVerifier=!1}renderQRPhase(){const{member:e,request:t}=this.props,n=t.otherPartySupportsMethod(mi.d.SAS),o=t.otherPartySupportsMethod(gi.c),r=u.getComponent("elements.AccessibleButton"),a=l.a.get().brand,s=n||o?null:i.a.createElement("p",null,Object(c.a)("The session you are trying to verify doesn't support scanning a QR code or emoji verification, which is what %(brand)s supports. Try with a different client.",{brand:a}));if("dialog"===this.props.layout){let e,a;o&&(e=i.a.createElement("div",{className:"mx_VerificationPanel_QRPhase_startOption"},i.a.createElement("p",null,Object(c.a)("Scan this unique code")),i.a.createElement(fi,{qrCodeData:t.qrCodeData}))),n&&(a=i.a.createElement("div",{className:"mx_VerificationPanel_QRPhase_startOption"},i.a.createElement("p",null,Object(c.a)("Compare unique emoji")),i.a.createElement("span",{className:"mx_VerificationPanel_QRPhase_helpText"},Object(c.a)("Compare a unique set of emoji if you don't have a camera on either device")),i.a.createElement(r,{disabled:this.state.emojiButtonClicked,onClick:this.startSAS,kind:"primary"},Object(c.a)("Start"))));const l=e&&a?i.a.createElement("div",{className:"mx_VerificationPanel_QRPhase_betweenText"},Object(c.a)("or")):null;return i.a.createElement("div",null,Object(c.a)("Verify this session by completing one of the following:"),i.a.createElement("div",{className:"mx_VerificationPanel_QRPhase_startOptions"},e,l,a,s))}let d,h;if(o&&(d=i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Verify by scanning")),i.a.createElement("p",null,Object(c.a)("Ask %(displayName)s to scan your code:",{displayName:e.displayName||e.name||e.userId})),i.a.createElement("div",{className:"mx_VerificationPanel_qrCode"},i.a.createElement(fi,{qrCodeData:t.qrCodeData})))),n){const e=this.state.emojiButtonClicked,t=o?Object(c.a)("If you can't scan the code above, verify by comparing unique emoji."):Object(c.a)("Verify by comparing unique emoji.");h=i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Verify by emoji")),i.a.createElement("p",null,t),i.a.createElement(r,{disabled:e,kind:"primary",className:"mx_UserInfo_wideButton mx_VerificationPanel_verifyByEmojiButton",onClick:this.startSAS},Object(c.a)("Verify by emoji")))}const p=s?i.a.createElement("div",{className:"mx_UserInfo_container"},s):null;return i.a.createElement(i.a.Fragment,null,d,h,p)}getDevice(){const e=this.props.request&&this.props.request.channel.deviceId;return X.a.get().getStoredDevice(X.a.get().getUserId(),e)}renderQRReciprocatePhase(){const{member:e,request:t}=this.props;let n;n=this.props.inDialog?u.getComponent("elements.AccessibleButton"):u.getComponent("elements.FormButton");const o=t.isSelfVerification?Object(c.a)("Almost there! Is your other session showing the same shield?"):Object(c.a)("Almost there! Is %(displayName)s showing the same shield?",{displayName:e.displayName||e.name||e.userId});let r;return r=this.state.reciprocateQREvent?i.a.createElement(i.a.Fragment,null,i.a.createElement("p",null,o),i.a.createElement(bi.b,{isUser:!0,status:"verified",size:128,hideTooltip:!0}),i.a.createElement("div",{className:"mx_VerificationPanel_reciprocateButtons"},i.a.createElement(n,{label:Object(c.a)("No"),kind:"danger",disabled:this.state.reciprocateButtonClicked,onClick:this.onReciprocateNoClick},Object(c.a)("No")),i.a.createElement(n,{label:Object(c.a)("Yes"),kind:"primary",disabled:this.state.reciprocateButtonClicked,onClick:this.onReciprocateYesClick},Object(c.a)("Yes")))):i.a.createElement("p",null,i.a.createElement(We.a,null)),i.a.createElement("div",{className:"mx_UserInfo_container mx_VerificationPanel_reciprocate_section"},i.a.createElement("h3",null,Object(c.a)("Verify by scanning")),r)}renderVerifiedPhase(){const{member:e,request:t}=this.props;let n,o;if(t.isSelfVerification||(n=this.props.isRoomEncrypted?Object(c.a)("Verify all users in a room to ensure it's secure."):Object(c.a)("In encrypted rooms, verify all users to ensure its secure.")),t.isSelfVerification){const e=this.getDevice();e?o=Object(c.a)("You've successfully verified %(deviceName)s (%(deviceId)s)!",{deviceName:e?e.getDisplayName():"",deviceId:this.props.request.channel.deviceId}):(console.warn("Verified device we don't know about: "+this.props.request.channel.deviceId),o=Object(c.a)("You've successfully verified your device!"))}else o=Object(c.a)("You've successfully verified %(displayName)s!",{displayName:e.displayName||e.name||e.userId});const r=u.getComponent("elements.AccessibleButton");return i.a.createElement("div",{className:"mx_UserInfo_container mx_VerificationPanel_verified_section"},i.a.createElement("h3",null,Object(c.a)("Verified")),i.a.createElement("p",null,o),i.a.createElement(bi.b,{isUser:!0,status:"verified",size:128,hideTooltip:!0}),n?i.a.createElement("p",null,n):null,i.a.createElement(r,{kind:"primary",className:"mx_UserInfo_wideButton",onClick:this.props.onClose},Object(c.a)("Got it")))}renderCancelledPhase(){const{member:e,request:t}=this.props,n=u.getComponent("elements.AccessibleButton");let o,r;return o=t.isSelfVerification?Object(c.a)("Start verification again from the notification."):Object(c.a)("Start verification again from their profile."),"m.timeout"===t.cancellationCode?r=Object(c.a)("Verification timed out.")+" "+o:t.cancellingUserId===t.otherUserId?(r=t.isSelfVerification?Object(c.a)("You cancelled verification on your other session."):Object(c.a)("%(displayName)s cancelled verification.",{displayName:e.displayName||e.name||e.userId}),r=`${r} ${o}`):r=Object(c.a)("You cancelled verification.")+" "+o,i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Verification cancelled")),i.a.createElement("p",null,r),i.a.createElement(n,{kind:"primary",className:"mx_UserInfo_wideButton",onClick:this.props.onClose},Object(c.a)("Got it")))}render(){const{member:e,phase:t,request:n}=this.props,o=e.displayName||e.name||e.userId;switch(t){case vi.d:return this.renderQRPhase();case vi.f:switch(n.chosenMethod){case mi.d.RECIPROCATE_QR_CODE:return this.renderQRReciprocatePhase();case mi.d.SAS:{const e=u.getComponent("views.verification.VerificationShowSas"),t=this.state.sasEvent?i.a.createElement(e,{displayName:o,device:this.getDevice(),sas:this.state.sasEvent.sas,onCancel:this.onSasMismatchesClick,onDone:this.onSasMatchesClick,inDialog:this.props.inDialog,isSelf:n.isSelfVerification}):i.a.createElement(We.a,null);return i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Compare emoji")),t)}default:return null}case vi.c:return this.renderVerifiedPhase();case vi.b:return this.renderCancelledPhase()}return console.error("VerificationPanel unhandled phase:",t),null}componentDidMount(){const{request:e}=this.props;if(e.on("change",this.onRequestChange),e.verifier){const{sasEvent:t,reciprocateQREvent:n}=e.verifier;this.setState({sasEvent:t,reciprocateQREvent:n})}this.onRequestChange()}componentWillUnmount(){const{request:e}=this.props;e.verifier&&(e.verifier.off("show_sas",this.updateVerifierState),e.verifier.off("show_reciprocate_qr",this.updateVerifierState)),e.off("change",this.onRequestChange)}}const yi=["m.key_mismatch","m.user_error","m.mismatched_sas"];var Si=e=>{const{verificationRequest:t,verificationRequestPromise:o,member:a,onClose:s,layout:l,isRoomEncrypted:p}=e,[m,g]=Object(r.useState)(t),[f,b]=Object(r.useState)(!1),[v,E]=Object(r.useState)(m&&m.phase);Object(r.useEffect)(()=>{g(t),t&&(b(!1),E(t.phase))},[t]),Object(r.useEffect)(()=>{o&&async function(){b(!0);const e=await o;b(!1),g(e),E(e.phase)}()},[o]);const y=Object(r.useCallback)(()=>{if(m&&m.cancelled&&yi.includes(m.cancellationCode)){const e=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Verification failed","insecure",e,{headerImage:n(369),title:Object(c.a)("Your messages are not secure"),description:i.a.createElement("div",null,Object(c.a)("One of the following may be compromised:"),i.a.createElement("ul",null,i.a.createElement("li",null,Object(c.a)("Your homeserver")),i.a.createElement("li",null,Object(c.a)("The homeserver the user youre verifying is connected to")),i.a.createElement("li",null,Object(c.a)("Yours, or the other users internet connection")),i.a.createElement("li",null,Object(c.a)("Yours, or the other users session")))),onFinished:s})}else m&&E(m.phase)},[s,m]);Object(_.a)(m,"change",y);const S=Object(r.useCallback)(async()=>{b(!0);const e=X.a.get(),t=await Object(_t.c)(e,a.userId),n=await e.requestVerificationDM(a.userId,t);g(n),E(n.phase),d.a.dispatch({action:h.a.SetRightPanelPhase,phase:on.b.EncryptionPanel,refireParams:{member:a,verificationRequest:n}})},[a]),T=!m&&f||m&&(v===vi.e||v===vi.g||void 0===v),w=m?m.isSelfVerification:a.userId===X.a.get().getUserId();if(!m||T){const e=!m&&f||m&&m.initiatedByMe;return i.a.createElement(pi,{isRoomEncrypted:p,onStartVerification:S,member:a,isSelfVerification:w,waitingForOtherParty:T&&e,waitingForNetwork:T&&!e,inDialog:"dialog"===l})}return i.a.createElement(Ei,{isRoomEncrypted:p,layout:l,onClose:s,member:a,request:m,key:m.channel.transactionId,inDialog:"dialog"===l,phase:v})},Ti=n(510),wi=n(511);const Ci=[on.b.GroupMemberInfo,on.b.GroupMemberList],xi=[on.b.GroupRoomList,on.b.GroupRoomInfo];class Oi extends wi.b{constructor(e){super(e,wi.a.Group),R()(this,"onMembersClicked",()=>{this.state.phase===on.b.GroupMemberInfo?this.setPhase(on.b.GroupMemberInfo):this.setPhase(on.b.GroupMemberList)}),R()(this,"onRoomsClicked",()=>{this.setPhase(on.b.GroupRoomList)})}onAction(e){e.action===h.a.ViewUser?e.member?this.setPhase(on.b.RoomMemberInfo,{member:e.member}):this.setPhase(on.b.GroupMemberList):"view_group"===e.action?this.setPhase(on.b.GroupMemberList):"view_group_room"===e.action?this.setPhase(on.b.GroupRoomInfo,{groupRoomId:e.groupRoomId,groupId:e.groupId}):"view_group_room_list"===e.action?this.setPhase(on.b.GroupRoomList):"view_group_member_list"===e.action?this.setPhase(on.b.GroupMemberList):"view_group_user"===e.action&&this.setPhase(on.b.GroupMemberInfo,{member:e.member})}renderButtons(){return[i.a.createElement(Ti.a,{key:"groupMembersButton",name:"groupMembersButton",title:Object(c.a)("Members"),isHighlighted:this.isPhase(Ci),onClick:this.onMembersClicked,analytics:["Right Panel","Group Member List Button","click"]}),i.a.createElement(Ti.a,{key:"roomsButton",name:"roomsButton",title:Object(c.a)("Rooms"),isHighlighted:this.isPhase(xi),onClick:this.onRoomsClicked,analytics:["Right Panel","Group Room List Button","click"]})]}}var ki=n(777),Ri=n(521),Ai=n(175),Ii=n(162),Di=n(360),Ni=n(109),Fi=n(471);const Mi=(e,t,n)=>{const[o,i]=Object(r.useState)(n);return Object(r.useEffect)(()=>{e().then(i)},t),o};var Pi=n(754),Li=n(755),Ui=n(507),Bi=n(476);class ji extends i.a.Component{constructor(e){super(e),R()(this,"onSelectChange",e=>{"SELECT_VALUE_CUSTOM"===e.target.value?this.setState({custom:!0}):(this.props.onChange(e.target.value,this.props.powerLevelKey),this.setState({selectValue:e.target.value}))}),R()(this,"onCustomChange",e=>{this.setState({customValue:e.target.value})}),R()(this,"onCustomBlur",e=>{e.preventDefault(),e.stopPropagation(),this.props.onChange(parseInt(this.state.customValue),this.props.powerLevelKey)}),R()(this,"onCustomKeyDown",e=>{e.key===gn.a.ENTER&&(e.preventDefault(),e.stopPropagation(),e.target.blur())}),this.state={levelRoleMap:{},options:[],customValue:this.props.value,selectValue:0}}UNSAFE_componentWillMount(){this._initStateFromProps(this.props)}UNSAFE_componentWillReceiveProps(e){this._initStateFromProps(e)}_initStateFromProps(e){const t=Fi.a(e.usersDefault),n=Object.keys(t).filter(t=>void 0===t||t<=e.maxValue||t==e.value),o=void 0===t[e.value];this.setState({levelRoleMap:t,options:n,custom:o,customLevel:e.value,selectValue:o?"SELECT_VALUE_CUSTOM":e.value})}render(){let e;const t=void 0===this.props.label?Object(c.a)("Power level"):this.props.label;if(this.state.custom)e=i.a.createElement(Ce.a,{type:"number",label:t,max:this.props.maxValue,onBlur:this.onCustomBlur,onKeyDown:this.onCustomKeyDown,onChange:this.onCustomChange,value:String(this.state.customValue),disabled:this.props.disabled});else{let n=this.state.options.map(e=>({value:e,text:Fi.b(e,this.props.usersDefault)}));n.push({value:"SELECT_VALUE_CUSTOM",text:Object(c.a)("Custom level")}),n=n.map(e=>i.a.createElement("option",{value:e.value,key:e.value},e.text)),e=i.a.createElement(Ce.a,{element:"select",label:t,onChange:this.onSelectChange,value:String(this.state.selectValue),disabled:this.props.disabled},n)}return i.a.createElement("div",{className:"mx_PowerSelector"},e)}}R()(ji,"propTypes",{value:Se.a.number.isRequired,maxValue:Se.a.number.isRequired,usersDefault:Se.a.number.isRequired,disabled:Se.a.bool,onChange:Se.a.func,powerLevelKey:Se.a.string,label:Se.a.string}),R()(ji,"defaultProps",{maxValue:1/0,usersDefault:0});class Gi extends i.a.Component{getDuration(e){if(!e)return;const t=parseInt(e/1e3),n=t%60,o=parseInt(t/60)%60,r=parseInt(t/3600)%24,i=parseInt(t/86400);return t<60?t<0?Object(c.a)("%(duration)ss",{duration:0}):Object(c.a)("%(duration)ss",{duration:n}):t<3600?Object(c.a)("%(duration)sm",{duration:o}):t<86400?Object(c.a)("%(duration)sh",{duration:r}):Object(c.a)("%(duration)sd",{duration:i})}getPrettyPresence(e,t,n){if(!n&&void 0!==t&&t>0){const n=this.getDuration(t);return"online"===e?Object(c.a)("Online for %(duration)s",{duration:n}):"unavailable"===e?Object(c.a)("Idle for %(duration)s",{duration:n}):"offline"===e?Object(c.a)("Offline for %(duration)s",{duration:n}):Object(c.a)("Unknown for %(duration)s",{duration:n})}return"online"===e?Object(c.a)("Online"):"unavailable"===e?Object(c.a)("Idle"):"offline"===e?Object(c.a)("Offline"):Object(c.a)("Unknown")}render(){return i.a.createElement("div",{className:"mx_PresenceLabel"},this.getPrettyPresence(this.props.presenceState,this.props.activeAgo,this.props.currentlyActive))}}R()(Gi,"propTypes",{activeAgo:Se.a.number,currentlyActive:Se.a.bool,presenceState:Se.a.string}),R()(Gi,"defaultProps",{activeAgo:-1,presenceState:null});var qi=n(323);class Hi extends i.a.Component{constructor(e){super(e),R()(this,"onOk",()=>{let e;this._reasonField&&(e=this._reasonField.value),this.props.onFinished(!0,e)}),R()(this,"onCancel",()=>{this.props.onFinished(!1)}),R()(this,"_collectReasonField",e=>{this._reasonField=e}),this._reasonField=null}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons"),n=u.getComponent("views.avatars.MemberAvatar"),o=u.getComponent("views.avatars.BaseAvatar"),r=this.props.danger?"danger":"";let a,s,l,d;if(this.props.askReason&&(a=i.a.createElement("div",null,i.a.createElement("form",{onSubmit:this.onOk},i.a.createElement("input",{className:"mx_ConfirmUserActionDialog_reasonField",ref:this._collectReasonField,placeholder:Object(c.a)("Reason"),autoFocus:!0})))),this.props.member)s=i.a.createElement(n,{member:this.props.member,width:48,height:48}),l=this.props.member.name,d=this.props.member.userId;else{const e=this.props.groupMember.avatarUrl?this.props.matrixClient.mxcUrlToHttp(this.props.groupMember.avatarUrl,48,48):null;l=this.props.groupMember.displayname||this.props.groupMember.userId,d=this.props.groupMember.userId,s=i.a.createElement(o,{name:l,url:e,width:48,height:48})}return i.a.createElement(e,{className:"mx_ConfirmUserActionDialog",onFinished:this.props.onFinished,title:this.props.title,contentId:"mx_Dialog_content"},i.a.createElement("div",{id:"mx_Dialog_content",className:"mx_Dialog_content"},i.a.createElement("div",{className:"mx_ConfirmUserActionDialog_avatar"},s),i.a.createElement("div",{className:"mx_ConfirmUserActionDialog_name"},l),i.a.createElement("div",{className:"mx_ConfirmUserActionDialog_userId"},d)),a,i.a.createElement(t,{primaryButton:this.props.action,onPrimaryButtonClick:this.onOk,primaryButtonClass:r,focus:!this.props.askReason,onCancel:this.onCancel}))}}R()(Hi,"propTypes",{member:Se.a.object,groupMember:qi.a,matrixClient:Se.a.instanceOf(Pe.i),action:Se.a.string.isRequired,title:Se.a.string.isRequired,askReason:Se.a.bool,danger:Se.a.bool,onFinished:Se.a.func.isRequired}),R()(Hi,"defaultProps",{danger:!1,askReason:!1});var Vi=n(164);function zi({userId:e,device:t}){const n=Object(r.useContext)(b.a),o=e===n.getUserId(),a=n.checkDeviceTrust(e,t.deviceId),s=n.checkUserTrust(e),l=o?a.isCrossSigningVerified():a.isVerified(),u=M()("mx_UserInfo_device",{mx_UserInfo_device_verified:l,mx_UserInfo_device_unverified:!l}),d=M()("mx_E2EIcon",{mx_E2EIcon_normal:!s.isVerified(),mx_E2EIcon_verified:l,mx_E2EIcon_warning:s.isVerified()&&!l}),h=()=>{Object(Pi.c)(n.getUser(e),t)},p=t.ambiguous?(t.getDisplayName()?t.getDisplayName():"")+" ("+t.deviceId+")":t.getDisplayName();let m=null;return s.isVerified()&&(m=l?Object(c.a)("Trusted"):Object(c.a)("Not trusted")),l?i.a.createElement("div",{className:u,title:t.deviceId},i.a.createElement("div",{className:d}),i.a.createElement("div",{className:"mx_UserInfo_device_name"},p),i.a.createElement("div",{className:"mx_UserInfo_device_trusted"},m)):i.a.createElement(g.a,{className:u,title:t.deviceId,onClick:h},i.a.createElement("div",{className:d}),i.a.createElement("div",{className:"mx_UserInfo_device_name"},p),i.a.createElement("div",{className:"mx_UserInfo_device_trusted"},m))}function Ki({devices:e,userId:t,loading:n}){const o=Object(r.useContext)(b.a),a=o.checkUserTrust(t),[s,l]=Object(r.useState)(!1);if(n)return i.a.createElement(We.a,null);if(null===e)return i.a.createElement(i.a.Fragment,null,Object(c.a)("Unable to load session list"));const u=t===o.getUserId(),d=e.map(e=>o.checkDeviceTrust(t,e.deviceId));let h=[];const p=[];let m,f,_,v="mx_E2EIcon";if(a.isVerified()){for(let t=0;t<e.length;++t){const n=e[t],o=d[t];(u?o.isCrossSigningVerified():o.isVerified())?h.push(n):p.push(n)}m=Object(c.a)("%(count)s verified sessions",{count:h.length}),f=Object(c.a)("Hide verified sessions"),v+=" mx_E2EIcon_verified"}else h=e,m=Object(c.a)("%(count)s sessions",{count:e.length}),f=Object(c.a)("Hide sessions"),v+=" mx_E2EIcon_normal";h.length&&(_=s?i.a.createElement(g.a,{className:"mx_UserInfo_expand mx_linkButton",onClick:()=>l(!1)},i.a.createElement("div",null,f)):i.a.createElement(g.a,{className:"mx_UserInfo_expand mx_linkButton",onClick:()=>l(!0)},i.a.createElement("div",{className:v}),i.a.createElement("div",null,m)));let E=p.map((e,n)=>i.a.createElement(zi,{key:n,userId:t,device:e}));if(s){const e=p.length;E=E.concat(h.map((n,o)=>i.a.createElement(zi,{key:o+e,userId:t,device:n})))}return i.a.createElement("div",{className:"mx_UserInfo_devices"},i.a.createElement("div",null,E),i.a.createElement("div",null,_))}const Wi=({member:e,isIgnored:t,canInvite:n})=>{const o=Object(r.useContext)(b.a);let a=null,s=null,l=null,u=null;const h=e.userId===o.getUserId();if(!h){const r=()=>{const n=o.getIgnoredUsers();if(t){const t=n.indexOf(e.userId);-1!==t&&n.splice(t,1)}else n.push(e.userId);o.setIgnoredUsers(n)};if(a=i.a.createElement(g.a,{onClick:r,className:M()("mx_UserInfo_field",{mx_UserInfo_destructive:!t})},t?Object(c.a)("Unignore"):Object(c.a)("Ignore")),e.roomId){const t=function(){const t=o.getRoom(e.roomId);d.a.dispatch({action:"view_room",highlighted:!0,event_id:t.getEventReadUpTo(e.userId),room_id:e.roomId})},n=function(){d.a.dispatch({action:"insert_mention",user_id:e.userId})},r=o.getRoom(e.roomId);(null==r?void 0:r.getEventReadUpTo(e.userId))&&(u=i.a.createElement(g.a,{onClick:t,className:"mx_UserInfo_field"},Object(c.a)("Jump to read receipt"))),s=i.a.createElement(g.a,{onClick:n,className:"mx_UserInfo_field"},Object(c.a)("Mention"))}if(n&&(!e||!e.membership||"leave"===e.membership)){const t=e&&e.roomId?e.roomId:Y.a.getRoomId(),n=async()=>{try{const n=new Di.a(t);await n.invite([e.userId]).then(()=>{if("invited"!==n.getCompletionState(e.userId))throw new Error(n.getErrorText(e.userId))})}catch(e){Ie.a.createTrackedDialog("Failed to invite","",De.a,{title:Object(c.a)("Failed to invite"),description:e&&e.message?e.message:Object(c.a)("Operation failed")})}};l=i.a.createElement(g.a,{onClick:n,className:"mx_UserInfo_field"},Object(c.a)("Invite"))}}const p=i.a.createElement(g.a,{onClick:()=>{Ie.a.createTrackedDialog("share room member dialog","",rr.a,{target:e})},className:"mx_UserInfo_field"},Object(c.a)("Share Link to User"));let m;return h||(m=i.a.createElement(g.a,{onClick:()=>async function(e,t){const n=Object(_t.d)(e,t);if(n)return void d.a.dispatch({action:"view_room",room_id:n.roomId});const o={dmUserId:t,encryption:void 0};if(Object(_t.e)()){const n=await e.downloadKeys([t]);Object.values(n).every(e=>Object.keys(e).length>0)&&(o.encryption=!0)}return Object(_t.b)(o)}(o,e.userId),className:"mx_UserInfo_field"},Object(c.a)("Direct message"))),i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Options")),i.a.createElement("div",null,m,u,p,s,l,a))},Yi=async()=>{const{finished:e}=Ie.a.createTrackedDialog("Demoting Self","",vt.a,{title:Object(c.a)("Demote yourself?"),description:i.a.createElement("div",null,Object(c.a)("You will not be able to undo this change as you are demoting yourself, if you are the last privileged user in the room it will be impossible to regain privileges.")),button:Object(c.a)("Demote")}),[t]=await e;return t},$i=({children:e})=>i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Admin Tools")),i.a.createElement("div",{className:"mx_UserInfo_buttons"},e)),Qi=({member:e,startUpdating:t,stopUpdating:n})=>{const o=Object(r.useContext)(b.a);if("invite"!==e.membership&&"join"!==e.membership)return null;const a="invite"===e.membership?Object(c.a)("Disinvite"):Object(c.a)("Kick");return i.a.createElement(g.a,{className:"mx_UserInfo_field mx_UserInfo_destructive",onClick:async()=>{const{finished:r}=Ie.a.createTrackedDialog("Confirm User Action Dialog","onKick",Hi,{member:e,action:"invite"===e.membership?Object(c.a)("Disinvite"):Object(c.a)("Kick"),title:"invite"===e.membership?Object(c.a)("Disinvite this user?"):Object(c.a)("Kick this user?"),askReason:"join"===e.membership,danger:!0}),[i,a]=await r;i&&(t(),o.kick(e.roomId,e.userId,a||void 0).then(()=>{console.log("Kick success")},(function(e){console.error("Kick error: "+e),Ie.a.createTrackedDialog("Failed to kick","",De.a,{title:Object(c.a)("Failed to kick"),description:e&&e.message?e.message:"Operation failed"})})).finally(()=>{n()}))}},a)},Xi=({member:e})=>{const t=Object(r.useContext)(b.a);return i.a.createElement(g.a,{className:"mx_UserInfo_field mx_UserInfo_destructive",onClick:async()=>{const{roomId:n,userId:o}=e,r=t.getRoom(n);if(!r)return;let a=r.getLiveTimeline(),s=[];for(;a;)s=a.getEvents().reduce((e,t)=>t.getSender()!==o||t.isRedacted()||t.isRedaction()||t.getType()===Vi.a.RoomCreate||t.getType()===Vi.a.RoomServerAcl?e:e.concat(t),s),a=a.getNeighbouringTimeline(Ii.a.BACKWARDS);const l=s.length,u=e.name;if(0===l)Ie.a.createTrackedDialog("No user messages found to remove","",Zt.a,{title:Object(c.a)("No recent messages by %(user)s found",{user:u}),description:i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Try scrolling up in the timeline to see if there are any earlier ones.")))});else{const{finished:e}=Ie.a.createTrackedDialog("Remove recent messages by user","",vt.a,{title:Object(c.a)("Remove recent messages by %(user)s",{user:u}),description:i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("You are about to remove %(count)s messages by %(user)s. This cannot be undone. Do you wish to continue?",{count:l,user:u})),i.a.createElement("p",null,Object(c.a)("For a large amount of messages, this might take some time. Please don't refresh your client in the meantime."))),button:Object(c.a)("Remove %(count)s messages",{count:l})}),[o]=await e;if(!o)return;await Promise.resolve(),console.info(`Started redacting recent ${l} messages for ${u} in ${n}`),await Promise.all(s.map(async e=>{try{await t.redactEvent(n,e.getId())}catch(t){console.error("Could not redact",e.getId()),console.error(t)}})),console.info(`Finished redacting recent ${l} messages for ${u} in ${n}`)}}},Object(c.a)("Remove recent messages"))},Ji=({member:e,startUpdating:t,stopUpdating:n})=>{const o=Object(r.useContext)(b.a);let a=Object(c.a)("Ban");"ban"===e.membership&&(a=Object(c.a)("Unban"));const s=M()("mx_UserInfo_field",{mx_UserInfo_destructive:"ban"!==e.membership});return i.a.createElement(g.a,{className:s,onClick:async()=>{const{finished:r}=Ie.a.createTrackedDialog("Confirm User Action Dialog","onBanOrUnban",Hi,{member:e,action:"ban"===e.membership?Object(c.a)("Unban"):Object(c.a)("Ban"),title:"ban"===e.membership?Object(c.a)("Unban this user?"):Object(c.a)("Ban this user?"),askReason:"ban"!==e.membership,danger:"ban"!==e.membership}),[i,a]=await r;if(!i)return;let s;t(),s="ban"===e.membership?o.unban(e.roomId,e.userId):o.ban(e.roomId,e.userId,a||void 0),s.then(()=>{console.log("Ban success")},(function(e){console.error("Ban error: "+e),Ie.a.createTrackedDialog("Failed to ban user","",De.a,{title:Object(c.a)("Error"),description:Object(c.a)("Failed to ban user")})})).finally(()=>{n()})}},a)},Zi=({member:e,room:t,powerLevels:n,startUpdating:o,stopUpdating:a})=>{const s=Object(r.useContext)(b.a);if("join"!==e.membership)return null;const l=((e,t)=>{if(!t||!e)return!1;const n=(t.events?t.events["m.room.message"]:null)||t.events_default;return e.powerLevel<n})(e,n),u=M()("mx_UserInfo_field",{mx_UserInfo_destructive:!l}),d=l?Object(c.a)("Unmute"):Object(c.a)("Mute");return i.a.createElement(g.a,{className:u,onClick:async()=>{const n=e.roomId,r=e.userId;if(r===s.getUserId())try{if(!await Yi())return}catch(e){return void console.error("Failed to warn about self demotion: ",e)}const i=t.currentState.getStateEvents("m.room.power_levels","");if(!i)return;const u=i.getContent(),d=(u.events?u.events["m.room.message"]:null)||u.events_default;let h;h=l?d:d-1,h=parseInt(h),isNaN(h)||(o(),s.setPowerLevel(n,r,h,i).then(()=>{console.log("Mute toggle success")},(function(e){console.error("Mute error: "+e),Ie.a.createTrackedDialog("Failed to mute user","",De.a,{title:Object(c.a)("Error"),description:Object(c.a)("Failed to mute user")})})).finally(()=>{a()}))}},d)},ea=({room:e,children:t,member:n,startUpdating:o,stopUpdating:a,powerLevels:s})=>{const c=Object(r.useContext)(b.a);let l,u,d,h;const p=(s.events?s.events["m.room.power_levels"]:null)||s.state_default,{ban:m=50,kick:g=50,redact:f=50}=s,_=e.getMember(c.getUserId());if(!_)return i.a.createElement("div",null);const v=_.userId===n.userId,E=n.powerLevel<_.powerLevel||v;return E&&_.powerLevel>=g&&(l=i.a.createElement(Qi,{member:n,startUpdating:o,stopUpdating:a})),_.powerLevel>=f&&(h=i.a.createElement(Xi,{member:n,startUpdating:o,stopUpdating:a})),E&&_.powerLevel>=m&&(u=i.a.createElement(Ji,{member:n,startUpdating:o,stopUpdating:a})),E&&_.powerLevel>=p&&(d=i.a.createElement(Zi,{member:n,room:e,powerLevels:s,startUpdating:o,stopUpdating:a})),l||u||d||h||t?i.a.createElement($i,null,d,l,u,h,t):i.a.createElement("div",null)},ta=({children:e,groupId:t,groupMember:n,startUpdating:o,stopUpdating:a})=>{const s=Object(r.useContext)(b.a),[l,u]=Object(r.useState)(!1),[p,m]=Object(r.useState)(!1);if(Object(r.useEffect)(()=>{let e=!1;const o=()=>{e||(u(Ni.a.isUserPrivileged(t)),m(Ni.a.getGroupInvitedMembers(t).some(e=>e.userId===n.userId)))};return Ni.a.registerListener(t,o),o(),()=>{e=!0,Ni.a.unregisterListener(o)}},[t,n.userId]),l){const r=async()=>{const{finished:e}=Ie.a.createDialog(Hi,{matrixClient:s,groupMember:n,action:p?Object(c.a)("Disinvite"):Object(c.a)("Remove from community"),title:p?Object(c.a)("Disinvite this user from community?"):Object(c.a)("Remove this user from community?"),danger:!0}),[r]=await e;r&&(o(),s.removeUserFromGroup(t,n.userId).then(()=>{d.a.dispatch({action:h.a.ViewUser,member:null})}).catch(e=>{Ie.a.createTrackedDialog("Failed to remove user from group","",De.a,{title:Object(c.a)("Error"),description:p?Object(c.a)("Failed to withdraw invitation"):Object(c.a)("Failed to remove user from community")}),console.log(e)}).finally(()=>{a()}))},l=i.a.createElement(g.a,{className:"mx_UserInfo_field mx_UserInfo_destructive",onClick:r},p?Object(c.a)("Disinvite"):Object(c.a)("Remove from community"));return i.a.createElement($i,null,l,e)}return i.a.createElement("div",null)};const na=({user:e,room:t,roomPermissions:n,powerLevels:o})=>{if(n.canEdit)return i.a.createElement(oa,{user:e,room:t,roomPermissions:n});{const t=o.users_default||0,n=parseInt(e.powerLevel,10),r=Object(Fi.b)(n,t);return i.a.createElement("div",{className:"mx_UserInfo_profileField"},i.a.createElement("div",{className:"mx_UserInfo_roleDescription"},r))}},oa=({user:e,room:t,roomPermissions:n})=>{const o=Object(r.useContext)(b.a),[a,s]=Object(r.useState)(parseInt(e.powerLevel,10)),l=Object(r.useCallback)(async n=>{const r=parseInt(n,10);s(r);const a=e.roomId,l=e.userId,u=t.currentState.getStateEvents("m.room.power_levels","");if(!u)return;const d=o.getUserId(),h=u.getContent().users[d];if(h&&parseInt(h)===r){const{finished:e}=Ie.a.createTrackedDialog("Promote to PL100 Warning","",vt.a,{title:Object(c.a)("Warning!"),description:i.a.createElement("div",null,Object(c.a)("You will not be able to undo this change as you are promoting the user to have the same power level as yourself."),i.a.createElement("br",null),Object(c.a)("Are you sure?")),button:Object(c.a)("Continue")}),[t]=await e;if(!t)return}else if(d===l)try{if(!await Yi())return}catch(e){console.error("Failed to warn about self demotion: ",e)}await((e,t,n,r)=>o.setPowerLevel(e,t,parseInt(n),r).then((function(){console.log("Power change success")}),(function(e){console.error("Failed to change power level "+e),Ie.a.createTrackedDialog("Failed to change power level","",De.a,{title:Object(c.a)("Error"),description:Object(c.a)("Failed to change power level")})})))(a,l,r,u)},[e.roomId,e.userId,o,t]),u=t.currentState.getStateEvents("m.room.power_levels",""),d=u?u.getContent().users_default:0;return i.a.createElement("div",{className:"mx_UserInfo_profileField"},i.a.createElement(ji,{label:null,value:a,maxValue:n.modifyLevelMax,usersDefault:d,onChange:l}))},ra=e=>{const t=Object(r.useContext)(b.a),[n,o]=Object(r.useState)(void 0);return Object(r.useEffect)(()=>{o(void 0);let n=!1;return async function(){try{await t.downloadKeys([e],!0);const r=t.getStoredDevicesForUser(e);if(n)return;(e=>{const t=Object.create(null);for(let n=0;n<e.length;n++){const o=e[n].getDisplayName(),r=t[o]||[];r.push(n),t[o]=r}for(const n in t)t[n].length>1&&t[n].forEach(t=>{e[t].ambiguous=!0})})(r),o(r)}catch(e){o(null)}}(),()=>{n=!0}},[t,e]),Object(r.useEffect)(()=>{let n=!1;const r=async()=>{const r=t.getStoredDevicesForUser(e);n||o(r)},i=t=>{t.includes(e)&&r()},a=(t,n)=>{t===e&&r()},s=(t,n)=>{t===e&&r()};return t.on("crypto.devicesUpdated",i),t.on("deviceVerificationChanged",a),t.on("userTrustStatusChanged",s),()=>{n=!0,t.removeListener("crypto.devicesUpdated",i),t.removeListener("deviceVerificationChanged",a),t.removeListener("userTrustStatusChanged",s)}},[t,e]),n},ia=({room:e,member:t,groupId:n,devices:o,isRoomEncrypted:a})=>{const s=Object(r.useContext)(b.a),l=((e,t)=>{const[n,o]=Object(r.useState)({}),i=Object(r.useCallback)(()=>{if(!t)return;const e=t.currentState.getStateEvents("m.room.power_levels","");return o(e?e.getContent():{}),()=>{o({})}},[t]);return Object(_.a)(e,"RoomState.members",i),Object(r.useEffect)(()=>(i(),()=>{o({})}),[i]),n})(s,e),u=(e=>{const[t,n]=Object(r.useState)(!1);return Object(r.useEffect)(()=>{e.isSynapseAdministrator().then(e=>{n(e)},()=>{n(!1)})},[e]),t})(s),[d,h]=Object(r.useState)(s.isUserIgnored(t.userId));Object(r.useEffect)(()=>{h(s.isUserIgnored(t.userId))},[s,t.userId]);const p=Object(r.useCallback)(e=>{"m.ignored_user_list"===e.getType()&&h(s.isUserIgnored(t.userId))},[s,t.userId]);Object(_.a)(s,"accountData",p);const[m,f]=Object(r.useState)(0),v=Object(r.useCallback)(()=>{f(m+1)},[m]),E=Object(r.useCallback)(()=>{f(m-1)},[m]),y=function(e,t,n){const[o,i]=Object(r.useState)({modifyLevelMax:-1,canEdit:!1,canInvite:!1}),a=Object(r.useCallback)(()=>{if(!t)return;const o=t.currentState.getStateEvents("m.room.power_levels","");if(!o)return;const r=o.getContent();if(!r)return;const a=t.getMember(e.getUserId());if(!a)return;const s=n,c=a.userId===s.userId;let l=-1;if(s.powerLevel<a.powerLevel||c){const e=(r.events?r.events["m.room.power_levels"]:null)||r.state_default;a.powerLevel>=e&&(c||a.powerLevel>s.powerLevel)&&(l=a.powerLevel)}i({canInvite:a.powerLevel>=r.invite,canEdit:l>=0,modifyLevelMax:l})},[e,n,t]);return Object(_.a)(e,"RoomState.members",a),Object(r.useEffect)(()=>(a(),()=>{i({modifyLevelMax:-1,canEdit:!1,canInvite:!1})}),[a]),o}(s,e,t),S=Object(r.useCallback)(async()=>{const{finished:e}=Ie.a.createTrackedDialog("Synapse User Deactivation","",vt.a,{title:Object(c.a)("Deactivate user?"),description:i.a.createElement("div",null,Object(c.a)("Deactivating this user will log them out and prevent them from logging back in. Additionally, they will leave all the rooms they are in. This action cannot be reversed. Are you sure you want to deactivate this user?")),button:Object(c.a)("Deactivate user"),danger:!0}),[n]=await e;if(n)try{await s.deactivateSynapseUser(t.userId)}catch(e){console.error("Failed to deactivate user"),console.error(e),Ie.a.createTrackedDialog("Failed to deactivate Synapse user","",De.a,{title:Object(c.a)("Failed to deactivate user"),description:e&&e.message?e.message:Object(c.a)("Operation failed")})}},[s,t.userId]);let T,w,C,x;u&&t.userId.endsWith(":"+X.a.getHomeserverName())&&(T=i.a.createElement(g.a,{onClick:S,className:"mx_UserInfo_field mx_UserInfo_destructive"},Object(c.a)("Deactivate user"))),e&&t.roomId?C=i.a.createElement(ea,{powerLevels:l,member:t,room:e,startUpdating:v,stopUpdating:E},T):n?C=i.a.createElement(ta,{groupId:n,groupMember:t,startUpdating:v,stopUpdating:E},T):T&&(C=i.a.createElement($i,null,T)),m>0&&(w=i.a.createElement(We.a,{imgClassName:"mx_ContextualMenu_spinner"})),e&&t.roomId&&!qr.a.shared().getUserIdForRoomId(t.roomId)&&(x=i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Role")),i.a.createElement(na,{powerLevels:l,user:t,room:e,roomPermissions:y})));const O=s.isCryptoEnabled();let k,R;a?k=Object(c.a)("Messages in this room are end-to-end encrypted."):O?e&&(k=Object(c.a)("Messages in this room are not end-to-end encrypted.")):k=Object(c.a)("This client does not support end-to-end encryption.");const A=(e=>Mi(async()=>e.doesServerSupportUnstableFeature("org.matrix.e2e_cross_signing"),[e],!1))(s),I=O&&s.checkUserTrust(t.userId),D=O&&I.isCrossSigningVerified(),N=t.userId===s.getUserId(),F=O&&A&&!D&&!N&&o&&o.length>0,M=function(e,t,n,o){return Mi(async()=>{if(n){o(!0);try{await e.downloadKeys([t.userId]);const n=e.getStoredCrossSigningForUser(t.userId);return!!(n&&n.getId())}finally{o(!1)}}},[e,t,n],void 0)}(s,t,F,e=>{f(t=>t+(e?1:-1))}),P=void 0===o;F&&(void 0!==M?R=i.a.createElement(g.a,{className:"mx_UserInfo_field mx_UserInfo_verifyButton",onClick:()=>{M?Object(Pi.d)(t):Object(Pi.a)(t)}},Object(c.a)("Verify")):P||(R=i.a.createElement(We.a,null)));const L=i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Security")),i.a.createElement("p",null,k),R,O&&i.a.createElement(Ki,{loading:P,devices:o,userId:t.userId}));return i.a.createElement(i.a.Fragment,null,x,L,i.a.createElement(Wi,{canInvite:y.canInvite,isIgnored:d,member:t}),C,w)},aa=({member:e,e2eStatus:t})=>{const n=Object(r.useContext)(b.a),o=Object(r.useCallback)(()=>{const t=e.getMxcAvatarUrl?e.getMxcAvatarUrl():e.avatarUrl;if(!t)return;const o={src:n.mxcUrlToHttp(t),name:e.name};Ie.a.createDialog(Bi.a,o,"mx_Dialog_lightbox")},[n,e]),a=i.a.createElement("div",{className:"mx_UserInfo_avatar"},i.a.createElement("div",null,i.a.createElement("div",null,i.a.createElement($o.a,{key:e.userId,member:e,width:.6*window.innerHeight,height:.6*window.innerHeight,resizeMethod:"scale",fallbackUserId:e.userId,onClick:o,urls:e.avatarUrl?[e.avatarUrl]:void 0}))));let s,c,u,d;e instanceof Ai.a&&e.user&&(s=e.user.presence,c=e.user.lastActiveAgo,u=e.user.currentlyActive,P.a.getValue("feature_custom_status")&&(d=e.user._unstable_statusMessage));const h=l.a.get().enable_presence_by_hs_url;let p=!0;h&&void 0!==h[n.baseUrl]&&(p=h[n.baseUrl]);let m=null;p&&(m=i.a.createElement(Gi,{activeAgo:c,currentlyActive:u,presenceState:s}));let g,f=null;d&&(f=i.a.createElement("span",{className:"mx_UserInfo_statusMessage"},d)),t&&(g=i.a.createElement(bi.b,{size:18,status:t,isUser:!0}));const _=e.name||e.displayname;return i.a.createElement(i.a.Fragment,null,a,i.a.createElement("div",{className:"mx_UserInfo_container mx_UserInfo_separator"},i.a.createElement("div",{className:"mx_UserInfo_profile"},i.a.createElement("div",null,i.a.createElement("h2",null,g,i.a.createElement("span",{title:_,"aria-label":_},_))),i.a.createElement("div",null,e.userId),i.a.createElement("div",{className:"mx_UserInfo_profileStatus"},m,f))))};var sa=e=>{let{user:t,groupId:n,room:o,onClose:a,phase:s=on.b.RoomMemberInfo}=e,l=te()(e,["user","groupId","room","onClose","phase"]);const u=Object(r.useContext)(b.a),d=Object(r.useMemo)(()=>o&&o.getMember(t.userId)||t,[o,t]),h=Object(Li.a)(u,o),p=ra(t.userId);let m;h&&p&&(m=((e,t,n)=>{const o=t===e.getUserId(),r=e.checkUserTrust(t);if(!r.isCrossSigningVerified())return r.wasCrossSigningVerified()?Ui.a.Warning:Ui.a.Normal;return n.some(n=>{const{deviceId:r}=n,i=e.checkDeviceTrust(t,r);return o?!i.isCrossSigningVerified():!i.isVerified()})?Ui.a.Warning:Ui.a.Verified})(u,t.userId,p));const g=["mx_UserInfo"];let f,_;switch(s){case on.b.RoomMemberInfo:case on.b.GroupMemberInfo:f=i.a.createElement(ia,{room:o,member:d,groupId:n,devices:p,isRoomEncrypted:h});break;case on.b.EncryptionPanel:g.push("mx_UserInfo_smallAvatar"),f=i.a.createElement(Si,Z()({},l,{member:d,onClose:a,isRoomEncrypted:h}))}o&&(_=on.b.RoomMemberList);let v=void 0;if(s===on.b.EncryptionPanel){const e=l.verificationRequest;e&&e.pending&&(v=Object(c.a)("Cancel"))}const E=i.a.createElement(aa,{member:d,e2eStatus:m});return i.a.createElement(ci.b,{className:g.join(" "),header:E,onClose:a,closeLabel:v,previousPhase:_},f)},ca=n(760);class la{constructor(e,t){if(R()(this,"commandRegex",void 0),R()(this,"forcedCommandRegex",void 0),e){if(!e.global)throw new Error("commandRegex must have global flag set");this.commandRegex=e}if(t){if(!t.global)throw new Error("forcedCommandRegex must have global flag set");this.forcedCommandRegex=t}}destroy(){}getCurrentCommand(e,t,n=!1){let o,r=this.commandRegex;if(n&&this.shouldForceComplete()&&(r=this.forcedCommandRegex||/\S+/g),!r)return null;for(r.lastIndex=0;null!==(o=r.exec(e));){const e=o.index,n=e+o[0].length;if(t.start<=n&&t.end>=e)return{command:o,range:{start:e,end:n}}}return{command:null,range:{start:-1,end:-1}}}async getCompletions(e,t,n=!1){return[]}getName(){return"Default Provider"}renderCompletions(e){return console.error("stub; should be implemented in subclasses"),null}shouldForceComplete(){return!1}}function ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ua(Object(n),!0).forEach((function(t){R()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class ha{constructor(e,t={keys:[]}){R()(this,"_options",void 0),R()(this,"_items",void 0),this._options=t,this.setObjects(e),void 0===this._options.shouldMatchWordsOnly&&(this._options.shouldMatchWordsOnly=!0),void 0===this._options.shouldMatchPrefix&&(this._options.shouldMatchPrefix=!1)}setObjects(e){this._items=new Map;for(const t of e){const e=Object(_r.at)(t,this._options.keys);if(this._options.funcs)for(const n of this._options.funcs)e.push(n(t));for(const[n,o]of Object.entries(e)){if(!o)continue;const e=this.processQuery(o);this._items.has(e)||this._items.set(e,[]),this._items.get(e).push({keyWeight:Number(n),object:t})}}}match(e){if(e=this.processQuery(e),this._options.shouldMatchWordsOnly&&(e=e.replace(/[^\w]/g,"")),0===e.length)return[];const t=[];for(const[n,o]of this._items.entries()){let r=n;this._options.shouldMatchWordsOnly&&(r=r.replace(/[^\w]/g,""));const i=r.indexOf(e);-1===i||this._options.shouldMatchPrefix&&0!==i||t.push(...o.map(e=>da({index:i},e)))}return t.sort((e,t)=>{if(e.index<t.index)return-1;if(e.index===t.index){if(e.keyWeight<t.keyWeight)return-1;if(e.keyWeight===t.keyWeight)return 0}return 1}),Object(_r.uniq)(t.map(e=>e.object))}processQuery(e){return!1!==this._options.fuzzy?Object(dn.z)(e.toLowerCase()).toLowerCase():e.toLowerCase()}}const pa=Object(r.forwardRef)((e,t)=>{const{title:n,subtitle:o,description:r,className:a}=e,s=te()(e,["title","subtitle","description","className"]);return i.a.createElement("div",Z()({},s,{className:M()("mx_Autocomplete_Completion_block",a),role:"option",ref:t}),i.a.createElement("span",{className:"mx_Autocomplete_Completion_title"},n),i.a.createElement("span",{className:"mx_Autocomplete_Completion_subtitle"},o),i.a.createElement("span",{className:"mx_Autocomplete_Completion_description"},r))}),ma=Object(r.forwardRef)((e,t)=>{const{title:n,subtitle:o,description:r,className:a,children:s}=e,c=te()(e,["title","subtitle","description","className","children"]);return i.a.createElement("div",Z()({},c,{className:M()("mx_Autocomplete_Completion_pill",a),role:"option",ref:t}),s,i.a.createElement("span",{className:"mx_Autocomplete_Completion_title"},n),i.a.createElement("span",{className:"mx_Autocomplete_Completion_subtitle"},o),i.a.createElement("span",{className:"mx_Autocomplete_Completion_description"},r))});var ga=n(121);function fa(e){const t=2*Math.PI/e.length;return Array.from(e).map((e,n)=>{if(" "===e)return e;const[o,r]=function(e,t){const n=127*t*Math.cos(e),o=127*t*Math.sin(e);return[n,o]}(n*t,1),[i,a,s]=function(e,t,n){let o=(e+16)/116;const r=.9505*_a(o+t/500),i=1.089*_a(o-n/200);o=_a(o);const a=-.96924364*r+1.8759675*o+.04155506*i,s=.05563008*r-.20397696*o+1.05697151*i;return[ba(3.24096994*r-1.53738318*o-.49861076*i),ba(a),ba(s)]}(75,o,r);return'<font color="#'+i.toString(16).padStart(2,"0")+a.toString(16).padStart(2,"0")+s.toString(16).padStart(2,"0")+'">'+e+"</font>"}).join("")}function _a(e){return e>.2069?Math.pow(e,3):.1284*e-.01771}function ba(e){const t=function(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055}(e),n=Math.min(Math.max(t,0),1);return Math.round(255*n)}var va=n(242),Ea=n(293),ya=n(108),Sa=n(133),Ta=n(479),wa=n(1367),Ca=n(192),xa=n(199);function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach((function(t){R()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ra=async()=>new Promise(e=>{const t=document.createElement("input");t.setAttribute("type","file"),t.onchange=t=>{const n=t.target.files[0],o=u.getComponent("dialogs.UploadConfirmDialog");Ie.a.createTrackedDialog("Upload Files confirmation","",o,{file:n,onFinished:t=>{e(t?X.a.get().uploadContent(n):null)}})},t.click()}),Aa={messages:Object(c.b)("Messages"),actions:Object(c.b)("Actions"),admin:Object(c.b)("Admin"),advanced:Object(c.b)("Advanced"),effects:Object(c.b)("Effects"),other:Object(c.b)("Other")};class Ia{constructor(e){R()(this,"command",void 0),R()(this,"aliases",void 0),R()(this,"args",void 0),R()(this,"description",void 0),R()(this,"runFn",void 0),R()(this,"category",void 0),R()(this,"hideCompletionAfterSpace",void 0),R()(this,"_isEnabled",void 0),this.command=e.command,this.aliases=e.aliases||[],this.args=e.args||"",this.description=e.description,this.runFn=e.runFn,this.category=e.category||Aa.other,this.hideCompletionAfterSpace=e.hideCompletionAfterSpace||!1,this._isEnabled=e.isEnabled}getCommand(){return"/"+this.command}getCommandWithArgs(){return this.getCommand()+" "+this.args}run(e,t,n){return this.runFn?this.runFn.bind(this)(e,t,n):Da(Object(c.a)("Command error"))}getUsage(){return Object(c.a)("Usage")+": "+this.getCommandWithArgs()}isEnabled(){return!this._isEnabled||this._isEnabled()}}function Da(e){return{error:e}}function Na(e){return{promise:e}}const Fa=[new Ia({command:"shrug",args:"<message>",description:Object(c.b)("Prepends ¯\\_(ツ)_/¯ to a plain-text message"),runFn:function(e,t){let n="¯\\_(ツ)_/¯";return t&&(n=n+" "+t),Na(X.a.get().sendTextMessage(e,n))},category:Aa.messages}),new Ia({command:"tableflip",args:"<message>",description:Object(c.b)("Prepends (╯°□°)╯︵ ┻━┻ to a plain-text message"),runFn:function(e,t){let n="(╯°□°)╯︵ ┻━┻";return t&&(n=n+" "+t),Na(X.a.get().sendTextMessage(e,n))},category:Aa.messages}),new Ia({command:"unflip",args:"<message>",description:Object(c.b)("Prepends ┬──┬ ( ゜-゜ノ) to a plain-text message"),runFn:function(e,t){let n="┬──┬ ( ゜-゜ノ)";return t&&(n=n+" "+t),Na(X.a.get().sendTextMessage(e,n))},category:Aa.messages}),new Ia({command:"lenny",args:"<message>",description:Object(c.b)("Prepends ( ͡° ͜ʖ ͡°) to a plain-text message"),runFn:function(e,t){let n="( ͡° ͜ʖ ͡°)";return t&&(n=n+" "+t),Na(X.a.get().sendTextMessage(e,n))},category:Aa.messages}),new Ia({command:"plain",args:"<message>",description:Object(c.b)("Sends a message as plain text, without interpreting it as markdown"),runFn:function(e,t){return Na(X.a.get().sendTextMessage(e,t))},category:Aa.messages}),new Ia({command:"html",args:"<message>",description:Object(c.b)("Sends a message as html, without interpreting it as markdown"),runFn:function(e,t){return Na(X.a.get().sendHtmlMessage(e,t,t))},category:Aa.messages}),new Ia({command:"ddg",args:"<query>",description:Object(c.b)("Searches DuckDuckGo for results"),runFn:function(){const e=u.getComponent("dialogs.ErrorDialog");return Ie.a.createTrackedDialog("Slash Commands","/ddg is not a command",e,{title:Object(c.a)("/ddg is not a command"),description:Object(c.a)("To use it, just wait for autocomplete results to load and tab through them.")}),Na()},category:Aa.actions,hideCompletionAfterSpace:!0}),new Ia({command:"upgraderoom",args:"<new_version>",description:Object(c.b)("Upgrades a room to a new version"),runFn:function(e,t){if(t){const n=X.a.get(),o=n.getRoom(e);if(!o.currentState.mayClientSendStateEvent("m.room.tombstone",n))return Da(Object(c.a)("You do not have the required permissions to use this command."));const r=u.getComponent("dialogs.RoomUpgradeWarningDialog"),{finished:i}=Ie.a.createTrackedDialog("Slash Commands","upgrade room confirmation",r,{roomId:e,targetVersion:t},null,!1,!0);return Na(i.then(async([r])=>{if(!r.continue)return;let i;try{const a=n.upgradeRoom(e,t);r.invite&&(i=async e=>{const{replacement_room:t}=await a;if(e.roomId!==t)return;const r=[...o.getMembersWithMembership("join"),...o.getMembersWithMembership("invite")].map(e=>e.userId).filter(e=>e!==n.getUserId());r.length>0&&await Object(nn.b)(t,r),n.removeListener("Room",i)},n.on("Room",i)),await a}catch(e){console.error(e),i&&n.removeListener("Room",i);const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Slash Commands","room upgrade error",t,{title:Object(c.a)("Error upgrading room"),description:Object(c.a)("Double check that your server supports the room version chosen and try again.")})}}))}return Da(this.getUsage())},category:Aa.admin}),new Ia({command:"nick",args:"<display_name>",description:Object(c.b)("Changes your display nickname"),runFn:function(e,t){return t?Na(X.a.get().setDisplayName(t)):Da(this.getUsage())},category:Aa.actions}),new Ia({command:"myroomnick",aliases:["roomnick"],args:"<display_name>",description:Object(c.b)("Changes your display nickname in the current room only"),runFn:function(e,t){if(t){const n=X.a.get(),o=n.getRoom(e).currentState.getStateEvents("m.room.member",n.getUserId()),r=ka(ka({},o?o.getContent():{membership:"join"}),{},{displayname:t});return Na(n.sendStateEvent(e,"m.room.member",r,n.getUserId()))}return Da(this.getUsage())},category:Aa.actions}),new Ia({command:"roomavatar",args:"[<mxc_url>]",description:Object(c.b)("Changes the avatar of the current room"),runFn:function(e,t){let n=Promise.resolve(t);return t||(n=Ra()),Na(n.then(t=>{if(t)return X.a.get().sendStateEvent(e,"m.room.avatar",{url:t},"")}))},category:Aa.actions}),new Ia({command:"myroomavatar",args:"[<mxc_url>]",description:Object(c.b)("Changes your avatar in this current room only"),runFn:function(e,t){const n=X.a.get(),o=n.getRoom(e),r=n.getUserId();let i=Promise.resolve(t);return t||(i=Ra()),Na(i.then(t=>{if(!t)return;const i=o.currentState.getStateEvents("m.room.member",r),a=ka(ka({},i?i.getContent():{membership:"join"}),{},{avatar_url:t});return n.sendStateEvent(e,"m.room.member",a,r)}))},category:Aa.actions}),new Ia({command:"myavatar",args:"[<mxc_url>]",description:Object(c.b)("Changes your avatar in all rooms"),runFn:function(e,t){let n=Promise.resolve(t);return t||(n=Ra()),Na(n.then(e=>{if(e)return X.a.get().setAvatarUrl(e)}))},category:Aa.actions}),new Ia({command:"topic",args:"[<topic>]",description:Object(c.b)("Gets or sets the room topic"),runFn:function(e,t){const n=X.a.get();if(t)return Na(n.setRoomTopic(e,t));const o=n.getRoom(e);if(!o)return Da(Object(c.a)("Failed to set topic"));const i=o.currentState.getStateEvents("m.room.topic",""),a=i&&i.getContent().topic,s=a?Object(ga.e)(a):Object(c.a)("This room has no topic."),l=u.getComponent("dialogs.InfoDialog");return Ie.a.createTrackedDialog("Slash Commands","Topic",l,{title:o.name,description:r.createElement("div",{dangerouslySetInnerHTML:{__html:s}}),hasCloseButton:!0}),Na()},category:Aa.admin}),new Ia({command:"roomname",args:"<name>",description:Object(c.b)("Sets the room name"),runFn:function(e,t){return t?Na(X.a.get().setRoomName(e,t)):Da(this.getUsage())},category:Aa.admin}),new Ia({command:"invite",args:"<user-id>",description:Object(c.b)("Invites user with given id to current room"),runFn:function(e,t){if(t){const n=t.match(/^(\S+)$/);if(n){const t=n[1];let o=Promise.resolve();if("email"===Object(va.c)(t)&&!X.a.get().getIdentityServerUrl()){const e=Object(Ea.c)();if(!e)return Da(Object(c.a)("Use an identity server to invite by email. Manage in Settings."));{const{finished:t}=Ie.a.createTrackedDialog("Slash Commands","Identity server",vt.a,{title:Object(c.a)("Use an identity server"),description:r.createElement("p",null,Object(c.a)("Use an identity server to invite by email. Click continue to use the default identity server (%(defaultIdentityServerName)s) or manage in Settings.",{defaultIdentityServerName:Object(ze.a)(e)})),button:Object(c.a)("Continue")});o=t.then(([e])=>{if(!e)throw new Error(Object(c.a)("Use an identity server to invite by email. Manage in Settings."));Object(Ea.d)()})}}const i=new Di.a(e);return Na(o.then(()=>i.invite([t])).then(()=>{if("invited"!==i.getCompletionState(t))throw new Error(i.getErrorText(t))}))}}return Da(this.getUsage())},category:Aa.actions}),new Ia({command:"join",aliases:["j","goto"],args:"<room-address>",description:Object(c.b)("Joins room with given address"),runFn:function(e,t){if(t){const e=t.split(" ");if(e.length<1)return Da(this.getUsage());let n=!1;if(e[0].startsWith("http:")||e[0].startsWith("https:")){const t=new URL(e[0]),o=t.host||t.hostname;Object(ya.c)(o)&&(n=!0)}if("#"===e[0][0]){let t=e[0];return t.includes(":")||(t+=":"+X.a.get().getDomain()),d.a.dispatch({action:"view_room",room_alias:t,auto_join:!0,_type:"slash_command"}),Na()}if("!"===e[0][0]){const[t,...n]=e;return d.a.dispatch({action:"view_room",room_id:t,opts:{viaServers:n},via_servers:n,auto_join:!0,_type:"slash_command"}),Na()}if(n){const t=Object(ya.h)(e[0]);if(!t)return Da(this.getUsage());if(!t.roomIdOrAlias)return Da(this.getUsage());const n=t.roomIdOrAlias,o=t.viaServers,r=t.eventId,i={action:"view_room",auto_join:!0,_type:"slash_command"};return"!"===n[0]?i.room_id=n:i.room_alias=n,r&&(i.event_id=r,i.highlighted=!0),o&&(i.opts={viaServers:o},i.via_servers=o),d.a.dispatch(i),Na()}}return Da(this.getUsage())},category:Aa.actions}),new Ia({command:"part",args:"[<room-address>]",description:Object(c.b)("Leave room"),runFn:function(e,t){const n=X.a.get();let o;if(t){const e=t.match(/^(\S+)$/);if(e){let t=e[1];if("#"!==t[0])return Da(this.getUsage());t.includes(":")||(t+=":"+n.getDomain());const r=n.getRooms();for(let e=0;e<r.length;e++){const n=r[e].currentState.getStateEvents("m.room.aliases");for(let i=0;i<n.length;i++){const a=n[i].getContent().aliases||[];for(let n=0;n<a.length;n++)if(a[n]===t){o=r[e].roomId;break}if(o)break}if(o)break}if(!o)return Da(Object(c.a)("Unrecognised room address:")+" "+t)}}return o||(o=e),Na(Object(Ca.d)(o))},category:Aa.actions}),new Ia({command:"kick",args:"<user-id> [reason]",description:Object(c.b)("Kicks user with given id"),runFn:function(e,t){if(t){const n=t.match(/^(\S+?)( +(.*))?$/);if(n)return Na(X.a.get().kick(e,n[1],n[3]))}return Da(this.getUsage())},category:Aa.admin}),new Ia({command:"ban",args:"<user-id> [reason]",description:Object(c.b)("Bans user with given id"),runFn:function(e,t){if(t){const n=t.match(/^(\S+?)( +(.*))?$/);if(n)return Na(X.a.get().ban(e,n[1],n[3]))}return Da(this.getUsage())},category:Aa.admin}),new Ia({command:"unban",args:"<user-id>",description:Object(c.b)("Unbans user with given ID"),runFn:function(e,t){if(t){const n=t.match(/^(\S+)$/);if(n)return Na(X.a.get().unban(e,n[1]))}return Da(this.getUsage())},category:Aa.admin}),new Ia({command:"ignore",args:"<user-id>",description:Object(c.b)("Ignores a user, hiding their messages from you"),runFn:function(e,t){if(t){const e=X.a.get(),n=t.match(/^(@[^:]+:\S+)$/);if(n){const t=n[1],o=e.getIgnoredUsers();return o.push(t),Na(e.setIgnoredUsers(o).then(()=>{const e=u.getComponent("dialogs.InfoDialog");Ie.a.createTrackedDialog("Slash Commands","User ignored",e,{title:Object(c.a)("Ignored user"),description:r.createElement("div",null,r.createElement("p",null,Object(c.a)("You are now ignoring %(userId)s",{userId:t})))})}))}}return Da(this.getUsage())},category:Aa.actions}),new Ia({command:"unignore",args:"<user-id>",description:Object(c.b)("Stops ignoring a user, showing their messages going forward"),runFn:function(e,t){if(t){const e=X.a.get(),n=t.match(/(^@[^:]+:\S+$)/);if(n){const t=n[1],o=e.getIgnoredUsers(),i=o.indexOf(t);return-1!==i&&o.splice(i,1),Na(e.setIgnoredUsers(o).then(()=>{const e=u.getComponent("dialogs.InfoDialog");Ie.a.createTrackedDialog("Slash Commands","User unignored",e,{title:Object(c.a)("Unignored user"),description:r.createElement("div",null,r.createElement("p",null,Object(c.a)("You are no longer ignoring %(userId)s",{userId:t})))})}))}}return Da(this.getUsage())},category:Aa.actions}),new Ia({command:"op",args:"<user-id> [<power-level>]",description:Object(c.b)("Define the power level of a user"),runFn:function(e,t){if(t){const n=t.match(/^(\S+?)( +(-?\d+))?$/);let o=50;if(n){const t=n[1];if(4===n.length&&void 0!==n[3]&&(o=parseInt(n[3],10)),!isNaN(o)){const n=X.a.get(),r=n.getRoom(e);if(!r)return Da(Object(c.a)("Command failed"));const i=r.getMember(t);if(!i||Object(Ca.b)(i.membership)===Ca.a.Leave)return Da(Object(c.a)("Could not find user in room"));const a=r.currentState.getStateEvents("m.room.power_levels","");return Na(n.setPowerLevel(e,t,o,a))}}}return Da(this.getUsage())},category:Aa.admin}),new Ia({command:"deop",args:"<user-id>",description:Object(c.b)("Deops user with given id"),runFn:function(e,t){if(t){if(t.match(/^(\S+)$/)){const n=X.a.get(),o=n.getRoom(e);if(!o)return Da(Object(c.a)("Command failed"));const r=o.currentState.getStateEvents("m.room.power_levels","");return r.getContent().users[t]?Na(n.setPowerLevel(e,t,void 0,r)):Da(Object(c.a)("Could not find user in room"))}}return Da(this.getUsage())},category:Aa.admin}),new Ia({command:"devtools",description:Object(c.b)("Opens the Developer Tools dialog"),runFn:function(e){const t=u.getComponent("dialogs.DevtoolsDialog");return Ie.a.createDialog(t,{roomId:e}),Na()},category:Aa.advanced}),new Ia({command:"addwidget",args:"<url | embed code | Jitsi url>",description:Object(c.b)("Adds a custom widget by URL to the room"),isEnabled:()=>P.a.getValue($e.a.Widgets),runFn:function(e,t){if(!t)return Da(Object(c.a)("Please supply a widget URL or embed code"));if(t.toLowerCase().startsWith("<iframe ")){const e=Object(wa.parseFragment)(t);if(e&&e.childNodes&&1===e.childNodes.length){const n=e.childNodes[0];if("iframe"===n.tagName.toLowerCase()&&n.attrs){const e=n.attrs.find(e=>"src"===e.name);console.log("Pulling URL out of iframe (embed code)"),t=e.value}}}if(!t.startsWith("https://")&&!t.startsWith("http://"))return Da(Object(c.a)("Please supply a https:// or http:// widget URL"));if(Sn.a.canUserModifyWidgets(e)){const n=X.a.get().getUserId(),o=(new Date).getTime(),r=encodeURIComponent(`${e}_${n}_${o}`);let i=Sa.a.CUSTOM,a="Custom Widget",s={};const c=Ta.a.getInstance().parsePreferredConferenceUrl(t);return c&&(console.log("Making /addwidget widget a Jitsi conference"),i=Sa.a.JITSI,a="Jitsi Conference",s=c,t=Sn.a.getLocalJitsiWrapperUrl()),Na(Sn.a.setRoomWidget(e,r,i,t,a,s))}return Da(Object(c.a)("You cannot modify widgets in this room."))},category:Aa.admin}),new Ia({command:"verify",args:"<user-id> <device-id> <device-signing-key>",description:Object(c.b)("Verifies a user, session, and pubkey tuple"),runFn:function(e,t){if(t){const e=t.match(/^(\S+) +(\S+) +(\S+)$/);if(e){const t=X.a.get(),n=e[1],o=e[2],i=e[3];return Na((async()=>{const e=t.getStoredDevice(n,o);if(!e)throw new Error(Object(c.a)("Unknown (user, session) pair:")+` (${n}, ${o})`);if((await t.checkDeviceTrust(n,o)).isVerified())throw e.getFingerprint()===i?new Error(Object(c.a)("Session already verified!")):new Error(Object(c.a)("WARNING: Session already verified, but keys do NOT MATCH!"));if(e.getFingerprint()!==i){const t=e.getFingerprint();throw new Error(Object(c.a)('WARNING: KEY VERIFICATION FAILED! The signing key for %(userId)s and session %(deviceId)s is "%(fprint)s" which does not match the provided key "%(fingerprint)s". This could mean your communications are being intercepted!',{fprint:t,userId:n,deviceId:o,fingerprint:i}))}await t.setDeviceVerified(n,o,!0);const a=u.getComponent("dialogs.InfoDialog");Ie.a.createTrackedDialog("Slash Commands","Verified key",a,{title:Object(c.a)("Verified key"),description:r.createElement("div",null,r.createElement("p",null,Object(c.a)("The signing key you provided matches the signing key you received from %(userId)s's session %(deviceId)s. Session marked as verified.",{userId:n,deviceId:o})))})})())}}return Da(this.getUsage())},category:Aa.advanced}),new Ia({command:"discardsession",description:Object(c.b)("Forces the current outbound group session in an encrypted room to be discarded"),runFn:function(e){try{X.a.get().forceDiscardSession(e)}catch(e){return Da(e.message)}return Na()},category:Aa.advanced}),new Ia({command:"rainbow",description:Object(c.b)("Sends the given message coloured as a rainbow"),args:"<message>",runFn:function(e,t){return t?Na(X.a.get().sendHtmlMessage(e,t,fa(t))):Da(this.getUserId())},category:Aa.messages}),new Ia({command:"rainbowme",description:Object(c.b)("Sends the given emote coloured as a rainbow"),args:"<message>",runFn:function(e,t){return t?Na(X.a.get().sendHtmlEmote(e,t,fa(t))):Da(this.getUserId())},category:Aa.messages}),new Ia({command:"help",description:Object(c.b)("Displays list of commands with usages and descriptions"),runFn:function(){const e=u.getComponent("dialogs.SlashCommandHelpDialog");return Ie.a.createTrackedDialog("Slash Commands","Help",e),Na()},category:Aa.advanced}),new Ia({command:"whois",description:Object(c.b)("Displays information about a user"),args:"<user-id>",runFn:function(e,t){if(!t||!t.startsWith("@")||!t.includes(":"))return Da(this.getUsage());const n=X.a.get().getRoom(e).getMember(t);return d.a.dispatch({action:h.a.ViewUser,member:n||{userId:t}}),Na()},category:Aa.advanced}),new Ia({command:"rageshake",aliases:["bugreport"],description:Object(c.b)("Send a bug report with logs"),isEnabled:()=>!!l.a.get().bug_report_endpoint_url,args:"<description>",runFn:function(e,t){return Na(Ie.a.createTrackedDialog("Slash Commands","Bug Report Dialog",Jt,{initialText:t}).finished)},category:Aa.advanced}),new Ia({command:"query",description:Object(c.b)("Opens chat with the given user"),args:"<user-id>",runFn:function(e,t){const n=t&&/^\+?[0123456789]+$/.test(t);return t&&(t.startsWith("@")&&t.includes(":")||n)?Na((async()=>{if(n){const e=await X.a.get().getThirdpartyUser("im.vector.protocol.pstn",{"m.id.phone":t});if(!e||0===e.length||!e[0].userid)throw new Error("Unable to find Matrix ID for phone number");t=e[0].userid}const e=await Object(_t.c)(X.a.get(),t);d.a.dispatch({action:"view_room",room_id:e})})()):Da(this.getUsage())},category:Aa.actions}),new Ia({command:"msg",description:Object(c.b)("Sends a message to the given user"),args:"<user-id> <message>",runFn:function(e,t){if(t){const e=t.match(/^([\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uFEFE\uFF00-\uFFFF]+?)(?: +([\s\S]*))?$/);if(e){const[t,n]=e.slice(1);if(n&&t&&t.startsWith("@")&&t.includes(":"))return Na((async()=>{const e=X.a.get(),o=await Object(_t.c)(e,t);d.a.dispatch({action:"view_room",room_id:o}),e.sendTextMessage(o,n)})())}}return Da(this.getUsage())},category:Aa.actions}),new Ia({command:"holdcall",description:Object(c.b)("Places the call in the current room on hold"),category:Aa.other,runFn:function(e,t){const n=pe.b.sharedInstance().getCallForRoom(e);return n?(n.setRemoteOnHold(!0),Na()):Da("No active call in this room")}}),new Ia({command:"unholdcall",description:Object(c.b)("Takes the call in the current room off hold"),category:Aa.other,runFn:function(e,t){const n=pe.b.sharedInstance().getCallForRoom(e);return n?(n.setRemoteOnHold(!1),Na()):Da("No active call in this room")}}),new Ia({command:"me",args:"<message>",description:Object(c.b)("Displays action"),category:Aa.messages,hideCompletionAfterSpace:!0}),...xa.CHAT_EFFECTS.map(e=>new Ia({command:e.command,description:e.description(),args:"<message>",runFn:function(t,n){return Na((async()=>{if(n){const o={msgtype:e.msgType,body:n};X.a.get().sendMessage(t,o)}else n=e.fallbackMessage(),X.a.get().sendEmoteMessage(t,n);d.a.dispatch({action:"effects."+e.command})})())},category:Aa.effects}))],Ma=new Map;function Pa(e){if("/"!==(e=e.replace(/\s+$/,""))[0])return{};const t=e.match(/^(\S+?)(?: +((.|\n)*))?$/);let n,o;return t?(n=t[1].substring(1).toLowerCase(),o=t[2]):n=e,{cmd:n,args:o}}function La(e,t){const{cmd:n,args:o}=Pa(t);if(Ma.has(n)&&Ma.get(n).isEnabled())return()=>Ma.get(n).run(e,o,n)}Fa.forEach(e=>{Ma.set(e.command,e),e.aliases.forEach(t=>{Ma.set(t,e)})});const Ua=/(^\/\w*)(?: .*)?/g;const Ba=/\B\+\S*/g;const ja=/\/ddg\s+(.+)$/g;class Ga extends la{constructor(){super(ja)}static getQueryUri(e){return"https://api.duckduckgo.com/?q="+encodeURIComponent(e)+"&format=json&no_redirect=1&no_html=1&t="+encodeURIComponent("vector")}async getCompletions(e,t,n=!1){const{command:o,range:r}=this.getCurrentCommand(e,t);if(!e||!o)return[];const a=await fetch(Ga.getQueryUri(o[1]),{method:"GET"}),s=await a.json(),c=s.Results.map(e=>({completion:e.Text,component:i.a.createElement(pa,{title:e.Text,description:e.Result}),range:r}));return s.Answer&&c.unshift({completion:s.Answer,component:i.a.createElement(pa,{title:s.Answer,description:s.AnswerType}),range:r}),s.RelatedTopics&&s.RelatedTopics.length>0&&c.unshift({completion:s.RelatedTopics[0].Text,component:i.a.createElement(pa,{title:s.RelatedTopics[0].Text}),range:r}),s.AbstractText&&c.unshift({completion:s.AbstractText,component:i.a.createElement(pa,{title:s.AbstractText}),range:r}),c}getName(){return"🔍 "+Object(c.a)("Results from DuckDuckGo")}renderCompletions(e){return i.a.createElement("div",{className:"mx_Autocomplete_Completion_container_block",role:"listbox","aria-label":Object(c.a)("DuckDuckGo Results")},e)}}const qa=/\B#\S*/g;function Ha(e,t,n=""){return{room:e,matchName:n,displayedAlias:t}}const Va=/\B@\S*/g,za=/[^/,:; \t\n]\S*/g;var Ka=n(784),Wa=n.n(Ka);const Ya=new RegExp("("+Wa.a.source+"|(?:^|\\s):[+-\\w]*:?)$","g"),$a=Er.b.sort((e,t)=>e.group===t.group?e.order-t.order:e.group-t.group).map((e,t)=>({emoji:e,shortname:`:${e.shortcodes[0]}:`,_orderBy:t}));function Qa(e,t){const n=t.indexOf(e);return-1===n?1/0:n}const Xa=/@\S*/g;const Ja=[class extends la{constructor(e){super(Va,za),R()(this,"matcher",void 0),R()(this,"users",void 0),R()(this,"room",void 0),R()(this,"onRoomTimeline",(e,t,n,o,r)=>{t&&(o||t.roomId===this.room.roomId&&r.timeline.getTimelineSet()===t.getUnfilteredTimelineSet()&&!n&&r&&r.liveEvent&&this.onUserSpoke(e.sender))}),R()(this,"onRoomStateMember",(e,t,n)=>{n.roomId===this.room.roomId&&(this.users=null)}),this.room=e,this.matcher=new ha([],{keys:["name"],funcs:[e=>e.userId.slice(1)],shouldMatchPrefix:!0,shouldMatchWordsOnly:!1}),X.a.get().on("Room.timeline",this.onRoomTimeline),X.a.get().on("RoomState.members",this.onRoomStateMember)}destroy(){X.a.get()&&(X.a.get().removeListener("Room.timeline",this.onRoomTimeline),X.a.get().removeListener("RoomState.members",this.onRoomStateMember))}async getCompletions(e,t,n=!1){const o=u.getComponent("views.avatars.MemberAvatar");this.users||this._makeUsers();let r=[];const{command:a,range:s}=this.getCurrentCommand(e,t,n);if(!a)return r;const c=a[0];if(c&&"@"!==c){const e=c.startsWith("@")?c.substring(1):c;r=this.matcher.match(e).map(e=>{const n=e.name||e.userId||"";return{completion:e.rawDisplayName,completionId:e.userId,type:"user",suffix:t.beginning&&0===s.start?": ":" ",href:Object(ya.g)(e.userId),component:i.a.createElement(ma,{title:n,description:e.userId},i.a.createElement(o,{member:e,width:24,height:24})),range:s}})}return r}getName(){return Object(c.a)("Users")}_makeUsers(){const e=this.room.getLiveTimeline().getEvents(),t={};for(const n of e)t[n.getSender()]=n.getTs();const n=X.a.get().credentials.userId;this.users=this.room.getJoinedMembers().filter(({userId:e})=>e!==n),this.users=Object(_r.sortBy)(this.users,e=>1e20-t[e.userId]||1e20),this.matcher.setObjects(this.users)}onUserSpoke(e){this.users&&e&&e.userId!==X.a.get().credentials.userId&&(this.users.splice(this.users.findIndex(t=>t.userId===e.userId),1),this.users=[e,...this.users],this.matcher.setObjects(this.users))}renderCompletions(e){return i.a.createElement("div",{className:"mx_Autocomplete_Completion_container_pill",role:"listbox","aria-label":Object(c.a)("User Autocomplete")},e)}shouldForceComplete(){return!0}},class extends la{constructor(){super(qa),R()(this,"matcher",void 0),this.matcher=new ha([],{keys:["displayedAlias","matchName"]})}async getCompletions(e,t,n=!1){const o=u.getComponent("views.avatars.RoomAvatar"),r=X.a.get();let a=[];const{command:s,range:c}=this.getCurrentCommand(e,t,n);if(s){let e=r.getVisibleRooms().reduce((e,t)=>{if(t.getCanonicalAlias()&&(e=e.concat(Ha(t,t.getCanonicalAlias(),t.name))),t.getAltAliases().length){const n=t.getAltAliases().map(e=>Ha(t,e));e=e.concat(n)}return e},[]);e=e.filter(t=>{const n=t.room.currentState.getStateEvents("m.room.tombstone","");if(n&&n.getContent()&&n.getContent().replacement_room){return!e.some(e=>e.room.roomId===n.getContent().replacement_room)}return!0}),this.matcher.setObjects(e);const t=s[0];a=this.matcher.match(t),a=Object(_r.sortBy)(a,[e=>function(e,t){const n=t.indexOf(e);return-1===n?1/0:n}(t,e.displayedAlias),e=>e.displayedAlias.length]),a=Object(_r.uniqBy)(a,e=>e.room),a=a.map(e=>({completion:e.displayedAlias,completionId:e.room.roomId,type:"room",suffix:" ",href:Object(ya.f)(e.displayedAlias),component:i.a.createElement(ma,{title:e.room.name,description:e.displayedAlias},i.a.createElement(o,{width:24,height:24,room:e.room})),range:c})).filter(e=>!!e.completion&&e.completion.length>0).slice(0,4)}return a}getName(){return Object(c.a)("Rooms")}renderCompletions(e){return i.a.createElement("div",{className:"mx_Autocomplete_Completion_container_pill mx_Autocomplete_Completion_container_truncate",role:"listbox","aria-label":Object(c.a)("Room Autocomplete")},e)}},class extends la{constructor(){super(Ya),R()(this,"matcher",void 0),R()(this,"nameMatcher",void 0),this.matcher=new ha($a,{keys:["emoji.emoticon","shortname"],funcs:[e=>e.emoji.shortcodes.length>1?e.emoji.shortcodes.slice(1).map(e=>`:${e}:`).join(" "):""],shouldMatchWordsOnly:!1}),this.nameMatcher=new ha($a,{keys:["emoji.annotation"],shouldMatchWordsOnly:!0})}async getCompletions(e,t,n){if(!P.a.getValue("MessageComposerInput.suggestEmoji"))return[];let o=[];const{command:r,range:a}=this.getCurrentCommand(e,t);if(r){const e=r[0];o=this.matcher.match(e),o=o.concat(this.nameMatcher.match(e));const t=[];t.push(t=>Qa(e,t.emoji.emoticon||"")),t.push(t=>Qa(e,t.shortname)),t.push(t=>Math.min(...t.emoji.shortcodes.map(t=>Qa(e.substring(1),t)))),e.length>1&&t.push(e=>e.shortname.length),t.push(e=>e._orderBy),o=Object(_r.sortBy)(Object(_r.uniq)(o),t),o=o.map(({shortname:e})=>{const t=Object(ga.i)(e);return{completion:t,component:i.a.createElement(ma,{title:e,"aria-label":t},i.a.createElement("span",null,t)),range:a}}).slice(0,20)}return o}getName(){return"😃 "+Object(c.a)("Emoji")}renderCompletions(e){return i.a.createElement("div",{className:"mx_Autocomplete_Completion_container_pill",role:"listbox","aria-label":Object(c.a)("Emoji Autocomplete")},e)}},class extends la{constructor(e){super(Xa),R()(this,"room",void 0),this.room=e}async getCompletions(e,t,n=!1){const o=u.getComponent("views.avatars.RoomAvatar"),r=X.a.get();if(!this.room.currentState.mayTriggerNotifOfType("room",r.credentials.userId))return[];const{command:a,range:s}=this.getCurrentCommand(e,t,n);return a&&a[0]&&"@room".startsWith(a[0])&&a[0].length>1?[{completion:"@room",completionId:"@room",type:"at-room",suffix:" ",component:i.a.createElement(ma,{title:"@room",description:Object(c.a)("Notify the whole room")},i.a.createElement(o,{width:24,height:24,room:this.room})),range:s}]:[]}getName(){return"❗️ "+Object(c.a)("Room Notification")}renderCompletions(e){return i.a.createElement("div",{className:"mx_Autocomplete_Completion_container_pill mx_Autocomplete_Completion_container_truncate",role:"listbox","aria-label":Object(c.a)("Notification Autocomplete")},e)}},class extends la{constructor(){super(Ua),R()(this,"matcher",void 0),this.matcher=new ha(Fa,{keys:["command","args","description"],funcs:[({aliases:e})=>e.join(" ")]})}async getCompletions(e,t,n){const{command:o,range:r}=this.getCurrentCommand(e,t);if(!o)return[];let a=[];if(o[0]!==o[1]){const e=o[1].substr(1);if(Ma.has(e)&&Ma.get(e).isEnabled()){if(Ma.get(e).hideCompletionAfterSpace)return[];a=[Ma.get(e)]}}else a="/"===e?Fa:this.matcher.match(o[1]);return a.filter(e=>e.isEnabled()).map(e=>{let t=e.getCommand()+" ";const n=e.aliases.find(e=>"/"+e===o[1]);return(n||e.getCommand()===o[1])&&(t=o[0]),{completion:t,type:"command",component:i.a.createElement(pa,{title:"/"+(n||e.command),subtitle:e.args,description:Object(c.a)(e.description)}),range:r}})}getName(){return"*️⃣ "+Object(c.a)("Commands")}renderCompletions(e){return i.a.createElement("div",{className:"mx_Autocomplete_Completion_container_block",role:"listbox","aria-label":Object(c.a)("Command Autocomplete")},e)}},class extends la{constructor(){super(Ba),R()(this,"matcher",void 0),this.matcher=new ha([],{keys:["groupId","name","shortDescription"]})}async getCompletions(e,t,n=!1){const o=u.getComponent("views.avatars.BaseAvatar");if(/^(\/join|\/leave)/.test(e))return[];const r=X.a.get();let a=[];const{command:s,range:c}=this.getCurrentCommand(e,t,n);if(s){const e=r.getGroups().filter(({myMembership:e})=>"join"===e),t=await Promise.all(e.map(async({groupId:e})=>{try{return an.a.getGroupProfileCached(r,e)}catch(t){return Promise.resolve({name:"",groupId:e,avatarUrl:"",shortDescription:""})}}));this.matcher.setObjects(t);const n=s[0];a=this.matcher.match(n),a=Object(_r.sortBy)(a,[e=>function(e,t){const n=t.indexOf(e);return-1===n?1/0:n}(n,e.groupId),e=>e.groupId.length]).map(({avatarUrl:e,groupId:t,name:n})=>({completion:t,suffix:" ",type:"community",href:Object(ya.e)(t),component:i.a.createElement(ma,{title:n,description:t},i.a.createElement(o,{name:n||t,width:24,height:24,url:e?r.mxcUrlToHttp(e,24,24):null})),range:c})).slice(0,4)}return a}getName(){return"💬 "+Object(c.a)("Communities")}renderCompletions(e){return i.a.createElement("div",{className:"mx_Autocomplete_Completion_container_pill mx_Autocomplete_Completion_container_truncate",role:"listbox","aria-label":Object(c.a)("Community Autocomplete")},e)}},Ga];class Za{constructor(e){R()(this,"room",void 0),R()(this,"providers",void 0),this.room=e,this.providers=Ja.map(t=>new t(e))}destroy(){this.providers.forEach(e=>{e.destroy()})}async getCompletions(e,t,n=!1){return(await Promise.all(this.providers.map(o=>Object(ft.e)(o.getCompletions(e,t,n),null,3e3)))).map((o,r)=>{if(o&&o.length)return{completions:o,provider:this.providers[r],command:this.providers[r].getCurrentCommand(e,t,n)}}).filter(Boolean)}}const es=e=>"mx_Autocomplete_Completion_"+e;class ts extends i.a.PureComponent{constructor(e){super(e),R()(this,"autocompleter",void 0),R()(this,"queryRequested",void 0),R()(this,"debounceCompletionsRequest",void 0),R()(this,"containerRef",Object(r.createRef)()),R()(this,"hide",()=>{this.setState({hide:!0,selectionOffset:0,completions:[],completionList:[]})}),R()(this,"onCompletionClicked",e=>0!==this.countCompletions()&&0!==e&&(this.props.onConfirm(this.state.completionList[e-1]),this.hide(),!0)),this.autocompleter=new Za(e.room),this.state={completions:[],completionList:[],selectionOffset:0,shouldShowCompletions:!0,hide:!1,forceComplete:!1}}componentDidMount(){this.applyNewProps()}applyNewProps(e,t){t&&this.props.room.roomId!==t.roomId&&(this.autocompleter.destroy(),this.autocompleter=new Za(this.props.room)),e!==this.props.query&&this.complete(this.props.query,this.props.selection)}componentWillUnmount(){this.autocompleter.destroy()}complete(e,t){if(this.queryRequested=e,this.debounceCompletionsRequest&&clearTimeout(this.debounceCompletionsRequest),""===e)return this.setState({completions:[],completionList:[],selectionOffset:0,hide:!0}),Promise.resolve(null);let n=P.a.getValue("autocompleteDelay");return(this.state.completions.length>0||this.state.forceComplete)&&(n=0),new Promise(o=>{this.debounceCompletionsRequest=setTimeout(()=>{o(this.processQuery(e,t))},n)})}processQuery(e,t){return this.autocompleter.getCompletions(e,t,this.state.forceComplete).then(t=>{e===this.queryRequested&&this.processCompletions(t)})}processCompletions(e){const t=Object(_r.flatMap)(e,e=>e.completions);let n=0;if(t.length>0){const e=0===this.state.selectionOffset?null:this.state.completionList[this.state.selectionOffset-1].completion;n=t.findIndex(t=>t.completion===e),-1===n?n=0:n++}let o=this.state.hide;o=!e.some(e=>!!e.command.command),this.setState({completions:e,completionList:t,selectionOffset:n,hide:o,forceComplete:!1})}hasSelection(){return this.countCompletions()>0&&0!==this.state.selectionOffset}countCompletions(){return this.state.completionList.length}moveSelection(e){const t=this.countCompletions();if(0===t)return;const n=(this.state.selectionOffset+e+t+1)%(t+1);this.setSelection(n)}onEscape(e){0!==this.countCompletions()&&(e.preventDefault(),this.hide())}forceComplete(){return new Promise(e=>{this.setState({forceComplete:!0,hide:!1},()=>{this.complete(this.props.query,this.props.selection).then(()=>{e(this.countCompletions())})})})}setSelection(e){this.setState({selectionOffset:e,hide:!1}),this.props.onSelectionChange&&this.props.onSelectionChange(this.state.completionList[e-1],e-1)}componentDidUpdate(e){this.applyNewProps(e.query,e.room);const t=this.refs["completion"+this.state.selectionOffset];t?t.scrollIntoView({behavior:"auto",block:"nearest"}):this.containerRef.current&&this.containerRef.current.scrollTo({top:0})}render(){let e=1;const t=this.state.completions.map((t,n)=>{const o=t.completions.map((t,n)=>{const o=e===this.state.selectionOffset,r=M()("mx_Autocomplete_Completion",{selected:o}),a=e;e++;return i.a.cloneElement(t.component,{key:n,ref:"completion"+a,id:es(a-1),className:r,onClick:()=>{this.onCompletionClicked(a)},"aria-selected":o})});return o.length>0?i.a.createElement("div",{key:n,className:"mx_Autocomplete_ProviderSection"},i.a.createElement("div",{className:"mx_Autocomplete_provider_name"},t.provider.getName()),t.provider.renderCompletions(o)):null}).filter(e=>!!e);return!this.state.hide&&t.length>0?i.a.createElement("div",{className:"mx_Autocomplete",ref:this.containerRef},t):null}}var ns=n(772);class os{constructor(){R()(this,"stack",[]),R()(this,"newlyTypedCharCount",0),R()(this,"currentIndex",-1),R()(this,"changedSinceLastPush",!1),R()(this,"lastCaret",null),R()(this,"nonWordBoundarySinceLastPush",!1),R()(this,"addedSinceLastPush",!1),R()(this,"removedSinceLastPush",!1)}clear(){this.stack=[],this.newlyTypedCharCount=0,this.currentIndex=-1,this.changedSinceLastPush=!1,this.lastCaret=null,this.nonWordBoundarySinceLastPush=!1,this.addedSinceLastPush=!1,this.removedSinceLastPush=!1}shouldPush(e,t){if(t&&("insertText"===e||"deleteContentForward"===e||"deleteContentBackward"===e)){if(t.added&&(this.addedSinceLastPush=!0),t.removed&&(this.removedSinceLastPush=!0),this.addedSinceLastPush!==this.removedSinceLastPush){const e=t.added?t.added:t.removed,n=" "===e||"\t"===e||"\n"===e;return!(!this.nonWordBoundarySinceLastPush||!n)||(n||(this.nonWordBoundarySinceLastPush=!0),this.newlyTypedCharCount+=e.length,this.newlyTypedCharCount>10)}return!0}return!0}pushState(e,t){for(;this.currentIndex<this.stack.length-1;)this.stack.pop();const n=e.serializeParts();this.stack.push({parts:n,caret:t}),this.currentIndex=this.stack.length-1,this.lastCaret=null,this.changedSinceLastPush=!1,this.newlyTypedCharCount=0,this.nonWordBoundarySinceLastPush=!1,this.addedSinceLastPush=!1,this.removedSinceLastPush=!1}tryPush(e,t,n,o){if("historyUndo"===n||"historyRedo"===n)return!1;const r=this.shouldPush(n,o);return r?this.pushState(e,t):(this.lastCaret=t,this.changedSinceLastPush=!0),r}ensureLastChangesPushed(e){this.changedSinceLastPush&&this.pushState(e,this.lastCaret)}canUndo(){return this.currentIndex>=1||this.changedSinceLastPush}canRedo(){return this.currentIndex<this.stack.length-1}undo(e){if(this.canUndo())return this.ensureLastChangesPushed(e),this.currentIndex-=1,this.stack[this.currentIndex]}redo(){if(this.canRedo())return this.changedSinceLastPush=!1,this.currentIndex+=1,this.stack[this.currentIndex]}}function rs(e,t){const n=!t||"newline"===t.type;return!e.canEdit&&(n||!t.canEdit)}function is(e,t){return!e.canEdit&&t}function as(e,t){const n=e.nextSibling;n?e.parentElement.insertBefore(t,n):e.parentElement.appendChild(t)}function ss(){const e=document.createElement("span");return e.className="caretNode",e.appendChild(document.createTextNode("\ufeff")),e}function cs(e){"\ufeff"!==e.textContent&&(e.textContent="\ufeff")}function ls(e){return e&&"SPAN"===e.tagName&&"caretNode"===e.className}function us(e){if(e)for(e=e.nextSibling;e;){const t=e;e=e.nextSibling,t.remove()}}function ds(e,t){const n=t.parts.reduce((e,t)=>{if("newline"===t.type)e.push([]);else{e[e.length-1].push(t)}return e},[[]]);n.forEach((t,n)=>{let o=e.childNodes[n];for(;o&&("DIV"!==o.tagName||o.className);)e.removeChild(o),o=e.childNodes[n];o||(o=document.createElement("div"),e.appendChild(o)),t.length?function(e,t){let n,o;const r=t[t.length-1];for(const i of t){for(n=!o?e.firstChild:n.nextSibling,rs(i,o)&&(ls(n)?(cs(n),n=n.nextSibling):e.insertBefore(ss(),n));n&&!i.canUpdateDOMNode(n);){const t=n.nextSibling;e.removeChild(n),n=t}if(n&&i?i.updateDOMNode(n):i&&(n=i.toDOMNode(),e.appendChild(n)),is(i,i===r))if(ls(n.nextSibling))n=n.nextSibling,cs(n);else{const e=ss();as(n,e),n=e}o=i}us(n)}(o,t):function(e){let t=!1,n=e.firstChild;for(;n;){const e=n.nextSibling;t||"BR"!==n.tagName?n.remove():t=!0,n=e}t||e.appendChild(document.createElement("br"))}(o)}),n.length?us(e.children[n.length-1]):function(e){const t=e.firstChild;t&&(us(t),t.remove())}(e)}const hs=(e,t,n)=>""===n.text[t].trim();class ps{constructor(e,t,n=t){this.model=e,R()(this,"_start",void 0),R()(this,"_end",void 0);const o=t.compare(n)<0;this._start=o?t:n,this._end=o?n:t}moveStart(e){this._start=this._start.forwardsWhile(this.model,()=>(e-=1)>=0)}trim(){this._start=this._start.forwardsWhile(this.model,hs),this._end=this._end.backwardsWhile(this.model,hs)}expandBackwardsWhile(e){this._start=this._start.backwardsWhile(this.model,e)}get text(){let e="";return this._start.iteratePartsBetween(this._end,this.model,(t,n,o)=>{const r=t.text.substring(n,o);e+=r}),e}replace(e){const t=e.reduce((e,t)=>e+t.text.length,0);let n=0;return this._start.iteratePartsBetween(this._end,this.model,(e,t,o)=>{n+=o-t}),this.model.replaceRange(this._start,this._end,e),t-n}get parts(){const e=[];return this._start.iteratePartsBetween(this._end,this.model,(t,n,o)=>{const r=t.serialize();r.text=t.text.substring(n,o);const i=this.model.partCreator.deserializePart(r);e.push(i)}),e}get length(){let e=0;return this._start.iteratePartsBetween(this._end,this.model,(t,n,o)=>{e+=o-n}),e}get start(){return this._start}get end(){return this._end}}function ms(e,t,n){n instanceof ps?function(e,t,n){const o=document.getSelection();o.removeAllRanges();const r=document.createRange(),i=gs(e,t,n.start);r.setStart(i.node,i.offset);const a=gs(e,t,n.end);r.setEnd(a.node,a.offset),o.addRange(r)}(e,t,n):function(e,t,n){const o=document.createRange(),{node:r,offset:i}=gs(e,t,n);o.setStart(r,i),o.collapse(!0);const a=document.getSelection();if(1===a.rangeCount){const e=a.getRangeAt(0);if(e.startContainer===o.startContainer&&e.startOffset===o.startOffset&&e.collapsed===o.collapsed)return}a.removeAllRanges(),a.addRange(o)}(e,t,n)}function gs(e,t,n){const{offset:o,lineIndex:r,nodeIndex:i}=function(e,t){const{parts:n}=e,o=t.index,r=function(e,t){let n=0,o=-1,r=null;for(let i=0;i<=t;++i){const a=e[i];if("newline"===a.type)n+=1,o=-1,r=null;else{if(o+=1,rs(a,r)&&(o+=1),i<t){const t=e[i+1],n=!t||"newline"===t.type;is(a,n)&&(o+=1)}r=a}}return{lineIndex:n,nodeIndex:o}}(n,o),{lineIndex:i}=r;let{nodeIndex:a}=r,{offset:s}=t;-1===a?s=0:({nodeIndex:a,offset:s}=function(e,t,n,o){const r=e[t];if(r&&!r.canEdit)if(0===o){n-=1;const i=e[t-1];rs(r,i)||(o=i.text.length)}else n+=1,o=0;return{nodeIndex:n,offset:o}}(n,o,a,s));return{lineIndex:i,nodeIndex:a,offset:s}}(t,n),a=e.childNodes[r];let s;return-1===i?s=a:(s=a.childNodes[i],s.nodeType===Node.ELEMENT_NODE&&s.firstChild&&(s=s.firstChild)),{node:s,offset:o}}function fs(e,t){const{model:n}=e;n.transform(()=>{const o=e.length,r=e.replace(t),i=e.start.asOffset(n),a=i.add(o+r);return n.startRange(i.asPosition(n),a.asPosition(n))})}function _s(e,t){const{model:n}=e;n.transform(()=>{const o=e.length,r=e.replace(t);return e.start.asOffset(n).add(o+r).asPosition(n)})}function bs(e){const{model:t}=e,n=0!==e.start.offset,o=0===e.start.index,r=!o&&"newline"===t.parts[e.start.index-1].type;return!n&&(o||r)}function vs(e){const{model:t}=e,n=t.parts[e.end.index],o=e.end.offset!==n.text.length,r=e.end.index===t.parts.length-1,i=!r&&"newline"===t.parts[e.end.index+1].type;return!o&&(r||i)}const Es=e=>!e.text||!/\S/.test(e.text),ys=e=>"newline"===e.type;function Ss(e,t,n=t){const{model:o,parts:r}=e,{partCreator:i}=o,a=[];let s=0;for(let e=2;e<r.length;e++)Es(r[e-2])&&ys(r[e-1])&&!ys(r[e])&&!Es(r[e])&&(s=e),ys(r[e-1])&&ys(r[e])?(a.push([s,e-1]),s=e+1):ys(r[e-2])&&Es(r[e-1])&&ys(r[e])&&(a.push([s,e-2]),s=e+1);const c=r.map(Es).lastIndexOf(!1);s<=c&&a.push([s,c+1]);let l=0;a.forEach(([e,o])=>{const a=e+l,s=o+l;if(s-a>0&&r[a].text.startsWith(t)&&r[s-1].text.endsWith(n)){const e=r[a].serialize();e.text=e.text.substr(t.length),r[a]=i.deserializePart(e);const o=r[s-1].serialize(),c=o.text;o.text=c.substring(0,c.length-n.length),r[s-1]=i.deserializePart(o)}else r.splice(s,0,i.plain(n)),r.splice(a,0,i.plain(t)),l+=2}),fs(e,r)}class Ts{constructor(e,t){this.offset=e,this.atNodeEnd=t}asPosition(e){return e.positionForOffset(this.offset,this.atNodeEnd)}add(e,t=!1){return new Ts(this.offset+e,t)}}function ws(e,t,n){let o=e.firstChild;for(;o&&o!==e;){if(t(o)&&o.firstChild)o=o.firstChild;else if(o.nextSibling)o=o.nextSibling;else{for(;!o.nextSibling&&o!==e;)o=o.parentElement,o!==e&&n(o);o!==e&&(o=o.nextSibling)}}}function Cs(e,t){const{offset:n,text:o}=xs(e,t.focusNode,t.focusOffset);return{caret:n,text:o}}function xs(e,t,n){const{node:o,characterOffset:r}=function(e,t){for(;e&&e.nodeType===Node.ELEMENT_NODE;){const n=e.childNodes.length;if(!n)break;t>=n?t=(e=e.lastChild).nodeType===Node.TEXT_NODE?e.textContent.length:Number.MAX_SAFE_INTEGER:(e=e.childNodes[t],t=0)}return{node:e,characterOffset:t}}(t,n),{text:i,offsetToNode:a}=function(e,t){let n=0,o=!1,r="";function i(e){o||e===t&&(o=!0),"BR"===e.tagName&&e.nextSibling&&(o||(n+=1),r+="\n");const i=e.nodeType===Node.TEXT_NODE&&function(e){const t=e.nodeValue;return ls(e.parentElement)?1!==t.length?t.replace("\ufeff",""):"":t}(e);return i&&(o||(n+=i.length),r+=i),!0}function a(e){"DIV"===e.tagName&&e.nextSibling&&"DIV"===e.nextSibling.tagName&&(r+="\n",o||(n+=1))}return ws(e,i,a),{text:r,offsetToNode:n}}(e,o);return{offset:function(e,t,n){if(!e)return new Ts(0,!1);let o=n===e.textContent.length;if(e.nodeType===Node.TEXT_NODE&&ls(e.parentElement)){const t=e.nodeValue.indexOf("\ufeff");-1!==t&&t<n&&(n-=1),o=!0}return new Ts(t+n,o)}(o,a,r),text:i}}function Os(e,t,n){const o=xs(e,n.focusNode,n.focusOffset).offset,r=xs(e,n.anchorNode,n.anchorOffset).offset,i=o.asPosition(t),a=r.asPosition(t);return t.startRange(i,a)}class ks{constructor(e,t,n,o){this.updateCallback=e,this.getAutocompleterComponent=t,this.updateQuery=n,this.partCreator=o,R()(this,"queryPart",void 0),R()(this,"partIndex",void 0)}onEscape(e){this.getAutocompleterComponent().onEscape(e),this.updateCallback({replaceParts:[this.partCreator.plain(this.queryPart.text)],close:!0})}close(){this.updateCallback({close:!0})}hasSelection(){return this.getAutocompleterComponent().hasSelection()}hasCompletions(){const e=this.getAutocompleterComponent();return e&&e.countCompletions()>0}onEnter(){this.updateCallback({close:!0})}async onTab(e){const t=this.getAutocompleterComponent();0===t.countCompletions()?(await t.forceComplete(),await t.moveSelection(1)):await t.moveSelection(e.shiftKey?-1:1)}onUpArrow(e){this.getAutocompleterComponent().moveSelection(-1)}onDownArrow(e){this.getAutocompleterComponent().moveSelection(1)}onPartUpdate(e,t){return this.queryPart=e,this.partIndex=t.index,this.updateQuery(e.text)}onComponentSelectionChange(e){e?this.updateCallback({replaceParts:this.partForCompletion(e)}):this.updateCallback({replaceParts:[this.queryPart]})}onComponentConfirm(e){this.updateCallback({replaceParts:this.partForCompletion(e),close:!0})}partForCompletion(e){const{completionId:t}=e,n=e.completion;switch(e.type){case"room":return[this.partCreator.roomPill(n,t),this.partCreator.plain(e.suffix)];case"at-room":return[this.partCreator.atRoomPill(t),this.partCreator.plain(e.suffix)];case"user":return this.partCreator.createMentionParts(this.partIndex,n,t);case"command":return[this.partCreator.command(n)];default:return[this.partCreator.plain(n)]}}}var Rs;!function(e){e.Plain="plain",e.Newline="newline",e.Command="command",e.UserPill="user-pill",e.RoomPill="room-pill",e.AtRoomPill="at-room-pill",e.PillCandidate="pill-candidate"}(Rs||(Rs={}));class As{constructor(e=""){R()(this,"_text",void 0),this._text=e}acceptsInsertion(e,t,n){return!0}acceptsRemoval(e,t){return!0}merge(e){return!1}split(e){const t=this.text.substr(e);return this._text=this.text.substr(0,e),new Ds(t)}remove(e,t){const n=this.text.substr(0,e)+this.text.substr(e+t);for(let o=e;o<t+e;++o){const e=this.text.charAt(o);if(!this.acceptsRemoval(o,e))return n}this._text=n}appendUntilRejected(e,t){const n=this.text.length;for(let o=0;o<e.length;++o){const r=e.charAt(o);if(!this.acceptsInsertion(r,n+o,t))return this._text=this._text+e.substr(0,o),e.substr(o)}this._text=this._text+e}validateAndInsert(e,t,n){for(let o=0;o<t.length;++o){const r=t.charAt(o);if(!this.acceptsInsertion(r,e+o,n))return!1}const o=this._text.substr(0,e),r=this._text.substr(e);return this._text=o+t+r,!0}createAutoComplete(e){}trim(e){const t=this._text.substr(e);return this._text=this._text.substr(0,e),t}get text(){return this._text}get canEdit(){return!0}toString(){return`${this.type}(${this.text})`}serialize(){return{type:this.type,text:this.text}}}class Is extends As{acceptsInsertion(e,t,n){return"\n"!==e&&("insertFromPaste"===n||"insertFromDrop"===n||("@"!==e&&"#"!==e&&":"!==e&&"+"!==e||" "!==this._text[t-1]&&("+"!==this._text[t-1]||":"!==e)))}toDOMNode(){return document.createTextNode(this.text)}merge(e){return e.type===this.type&&(this._text=this.text+e.text,!0)}updateDOMNode(e){e.textContent!==this.text&&(e.textContent=this.text)}canUpdateDOMNode(e){return e.nodeType===Node.TEXT_NODE}}class Ds extends Is{get type(){return Rs.Plain}}class Ns extends As{constructor(e,t){super(t),this.resourceId=e}acceptsInsertion(e){return" "!==e}acceptsRemoval(e,t){return 0!==e}toDOMNode(){const e=document.createElement("span");return e.setAttribute("spellcheck","false"),e.className=this.className,e.appendChild(document.createTextNode(this.text)),this.setAvatar(e),e}updateDOMNode(e){const t=e.childNodes[0];t.textContent!==this.text&&(t.textContent=this.text),e.className!==this.className&&(e.className=this.className),this.setAvatar(e)}canUpdateDOMNode(e){return e.nodeType===Node.ELEMENT_NODE&&"SPAN"===e.nodeName&&1===e.childNodes.length&&e.childNodes[0].nodeType===Node.TEXT_NODE}_setAvatarVars(e,t,n){const o=`url('${t}')`,r=`'${n}'`;e.style.getPropertyValue("--avatar-background")!==o&&e.style.setProperty("--avatar-background",o),e.style.getPropertyValue("--avatar-letter")!==r&&e.style.setProperty("--avatar-letter",r)}get canEdit(){return!1}}class Fs extends As{acceptsInsertion(e,t){return 0===t&&"\n"===e}acceptsRemoval(e,t){return!0}toDOMNode(){return document.createElement("br")}merge(){return!1}updateDOMNode(){}canUpdateDOMNode(e){return"BR"===e.tagName}get type(){return Rs.Newline}get canEdit(){return!1}}class Ms extends Ns{constructor(e,t){super(e,e),this.room=t}setAvatar(e){let t="",n=lt.b(this.room,16*window.devicePixelRatio,16*window.devicePixelRatio,"crop");n||(t=lt.e(this.room?this.room.name:this.resourceId),n=lt.d(this.room?this.room.roomId:this.resourceId)),this._setAvatarVars(e,n,t)}get type(){return Rs.RoomPill}get className(){return"mx_RoomPill mx_Pill"}}class Ps extends Ms{get type(){return Rs.AtRoomPill}}class Ls extends Ns{constructor(e,t,n){super(e,t),this.member=n}setAvatar(e){if(!this.member)return;const t=this.member.name||this.member.userId,n=lt.d(this.member.userId),o=lt.a(this.member,16*window.devicePixelRatio,16*window.devicePixelRatio,"crop");let r="";o===n&&(r=lt.e(t)),this._setAvatarVars(e,o,r)}get type(){return Rs.UserPill}get className(){return"mx_UserPill mx_Pill"}serialize(){return{type:this.type,text:this.text,resourceId:this.resourceId}}}class Us extends Is{constructor(e,t){super(e),this.autoCompleteCreator=t}createAutoComplete(e){return this.autoCompleteCreator.create(e)}acceptsInsertion(e,t,n){return 0===t||super.acceptsInsertion(e,t,n)}merge(){return!1}acceptsRemoval(e,t){return!0}get type(){return Rs.PillCandidate}}class Bs{constructor(e,t,n=null){this.room=e,this.client=t,R()(this,"autoCompleteCreator",void 0),this.autoCompleteCreator={create:n&&n(this)}}setAutoCompleteCreator(e){this.autoCompleteCreator.create=e(this)}createPartForInput(e,t,n){switch(e[0]){case"#":case"@":case":":case"+":return this.pillCandidate("");case"\n":return new Fs;default:return new Ds}}createDefaultPart(e){return this.plain(e)}deserializePart(e){switch(e.type){case Rs.Plain:return this.plain(e.text);case Rs.Newline:return this.newline();case Rs.AtRoomPill:return this.atRoomPill(e.text);case Rs.PillCandidate:return this.pillCandidate(e.text);case Rs.RoomPill:return this.roomPill(e.text);case Rs.UserPill:return this.userPill(e.text,e.resourceId)}}plain(e){return new Ds(e)}newline(){return new Fs("\n")}pillCandidate(e){return new Us(e,this.autoCompleteCreator)}roomPill(e,t){let n;return n=t||"#"!==e[0]?this.client.getRoom(t||e):this.client.getRooms().find(t=>t.getCanonicalAlias()===e||t.getAltAliases().includes(e)),new Ms(e,n)}atRoomPill(e){return new Ps(e,this.room)}userPill(e,t){const n=this.room.getMember(t);return new Ls(t,e,n)}createMentionParts(e,t,n){return[this.userPill(t,n),this.plain(0===e?": ":" ")]}}class js extends Bs{createPartForInput(e,t){return 0===t&&"/"===e[0]?this.command(""):super.createPartForInput(e,t)}command(e){return new Gs(e,this.autoCompleteCreator)}deserializePart(e){return"command"===e.type?this.command(e.text):super.deserializePart(e)}}class Gs extends Us{get type(){return Rs.Command}}function qs(e,t){const n=[];return e.split("@room").forEach((e,o,r)=>{e.length&&n.push(t.plain(e));o===r.length-1||n.push(t.atRoomPill("@room"))}),n}function Hs(e,t,n,o){switch(e.nodeName){case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":return function(e,t){const n=parseInt(e.nodeName.substr(1),10);return t.plain("#".repeat(n)+" ")}(e,t);case"A":return function(e,t){const{href:n}=e,o=Object(ya.b)(n);switch(o?o[0]:void 0){case"@":return t.userPill(e.textContent,o);case"#":return t.roomPill(o);default:return n===e.textContent?t.plain(e.textContent):t.plain(`[${e.textContent.replace(/[[\\\]]/g,e=>"\\"+e)}](${n})`)}}(e,t);case"BR":return t.newline();case"EM":return t.plain(`_${e.textContent}_`);case"STRONG":return t.plain(`**${e.textContent}**`);case"PRE":return function(e,t){const n=[];let o="";if(e.firstChild&&"CODE"===e.firstChild.nodeName)for(const t of e.firstChild.classList)if(t.startsWith("language-")&&!t.startsWith("language-_")){o=t.substr("language-".length);break}const r=("```"+o+"\n"+e.textContent+"```").split("\n");return r.forEach((e,o)=>{n.push(t.plain(e)),o<r.length-1&&n.push(t.newline())}),n}(e,t);case"CODE":return t.plain(`\`${e.textContent}\``);case"DEL":return t.plain(`<del>${e.textContent}</del>`);case"LI":{const n=" ".repeat(o.listDepth-1);if("OL"===e.parentElement.nodeName){const e=o.listIndex[o.listIndex.length-1];return o.listIndex[o.listIndex.length-1]+=1,t.plain(`${n}${e}. `)}return t.plain(n+"- ")}case"P":if(n)return t.newline();break;case"DIV":case"SPAN":if(e.hasAttribute("data-mx-maths")){const n="SPAN"==e.nodeName?(l.a.get().latex_maths_delims||{}).inline_left||"$":(l.a.get().latex_maths_delims||{}).display_left||"$$",o="SPAN"==e.nodeName?(l.a.get().latex_maths_delims||{}).inline_right||"$":(l.a.get().latex_maths_delims||{}).display_right||"$$",r=e.getAttribute("data-mx-maths");return t.plain(n+r+o)}if(!Vs(e))return t.plain(e.textContent);break;case"OL":o.listIndex.push(e.start||1);case"UL":o.listDepth=(o.listDepth||0)+1;default:if(!Vs(e))return t.plain(e.textContent)}}function Vs(e){switch(e.nodeName){case"PRE":return!1;default:return Object(ga.c)(e)}}function zs(e){return e.nodeType===Node.TEXT_NODE?"\n"===e.nodeValue:e.nodeType!==Node.ELEMENT_NODE||"MX-REPLY"===e.nodeName}function Ks(e,t,n){const o=e.split(/\r\n|\r|\n/g);return o.reduce((e,r,i)=>{n&&e.push(t.plain("> ")),e.push(...qs(r,t));return i===o.length-1||e.push(t.newline()),e},[])}function Ws(e,t,{isQuotedMessage:n=!1}={}){const o=e.getContent();let r;return r="org.matrix.custom.html"===o.format?function(e,t,n){const o=(new DOMParser).parseFromString(e,"text/html").body,r=[];let i,a=n;const s={listIndex:[]};return ws(o,(function(e){if(zs(e))return!1;"BLOCKQUOTE"===e.nodeName&&(a=!0);const n=[];if(i&&(Object(ga.c)(i)||Object(ga.c)(e))&&n.push(t.newline()),e.nodeType===Node.TEXT_NODE)n.push(...qs(e.nodeValue,t));else if(e.nodeType===Node.ELEMENT_NODE){const o=Hs(e,t,i,s);o&&(Array.isArray(o)?n.push(...o):n.push(o))}if(n.length&&a){!function(e,t,n){e&&t.splice(0,0,n.plain("> "));for(let e=0;e<t.length;e+=1)"newline"===t[e].type&&(t.splice(e+1,0,n.plain("> ")),e+=1)}(0===r.length,n,t)}r.push(...n);const o=Vs(e);return i=o?null:e,o}),(function(e){if(!zs(e)){switch(e.nodeName){case"BLOCKQUOTE":a=!1;break;case"OL":s.listIndex.pop();case"UL":s.listDepth-=1}i=e}})),r}(o.formatted_body||"",t,n):Ks(o.body||"",t,n),"m.emote"===o.msgtype&&r.unshift(t.plain("/me ")),r}var Ys=n(716);class $s extends i.a.PureComponent{constructor(e){super(e),this.state={visible:!1}}render(){const e=M()("mx_MessageComposerFormatBar",{mx_MessageComposerFormatBar_shown:this.state.visible});return i.a.createElement("div",{className:e,ref:e=>this._formatBarRef=e},i.a.createElement(Qs,{label:Object(c.a)("Bold"),onClick:()=>this.props.onAction("bold"),icon:"Bold",shortcut:this.props.shortcuts.bold,visible:this.state.visible}),i.a.createElement(Qs,{label:Object(c.a)("Italics"),onClick:()=>this.props.onAction("italics"),icon:"Italic",shortcut:this.props.shortcuts.italics,visible:this.state.visible}),i.a.createElement(Qs,{label:Object(c.a)("Strikethrough"),onClick:()=>this.props.onAction("strikethrough"),icon:"Strikethrough",visible:this.state.visible}),i.a.createElement(Qs,{label:Object(c.a)("Code block"),onClick:()=>this.props.onAction("code"),icon:"Code",visible:this.state.visible}),i.a.createElement(Qs,{label:Object(c.a)("Quote"),onClick:()=>this.props.onAction("quote"),icon:"Quote",shortcut:this.props.shortcuts.quote,visible:this.state.visible}))}showAt(e){this.setState({visible:!0});const t=this._formatBarRef.parentElement.getBoundingClientRect();this._formatBarRef.style.left=e.left-t.left+"px",this._formatBarRef.style.top=e.top-t.top-16-12+"px"}hide(){this.setState({visible:!1})}}R()($s,"propTypes",{onAction:Se.a.func.isRequired,shortcuts:Se.a.object.isRequired});class Qs extends i.a.PureComponent{render(){const e="mx_MessageComposerFormatBar_button mx_MessageComposerFormatBar_buttonIcon"+this.props.icon;let t;this.props.shortcut&&(t=i.a.createElement("div",{className:"mx_MessageComposerFormatBar_tooltipShortcut"},this.props.shortcut));const n=i.a.createElement("div",null,i.a.createElement("div",{className:"mx_Tooltip_title"},this.props.label),i.a.createElement("div",{className:"mx_Tooltip_sub"},t));return i.a.createElement(L.a,{as:"span",role:"button",onClick:this.props.onClick,title:this.props.label,tooltip:n,className:e})}}R()(Qs,"propTypes",{label:Se.a.string.isRequired,onClick:Se.a.func.isRequired,icon:Se.a.string.isRequired,shortcut:Se.a.string,visible:Se.a.bool});const Xs=new RegExp("(?:^|\\s)("+Wa.a.source+")\\s$"),Js=-1!==navigator.platform.indexOf("Mac");function Zs(e){return(Js?"⌘":"Ctrl")+"+"+e}function ec(e){return{anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,rangeCount:e.rangeCount,type:e.type}}var tc;!function(e){e.Bold="bold",e.Italics="italics",e.Strikethrough="strikethrough",e.Code="code",e.Quote="quote"}(tc||(tc={}));class nc extends i.a.Component{constructor(e){super(e),R()(this,"editorRef",Object(r.createRef)()),R()(this,"autocompleteRef",Object(r.createRef)()),R()(this,"formatBarRef",Object(r.createRef)()),R()(this,"modifiedFlag",!1),R()(this,"isIMEComposing",!1),R()(this,"hasTextSelected",!1),R()(this,"_isCaretAtEnd",void 0),R()(this,"lastCaret",void 0),R()(this,"lastSelection",void 0),R()(this,"emoticonSettingHandle",void 0),R()(this,"shouldShowPillAvatarSettingHandle",void 0),R()(this,"historyManager",new os),R()(this,"replaceEmoticon",e=>{const{model:t}=this.props,n=t.startRange(e);let o=8;n.expandBackwardsWhile((e,n)=>{const r=t.parts[e];return o-=1,o>=0&&("plain"===r.type||"pill-candidate"===r.type)});const r=Xs.exec(n.text);if(r){const e=r[1].replace("-",""),o=Er.c.get(e)||Er.c.get(e.toLowerCase());if(o){const{partCreator:e}=t,i=" "===r[0][0];return n.moveStart(r.index+(i?1:0)),n.replace([e.plain(o.unicode+" ")])}}}),R()(this,"updateEditorState",(e,t,n)=>{if(ds(this.editorRef.current,this.props.model),e){try{ms(this.editorRef.current,this.props.model,e)}catch(e){console.error(e)}const t=e instanceof ps?e.end:e;this.setLastCaretFromPosition(t)}const{isEmpty:o}=this.props.model;this.props.placeholder&&(o?this.showPlaceholder():this.hidePlaceholder()),o&&this.formatBarRef.current.hide(),this.setState({autoComplete:this.props.model.autoComplete}),this.historyManager.tryPush(this.props.model,e,t,n);let r=!this.props.model.isEmpty;if(r&&"command"===this.props.model.parts[0].type){const{cmd:e}=Pa(this.props.model.parts[0].text),t=Ma.get(e);t&&t.isEnabled()&&t.category===Aa.messages||(r=!1)}Ys.a.sharedInstance().setSelfTyping(this.props.room.roomId,r),this.props.onChange&&this.props.onChange()}),R()(this,"onCompositionStart",()=>{this.isIMEComposing=!0,this.hidePlaceholder()}),R()(this,"onCompositionEnd",()=>{this.isIMEComposing=!1;const e=navigator.userAgent.toLowerCase();e.includes("safari/")&&!e.includes("chrome/")?this.onInput({inputType:"insertCompositionText"}):Promise.resolve().then(()=>{this.onInput({inputType:"insertCompositionText"})})}),R()(this,"onCutCopy",(e,t)=>{const n=document.getSelection(),o=n.toString();if(o){const{model:r}=this.props,i=Os(this.editorRef.current,r,n),a=i.parts.map(e=>e.serialize());e.clipboardData.setData("application/x-element-composer",JSON.stringify(a)),e.clipboardData.setData("text/plain",o),"cut"===t&&(this.modifiedFlag=!0,_s(i,[])),e.preventDefault()}}),R()(this,"onCopy",e=>{this.onCutCopy(e,"copy")}),R()(this,"onCut",e=>{this.onCutCopy(e,"cut")}),R()(this,"onPaste",e=>{if(e.preventDefault(),this.props.onPaste&&this.props.onPaste(e,this.props.model))return!0;const{model:t}=this.props,{partCreator:n}=t,o=e.clipboardData.getData("application/x-element-composer");let r;if(o){r=JSON.parse(o).map(e=>n.deserializePart(e))}else{r=Ks(e.clipboardData.getData("text/plain"),n)}this.modifiedFlag=!0;_s(Os(this.editorRef.current,t,document.getSelection()),r)}),R()(this,"onInput",e=>{if(this.isIMEComposing)return;this.modifiedFlag=!0;const t=document.getSelection(),{caret:n,text:o}=Cs(this.editorRef.current,t);this.props.model.update(o,e.inputType,n)}),R()(this,"onBlur",()=>{document.removeEventListener("selectionchange",this.onSelectionChange)}),R()(this,"onFocus",()=>{document.addEventListener("selectionchange",this.onSelectionChange),this.lastSelection=null,this.refreshLastCaretIfNeeded()}),R()(this,"onSelectionChange",()=>{const{isEmpty:e}=this.props.model;this.refreshLastCaretIfNeeded();const t=document.getSelection();if(this.hasTextSelected&&t.isCollapsed)this.hasTextSelected=!1,this.formatBarRef.current&&this.formatBarRef.current.hide();else if(!t.isCollapsed&&!e&&(this.hasTextSelected=!0,this.formatBarRef.current)){const e=t.getRangeAt(0).getBoundingClientRect();this.formatBarRef.current.showAt(e)}}),R()(this,"onKeyDown",e=>{const t=this.props.model,n=Js?e.metaKey:e.ctrlKey;let o=!1;if(n&&e.key===gn.a.B)this.onFormatAction(tc.Bold),o=!0;else if(n&&e.key===gn.a.I)this.onFormatAction(tc.Italics),o=!0;else if(n&&e.key===gn.a.GREATER_THAN)this.onFormatAction(tc.Quote),o=!0;else if(!Js&&n&&e.key===gn.a.Y||Js&&n&&e.shiftKey&&e.key===gn.a.Z){if(this.historyManager.canRedo()){const{parts:e,caret:n}=this.historyManager.redo();t.reset(e,n,"historyRedo")}o=!0}else if(n&&e.key===gn.a.Z){if(this.historyManager.canUndo()){const{parts:e,caret:n}=this.historyManager.undo(this.props.model);t.reset(e,n,"historyUndo")}o=!0}else if(e.key===gn.a.ENTER&&(e.shiftKey||Js&&e.altKey))this.insertText("\n"),o=!0;else if(n&&e.key===gn.a.HOME&&!e.shiftKey)ms(this.editorRef.current,t,{index:0,offset:0}),o=!0;else if(n&&e.key===gn.a.END&&!e.shiftKey)ms(this.editorRef.current,t,{index:t.parts.length-1,offset:t.parts[t.parts.length-1].text.length}),o=!0;else{const n=e.metaKey||e.altKey,r=n||e.shiftKey;if(t.autoComplete&&t.autoComplete.hasCompletions()){const i=t.autoComplete;switch(e.key){case gn.a.ARROW_UP:r||(i.onUpArrow(e),o=!0);break;case gn.a.ARROW_DOWN:r||(i.onDownArrow(e),o=!0);break;case gn.a.TAB:n||(i.onTab(e),o=!0);break;case gn.a.ESCAPE:r||(i.onEscape(e),o=!0);break;default:return}}else e.key===gn.a.TAB?(this.tabCompleteName(e),o=!0):e.key!==gn.a.BACKSPACE&&e.key!==gn.a.DELETE||this.formatBarRef.current.hide()}o&&(e.preventDefault(),e.stopPropagation())}),R()(this,"onAutoCompleteConfirm",e=>{this.modifiedFlag=!0,this.props.model.autoComplete.onComponentConfirm(e)}),R()(this,"onAutoCompleteSelectionChange",(e,t)=>{this.modifiedFlag=!0,this.props.model.autoComplete.onComponentSelectionChange(e),this.setState({completionIndex:t})}),R()(this,"configureEmoticonAutoReplace",()=>{const e=P.a.getValue("MessageComposerInput.autoReplaceEmoji");this.props.model.setTransformCallback(e?this.replaceEmoticon:null)}),R()(this,"configureShouldShowPillAvatar",()=>{const e=P.a.getValue("Pill.shouldShowPillAvatar");this.setState({showPillAvatar:e})}),R()(this,"onFormatAction",e=>{const t=Os(this.editorRef.current,this.props.model,document.getSelection());if(t.trim(),0!==t.length)switch(this.historyManager.ensureLastChangesPushed(this.props.model),this.modifiedFlag=!0,e){case tc.Bold:Ss(t,"**");break;case tc.Italics:Ss(t,"_");break;case tc.Strikethrough:Ss(t,"<del>","</del>");break;case tc.Code:!function(e){const{model:t,parts:n}=e,{partCreator:o}=t;n.some(e=>"newline"===e.type)?(n.unshift(o.plain("```"),o.newline()),bs(e)||n.unshift(o.newline()),n.push(o.newline(),o.plain("```")),vs(e)||n.push(o.newline())):(n.unshift(o.plain("`")),n.push(o.plain("`"))),fs(e,n)}(t);break;case tc.Quote:!function(e){const{model:t,parts:n}=e,{partCreator:o}=t;for(let e=0;e<n.length;++e){"newline"===n[e].type&&n.splice(e+1,0,o.plain("> "))}n.unshift(o.plain("> ")),bs(e)||n.unshift(o.newline()),vs(e)||n.push(o.newline()),n.push(o.newline()),fs(e,n)}(t)}}),this.state={showPillAvatar:P.a.getValue("Pill.shouldShowPillAvatar")},this.emoticonSettingHandle=P.a.watchSetting("MessageComposerInput.autoReplaceEmoji",null,this.configureEmoticonAutoReplace),this.configureEmoticonAutoReplace(),this.shouldShowPillAvatarSettingHandle=P.a.watchSetting("Pill.shouldShowPillAvatar",null,this.configureShouldShowPillAvatar)}componentDidUpdate(e){if(this.props.placeholder!==e.placeholder&&this.props.placeholder){const{isEmpty:e}=this.props.model;e?this.showPlaceholder():this.hidePlaceholder()}}showPlaceholder(){const e=this.props.placeholder.replace(/'/g,"\\'");this.editorRef.current.style.setProperty("--placeholder",`'${e}'`),this.editorRef.current.classList.add("mx_BasicMessageComposer_inputEmpty")}hidePlaceholder(){this.editorRef.current.classList.remove("mx_BasicMessageComposer_inputEmpty"),this.editorRef.current.style.removeProperty("--placeholder")}isComposing(e){return!!(this.isIMEComposing||e.nativeEvent&&e.nativeEvent.isComposing)}insertText(e,t="insertText"){const n=document.getSelection(),{caret:o,text:r}=Cs(this.editorRef.current,n),i=r.substr(0,o.offset)+e+r.substr(o.offset);o.offset+=e.length,this.modifiedFlag=!0,this.props.model.update(i,t,o)}setLastCaretFromPosition(e){const{model:t}=this.props;this._isCaretAtEnd=e.isAtEnd(t),this.lastCaret=e.asOffset(t),this.lastSelection=ec(document.getSelection())}refreshLastCaretIfNeeded(){if(!this.editorRef.current)return;const e=document.getSelection();if(!this.lastSelection||(t=this.lastSelection,n=e,t.anchorNode!==n.anchorNode||t.anchorOffset!==n.anchorOffset||t.focusNode!==n.focusNode||t.focusOffset!==n.focusOffset||t.isCollapsed!==n.isCollapsed||t.rangeCount!==n.rangeCount||t.type!==n.type)){this.lastSelection=ec(e);const{caret:t,text:n}=Cs(this.editorRef.current,e);this.lastCaret=t,this._isCaretAtEnd=t.offset===n.length}var t,n;return this.lastCaret}clearUndoHistory(){this.historyManager.clear()}getCaret(){return this.lastCaret}isSelectionCollapsed(){return!this.lastSelection||this.lastSelection.isCollapsed}isCaretAtStart(){return 0===this.getCaret().offset}isCaretAtEnd(){return this._isCaretAtEnd}async tabCompleteName(e){try{await new Promise(e=>this.setState({showVisualBell:!1},e));const{model:t}=this.props,n=this.getCaret(),o=t.positionForOffset(n.offset,n.atNodeEnd),r=t.startRange(o);r.expandBackwardsWhile((e,t,n)=>" "!==n.text[t]&&"+"!==n.text[t]&&("plain"===n.type||"pill-candidate"===n.type||"command"===n.type));const{partCreator:i}=t;await t.transform(()=>{const e=r.replace([i.pillCandidate(r.text)]);return t.positionForOffset(n.offset+e,!0)}),t.autoComplete&&(await t.autoComplete.onTab(e),t.autoComplete.hasSelection()||(this.setState({showVisualBell:!0}),t.autoComplete.close()))}catch(e){console.error(e)}}isModified(){return this.modifiedFlag}componentWillUnmount(){document.removeEventListener("selectionchange",this.onSelectionChange),this.editorRef.current.removeEventListener("input",this.onInput,!0),this.editorRef.current.removeEventListener("compositionstart",this.onCompositionStart,!0),this.editorRef.current.removeEventListener("compositionend",this.onCompositionEnd,!0),P.a.unwatchSetting(this.emoticonSettingHandle),P.a.unwatchSetting(this.shouldShowPillAvatarSettingHandle)}componentDidMount(){const e=this.props.model;e.setUpdateCallback(this.updateEditorState);var t,n;e.partCreator.setAutoCompleteCreator((t=()=>this.autocompleteRef.current,n=e=>new Promise(t=>this.setState({query:e},t)),e=>o=>new ks(o,t,n,e))),this.updateEditorState(this.getInitialCaretPosition()),this.editorRef.current.addEventListener("input",this.onInput,!0),this.editorRef.current.addEventListener("compositionstart",this.onCompositionStart,!0),this.editorRef.current.addEventListener("compositionend",this.onCompositionEnd,!0),this.editorRef.current.focus()}getInitialCaretPosition(){let e;if(this.props.initialCaret){const t=this.props.initialCaret;e=this.props.model.positionForOffset(t.offset,t.atNodeEnd)}else e=this.props.model.getPositionAtEnd();return e}render(){let e;if(this.state.autoComplete){const t=this.state.query,n=t.length;e=i.a.createElement("div",{className:"mx_BasicMessageComposer_AutoCompleteWrapper"},i.a.createElement(ts,{ref:this.autocompleteRef,query:t,onConfirm:this.onAutoCompleteConfirm,onSelectionChange:this.onAutoCompleteSelectionChange,selection:{beginning:!0,end:n,start:n},room:this.props.room}))}const t=M()("mx_BasicMessageComposer",{mx_BasicMessageComposer_input_error:this.state.showVisualBell}),n=M()("mx_BasicMessageComposer_input",{mx_BasicMessageComposer_input_shouldShowPillAvatar:this.state.showPillAvatar}),o={bold:Zs("B"),italics:Zs("I"),quote:Zs(">")},{completionIndex:r}=this.state;return i.a.createElement("div",{className:t},e,i.a.createElement($s,{ref:this.formatBarRef,onAction:this.onFormatAction,shortcuts:o}),i.a.createElement("div",{className:n,contentEditable:"true",tabIndex:0,onBlur:this.onBlur,onFocus:this.onFocus,onCopy:this.onCopy,onCut:this.onCut,onPaste:this.onPaste,onKeyDown:this.onKeyDown,ref:this.editorRef,"aria-label":this.props.label,role:"textbox","aria-multiline":"true","aria-autocomplete":"both","aria-haspopup":"listbox","aria-expanded":Boolean(this.state.autoComplete),"aria-activedescendant":r>=0?es(r):void 0,dir:"auto"}))}focus(){this.editorRef.current.focus()}}var oc=n(785),rc=n(692),ic=n(128);const ac=/^#\/(?:user|room|group)\/(([#!@+]).*?)(?=\/|\?|$)/;class sc extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{resourceId:null,pillType:null,member:null,group:null,room:null}),R()(this,"onUserPillClicked",()=>{d.a.dispatch({action:h.a.ViewUser,member:this.state.member})})}static isPillUrl(e){return!!Object(ya.b)(e)}static isMessagePillUrl(e){return!!ac.exec(e)}static roomNotifPos(e){return e.indexOf("@room")}static roomNotifLen(){return"@room".length}async UNSAFE_componentWillReceiveProps(e){let t,n;if(e.url)if(e.inMessage){const o=ac.exec(e.url)||[];t=o[1],n=o[2]}else t=Object(ya.b)(e.url),n=t?t[0]:void 0;const o=this.props.type||{"@":sc.TYPE_USER_MENTION,"#":sc.TYPE_ROOM_MENTION,"!":sc.TYPE_ROOM_MENTION,"+":sc.TYPE_GROUP_MENTION}[n];let r,i,a;switch(o){case sc.TYPE_AT_ROOM_MENTION:a=e.room;break;case sc.TYPE_USER_MENTION:{const n=e.room?e.room.getMember(t):void 0;r=n,n||(r=new Pe.l(null,t),this.doProfileLookup(t,r))}break;case sc.TYPE_ROOM_MENTION:{const e="#"===t[0]?X.a.get().getRooms().find(e=>e.getCanonicalAlias()===t||e.getAltAliases().includes(t)):X.a.get().getRoom(t);a=e}break;case sc.TYPE_GROUP_MENTION:{const e=X.a.get();try{i=await an.a.getGroupProfileCached(e,t)}catch(e){i={groupId:t,avatarUrl:null,name:null}}}}this.setState({resourceId:t,pillType:o,member:r,group:i,room:a})}componentDidMount(){this._unmounted=!1,this._matrixClient=X.a.get(),this.UNSAFE_componentWillReceiveProps(this.props)}componentWillUnmount(){this._unmounted=!0}doProfileLookup(e,t){X.a.get().getProfileInfo(e).then(e=>{this._unmounted||(t.name=e.displayname,t.rawDisplayName=e.displayname,t.events.member={getContent:()=>({avatar_url:e.avatar_url}),getDirectionalContent:function(){return this.getContent()}},this.setState({member:t}))}).catch(t=>{console.error("Could not retrieve profile data for "+e+":",t)})}render(){const e=u.getComponent("views.avatars.BaseAvatar"),t=u.getComponent("avatars.MemberAvatar"),n=u.getComponent("avatars.RoomAvatar"),o=this.state.resourceId;let r,a,s,c=null,l=o,d=this.props.url;switch(this.state.pillType){case sc.TYPE_AT_ROOM_MENTION:{const e=this.props.room;e&&(l="@room",this.props.shouldShowPillAvatar&&(c=i.a.createElement(n,{room:e,width:16,height:16,"aria-hidden":"true"})),r="mx_AtRoomPill")}break;case sc.TYPE_USER_MENTION:{const e=this.state.member;e&&(a=e.userId,e.rawDisplayName=e.rawDisplayName||"",l=e.rawDisplayName,this.props.shouldShowPillAvatar&&(c=i.a.createElement(t,{member:e,width:16,height:16,"aria-hidden":"true"})),r="mx_UserPill",d=null,s=this.onUserPillClicked)}break;case sc.TYPE_ROOM_MENTION:{const e=this.state.room;e&&(l=o,this.props.shouldShowPillAvatar&&(c=i.a.createElement(n,{room:e,width:16,height:16,"aria-hidden":"true"}))),r="mx_RoomPill"}break;case sc.TYPE_GROUP_MENTION:if(this.state.group){const{avatarUrl:t,groupId:n,name:o}=this.state.group,a=X.a.get();l=n,this.props.shouldShowPillAvatar&&(c=i.a.createElement(e,{name:o||n,width:16,height:16,"aria-hidden":"true",url:t?a.mxcUrlToHttp(t,16,16):null})),r="mx_GroupPill"}}const h=M()("mx_Pill",r,{mx_UserPill_me:a===X.a.get().getUserId(),mx_UserPill_selected:this.props.isSelected});return this.state.pillType?i.a.createElement(b.a.Provider,{value:this._matrixClient},this.props.inMessage?i.a.createElement("a",{className:h,href:d,onClick:s,title:o,"data-offset-key":this.props.offsetKey},c,l):i.a.createElement("span",{className:h,title:o,"data-offset-key":this.props.offsetKey},c,l)):null}}R()(sc,"TYPE_USER_MENTION","TYPE_USER_MENTION"),R()(sc,"TYPE_ROOM_MENTION","TYPE_ROOM_MENTION"),R()(sc,"TYPE_GROUP_MENTION","TYPE_GROUP_MENTION"),R()(sc,"TYPE_AT_ROOM_MENTION","TYPE_AT_ROOM_MENTION"),R()(sc,"propTypes",{type:Se.a.string,url:Se.a.string,inMessage:Se.a.bool,room:Se.a.instanceOf(Pe.k),shouldShowPillAvatar:Se.a.bool,isSelected:Se.a.bool});var cc,lc,uc,dc=sc;let hc=Object(fo.a)("views.settings.BridgeTile")((uc=lc=class extends i.a.PureComponent{constructor(...e){super(...e),R()(this,"state",{visible:!1})}_toggleVisible(){this.setState({visible:!this.state.visible})}render(){const e=this.props.ev.getContent(),{channel:t,network:n,protocol:o}=e,r=o.displayname||o.id,a=t.displayname||t.id,s=n?n.displayname||n.id:r;let l=null;e.creator&&(l=Object(c.a)("This bridge was provisioned by <user />.",{},{user:i.a.createElement(dc,{type:dc.TYPE_USER_MENTION,room:this.props.room,url:Object(ya.g)(e.creator),shouldShowPillAvatar:P.a.getValue("Pill.shouldShowPillAvatar")})}));const u=Object(c.a)("This bridge is managed by <user />.",{},{user:i.a.createElement(dc,{type:dc.TYPE_USER_MENTION,room:this.props.room,url:Object(ya.g)(this.props.ev.getSender()),shouldShowPillAvatar:P.a.getValue("Pill.shouldShowPillAvatar")})});let d;if(o.avatar){const e=Object(ic.a)(X.a.get().getHomeserverUrl(),o.avatar,64,64,"crop");d=i.a.createElement(p.a,{className:"protocol-icon",width:48,height:48,resizeMethod:"crop",name:r,idName:r,url:e})}else d=i.a.createElement("div",{class:"noProtocolIcon"});const h=this.props.ev.getId(),m="metadata"+(this.state.visible?" visible":"");return i.a.createElement("li",{key:h},i.a.createElement("div",{className:"column-icon"},d),i.a.createElement("div",{className:"column-data"},i.a.createElement("h3",null,r),i.a.createElement("p",{className:"workspace-channel-details"},i.a.createElement("span",null,Object(c.a)("Workspace: %(networkName)s",{networkName:s})),i.a.createElement("span",{className:"channel"},Object(c.a)("Channel: %(channelName)s",{channelName:a}))),i.a.createElement("p",{className:m},l," ",u),i.a.createElement(g.a,{className:"mx_showMore",kind:"secondary",onClick:this._toggleVisible.bind(this)},this.state.visible?Object(c.a)("Show less"):Object(c.a)("Show more"))))}},R()(lc,"propTypes",{ev:Se.a.object.isRequired,room:Se.a.object.isRequired}),cc=uc))||cc;const pc=["uk.half-shot.bridge"];class mc extends i.a.Component{renderBridgeCard(e,t){const n=e.getContent();return n&&n.channel&&n.protocol?i.a.createElement(hc,{key:e.getId(),room:t,ev:e}):null}static getBridgeStateEvents(e){const t=X.a.get().getRoom(e).currentState;return pc.map(e=>{const n=t.events.get(e);return n?Array.from(n.values()):[]}).flat(1)}render(){const e=mc.getBridgeStateEvents(this.props.roomId),t=X.a.get().getRoom(this.props.roomId);let n;return n=e.length>0?i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("This room is bridging messages to the following platforms. <a>Learn more.</a>",{},{a:e=>i.a.createElement("a",{href:"https://matrix.org/bridges/",target:"_blank",rel:"noreferrer noopener"},e)})),i.a.createElement("ul",{className:"mx_RoomSettingsDialog_BridgeList"},e.map(e=>this.renderBridgeCard(e,t)))):i.a.createElement("p",null,Object(c.a)("This room isnt bridging messages to any platforms. <a>Learn more.</a>",{},{a:e=>i.a.createElement("a",{href:"https://matrix.org/bridges/",target:"_blank",rel:"noreferrer noopener"},e)})),i.a.createElement("div",{className:"mx_SettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Bridges")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},n))}}var gc=n(786),fc=n(702);function _c(e,t){const n=X.a.get().getRoom(t),o=n&&n.getMember(e);return o?o.name:e}function bc(e,t){const n=_c(e,t);return n!==e?Object(c.a)("%(name)s (%(userId)s)",{name:n,userId:e}):e}class vc extends i.a.PureComponent{constructor(e){super(e),R()(this,"intervalHandle",void 0),R()(this,"_checkRequestIsPending",()=>{const{request:e}=this.props;e.canAccept||Vn.a.sharedInstance().dismissToast(this.props.toastKey)}),R()(this,"cancel",()=>{Vn.a.sharedInstance().dismissToast(this.props.toastKey);try{this.props.request.cancel()}catch(e){console.error("Error while cancelling verification request",e)}}),R()(this,"accept",async()=>{Vn.a.sharedInstance().dismissToast(this.props.toastKey);const{request:e}=this.props,t=X.a.get();try{if(e.channel.roomId)d.a.dispatch({action:"view_room",room_id:e.channel.roomId,should_peek:!1}),d.a.dispatch({action:h.a.SetRightPanelPhase,phase:on.b.EncryptionPanel,refireParams:{verificationRequest:e,member:t.getUser(e.otherUserId)}});else{const t=u.getComponent("views.dialogs.VerificationRequestDialog");Ie.a.createTrackedDialog("Incoming Verification","",t,{verificationRequest:e},null,!1,!0)}await e.accept()}catch(e){console.error(e.message)}}),this.state={counter:Math.ceil(e.request.timeout/1e3)}}async componentDidMount(){const{request:e}=this.props;if(e.timeout&&e.timeout>0&&(this.intervalHandle=setInterval(()=>{let{counter:e}=this.state;e=Math.max(0,e-1),this.setState({counter:e})},1e3)),e.on("change",this._checkRequestIsPending),this._checkRequestIsPending(),e.isSelfVerification){const t=X.a.get();this.setState({device:t.getStoredDevice(t.getUserId(),e.channel.deviceId)})}}componentWillUnmount(){clearInterval(this.intervalHandle);const{request:e}=this.props;e.off("change",this._checkRequestIsPending)}render(){const{request:e}=this.props;let t;if(e.isSelfVerification)this.state.device&&(t=Object(c.a)("From %(deviceName)s (%(deviceId)s)",{deviceName:this.state.device.getDisplayName(),deviceId:this.state.device.deviceId}));else{const n=e.otherUserId,o=e.channel.roomId;if(t=o?bc(n,o):n,t===n){const e=X.a.get().getUser(n);e&&e.displayName&&(t=Object(c.a)("%(name)s (%(userId)s)",{name:e.displayName,userId:n}))}}const n=0===this.state.counter?Object(c.a)("Decline"):Object(c.a)("Decline (%(counter)s)",{counter:this.state.counter});return i.a.createElement(Hn.a,{description:t,acceptLabel:Object(c.a)("Accept"),onAccept:this.accept,rejectLabel:n,onReject:this.cancel})}}var Ec=n(774),yc=n(729),Sc=n(728),Tc=n(751),wc=n(787),Cc=n(213);class xc extends i.a.Component{constructor(...e){super(...e),R()(this,"decryptingEvents",new Set),R()(this,"state",{timelineSet:null}),R()(this,"onRoomTimeline",(e,t,n,o,r)=>{t.roomId===this.props.roomId&&!n&&r&&r.liveEvent&&!e.isRedacted()&&(e.isBeingDecrypted()?this.decryptingEvents.add(e.getId()):this.addEncryptedLiveEvent(e))}),R()(this,"onEventDecrypted",(e,t)=>{if(e.getRoomId()!==this.props.roomId)return;const n=e.getId();this.decryptingEvents.delete(n)&&(t||this.addEncryptedLiveEvent(e))}),R()(this,"onPaginationRequest",(e,t,n)=>{const o=X.a.get(),r=Cc.a.get(),i=this.props.roomId,a=o.getRoom(i);return o.isRoomEncrypted(i)&&null!==r?r.paginateTimelineWindow(a,e,t,n):e.paginate(t,n)})}addEncryptedLiveEvent(e,t){if(!this.state.timelineSet)return;const n=this.state.timelineSet.getLiveTimeline();"m.room.message"===e.getType()&&-1!=["m.file","m.image","m.video","m.audio"].indexOf(e.getContent().msgtype)&&(this.state.timelineSet.eventIdToTimeline(e.getId())||this.state.timelineSet.addEventToTimeline(e,n,!1))}async componentDidMount(){const e=X.a.get();await this.updateTimelineSet(this.props.roomId),X.a.get().isRoomEncrypted(this.props.roomId)&&null!==Cc.a.get()&&(e.on("Room.timeline",this.onRoomTimeline),e.on("Event.decrypted",this.onEventDecrypted))}componentWillUnmount(){const e=X.a.get();null!==e&&X.a.get().isRoomEncrypted(this.props.roomId)&&null!==Cc.a.get()&&(e.removeListener("Room.timeline",this.onRoomTimeline),e.removeListener("Event.decrypted",this.onEventDecrypted))}async fetchFileEventsServer(e){const t=X.a.get(),n=new Pe.d(t.credentials.userId);n.setDefinition({room:{timeline:{contains_url:!0,types:["m.room.message"]}}});const o=await t.getOrCreateFilter("FILTER_FILES_"+t.credentials.userId,n);n.filterId=o;return e.getOrCreateFilteredTimelineSet(n)}async updateTimelineSet(e){const t=X.a.get(),n=t.getRoom(e),o=Cc.a.get();if(this.noRoom=!n,n){let r;try{if(r=await this.fetchFileEventsServer(n),t.isRoomEncrypted(e)&&null!==o){const e=r.getLiveTimeline();await o.populateFileTimeline(r,e,n,10)}this.setState({timelineSet:r})}catch(e){console.error("Failed to get or create file panel filter",e)}}else console.error("Failed to add filtered timelineSet for FilePanel as no room!")}render(){if(X.a.get().isGuest())return i.a.createElement(ci.b,{className:"mx_FilePanel mx_RoomView_messageListWrapper",onClose:this.props.onClose,previousPhase:on.b.RoomSummary},i.a.createElement("div",{className:"mx_RoomView_empty"},Object(c.a)("You must <a>register</a> to use this functionality",{},{a:e=>i.a.createElement("a",{href:"#/register",key:"sub"},e)})));if(this.noRoom)return i.a.createElement(ci.b,{className:"mx_FilePanel mx_RoomView_messageListWrapper",onClose:this.props.onClose,previousPhase:on.b.RoomSummary},i.a.createElement("div",{className:"mx_RoomView_empty"},Object(c.a)("You must join the room to see its files")));const e=u.getComponent("structures.TimelinePanel"),t=u.getComponent("elements.Spinner"),n=i.a.createElement("div",{className:"mx_RightPanel_empty mx_FilePanel_empty"},i.a.createElement("h2",null,Object(c.a)("No files visible in this room")),i.a.createElement("p",null,Object(c.a)("Attach files from chat or just drag and drop them anywhere in a room."))),o=!this.noRoom&&X.a.get().isRoomEncrypted(this.props.roomId);return this.state.timelineSet?i.a.createElement(ci.b,{className:"mx_FilePanel",onClose:this.props.onClose,previousPhase:on.b.RoomSummary,withoutScrollContainer:!0},i.a.createElement(ar.b,{isRoomEncrypted:o,kind:ar.a.Files}),i.a.createElement(e,{manageReadReceipts:!1,manageReadMarkers:!1,timelineSet:this.state.timelineSet,showUrlPreview:!1,onPaginationRequest:this.onPaginationRequest,tileShape:"file_grid",resizeNotifier:this.props.resizeNotifier,empty:n})):i.a.createElement(ci.b,{className:"mx_FilePanel",onClose:this.props.onClose,previousPhase:on.b.RoomSummary},i.a.createElement(t,null))}}R()(xc,"propTypes",{roomId:Se.a.string.isRequired,onClose:Se.a.func.isRequired});var Oc=xc;class kc extends i.a.PureComponent{render(){return i.a.createElement("div",{className:"mx_GenericErrorPage"},i.a.createElement("div",{className:"mx_GenericErrorPage_box"},i.a.createElement("h1",null,this.props.title),i.a.createElement("p",null,this.props.message)))}}R()(kc,"propTypes",{title:Se.a.object.isRequired,message:Se.a.object.isRequired});var Rc=n(501),Ac=n(502),Ic=n(374),Dc=n(308);const Nc=Object(c.b)('<h1>HTML for your community\'s page</h1>\n<p>\n Use the long description to introduce new members to the community, or distribute\n some important <a href="foo">links</a>\n</p>\n<p>\n You can even add images with Matrix URLs <img src="mxc://url" />\n</p>\n'),Fc=Se.a.shape({room_id:Se.a.string.isRequired,profile:Se.a.shape({name:Se.a.string,avatar_url:Se.a.string,canonical_alias:Se.a.string}).isRequired}),Mc=Se.a.shape({summaryInfo:Se.a.shape({user_id:Se.a.string.isRequired,role_id:Se.a.string,avatar_url:Se.a.string,displayname:Se.a.string}).isRequired});class Pc extends i.a.Component{constructor(...e){super(...e),R()(this,"onAddRoomsToSummaryClicked",e=>{e.preventDefault();const t=u.getComponent("dialogs.AddressPickerDialog");Ie.a.createTrackedDialog("Add Rooms to Group Summary","",t,{title:Object(c.a)("Add rooms to the community summary"),description:Object(c.a)("Which rooms would you like to add to this summary?"),placeholder:Object(c.a)("Room name or address"),button:Object(c.a)("Add to summary"),pickerType:"room",validAddressTypes:["mx-room-id"],groupId:this.props.groupId,onFinished:(e,t)=>{if(!e)return;const n=[];Object(ft.a)(t.map(e=>Ni.a.addRoomToGroupSummary(this.props.groupId,e.address).catch(()=>{n.push(e.address)}))).then(()=>{if(0===n.length)return;const e=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Failed to add the following room to the group summary","",e,{title:Object(c.a)("Failed to add the following rooms to the summary of %(groupId)s:",{groupId:this.props.groupId}),description:n.join(", ")})})}},null,!1,!0)})}render(){const e=u.getComponent("elements.TintableSvg"),t=this.props.editing?i.a.createElement(g.a,{className:"mx_GroupView_featuredThings_addButton",onClick:this.onAddRoomsToSummaryClicked},i.a.createElement(e,{src:n(788),width:"64",height:"64"}),i.a.createElement("div",{className:"mx_GroupView_featuredThings_addButton_label"},Object(c.a)("Add a Room"))):i.a.createElement("div",null),o=this.props.rooms.map(e=>i.a.createElement(Lc,{key:e.room_id,groupId:this.props.groupId,editing:this.props.editing,summaryInfo:e}));let r=i.a.createElement("div",null);return this.props.category&&this.props.category.profile&&(r=i.a.createElement("div",{className:"mx_GroupView_featuredThings_category"},this.props.category.profile.name)),i.a.createElement("div",{className:"mx_GroupView_featuredThings_container"},r,o,t)}}R()(Pc,"propTypes",{rooms:Se.a.arrayOf(Fc).isRequired,category:Se.a.shape({profile:Se.a.shape({name:Se.a.string}).isRequired}),groupId:Se.a.string.isRequired,editing:Se.a.bool.isRequired});class Lc extends i.a.Component{constructor(...e){super(...e),R()(this,"onClick",e=>{e.preventDefault(),e.stopPropagation(),d.a.dispatch({action:"view_room",room_alias:this.props.summaryInfo.profile.canonical_alias,room_id:this.props.summaryInfo.room_id})}),R()(this,"onDeleteClicked",e=>{e.preventDefault(),e.stopPropagation(),Ni.a.removeRoomFromGroupSummary(this.props.groupId,this.props.summaryInfo.room_id).catch(e=>{console.error("Error whilst removing room from group summary",e);const t=this.props.summaryInfo.name||this.props.summaryInfo.canonical_alias||this.props.summaryInfo.room_id,n=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Failed to remove room from group summary","",n,{title:Object(c.a)("Failed to remove the room from the summary of %(groupId)s",{groupId:this.props.groupId}),description:Object(c.a)("The room '%(roomName)s' could not be removed from the summary.",{roomName:t})})})})}render(){const e=u.getComponent("avatars.RoomAvatar"),t=this.props.summaryInfo.profile.name||this.props.summaryInfo.profile.canonical_alias||Object(c.a)("Unnamed Room"),o={roomId:this.props.summaryInfo.room_id,avatarUrl:this.props.summaryInfo.profile.avatar_url,name:t};let r=null;this.props.summaryInfo.profile&&this.props.summaryInfo.profile.canonical_alias&&(r=Object(ya.e)(this.props.summaryInfo.profile.canonical_alias));let a=null;a=r?i.a.createElement("a",{href:r,onClick:this.onClick},t):i.a.createElement("span",null,t);const s=this.props.editing?i.a.createElement("img",{className:"mx_GroupView_featuredThing_deleteButton",src:n(789),width:"14",height:"14",alt:"Delete",onClick:this.onDeleteClicked}):i.a.createElement("div",null);return i.a.createElement(g.a,{className:"mx_GroupView_featuredThing",onClick:this.onClick},i.a.createElement(e,{oobData:o,width:64,height:64}),i.a.createElement("div",{className:"mx_GroupView_featuredThing_name"},a),s)}}R()(Lc,"propTypes",{summaryInfo:Fc.isRequired,editing:Se.a.bool.isRequired,groupId:Se.a.string.isRequired});class Uc extends i.a.Component{constructor(...e){super(...e),R()(this,"onAddUsersClicked",e=>{e.preventDefault();const t=u.getComponent("dialogs.AddressPickerDialog");Ie.a.createTrackedDialog("Add Users to Group Summary","",t,{title:Object(c.a)("Add users to the community summary"),description:Object(c.a)("Who would you like to add to this summary?"),placeholder:Object(c.a)("Name or Matrix ID"),button:Object(c.a)("Add to summary"),validAddressTypes:["mx-user-id"],groupId:this.props.groupId,shouldOmitSelf:!1,onFinished:(e,t)=>{if(!e)return;const n=[];Object(ft.a)(t.map(e=>Ni.a.addUserToGroupSummary(e.address).catch(()=>{n.push(e.address)}))).then(()=>{if(0===n.length)return;const e=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Failed to add the following users to the community summary","",e,{title:Object(c.a)("Failed to add the following users to the summary of %(groupId)s:",{groupId:this.props.groupId}),description:n.join(", ")})})}},null,!1,!0)})}render(){const e=u.getComponent("elements.TintableSvg"),t=this.props.editing?i.a.createElement(g.a,{className:"mx_GroupView_featuredThings_addButton",onClick:this.onAddUsersClicked},i.a.createElement(e,{src:n(788),width:"64",height:"64"}),i.a.createElement("div",{className:"mx_GroupView_featuredThings_addButton_label"},Object(c.a)("Add a User"))):i.a.createElement("div",null),o=this.props.users.map(e=>i.a.createElement(Bc,{key:e.user_id,summaryInfo:e,editing:this.props.editing,groupId:this.props.groupId}));let r=i.a.createElement("div",null);return this.props.role&&this.props.role.profile&&(r=i.a.createElement("div",{className:"mx_GroupView_featuredThings_category"},this.props.role.profile.name)),i.a.createElement("div",{className:"mx_GroupView_featuredThings_container"},r,o,t)}}R()(Uc,"propTypes",{users:Se.a.arrayOf(Mc).isRequired,role:Se.a.shape({profile:Se.a.shape({name:Se.a.string}).isRequired}),groupId:Se.a.string.isRequired,editing:Se.a.bool.isRequired});class Bc extends i.a.Component{constructor(...e){super(...e),R()(this,"onClick",e=>{e.preventDefault(),e.stopPropagation(),d.a.dispatch({action:"view_start_chat_or_reuse",user_id:this.props.summaryInfo.user_id})}),R()(this,"onDeleteClicked",e=>{e.preventDefault(),e.stopPropagation(),Ni.a.removeUserFromGroupSummary(this.props.groupId,this.props.summaryInfo.user_id).catch(e=>{console.error("Error whilst removing user from group summary",e);const t=this.props.summaryInfo.displayname||this.props.summaryInfo.user_id,n=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Failed to remove user from community summary","",n,{title:Object(c.a)("Failed to remove a user from the summary of %(groupId)s",{groupId:this.props.groupId}),description:Object(c.a)("The user '%(displayName)s' could not be removed from the summary.",{displayName:t})})})})}render(){const e=u.getComponent("avatars.BaseAvatar"),t=this.props.summaryInfo.displayname||this.props.summaryInfo.user_id,o=Object(ya.g)(this.props.summaryInfo.user_id),r=i.a.createElement("a",{href:o,onClick:this.onClick},t),a=X.a.get().mxcUrlToHttp(this.props.summaryInfo.avatar_url,64,64),s=this.props.editing?i.a.createElement("img",{className:"mx_GroupView_featuredThing_deleteButton",src:n(789),width:"14",height:"14",alt:"Delete",onClick:this.onDeleteClicked}):i.a.createElement("div",null);return i.a.createElement(g.a,{className:"mx_GroupView_featuredThing",onClick:this.onClick},i.a.createElement(e,{name:t,url:a,width:64,height:64}),i.a.createElement("div",{className:"mx_GroupView_featuredThing_name"},r),s)}}R()(Bc,"propTypes",{summaryInfo:Mc.isRequired,editing:Se.a.bool.isRequired,groupId:Se.a.string.isRequired});class jc extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{summary:null,isGroupPublicised:null,isUserPrivileged:null,groupRooms:null,groupRoomsLoading:null,error:null,editing:!1,saving:!1,uploadingAvatar:!1,avatarChanged:!1,membershipBusy:!1,publicityBusy:!1,inviterProfile:null,showRightPanel:Dc.a.getSharedInstance().isOpenForGroup}),R()(this,"_onRightPanelStoreUpdate",()=>{this.setState({showRightPanel:Dc.a.getSharedInstance().isOpenForGroup})}),R()(this,"_onGroupMyMembership",e=>{this._unmounted||e.groupId!==this.props.groupId||("leave"===e.myMembership&&this._closeSettings(),this.setState({membershipBusy:!1}))}),R()(this,"onGroupStoreUpdated",e=>{if(this._unmounted)return;const t=Ni.a.getSummary(this.props.groupId);t.profile&&["avatar_url","long_description","name","short_description"].forEach(e=>{t.profile[e]=t.profile[e]||""}),this.setState({summary:t,summaryLoading:!Ni.a.isStateReady(this.props.groupId,Ni.a.STATE_KEY.Summary),isGroupPublicised:Ni.a.getGroupPublicity(this.props.groupId),isUserPrivileged:Ni.a.isUserPrivileged(this.props.groupId),groupRooms:Ni.a.getGroupRooms(this.props.groupId),groupRoomsLoading:!Ni.a.isStateReady(this.props.groupId,Ni.a.STATE_KEY.GroupRooms),isUserMember:Ni.a.getGroupMembers(this.props.groupId).some(e=>e.userId===this._matrixClient.credentials.userId)}),this.props.groupIsNew&&e&&this._onEditClick()}),R()(this,"_onEditClick",()=>{this.setState({editing:!0,profileForm:Object.assign({},this.state.summary.profile),joinableForm:{policyType:this.state.summary.profile.is_openly_joinable?"open":"invite"}})}),R()(this,"_onShareClick",()=>{const e=u.getComponent("dialogs.ShareDialog");Ie.a.createTrackedDialog("share community dialog","",e,{target:this._matrixClient.getGroup(this.props.groupId)||new Pe.e(this.props.groupId)})}),R()(this,"_onCancelClick",()=>{this._closeSettings()}),R()(this,"_onAction",e=>{switch(e.action){case"close_settings":this.setState({editing:!1,profileForm:null})}}),R()(this,"_closeSettings",()=>{d.a.dispatch({action:"close_settings"})}),R()(this,"_onNameChange",e=>{const t=Object.assign(this.state.profileForm,{name:e});this.setState({profileForm:t})}),R()(this,"_onShortDescChange",e=>{const t=Object.assign(this.state.profileForm,{short_description:e});this.setState({profileForm:t})}),R()(this,"_onLongDescChange",e=>{const t=Object.assign(this.state.profileForm,{long_description:e.target.value});this.setState({profileForm:t})}),R()(this,"_onAvatarSelected",e=>{const t=e.target.files[0];t&&(this.setState({uploadingAvatar:!0}),this._matrixClient.uploadContent(t).then(e=>{const t=Object.assign(this.state.profileForm,{avatar_url:e});this.setState({uploadingAvatar:!1,profileForm:t,avatarChanged:!0})}).catch(e=>{this.setState({uploadingAvatar:!1});const t=u.getComponent("dialogs.ErrorDialog");console.error("Failed to upload avatar image",e),Ie.a.createTrackedDialog("Failed to upload image","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Failed to upload image")})}))}),R()(this,"_onJoinableChange",e=>{this.setState({joinableForm:{policyType:e.target.value}})}),R()(this,"_onSaveClick",()=>{this.setState({saving:!0});(this.state.isUserPrivileged?this._saveGroup():Promise.resolve()).then(e=>{this.setState({saving:!1,editing:!1,summary:null}),this._initGroupStore(this.props.groupId),this.state.avatarChanged&&an.a.refreshGroupProfile(this._matrixClient,this.props.groupId)}).catch(e=>{this.setState({saving:!1});const t=u.getComponent("dialogs.ErrorDialog");console.error("Failed to save community profile",e),Ie.a.createTrackedDialog("Failed to update group","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Failed to update community")})}).finally(()=>{this.setState({avatarChanged:!1})})}),R()(this,"_onAcceptInviteClick",async()=>{this.setState({membershipBusy:!0}),await Object(ft.d)(500),Ni.a.acceptGroupInvite(this.props.groupId).then(()=>{}).catch(e=>{this.setState({membershipBusy:!1});const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Error accepting invite","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Unable to accept invite")})})}),R()(this,"_onRejectInviteClick",async()=>{this.setState({membershipBusy:!0}),await Object(ft.d)(500),Ni.a.leaveGroup(this.props.groupId).then(()=>{}).catch(e=>{this.setState({membershipBusy:!1});const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Error rejecting invite","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Unable to reject invite")})})}),R()(this,"_onJoinClick",async()=>{this._matrixClient.isGuest()?d.a.dispatch({action:"require_registration",screen_after:{screen:"group/"+this.props.groupId}}):(this.setState({membershipBusy:!0}),await Object(ft.d)(500),Ni.a.joinGroup(this.props.groupId).then(()=>{}).catch(e=>{this.setState({membershipBusy:!1});const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Error joining room","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Unable to join community")})}))}),R()(this,"_onLeaveClick",()=>{const e=u.getComponent("dialogs.QuestionDialog"),t=this._leaveGroupWarnings();Ie.a.createTrackedDialog("Leave Group","",e,{title:Object(c.a)("Leave Community"),description:i.a.createElement("span",null,Object(c.a)("Leave %(groupName)s?",{groupName:this.props.groupId}),t),button:Object(c.a)("Leave"),danger:this.state.isUserPrivileged,onFinished:async e=>{e&&(this.setState({membershipBusy:!0}),await Object(ft.d)(500),Ni.a.leaveGroup(this.props.groupId).then(()=>{}).catch(e=>{this.setState({membershipBusy:!1});const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Error leaving community","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Unable to leave community")})}))}})}),R()(this,"_onAddRoomsClick",()=>{Object(Ic.a)(this.props.groupId)})}componentDidMount(){this._unmounted=!1,this._matrixClient=X.a.get(),this._matrixClient.on("Group.myMembership",this._onGroupMyMembership),this._initGroupStore(this.props.groupId,!0),this._dispatcherRef=d.a.register(this._onAction),this._rightPanelStoreToken=Dc.a.getSharedInstance().addListener(this._onRightPanelStoreUpdate)}componentWillUnmount(){this._unmounted=!0,this._matrixClient.removeListener("Group.myMembership",this._onGroupMyMembership),d.a.unregister(this._dispatcherRef),this._rightPanelStoreToken&&this._rightPanelStoreToken.remove()}UNSAFE_componentWillReceiveProps(e){this.props.groupId!==e.groupId&&this.setState({summary:null,error:null},()=>{this._initGroupStore(e.groupId)})}_initGroupStore(e,t){const n=this._matrixClient.getGroup(e);n&&n.inviter&&n.inviter.userId&&this._fetchInviterProfile(n.inviter.userId),Ni.a.registerListener(e,this.onGroupStoreUpdated.bind(this,t));let o=!1;Ni.a.on("error",(t,n,r)=>{this._unmounted||e!==n||("M_GUEST_ACCESS_FORBIDDEN"!==t.errcode||o||(d.a.dispatch({action:"do_after_sync_prepared",deferred_action:{action:"view_group",group_id:e}}),d.a.dispatch({action:"require_registration",screen_after:{screen:"group/"+e}}),o=!0),r===Ni.a.STATE_KEY.Summary&&this.setState({summary:null,error:t,editing:!1}))})}_fetchInviterProfile(e){this.setState({inviterProfileBusy:!0}),this._matrixClient.getProfileInfo(e).then(e=>{this._unmounted||this.setState({inviterProfile:{avatarUrl:e.avatar_url,displayName:e.displayname}})}).catch(e=>{console.error("Error getting group inviter profile",e)}).finally(()=>{this._unmounted||this.setState({inviterProfileBusy:!1})})}async _saveGroup(){await this._matrixClient.setGroupProfile(this.props.groupId,this.state.profileForm),await this._matrixClient.setGroupJoinPolicy(this.props.groupId,{type:this.state.joinableForm.policyType})}_leaveGroupWarnings(){const e=[];return this.state.isUserPrivileged&&e.push(i.a.createElement("span",{className:"warning"}," ",Object(c.a)("You are an administrator of this community. You will not be able to rejoin without an invite from another administrator."))),e}_getGroupSection(){const e=M()({mx_GroupView_group:this.state.editing,mx_GroupView_group_disabled:this.state.editing&&!this.state.isUserPrivileged}),t=this.state.editing?i.a.createElement("h2",null," ",Object(c.a)("Community Settings")," "):i.a.createElement("div",null),o=Ae("community-settings");let r=null;o&&this.state.isUserPrivileged&&(r=i.a.createElement("div",{className:"mx_GroupView_hostingSignup"},Object(c.a)("Want more than a community? <a>Get your own server</a>",{},{a:e=>i.a.createElement("a",{href:o,target:"_blank",rel:"noreferrer noopener"},e)}),i.a.createElement("a",{href:o,target:"_blank",rel:"noreferrer noopener"},i.a.createElement("img",{src:n(713),width:"11",height:"10",alt:""}))));const a=this.state.editing&&this.state.isUserPrivileged?i.a.createElement("div",{className:"mx_GroupView_changeDelayWarning"},Object(c.a)("Changes made to your community <bold1>name</bold1> and <bold2>avatar</bold2> might not be seen by other users for up to 30 minutes.",{},{bold1:e=>i.a.createElement("b",null," ",e," "),bold2:e=>i.a.createElement("b",null," ",e," ")})):i.a.createElement("div",null);return i.a.createElement("div",{className:e},t,r,a,this._getJoinableNode(),this._getLongDescriptionNode(),this._getRoomsNode())}_getRoomsNode(){const e=u.getComponent("rooms.RoomDetailList"),t=u.getComponent("elements.AccessibleButton"),o=u.getComponent("elements.TintableSvg"),r=u.getComponent("elements.Spinner"),a=u.getComponent("elements.TooltipButton"),s=this.state.editing?i.a.createElement(a,{helpText:Object(c.a)("These rooms are displayed to community members on the community page. Community members can join the rooms by clicking on them.")}):i.a.createElement("div",null),l=this.state.editing?i.a.createElement(t,{className:"mx_GroupView_rooms_header_addRow",onClick:this._onAddRoomsClick},i.a.createElement("div",{className:"mx_GroupView_rooms_header_addRow_button"},i.a.createElement(o,{src:n(1380),width:"24",height:"24"})),i.a.createElement("div",{className:"mx_GroupView_rooms_header_addRow_label"},Object(c.a)("Add rooms to this community"))):i.a.createElement("div",null);return i.a.createElement("div",{className:"mx_GroupView_rooms"},i.a.createElement("div",{className:"mx_GroupView_rooms_header"},i.a.createElement("h3",null,Object(c.a)("Rooms"),s),l),this.state.groupRoomsLoading?i.a.createElement(r,null):i.a.createElement(e,{rooms:this.state.groupRooms}))}_getFeaturedRoomsNode(){const e=this.state.summary,t=[],n={};e.rooms_section.rooms.forEach(e=>{if(null===e.category_id)t.push(e);else{let t=n[e.category_id];void 0===t&&(t=[],n[e.category_id]=t),t.push(e)}});const o=i.a.createElement(Pc,{rooms:t,groupId:this.props.groupId,editing:this.state.editing}),r=Object.keys(n).map(t=>{const o=e.rooms_section.categories[t];return i.a.createElement(Pc,{key:t,rooms:n[t],category:o,groupId:this.props.groupId,editing:this.state.editing})});return i.a.createElement("div",{className:"mx_GroupView_featuredThings"},i.a.createElement("div",{className:"mx_GroupView_featuredThings_header"},Object(c.a)("Featured Rooms:")),o,r)}_getFeaturedUsersNode(){const e=this.state.summary,t=[],n={};e.users_section.users.forEach(e=>{if(null===e.role_id)t.push(e);else{let t=n[e.role_id];void 0===t&&(t=[],n[e.role_id]=t),t.push(e)}});const o=i.a.createElement(Uc,{users:t,groupId:this.props.groupId,editing:this.state.editing}),r=Object.keys(n).map(t=>{const o=e.users_section.roles[t];return i.a.createElement(Uc,{key:t,users:n[t],role:o,groupId:this.props.groupId,editing:this.state.editing})});return i.a.createElement("div",{className:"mx_GroupView_featuredThings"},i.a.createElement("div",{className:"mx_GroupView_featuredThings_header"},Object(c.a)("Featured Users:")),o,r)}_getMembershipSection(){const e=u.getComponent("elements.Spinner"),t=u.getComponent("avatars.BaseAvatar"),n=this._matrixClient.getGroup(this.props.groupId);if(n&&"invite"===n.myMembership){if(this.state.membershipBusy||this.state.inviterProfileBusy)return i.a.createElement("div",{className:"mx_GroupView_membershipSection"},i.a.createElement(e,null));const o=this.state.inviterProfile?this._matrixClient.mxcUrlToHttp(this.state.inviterProfile.avatarUrl,36,36):null,r=n.inviter||{};let a=r.userId;return this.state.inviterProfile&&(a=this.state.inviterProfile.displayName||r.userId),i.a.createElement("div",{className:"mx_GroupView_membershipSection mx_GroupView_membershipSection_invited"},i.a.createElement("div",{className:"mx_GroupView_membershipSubSection"},i.a.createElement("div",{className:"mx_GroupView_membershipSection_description"},i.a.createElement(t,{url:o,name:a,width:36,height:36}),Object(c.a)("%(inviter)s has invited you to join this community",{inviter:a||Object(c.a)("Someone")})),i.a.createElement("div",{className:"mx_GroupView_membership_buttonContainer"},i.a.createElement(g.a,{className:"mx_GroupView_textButton mx_RoomHeader_textButton",onClick:this._onAcceptInviteClick},Object(c.a)("Accept")),i.a.createElement(g.a,{className:"mx_GroupView_textButton mx_RoomHeader_textButton",onClick:this._onRejectInviteClick},Object(c.a)("Decline")))))}let o,r,a,s,l;if((!n||"leave"===n.myMembership)&&this.state.summary&&this.state.summary.profile&&Boolean(this.state.summary.profile.is_openly_joinable))s=Object(c.a)("Join this community"),l=this._onJoinClick,r="mx_GroupView_joinButton",o="mx_GroupView_membershipSection_leave";else{if(!n||"join"!==n.myMembership||!this.state.editing)return null;s=Object(c.a)("Leave this community"),l=this._onLeaveClick,a=this.state.isUserPrivileged?Object(c.a)("You are an administrator of this community"):Object(c.a)("You are a member of this community"),r={mx_GroupView_leaveButton:!0,mx_RoomHeader_textButton_danger:this.state.isUserPrivileged},o="mx_GroupView_membershipSection_joined"}const d=M()(["mx_RoomHeader_textButton","mx_GroupView_textButton"],r),h=M()("mx_GroupView_membershipSection",o);return i.a.createElement("div",{className:h},i.a.createElement("div",{className:"mx_GroupView_membershipSubSection"},this.state.membershipBusy?i.a.createElement(e,null):i.a.createElement("div",null),i.a.createElement("div",{className:"mx_GroupView_membership_buttonContainer"},i.a.createElement(g.a,{className:d,onClick:l,title:a},s))))}_getJoinableNode(){const e=u.getComponent("elements.InlineSpinner");return this.state.editing?i.a.createElement("div",null,i.a.createElement("h3",null,Object(c.a)("Who can join this community?"),this.state.groupJoinableLoading?i.a.createElement(e,null):i.a.createElement("div",null)),i.a.createElement("div",null,i.a.createElement("label",null,i.a.createElement("input",{type:"radio",value:"invite",checked:"invite"===this.state.joinableForm.policyType,onChange:this._onJoinableChange}),i.a.createElement("div",{className:"mx_GroupView_label_text"},Object(c.a)("Only people who have been invited")))),i.a.createElement("div",null,i.a.createElement("label",null,i.a.createElement("input",{type:"radio",value:"open",checked:"open"===this.state.joinableForm.policyType,onChange:this._onJoinableChange}),i.a.createElement("div",{className:"mx_GroupView_label_text"},Object(c.a)("Everyone"))))):null}_getLongDescriptionNode(){const e=this.state.summary;let t=null;e.profile&&e.profile.long_description?t=Object(ga.g)(e.profile.long_description):this.state.isUserPrivileged&&(t=i.a.createElement("div",{className:"mx_GroupView_groupDesc_placeholder",onClick:this._onEditClick},Object(c.a)("Your community hasn't got a Long Description, a HTML page to show to community members.<br />Click here to open settings and give it one!",{},{br:i.a.createElement("br",null)})));const n=M()({mx_GroupView_groupDesc:!0,mx_GroupView_groupDesc_disabled:!this.state.isUserPrivileged});return this.state.editing?i.a.createElement("div",{className:n},i.a.createElement("h3",null," ",Object(c.a)("Long Description (HTML)")," "),i.a.createElement("textarea",{value:this.state.profileForm.long_description,placeholder:Object(c.a)(Nc),onChange:this._onLongDescChange,tabIndex:"4",key:"editLongDesc"})):i.a.createElement("div",{className:"mx_GroupView_groupDesc"},t)}render(){const e=u.getComponent("avatars.GroupAvatar"),t=u.getComponent("elements.Spinner");if(this.state.summaryLoading&&null===this.state.error||this.state.saving)return i.a.createElement(t,null);if(this.state.summary&&!this.state.error){const o=this.state.summary;let r,s,l;const d=[];if(this.state.editing&&this.state.isUserPrivileged){let e;if(this.state.uploadingAvatar)e=i.a.createElement(t,null);else{const t=u.getComponent("avatars.GroupAvatar");e=i.a.createElement(t,{groupId:this.props.groupId,groupName:this.state.profileForm.name,groupAvatarUrl:this.state.profileForm.avatar_url,width:28,height:28,resizeMethod:"crop"})}r=i.a.createElement("div",{className:"mx_GroupView_avatarPicker"},i.a.createElement("label",{htmlFor:"avatarInput",className:"mx_GroupView_avatarPicker_label"},e),i.a.createElement("div",{className:"mx_GroupView_avatarPicker_edit"},i.a.createElement("label",{htmlFor:"avatarInput",className:"mx_GroupView_avatarPicker_label"},i.a.createElement("img",{src:n(1381),alt:Object(c.a)("Upload avatar"),title:Object(c.a)("Upload avatar"),width:"17",height:"15"})),i.a.createElement("input",{id:"avatarInput",className:"mx_GroupView_uploadInput",type:"file",onChange:this._onAvatarSelected})));const o=u.getComponent("elements.EditableText");s=i.a.createElement(o,{className:"mx_GroupView_editable",placeholderClassName:"mx_GroupView_placeholder",placeholder:Object(c.a)("Community Name"),blurToCancel:!1,initialValue:this.state.profileForm.name,onValueChanged:this._onNameChange,tabIndex:"0",dir:"auto"}),l=i.a.createElement(o,{className:"mx_GroupView_editable",placeholderClassName:"mx_GroupView_placeholder",placeholder:Object(c.a)("Description"),blurToCancel:!1,initialValue:this.state.profileForm.short_description,onValueChanged:this._onShortDescChange,tabIndex:"0",dir:"auto"})}else{const t=this.state.isUserMember?this._onEditClick:null,n=o.profile?o.profile.avatar_url:null,a=o.profile?o.profile.name:null;r=i.a.createElement(e,{groupId:this.props.groupId,groupAvatarUrl:n,groupName:a,onClick:t,width:28,height:28}),s=o.profile&&o.profile.name?i.a.createElement("div",{onClick:t},i.a.createElement("span",null,o.profile.name),i.a.createElement("span",{className:"mx_GroupView_header_groupid"},"(",this.props.groupId,")")):i.a.createElement("span",{onClick:t},this.props.groupId),o.profile&&o.profile.short_description&&(l=i.a.createElement("span",{onClick:t},o.profile.short_description))}this.state.editing?(d.push(i.a.createElement(g.a,{className:"mx_GroupView_textButton mx_RoomHeader_textButton",key:"_saveButton",onClick:this._onSaveClick},Object(c.a)("Save"))),d.push(i.a.createElement(g.a,{className:"mx_RoomHeader_cancelButton",key:"_cancelButton",onClick:this._onCancelClick},i.a.createElement("img",{src:n(219),className:"mx_filterFlipColor",width:"18",height:"18",alt:Object(c.a)("Cancel")})))):(o.user&&"join"===o.user.membership&&d.push(i.a.createElement(g.a,{className:"mx_GroupHeader_button mx_GroupHeader_editButton",key:"_editButton",onClick:this._onEditClick,title:Object(c.a)("Community Settings")})),d.push(i.a.createElement(g.a,{className:"mx_GroupHeader_button mx_GroupHeader_shareButton",key:"_shareButton",onClick:this._onShareClick,title:Object(c.a)("Share Community")})));const h=this.state.showRightPanel?i.a.createElement(Ac.a,{groupId:this.props.groupId}):void 0,p={mx_GroupView_header:!0,"light-panel":!0,mx_GroupView_header_view:!this.state.editing,mx_GroupView_header_isUserMember:this.state.isUserMember};return i.a.createElement("main",{className:"mx_GroupView"},i.a.createElement("div",{className:M()(p)},i.a.createElement("div",{className:"mx_GroupView_header_leftCol"},i.a.createElement("div",{className:"mx_GroupView_header_avatar"},r),i.a.createElement("div",{className:"mx_GroupView_header_info"},i.a.createElement("div",{className:"mx_GroupView_header_name"},s),i.a.createElement("div",{className:"mx_GroupView_header_shortDesc"},l))),i.a.createElement("div",{className:"mx_GroupView_header_rightCol"},d),i.a.createElement(Oi,null)),i.a.createElement(Rc.a,{panel:h,resizeNotifier:this.props.resizeNotifier},i.a.createElement(a.a,{className:"mx_GroupView_body"},this._getMembershipSection(),this._getGroupSection())))}if(this.state.error){if(404===this.state.error.httpStatus)return i.a.createElement("div",{className:"mx_GroupView_error"},Object(c.a)("Community %(groupId)s not found",{groupId:this.props.groupId}));{let e;return"M_UNRECOGNIZED"===this.state.error.errcode&&(e=i.a.createElement("div",null,Object(c.a)("This homeserver does not support communities"))),i.a.createElement("div",{className:"mx_GroupView_error"},Object(c.a)("Failed to load %(groupId)s",{groupId:this.props.groupId}),e)}}return console.error("Invalid state for GroupView"),i.a.createElement("div",null)}}R()(jc,"propTypes",{groupId:Se.a.string.isRequired,groupIsNew:Se.a.bool});var Gc=n(135),qc=n.n(Gc),Hc=n(276),Vc=n(126),zc=n(359);const Kc=["m.sticker","m.room.message"];const Wc=e=>"m.room.member"===e.getType()||"m.room.third_party_invite"===e.getType();class Yc extends i.a.Component{constructor(e){super(e),R()(this,"onShowTypingNotificationsChange",()=>{this.setState({showTypingNotifications:P.a.getValue("showTypingNotifications")})}),R()(this,"_isUnmounting",()=>!this._isMounted),R()(this,"_collectGhostReadMarker",e=>{e&&requestAnimationFrame(()=>{e.style.width="10%",e.style.opacity="0"})}),R()(this,"_onGhostTransitionEnd",e=>{const t=e.target.dataset.eventid;this.setState({ghostReadMarkers:this.state.ghostReadMarkers.filter(e=>e!==t)})}),R()(this,"_collectEventNode",(e,t)=>{this.eventNodes[e]=t}),R()(this,"_onHeightChanged",()=>{const e=this._scrollPanel.current;e&&e.checkScroll()}),R()(this,"_onTypingShown",()=>{const e=this._scrollPanel.current;e.checkScroll(),e&&e.getScrollState().stuckAtBottom&&e.preventShrinking()}),R()(this,"_onTypingHidden",()=>{const e=this._scrollPanel.current;e&&(e.updatePreventShrinking(),e.checkScroll())}),this.state={ghostReadMarkers:[],showTypingNotifications:P.a.getValue("showTypingNotifications")},this._readReceiptMap={},this._readReceiptsByEvent={},this._readReceiptsByUserId={},this._showHiddenEventsInTimeline=P.a.getValue("showHiddenEventsInTimeline"),this._isMounted=!1,this._readMarkerNode=Object(r.createRef)(),this._whoIsTyping=Object(r.createRef)(),this._scrollPanel=Object(r.createRef)(),this._showTypingNotificationsWatcherRef=P.a.watchSetting("showTypingNotifications",null,this.onShowTypingNotificationsChange)}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1,P.a.unwatchSetting(this._showTypingNotificationsWatcherRef)}componentDidUpdate(e,t){if(e.readMarkerVisible&&this.props.readMarkerEventId!==e.readMarkerEventId){const t=this.state.ghostReadMarkers;t.push(e.readMarkerEventId),this.setState({ghostReadMarkers:t})}}getNodeForEventId(e){if(this.eventNodes)return this.eventNodes[e]}isAtBottom(){return this._scrollPanel.current&&this._scrollPanel.current.isAtBottom()}getScrollState(){return this._scrollPanel.current?this._scrollPanel.current.getScrollState():null}getReadMarkerPosition(){const e=this._readMarkerNode.current,t=this._scrollPanel.current;if(!e||!t)return null;const n=qc.a.findDOMNode(t).getBoundingClientRect(),o=e.getBoundingClientRect();return o.bottom+2<n.top?-1:o.top<n.bottom?0:1}scrollToTop(){this._scrollPanel.current&&this._scrollPanel.current.scrollToTop()}scrollToBottom(){this._scrollPanel.current&&this._scrollPanel.current.scrollToBottom()}scrollRelative(e){this._scrollPanel.current&&this._scrollPanel.current.scrollRelative(e)}handleScrollKey(e){this._scrollPanel.current&&this._scrollPanel.current.handleScrollKey(e)}scrollToEvent(e,t,n){this._scrollPanel.current&&this._scrollPanel.current.scrollToToken(e,t,n)}scrollToEventIfNeeded(e){const t=this.eventNodes[e];t&&t.scrollIntoView({block:"nearest",behavior:"instant"})}checkFillState(){this._scrollPanel.current&&this._scrollPanel.current.checkFillState()}_shouldShowEvent(e){return(!e.sender||!X.a.get().isUserIgnored(e.sender.userId))&&(!!this._showHiddenEventsInTimeline||!!Object(ut.b)(e)&&(this.props.highlightedEventId===e.getId()||!Object(Hc.a)(e)))}_readMarkerForEvent(e,t){const n=!t&&this.props.readMarkerVisible;if(this.props.readMarkerEventId===e){let t;return n&&(t=i.a.createElement("hr",{className:"mx_RoomView_myReadMarker",style:{opacity:1,width:"99%"}})),i.a.createElement("li",{key:"readMarker_"+e,ref:this._readMarkerNode,className:"mx_RoomView_myReadMarker_container","data-scroll-tokens":e},t)}if(this.state.ghostReadMarkers.includes(e)){const t=i.a.createElement("hr",{className:"mx_RoomView_myReadMarker",ref:this._collectGhostReadMarker,onTransitionEnd:this._onGhostTransitionEnd,"data-eventid":e});return i.a.createElement("li",{key:"_readuptoghost_"+e,className:"mx_RoomView_myReadMarker_container"},t)}return null}_getEventTiles(){let e,t;this.eventNodes={};let n=-1;for(e=this.props.events.length-1;e>=0;e--){const o=this.props.events[e];if(this._shouldShowEvent(o)&&(void 0===t&&(t=o),!o.status)){n=e;break}}const o=[];let r=null;this._readReceiptsByEvent={},this.props.showReadReceipts&&(this._readReceiptsByEvent=this._getReadReceiptsByShownEvent());let i=null;for(e=0;e<this.props.events.length;e++){const a=this.props.events[e],s=a.getId(),c=a===t;if(i){if(i.shouldGroup(a)){i.add(a);continue}o.push(...i.getTiles()),r=i.getNewPrevEvent(),i=null}for(const e of Xc)e.canStartGroup(this,a)&&(i=new e(this,a,r,t));if(!i){if(this._shouldShowEvent(a)){const t=e<this.props.events.length-1?this.props.events[e+1]:null;o.push(...this._getTilesForEvent(r,a,c,t)),r=a}const t=this._readMarkerForEvent(s,e>=n);t&&o.push(t)}}return i&&o.push(...i.getTiles()),o}_getTilesForEvent(e,t,n,o){const r=u.getComponent("messages.TileErrorBoundary"),a=u.getComponent("rooms.EventTile"),s=u.getComponent("messages.DateSeparator"),c=[],l=this.props.editState&&this.props.editState.getEvent().getId()===t.getId();let d=t.getTs(),h=t.getDate();t.status&&(h=new Date,d=h.getTime());const p=this._wantsDateSeparator(e,h);if(p){const e=i.a.createElement("li",{key:d},i.a.createElement(s,{key:d,ts:d}));c.push(e)}let m=!1;o&&(m=this._wantsDateSeparator(t,o.getDate()||new Date));const g=!p&&function(e,t){return!!(e&&e.sender&&t.sender)&&(!(t.getTs()-e.getTs()>3e5)&&(!!(t.getType()===e.getType()||Kc.includes(t.getType())&&Kc.includes(e.getType()))&&(t.sender.userId===e.sender.userId&&t.sender.name===e.sender.name&&t.sender.getMxcAvatarUrl()===e.sender.getMxcAvatarUrl()&&!!Object(ut.b)(e))))}(e,t),f=t.getId(),_=f===this.props.highlightedEventId,b=t.status?void 0:f,v=this._readReceiptsByEvent[f];return c.push(i.a.createElement("li",{key:t.getTxnId()||f,ref:this._collectEventNode.bind(this,f),"data-scroll-tokens":b},i.a.createElement(r,{mxEvent:t},i.a.createElement(a,{mxEvent:t,continuation:g,isRedacted:t.isRedacted(),replacingEventId:t.replacingEventId(),editState:l&&this.props.editState,onHeightChanged:this._onHeightChanged,readReceipts:v,readReceiptMap:this._readReceiptMap,showUrlPreview:this.props.showUrlPreview,checkUnmounting:this._isUnmounting,eventSendStatus:t.getAssociatedStatus(),tileShape:this.props.tileShape,isTwelveHour:this.props.isTwelveHour,permalinkCreator:this.props.permalinkCreator,last:n,lastInSection:m,isSelectedEvent:_,getRelationsForEvent:this.props.getRelationsForEvent,showReactions:this.props.showReactions,useIRCLayout:this.props.useIRCLayout,enableFlair:this.props.enableFlair})))),c}_wantsDateSeparator(e,t){return null==e?!this.props.suppressFirstDateSeparator:Object(Vc.e)(e.getDate(),t)}_getReadReceiptsForEvent(e){const t=X.a.get().credentials.userId,{room:n}=this.props;if(!n)return null;const o=[];return n.getReceiptsForEvent(e).forEach(e=>{if(!e.userId||"m.read"!==e.type||e.userId===t)return;if(X.a.get().isUserIgnored(e.userId))return;const r=n.getMember(e.userId);o.push({userId:e.userId,roomMember:r,ts:e.data?e.data.ts:0})}),o}_getReadReceiptsByShownEvent(){const e={},t={};let n;for(const o of this.props.events){if(this._shouldShowEvent(o)&&(n=o.getId()),!n)continue;const r=e[n]||[],i=this._getReadReceiptsForEvent(o);e[n]=r.concat(i);for(const e of i)t[e.userId]={lastShownEventId:n,receipt:e}}for(const n in this._readReceiptsByUserId){if(t[n])continue;const{lastShownEventId:o,receipt:r}=this._readReceiptsByUserId[n],i=e[o]||[];e[o]=i.concat(r),t[n]={lastShownEventId:o,receipt:r}}this._readReceiptsByUserId=t;for(const t in e)e[t].sort((e,t)=>t.ts-e.ts);return e}updateTimelineMinHeight(){const e=this._scrollPanel.current;if(e){const t=e.isAtBottom(),n=this._whoIsTyping.current,o=n&&n.isVisible();t&&o&&e.preventShrinking()}}onTimelineReset(){const e=this._scrollPanel.current;e&&e.clearPreventShrinking()}render(){const e=u.getComponent("elements.ErrorBoundary"),t=u.getComponent("structures.ScrollPanel"),n=u.getComponent("rooms.WhoIsTypingTile"),o=u.getComponent("elements.Spinner");let r,a;this.props.backPaginating&&(r=i.a.createElement("li",{key:"_topSpinner"},i.a.createElement(o,null))),this.props.forwardPaginating&&(a=i.a.createElement("li",{key:"_bottomSpinner"},i.a.createElement(o,null)));const s=this.props.hidden?{display:"none"}:{},c=M()(this.props.className,{mx_MessagePanel_alwaysShowTimestamps:this.props.alwaysShowTimestamps});let l;this.props.room&&!this.props.tileShape&&this.state.showTypingNotifications&&(l=i.a.createElement(n,{room:this.props.room,onShown:this._onTypingShown,onHidden:this._onTypingHidden,ref:this._whoIsTyping}));let d=null;return this.props.useIRCLayout&&(d=i.a.createElement(ur,{minWidth:20,maxWidth:600,roomId:this.props.room?this.props.room.roomId:null})),i.a.createElement(e,null,i.a.createElement(t,{ref:this._scrollPanel,className:c,onScroll:this.props.onScroll,onResize:this.onResize,onFillRequest:this.props.onFillRequest,onUnfillRequest:this.props.onUnfillRequest,style:s,stickyBottom:this.props.stickyBottom,resizeNotifier:this.props.resizeNotifier,fixedChildren:d},r,this._getEventTiles(),l,a))}}R()(Yc,"propTypes",{hidden:Se.a.bool,backPaginating:Se.a.bool,forwardPaginating:Se.a.bool,events:Se.a.array.isRequired,highlightedEventId:Se.a.string,room:Se.a.object,showUrlPreview:Se.a.bool,readMarkerEventId:Se.a.string,readMarkerVisible:Se.a.bool,ourUserId:Se.a.string,suppressFirstDateSeparator:Se.a.bool,showReadReceipts:Se.a.bool,stickyBottom:Se.a.bool,onScroll:Se.a.func,onFillRequest:Se.a.func,className:Se.a.string.isRequired,tileShape:Se.a.string,isTwelveHour:Se.a.bool,alwaysShowTimestamps:Se.a.bool,getRelationsForEvent:Se.a.func,showReactions:Se.a.bool,useIRCLayout:Se.a.bool,enableFlair:Se.a.bool});class $c{constructor(e,t,n,o){this.panel=e,this.createEvent=t,this.prevEvent=n,this.lastShownEvent=o,this.events=[],this.ejectedEvents=[],this.readMarker=e._readMarkerForEvent(t.getId(),t===o)}shouldGroup(e){const t=this.panel,n=this.createEvent;return!t._shouldShowEvent(e)||!t._wantsDateSeparator(this.createEvent,e.getDate())&&(("m.room.member"!==e.getType()||e.getStateKey()===n.getSender()&&"join"===e.getContent().membership)&&!(!e.isState()||e.getSender()!==n.getSender()))}add(e){const t=this.panel;this.readMarker=this.readMarker||t._readMarkerForEvent(e.getId(),e===this.lastShownEvent),t._shouldShowEvent(e)&&("m.room.encryption"===e.getType()?this.ejectedEvents.push(e):this.events.push(e))}getTiles(){if(!this.events||!this.events.length)return[];const e=u.getComponent("messages.DateSeparator"),t=u.getComponent("views.elements.EventListSummary"),n=this.panel,o=[],r=this.createEvent,a=this.lastShownEvent;if(n._wantsDateSeparator(this.prevEvent,r.getDate())){const t=r.getTs();o.push(i.a.createElement("li",{key:t+"~"},i.a.createElement(e,{key:t+"~",ts:t})))}n._shouldShowEvent(r)&&o.push(...n._getTilesForEvent(r,r,!1));for(const e of this.ejectedEvents)o.push(...n._getTilesForEvent(r,e,r===a));const s=this.events.map(e=>n._getTilesForEvent(e,e,e===a)).reduce((e,t)=>e.concat(t),[]),l=this.events[this.events.length-1];let d;const h=l.getRoomId(),p=l.sender?l.sender.name:l.getSender();return d=qr.a.shared().getUserIdForRoomId(h)?Object(c.a)("%(creator)s created this DM.",{creator:p}):Object(c.a)("%(creator)s created and configured the room.",{creator:p}),o.push(i.a.createElement(oc.a,{key:"newroomintro"})),o.push(i.a.createElement(t,{key:"roomcreationsummary",events:this.events,onToggle:n._onHeightChanged,summaryMembers:[l.sender],summaryText:d},s)),this.readMarker&&o.push(this.readMarker),o}getNewPrevEvent(){return this.createEvent}}R()($c,"canStartGroup",(function(e,t){return"m.room.create"===t.getType()}));class Qc{constructor(e,t,n,o){this.panel=e,this.readMarker=e._readMarkerForEvent(t.getId(),t===o),this.events=[t],this.prevEvent=n,this.lastShownEvent=o}shouldGroup(e){return!this.panel._wantsDateSeparator(this.events[0],e.getDate())&&Wc(e)}add(e){if("m.room.member"===e.getType()){const t=Object(zc.a)(e);if(!t||0===t.trim().length)return}this.readMarker=this.readMarker||this.panel._readMarkerForEvent(e.getId(),e===this.lastShownEvent),this.events.push(e)}getTiles(){if(!this.events||!this.events.length)return[];const e=u.getComponent("messages.DateSeparator"),t=u.getComponent("views.elements.MemberEventListSummary"),n=this.panel,o=this.lastShownEvent,r=[];if(n._wantsDateSeparator(this.prevEvent,this.events[0].getDate())){const t=this.events[0].getTs();r.push(i.a.createElement("li",{key:t+"~"},i.a.createElement(e,{key:t+"~",ts:t})))}const a="membereventlistsummary-"+(this.prevEvent?this.events[0].getId():"initial");let s,c=this.events.map(e=>(e.getId()===n.props.highlightedEventId&&(s=!0),n._getTilesForEvent(e,e,e===o))).reduce((e,t)=>e.concat(t),[]);return 0===c.length&&(c=null),r.push(i.a.createElement(t,{key:a,events:this.events,onToggle:n._onHeightChanged,startExpanded:s},c)),this.readMarker&&r.push(this.readMarker),r}getNewPrevEvent(){return this.events[0]}}R()(Qc,"canStartGroup",(function(e,t){return e._shouldShowEvent(t)&&Wc(t)}));const Xc=[$c,Qc];class Jc extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{groups:null,error:null}),R()(this,"_onCreateGroupClick",()=>{d.a.dispatch({action:"view_create_group"})})}componentDidMount(){this._fetch()}_fetch(){this.context.getJoinedGroups().then(e=>{this.setState({groups:e.groups,error:null})},e=>{"M_GUEST_ACCESS_FORBIDDEN"!==e.errcode?this.setState({groups:null,error:e}):this.setState({groups:[],error:null})})}render(){const e=l.a.get().brand,t=u.getComponent("elements.Spinner"),o=u.getComponent("rooms.SimpleRoomHeader"),r=u.getComponent("groups.GroupTile");let s,d;if(this.state.groups){const t=[];this.state.groups.forEach(e=>{t.push(i.a.createElement(r,{key:e,groupId:e}))}),d=t.length>0?i.a.createElement("h3",null,Object(c.a)("Your Communities")):i.a.createElement("div",null),s=t.length>0?i.a.createElement(a.a,{className:"mx_MyGroups_scrollable"},i.a.createElement("div",{className:"mx_MyGroups_microcopy"},i.a.createElement("p",null,Object(c.a)("Did you know: you can use communities to filter your %(brand)s experience!",{brand:e})),i.a.createElement("p",null,Object(c.a)("To set up a filter, drag a community avatar over to the filter panel on the far left hand side of the screen. You can click on an avatar in the filter panel at any time to see only the rooms and people associated with that community."))),i.a.createElement("div",{className:"mx_MyGroups_joinedGroups"},t)):i.a.createElement("div",{className:"mx_MyGroups_placeholder"},Object(c.a)("You're not currently a member of any communities."))}else s=this.state.error?i.a.createElement("div",{className:"mx_MyGroups_error"},Object(c.a)("Error whilst fetching joined communities")):i.a.createElement(t,null);return i.a.createElement("div",{className:"mx_MyGroups"},i.a.createElement(o,{title:Object(c.a)("Communities"),icon:n(1382)}),i.a.createElement("div",{className:"mx_MyGroups_header"},i.a.createElement("div",{className:"mx_MyGroups_headerCard"},i.a.createElement(g.a,{className:"mx_MyGroups_headerCard_button",onClick:this._onCreateGroupClick}),i.a.createElement("div",{className:"mx_MyGroups_headerCard_content"},i.a.createElement("div",{className:"mx_MyGroups_headerCard_header"},Object(c.a)("Create a new community")),Object(c.a)("Create a community to group together users and rooms! Build a custom homepage to mark out your space in the Matrix universe.")))),i.a.createElement("div",{className:"mx_MyGroups_content"},d,s))}}R()(Jc,"contextType",b.a);class Zc extends i.a.Component{render(){const e=u.getComponent("structures.TimelinePanel"),t=u.getComponent("elements.Spinner"),n=i.a.createElement("div",{className:"mx_RightPanel_empty mx_NotificationPanel_empty"},i.a.createElement("h2",null,Object(c.a)("Youre all caught up")),i.a.createElement("p",null,Object(c.a)("You have no visible notifications.")));let o;const r=X.a.get().getNotifTimelineSet();return r?o=i.a.createElement(e,{manageReadReceipts:!1,manageReadMarkers:!1,timelineSet:r,showUrlPreview:!1,tileShape:"notif",empty:n}):(console.error("No notifTimelineSet available!"),o=i.a.createElement(t,null)),i.a.createElement(ci.b,{className:"mx_NotificationPanel",onClose:this.props.onClose,withoutScrollContainer:!0},o)}}R()(Zc,"propTypes",{onClose:Se.a.func.isRequired});var el=Zc;function tl(e,t){if(!t)return null;for(const n of Object.keys(e))if(e[n].instances||!(e[n].instances instanceof Array))for(const o of e[n].instances)if(o.instance_id==t)return o}function nl(e,t){if(!t)return null;for(const n of Object.keys(e))if(e[n].instances||!(e[n].instances instanceof Array))for(const o of e[n].instances)if(o.instance_id==t)return n}const ol=Symbol("ALL_ROOMS"),rl=Object(bo.a)({rules:[{key:"required",test:async({value:e})=>!!e,invalid:()=>Object(c.a)("Enter a server name")},{key:"available",final:!0,test:async({value:e})=>{try{const t={limit:1,server:e};return await X.a.get().publicRooms(t),!0}catch(e){return!1}},valid:()=>Object(c.a)("Looks good"),invalid:()=>Object(c.a)("Can't find this server or its room list")}]}),il=({onOptionChange:e,protocols:t={},selectedServerName:n,selectedInstanceId:a})=>{const[s,d,h,p]=Object(o.o)(),m=Cn("room_directory_servers"),[g,f]=Object(r.useState)(m),_=(t,n)=>()=>{e(t,n),p()},b=e=>{f(e),P.a.setValue("room_directory_servers",null,"account",e)};let v;if(Object(r.useEffect)(()=>{f(m)},[m]),s){const r=l.a.get().roomDirectory||{},s=X.a.getHomeserverName(),h=new Set(r.servers),m=new Set(g.filter(e=>!h.has(e)&&e!==s)),f=[s,...Array.from(h).filter(e=>e!==s).sort(),...Array.from(m).sort()],y=f.map(r=>{const l=r===n,d=[],h=r===s?Object.values(t):[];let g,v;if(h.length>0&&h.push({instances:[{instance_id:ol,desc:Object(c.a)("All rooms")}]}),h.forEach(({instances:e=[]})=>{[...e].sort((e,t)=>t.desc.localeCompare(e.desc)).forEach(({desc:e,instance_id:t})=>{d.push(i.a.createElement(o.h,{key:String(t),active:l&&t===a,onClick:_(r,t),label:e,className:"mx_NetworkDropdown_server_network"},e))})}),r===s&&(g=i.a.createElement("div",{className:"mx_NetworkDropdown_server_subtitle"},Object(c.a)("Your server"))),m.has(r)){const t=async()=>{p();const t=u.getComponent("dialogs.QuestionDialog"),{finished:n}=Ie.a.createTrackedDialog("Network Dropdown","Remove server",t,{title:Object(c.a)("Are you sure?"),description:Object(c.a)("Are you sure you want to remove <b>%(serverName)s</b>",{serverName:r},{b:e=>i.a.createElement("b",null,e)}),button:Object(c.a)("Remove"),fixedWidth:!1},"mx_NetworkDropdown_dialog"),[o]=await n;o&&(b(f.filter(e=>e!==r)),l===r&&e(s,void 0))};v=i.a.createElement(o.f,{onClick:t,label:Object(c.a)("Remove server")})}return i.a.createElement(o.e,{label:r,className:"mx_NetworkDropdown_server",key:r},i.a.createElement("div",{className:"mx_NetworkDropdown_server_title"},r,v),g,i.a.createElement(o.h,{active:l&&!a,onClick:_(r,void 0),label:Object(c.a)("Matrix"),className:"mx_NetworkDropdown_server_network"},Object(c.a)("Matrix")),d)}),S=async()=>{p();const t=u.getComponent("dialogs.TextInputDialog"),{finished:n}=Ie.a.createTrackedDialog("Network Dropdown","Add a new server",t,{title:Object(c.a)("Add a new server"),description:Object(c.a)("Enter the name of a new server you want to explore."),button:Object(c.a)("Add"),hasCancel:!1,placeholder:Object(c.a)("Server name"),validator:rl,fixedWidth:!1},"mx_NetworkDropdown_dialog"),[o,r]=await n;o&&(g.includes(r)||b([...g,r]),e(r))},T=d.current.getBoundingClientRect();v=i.a.createElement(o.b,Z()({},(E=T,{right:window.innerWidth-E.right,top:E.top,chevronOffset:0,chevronFace:"none"}),{onFinished:p}),i.a.createElement("div",{className:"mx_NetworkDropdown_menu"},y,i.a.createElement(o.f,{className:"mx_NetworkDropdown_server_add",label:void 0,onClick:S},Object(c.a)("Add a new server..."))))}else{let e;if(a===ol)e=Object(c.a)("All rooms");else if(a){const n=tl(t,a);e=Object(c.a)("%(networkName)s rooms",{networkName:n.desc})}else e=Object(c.a)("Matrix rooms");v=i.a.createElement(o.c,{className:"mx_NetworkDropdown_handle",onClick:h,isExpanded:s},i.a.createElement("span",null,e)," ",i.a.createElement("span",{className:"mx_NetworkDropdown_handle_server"},"(",n,")"))}var E;return i.a.createElement("div",{className:"mx_NetworkDropdown",ref:d},v)};il.propTypes={onOptionChange:Se.a.func.isRequired,protocols:Se.a.object};var al=il;function sl(e){E.a.trackEvent("RoomDirectory",e)}class cl extends i.a.Component{constructor(e){super(e),R()(this,"refreshRoomList",()=>{this.state.selectedCommunityId?this.setState({publicRooms:Ni.a.getGroupRooms(this.state.selectedCommunityId).map(e=>({room_id:e.roomId,name:e.name,topic:e.topic,canonical_alias:e.canonicalAlias,num_joined_members:e.numJoinedMembers,avatarUrl:e.avatarUrl,world_readable:e.worldReadable,guest_can_join:e.guestsCanJoin})).filter(e=>{const t=this.state.filterString;if(t){const n=e=>(e||"").toLowerCase().includes(t.toLowerCase());return n(e.name)||n(e.topic)||n(e.canonical_alias)}return!0}),loading:!1}):(this.nextBatch=null,this.setState({publicRooms:[],loading:!0}),this.getMoreRooms())}),R()(this,"onRoomClicked",(e,t)=>{t.shiftKey&&!this.state.selectedCommunityId?(t.preventDefault(),this.removeFromDirectory(e)):this.showRoom(e)}),R()(this,"onOptionChange",(e,t)=>{this.nextBatch=null,this.setState({publicRooms:[],roomServer:e,instanceId:t,error:null},this.refreshRoomList)}),R()(this,"onFillRequest",e=>e||!this.nextBatch?Promise.resolve(!1):this.getMoreRooms()),R()(this,"onFilterChange",e=>{this.setState({filterString:e||null}),this.filterTimeout&&clearTimeout(this.filterTimeout),this.filterTimeout=setTimeout(()=>{this.filterTimeout=null,this.refreshRoomList()},700)}),R()(this,"onFilterClear",()=>{this.setState({filterString:null},this.refreshRoomList),this.filterTimeout&&clearTimeout(this.filterTimeout)}),R()(this,"onJoinFromSearchClick",e=>{if(this.state.instanceId&&this.state.instanceId!==ol){const t=nl(this.protocols,this.state.instanceId),n=tl(this.protocols,this.state.instanceId),o=t?this._getFieldsForThirdPartyLocation(e,this.protocols[t],n):null;if(!o){const e=u.getComponent("dialogs.ErrorDialog"),t=l.a.get().brand;return void Ie.a.createTrackedDialog("Unable to join network","",e,{title:Object(c.a)("Unable to join network"),description:Object(c.a)("%(brand)s does not know how to join a room on this network",{brand:t})})}X.a.get().getThirdpartyLocation(t,o).then(e=>{if(e.length>0&&e[0].alias)this.showRoomAlias(e[0].alias,!0);else{const e=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Room not found","",e,{title:Object(c.a)("Room not found"),description:Object(c.a)("Couldn't find a matching Matrix room")})}},e=>{const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Fetching third party location failed","",t,{title:Object(c.a)("Fetching third party location failed"),description:Object(c.a)("Unable to look up room ID from server")})})}else-1==e.indexOf(":")&&(e=e+":"+this.state.roomServer),this.showRoomAlias(e,!0)}),R()(this,"onPreviewClick",(e,t)=>{this.showRoom(t,null,!1,!0),e.stopPropagation()}),R()(this,"onViewClick",(e,t)=>{this.showRoom(t),e.stopPropagation()}),R()(this,"onJoinClick",(e,t)=>{this.showRoom(t,null,!0),e.stopPropagation()}),R()(this,"onCreateRoomClick",e=>{this.onFinished(),d.a.dispatch({action:"view_create_room",public:!0})}),R()(this,"collectScrollPanel",e=>{this.scrollPanel=e}),R()(this,"handleScrollKey",e=>{this.scrollPanel&&this.scrollPanel.handleScrollKey(e)}),R()(this,"onFinished",()=>{y.a.instance.trackRoomDirectory(this.startTime),this.props.onFinished()}),y.a.instance.trackRoomDirectoryBegin(),this.startTime=y.a.getTimestamp();const t=A.a.getSelectedTags()[0];this.state={publicRooms:[],loading:!0,protocolsLoading:!0,error:null,instanceId:void 0,roomServer:X.a.getHomeserverName(),filterString:this.props.initialText||"",selectedCommunityId:P.a.getValue("feature_communities_v2_prototypes")?t:null,communityName:null},this._unmounted=!1,this.nextBatch=null,this.filterTimeout=null,this.scrollPanel=null,this.protocols=null,this.state.protocolsLoading=!0,X.a.get()?this.state.selectedCommunityId?(this.state.protocolsLoading=!1,an.a.getGroupProfileCached(X.a.get(),this.state.selectedCommunityId).then(e=>{this.setState({communityName:e.name})})):X.a.get().getThirdpartyProtocols().then(e=>{this.protocols=e,this.setState({protocolsLoading:!1})},e=>{if(console.warn("error loading third party protocols: "+e),this.setState({protocolsLoading:!1}),X.a.get().isGuest())return;sl("Failed to get protocol list from homeserver");const t=l.a.get().brand;this.setState({error:Object(c.a)("%(brand)s failed to get the protocol list from the homeserver. The homeserver may be too old to support third party networks.",{brand:t})})}):this.state.protocolsLoading=!1}componentDidMount(){this.refreshRoomList()}componentWillUnmount(){this.filterTimeout&&clearTimeout(this.filterTimeout),this._unmounted=!0}getMoreRooms(){if(this.state.selectedCommunityId)return Promise.resolve();if(!X.a.get())return Promise.resolve();this.setState({loading:!0});const e=this.state.filterString,t=this.state.roomServer,n=this.nextBatch,o={limit:20};return t!=X.a.getHomeserverName()&&(o.server=t),this.state.instanceId===ol?o.include_all_networks=!0:this.state.instanceId&&(o.third_party_instance_id=this.state.instanceId),this.nextBatch&&(o.since=this.nextBatch),e&&(o.filter={generic_search_term:e}),X.a.get().publicRooms(o).then(o=>{if(e==this.state.filterString&&t==this.state.roomServer&&n==this.nextBatch&&!this._unmounted){if(this.state.filterString){const e=o.total_room_count_estimate||o.chunk.length;y.a.instance.trackRoomDirectorySearch(e,this.state.filterString)}return this.nextBatch=o.next_batch,this.setState(e=>(e.publicRooms.push(...o.chunk||[]),e.loading=!1,e)),Boolean(o.next_batch)}},o=>{if(e!=this.state.filterString||t!=this.state.roomServer||n!=this.nextBatch)return;if(this._unmounted)return;console.error("Failed to get publicRooms: %s",JSON.stringify(o)),sl("Failed to get public room list");const r=l.a.get().brand;this.setState({loading:!1,error:Object(c.a)("%(brand)s failed to get the public room list.",{brand:r})+(o&&o.message)?o.message:Object(c.a)("The homeserver may be unavailable or overloaded.")})})}removeFromDirectory(e){const t=ll(e),n=e.name||t||Object(c.a)("Unnamed room"),o=u.getComponent("dialogs.QuestionDialog"),r=u.getComponent("dialogs.ErrorDialog");let i;i=t?Object(c.a)("Delete the room address %(alias)s and remove %(name)s from the directory?",{alias:t,name:n}):Object(c.a)("Remove %(name)s from the directory?",{name:n}),Ie.a.createTrackedDialog("Remove from Directory","",o,{title:Object(c.a)("Remove from Directory"),description:i,onFinished:o=>{if(!o)return;const i=u.getComponent("elements.Spinner"),a=Ie.a.createDialog(i);let s=Object(c.a)("remove %(name)s from the directory.",{name:n});X.a.get().setRoomDirectoryVisibility(e.room_id,"private").then(()=>{if(t)return s=Object(c.a)("delete the address."),X.a.get().deleteAlias(t)}).then(()=>{a.close(),this.refreshRoomList()},e=>{a.close(),this.refreshRoomList(),console.error("Failed to "+s+": "+e),Ie.a.createTrackedDialog("Remove from Directory Error","",r,{title:Object(c.a)("Error"),description:e&&e.message?e.message:Object(c.a)("The server may be unavailable or overloaded")})})}})}showRoomAlias(e,t=!1){this.showRoom(null,e,t)}showRoom(e,t,n=!1,o=!1){this.onFinished();const r={action:"view_room",auto_join:n,should_peek:o,_type:"room_directory"};if(e){if(X.a.get().isGuest()&&!e.world_readable&&!e.guest_can_join)return void d.a.dispatch({action:"require_registration"});t||(t=ll(e)),r.oob_data={avatarUrl:e.avatar_url,name:e.name||t||Object(c.a)("Unnamed room")},this.state.roomServer&&(r.via_servers=[this.state.roomServer],r.opts={viaServers:[this.state.roomServer]})}t?r.room_alias=t:r.room_id=e.room_id,d.a.dispatch(r)}getRow(e){const t=X.a.get(),n=t.getRoom(e.room_id),o=n&&"join"===n.getMyMembership(),r=t.isGuest(),a=u.getComponent("avatars.BaseAvatar"),s=u.getComponent("elements.AccessibleButton");let l,d;e.world_readable&&!o&&(l=i.a.createElement(s,{kind:"secondary",onClick:t=>this.onPreviewClick(t,e)},Object(c.a)("Preview"))),o?d=i.a.createElement(s,{kind:"secondary",onClick:t=>this.onViewClick(t,e)},Object(c.a)("View")):r&&!e.guest_can_join||(d=i.a.createElement(s,{kind:"primary",onClick:t=>this.onJoinClick(t,e)},Object(c.a)("Join")));let h=e.name||ll(e)||Object(c.a)("Unnamed room");h.length>80&&(h=h.substring(0,80)+"...");let p=e.topic||"";p.length>800&&(p=p.substring(0,800)+"..."),p=Object(ga.e)(p);const m=Object(ic.a)(X.a.get().getHomeserverUrl(),e.avatar_url,32,32,"crop");return i.a.createElement("tr",{key:e.room_id,onClick:t=>this.onRoomClicked(e,t),onMouseDown:e=>{e.preventDefault()}},i.a.createElement("td",{className:"mx_RoomDirectory_roomAvatar"},i.a.createElement(a,{width:32,height:32,resizeMethod:"crop",name:h,idName:h,url:m})),i.a.createElement("td",{className:"mx_RoomDirectory_roomDescription"},i.a.createElement("div",{className:"mx_RoomDirectory_name"},h)," ",i.a.createElement("div",{className:"mx_RoomDirectory_topic",onClick:e=>{e.stopPropagation()},dangerouslySetInnerHTML:{__html:p}}),i.a.createElement("div",{className:"mx_RoomDirectory_alias"},ll(e))),i.a.createElement("td",{className:"mx_RoomDirectory_roomMemberCount"},e.num_joined_members),i.a.createElement("td",{className:"mx_RoomDirectory_preview"},l),i.a.createElement("td",{className:"mx_RoomDirectory_join"},d))}_stringLooksLikeId(e,t){let n=/^#[^\s]+:[^\s]/;return t&&t.regexp&&(n=new RegExp(t.regexp)),n.test(e)}_getFieldsForThirdPartyLocation(e,t,n){const o=t.location_fields;if(!o)return null;const r={};for(let e=0;e<o.length-1;++e){const t=o[e];if(void 0===n.fields[t])return null;r[t]=n.fields[t]}return r[o[o.length-1]]=e,r}render(){const e=u.getComponent("elements.Spinner"),t=u.getComponent("views.dialogs.BaseDialog"),n=u.getComponent("elements.AccessibleButton");let o,r;if(this.state.error)o=this.state.error;else if(this.state.protocolsLoading)o=i.a.createElement(e,null);else{const t=(this.state.publicRooms||[]).map(e=>this.getRow(e));let n,r;this.state.loading&&(n=i.a.createElement(e,null)),r=0!==t.length||this.state.loading?i.a.createElement("table",{className:"mx_RoomDirectory_table"},i.a.createElement("tbody",null,t)):i.a.createElement("i",null,Object(c.a)("No rooms to show"));const a=u.getComponent("structures.ScrollPanel");o=i.a.createElement(a,{ref:this.collectScrollPanel,className:"mx_RoomDirectory_tableWrapper",onFillRequest:this.onFillRequest,stickyBottom:!1,startAtBottom:!1},r,n)}if(!this.state.protocolsLoading){const e=u.getComponent("directory.NetworkDropdown"),t=u.getComponent("elements.DirectorySearchBox"),n=nl(this.protocols,this.state.instanceId);let o;if(n&&this.protocols&&this.protocols[n]&&this.protocols[n].location_fields.length>0&&this.protocols[n].field_types){const e=this.protocols[n].location_fields.slice(-1)[0];o=this.protocols[n].field_types[e]}let a=Object(c.a)("Find a room…");this.state.instanceId&&this.state.instanceId!==ol?o&&(a=o.placeholder):a=Object(c.a)("Find a room… (e.g. %(exampleRoom)s)",{exampleRoom:"#example:"+this.state.roomServer});let s=this._stringLooksLikeId(this.state.filterString,o);if(n){const e=tl(this.protocols,this.state.instanceId);null===this._getFieldsForThirdPartyLocation(this.state.filterString,this.protocols[n],e)&&(s=!1)}let l=i.a.createElement(e,{protocols:this.protocols,onOptionChange:this.onOptionChange,selectedServerName:this.state.roomServer,selectedInstanceId:this.state.instanceId});this.state.selectedCommunityId&&(l=null),r=i.a.createElement("div",{className:"mx_RoomDirectory_listheader"},i.a.createElement(t,{className:"mx_RoomDirectory_searchbox",onChange:this.onFilterChange,onClear:this.onFilterClear,onJoinClick:this.onJoinFromSearchClick,placeholder:a,showJoinButton:s,initialText:this.props.initialText}),l)}const a=Object(c.a)("If you can't find the room you're looking for, ask for an invite or <a>Create a new room</a>.",null,{a:e=>i.a.createElement(n,{kind:"secondary",onClick:this.onCreateRoomClick},e)}),s=this.state.selectedCommunityId?Object(c.a)("Explore rooms in %(communityName)s",{communityName:this.state.communityName||this.state.selectedCommunityId}):Object(c.a)("Explore rooms");return i.a.createElement(t,{className:"mx_RoomDirectory_dialog",hasCancel:!0,onFinished:this.onFinished,title:s},i.a.createElement("div",{className:"mx_RoomDirectory"},a,i.a.createElement("div",{className:"mx_RoomDirectory_list"},r,o)))}}function ll(e){return e.canonical_alias||(e.aliases?e.aliases[0]:"")}R()(cl,"propTypes",{initialText:Se.a.string,onFinished:Se.a.func.isRequired});class ul{static resendUnsentEvents(e){e.getPendingEvents().filter((function(e){return e.status===Pe.b.NOT_SENT})).forEach((function(e){ul.resend(e)}))}static cancelUnsentEvents(e){e.getPendingEvents().filter((function(e){return e.status===Pe.b.NOT_SENT})).forEach((function(e){ul.removeFromQueue(e)}))}static resend(e){const t=X.a.get().getRoom(e.getRoomId());X.a.get().resendEvent(e,t).then((function(t){d.a.dispatch({action:"message_sent",event:e})}),(function(t){console.log("Resend got send failure: "+t.name+"("+t+")"),d.a.dispatch({action:"message_send_failed",event:e})}))}static removeFromQueue(e){X.a.get().cancelPendingEvent(e)}}function dl(e){return e?e.getPendingEvents().filter((function(e){return e.status===Pe.q.EventStatus.NOT_SENT})):[]}class hl extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{syncState:X.a.get().getSyncState(),syncStateData:X.a.get().getSyncStateData(),unsentMessages:dl(this.props.room)}),R()(this,"onSyncStateChange",(e,t,n)=>{"SYNCING"===e&&"SYNCING"===t||this.setState({syncState:e,syncStateData:n})}),R()(this,"_onResendAllClick",()=>{ul.resendUnsentEvents(this.props.room),d.a.fire(h.a.FocusComposer)}),R()(this,"_onCancelAllClick",()=>{ul.cancelUnsentEvents(this.props.room),d.a.fire(h.a.FocusComposer)}),R()(this,"_onRoomLocalEchoUpdated",(e,t,n,o)=>{t.roomId===this.props.room.roomId&&this.setState({unsentMessages:dl(this.props.room)})})}componentDidMount(){X.a.get().on("sync",this.onSyncStateChange),X.a.get().on("Room.localEchoUpdated",this._onRoomLocalEchoUpdated),this._checkSize()}componentDidUpdate(){this._checkSize()}componentWillUnmount(){const e=X.a.get();e&&(e.removeListener("sync",this.onSyncStateChange),e.removeListener("Room.localEchoUpdated",this._onRoomLocalEchoUpdated))}_checkSize(){this._getSize()?this.props.onVisible&&this.props.onVisible():this.props.onHidden&&this.props.onHidden()}_getSize(){return this._shouldShowConnectionError()?1:this.state.unsentMessages.length>0?2:0}_shouldShowConnectionError(){const e=Boolean(this.state.syncStateData&&this.state.syncStateData.error&&"M_RESOURCE_LIMIT_EXCEEDED"===this.state.syncStateData.error.errcode);return"ERROR"===this.state.syncState&&!e}_getUnsentMessageContent(){const e=this.state.unsentMessages;if(!e.length)return null;let t,o=null,r=null;for(const t of e){if(t.error&&"M_CONSENT_NOT_GIVEN"===t.error.errcode){o=t.error;break}if(t.error&&"M_RESOURCE_LIMIT_EXCEEDED"===t.error.errcode){r=t.error;break}}t=o?Object(c.a)("You can't send any messages until you review and agree to <consentLink>our terms and conditions</consentLink>.",{},{consentLink:e=>i.a.createElement("a",{href:o.data&&o.data.consent_uri,target:"_blank"},e)}):r?Object(zn.a)(r.data.limit_type,r.data.admin_contact,{monthly_active_user:Object(c.b)("Your message wasn't sent because this homeserver has hit its Monthly Active User Limit. Please <a>contact your service administrator</a> to continue using the service."),"":Object(c.b)("Your message wasn't sent because this homeserver has exceeded a resource limit. Please <a>contact your service administrator</a> to continue using the service.")}):1===e.length&&e[0].error&&e[0].error.data&&e[0].error.data.error?Object(zn.b)(e[0].error.data)||e[0].error.data.error:Object(c.a)("%(count)s of your messages have not been sent.",{count:e.length});const a=Object(c.a)("%(count)s <resendText>Resend all</resendText> or <cancelText>cancel all</cancelText> now. You can also select individual messages to resend or cancel.",{count:e.length},{resendText:e=>i.a.createElement("a",{className:"mx_RoomStatusBar_resend_link",key:"resend",onClick:this._onResendAllClick},e),cancelText:e=>i.a.createElement("a",{className:"mx_RoomStatusBar_resend_link",key:"cancel",onClick:this._onCancelAllClick},e)});return i.a.createElement("div",{className:"mx_RoomStatusBar_connectionLostBar"},i.a.createElement("img",{src:n(489),width:"24",height:"24",title:Object(c.a)("Warning"),alt:""}),i.a.createElement("div",null,i.a.createElement("div",{className:"mx_RoomStatusBar_connectionLostBar_title"},t),i.a.createElement("div",{className:"mx_RoomStatusBar_connectionLostBar_desc"},a)))}_getContent(){return this._shouldShowConnectionError()?i.a.createElement("div",{className:"mx_RoomStatusBar_connectionLostBar"},i.a.createElement("img",{src:n(489),width:"24",height:"24",title:"/!\\ ",alt:"/!\\ "}),i.a.createElement("div",null,i.a.createElement("div",{className:"mx_RoomStatusBar_connectionLostBar_title"},Object(c.a)("Connectivity to the server has been lost.")),i.a.createElement("div",{className:"mx_RoomStatusBar_connectionLostBar_desc"},Object(c.a)("Sent messages will be stored until your connection has returned.")))):this.state.unsentMessages.length>0?this._getUnsentMessageContent():null}render(){const e=this._getContent();return i.a.createElement("div",{className:"mx_RoomStatusBar"},i.a.createElement("div",{role:"alert"},e))}}R()(hl,"propTypes",{room:Se.a.object.isRequired,isPeeking:Se.a.bool,onResendAllClick:Se.a.func,onCancelAllClick:Se.a.func,onInviteClick:Se.a.func,onResize:Se.a.func,onHidden:Se.a.func,onVisible:Se.a.func});var pl=n(761);class ml extends i.a.Component{constructor(e){super(e),R()(this,"onAction",e=>{if(this.props.enableRoomSearchFocus)switch(e.action){case"view_room":this._search.current&&e.clear_search&&this._clearSearch();break;case"focus_room_filter":this._search.current&&this._search.current.focus()}}),R()(this,"onChange",()=>{this._search.current&&(this.setState({searchTerm:this._search.current.value}),this.onSearch())}),R()(this,"onSearch",Object(_r.throttle)(()=>{this.props.onSearch(this._search.current.value)},200,{trailing:!0,leading:!0})),R()(this,"_onKeyDown",e=>{switch(e.key){case gn.a.ESCAPE:this._clearSearch("keyboard")}this.props.onKeyDown&&this.props.onKeyDown(e)}),R()(this,"_onFocus",e=>{this.setState({blurred:!1}),e.target.select(),this.props.onFocus&&this.props.onFocus(e)}),R()(this,"_onBlur",e=>{this.setState({blurred:!0}),this.props.onBlur&&this.props.onBlur(e)}),this._search=Object(r.createRef)(),this.state={searchTerm:"",blurred:!0}}componentDidMount(){this.dispatcherRef=d.a.register(this.onAction)}componentWillUnmount(){d.a.unregister(this.dispatcherRef)}_clearSearch(e){this._search.current.value="",this.onChange(),this.props.onCleared&&this.props.onCleared(e)}render(){if(this.props.collapsed)return null;const e=!this.state.blurred||this.state.searchTerm?i.a.createElement(g.a,{key:"button",tabIndex:-1,className:"mx_SearchBox_closeButton",onClick:()=>{this._clearSearch("button")}}):void 0,t=this.state.blurred&&this.props.blurredPlaceholder||this.props.placeholder,n=this.props.className||"";return i.a.createElement("div",{className:M()("mx_SearchBox","mx_textinput",{mx_SearchBox_blurred:this.state.blurred})},i.a.createElement("input",{key:"searchfield",type:"text",ref:this._search,className:"mx_textinput_icon mx_textinput_search "+n,value:this.state.searchTerm,onFocus:this._onFocus,onChange:this.onChange,onKeyDown:this._onKeyDown,onBlur:this._onBlur,placeholder:t,autoComplete:"off"}),e)}}R()(ml,"propTypes",{onSearch:Se.a.func,onCleared:Se.a.func,onKeyDown:Se.a.func,className:Se.a.string,placeholder:Se.a.string.isRequired,enableRoomSearchFocus:Se.a.bool}),R()(ml,"defaultProps",{enableRoomSearchFocus:!1});var gl=n(762),fl=n(307);class _l extends i.a.Component{constructor(...e){super(...e),R()(this,"onAction",e=>{switch(e.action){case"upload_progress":case"upload_finished":case"upload_canceled":case"upload_failed":this.mounted&&this.forceUpdate()}})}componentDidMount(){this.dispatcherRef=d.a.register(this.onAction),this.mounted=!0}componentWillUnmount(){this.mounted=!1,d.a.unregister(this.dispatcherRef)}render(){const e=fl.a.sharedInstance().getCurrentUploads();if(0==e.length)return i.a.createElement("div",null);let t;for(let n=0;n<e.length;++n)if(e[n].roomId==this.props.room.roomId){t=e[n];break}if(!t)return i.a.createElement("div",null);const o={width:t.loaded/(t.total||1)*100+"%"};let r=Wr()(t.loaded);const a=Wr()(t.total);r.replace(/^.* /,"")===a.replace(/^.* /,"")&&(r=r.replace(/ .*/,""));const s=Object(c.a)("Uploading %(filename)s and %(count)s others",{filename:t.fileName,count:e.length-1});return i.a.createElement("div",{className:"mx_UploadBar"},i.a.createElement("div",{className:"mx_UploadBar_uploadProgressOuter"},i.a.createElement("div",{className:"mx_UploadBar_uploadProgressInner",style:o})),i.a.createElement("img",{className:"mx_UploadBar_uploadIcon mx_filterFlipColor",src:n(1383),width:"17",height:"22"}),i.a.createElement("img",{className:"mx_UploadBar_uploadCancel mx_filterFlipColor",src:n(219),width:"18",height:"18",onClick:function(){fl.a.sharedInstance().cancelUpload(t.promise)}}),i.a.createElement("div",{className:"mx_UploadBar_uploadBytes"},r," / ",a),i.a.createElement("div",{className:"mx_UploadBar_uploadFilename"},s))}}R()(_l,"propTypes",{room:Se.a.object});class bl extends i.a.Component{static get propTypes(){return{userId:Se.a.string}}constructor(e){super(e),this.state={}}componentDidMount(){this.props.userId&&this._loadProfileInfo()}componentDidUpdate(e){e.userId!==this.props.userId&&this.props.userId&&this._loadProfileInfo()}async _loadProfileInfo(){const e=X.a.get();let t;this.setState({loading:!0});try{t=await e.getProfileInfo(this.props.userId)}catch(e){const t=u.getComponent("dialogs.ErrorDialog");return Ie.a.createTrackedDialog(Object(c.a)("Could not load user profile"),"",t,{title:Object(c.a)("Could not load user profile"),description:e&&e.message?e.message:Object(c.a)("Operation failed")}),void this.setState({loading:!1})}const n=new Pe.q.MatrixEvent({type:"m.room.member",content:t}),o=new Pe.q.RoomMember(null,this.props.userId);o.setMembershipEvent(n),this.setState({member:o,loading:!1})}render(){if(this.state.loading){const e=u.getComponent("elements.Spinner");return i.a.createElement(e,null)}if(this.state.member){const e=u.getComponent("structures.RightPanel"),t=u.getComponent("structures.MainSplit"),n=i.a.createElement(e,{user:this.state.member});return i.a.createElement(t,{panel:n,resizeNotifier:this.props.resizeNotifier},i.a.createElement(O,null))}return i.a.createElement("div",null)}}var vl=n(790);class El extends i.a.Component{constructor(e){super(e),this._ref=this._ref.bind(this)}componentDidUpdate(){this._el&&Object(vl.highlightBlock)(this._el)}_ref(e){this._el=e,this.componentDidUpdate()}render(){const{className:e,children:t}=this.props;return i.a.createElement("pre",{className:e+" mx_SyntaxHighlight",ref:this._ref},i.a.createElement("code",null,t))}}R()(El,"propTypes",{className:Se.a.string,children:Se.a.node});class yl extends i.a.Component{render(){const e=u.getComponent("views.dialogs.BaseDialog");return i.a.createElement(e,{className:"mx_ViewSource",onFinished:this.props.onFinished,title:Object(c.a)("View Source")},i.a.createElement("div",{className:"mx_ViewSource_label_left"},"Room ID: ",this.props.roomId),i.a.createElement("div",{className:"mx_ViewSource_label_right"},"Event ID: ",this.props.eventId),i.a.createElement("div",{className:"mx_ViewSource_label_bottom"}),i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement(El,{className:"json"},JSON.stringify(this.props.content,null,2))))}}R()(yl,"propTypes",{content:Se.a.object.isRequired,onFinished:Se.a.func.isRequired,roomId:Se.a.string.isRequired,eventId:Se.a.string.isRequired});var Sl=n(486),Tl=n(485);class wl extends i.a.Component{constructor(){super(),R()(this,"_onStoreUpdate",()=>{const e=Sl.f.sharedInstance();this.setState({phase:e.phase})});const e=Sl.f.sharedInstance();e.on("update",this._onStoreUpdate),e.start(),this.state={phase:e.phase}}componentWillUnmount(){const e=Sl.f.sharedInstance();e.off("update",this._onStoreUpdate),e.stop()}render(){const e=u.getComponent("auth.AuthPage"),t=u.getComponent("auth.CompleteSecurityBody"),{phase:n}=this.state;let o,r;if(n===Sl.e)o=i.a.createElement("span",{className:"mx_CompleteSecurity_headerIcon mx_E2EIcon_warning"}),r=Object(c.a)("Verify this login");else if(n===Sl.c)o=i.a.createElement("span",{className:"mx_CompleteSecurity_headerIcon mx_E2EIcon_verified"}),r=Object(c.a)("Session verified");else if(n===Sl.b)o=i.a.createElement("span",{className:"mx_CompleteSecurity_headerIcon mx_E2EIcon_warning"}),r=Object(c.a)("Are you sure?");else{if(n!==Sl.a)throw new Error("Unknown phase "+n);o=i.a.createElement("span",{className:"mx_CompleteSecurity_headerIcon mx_E2EIcon_warning"}),r=Object(c.a)("Verify this login")}return i.a.createElement(e,null,i.a.createElement(t,null,i.a.createElement("h2",{className:"mx_CompleteSecurity_header"},o,r),i.a.createElement("div",{className:"mx_CompleteSecurity_body"},i.a.createElement(Tl.a,{onFinished:this.props.onFinished}))))}}R()(wl,"propTypes",{onFinished:Se.a.func.isRequired});class Cl extends i.a.PureComponent{render(){return i.a.createElement("div",{className:"mx_CompleteSecurityBody"},this.props.children)}}class xl extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{authError:null,uiaStage:null,uiaStagePhase:null}),R()(this,"_onAuthFinished",(e,t)=>{e?this.props.onFinished(!0,t):t===Ue?this.props.onFinished(!1,null):this.setState({authError:t})}),R()(this,"_onUpdateStagePhase",(e,t)=>{this.setState({uiaStage:e,uiaStagePhase:t})}),R()(this,"_onDismissClick",()=>{this.props.onFinished(!1)})}_getDefaultDialogAesthetics(){const e={[Le.c.PHASE_PREAUTH]:{title:Object(c.a)("Use Single Sign On to continue"),body:Object(c.a)("To continue, use Single Sign On to prove your identity."),continueText:Object(c.a)("Single Sign On"),continueKind:"primary"},[Le.c.PHASE_POSTAUTH]:{title:Object(c.a)("Confirm to continue"),body:Object(c.a)("Click the button below to confirm your identity."),continueText:Object(c.a)("Confirm"),continueKind:"primary"}};return{[Le.c.LOGIN_TYPE]:e,[Le.c.UNSTABLE_LOGIN_TYPE]:e}}render(){const e=u.getComponent("structures.InteractiveAuth"),t=u.getComponent("views.dialogs.BaseDialog");let n=this.state.authError?"Error":this.props.title||Object(c.a)("Authentication"),o=this.state.authError?null:this.props.body,r=null,a=null;const s=this.props.aestheticsForStagePhases||this._getDefaultDialogAesthetics();if(!this.state.authError&&s&&s[this.state.uiaStage]){const e=s[this.state.uiaStage][this.state.uiaStagePhase];e&&e.title&&(n=e.title),e&&e.body&&(o=e.body),e&&e.continueText&&(r=e.continueText),e&&e.continueKind&&(a=e.continueKind)}let l;return l=this.state.authError?i.a.createElement("div",{id:"mx_Dialog_content"},i.a.createElement("div",{role:"alert"},this.state.authError.message||this.state.authError.toString()),i.a.createElement("br",null),i.a.createElement(g.a,{onClick:this._onDismissClick,className:"mx_GeneralButton",autoFocus:"true"},Object(c.a)("Dismiss"))):i.a.createElement("div",{id:"mx_Dialog_content"},o,i.a.createElement(e,{ref:this._collectInteractiveAuth,matrixClient:this.props.matrixClient,authData:this.props.authData,makeRequest:this.props.makeRequest,onAuthFinished:this._onAuthFinished,onStagePhaseChange:this._onUpdateStagePhase,continueText:r,continueKind:a})),i.a.createElement(t,{className:"mx_InteractiveAuthDialog",onFinished:this.props.onFinished,title:n,contentId:"mx_Dialog_content"},l)}}R()(xl,"propTypes",{matrixClient:Se.a.object.isRequired,authData:Se.a.shape({flows:Se.a.array,params:Se.a.object,session:Se.a.string}),makeRequest:Se.a.func.isRequired,onFinished:Se.a.func.isRequired,title:Se.a.string,body:Se.a.string,aestheticsForStagePhases:Se.a.object});class Ol extends i.a.PureComponent{constructor(e){super(e),R()(this,"_doBootstrapUIAuth",async e=>{if(this.state.canUploadKeysWithPasswordOnly&&this.state.accountPassword)await e({type:"m.login.password",identifier:{type:"m.id.user",user:X.a.get().getUserId()},user:X.a.get().getUserId(),password:this.state.accountPassword});else{const t={[Le.c.PHASE_PREAUTH]:{title:Object(c.a)("Use Single Sign On to continue"),body:Object(c.a)("To continue, use Single Sign On to prove your identity."),continueText:Object(c.a)("Single Sign On"),continueKind:"primary"},[Le.c.PHASE_POSTAUTH]:{title:Object(c.a)("Confirm encryption setup"),body:Object(c.a)("Click the button below to confirm setting up encryption."),continueText:Object(c.a)("Confirm"),continueKind:"primary"}},{finished:n}=Ie.a.createTrackedDialog("Cross-signing keys dialog","",xl,{title:Object(c.a)("Setting up keys"),matrixClient:X.a.get(),makeRequest:e,aestheticsForStagePhases:{[Le.c.LOGIN_TYPE]:t,[Le.c.UNSTABLE_LOGIN_TYPE]:t}}),[o]=await n;if(!o)throw new Error("Cross-signing key upload auth canceled")}}),R()(this,"_bootstrapCrossSigning",async()=>{this.setState({error:null});const e=X.a.get();try{await e.bootstrapCrossSigning({authUploadDeviceSigningKeys:this._doBootstrapUIAuth}),this.props.onFinished(!0)}catch(e){this.setState({error:e}),console.error("Error bootstrapping cross-signing",e)}}),R()(this,"_onCancel",()=>{this.props.onFinished(!1)}),this.state={error:null,canUploadKeysWithPasswordOnly:null,accountPassword:e.accountPassword||""},this.state.accountPassword?this.state.canUploadKeysWithPasswordOnly=!0:this._queryKeyUploadAuth()}componentDidMount(){this._bootstrapCrossSigning()}async _queryKeyUploadAuth(){try{await X.a.get().uploadDeviceSigningKeys(null,{}),console.log("uploadDeviceSigningKeys unexpectedly succeeded without UI auth!")}catch(e){if(!e.data||!e.data.flows)return void console.log("uploadDeviceSigningKeys advertised no flows!");const t=e.data.flows.some(e=>1===e.stages.length&&"m.login.password"===e.stages[0]);this.setState({canUploadKeysWithPasswordOnly:t})}}render(){let e;return e=this.state.error?i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Unable to set up keys")),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement(Vo.a,{primaryButton:Object(c.a)("Retry"),onPrimaryButtonClick:this._bootstrapCrossSigning,onCancel:this._onCancel}))):i.a.createElement("div",null,i.a.createElement(We.a,null)),i.a.createElement(rn.a,{className:"mx_CreateCrossSigningDialog",onFinished:this.props.onFinished,title:Object(c.a)("Setting up keys"),hasCancel:!1,fixedWidth:!1},i.a.createElement("div",null,e))}}R()(Ol,"propTypes",{accountPassword:Se.a.string});class kl extends i.a.Component{render(){return i.a.createElement(_o,null,i.a.createElement(Cl,null,i.a.createElement(Ol,{onFinished:this.props.onFinished,accountPassword:this.props.accountPassword})))}}R()(kl,"propTypes",{onFinished:Se.a.func.isRequired,accountPassword:Se.a.string});class Rl{constructor(e,t){this.client=Pe.p({baseUrl:e,idBaseUrl:t}),this.clientSecret=this.client.generateClientSecret(),this.identityServerDomain=t?t.split("://")[1]:null}resetPassword(e,t){return this.password=t,this.client.requestPasswordEmailToken(e,this.clientSecret,1).then(e=>(this.sessionId=e.sid,e),(function(e){throw"M_THREEPID_NOT_FOUND"===e.errcode?e.message=Object(c.a)("This email address was not found"):e.httpStatus&&(e.message=e.message+` (Status ${e.httpStatus})`),e}))}async checkEmailLinkClicked(){const e={sid:this.sessionId,client_secret:this.clientSecret};try{await this.client.setPassword({type:"m.login.email.identity",threepid_creds:e,threepidCreds:e},this.password)}catch(e){throw 401===e.httpStatus?e.message=Object(c.a)("Failed to verify email address: make sure you clicked the link in the email"):404===e.httpStatus?e.message=Object(c.a)("Your email address does not appear to be associated with a Matrix ID on this Homeserver."):e.httpStatus&&(e.message+=` (Status ${e.httpStatus})`),e}}}class Al extends i.a.Component{constructor(e){super(e),R()(this,"state",{phase:1,email:"",password:"",password2:"",errorText:null,serverIsAlive:!0,serverErrorIsFatal:!1,serverDeadError:""}),R()(this,"onVerify",async e=>{if(e.preventDefault(),this.reset)try{await this.reset.checkEmailLinkClicked(),this.setState({phase:4})}catch(e){this.showErrorDialog(e.message)}else console.error("onVerify called before submitPasswordReset!")}),R()(this,"onSubmitForm",async e=>{if(e.preventDefault(),await this._checkServerLiveliness(this.props.serverConfig),this.state.email)if(this.state.password&&this.state.password2)if(this.state.password!==this.state.password2)this.showErrorDialog(Object(c.a)("New passwords must match each other."));else{const e=u.getComponent("dialogs.QuestionDialog");Ie.a.createTrackedDialog("Forgot Password Warning","",e,{title:Object(c.a)("Warning!"),description:i.a.createElement("div",null,Object(c.a)("Changing your password will reset any end-to-end encryption keys on all of your sessions, making encrypted chat history unreadable. Set up Key Backup or export your room keys from another session before resetting your password.")),button:Object(c.a)("Continue"),onFinished:e=>{e&&this.submitPasswordReset(this.state.email,this.state.password)}})}else this.showErrorDialog(Object(c.a)("A new password must be entered."));else this.showErrorDialog(Object(c.a)("The email address linked to your account must be entered."))}),R()(this,"onInputChanged",(e,t)=>{this.setState({[e]:t.target.value})}),R()(this,"onLoginClick",e=>{e.preventDefault(),e.stopPropagation(),this.props.onLoginClick()}),y.a.instance.track("onboarding_forgot_password_begin")}componentDidMount(){this.reset=null,this._checkServerLiveliness(this.props.serverConfig)}UNSAFE_componentWillReceiveProps(e){e.serverConfig.hsUrl===this.props.serverConfig.hsUrl&&e.serverConfig.isUrl===this.props.serverConfig.isUrl||this._checkServerLiveliness(e.serverConfig)}async _checkServerLiveliness(e){try{await go.b.validateServerConfigWithStaticUrls(e.hsUrl,e.isUrl),this.setState({serverIsAlive:!0})}catch(e){this.setState(go.b.authComponentStateForError(e,"forgot_password"))}}submitPasswordReset(e,t){this.setState({phase:2}),this.reset=new Rl(this.props.serverConfig.hsUrl,this.props.serverConfig.isUrl),this.reset.resetPassword(e,t).then(()=>{this.setState({phase:3})},e=>{this.showErrorDialog(Object(c.a)("Failed to send email")+": "+e.message),this.setState({phase:1})})}showErrorDialog(e,t){const n=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Forgot Password Error","",n,{title:t,description:e})}renderForgot(){const e=u.getComponent("elements.Field");let t=null;const n=this.state.errorText;let o;if(n&&(t=i.a.createElement("div",{className:"mx_Login_error"},n)),!this.state.serverIsAlive){const e=M()({mx_Login_error:!0,mx_Login_serverError:!0,mx_Login_serverErrorNonFatal:!this.state.serverErrorIsFatal});o=i.a.createElement("div",{className:e},this.state.serverDeadError)}return i.a.createElement("div",null,t,o,i.a.createElement(Po,{serverConfig:this.props.serverConfig,onServerConfigChange:this.props.onServerConfigChange}),i.a.createElement("form",{onSubmit:this.onSubmitForm},i.a.createElement("div",{className:"mx_AuthBody_fieldRow"},i.a.createElement(e,{name:"reset_email",type:"text",label:Object(c.a)("Email"),value:this.state.email,onChange:this.onInputChanged.bind(this,"email"),autoFocus:!0,onFocus:()=>y.a.instance.track("onboarding_forgot_password_email_focus"),onBlur:()=>y.a.instance.track("onboarding_forgot_password_email_blur")})),i.a.createElement("div",{className:"mx_AuthBody_fieldRow"},i.a.createElement(e,{name:"reset_password",type:"password",label:Object(c.a)("New Password"),value:this.state.password,onChange:this.onInputChanged.bind(this,"password"),onFocus:()=>y.a.instance.track("onboarding_forgot_password_newPassword_focus"),onBlur:()=>y.a.instance.track("onboarding_forgot_password_newPassword_blur"),autoComplete:"new-password"}),i.a.createElement(e,{name:"reset_password_confirm",type:"password",label:Object(c.a)("Confirm"),value:this.state.password2,onChange:this.onInputChanged.bind(this,"password2"),onFocus:()=>y.a.instance.track("onboarding_forgot_password_newPassword2_focus"),onBlur:()=>y.a.instance.track("onboarding_forgot_password_newPassword2_blur"),autoComplete:"new-password"})),i.a.createElement("span",null,Object(c.a)("A verification email will be sent to your inbox to confirm setting your new password.")),i.a.createElement("input",{className:"mx_Login_submit",type:"submit",value:Object(c.a)("Send Reset Email")})),i.a.createElement("a",{className:"mx_AuthBody_changeFlow",onClick:this.onLoginClick,href:"#"},Object(c.a)("Sign in instead")))}renderSendingEmail(){const e=u.getComponent("elements.Spinner");return i.a.createElement(e,null)}renderEmailSent(){return i.a.createElement("div",null,Object(c.a)("An email has been sent to %(emailAddress)s. Once you've followed the link it contains, click below.",{emailAddress:this.state.email}),i.a.createElement("br",null),i.a.createElement("input",{className:"mx_Login_submit",type:"button",onClick:this.onVerify,value:Object(c.a)("I have verified my email address")}))}renderDone(){return i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Your password has been reset.")),i.a.createElement("p",null,Object(c.a)("You have been logged out of all sessions and will no longer receive push notifications. To re-enable notifications, sign in again on each device.")),i.a.createElement("input",{className:"mx_Login_submit",type:"button",onClick:this.props.onComplete,value:Object(c.a)("Return to login screen")}))}render(){const e=u.getComponent("auth.AuthHeader"),t=u.getComponent("auth.AuthBody");let n;switch(this.state.phase){case 1:n=this.renderForgot();break;case 2:n=this.renderSendingEmail();break;case 3:n=this.renderEmailSent();break;case 4:n=this.renderDone()}return i.a.createElement(_o,null,i.a.createElement(e,null),i.a.createElement(t,null,i.a.createElement("h2",null," ",Object(c.a)("Set a new password")," "),n))}}R()(Al,"propTypes",{serverConfig:Se.a.instanceOf(go.a).isRequired,onServerConfigChange:Se.a.func.isRequired,onLoginClick:Se.a.func,onComplete:Se.a.func.isRequired});const Il=1,Dl=2,Nl=3,Fl=4,Ml=5,Pl={"m.login.password":Dl,"m.login.cas":Nl,"m.login.sso":Fl};class Ll extends i.a.Component{constructor(){super(),R()(this,"onClearAll",()=>{const e=u.getComponent("dialogs.ConfirmWipeDeviceDialog");Ie.a.createTrackedDialog("Clear Data","Soft Logout",e,{onFinished:e=>{e&&(console.log("Clearing data from soft-logged-out session"),Me.i())}})}),R()(this,"onPasswordChange",e=>{this.setState({password:e.target.value})}),R()(this,"onForgotPassword",()=>{d.a.dispatch({action:"start_password_recovery"})}),R()(this,"onPasswordLogin",async e=>{e.preventDefault(),e.stopPropagation(),this.setState({busy:!0});const t=X.a.get().getHomeserverUrl(),n=X.a.get().getIdentityServerUrl(),o={identifier:{type:"m.id.user",user:X.a.get().getUserId()},password:this.state.password,device_id:X.a.get().getDeviceId()};let r=null;try{r=await Object(mo.b)(t,n,"m.login.password",o)}catch(e){let t=Object(c.a)("Failed to re-authenticate due to a homeserver problem");return"M_FORBIDDEN"!==e.errcode||401!==e.httpStatus&&403!==e.httpStatus||(t=Object(c.a)("Incorrect password")),void this.setState({busy:!1,errorText:t})}Me.e(r).catch(e=>{console.error(e),this.setState({busy:!1,errorText:Object(c.a)("Failed to re-authenticate")})})}),this.state={loginView:Il,keyBackupNeeded:!0,busy:!1,password:"",errorText:""}}componentDidMount(){if(!Me.g())return void d.a.dispatch({action:"start_login"});this._initLogin();const e=X.a.get();e.isCryptoEnabled()&&e.countSessionsNeedingBackup().then(e=>{this.setState({keyBackupNeeded:e>0})})}async _initLogin(){const e=this.props.realQueryParams;if(e&&e.loginToken)return this.setState({loginView:Il}),void this.trySsoLogin();const t=X.a.get(),n=(await t.loginFlows()).flows,o=n.map(e=>Pl[e.type]).filter(e=>!!e)[0]||Ml;this.setState({flows:n,loginView:o})}async trySsoLogin(){this.setState({busy:!0});const e=localStorage.getItem(Bt.a),t=localStorage.getItem(Bt.b)||X.a.get().getIdentityServerUrl(),n={token:this.props.realQueryParams.loginToken,device_id:X.a.get().getDeviceId()};let o=null;try{o=await Object(mo.b)(e,t,"m.login.token",n)}catch(e){return console.error(e),void this.setState({busy:!1,loginView:Ml})}Me.e(o).then(()=>{this.props.onTokenLoginCompleted&&this.props.onTokenLoginCompleted()}).catch(e=>{console.error(e),this.setState({busy:!1,loginView:Ml})})}_renderSignInSection(){if(this.state.loginView===Il){const e=u.getComponent("elements.Spinner");return i.a.createElement(e,null)}let e=null;if(this.state.keyBackupNeeded&&(e=Object(c.a)("Regain access to your account and recover encryption keys stored in this session. Without them, you wont be able to read all of your secure messages in any session.")),this.state.loginView===Dl){const t=u.getComponent("elements.Field"),n=u.getComponent("elements.AccessibleButton");let o=null;return this.state.errorText&&(o=i.a.createElement("span",{className:"mx_Login_error"},this.state.errorText)),e||(e=Object(c.a)("Enter your password to sign in and regain access to your account.")),i.a.createElement("form",{onSubmit:this.onPasswordLogin},i.a.createElement("p",null,e),o,i.a.createElement(t,{type:"password",label:Object(c.a)("Password"),onChange:this.onPasswordChange,value:this.state.password,disabled:this.state.busy}),i.a.createElement(n,{onClick:this.onPasswordLogin,kind:"primary",type:"submit",disabled:this.state.busy},Object(c.a)("Sign In")),i.a.createElement(n,{onClick:this.onForgotPassword,kind:"link"},Object(c.a)("Forgotten your password?")))}if(this.state.loginView===Fl||this.state.loginView===Nl){e||(e=Object(c.a)("Sign in and regain access to your account."));const t=this.state.loginView===Nl?"cas":"sso",n=this.state.flows.find(e=>e.type==="m.login."+t);return i.a.createElement("div",null,i.a.createElement("p",null,e),i.a.createElement(Io,{matrixClient:X.a.get(),flow:n,loginType:t,fragmentAfterLogin:this.props.fragmentAfterLogin,primary:!this.state.flows.find(e=>"m.login.password"===e.type)}))}return i.a.createElement("p",null,Object(c.a)("You cannot sign in to your account. Please contact your homeserver admin for more information."))}render(){const e=u.getComponent("auth.AuthHeader"),t=u.getComponent("auth.AuthBody"),n=u.getComponent("elements.AccessibleButton");return i.a.createElement(_o,null,i.a.createElement(e,null),i.a.createElement(t,null,i.a.createElement("h2",null,Object(c.a)("You're signed out")),i.a.createElement("h3",null,Object(c.a)("Sign in")),i.a.createElement("div",null,this._renderSignInSection()),i.a.createElement("h3",null,Object(c.a)("Clear personal data")),i.a.createElement("p",null,Object(c.a)("Warning: Your personal data (including encryption keys) is still stored in this session. Clear it if you're finished using this session, or want to sign in to another account.")),i.a.createElement("div",null,i.a.createElement(n,{onClick:this.onClearAll,kind:"danger"},Object(c.a)("Clear all data")))))}}R()(Ll,"propTypes",{realQueryParams:Se.a.object,onTokenLoginCompleted:Se.a.func});class Ul extends i.a.PureComponent{render(){return i.a.createElement("div",{className:"mx_AuthBody"},this.props.children)}}class Bl extends i.a.Component{render(){return i.a.createElement("div",{className:"mx_AuthFooter"},i.a.createElement("a",{href:"https://matrix.org",target:"_blank",rel:"noreferrer noopener"},Object(c.a)("powered by Matrix")))}}class jl extends i.a.Component{render(){const e=u.getComponent("auth.AuthHeaderLogo"),t=u.getComponent("views.auth.LanguageSelector");return i.a.createElement("div",{className:"mx_AuthHeader"},i.a.createElement(e,null),i.a.createElement(t,{disabled:this.props.disableLanguageSelector}))}}R()(jl,"propTypes",{disableLanguageSelector:Se.a.bool});class Gl extends i.a.PureComponent{render(){return i.a.createElement("div",{className:"mx_AuthHeaderLogo"},"Matrix")}}var ql=n(1575);function Hl(e){Object(c.d)()!==e&&(P.a.setValue("language",null,Ye.a.DEVICE,e),qe.a.get().reload())}function Vl({disabled:e}){if(l.a.get().disable_login_language_selector)return i.a.createElement("div",null);const t=u.getComponent("views.elements.LanguageDropdown");return i.a.createElement(t,{className:"mx_AuthBody_language",onOptionChange:Hl,value:Object(c.d)(),disabled:e})}Object(c.b)("Sign in with SSO");class zl extends i.a.PureComponent{constructor(e){super(e),y.a.instance.track("onboarding_welcome")}render(){const e=u.getComponent("structures.EmbeddedPage"),t=u.getComponent("auth.LanguageSelector"),n=l.a.get().embeddedPages;let o=null;return n&&(o=n.welcomeUrl),o||(o="welcome.html"),i.a.createElement(_o,null,i.a.createElement("div",{className:M()("mx_Welcome",{mx_WelcomePage_registrationDisabled:!P.a.getValue($e.a.Registration)})},i.a.createElement(e,{className:"mx_WelcomePage",url:o,replaceMap:{"$riot:ssoUrl":"#/start_sso","$riot:casUrl":"#/start_cas"}}),i.a.createElement(t,null)))}}class Kl extends i.a.Component{constructor(e){super(e),R()(this,"_onStatusMessageCommitted",()=>{this.setState({message:this.comittedStatusMessage,waiting:!1})}),R()(this,"_onClearClick",e=>{X.a.get()._unstable_setStatusMessage(""),this.setState({waiting:!0})}),R()(this,"_onSubmit",e=>{e.preventDefault(),X.a.get()._unstable_setStatusMessage(this.state.message),this.setState({waiting:!0})}),R()(this,"_onStatusChange",e=>{this.setState({message:e.target.value})}),this.state={message:this.comittedStatusMessage}}componentDidMount(){const{user:e}=this.props;e&&e.on("User._unstable_statusMessage",this._onStatusMessageCommitted)}componentWillUnmount(){const{user:e}=this.props;e&&e.removeListener("User._unstable_statusMessage",this._onStatusMessageCommitted)}get comittedStatusMessage(){return this.props.user?this.props.user._unstable_statusMessage:""}render(){const e=u.getComponent("views.elements.Spinner");let t;t=this.comittedStatusMessage?this.state.message===this.comittedStatusMessage?i.a.createElement(g.a,{className:"mx_StatusMessageContextMenu_clear",onClick:this._onClearClick},i.a.createElement("span",null,Object(c.a)("Clear status"))):i.a.createElement(g.a,{className:"mx_StatusMessageContextMenu_submit",onClick:this._onSubmit},i.a.createElement("span",null,Object(c.a)("Update status"))):i.a.createElement(g.a,{className:"mx_StatusMessageContextMenu_submit",disabled:!this.state.message,onClick:this._onSubmit},i.a.createElement("span",null,Object(c.a)("Set status")));let n=null;this.state.waiting&&(n=i.a.createElement(e,{w:"24",h:"24"}));const o=i.a.createElement("form",{className:"mx_StatusMessageContextMenu_form",autoComplete:"off",onSubmit:this._onSubmit},i.a.createElement("input",{type:"text",className:"mx_StatusMessageContextMenu_message",key:"message",placeholder:Object(c.a)("Set a new status..."),autoFocus:!0,maxLength:"60",value:this.state.message,onChange:this._onStatusChange}),i.a.createElement("div",{className:"mx_StatusMessageContextMenu_actionContainer"},t,n));return i.a.createElement("div",{className:"mx_StatusMessageContextMenu"},o)}}R()(Kl,"propTypes",{user:Se.a.object});class Wl extends i.a.Component{constructor(e){super(e),R()(this,"_onStatusMessageCommitted",()=>{this.setState({hasStatus:this.hasStatus})}),R()(this,"openMenu",()=>{this.setState({menuDisplayed:!0})}),R()(this,"closeMenu",()=>{this.setState({menuDisplayed:!1})}),this.state={hasStatus:this.hasStatus,menuDisplayed:!1},this._button=Object(r.createRef)()}componentDidMount(){if(this.props.member.userId!==X.a.get().getUserId())throw new Error("Cannot use MemberStatusMessageAvatar on anyone but the logged in user");if(!P.a.getValue("feature_custom_status"))return;const{user:e}=this.props.member;e&&e.on("User._unstable_statusMessage",this._onStatusMessageCommitted)}componentWillUnmount(){const{user:e}=this.props.member;e&&e.removeListener("User._unstable_statusMessage",this._onStatusMessageCommitted)}get hasStatus(){const{user:e}=this.props.member;return!!e&&!!e._unstable_statusMessage}render(){const e=i.a.createElement($o.a,{member:this.props.member,width:this.props.width,height:this.props.height,resizeMethod:this.props.resizeMethod});if(!P.a.getValue("feature_custom_status"))return e;const t=M()({mx_MemberStatusMessageAvatar:!0,mx_MemberStatusMessageAvatar_hasStatus:this.state.hasStatus});let n;if(this.state.menuDisplayed){const e=this._button.current.getBoundingClientRect(),t=16,r=1;n=i.a.createElement(o.b,{chevronOffset:(e.width-t)/2,chevronFace:"bottom",left:e.left+window.pageXOffset,top:e.top+window.pageYOffset-r,menuWidth:226,onFinished:this.closeMenu},i.a.createElement(Kl,{user:this.props.member.user,onFinished:this.closeMenu}))}return i.a.createElement(i.a.Fragment,null,i.a.createElement(o.c,{className:t,inputRef:this._button,onClick:this.openMenu,isExpanded:this.state.menuDisplayed,label:Object(c.a)("User Status")},e),n)}}R()(Wl,"propTypes",{member:Se.a.object.isRequired,width:Se.a.number,height:Se.a.number,resizeMethod:Se.a.string}),R()(Wl,"defaultProps",{width:40,height:40,resizeMethod:"crop"});class Yl extends i.a.Component{constructor(e){super(e),this.resize=this.resize.bind(this)}componentDidMount(){this.resize=this.resize.bind(this),window.addEventListener("resize",this.resize)}componentWillUnmount(){window.removeEventListener("resize",this.resize)}resize(){this.props.onResize&&this.props.onResize()}render(){return i.a.createElement("div",null,this.props.element)}}R()(Yl,"propTypes",{element:Se.a.element.isRequired,onResize:Se.a.func});class $l extends i.a.Component{render(){return i.a.createElement("div",null,this.props.message)}}R()($l,"propTypes",{message:Se.a.string.isRequired});class Ql extends i.a.Component{constructor(e){super(e),this._onClickReject=this._onClickReject.bind(this)}componentDidMount(){this._unmounted=!1}componentWillUnmount(){this._unmounted=!0}_onClickReject(){const e=u.getComponent("dialogs.QuestionDialog");Ie.a.createTrackedDialog("Reject community invite","",e,{title:Object(c.a)("Reject invitation"),description:Object(c.a)("Are you sure you want to reject the invitation?"),onFinished:async e=>{if(!e)return;const t=u.getComponent("elements.Spinner"),n=Ie.a.createDialog(t,null,"mx_Dialog_spinner");try{await Ni.a.leaveGroup(this.props.group.groupId)}catch(e){console.error("Error rejecting community invite: ",e);const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Error rejecting invite","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Unable to reject invite")})}finally{n.close()}}}),this.props.onFinished&&this.props.onFinished()}render(){return i.a.createElement("div",null,i.a.createElement(o.f,{className:"mx_RoomTileContextMenu_leave",onClick:this._onClickReject},i.a.createElement("img",{className:"mx_RoomTileContextMenu_tag_icon",src:n(1576),width:"15",height:"15",alt:""}),Object(c.a)("Reject")))}}function Xl(e){const{status:t}=e;if((!t||t===Pe.b.SENT)&&!e.isRedacted())if("m.room.message"===e.getType()){const t=e.getContent();if(t.msgtype&&"m.bad.encrypted"!==t.msgtype&&t.hasOwnProperty("body"))return!0}else if("m.sticker"===e.getType())return!0;return!1}function Jl(e){if(e.status===Pe.b.CANCELLED||"m.room.message"!==e.getType()||e.isRedacted())return!1;const t=e.getOriginalContent(),{msgtype:n}=t;return("m.text"===n||"m.emote"===n)&&t.body&&"string"==typeof t.body&&e.getSender()===X.a.get().getUserId()}R()(Ql,"propTypes",{group:Se.a.instanceOf(Pe.e).isRequired,onFinished:Se.a.func});function Zl(e,t,n){const o=e.getLiveTimeline().getEvents().concat(e.getPendingEvents()),r=o.length-1,i=t?1:-1,a=t?0:r;let s=t?r:0;n||(s=Math.min(Math.max(0,a+100*i),r));let c=!n;for(let e=a;e!==s+i;e+=i){const t=o[e];if(c||t.getId()!==n){if(c&&!Object(Hc.a)(t)&&Jl(t))return t}else c=!0,s=Math.min(Math.max(0,e+100*i),r)}}function eu(e){return e===Pe.b.QUEUED||e===Pe.b.NOT_SENT}class tu extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{canRedact:!1,canPin:!1}),R()(this,"_checkPermissions",()=>{const e=X.a.get(),t=e.getRoom(this.props.mxEvent.getRoomId()),n=t.currentState.maySendRedactionForEvent(this.props.mxEvent,e.credentials.userId)&&this.props.mxEvent.getType()!==Vi.a.RoomServerAcl;let o=t.currentState.mayClientSendStateEvent("m.room.pinned_events",e);P.a.getValue("feature_pinning")||(o=!1),this.setState({canRedact:n,canPin:o})}),R()(this,"onResendClick",()=>{ul.resend(this.props.mxEvent),this.closeMenu()}),R()(this,"onResendEditClick",()=>{ul.resend(this.props.mxEvent.replacingEvent()),this.closeMenu()}),R()(this,"onResendRedactionClick",()=>{ul.resend(this.props.mxEvent.localRedactionEvent()),this.closeMenu()}),R()(this,"onResendReactionsClick",()=>{for(const e of this._getUnsentReactions())ul.resend(e);this.closeMenu()}),R()(this,"onReportEventClick",()=>{const e=u.getComponent("dialogs.ReportEventDialog");Ie.a.createTrackedDialog("Report Event","",e,{mxEvent:this.props.mxEvent},"mx_Dialog_reportEvent"),this.closeMenu()}),R()(this,"onViewSourceClick",()=>{const e=this.props.mxEvent.replacingEvent()||this.props.mxEvent,t=u.getComponent("structures.ViewSource");Ie.a.createTrackedDialog("View Event Source","",t,{roomId:e.getRoomId(),eventId:e.getId(),content:e.event},"mx_Dialog_viewsource"),this.closeMenu()}),R()(this,"onViewClearSourceClick",()=>{const e=this.props.mxEvent.replacingEvent()||this.props.mxEvent,t=u.getComponent("structures.ViewSource");Ie.a.createTrackedDialog("View Clear Event Source","",t,{roomId:e.getRoomId(),eventId:e.getId(),content:e._clearEvent},"mx_Dialog_viewsource"),this.closeMenu()}),R()(this,"onRedactClick",()=>{const e=u.getComponent("dialogs.ConfirmRedactDialog");Ie.a.createTrackedDialog("Confirm Redact Dialog","",e,{onFinished:async(e,t)=>{if(!e)return;const n=X.a.get();try{await n.redactEvent(this.props.mxEvent.getRoomId(),this.props.mxEvent.getId(),void 0,t?{reason:t}:{})}catch(e){const t=e.errcode||e.statusCode;if(void 0!==t){const e=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("You cannot delete this message","",e,{title:Object(c.a)("Error"),description:Object(c.a)("You cannot delete this message. (%(code)s)",{code:t})})}}}},"mx_Dialog_confirmredact"),this.closeMenu()}),R()(this,"onCancelSendClick",()=>{const e=this.props.mxEvent,t=e.replacingEvent(),n=e.localRedactionEvent(),o=this._getPendingReactions();if(t&&eu(t.status)&&ul.removeFromQueue(t),n&&eu(n.status)&&ul.removeFromQueue(n),o.length)for(const e of o)ul.removeFromQueue(e);eu(e.status)&&ul.removeFromQueue(this.props.mxEvent),this.closeMenu()}),R()(this,"onForwardClick",()=>{d.a.dispatch({action:"forward_event",event:this.props.mxEvent}),this.closeMenu()}),R()(this,"onPinClick",()=>{X.a.get().getStateEvent(this.props.mxEvent.getRoomId(),"m.room.pinned_events","").catch(e=>{if("M_NOT_FOUND"===e.errcode)return null;throw e}).then(e=>{const t=(e?e.pinned:[])||[];t.includes(this.props.mxEvent.getId())?t.splice(t.indexOf(this.props.mxEvent.getId()),1):t.push(this.props.mxEvent.getId());X.a.get().sendStateEvent(this.props.mxEvent.getRoomId(),"m.room.pinned_events",{pinned:t},"")}),this.closeMenu()}),R()(this,"closeMenu",()=>{this.props.onFinished&&this.props.onFinished()}),R()(this,"onUnhidePreviewClick",()=>{this.props.eventTileOps&&this.props.eventTileOps.unhideWidget(),this.closeMenu()}),R()(this,"onQuoteClick",()=>{d.a.dispatch({action:"quote",event:this.props.mxEvent}),this.closeMenu()}),R()(this,"onPermalinkClick",e=>{e.preventDefault();const t=u.getComponent("dialogs.ShareDialog");Ie.a.createTrackedDialog("share room message dialog","",t,{target:this.props.mxEvent,permalinkCreator:this.props.permalinkCreator}),this.closeMenu()}),R()(this,"onCollapseReplyThreadClick",()=>{this.props.collapseReplyThread(),this.closeMenu()})}componentDidMount(){X.a.get().on("RoomMember.powerLevel",this._checkPermissions),this._checkPermissions()}componentWillUnmount(){const e=X.a.get();e&&e.removeListener("RoomMember.powerLevel",this._checkPermissions)}_isPinned(){const e=X.a.get().getRoom(this.props.mxEvent.getRoomId()).currentState.getStateEvents("m.room.pinned_events","");if(!e)return!1;const t=e.getContent();return t.pinned&&Array.isArray(t.pinned)&&t.pinned.includes(this.props.mxEvent.getId())}_getReactions(e){const t=X.a.get().getRoom(this.props.mxEvent.getRoomId()),n=this.props.mxEvent.getId();return t.getPendingEvents().filter(t=>{const o=t.getRelation();return o&&"m.annotation"===o.rel_type&&o.event_id===n&&e(t)})}_getPendingReactions(){return this._getReactions(e=>eu(e.status))}_getUnsentReactions(){return this._getReactions(e=>e.status===Pe.b.NOT_SENT)}render(){const e=X.a.get().getUserId(),t=this.props.mxEvent,n=t.status,r=t.replacingEvent()&&t.replacingEvent().status,a=t.localRedactionEvent()&&t.localRedactionEvent().status,s=this._getUnsentReactions().length,l=this._getPendingReactions().length,u=eu(t.status)||eu(r)||eu(a)||0!==l;let d,h,p,m,g,f,_,b,v,E,y,S,T;const w=!n||n===Pe.b.SENT;t.isRedacted()||(n===Pe.b.NOT_SENT&&(d=i.a.createElement(o.f,{className:"mx_MessageContextMenu_field",onClick:this.onResendClick},Object(c.a)("Resend"))),r===Pe.b.NOT_SENT&&(h=i.a.createElement(o.f,{className:"mx_MessageContextMenu_field",onClick:this.onResendEditClick},Object(c.a)("Resend edit"))),0!==s&&(p=i.a.createElement(o.f,{className:"mx_MessageContextMenu_field",onClick:this.onResendReactionsClick},Object(c.a)("Resend %(unsentCount)s reaction(s)",{unsentCount:s})))),a===Pe.b.NOT_SENT&&(m=i.a.createElement(o.f,{className:"mx_MessageContextMenu_field",onClick:this.onResendRedactionClick},Object(c.a)("Resend removal"))),w&&this.state.canRedact&&(g=i.a.createElement(o.f,{className:"mx_MessageContextMenu_field",onClick:this.onRedactClick},Object(c.a)("Remove"))),u&&(f=i.a.createElement(o.f,{className:"mx_MessageContextMenu_field",onClick:this.onCancelSendClick},Object(c.a)("Cancel Sending"))),Xl(t)&&(_=i.a.createElement(o.f,{className:"mx_MessageContextMenu_field",onClick:this.onForwardClick},Object(c.a)("Forward Message")),this.state.canPin&&(b=i.a.createElement(o.f,{className:"mx_MessageContextMenu_field",onClick:this.onPinClick},this._isPinned()?Object(c.a)("Unpin Message"):Object(c.a)("Pin Message"))));const C=i.a.createElement(o.f,{className:"mx_MessageContextMenu_field",onClick:this.onViewSourceClick},Object(c.a)("View Source"));let x;t.getType()!==t.getWireType()&&(v=i.a.createElement(o.f,{className:"mx_MessageContextMenu_field",onClick:this.onViewClearSourceClick},Object(c.a)("View Decrypted Source"))),this.props.eventTileOps&&this.props.eventTileOps.isWidgetHidden()&&(E=i.a.createElement(o.f,{className:"mx_MessageContextMenu_field",onClick:this.onUnhidePreviewClick},Object(c.a)("Unhide Preview"))),this.props.permalinkCreator&&(x=this.props.permalinkCreator.forEvent(this.props.mxEvent.getId()));const O=i.a.createElement(o.f,{element:"a",className:"mx_MessageContextMenu_field",onClick:this.onPermalinkClick,href:x,target:"_blank",rel:"noreferrer noopener"},t.isRedacted()||"m.room.message"!==t.getType()?Object(c.a)("Share Permalink"):Object(c.a)("Share Message"));let k;return this.props.eventTileOps&&(S=i.a.createElement(o.f,{className:"mx_MessageContextMenu_field",onClick:this.onQuoteClick},Object(c.a)("Quote"))),"string"==typeof t.event.content.external_url&&Object(ga.d)(t.event.content.external_url)&&(y=i.a.createElement(o.f,{element:"a",className:"mx_MessageContextMenu_field",target:"_blank",rel:"noreferrer noopener",onClick:this.closeMenu,href:t.event.content.external_url},Object(c.a)("Source URL"))),this.props.collapseReplyThread&&(T=i.a.createElement(o.f,{className:"mx_MessageContextMenu_field",onClick:this.onCollapseReplyThreadClick},Object(c.a)("Collapse Reply Thread"))),t.getSender()!==e&&(k=i.a.createElement(o.f,{className:"mx_MessageContextMenu_field",onClick:this.onReportEventClick},Object(c.a)("Report Content"))),i.a.createElement("div",{className:"mx_MessageContextMenu"},d,h,p,m,g,f,_,b,C,v,E,O,S,y,T,k)}}R()(tu,"propTypes",{mxEvent:Se.a.object.isRequired,eventTileOps:Se.a.object,collapseReplyThread:Se.a.func,onFinished:Se.a.func});class nu extends i.a.Component{constructor(){super(),this._onViewCommunityClick=this._onViewCommunityClick.bind(this),this._onRemoveClick=this._onRemoveClick.bind(this)}_onViewCommunityClick(){d.a.dispatch({action:"view_group",group_id:this.props.tag}),this.props.onFinished()}_onRemoveClick(){d.a.dispatch(Mn.removeTag(this.context,this.props.tag)),this.props.onFinished()}render(){return i.a.createElement("div",null,i.a.createElement(o.f,{className:"mx_TagTileContextMenu_item mx_TagTileContextMenu_viewCommunity",onClick:this._onViewCommunityClick},Object(c.a)("View Community")),i.a.createElement("hr",{className:"mx_TagTileContextMenu_separator",role:"separator"}),i.a.createElement(o.f,{className:"mx_TagTileContextMenu_item mx_TagTileContextMenu_hideCommunity",onClick:this._onRemoveClick},Object(c.a)("Hide")))}}R()(nu,"propTypes",{tag:Se.a.string.isRequired,onFinished:Se.a.func.isRequired}),R()(nu,"contextType",b.a);const ou={"mx-user-id":Object(c.b)("Matrix ID"),"mx-room-id":Object(c.b)("Matrix Room ID"),email:Object(c.b)("email address")};class ru extends i.a.Component{constructor(e){super(e),R()(this,"onButtonClick",()=>{let e=this.state.selectedList.slice();""!==this._textinput.current.value&&(e=this._addAddressesToList([this._textinput.current.value]),null===e)||this.props.onFinished(!0,e)}),R()(this,"onCancel",()=>{this.props.onFinished(!1)}),R()(this,"onKeyDown",e=>{const t=this._textinput.current?this._textinput.current.value:void 0;e.key===gn.a.ESCAPE?(e.stopPropagation(),e.preventDefault(),this.props.onFinished(!1)):e.key===gn.a.ARROW_UP?(e.stopPropagation(),e.preventDefault(),this.addressSelector&&this.addressSelector.moveSelectionUp()):e.key===gn.a.ARROW_DOWN?(e.stopPropagation(),e.preventDefault(),this.addressSelector&&this.addressSelector.moveSelectionDown()):this.state.suggestedList.length>0&&[gn.a.COMMA,gn.a.ENTER,gn.a.TAB].includes(e.key)?(e.stopPropagation(),e.preventDefault(),this.addressSelector&&this.addressSelector.chooseSelection()):0===t.length&&this.state.selectedList.length&&e.key===gn.a.BACKSPACE?(e.stopPropagation(),e.preventDefault(),this.onDismissed(this.state.selectedList.length-1)()):e.key===gn.a.ENTER?(e.stopPropagation(),e.preventDefault(),""===t?this.onButtonClick():this._addAddressesToList([t])):!t||e.key!==gn.a.COMMA&&e.key!==gn.a.TAB||(e.stopPropagation(),e.preventDefault(),this._addAddressesToList([t]))}),R()(this,"onQueryChanged",e=>{const t=e.target.value;this.queryChangedDebouncer&&clearTimeout(this.queryChangedDebouncer),t.length>0&&"@"!==t&&t.length>=2?this.queryChangedDebouncer=setTimeout(()=>{"user"===this.props.pickerType?this.props.groupId?this._doNaiveGroupSearch(t):this.state.serverSupportsUserDirectory?this._doUserDirectorySearch(t):this._doLocalSearch(t):"room"===this.props.pickerType?this.props.groupId?this._doNaiveGroupRoomSearch(t):this._doRoomSearch(t):console.error("Unknown pickerType",this.props.pickerType)},200):this.setState({suggestedList:[],query:"",searchError:null})}),R()(this,"onDismissed",e=>()=>{const t=this.state.selectedList.slice();t.splice(e,1),this.setState({selectedList:t,suggestedList:[],query:""}),this._cancelThreepidLookup&&this._cancelThreepidLookup()}),R()(this,"onClick",e=>()=>{this.onSelected(e)}),R()(this,"onSelected",e=>{const t=this.state.selectedList.slice();t.push(this._getFilteredSuggestions()[e]),this.setState({selectedList:t,suggestedList:[],query:""}),this._cancelThreepidLookup&&this._cancelThreepidLookup()}),R()(this,"_onPaste",e=>{e.preventDefault();const t=e.clipboardData.getData("text");this._addAddressesToList(t.split(/[\s,]+/))}),R()(this,"onUseDefaultIdentityServerClick",e=>{e.preventDefault(),Object(Ea.d)();const{validAddressTypes:t}=this.state;t.push("email"),this.setState({validAddressTypes:t})}),R()(this,"onManageSettingsClick",e=>{e.preventDefault(),d.a.fire(h.a.ViewUserSettings),this.onCancel()}),this._textinput=Object(r.createRef)();let t=this.props.validAddressTypes;!X.a.get().getIdentityServerUrl()&&t.includes("email")&&(t=t.filter(e=>"email"!==e)),this.state={invalidAddressError:!1,selectedList:[],busy:!1,searchError:null,serverSupportsUserDirectory:!0,query:"",suggestedList:[],validAddressTypes:t}}componentDidMount(){this.props.focus&&(this._textinput.current.value=this.props.value)}getPlaceholder(){const{placeholder:e}=this.props;return"string"==typeof e?e:e(this.state.validAddressTypes)}_doNaiveGroupSearch(e){const t=e.toLowerCase();this.setState({busy:!0,query:e,searchError:null}),X.a.get().getGroupUsers(this.props.groupId).then(n=>{const o=[];n.chunk.forEach(e=>{const n=e.user_id.toLowerCase().includes(t),r=(e.displayname||"").toLowerCase().includes(t);(n||r)&&o.push({user_id:e.user_id,avatar_url:e.avatar_url,display_name:e.displayname})}),this._processResults(o,e)}).catch(e=>{console.error("Error whilst searching group rooms: ",e),this.setState({searchError:e.errcode?e.message:Object(c.a)("Something went wrong!")})}).then(()=>{this.setState({busy:!1})})}_doNaiveGroupRoomSearch(e){const t=e.toLowerCase(),n=[];Ni.a.getGroupRooms(this.props.groupId).forEach(e=>{const o=(e.name||"").toLowerCase().includes(t),r=(e.topic||"").toLowerCase().includes(t),i=(e.canonical_alias||"").toLowerCase().includes(t);(o||r||i)&&n.push({room_id:e.room_id,avatar_url:e.avatar_url,name:e.name||e.canonical_alias})}),this._processResults(n,e),this.setState({busy:!1})}_doRoomSearch(e){const t=e.toLowerCase(),n=X.a.get().getRooms(),o=[];n.forEach(e=>{let n=1/0;const r=e.currentState.getStateEvents("m.room.name",""),i=r?r.getContent().name:"",a=e.getCanonicalAlias(),s=e.currentState.getStateEvents("m.room.aliases").map(e=>e.getContent().aliases).reduce((e,t)=>e.concat(t),[]),l=(i||"").toLowerCase().includes(t);let u=!1,d=1/0;if(s.forEach(e=>{(e||"").toLowerCase().includes(t)&&(u=!0,d>e.length&&(d=e.length))}),!l&&!u)return;u&&(n=d);const h=e.currentState.getStateEvents("m.room.avatar",""),p=h?h.getContent().url:void 0;o.push({rank:n,room_id:e.roomId,avatar_url:p,name:i||a||s[0]||Object(c.a)("Unnamed Room")})});const r=o.sort((e,t)=>e.rank-t.rank);this._processResults(r,e),this.setState({busy:!1})}_doUserDirectorySearch(e){this.setState({busy:!0,query:e,searchError:null}),X.a.get().searchUserDirectory({term:e}).then(t=>{this.state.query===e&&this._processResults(t.results,e)}).catch(t=>{console.error("Error whilst searching user directory: ",t),this.setState({searchError:t.errcode?t.message:Object(c.a)("Something went wrong!")}),"M_UNRECOGNIZED"===t.errcode&&(this.setState({serverSupportsUserDirectory:!1}),this._doLocalSearch(e))}).then(()=>{this.setState({busy:!1})})}_doLocalSearch(e){this.setState({query:e,searchError:null});const t=e.toLowerCase(),n=[];X.a.get().getUsers().forEach(e=>{-1===e.userId.toLowerCase().indexOf(t)&&-1===e.displayName.toLowerCase().indexOf(t)||n.push({user_id:e.userId,display_name:e.displayName,avatar_url:e.avatarUrl})}),this._processResults(n,e)}_processResults(e,t){const n=[];e.forEach(e=>{if(e.room_id){const t=X.a.get(),o=t.getRoom(e.room_id);if(o){const e=o.currentState.getStateEvents("m.room.tombstone","");if(e&&e.getContent()&&e.getContent().replacement_room){if(t.getRoom(e.getContent().replacement_room))return}}n.push({addressType:"mx-room-id",address:e.room_id,displayName:e.name,avatarMxc:e.avatar_url,isKnown:!0})}else(this.props.includeSelf||e.user_id!==X.a.get().credentials.userId)&&n.push({addressType:"mx-user-id",address:e.user_id,displayName:e.display_name,avatarMxc:e.avatar_url,isKnown:!0})});const o=Object(va.c)(t);if(this.state.validAddressTypes.includes(o)){if("email"===o&&!vo.a(t))return void this.setState({searchError:Object(c.a)("That doesn't look like a valid email address")});n.unshift({addressType:o,address:t,isKnown:!1}),this._cancelThreepidLookup&&this._cancelThreepidLookup(),"email"===o&&this._lookupThreepid(o,t)}this.setState({suggestedList:n,invalidAddressError:!1},()=>{this.addressSelector&&this.addressSelector.moveSelectionTop()})}_addAddressesToList(e){const t=this.state.selectedList.slice();let n=!1;return e.forEach(e=>{e=e.trim();const o=Object(va.c)(e),r={addressType:o,address:e,isKnown:!1};if(this.state.validAddressTypes.includes(o)){if("mx-user-id"===o){const e=X.a.get().getUser(r.address);e&&(r.displayName=e.displayName,r.avatarMxc=e.avatarUrl,r.isKnown=!0)}else if("mx-room-id"===o){const e=X.a.get().getRoom(r.address);e&&(r.displayName=e.name,r.avatarMxc=e.avatarUrl,r.isKnown=!0)}}else n=!0;t.push(r)}),this.setState({selectedList:t,suggestedList:[],query:"",invalidAddressError:!!n||this.state.invalidAddressError}),this._cancelThreepidLookup&&this._cancelThreepidLookup(),n?null:t}async _lookupThreepid(e,t){let n=!1;if(this._cancelThreepidLookup=function(){n=!0},await Object(ft.d)(500),n)return null;try{const o=new Ve.a,r=await o.getAccessToken();if(n)return null;const i=await X.a.get().lookupThreePid(e,t,void 0,r);if(n||null===i||!i.mxid)return null;const a=await X.a.get().getProfileInfo(i.mxid);if(n||null===a)return null;this.setState({suggestedList:[{addressType:e,address:t,displayName:a.displayname,avatarMxc:a.avatar_url,isKnown:!0}]})}catch(e){console.error(e),this.setState({searchError:Object(c.a)("Something went wrong!")})}}_getFilteredSuggestions(){const e={};return this.state.selectedList.forEach(({address:t,addressType:n})=>{e[n]||(e[n]=new Set),e[n].add(t)}),this.state.suggestedList.filter(({address:t,addressType:n})=>!(e[n]&&e[n].has(t)))}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons"),n=u.getComponent("elements.AddressSelector");let o;this.scrollElement=null,this.props.description&&(o=i.a.createElement("div",{className:"mx_AddressPickerDialog_label"},i.a.createElement("label",{htmlFor:"textinput"},this.props.description)));const r=[];if(this.state.selectedList.length>0){const e=u.getComponent("elements.AddressTile");for(let t=0;t<this.state.selectedList.length;t++)r.push(i.a.createElement(e,{key:t,address:this.state.selectedList[t],canDismiss:!0,onDismissed:this.onDismissed(t),showAddress:"user"===this.props.pickerType}))}r.push(i.a.createElement("textarea",{key:this.state.selectedList.length,onPaste:this._onPaste,rows:"1",id:"textinput",ref:this._textinput,className:"mx_AddressPickerDialog_input",onChange:this.onQueryChanged,placeholder:this.getPlaceholder(),defaultValue:this.props.value,autoFocus:this.props.focus}));const a=this._getFilteredSuggestions();let s,l,d;if(this.state.invalidAddressError){const e=this.state.validAddressTypes.map(e=>Object(c.a)(ou[e]));s=i.a.createElement("div",{className:"mx_AddressPickerDialog_error"},Object(c.a)("You have entered an invalid address."),i.a.createElement("br",null),Object(c.a)("Try using one of the following valid address types: %(validTypesList)s.",{validTypesList:e.join(", ")}))}else this.state.searchError?s=i.a.createElement("div",{className:"mx_AddressPickerDialog_error"},this.state.searchError):this.state.query.length>0&&0===a.length&&!this.state.busy?s=i.a.createElement("div",{className:"mx_AddressPickerDialog_error"},Object(c.a)("No results")):l=i.a.createElement(n,{ref:e=>{this.addressSelector=e},addressList:a,showAddress:"user"===this.props.pickerType,onSelected:this.onSelected,truncateAt:40});if("user"===this.props.pickerType&&!this.state.validAddressTypes.includes("email")&&this.props.validAddressTypes.includes("email")){const e=Object(Ea.c)();d=e?i.a.createElement("div",{className:"mx_AddressPickerDialog_identityServer"},Object(c.a)("Use an identity server to invite by email. <default>Use the default (%(defaultIdentityServerName)s)</default> or manage in <settings>Settings</settings>.",{defaultIdentityServerName:Object(ze.a)(e)},{default:e=>i.a.createElement("a",{href:"#",onClick:this.onUseDefaultIdentityServerClick},e),settings:e=>i.a.createElement("a",{href:"#",onClick:this.onManageSettingsClick},e)})):i.a.createElement("div",{className:"mx_AddressPickerDialog_identityServer"},Object(c.a)("Use an identity server to invite by email. Manage in <settings>Settings</settings>.",{},{settings:e=>i.a.createElement("a",{href:"#",onClick:this.onManageSettingsClick},e)}))}return i.a.createElement(e,{className:"mx_AddressPickerDialog",onKeyDown:this.onKeyDown,onFinished:this.props.onFinished,title:this.props.title},o,i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement("div",{className:"mx_AddressPickerDialog_inputContainer"},r),s,l,this.props.extraNode,d),i.a.createElement(t,{primaryButton:this.props.button,onPrimaryButtonClick:this.onButtonClick,onCancel:this.onCancel}))}}R()(ru,"propTypes",{title:Se.a.string.isRequired,description:Se.a.node,extraNode:Se.a.node,value:Se.a.string,placeholder:Se.a.oneOfType([Se.a.string,Se.a.func]),roomId:Se.a.string,button:Se.a.string,focus:Se.a.bool,validAddressTypes:Se.a.arrayOf(Se.a.oneOf(va.b)),onFinished:Se.a.func.isRequired,groupId:Se.a.string,pickerType:Se.a.oneOf(["user","room"]),includeSelf:Se.a.bool}),R()(ru,"defaultProps",{value:"",focus:!0,validAddressTypes:va.b,pickerType:"user",includeSelf:!1});class iu extends i.a.Component{constructor(...e){super(...e),R()(this,"_onInviteClicked",()=>{this.props.onInviteAnyways(),this.props.onFinished(!0)}),R()(this,"_onInviteNeverWarnClicked",()=>{P.a.setValue("promptBeforeInviteUnknownUsers",null,Ye.a.ACCOUNT,!1),this.props.onInviteAnyways(),this.props.onFinished(!0)}),R()(this,"_onGiveUpClicked",()=>{this.props.onGiveUp(),this.props.onFinished(!1)})}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=this.props.unknownProfileUsers.map(e=>i.a.createElement("li",{key:e.userId},e.userId,": ",e.errorText));return i.a.createElement(e,{className:"mx_RetryInvitesDialog",onFinished:this._onGiveUpClicked,title:Object(c.a)("The following users may not exist"),contentId:"mx_Dialog_content"},i.a.createElement("div",{id:"mx_Dialog_content"},i.a.createElement("p",null,Object(c.a)("Unable to find profiles for the Matrix IDs listed below - would you like to invite them anyway?")),i.a.createElement("ul",null,t)),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:this._onGiveUpClicked},Object(c.a)("Close")),i.a.createElement("button",{onClick:this._onInviteNeverWarnClicked},Object(c.a)("Invite anyway and never warn me again")),i.a.createElement("button",{onClick:this._onInviteClicked,autoFocus:!0},Object(c.a)("Invite anyway"))))}}R()(iu,"propTypes",{unknownProfileUsers:Se.a.array.isRequired,onInviteAnyways:Se.a.func.isRequired,onGiveUp:Se.a.func.isRequired,onFinished:Se.a.func.isRequired});var au=n(730);class su extends i.a.PureComponent{constructor(e){super(e),R()(this,"onParentFinished",async e=>{if(e){this.setState({isRedacting:!0});try{await this.props.redact(),this.props.onFinished(!0)}catch(e){const t=e.errcode||e.statusCode;void 0!==t?this.setState({redactionErrorCode:t}):this.props.onFinished(!0)}}else this.props.onFinished(!1)}),this.state={isRedacting:!1,redactionErrorCode:null}}render(){if(this.state.isRedacting){if(this.state.redactionErrorCode){const e=u.getComponent("dialogs.ErrorDialog"),t=this.state.redactionErrorCode;return i.a.createElement(e,{onFinished:this.props.onFinished,title:Object(c.a)("Error"),description:Object(c.a)("You cannot delete this message. (%(code)s)",{code:t})})}{const e=u.getComponent("dialogs.BaseDialog"),t=u.getComponent("elements.Spinner");return i.a.createElement(e,{onFinished:this.props.onFinished,hasCancel:!1,title:Object(c.a)("Removing…")},i.a.createElement(t,null))}}{const e=u.getComponent("dialogs.ConfirmRedactDialog");return i.a.createElement(e,{onFinished:this.onParentFinished})}}}class cu extends i.a.Component{render(){const e=u.getComponent("views.dialogs.TextInputDialog");return i.a.createElement(e,{onFinished:this.props.onFinished,title:Object(c.a)("Confirm Removal"),description:Object(c.a)("Are you sure you wish to remove (delete) this event? Note that if you delete a room name or topic change, it could undo the change."),placeholder:Object(c.a)("Reason (optional)"),focus:!0,button:Object(c.a)("Remove")})}}class lu extends i.a.Component{constructor(...e){super(...e),R()(this,"_onConfirm",()=>{this.props.onFinished(!0)}),R()(this,"_onDecline",()=>{this.props.onFinished(!1)})}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons");return i.a.createElement(e,{className:"mx_ConfirmWipeDeviceDialog",hasCancel:!0,onFinished:this.props.onFinished,title:Object(c.a)("Clear all data in this session?")},i.a.createElement("div",{className:"mx_ConfirmWipeDeviceDialog_content"},i.a.createElement("p",null,Object(c.a)("Clearing all data from this session is permanent. Encrypted messages will be lost unless their keys have been backed up."))),i.a.createElement(t,{primaryButton:Object(c.a)("Clear all data"),onPrimaryButtonClick:this._onConfirm,primaryButtonClass:"danger",cancelButton:Object(c.a)("Cancel"),onCancel:this._onDecline}))}}R()(lu,"propTypes",{onFinished:Se.a.func.isRequired});class uu extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{groupName:"",groupId:"",groupError:null,creating:!1,createError:null}),R()(this,"_onGroupNameChange",e=>{this.setState({groupName:e.target.value})}),R()(this,"_onGroupIdChange",e=>{this.setState({groupId:e.target.value})}),R()(this,"_onGroupIdBlur",e=>{this._checkGroupId()}),R()(this,"_onFormSubmit",e=>{if(e.preventDefault(),this._checkGroupId())return;const t={};""!==this.state.groupName&&(t.name=this.state.groupName),this.setState({creating:!0}),X.a.get().createGroup({localpart:this.state.groupId,profile:t}).then(e=>{d.a.dispatch({action:"view_group",group_id:e.group_id,group_is_new:!0}),this.props.onFinished(!0)}).catch(e=>{this.setState({createError:e})}).finally(()=>{this.setState({creating:!1})})}),R()(this,"_onCancel",()=>{this.props.onFinished(!1)})}_checkGroupId(e){let t=null;return this.state.groupId?/^[a-z0-9=_\-./]*$/.test(this.state.groupId)||(t=Object(c.a)("Community IDs may only contain characters a-z, 0-9, or '=_-./'")):t=Object(c.a)("Community IDs cannot be empty."),this.setState({groupIdError:t,createError:null}),t}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("elements.Spinner");if(this.state.creating)return i.a.createElement(t,null);let n;return this.state.createError&&(n=i.a.createElement("div",{className:"error",role:"alert"},i.a.createElement("div",null,Object(c.a)("Something went wrong whilst creating your community")),i.a.createElement("div",null,this.state.createError.message))),i.a.createElement(e,{className:"mx_CreateGroupDialog",onFinished:this.props.onFinished,title:Object(c.a)("Create Community")},i.a.createElement("form",{onSubmit:this._onFormSubmit},i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement("div",{className:"mx_CreateGroupDialog_inputRow"},i.a.createElement("div",{className:"mx_CreateGroupDialog_label"},i.a.createElement("label",{htmlFor:"groupname"},Object(c.a)("Community Name"))),i.a.createElement("div",null,i.a.createElement("input",{id:"groupname",className:"mx_CreateGroupDialog_input",autoFocus:!0,size:"64",placeholder:Object(c.a)("Example"),onChange:this._onGroupNameChange,value:this.state.groupName}))),i.a.createElement("div",{className:"mx_CreateGroupDialog_inputRow"},i.a.createElement("div",{className:"mx_CreateGroupDialog_label"},i.a.createElement("label",{htmlFor:"groupid"},Object(c.a)("Community ID"))),i.a.createElement("div",{className:"mx_CreateGroupDialog_input_group"},i.a.createElement("span",{className:"mx_CreateGroupDialog_prefix"},"+"),i.a.createElement("input",{id:"groupid",className:"mx_CreateGroupDialog_input mx_CreateGroupDialog_input_hasPrefixAndSuffix",size:"32",placeholder:Object(c.a)("example"),onChange:this._onGroupIdChange,onBlur:this._onGroupIdBlur,value:this.state.groupId}),i.a.createElement("span",{className:"mx_CreateGroupDialog_suffix"},":",X.a.get().getDomain()))),i.a.createElement("div",{className:"error"},this.state.groupIdError),n),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("input",{type:"submit",value:Object(c.a)("Create"),className:"mx_Dialog_primary"}),i.a.createElement("button",{onClick:this._onCancel},Object(c.a)("Cancel")))))}}R()(uu,"propTypes",{onFinished:Se.a.func.isRequired});class du extends i.a.Component{constructor(e){super(e),R()(this,"_onKeyDown",e=>{e.key===gn.a.ENTER&&(this.onOk(),e.preventDefault(),e.stopPropagation())}),R()(this,"onOk",async()=>{const e=document.activeElement;if(e&&e.blur(),await this._nameFieldRef.validate({allowEmpty:!1}),this._aliasFieldRef&&await this._aliasFieldRef.validate({allowEmpty:!1}),await new Promise(e=>this.setState({},e)),!this.state.nameIsValid||this._aliasFieldRef&&!this._aliasFieldRef.isValid){let e;this.state.nameIsValid?this._aliasFieldRef&&!this._aliasFieldRef.isValid&&(e=this._aliasFieldRef):e=this._nameFieldRef,e&&(e.focus(),e.validate({allowEmpty:!1,focused:!0}))}else this.props.onFinished(!0,this._roomCreateOptions())}),R()(this,"onCancel",()=>{this.props.onFinished(!1)}),R()(this,"onNameChange",e=>{this.setState({name:e.target.value})}),R()(this,"onTopicChange",e=>{this.setState({topic:e.target.value})}),R()(this,"onPublicChange",e=>{this.setState({isPublic:e})}),R()(this,"onEncryptedChange",e=>{this.setState({isEncrypted:e})}),R()(this,"onAliasChange",e=>{this.setState({alias:e})}),R()(this,"onDetailsToggled",e=>{this.setState({detailsOpen:e.target.open})}),R()(this,"onNoFederateChange",e=>{this.setState({noFederate:e})}),R()(this,"collectDetailsRef",e=>{this._detailsRef=e}),R()(this,"onNameValidate",async e=>{const t=await du._validateRoomName(e);return this.setState({nameIsValid:t.valid}),t});const t=l.a.get();this.state={isPublic:this.props.defaultPublic||!1,isEncrypted:Object(_t.e)(),name:"",topic:"",alias:"",detailsOpen:!1,noFederate:!1===t.default_federate,nameIsValid:!1,canChangeEncryption:!0},X.a.get().doesServerForceEncryptionForPreset("private").then(e=>this.setState({canChangeEncryption:!e}))}_roomCreateOptions(){const e={},t=e.createOpts={};if(t.name=this.state.name,this.state.isPublic){t.visibility="public",t.preset="public_chat",e.guestAccess=!1;const{alias:n}=this.state,o=n.substr(1,n.indexOf(":")-1);t.room_alias_name=o}return this.state.topic&&(t.topic=this.state.topic),this.state.noFederate&&(t.creation_content={"m.federate":!1}),this.state.isPublic||(this.state.canChangeEncryption?e.encryption=this.state.isEncrypted:e.encryption=!0),he.a.instance.getSelectedCommunityId()&&(e.associatedWithCommunity=he.a.instance.getSelectedCommunityId()),e}componentDidMount(){this._detailsRef.addEventListener("toggle",this.onDetailsToggled),this._nameFieldRef.focus()}componentWillUnmount(){this._detailsRef.removeEventListener("toggle",this.onDetailsToggled)}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons"),n=u.getComponent("views.elements.Field"),o=u.getComponent("views.elements.LabelledToggleSwitch"),r=u.getComponent("views.elements.RoomAliasField");let a;if(this.state.isPublic){const e=X.a.get().getDomain();a=i.a.createElement("div",{className:"mx_CreateRoomDialog_aliasContainer"},i.a.createElement(r,{ref:e=>this._aliasFieldRef=e,onChange:this.onAliasChange,domain:e,value:this.state.alias}))}let s,d=i.a.createElement("p",null,Object(c.a)("Private rooms can be found and joined by invitation only. Public rooms can be found and joined by anyone."));if(he.a.instance.getSelectedCommunityId()&&(d=i.a.createElement("p",null,Object(c.a)("Private rooms can be found and joined by invitation only. Public rooms can be found and joined by anyone in this community."))),!this.state.isPublic){let e;e=Object(_t.e)()?this.state.canChangeEncryption?Object(c.a)("You cant disable this later. Bridges & most bots wont work yet."):Object(c.a)("Your server requires encryption to be enabled in private rooms."):Object(c.a)("Your server admin has disabled end-to-end encryption by default in private rooms & Direct Messages."),s=i.a.createElement(i.a.Fragment,null,i.a.createElement(o,{label:Object(c.a)("Enable end-to-end encryption"),onChange:this.onEncryptedChange,value:this.state.isEncrypted,className:"mx_CreateRoomDialog_e2eSwitch",disabled:!this.state.canChangeEncryption}),i.a.createElement("p",null,e))}let h=Object(c.a)("You might enable this if the room will only be used for collaborating with internal teams on your homeserver. This cannot be changed later.");!1===l.a.get().default_federate&&(h=Object(c.a)("You might disable this if the room will be used for collaborating with external teams who have their own homeserver. This cannot be changed later."));let p=this.state.isPublic?Object(c.a)("Create a public room"):Object(c.a)("Create a private room");if(he.a.instance.getSelectedCommunityId()){const e=he.a.instance.getSelectedCommunityName();p=Object(c.a)("Create a room in %(communityName)s",{communityName:e})}return i.a.createElement(e,{className:"mx_CreateRoomDialog",onFinished:this.props.onFinished,title:p},i.a.createElement("form",{onSubmit:this.onOk,onKeyDown:this._onKeyDown},i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement(n,{ref:e=>this._nameFieldRef=e,label:Object(c.a)("Name"),onChange:this.onNameChange,onValidate:this.onNameValidate,value:this.state.name,className:"mx_CreateRoomDialog_name"}),i.a.createElement(n,{label:Object(c.a)("Topic (optional)"),onChange:this.onTopicChange,value:this.state.topic,className:"mx_CreateRoomDialog_topic"}),i.a.createElement(o,{label:Object(c.a)("Make this room public"),onChange:this.onPublicChange,value:this.state.isPublic}),d,s,a,i.a.createElement("details",{ref:this.collectDetailsRef,className:"mx_CreateRoomDialog_details"},i.a.createElement("summary",{className:"mx_CreateRoomDialog_details_summary"},this.state.detailsOpen?Object(c.a)("Hide advanced"):Object(c.a)("Show advanced")),i.a.createElement(o,{label:Object(c.a)("Block anyone not part of %(serverName)s from ever joining this room.",{serverName:X.a.getHomeserverName()}),onChange:this.onNoFederateChange,value:this.state.noFederate}),i.a.createElement("p",null,h)))),i.a.createElement(t,{primaryButton:Object(c.a)("Create Room"),onPrimaryButtonClick:this.onOk,onCancel:this.onCancel}))}}R()(du,"propTypes",{onFinished:Se.a.func.isRequired,defaultPublic:Se.a.bool}),R()(du,"_validateRoomName",Object(bo.a)({rules:[{key:"required",test:async({value:e})=>!!e,invalid:()=>Object(c.a)("Please enter a name for the room")}]}));var hu=e=>{const t=l.a.get().brand,n=Object(c.a)("You've previously used a newer version of %(brand)s with this session. To use this version again with end to end encryption, you will need to sign out and back in again.",{brand:t}),o=u.getComponent("views.dialogs.BaseDialog"),r=u.getComponent("views.elements.DialogButtons");return i.a.createElement(o,{className:"mx_CryptoStoreTooNewDialog",contentId:"mx_Dialog_content",title:Object(c.a)("Incompatible Database"),hasCancel:!1,onFinished:e.onFinished},i.a.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},n),i.a.createElement(r,{primaryButton:Object(c.a)("Continue With Encryption Disabled"),hasCancel:!1,onPrimaryButtonClick:e.onFinished},i.a.createElement("button",{onClick:()=>{const n=u.getComponent("dialogs.QuestionDialog");Ie.a.createTrackedDialog("Logout e2e db too new","",n,{title:Object(c.a)("Sign out"),description:Object(c.a)("To avoid losing your chat history, you must export your room keys before logging out. You will need to go back to the newer version of %(brand)s to do this",{brand:t}),button:Object(c.a)("Sign out"),focus:!1,onFinished:t=>{t&&(d.a.dispatch({action:"logout"}),e.onFinished())}})}},Object(c.a)("Sign out"))))};class pu extends i.a.PureComponent{constructor(e){super(e),this._onChange=this._onChange.bind(this),this.onBack=this.onBack.bind(this)}onBack(){this.state.message?this.setState({message:null}):this.props.onBack()}_onChange(e){this.setState({[e.target.id]:"checkbox"===e.target.type?e.target.checked:e.target.value})}_buttons(){return i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:this.onBack},Object(c.a)("Back")),!this.state.message&&i.a.createElement("button",{onClick:this._send},Object(c.a)("Send")))}textInput(e,t){return i.a.createElement(Ce.a,{id:e,label:t,size:"42",autoFocus:!0,type:"text",autoComplete:"on",value:this.state[e],onChange:this._onChange})}}class mu extends pu{static getLabel(){return Object(c.a)("Send Custom Event")}constructor(e){super(e),this._send=this._send.bind(this);const{eventType:t,stateKey:n,evContent:o}=Object.assign({eventType:"",stateKey:"",evContent:"{\n\n}"},this.props.inputs);this.state={isStateEvent:Boolean(this.props.forceStateEvent),eventType:t,stateKey:n,evContent:o}}send(e){const t=this.context;return this.state.isStateEvent?t.sendStateEvent(this.props.room.roomId,this.state.eventType,e,this.state.stateKey):t.sendEvent(this.props.room.roomId,this.state.eventType,e)}async _send(){if(""===this.state.eventType)return void this.setState({message:Object(c.a)("You must specify an event type!")});let e;try{const t=JSON.parse(this.state.evContent);await this.send(t),e=Object(c.a)("Event sent!")}catch(t){e=Object(c.a)("Failed to send custom event.")+" ("+t.toString()+")"}this.setState({message:e})}render(){return this.state.message?i.a.createElement("div",null,i.a.createElement("div",{className:"mx_Dialog_content"},this.state.message),this._buttons()):i.a.createElement("div",null,i.a.createElement("div",{className:"mx_DevTools_content"},i.a.createElement("div",{className:"mx_DevTools_eventTypeStateKeyGroup"},this.textInput("eventType",Object(c.a)("Event Type")),this.state.isStateEvent&&this.textInput("stateKey",Object(c.a)("State Key"))),i.a.createElement("br",null),i.a.createElement(Ce.a,{id:"evContent",label:Object(c.a)("Event Content"),type:"text",className:"mx_DevTools_textarea",autoComplete:"off",value:this.state.evContent,onChange:this._onChange,element:"textarea"})),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:this.onBack},Object(c.a)("Back")),!this.state.message&&i.a.createElement("button",{onClick:this._send},Object(c.a)("Send")),!this.state.message&&!this.props.forceStateEvent&&i.a.createElement("div",{style:{float:"right"}},i.a.createElement("input",{id:"isStateEvent",className:"mx_DevTools_tgl mx_DevTools_tgl-flip",type:"checkbox",onChange:this._onChange,checked:this.state.isStateEvent}),i.a.createElement("label",{className:"mx_DevTools_tgl-btn","data-tg-off":"Event","data-tg-on":"State Event",htmlFor:"isStateEvent"}))))}}R()(mu,"propTypes",{onBack:Se.a.func.isRequired,room:Se.a.instanceOf(Pe.k).isRequired,forceStateEvent:Se.a.bool,inputs:Se.a.object}),R()(mu,"contextType",b.a);class gu extends pu{static getLabel(){return Object(c.a)("Send Account Data")}constructor(e){super(e),this._send=this._send.bind(this);const{eventType:t,evContent:n}=Object.assign({eventType:"",evContent:"{\n\n}"},this.props.inputs);this.state={isRoomAccountData:Boolean(this.props.isRoomAccountData),eventType:t,evContent:n}}send(e){const t=this.context;return this.state.isRoomAccountData?t.setRoomAccountData(this.props.room.roomId,this.state.eventType,e):t.setAccountData(this.state.eventType,e)}async _send(){if(""===this.state.eventType)return void this.setState({message:Object(c.a)("You must specify an event type!")});let e;try{const t=JSON.parse(this.state.evContent);await this.send(t),e=Object(c.a)("Event sent!")}catch(t){e=Object(c.a)("Failed to send custom event.")+" ("+t.toString()+")"}this.setState({message:e})}render(){return this.state.message?i.a.createElement("div",null,i.a.createElement("div",{className:"mx_Dialog_content"},this.state.message),this._buttons()):i.a.createElement("div",null,i.a.createElement("div",{className:"mx_DevTools_content"},this.textInput("eventType",Object(c.a)("Event Type")),i.a.createElement("br",null),i.a.createElement(Ce.a,{id:"evContent",label:Object(c.a)("Event Content"),type:"text",className:"mx_DevTools_textarea",autoComplete:"off",value:this.state.evContent,onChange:this._onChange,element:"textarea"})),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:this.onBack},Object(c.a)("Back")),!this.state.message&&i.a.createElement("button",{onClick:this._send},Object(c.a)("Send")),!this.state.message&&i.a.createElement("div",{style:{float:"right"}},i.a.createElement("input",{id:"isRoomAccountData",className:"mx_DevTools_tgl mx_DevTools_tgl-flip",type:"checkbox",onChange:this._onChange,checked:this.state.isRoomAccountData,disabled:this.props.forceMode}),i.a.createElement("label",{className:"mx_DevTools_tgl-btn","data-tg-off":"Account Data","data-tg-on":"Room Data",htmlFor:"isRoomAccountData"}))))}}R()(gu,"propTypes",{room:Se.a.instanceOf(Pe.k).isRequired,isRoomAccountData:Se.a.bool,forceMode:Se.a.bool,inputs:Se.a.object}),R()(gu,"contextType",b.a);class fu extends i.a.PureComponent{static filterChildren(e,t){if(!t)return e;const n=t.toLowerCase();return e.filter(e=>e.key.toLowerCase().includes(n))}constructor(e){super(e),R()(this,"showAll",()=>{this.setState({truncateAt:this.state.truncateAt+50})}),R()(this,"createOverflowElement",(e,t)=>i.a.createElement("button",{className:"mx_DevTools_RoomStateExplorer_button",onClick:this.showAll},Object(c.a)("and %(count)s others...",{count:e}))),R()(this,"onQuery",e=>{this.props.onChange&&this.props.onChange(e.target.value)}),R()(this,"getChildren",(e,t)=>this.state.filteredChildren.slice(e,t)),R()(this,"getChildCount",()=>this.state.filteredChildren.length),this.state={filteredChildren:fu.filterChildren(this.props.children,this.props.query),truncateAt:20}}UNSAFE_componentWillReceiveProps(e){this.props.children===e.children&&this.props.query===e.query||this.setState({filteredChildren:fu.filterChildren(e.children,e.query),truncateAt:20})}render(){const e=u.getComponent("elements.TruncatedList");return i.a.createElement("div",null,i.a.createElement(Ce.a,{label:Object(c.a)("Filter results"),autoFocus:!0,size:64,type:"text",autoComplete:"off",value:this.props.query,onChange:this.onQuery,className:"mx_TextInputDialog_input mx_DevTools_RoomStateExplorer_query",key:this.props.children[0]?this.props.children[0].key:""}),i.a.createElement(e,{getChildren:this.getChildren,getChildCount:this.getChildCount,truncateAt:this.state.truncateAt,createOverflowElement:this.createOverflowElement}))}}R()(fu,"propTypes",{children:Se.a.any,query:Se.a.string,onChange:Se.a.func});class _u extends i.a.PureComponent{static getLabel(){return Object(c.a)("Explore Room State")}constructor(e){super(e),R()(this,"roomStateEvents",void 0),this.roomStateEvents=this.props.room.currentState.events,this.onBack=this.onBack.bind(this),this.editEv=this.editEv.bind(this),this.onQueryEventType=this.onQueryEventType.bind(this),this.onQueryStateKey=this.onQueryStateKey.bind(this),this.state={eventType:null,event:null,editing:!1,queryEventType:"",queryStateKey:""}}browseEventType(e){return()=>{this.setState({eventType:e})}}onViewSourceClick(e){return()=>{this.setState({event:e})}}onBack(){this.state.editing?this.setState({editing:!1}):this.state.event?this.setState({event:null}):this.state.eventType?this.setState({eventType:null}):this.props.onBack()}editEv(){this.setState({editing:!0})}onQueryEventType(e){this.setState({queryEventType:e})}onQueryStateKey(e){this.setState({queryStateKey:e})}render(){if(this.state.event)return this.state.editing?i.a.createElement(mu,{room:this.props.room,forceStateEvent:!0,onBack:this.onBack,inputs:{eventType:this.state.event.getType(),evContent:JSON.stringify(this.state.event.getContent(),null,"\t"),stateKey:this.state.event.getStateKey()}}):i.a.createElement("div",{className:"mx_ViewSource"},i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement(El,{className:"json"},JSON.stringify(this.state.event.event,null,2))),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:this.onBack},Object(c.a)("Back")),i.a.createElement("button",{onClick:this.editEv},Object(c.a)("Edit"))));let e=null;const t="mx_DevTools_RoomStateExplorer_button";if(null===this.state.eventType)e=i.a.createElement(fu,{query:this.state.queryEventType,onChange:this.onQueryEventType},Array.from(this.roomStateEvents.entries()).map(([e,n])=>{let o;return o=1===n.size&&n.has("")?this.onViewSourceClick(n.get("")):this.browseEventType(e),i.a.createElement("button",{className:t,key:e,onClick:o},e)}));else{const n=this.roomStateEvents.get(this.state.eventType);e=i.a.createElement(fu,{query:this.state.queryStateKey,onChange:this.onQueryStateKey},Array.from(n.entries()).map(([e,n])=>i.a.createElement("button",{className:t,key:e,onClick:this.onViewSourceClick(n)},e)))}return i.a.createElement("div",null,i.a.createElement("div",{className:"mx_Dialog_content"},e),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:this.onBack},Object(c.a)("Back"))))}}R()(_u,"propTypes",{onBack:Se.a.func.isRequired,room:Se.a.instanceOf(Pe.k).isRequired}),R()(_u,"contextType",b.a);class bu extends i.a.PureComponent{static getLabel(){return Object(c.a)("Explore Account Data")}constructor(e){super(e),this.onBack=this.onBack.bind(this),this.editEv=this.editEv.bind(this),this._onChange=this._onChange.bind(this),this.onQueryEventType=this.onQueryEventType.bind(this),this.state={isRoomAccountData:!1,event:null,editing:!1,queryEventType:""}}getData(){return this.state.isRoomAccountData?this.props.room.accountData:this.context.store.accountData}onViewSourceClick(e){return()=>{this.setState({event:e})}}onBack(){this.state.editing?this.setState({editing:!1}):this.state.event?this.setState({event:null}):this.props.onBack()}_onChange(e){this.setState({[e.target.id]:"checkbox"===e.target.type?e.target.checked:e.target.value})}editEv(){this.setState({editing:!0})}onQueryEventType(e){this.setState({queryEventType:e})}render(){if(this.state.event)return this.state.editing?i.a.createElement(gu,{room:this.props.room,isRoomAccountData:this.state.isRoomAccountData,onBack:this.onBack,inputs:{eventType:this.state.event.getType(),evContent:JSON.stringify(this.state.event.getContent(),null,"\t")},forceMode:!0}):i.a.createElement("div",{className:"mx_ViewSource"},i.a.createElement("div",{className:"mx_DevTools_content"},i.a.createElement(El,{className:"json"},JSON.stringify(this.state.event.event,null,2))),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:this.onBack},Object(c.a)("Back")),i.a.createElement("button",{onClick:this.editEv},Object(c.a)("Edit"))));const e=[],t=this.getData();return Object.keys(t).forEach(n=>{const o=t[n];e.push(i.a.createElement("button",{className:"mx_DevTools_RoomStateExplorer_button",key:n,onClick:this.onViewSourceClick(o)},n))}),i.a.createElement("div",null,i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement(fu,{query:this.state.queryEventType,onChange:this.onQueryEventType},e)),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:this.onBack},Object(c.a)("Back")),!this.state.message&&i.a.createElement("div",{style:{float:"right"}},i.a.createElement("input",{id:"isRoomAccountData",className:"mx_DevTools_tgl mx_DevTools_tgl-flip",type:"checkbox",onChange:this._onChange,checked:this.state.isRoomAccountData}),i.a.createElement("label",{className:"mx_DevTools_tgl-btn","data-tg-off":"Account Data","data-tg-on":"Room Data",htmlFor:"isRoomAccountData"}))))}}R()(bu,"propTypes",{onBack:Se.a.func.isRequired,room:Se.a.instanceOf(Pe.k).isRequired}),R()(bu,"contextType",b.a);class vu extends i.a.PureComponent{static getLabel(){return Object(c.a)("View Servers in Room")}constructor(e){super(e),R()(this,"onQuery",e=>{this.setState({query:e})});const t=this.props.room,n=new Set;t.currentState.getStateEvents("m.room.member").forEach(e=>n.add(e.getSender().split(":")[1])),this.servers=Array.from(n).map(e=>i.a.createElement("button",{key:e,className:"mx_DevTools_ServersInRoomList_button"},e)),this.state={query:""}}render(){return i.a.createElement("div",null,i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement(fu,{query:this.state.query,onChange:this.onQuery},this.servers)),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:this.props.onBack},Object(c.a)("Back"))))}}R()(vu,"propTypes",{onBack:Se.a.func.isRequired,room:Se.a.instanceOf(Pe.k).isRequired}),R()(vu,"contextType",b.a);const Eu={[vi.g]:"unsent",[vi.e]:"requested",[vi.d]:"ready",[vi.c]:"done",[vi.f]:"started",[vi.b]:"cancelled"};function yu({txnId:e,request:t}){const[,n]=Object(r.useState)(),[o,a]=Object(r.useState)(t.timeout);return Object(_.a)(t,"change",n),Object(r.useEffect)(()=>{if(0==t.timeout)return;const e=setInterval(()=>{a(t.timeout)},500);return()=>{clearInterval(e)}},[t]),i.a.createElement("div",{className:"mx_DevTools_VerificationRequest"},i.a.createElement("dl",null,i.a.createElement("dt",null,"Transaction"),i.a.createElement("dd",null,e),i.a.createElement("dt",null,"Phase"),i.a.createElement("dd",null,Eu[t.phase]||t.phase),i.a.createElement("dt",null,"Timeout"),i.a.createElement("dd",null,Math.floor(o/1e3)),i.a.createElement("dt",null,"Methods"),i.a.createElement("dd",null,t.methods&&t.methods.join(", ")),i.a.createElement("dt",null,"requestingUserId"),i.a.createElement("dd",null,t.requestingUserId),i.a.createElement("dt",null,"observeOnly"),i.a.createElement("dd",null,JSON.stringify(t.observeOnly))))}class Su extends i.a.Component{constructor(...e){super(...e),R()(this,"onNewRequest",()=>{this.forceUpdate()})}static getLabel(){return Object(c.a)("Verification Requests")}componentDidMount(){this.context.on("crypto.verification.request",this.onNewRequest)}componentWillUnmount(){this.context.off("crypto.verification.request",this.onNewRequest)}render(){const e=this.context,t=this.props.room,n=(e._crypto._inRoomVerificationRequests._requestsByRoomId||new Map).get(t.roomId)||new Map;return i.a.createElement("div",null,i.a.createElement("div",{className:"mx_Dialog_content"},Array.from(n.entries()).reverse().map(([e,t])=>i.a.createElement(yu,{txnId:e,request:t,key:e}))),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:this.props.onBack},Object(c.a)("Back"))))}}R()(Su,"contextType",b.a);class Tu extends i.a.Component{static getLabel(){return Object(c.a)("Active Widgets")}constructor(e){super(e),R()(this,"onWidgetStoreUpdate",()=>{this.forceUpdate()}),R()(this,"onQueryChange",e=>{this.setState({query:e})}),R()(this,"onEditWidget",e=>{this.setState({editWidget:e})}),R()(this,"onBack",()=>{const e=Vr.b.instance.getApps(this.props.room.roomId);this.state.editWidget&&e.includes(this.state.editWidget)?this.setState({editWidget:null}):this.props.onBack()}),this.state={query:"",editWidget:null}}componentDidMount(){Vr.b.instance.on(f.b,this.onWidgetStoreUpdate)}componentWillUnmount(){Vr.b.instance.off(f.b,this.onWidgetStoreUpdate)}render(){const e=this.props.room,t=this.state.editWidget,n=Vr.b.instance.getApps(e.roomId);if(t&&n.includes(t)){const n=Array.from(Array.from(e.currentState.events.values()).map(e=>e.values())).reduce((e,t)=>(e.push(...t),e),[]).find(e=>e.getId()===t.eventId);return n?i.a.createElement(mu,{onBack:this.onBack,room:e,forceStateEvent:!0,inputs:{eventType:n.getType(),evContent:JSON.stringify(n.getContent(),null,"\t"),stateKey:n.getStateKey()}}):i.a.createElement("div",null,Object(c.a)("There was an error finding this widget."),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:this.onBack},Object(c.a)("Back"))))}return i.a.createElement("div",null,i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement(fu,{query:this.state.query,onChange:this.onQueryChange},n.map(e=>i.a.createElement("button",{className:"mx_DevTools_RoomStateExplorer_button",key:e.url+e.eventId,onClick:()=>this.onEditWidget(e)},e.url)))),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:this.onBack},Object(c.a)("Back"))))}}const wu=[mu,_u,gu,bu,vu,Su,Tu];class Cu extends i.a.PureComponent{constructor(e){super(e),this.onBack=this.onBack.bind(this),this.onCancel=this.onCancel.bind(this),this.state={mode:null}}componentWillUnmount(){this._unmounted=!0}_setMode(e){return()=>{this.setState({mode:e})}}onBack(){this.prevMode?(this.setState({mode:this.prevMode}),this.prevMode=null):this.setState({mode:null})}onCancel(){this.props.onFinished(!1)}render(){let e;if(this.state.mode)e=i.a.createElement(b.a.Consumer,null,e=>i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"mx_DevTools_label_left"},this.state.mode.getLabel()),i.a.createElement("div",{className:"mx_DevTools_label_right"},"Room ID: ",this.props.roomId),i.a.createElement("div",{className:"mx_DevTools_label_bottom"}),i.a.createElement(this.state.mode,{onBack:this.onBack,room:e.getRoom(this.props.roomId)})));else{const t="mx_DevTools_RoomStateExplorer_button";e=i.a.createElement(i.a.Fragment,null,i.a.createElement("div",null,i.a.createElement("div",{className:"mx_DevTools_label_left"},Object(c.a)("Toolbox")),i.a.createElement("div",{className:"mx_DevTools_label_right"},"Room ID: ",this.props.roomId),i.a.createElement("div",{className:"mx_DevTools_label_bottom"}),i.a.createElement("div",{className:"mx_Dialog_content"},wu.map(e=>{const n=e.getLabel(),o=this._setMode(e);return i.a.createElement("button",{className:t,key:n,onClick:o},n)}))),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:this.onCancel},Object(c.a)("Cancel"))))}const t=u.getComponent("views.dialogs.BaseDialog");return i.a.createElement(t,{className:"mx_QuestionDialog",onFinished:this.props.onFinished,title:Object(c.a)("Developer Tools")},e)}}R()(Cu,"propTypes",{roomId:Se.a.string.isRequired,onFinished:Se.a.func.isRequired});class xu extends i.a.Component{constructor(e){super(e),R()(this,"_onFinished",()=>{this.props.onFinished(3===this.state.phase)}),R()(this,"_onCancelClick",()=>{this.props.onFinished(3===this.state.phase)}),R()(this,"_onContinueClick",()=>{this.setState({phase:2}),this.props.verifier.verify().then(()=>{this.setState({phase:3})}).catch(e=>{console.log("Verification failed",e)})}),R()(this,"_onVerifierShowSas",e=>{this._showSasEvent=e,this.setState({phase:1,sas:e.sas})}),R()(this,"_onVerifierCancel",e=>{this.setState({phase:4})}),R()(this,"_onSasMatchesClick",()=>{this._showSasEvent.confirm(),this.setState({phase:2})}),R()(this,"_onVerifiedDoneClick",()=>{this.props.onFinished(!0)});let t=0;this.props.verifier.cancelled&&(console.log("Verifier was cancelled in the background."),t=4),this._showSasEvent=null,this.state={phase:t,sasVerified:!1,opponentProfile:null,opponentProfileError:null},this.props.verifier.on("show_sas",this._onVerifierShowSas),this.props.verifier.on("cancel",this._onVerifierCancel),this._fetchOpponentProfile()}componentWillUnmount(){4!==this.state.phase&&3!==this.state.phase&&this.props.verifier.cancel("User cancel"),this.props.verifier.removeListener("show_sas",this._onVerifierShowSas)}async _fetchOpponentProfile(){try{const e=await X.a.get().getProfileInfo(this.props.verifier.userId);this.setState({opponentProfile:e})}catch(e){this.setState({opponentProfileError:e})}}_renderPhaseStart(){const e=u.getComponent("views.elements.DialogButtons"),t=u.getComponent("views.elements.Spinner"),n=u.getComponent("avatars.BaseAvatar"),o=this.props.verifier.userId==X.a.get().getUserId();let r;r=this.state.opponentProfile?i.a.createElement("div",{className:"mx_IncomingSasDialog_opponentProfile"},i.a.createElement(n,{name:this.state.opponentProfile.displayname,idName:this.props.verifier.userId,url:X.a.get().mxcUrlToHttp(this.state.opponentProfile.avatar_url,Math.floor(48*window.devicePixelRatio),Math.floor(48*window.devicePixelRatio),"crop"),width:48,height:48,resizeMethod:"crop"}),i.a.createElement("h2",null,this.state.opponentProfile.displayname)):this.state.opponentProfileError?i.a.createElement("div",null,i.a.createElement(n,{name:this.props.verifier.userId.slice(1),idName:this.props.verifier.userId,width:48,height:48}),i.a.createElement("h2",null,this.props.verifier.userId)):i.a.createElement(t,null);const a=[i.a.createElement("p",{key:"p1"},Object(c.a)("Verify this user to mark them as trusted. Trusting users gives you extra peace of mind when using end-to-end encrypted messages.")),i.a.createElement("p",{key:"p2"},Object(c.a)("Verifying this user will mark their session as trusted, and also mark your session as trusted to them."))],s=[i.a.createElement("p",{key:"p1"},Object(c.a)("Verify this device to mark it as trusted. Trusting this device gives you and other users extra peace of mind when using end-to-end encrypted messages.")),i.a.createElement("p",{key:"p2"},Object(c.a)("Verifying this device will mark it as trusted, and users who have verified with you will trust this device."))];return i.a.createElement("div",null,r,o?s:a,i.a.createElement(e,{primaryButton:Object(c.a)("Continue"),hasCancel:!0,onPrimaryButtonClick:this._onContinueClick,onCancel:this._onCancelClick}))}_renderPhaseShowSas(){const e=u.getComponent("views.verification.VerificationShowSas");return i.a.createElement(e,{sas:this._showSasEvent.sas,onCancel:this._onCancelClick,onDone:this._onSasMatchesClick,isSelf:this.props.verifier.userId===X.a.get().getUserId(),inDialog:!0})}_renderPhaseWaitForPartnerToConfirm(){const e=u.getComponent("views.elements.Spinner");return i.a.createElement("div",null,i.a.createElement(e,null),i.a.createElement("p",null,Object(c.a)("Waiting for partner to confirm...")))}_renderPhaseVerified(){const e=u.getComponent("views.verification.VerificationComplete");return i.a.createElement(e,{onDone:this._onVerifiedDoneClick})}_renderPhaseCancelled(){const e=u.getComponent("views.verification.VerificationCancelled");return i.a.createElement(e,{onDone:this._onCancelClick})}render(){let e;switch(this.state.phase){case 0:e=this._renderPhaseStart();break;case 1:e=this._renderPhaseShowSas();break;case 2:e=this._renderPhaseWaitForPartnerToConfirm();break;case 3:e=this._renderPhaseVerified();break;case 4:e=this._renderPhaseCancelled()}const t=u.getComponent("dialogs.BaseDialog");return i.a.createElement(t,{title:Object(c.a)("Incoming Verification Request"),onFinished:this._onFinished,fixedWidth:!1},e)}}R()(xu,"propTypes",{verifier:Se.a.object.isRequired});var Ou=n(710),ku=n(707);function Ru({failures:e,source:t,continuation:n,onFinished:o}){const a=u.getComponent("dialogs.BaseDialog"),s=u.getComponent("views.elements.DialogButtons"),d=u.getComponent("elements.Spinner"),[h,p]=Object(r.useState)(2),[m,g]=Object(r.useState)(!1),[f,_]=Object(r.useState)(!1),[b,v]=Object(r.useState)(!1),E=Object(r.useRef)(o),y=new Map([["_afterCrossSigningLocalKeyChange",Object(c.a)("a new master key signature")],["checkOwnCrossSigningTrust",Object(c.a)("a new cross-signing key signature")],["setDeviceVerification",Object(c.a)("a device cross-signing signature")]]),S=Object(c.a)("a key signature"),T=Object(r.useCallback)(async()=>{try{_(!0);const e=new Promise((e,t)=>{E.current=t}).finally(()=>{g(!0)});await Promise.race([n(),e]),v(!0)}catch(e){p(e=>e-1)}finally{E.current=o,_(!1)}},[n,o]);let w;if(!b&&!m&&n&&h>0){const n=y.get(t)||S,o=l.a.get().brand;w=i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("%(brand)s encountered an error during upload of:",{brand:o})),i.a.createElement("p",null,n),f&&i.a.createElement(d,null),i.a.createElement("pre",null,JSON.stringify(e,null,2)),i.a.createElement(s,{primaryButton:"Retry",hasCancel:!0,onPrimaryButtonClick:T,onCancel:E.current,primaryDisabled:f}))}else w=i.a.createElement("div",null,b?i.a.createElement("span",null,Object(c.a)("Upload completed")):m?i.a.createElement("span",null,Object(c.a)("Cancelled signature upload")):i.a.createElement("span",null,Object(c.a)("Unable to upload")),i.a.createElement(s,{primaryButton:Object(c.a)("OK"),hasCancel:!1,onPrimaryButtonClick:o}));return i.a.createElement(a,{title:b?Object(c.a)("Signature upload success"):Object(c.a)("Signature upload failed"),fixedWidth:!1,onFinished:()=>{}},w)}var Au=e=>{const t=l.a.get().brand,n=Object(c.a)("You've previously used %(brand)s on %(host)s with lazy loading of members enabled. In this version lazy loading is disabled. As the local cache is not compatible between these two settings, %(brand)s needs to resync your account.",{brand:t,host:e.host}),o=Object(c.a)("If the other version of %(brand)s is still open in another tab, please close it as using %(brand)s on the same host with both lazy loading enabled and disabled simultaneously will cause issues.",{brand:t});return i.a.createElement(vt.a,{hasCancelButton:!1,title:Object(c.a)("Incompatible local cache"),description:i.a.createElement("div",null,i.a.createElement("p",null,n),i.a.createElement("p",null,o)),button:Object(c.a)("Clear cache and resync"),onFinished:e.onFinished})},Iu=e=>{const t=l.a.get().brand,n=Object(c.a)("%(brand)s now uses 3-5x less memory, by only loading information about other users when needed. Please wait whilst we resynchronise with the server!",{brand:t});return i.a.createElement(vt.a,{hasCancelButton:!1,title:Object(c.a)("Updating %(brand)s",{brand:t}),description:i.a.createElement("div",null,n),button:Object(c.a)("OK"),onFinished:e.onFinished})};class Du extends i.a.Component{constructor(...e){super(...e),R()(this,"_onCancelClick",()=>{this.props.onFinished(!1)}),R()(this,"_onLegacyFinished",e=>{e&&X.a.get().setDeviceVerified(this.props.userId,this.props.device.deviceId,!0),this.props.onFinished(e)})}render(){const e=u.getComponent("dialogs.QuestionDialog");let t;t=X.a.get().getUserId()===this.props.userId?Object(c.a)("Confirm by comparing the following with the User Settings in your other session:"):Object(c.a)("Confirm this user's session by comparing the following with their User Settings:");const n=q.e(this.props.device.getFingerprint()),o=i.a.createElement("div",null,i.a.createElement("p",null,t),i.a.createElement("div",{className:"mx_DeviceVerifyDialog_cryptoSection"},i.a.createElement("ul",null,i.a.createElement("li",null,i.a.createElement("label",null,Object(c.a)("Session name"),":")," ",i.a.createElement("span",null,this.props.device.getDisplayName())),i.a.createElement("li",null,i.a.createElement("label",null,Object(c.a)("Session ID"),":")," ",i.a.createElement("span",null,i.a.createElement("code",null,this.props.device.deviceId))),i.a.createElement("li",null,i.a.createElement("label",null,Object(c.a)("Session key"),":")," ",i.a.createElement("span",null,i.a.createElement("code",null,i.a.createElement("b",null,n)))))),i.a.createElement("p",null,Object(c.a)("If they don't match, the security of your communication may be compromised.")));return i.a.createElement(e,{title:Object(c.a)("Verify session"),description:o,button:Object(c.a)("Verify session"),onFinished:this._onLegacyFinished})}}R()(Du,"propTypes",{userId:Se.a.string.isRequired,device:Se.a.object.isRequired,onFinished:Se.a.func.isRequired});class Nu extends i.a.PureComponent{constructor(e){super(e),R()(this,"loadMoreEdits",async e=>{if(e||!this.state.nextBatch&&!this.state.isLoading)return!1;const t={from:this.state.nextBatch},n=this.props.mxEvent.getRoomId(),o=this.props.mxEvent.getId(),r=X.a.get();let i,a,s;const c=new Promise((e,t)=>{a=e,s=t});try{i=await r.relations(n,o,"m.replace","m.room.message",t)}catch(e){return e.errcode&&console.error("fetching /relations failed with error",e),this.setState({error:e},()=>s(e)),c}const l=i.events;return this._locallyRedactEventsIfNeeded(l),this.setState({originalEvent:this.state.originalEvent||i.originalEvent,events:this.state.events.concat(l),nextBatch:i.nextBatch,isLoading:!1},()=>{const e=!!this.state.nextBatch;a(e)}),c}),this.state={originalEvent:null,error:null,events:[],nextBatch:null,isLoading:!0,isTwelveHour:P.a.getValue("showTwelveHourTimestamps")}}_locallyRedactEventsIfNeeded(e){const t=this.props.mxEvent.getRoomId(),n=X.a.get().getRoom(t).getPendingEvents();for(const t of e){const e=n.find(e=>"m.room.redaction"===e.getType()&&e.getAssociatedId()===t.getId());e&&t.markLocallyRedacted(e)}}componentDidMount(){this.loadMoreEdits()}_renderEdits(){const e=u.getComponent("messages.EditHistoryMessage"),t=u.getComponent("messages.DateSeparator"),n=[];let o,r=this.state.events;this.state.originalEvent&&!this.state.nextBatch&&(r=r.concat(this.state.originalEvent));const a=this.props.mxEvent.getId();return r.forEach((s,c)=>{o&&!Object(Vc.e)(o.getDate(),s.getDate())||n.push(i.a.createElement("li",{key:s.getTs()+"~"},i.a.createElement(t,{ts:s.getTs()})));const l=s.getId()===a;n.push(i.a.createElement(e,{key:s.getId(),previousEdit:l?null:r[c+1],isBaseEvent:l,mxEvent:s,isTwelveHour:this.state.isTwelveHour})),o=s}),n}render(){let e;if(this.state.error){const{error:t}=this.state;e="M_UNRECOGNIZED"===t.errcode?i.a.createElement("p",{className:"mx_MessageEditHistoryDialog_error"},Object(c.a)("Your homeserver doesn't seem to support this feature.")):t.errcode?i.a.createElement("p",{className:"mx_MessageEditHistoryDialog_error"},Object(c.a)("Something went wrong!")):i.a.createElement("p",{className:"mx_MessageEditHistoryDialog_error"},Object(c.a)("Cannot reach homeserver"),i.a.createElement("br",null),Object(c.a)("Ensure you have a stable internet connection, or get in touch with the server admin"))}else if(this.state.isLoading){const t=u.getComponent("elements.Spinner");e=i.a.createElement(t,null)}else{const t=u.getComponent("structures.ScrollPanel");e=i.a.createElement(t,{className:"mx_MessageEditHistoryDialog_scrollPanel",onFillRequest:this.loadMoreEdits,stickyBottom:!1,startAtBottom:!1},i.a.createElement("ul",{className:"mx_MessageEditHistoryDialog_edits mx_MessagePanel_alwaysShowTimestamps"},this._renderEdits()))}const t=u.getComponent("views.dialogs.BaseDialog");return i.a.createElement(t,{className:"mx_MessageEditHistoryDialog",hasCancel:!0,onFinished:this.props.onFinished,title:Object(c.a)("Message edits")},e)}}R()(Nu,"propTypes",{mxEvent:Se.a.object.isRequired});var Fu=n(719),Mu=n(1577),Pu=n.n(Mu);const Lu=["sub","sup","del","u"],Uu=["text","softbreak","linebreak","paragraph","document"];function Bu(e){if(null!=e.literal&&null!=e.literal.match('^<((div|span) data-mx-maths="[^"]*"|/(div|span))>$'))return!0;const t=/^<\/?(.*)>$/.exec(e.literal);if(t&&2==t.length){const e=t[1];return Lu.indexOf(e)>-1}return!1}function ju(e){Bu(e)?this.lit(e.literal):this.lit(Object(_r.escape)(e.literal))}function Gu(e){let t=e;for(;t.parent;)t=t.parent;return t.firstChild!=t.lastChild}class qu{constructor(e){this.input=e;const t=new Pu.a.Parser;this.parsed=t.parse(this.input)}isPlainText(){const e=this.parsed.walker();let t;for(;t=e.next();){const e=t.node;if(!(Uu.indexOf(e.type)>-1)){if("html_inline"!=e.type&&"html_block"!=e.type)return!1;if(Bu(e))return!1}}return!0}toHTML({externalLinks:e=!1}={}){const t=new Pu.a.HtmlRenderer({safe:!1,softbreak:"<br />"}),n=t.paragraph;return t.paragraph=function(e,t){Gu(e)&&n.call(this,e,t)},t.link=function(t,n){const o=this.attrs(t);n?(o.push(["href",this.esc(t.destination)]),t.title&&o.push(["title",this.esc(t.title)]),e&&(o.push(["target","_blank"]),o.push(["rel","noreferrer noopener"])),this.tag("a",o)):this.tag("/a")},t.html_inline=ju,t.html_block=function(e){ju.call(this,e)},t.render(this.parsed)}toPlaintext(){const e=new Pu.a.HtmlRenderer({safe:!1});e.paragraph;return e.paragraph=function(e,t){Gu(e)&&!t&&e.next&&this.lit("\n\n")},e.html_block=function(e){this.lit(e.literal),Gu(e)&&e.next&&this.lit("\n\n")},e.render(this.parsed)}}class Hu extends r.PureComponent{constructor(e){super(e),R()(this,"_onReasonChange",({target:{value:e}})=>{this.setState({reason:e})}),R()(this,"_onCancel",()=>{this.props.onFinished(!1)}),R()(this,"_onSubmit",async()=>{if(this.state.reason&&this.state.reason.trim()){this.setState({busy:!0,err:null});try{const e=this.props.mxEvent;await X.a.get().reportEvent(e.getRoomId(),e.getId(),-100,this.state.reason.trim()),this.props.onFinished(!0)}catch(e){this.setState({busy:!1,err:e.message})}}else this.setState({err:Object(c.a)("Please fill why you're reporting.")})}),this.state={reason:"",busy:!1,err:null}}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons"),n=u.getComponent("elements.Spinner"),o=u.getComponent("elements.Field");let r=null;this.state.err&&(r=i.a.createElement("div",{className:"error"},this.state.err));let a=null;this.state.busy&&(a=i.a.createElement("div",{className:"progress"},i.a.createElement(n,null)));const s=l.a.get().reportEvent&&l.a.get().reportEvent.adminMessageMD;let d;if(s){const e=new qu(s).toHTML({externalLinks:!0});d=i.a.createElement("p",{dangerouslySetInnerHTML:{__html:e}})}return i.a.createElement(e,{className:"mx_BugReportDialog",onFinished:this.props.onFinished,title:Object(c.a)("Report Content to Your Homeserver Administrator"),contentId:"mx_ReportEventDialog"},i.a.createElement("div",{className:"mx_ReportEventDialog",id:"mx_ReportEventDialog"},i.a.createElement("p",null,Object(c.a)("Reporting this message will send its unique 'event ID' to the administrator of your homeserver. If messages in this room are encrypted, your homeserver administrator will not be able to read the message text or view any files or images.")),d,i.a.createElement(o,{className:"mx_ReportEventDialog_reason",element:"textarea",label:Object(c.a)("Reason"),rows:5,onChange:this._onReasonChange,value:this.state.reason,disabled:this.state.busy}),a,r),i.a.createElement(t,{primaryButton:Object(c.a)("Send report"),onPrimaryButtonClick:this._onSubmit,focus:!0,onCancel:this._onCancel,disabled:this.state.busy}))}}function Vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}R()(Hu,"propTypes",{mxEvent:Se.a.instanceOf(Pe.j).isRequired,onFinished:Se.a.func.isRequired});class zu extends i.a.Component{constructor(e){super(e),R()(this,"_upgradeRoom",e=>{const t=u.getComponent("dialogs.RoomUpgradeDialog"),n=X.a.get().getRoom(this.props.roomId);Ie.a.createTrackedDialog("Upgrade Room Version","",t,{room:n})}),R()(this,"_openDevtools",e=>{const t=u.getComponent("dialogs.DevtoolsDialog");Ie.a.createDialog(t,{roomId:this.props.roomId})}),R()(this,"_onOldRoomClicked",e=>{e.preventDefault(),e.stopPropagation(),d.a.dispatch({action:"view_room",room_id:this.state.oldRoomId,event_id:this.state.oldEventId}),this.props.closeSettingsFn()}),this.state={upgradeRecommendation:null}}UNSAFE_componentWillMount(){const e=X.a.get().getRoom(this.props.roomId);e.getRecommendedVersion().then(t=>{const n=e.currentState.getStateEvents("m.room.tombstone",""),o={},r=e.currentState.getStateEvents("m.room.create",""),i=r?r.getContent().predecessor:null;i&&i.room_id&&(o.oldRoomId=i.room_id,o.oldEventId=i.event_id,o.hasPreviousRoom=!0),this.setState(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vu(Object(n),!0).forEach((function(t){R()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({upgraded:n&&n.getContent().replacement_room,upgradeRecommendation:t},o))})}render(){const e=X.a.get().getRoom(this.props.roomId);let t;const n=e.currentState.getStateEvents("m.room.create","");let o,r;if(n&&!1===n.getContent()["m.federate"]&&(t=i.a.createElement("div",null,Object(c.a)("This room is not accessible by remote Matrix servers"))),this.state.upgradeRecommendation&&this.state.upgradeRecommendation.needsUpgrade&&!this.state.upgraded&&(o=i.a.createElement("div",null,i.a.createElement("p",{className:"mx_SettingsTab_warningText"},Object(c.a)("<b>Warning</b>: Upgrading a room will <i>not automatically migrate room members to the new version of the room.</i> We'll post a link to the new room in the old version of the room - room members will have to click this link to join the new room.",{},{b:e=>i.a.createElement("b",null,e),i:e=>i.a.createElement("i",null,e)})),i.a.createElement(g.a,{onClick:this._upgradeRoom,kind:"primary"},Object(c.a)("Upgrade this room to the recommended room version")))),this.state.hasPreviousRoom){let e=Object(c.a)("this room");const t=X.a.get().getRoom(this.props.roomId);t&&t.name&&(e=t.name),r=i.a.createElement(g.a,{element:"a",onClick:this._onOldRoomClicked},Object(c.a)("View older messages in %(roomName)s.",{roomName:e}))}return i.a.createElement("div",{className:"mx_SettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Advanced")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Room information")),i.a.createElement("div",null,i.a.createElement("span",null,Object(c.a)("Internal room ID:"))," ",this.props.roomId),t),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Room version")),i.a.createElement("div",null,i.a.createElement("span",null,Object(c.a)("Room version:"))," ",e.getVersion()),r,o),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Developer options")),i.a.createElement(g.a,{onClick:this._openDevtools,kind:"primary"},Object(c.a)("Open Devtools"))))}}R()(zu,"propTypes",{roomId:Se.a.string.isRequired,closeSettingsFn:Se.a.func.isRequired});const Ku={"m.room.avatar":Object(c.b)("Change room avatar"),"m.room.name":Object(c.b)("Change room name"),"m.room.canonical_alias":Object(c.b)("Change main address for the room"),"m.room.history_visibility":Object(c.b)("Change history visibility"),"m.room.power_levels":Object(c.b)("Change permissions"),"m.room.topic":Object(c.b)("Change topic"),"m.room.tombstone":Object(c.b)("Upgrade the room"),"m.room.encryption":Object(c.b)("Enable room encryption"),"im.vector.modular.widgets":Object(c.b)("Modify widgets")},Wu={"m.room.avatar":{isState:!0},"m.room.name":{isState:!0},"m.room.canonical_alias":{isState:!0},"m.room.history_visibility":{isState:!0},"m.room.power_levels":{isState:!0},"m.room.topic":{isState:!0},"m.room.tombstone":{isState:!0},"m.room.encryption":{isState:!0},"im.vector.modular.widgets":{isState:!0}};function Yu(e,t){const n=parseInt(e);return isNaN(n)?t:n}class $u extends i.a.Component{constructor(...e){super(...e),R()(this,"_onUnbanClick",e=>{X.a.get().unban(this.props.member.roomId,this.props.member.userId).catch(e=>{const t=u.getComponent("dialogs.ErrorDialog");console.error("Failed to unban: "+e),Ie.a.createTrackedDialog("Failed to unban","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Failed to unban")})})})}render(){let e;this.props.canUnban&&(e=i.a.createElement(g.a,{kind:"danger_sm",onClick:this._onUnbanClick,className:"mx_RolesRoomSettingsTab_unbanBtn"},Object(c.a)("Unban")));const t=this.props.member.name===this.props.member.userId?null:this.props.member.userId;return i.a.createElement("li",null,e,i.a.createElement("span",{title:Object(c.a)("Banned by %(displayName)s",{displayName:this.props.by})},i.a.createElement("strong",null,this.props.member.name)," ",t,this.props.reason?" "+Object(c.a)("Reason")+": "+this.props.reason:""))}}R()($u,"propTypes",{canUnban:Se.a.bool,member:Se.a.object.isRequired,by:Se.a.string.isRequired,reason:Se.a.string});class Qu extends i.a.Component{constructor(...e){super(...e),R()(this,"_onRoomMembership",(e,t,n)=>{t.roomId===this.props.roomId&&this.forceUpdate()}),R()(this,"_onPowerLevelsChanged",(e,t)=>{const n=X.a.get(),o=n.getRoom(this.props.roomId).currentState.getStateEvents("m.room.power_levels","");let r=o&&o.getContent()||{};r=Object.assign({},r);if(e=parseInt(e),t.startsWith("event_levels_"))r.events=Object.assign({},r.events||{}),r.events[t.slice("event_levels_".length)]=e;else{const n=t.split(".");let o,i=r;for(const e of n)i[e]||(i[e]={}),o=i,i=i[e];o[n[n.length-1]]=e}n.sendStateEvent(this.props.roomId,"m.room.power_levels",r).catch(e=>{console.error(e);const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Power level requirement change failed","",t,{title:Object(c.a)("Error changing power level requirement"),description:Object(c.a)("An error occurred changing the room's power level requirements. Ensure you have sufficient permissions and try again.")})})}),R()(this,"_onUserPowerLevelChanged",(e,t)=>{const n=X.a.get(),o=n.getRoom(this.props.roomId).currentState.getStateEvents("m.room.power_levels","");let r=o&&o.getContent()||{};r=Object.assign({},r),r.users||(r.users={}),r.users[t]=e,n.sendStateEvent(this.props.roomId,"m.room.power_levels",r).catch(e=>{console.error(e);const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Power level change failed","",t,{title:Object(c.a)("Error changing power level"),description:Object(c.a)("An error occurred changing the user's power level. Ensure you have sufficient permissions and try again.")})})})}componentDidMount(){X.a.get().on("RoomState.members",this._onRoomMembership)}componentWillUnmount(){const e=X.a.get();e&&e.removeListener("RoomState.members",this._onRoomMembership)}_populateDefaultPlEvents(e,t,n){for(const o of Object.keys(Wu))o in e||(e[o]=Wu[o].isState?t:n)}render(){const e=u.getComponent("elements.PowerSelector"),t=X.a.get(),n=t.getRoom(this.props.roomId),o=n.currentState.getStateEvents("m.room.power_levels",""),r=o&&o.getContent()||{},a=n.currentState.mayClientSendStateEvent("m.room.power_levels",t),s={users_default:{desc:Object(c.a)("Default role"),defaultValue:0},events_default:{desc:Object(c.a)("Send messages"),defaultValue:0},invite:{desc:Object(c.a)("Invite users"),defaultValue:50},state_default:{desc:Object(c.a)("Change settings"),defaultValue:50},kick:{desc:Object(c.a)("Kick users"),defaultValue:50},ban:{desc:Object(c.a)("Ban users"),defaultValue:50},redact:{desc:Object(c.a)("Remove messages sent by others"),defaultValue:50},"notifications.room":{desc:Object(c.a)("Notify everyone"),defaultValue:50}},l=r.events||{},d=r.users||{},h=Yu(r.ban,s.ban.defaultValue),p=Yu(r.users_default,s.users_default.defaultValue);let m=d[t.getUserId()];void 0===m&&(m=p),this._populateDefaultPlEvents(l,Yu(r.state_default,s.state_default.defaultValue),Yu(r.events_default,s.events_default.defaultValue));let g,f=i.a.createElement("div",null,Object(c.a)("No users have specific privileges in this room"));if(Object.keys(d).length){const t=[],n=[];Object.keys(d).forEach(o=>{const r=d[o]<m&&a;d[o]>p?t.push(i.a.createElement(e,{value:d[o],disabled:!r,label:o,key:o,powerLevelKey:o,onChange:this._onUserPowerLevelChanged})):d[o]<p&&n.push(i.a.createElement(e,{value:d[o],disabled:!r,label:o,key:o,powerLevelKey:o,onChange:this._onUserPowerLevelChanged}))});const o=(e,t)=>{const n=d[t.key]-d[e.key];return 0!==n?n:e.key.toLocaleLowerCase().localeCompare(t.key.toLocaleLowerCase())};t.sort(o),n.sort(o),t.length&&(f=i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("div",{className:"mx_SettingsTab_subheading"},Object(c.a)("Privileged Users")),t)),n.length&&(g=i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("div",{className:"mx_SettingsTab_subheading"},Object(c.a)("Muted Users")),n))}const _=n.getMembersWithMembership("ban");let b;if(_.length){const e=m>=h;b=i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("div",{className:"mx_SettingsTab_subheading"},Object(c.a)("Banned users")),i.a.createElement("ul",null,_.map(t=>{const o=t.events.member.getContent(),r=n.getMember(t.events.member.getSender());let a=t.events.member.getSender();return r&&(a=r.name),i.a.createElement($u,{key:t.userId,canUnban:e,member:t,reason:o.reason,by:a})})))}const v=Object.keys(s).map((t,n)=>{const o=s[t],c=t.split(".");let l=r;for(const e of c){if(void 0===l)break;l=l[e]}const u=Yu(l,o.defaultValue);return i.a.createElement("div",{key:n,className:""},i.a.createElement(e,{label:o.desc,value:u,usersDefault:p,disabled:!a||m<u,powerLevelKey:t,onChange:this._onPowerLevelsChanged}))});t.isRoomEncrypted(this.props.roomId)&&delete l["m.room.encryption"];const E=Object.keys(l).map((t,n)=>{let o=Ku[t];return o=o?Object(c.a)(o):Object(c.a)("Send %(eventType)s events",{eventType:t}),i.a.createElement("div",{className:"",key:t},i.a.createElement(e,{label:o,value:l[t],usersDefault:p,disabled:!a||m<l[t],powerLevelKey:"event_levels_"+t,onChange:this._onPowerLevelsChanged}))});return i.a.createElement("div",{className:"mx_SettingsTab mx_RolesRoomSettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Roles & Permissions")),f,g,b,i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Permissions")),i.a.createElement("p",null,Object(c.a)("Select the roles required to change various parts of the room")),v,E))}}R()(Qu,"propTypes",{roomId:Se.a.string.isRequired});class Xu extends i.a.Component{constructor(e){super(e),R()(this,"_uploadAvatar",()=>{this._avatarUpload.current.click()}),R()(this,"_removeAvatar",()=>{this._avatarUpload.current.value="",this.setState({avatarUrl:void 0,avatarFile:void 0,enableProfileSave:!0})}),R()(this,"_clearProfile",async e=>{e.stopPropagation(),e.preventDefault(),this.state.enableProfileSave&&(this._removeAvatar(),this.setState({enableProfileSave:!1,displayName:this.state.originalDisplayName}))}),R()(this,"_saveProfile",async e=>{if(e.stopPropagation(),e.preventDefault(),!this.state.enableProfileSave)return;this.setState({enableProfileSave:!1});const t=X.a.get(),n={};if(this.state.originalDisplayName!==this.state.displayName&&(await t.setRoomName(this.props.roomId,this.state.displayName),n.originalDisplayName=this.state.displayName),this.state.avatarFile){const e=await t.uploadContent(this.state.avatarFile);await t.sendStateEvent(this.props.roomId,"m.room.avatar",{url:e},""),n.avatarUrl=t.mxcUrlToHttp(e,96,96,"crop",!1),n.originalAvatarUrl=n.avatarUrl,n.avatarFile=null}else this.state.originalAvatarUrl!==this.state.avatarUrl&&await t.sendStateEvent(this.props.roomId,"m.room.avatar",{url:void 0},"");this.state.originalTopic!==this.state.topic&&(await t.setRoomTopic(this.props.roomId,this.state.topic),n.originalTopic=this.state.topic),this.setState(n)}),R()(this,"_onDisplayNameChanged",e=>{this.setState({displayName:e.target.value,enableProfileSave:!0})}),R()(this,"_onTopicChanged",e=>{this.setState({topic:e.target.value,enableProfileSave:!0})}),R()(this,"_onAvatarChanged",e=>{if(!e.target.files||!e.target.files.length)return void this.setState({avatarUrl:this.state.originalAvatarUrl,avatarFile:null,enableProfileSave:!1});const t=e.target.files[0],n=new FileReader;n.onload=e=>{this.setState({avatarUrl:e.target.result,avatarFile:t,enableProfileSave:!0})},n.readAsDataURL(t)});const t=X.a.get(),n=t.getRoom(e.roomId);if(!n)throw new Error("Expected a room for ID: ",e.roomId);const o=n.currentState.getStateEvents("m.room.avatar","");let i=o&&o.getContent()?o.getContent().url:null;i&&(i=t.mxcUrlToHttp(i,96,96,"crop",!1));const a=n.currentState.getStateEvents("m.room.topic",""),s=a&&a.getContent()?a.getContent().topic:"",c=n.currentState.getStateEvents("m.room.name",""),l=c&&c.getContent()?c.getContent().name:"";this.state={originalDisplayName:l,displayName:l,originalAvatarUrl:i,avatarUrl:i,avatarFile:null,originalTopic:s,topic:s,enableProfileSave:!1,canSetName:n.currentState.maySendStateEvent("m.room.name",t.getUserId()),canSetTopic:n.currentState.maySendStateEvent("m.room.topic",t.getUserId()),canSetAvatar:n.currentState.maySendStateEvent("m.room.avatar",t.getUserId())},this._avatarUpload=Object(r.createRef)()}render(){const e=u.getComponent("elements.AccessibleButton"),t=u.getComponent("settings.AvatarSetting");return i.a.createElement("form",{onSubmit:this._saveProfile,autoComplete:"off",noValidate:!0,className:"mx_ProfileSettings_profileForm"},i.a.createElement("input",{type:"file",ref:this._avatarUpload,className:"mx_ProfileSettings_avatarUpload",onChange:this._onAvatarChanged,accept:"image/*"}),i.a.createElement("div",{className:"mx_ProfileSettings_profile"},i.a.createElement("div",{className:"mx_ProfileSettings_controls"},i.a.createElement(Ce.a,{label:Object(c.a)("Room Name"),type:"text",value:this.state.displayName,autoComplete:"off",onChange:this._onDisplayNameChanged,disabled:!this.state.canSetName}),i.a.createElement(Ce.a,{id:"profileTopic",label:Object(c.a)("Room Topic"),disabled:!this.state.canSetTopic,type:"text",value:this.state.topic,autoComplete:"off",onChange:this._onTopicChanged,element:"textarea"})),i.a.createElement(t,{avatarUrl:this.state.avatarUrl,avatarName:this.state.displayName||this.props.roomId,avatarAltText:Object(c.a)("Room avatar"),uploadAvatar:this.state.canSetAvatar?this._uploadAvatar:void 0,removeAvatar:this.state.canSetAvatar?this._removeAvatar:void 0})),i.a.createElement("div",{className:"mx_ProfileSettings_buttons"},i.a.createElement(e,{onClick:this._clearProfile,kind:"link",disabled:!this.state.enableProfileSave},Object(c.a)("Cancel")),i.a.createElement(e,{onClick:this._saveProfile,kind:"primary",disabled:!this.state.enableProfileSave},Object(c.a)("Save"))))}}R()(Xu,"propTypes",{roomId:Se.a.string.isRequired});class Ju extends i.a.Component{constructor(){super(),R()(this,"_onLeaveClick",()=>{d.a.dispatch({action:"leave_room",room_id:this.props.roomId})}),this.state={isRoomPublished:!1}}render(){const e=u.getComponent("room_settings.AliasSettings"),t=u.getComponent("room_settings.RelatedGroupSettings"),n=u.getComponent("room_settings.UrlPreviewSettings"),o=this.context,r=o.getRoom(this.props.roomId),a=r.currentState.mayClientSendStateEvent("m.room.canonical_alias",o),s=r.currentState.getStateEvents("m.room.canonical_alias",""),l=r.currentState.getStateEvents("m.room.aliases"),d=r.currentState.mayClientSendStateEvent("m.room.related_groups",o),h=r.currentState.getStateEvents("m.room.related_groups","");let p,m=i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("URL Previews")),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement(n,{room:r})));return P.a.getValue($e.a.URLPreviews)||(m=null),P.a.getValue($e.a.Flair)&&(p=i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Flair")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement(t,{roomId:r.roomId,canSetRelatedGroups:d,relatedGroupsEvent:h})))),i.a.createElement("div",{className:"mx_SettingsTab mx_GeneralRoomSettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("General")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_GeneralRoomSettingsTab_profileSection"},i.a.createElement(Xu,{roomId:this.props.roomId})),i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Room Addresses")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement(e,{roomId:this.props.roomId,canSetCanonicalAlias:a,canSetAliases:!0,canonicalAliasEvent:s,aliasEvents:l})),i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Other")),p,m,i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Leave room")),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement(g.a,{kind:"danger",onClick:this._onLeaveClick},Object(c.a)("Leave room"))))}}R()(Ju,"propTypes",{roomId:Se.a.string.isRequired}),R()(Ju,"contextType",b.a);class Zu extends i.a.Component{constructor(){super(),R()(this,"_onStateEvent",e=>{["m.room.join_rules","m.room.guest_access","m.room.history_visibility","m.room.encryption"].includes(e.getType())&&this.forceUpdate()}),R()(this,"_onEncryptionChange",e=>{Ie.a.createTrackedDialog("Enable encryption","",vt.a,{title:Object(c.a)("Enable encryption?"),description:Object(c.a)("Once enabled, encryption for a room cannot be disabled. Messages sent in an encrypted room cannot be seen by the server, only by the participants of the room. Enabling encryption may prevent many bots and bridges from working correctly. <a>Learn more about encryption.</a>",{},{a:e=>i.a.createElement("a",{rel:"noreferrer noopener",target:"_blank",href:"https://element.io/help#encryption"},e)}),onFinished:e=>{if(!e)return void this.setState({encrypted:!1});const t=this.state.encrypted;this.setState({encrypted:!0}),X.a.get().sendStateEvent(this.props.roomId,"m.room.encryption",{algorithm:"m.megolm.v1.aes-sha2"}).catch(e=>{console.error(e),this.setState({encrypted:t})})}})}),R()(this,"_fixGuestAccess",e=>{e.preventDefault(),e.stopPropagation();const t=this.state.joinRule,n=this.state.guestAccess;this.setState({joinRule:"invite",guestAccess:"can_join"});const o=X.a.get();o.sendStateEvent(this.props.roomId,"m.room.join_rules",{join_rule:"invite"},"").catch(e=>{console.error(e),this.setState({joinRule:t})}),o.sendStateEvent(this.props.roomId,"m.room.guest_access",{guest_access:"can_join"},"").catch(e=>{console.error(e),this.setState({guestAccess:n})})}),R()(this,"_onRoomAccessRadioToggle",e=>{let t="invite",n="can_join";switch(e){case"invite_only":break;case"public_no_guests":t="public",n="forbidden";break;case"public_with_guests":t="public",n="can_join"}const o=this.state.joinRule,r=this.state.guestAccess;this.setState({joinRule:t,guestAccess:n});const i=X.a.get();i.sendStateEvent(this.props.roomId,"m.room.join_rules",{join_rule:t},"").catch(e=>{console.error(e),this.setState({joinRule:o})}),i.sendStateEvent(this.props.roomId,"m.room.guest_access",{guest_access:n},"").catch(e=>{console.error(e),this.setState({guestAccess:r})})}),R()(this,"_onHistoryRadioToggle",e=>{const t=this.state.history;this.setState({history:e}),X.a.get().sendStateEvent(this.props.roomId,"m.room.history_visibility",{history_visibility:e},"").catch(e=>{console.error(e),this.setState({history:t})})}),R()(this,"_updateBlacklistDevicesFlag",e=>{X.a.get().getRoom(this.props.roomId).setBlacklistUnverifiedDevices(e)}),this.state={joinRule:"invite",guestAccess:"can_join",history:"shared",hasAliases:!1,encrypted:!1}}async UNSAFE_componentWillMount(){X.a.get().on("RoomState.events",this._onStateEvent);const e=X.a.get().getRoom(this.props.roomId).currentState,t=this._pullContentPropertyFromEvent(e.getStateEvents("m.room.join_rules",""),"join_rule","invite"),n=this._pullContentPropertyFromEvent(e.getStateEvents("m.room.guest_access",""),"guest_access","forbidden"),o=this._pullContentPropertyFromEvent(e.getStateEvents("m.room.history_visibility",""),"history_visibility","shared"),r=X.a.get().isRoomEncrypted(this.props.roomId);this.setState({joinRule:t,guestAccess:n,history:o,encrypted:r});const i=await this._hasAliases();this.setState({hasAliases:i})}_pullContentPropertyFromEvent(e,t,n){return e&&e.getContent()&&e.getContent()[t]||n}componentWillUnmount(){X.a.get().removeListener("RoomState.events",this._onStateEvent)}async _hasAliases(){const e=X.a.get();if(await e.doesServerSupportUnstableFeature("org.matrix.msc2432")){const t=(await e.unstableGetLocalAliases(this.props.roomId)).aliases;return Array.isArray(t)&&0!==t.length}return!!(e.getRoom(this.props.roomId).currentState.getStateEvents("m.room.aliases")||[]).find(e=>(e.getContent().aliases||[]).length>0)}_renderRoomAccess(){const e=X.a.get(),t=e.getRoom(this.props.roomId),o=this.state.joinRule,r=this.state.guestAccess,a=t.currentState.mayClientSendStateEvent("m.room.join_rules",e)&&t.currentState.mayClientSendStateEvent("m.room.guest_access",e);let s=null;"public"!==o&&"forbidden"===r&&(s=i.a.createElement("div",{className:"mx_SecurityRoomSettingsTab_warning"},i.a.createElement("img",{src:n(255),width:15,height:15}),i.a.createElement("span",null,Object(c.a)("Guests cannot join this room even if explicitly invited.")," ",i.a.createElement("a",{href:"",onClick:this._fixGuestAccess},Object(c.a)("Click here to fix")))));let l=null;return"public"!==o||this.state.hasAliases||(l=i.a.createElement("div",{className:"mx_SecurityRoomSettingsTab_warning"},i.a.createElement("img",{src:n(255),width:15,height:15}),i.a.createElement("span",null,Object(c.a)("To link to this room, please add an address.")))),i.a.createElement("div",null,s,l,i.a.createElement(ht,{name:"roomVis",value:o,onChange:this._onRoomAccessRadioToggle,definitions:[{value:"invite_only",disabled:!a,label:Object(c.a)("Only people who have been invited"),checked:"public"!==o},{value:"public_no_guests",disabled:!a,label:Object(c.a)("Anyone who knows the room's link, apart from guests"),checked:"public"===o&&"can_join"!==r},{value:"public_with_guests",disabled:!a,label:Object(c.a)("Anyone who knows the room's link, including guests"),checked:"public"===o&&"can_join"===r}]}))}_renderHistory(){const e=X.a.get(),t=this.state.history,n=e.getRoom(this.props.roomId).currentState.mayClientSendStateEvent("m.room.history_visibility",e);return i.a.createElement("div",null,i.a.createElement("div",null,Object(c.a)("Changes to who can read history will only apply to future messages in this room. The visibility of existing history will be unchanged.")),i.a.createElement(ht,{name:"historyVis",value:t,onChange:this._onHistoryRadioToggle,definitions:[{value:"world_readable",disabled:!n,label:Object(c.a)("Anyone")},{value:"shared",disabled:!n,label:Object(c.a)("Members only (since the point in time of selecting this option)")},{value:"invited",disabled:!n,label:Object(c.a)("Members only (since they were invited)")},{value:"joined",disabled:!n,label:Object(c.a)("Members only (since they joined)")}]}))}render(){const e=u.getComponent("elements.SettingsFlag"),t=X.a.get(),n=t.getRoom(this.props.roomId),o=this.state.encrypted,r=n.currentState.mayClientSendStateEvent("m.room.encryption",t),a=!o&&r;let s=null;o&&P.a.isEnabled("blacklistUnverifiedDevices")&&(s=i.a.createElement(e,{name:"blacklistUnverifiedDevices",level:Ye.a.ROOM_DEVICE,onChange:this._updateBlacklistDevicesFlag,roomId:this.props.roomId}));let l=i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Who can read history?")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},this._renderHistory()));return P.a.getValue($e.a.RoomHistorySettings)||(l=null),i.a.createElement("div",{className:"mx_SettingsTab mx_SecurityRoomSettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Security & Privacy")),i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Encryption")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SecurityRoomSettingsTab_encryptionSection"},i.a.createElement("div",null,i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},i.a.createElement("span",null,Object(c.a)("Once enabled, encryption cannot be disabled."))),i.a.createElement(Xe.a,{value:o,onChange:this._onEncryptionChange,label:Object(c.a)("Encrypted"),disabled:!a})),s),i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Who can access this room?")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},this._renderRoomAccess()),l)}}R()(Zu,"propTypes",{roomId:Se.a.string.isRequired});var ed=n(249);class td extends i.a.Component{constructor(){super(),R()(this,"_soundUpload",Object(r.createRef)()),this.state={currentSound:"default",uploadedFile:null}}UNSAFE_componentWillMount(){const e=ed.default.getSoundForRoom(this.props.roomId);e&&this.setState({currentSound:e.name||e.url})}async _triggerUploader(e){e.stopPropagation(),e.preventDefault(),this._soundUpload.current.click()}async _onSoundUploadChanged(e){if(!e.target.files||!e.target.files.length)return void this.setState({uploadedFile:null});const t=e.target.files[0];this.setState({uploadedFile:t})}async _onClickSaveSound(e){e.stopPropagation(),e.preventDefault();try{await this._saveSound()}catch(e){console.error("Unable to save notification sound for "+this.props.roomId),console.error(e)}}async _saveSound(){if(!this.state.uploadedFile)return;let e=this.state.uploadedFile.type;"video/ogg"===e&&(e="audio/ogg");const t=await X.a.get().uploadContent(this.state.uploadedFile,{type:e});await P.a.setValue("notificationSound",this.props.roomId,Ye.a.ROOM_ACCOUNT,{name:this.state.uploadedFile.name,type:e,size:this.state.uploadedFile.size,url:t}),this.setState({uploadedFile:null,currentSound:this.state.uploadedFile.name})}_clearSound(e){e.stopPropagation(),e.preventDefault(),P.a.setValue("notificationSound",this.props.roomId,Ye.a.ROOM_ACCOUNT,null),this.setState({currentSound:"default"})}render(){let e=null;return this.state.uploadedFile&&(e=i.a.createElement("div",null,i.a.createElement("span",null,Object(c.a)("Uploaded sound"),": ",i.a.createElement("code",null,this.state.uploadedFile.name)))),i.a.createElement("div",{className:"mx_SettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Notifications")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Sounds")),i.a.createElement("div",null,i.a.createElement("span",null,Object(c.a)("Notification sound"),": ",i.a.createElement("code",null,this.state.currentSound)),i.a.createElement("br",null),i.a.createElement(g.a,{className:"mx_NotificationSound_resetSound",disabled:"default"==this.state.currentSound,onClick:this._clearSound.bind(this),kind:"primary"},Object(c.a)("Reset"))),i.a.createElement("div",null,i.a.createElement("h3",null,Object(c.a)("Set a new custom sound")),i.a.createElement("form",{autoComplete:"off",noValidate:!0},i.a.createElement("input",{ref:this._soundUpload,className:"mx_NotificationSound_soundUpload",type:"file",onChange:this._onSoundUploadChanged.bind(this),accept:"audio/*"})),e,i.a.createElement(g.a,{className:"mx_NotificationSound_browse",onClick:this._triggerUploader.bind(this),kind:"primary"},Object(c.a)("Browse")),i.a.createElement(g.a,{className:"mx_NotificationSound_save",disabled:null==this.state.uploadedFile,onClick:this._onClickSaveSound.bind(this),kind:"primary"},Object(c.a)("Save")),i.a.createElement("br",null))))}}R()(td,"propTypes",{roomId:Se.a.string.isRequired});class nd extends i.a.Component{constructor(...e){super(...e),R()(this,"_onAction",e=>{"view_home_page"===e.action&&this.props.onFinished()})}componentDidMount(){this._dispatcherRef=d.a.register(this._onAction)}componentWillUnmount(){this._dispatcherRef&&d.a.unregister(this._dispatcherRef)}_getTabs(){const e=[];return e.push(new Te("ROOM_GENERAL_TAB",Object(c.b)("General"),"mx_RoomSettingsDialog_settingsIcon",i.a.createElement(Ju,{roomId:this.props.roomId}))),e.push(new Te("ROOM_SECURITY_TAB",Object(c.b)("Security & Privacy"),"mx_RoomSettingsDialog_securityIcon",i.a.createElement(Zu,{roomId:this.props.roomId}))),e.push(new Te("ROOM_ROLES_TAB",Object(c.b)("Roles & Permissions"),"mx_RoomSettingsDialog_rolesIcon",i.a.createElement(Qu,{roomId:this.props.roomId}))),e.push(new Te("ROOM_NOTIFICATIONS_TAB",Object(c.b)("Notifications"),"mx_RoomSettingsDialog_notificationsIcon",i.a.createElement(td,{roomId:this.props.roomId}))),P.a.getValue("feature_bridge_state")&&e.push(new Te("ROOM_BRIDGES_TAB",Object(c.b)("Bridges"),"mx_RoomSettingsDialog_bridgesIcon",i.a.createElement(mc,{roomId:this.props.roomId}))),P.a.getValue($e.a.AdvancedSettings)&&e.push(new Te("ROOM_ADVANCED_TAB",Object(c.b)("Advanced"),"mx_RoomSettingsDialog_warningIcon",i.a.createElement(zu,{roomId:this.props.roomId,closeSettingsFn:this.props.onFinished}))),e}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=X.a.get().getRoom(this.props.roomId).name;return i.a.createElement(e,{className:"mx_RoomSettingsDialog",hasCancel:!0,onFinished:this.props.onFinished,title:Object(c.a)("Room Settings - %(roomName)s",{roomName:t})},i.a.createElement("div",{className:"ms_SettingsDialog_content"},i.a.createElement(we,{tabs:this._getTabs()})))}}R()(nd,"propTypes",{roomId:Se.a.string.isRequired,onFinished:Se.a.func.isRequired});class od extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{busy:!0}),R()(this,"_onCancelClick",()=>{this.props.onFinished(!1)}),R()(this,"_onUpgradeClick",()=>{this.setState({busy:!0}),X.a.get().upgradeRoom(this.props.room.roomId,this._targetVersion).then(()=>{this.props.onFinished(!0)}).catch(e=>{const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Failed to upgrade room","",t,{title:Object(c.a)("Failed to upgrade room"),description:e&&e.message?e.message:Object(c.a)("The room upgrade could not be completed")})}).finally(()=>{this.setState({busy:!1})})})}async componentDidMount(){const e=await this.props.room.getRecommendedVersion();this._targetVersion=e.version,this.setState({busy:!1})}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons"),n=u.getComponent("views.elements.Spinner");let o;return o=this.state.busy?i.a.createElement(n,null):i.a.createElement(t,{primaryButton:Object(c.a)("Upgrade this room to version %(version)s",{version:this._targetVersion}),primaryButtonClass:"danger",hasCancel:!0,onPrimaryButtonClick:this._onUpgradeClick,focus:this.props.focus,onCancel:this._onCancelClick}),i.a.createElement(e,{className:"mx_RoomUpgradeDialog",onFinished:this.props.onFinished,title:Object(c.a)("Upgrade Room Version"),contentId:"mx_Dialog_content",hasCancel:!0},i.a.createElement("p",null,Object(c.a)("Upgrading this room requires closing down the current instance of the room and creating a new room in its place. To give room members the best possible experience, we will:")),i.a.createElement("ol",null,i.a.createElement("li",null,Object(c.a)("Create a new room with the same name, description and avatar")),i.a.createElement("li",null,Object(c.a)("Update any local room aliases to point to the new room")),i.a.createElement("li",null,Object(c.a)("Stop users from speaking in the old version of the room, and post a message advising users to move to the new room")),i.a.createElement("li",null,Object(c.a)("Put a link back to the old room at the start of the new room so people can see old messages"))),o)}}R()(od,"propTypes",{room:Se.a.object.isRequired,onFinished:Se.a.func.isRequired});class rd extends i.a.Component{constructor(e){super(e),R()(this,"_onContinue",()=>{this.props.onFinished({continue:!0,invite:this.state.isPrivate&&this.state.inviteUsersToNewRoom})}),R()(this,"_onCancel",()=>{this.props.onFinished({continue:!1,invite:!1})}),R()(this,"_onInviteUsersToggle",e=>{this.setState({inviteUsersToNewRoom:e})}),R()(this,"_openBugReportDialog",e=>{e.preventDefault(),e.stopPropagation();const t=u.getComponent("dialogs.BugReportDialog");Ie.a.createTrackedDialog("Bug Report Dialog","",t,{})});const t=X.a.get().getRoom(this.props.roomId),n=t?t.currentState.getStateEvents("m.room.join_rules",""):null,o=!n||"public"!==n.getContent().join_rule;this.state={currentVersion:t?t.getVersion():"1",isPrivate:o,inviteUsersToNewRoom:!0}}render(){const e=l.a.get().brand,t=u.getComponent("views.dialogs.BaseDialog"),n=u.getComponent("views.elements.DialogButtons");let o=null;this.state.isPrivate&&(o=i.a.createElement(Xe.a,{value:this.state.inviteUsersToNewRoom,onChange:this._onInviteUsersToggle,label:Object(c.a)("Automatically invite users")}));const r=this.state.isPrivate?Object(c.a)("Upgrade private room"):Object(c.a)("Upgrade public room");return i.a.createElement(t,{className:"mx_RoomUpgradeWarningDialog",hasCancel:!0,fixedWidth:!1,onFinished:this.props.onFinished,title:r},i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Upgrading a room is an advanced action and is usually recommended when a room is unstable due to bugs, missing features or security vulnerabilities.")),i.a.createElement("p",null,Object(c.a)("This usually only affects how the room is processed on the server. If you're having problems with your %(brand)s, please <a>report a bug</a>.",{brand:e},{a:e=>i.a.createElement("a",{href:"#",onClick:this._openBugReportDialog},e)})),i.a.createElement("p",null,Object(c.a)("You'll upgrade this room from <oldVersion /> to <newVersion />.",{},{oldVersion:()=>i.a.createElement("code",null,this.state.currentVersion),newVersion:()=>i.a.createElement("code",null,this.props.targetVersion)})),o),i.a.createElement(n,{primaryButton:Object(c.a)("Upgrade"),onPrimaryButtonClick:this._onContinue,cancelButton:Object(c.a)("Cancel"),onCancel:this._onCancel}))}}R()(rd,"propTypes",{onFinished:Se.a.func.isRequired,roomId:Se.a.string.isRequired,targetVersion:Se.a.string.isRequired});class id extends i.a.Component{constructor(...e){super(...e),R()(this,"_sendBugReport",()=>{const e=u.getComponent("dialogs.BugReportDialog");Ie.a.createTrackedDialog("Session Restore Error","Send Bug Report Dialog",e,{})}),R()(this,"_onClearStorageClick",()=>{const e=u.getComponent("dialogs.QuestionDialog");Ie.a.createTrackedDialog("Session Restore Confirm Logout","",e,{title:Object(c.a)("Sign out"),description:i.a.createElement("div",null,Object(c.a)("Sign out and remove encryption keys?")),button:Object(c.a)("Sign out"),danger:!0,onFinished:this.props.onFinished})}),R()(this,"_onRefreshClick",()=>{window.location.reload(!0)})}render(){const e=l.a.get().brand,t=u.getComponent("views.dialogs.BaseDialog"),n=u.getComponent("views.elements.DialogButtons"),o=i.a.createElement("button",{onClick:this._onClearStorageClick,className:"danger"},Object(c.a)("Clear Storage and Sign Out"));let r;return r=l.a.get().bug_report_endpoint_url?i.a.createElement(n,{primaryButton:Object(c.a)("Send Logs"),onPrimaryButtonClick:this._sendBugReport,focus:!0,hasCancel:!1},o):i.a.createElement(n,{primaryButton:Object(c.a)("Refresh"),onPrimaryButtonClick:this._onRefreshClick,focus:!0,hasCancel:!1},o),i.a.createElement(t,{className:"mx_ErrorDialog",onFinished:this.props.onFinished,title:Object(c.a)("Unable to restore session"),contentId:"mx_Dialog_content",hasCancel:!1},i.a.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},i.a.createElement("p",null,Object(c.a)("We encountered an error trying to restore your previous session.")),i.a.createElement("p",null,Object(c.a)("If you have previously used a more recent version of %(brand)s, your session may be incompatible with this version. Close this window and return to the more recent version.",{brand:e})),i.a.createElement("p",null,Object(c.a)("Clearing your browser's storage may fix the problem, but will sign you out and cause any encrypted chat history to become unreadable."))),r)}}function ad(){return X.a.get().idBaseUrl.split("://")[1]}R()(id,"propTypes",{error:Se.a.string.isRequired,onFinished:Se.a.func.isRequired});class sd{constructor(){R()(this,"_makeAddThreepidOnlyRequest",e=>X.a.get().addThreePidOnly({sid:this.sessionId,client_secret:this.clientSecret,auth:e})),this.clientSecret=X.a.get().generateClientSecret(),this.sessionId=null,this.submitUrl=null}addEmailAddress(e){return X.a.get().requestAdd3pidEmailToken(e,this.clientSecret,1).then(e=>(this.sessionId=e.sid,e),(function(e){throw"M_THREEPID_IN_USE"===e.errcode?e.message=Object(c.a)("This email address is already in use"):e.httpStatus&&(e.message=e.message+` (Status ${e.httpStatus})`),e}))}async bindEmailAddress(e){if(this.bind=!0,await X.a.get().doesServerSupportSeparateAddAndBind()){const t=new Ve.a,n=await t.getAccessToken();return X.a.get().requestEmailToken(e,this.clientSecret,1,void 0,void 0,n).then(e=>(this.sessionId=e.sid,e),(function(e){throw"M_THREEPID_IN_USE"===e.errcode?e.message=Object(c.a)("This email address is already in use"):e.httpStatus&&(e.message=e.message+` (Status ${e.httpStatus})`),e}))}return this.addEmailAddress(e)}addMsisdn(e,t){return X.a.get().requestAdd3pidMsisdnToken(e,t,this.clientSecret,1).then(e=>(this.sessionId=e.sid,this.submitUrl=e.submit_url,e),(function(e){throw"M_THREEPID_IN_USE"===e.errcode?e.message=Object(c.a)("This phone number is already in use"):e.httpStatus&&(e.message=e.message+` (Status ${e.httpStatus})`),e}))}async bindMsisdn(e,t){if(this.bind=!0,await X.a.get().doesServerSupportSeparateAddAndBind()){const n=new Ve.a,o=await n.getAccessToken();return X.a.get().requestMsisdnToken(e,t,this.clientSecret,1,void 0,void 0,o).then(e=>(this.sessionId=e.sid,e),(function(e){throw"M_THREEPID_IN_USE"===e.errcode?e.message=Object(c.a)("This phone number is already in use"):e.httpStatus&&(e.message=e.message+` (Status ${e.httpStatus})`),e}))}return this.addMsisdn(e,t)}async checkEmailLinkClicked(){try{if(await X.a.get().doesServerSupportSeparateAddAndBind())if(this.bind){const e=new Ve.a,t=await e.getAccessToken();await X.a.get().bindThreePid({sid:this.sessionId,client_secret:this.clientSecret,id_server:ad(),id_access_token:t})}else try{return void await this._makeAddThreepidOnlyRequest()}catch(e){if(401!==e.httpStatus||!e.data||!e.data.flows)throw e;const t=u.getComponent("dialogs.InteractiveAuthDialog"),n={[Le.c.PHASE_PREAUTH]:{title:Object(c.a)("Use Single Sign On to continue"),body:Object(c.a)("Confirm adding this email address by using Single Sign On to prove your identity."),continueText:Object(c.a)("Single Sign On"),continueKind:"primary"},[Le.c.PHASE_POSTAUTH]:{title:Object(c.a)("Confirm adding email"),body:Object(c.a)("Click the button below to confirm adding this email address."),continueText:Object(c.a)("Confirm"),continueKind:"primary"}},{finished:o}=Ie.a.createTrackedDialog("Add Email","",t,{title:Object(c.a)("Add Email Address"),matrixClient:X.a.get(),authData:e.data,makeRequest:this._makeAddThreepidOnlyRequest,aestheticsForStagePhases:{[Le.c.LOGIN_TYPE]:n,[Le.c.UNSTABLE_LOGIN_TYPE]:n}});return o}else await X.a.get().addThreePid({sid:this.sessionId,client_secret:this.clientSecret,id_server:ad()},this.bind)}catch(e){throw 401===e.httpStatus?e.message=Object(c.a)("Failed to verify email address: make sure you clicked the link in the email"):e.httpStatus&&(e.message+=` (Status ${e.httpStatus})`),e}}async haveMsisdnToken(e){const t=new Ve.a,n=await X.a.get().doesServerSupportSeparateAddAndBind();let o;if(this.submitUrl)o=await X.a.get().submitMsisdnTokenOtherUrl(this.submitUrl,this.sessionId,this.clientSecret,e);else{if(!this.bind&&n)throw new Error("The add / bind with MSISDN flow is misconfigured");o=await X.a.get().submitMsisdnToken(this.sessionId,this.clientSecret,e,await t.getAccessToken())}if(o.errcode)throw o;if(n)if(this.bind)await X.a.get().bindThreePid({sid:this.sessionId,client_secret:this.clientSecret,id_server:ad(),id_access_token:await t.getAccessToken()});else try{return void await this._makeAddThreepidOnlyRequest()}catch(e){if(401!==e.httpStatus||!e.data||!e.data.flows)throw e;const t=u.getComponent("dialogs.InteractiveAuthDialog"),n={[Le.c.PHASE_PREAUTH]:{title:Object(c.a)("Use Single Sign On to continue"),body:Object(c.a)("Confirm adding this phone number by using Single Sign On to prove your identity."),continueText:Object(c.a)("Single Sign On"),continueKind:"primary"},[Le.c.PHASE_POSTAUTH]:{title:Object(c.a)("Confirm adding phone number"),body:Object(c.a)("Click the button below to confirm adding this phone number."),continueText:Object(c.a)("Confirm"),continueKind:"primary"}},{finished:o}=Ie.a.createTrackedDialog("Add MSISDN","",t,{title:Object(c.a)("Add Phone Number"),matrixClient:X.a.get(),authData:e.data,makeRequest:this._makeAddThreepidOnlyRequest,aestheticsForStagePhases:{[Le.c.LOGIN_TYPE]:n,[Le.c.UNSTABLE_LOGIN_TYPE]:n}});return o}else await X.a.get().addThreePid({sid:this.sessionId,client_secret:this.clientSecret,id_server:ad()},this.bind)}}class cd extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{emailAddress:"",emailBusy:!1}),R()(this,"onEmailAddressChanged",e=>{this.setState({emailAddress:e})}),R()(this,"onSubmit",()=>{const e=u.getComponent("dialogs.ErrorDialog"),t=u.getComponent("dialogs.QuestionDialog"),n=this.state.emailAddress;vo.a(n)?(this._addThreepid=new sd,this._addThreepid.addEmailAddress(n).then(()=>{Ie.a.createTrackedDialog("Verification Pending","",t,{title:Object(c.a)("Verification Pending"),description:Object(c.a)("Please check your email and click on the link it contains. Once this is done, click continue."),button:Object(c.a)("Continue"),onFinished:this.onEmailDialogFinished})},t=>{this.setState({emailBusy:!1}),console.error("Unable to add email address "+n+" "+t),Ie.a.createTrackedDialog("Unable to add email address","",e,{title:Object(c.a)("Unable to add email address"),description:t&&t.message?t.message:Object(c.a)("Operation failed")})}),this.setState({emailBusy:!0})):Ie.a.createTrackedDialog("Invalid Email Address","",e,{title:Object(c.a)("Invalid Email Address"),description:Object(c.a)("This doesn't appear to be a valid email address")})}),R()(this,"onCancelled",()=>{this.props.onFinished(!1)}),R()(this,"onEmailDialogFinished",e=>{e?this.verifyEmailAddress():this.setState({emailBusy:!1})})}verifyEmailAddress(){this._addThreepid.checkEmailLinkClicked().then(()=>{this.props.onFinished(!0)},e=>{if(this.setState({emailBusy:!1}),"M_THREEPID_AUTH_FAILED"==e.errcode){const e=u.getComponent("dialogs.QuestionDialog"),t=Object(c.a)("Unable to verify email address.")+" "+Object(c.a)("Please check your email and click on the link it contains. Once this is done, click continue.");Ie.a.createTrackedDialog("Verification Pending","3pid Auth Failed",e,{title:Object(c.a)("Verification Pending"),description:t,button:Object(c.a)("Continue"),onFinished:this.onEmailDialogFinished})}else{const t=u.getComponent("dialogs.ErrorDialog");console.error("Unable to verify email address: "+e),Ie.a.createTrackedDialog("Unable to verify email address","",t,{title:Object(c.a)("Unable to verify email address."),description:e&&e.message?e.message:Object(c.a)("Operation failed")})}})}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("elements.Spinner"),n=u.getComponent("elements.EditableText"),o=this.state.emailBusy?i.a.createElement(t,null):i.a.createElement(n,{initialValue:this.state.emailAddress,className:"mx_SetEmailDialog_email_input",autoFocus:"true",placeholder:Object(c.a)("Email address"),placeholderClassName:"mx_SetEmailDialog_email_input_placeholder",blurToCancel:!1,onValueChanged:this.onEmailAddressChanged});return i.a.createElement(e,{className:"mx_SetEmailDialog",onFinished:this.onCancelled,title:this.props.title,contentId:"mx_Dialog_content"},i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement("p",{id:"mx_Dialog_content"},Object(c.a)("This will allow you to reset your password and receive notifications.")),o),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("input",{className:"mx_Dialog_primary",type:"submit",value:Object(c.a)("Continue"),onClick:this.onSubmit}),i.a.createElement("input",{type:"submit",value:Object(c.a)("Skip"),onClick:this.onCancelled})))}}R()(cd,"propTypes",{onFinished:Se.a.func.isRequired});var ld=({onFinished:e})=>{const t=u.getComponent("dialogs.InfoDialog"),n={};Fa.forEach(e=>{e.isEnabled()&&(n[e.category]||(n[e.category]=[]),n[e.category].push(e))});const o=Object.values(Aa).filter(e=>n[e]).map(e=>{const t=[i.a.createElement("tr",{key:"_category_"+e,className:"mx_SlashCommandHelpDialog_headerRow"},i.a.createElement("td",{colSpan:3},i.a.createElement("h2",null,Object(c.a)(e))))];return n[e].forEach(e=>{t.push(i.a.createElement("tr",{key:e.command},i.a.createElement("td",null,i.a.createElement("strong",null,e.getCommand())),i.a.createElement("td",null,e.args),i.a.createElement("td",null,e.description)))}),t});return i.a.createElement(t,{className:"mx_SlashCommandHelpDialog",title:Object(c.a)("Command Help"),description:i.a.createElement("table",null,i.a.createElement("tbody",null,o)),hasCloseButton:!0,onFinished:e})};class ud extends i.a.Component{constructor(...e){super(...e),R()(this,"_sendBugReport",e=>{e.preventDefault();const t=u.getComponent("dialogs.BugReportDialog");Ie.a.createTrackedDialog("Storage evicted","Send Bug Report Dialog",t,{})}),R()(this,"_onSignOutClick",()=>{this.props.onFinished(!0)})}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons");let n;return l.a.get().bug_report_endpoint_url&&(n=Object(c.a)("To help us prevent this in future, please <a>send us logs</a>.",{},{a:e=>i.a.createElement("a",{href:"#",onClick:this._sendBugReport},e)})),i.a.createElement(e,{className:"mx_ErrorDialog",onFinished:this.props.onFinished,title:Object(c.a)("Missing session data"),contentId:"mx_Dialog_content",hasCancel:!1},i.a.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},i.a.createElement("p",null,Object(c.a)("Some session data, including encrypted message keys, is missing. Sign out and sign in to fix this, restoring keys from backup.")),i.a.createElement("p",null,Object(c.a)("Your browser likely removed this data when running low on disk space.")," ",n)),i.a.createElement(t,{primaryButton:Object(c.a)("Sign out"),onPrimaryButtonClick:this._onSignOutClick,focus:!0,hasCancel:!1}))}}R()(ud,"propTypes",{onFinished:Se.a.func.isRequired});var dd=n(708);class hd extends i.a.PureComponent{constructor(...e){super(...e),R()(this,"onChange",e=>{this.props.onChange(this.props.url,e.target.checked)})}render(){return i.a.createElement("input",{type:"checkbox",onChange:this.onChange,checked:this.props.checked})}}R()(hd,"propTypes",{onChange:Se.a.func.isRequired,url:Se.a.string.isRequired,checked:Se.a.bool.isRequired});class pd extends i.a.PureComponent{constructor(e){super(),R()(this,"_onCancelClick",()=>{this.props.onFinished(!1)}),R()(this,"_onNextClick",()=>{this.props.onFinished(!0,Object.keys(this.state.agreedUrls).filter(e=>this.state.agreedUrls[e]))}),R()(this,"_onTermsCheckboxChange",(e,t)=>{this.setState({agreedUrls:Object.assign({},this.state.agreedUrls,{[e]:t})})}),this.state={agreedUrls:{}};for(const t of e.agreedUrls)this.state.agreedUrls[t]=!0}_nameForServiceType(e,t){switch(e){case Pe.q.SERVICE_TYPES.IS:return i.a.createElement("div",null,Object(c.a)("Identity Server"),i.a.createElement("br",null),"(",t,")");case Pe.q.SERVICE_TYPES.IM:return i.a.createElement("div",null,Object(c.a)("Integration Manager"),i.a.createElement("br",null),"(",t,")")}}_summaryForServiceType(e){switch(e){case Pe.q.SERVICE_TYPES.IS:return i.a.createElement("div",null,Object(c.a)("Find others by phone or email"),i.a.createElement("br",null),Object(c.a)("Be found by phone or email"));case Pe.q.SERVICE_TYPES.IM:return i.a.createElement("div",null,Object(c.a)("Use bots, bridges, widgets and sticker packs"))}}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons"),n=[];for(const e of this.props.policiesAndServicePairs){const t=Oe.a.parse(e.service.baseUrl),o=Object.values(e.policies);for(let r=0;r<o.length;++r){const a=o[r],s=Object(c.j)(Object.keys(a).filter(e=>"version"!==e));let l,u;0===r&&(l=this._nameForServiceType(e.service.serviceType,t.host),u=this._summaryForServiceType(e.service.serviceType)),n.push(i.a.createElement("tr",{key:a[s].url},i.a.createElement("td",{className:"mx_TermsDialog_service"},l),i.a.createElement("td",{className:"mx_TermsDialog_summary"},u),i.a.createElement("td",null,a[s].name," ",i.a.createElement("a",{rel:"noreferrer noopener",target:"_blank",href:a[s].url},i.a.createElement("span",{className:"mx_TermsDialog_link"}))),i.a.createElement("td",null,i.a.createElement(hd,{url:a[s].url,onChange:this._onTermsCheckboxChange,checked:Boolean(this.state.agreedUrls[a[s].url])}))))}}let o=!1;for(const e of this.props.policiesAndServicePairs){let t=0;for(const n of Object.values(e.policies)){let e=!1;for(const t of Object.keys(n))if("version"!==t&&this.state.agreedUrls[n[t].url]){e=!0;break}e&&++t}if(t===Object.keys(e.policies).length){o=!0;break}}return i.a.createElement(e,{fixedWidth:!1,onFinished:this._onCancelClick,title:Object(c.a)("Terms of Service"),contentId:"mx_Dialog_content",hasCancel:!1},i.a.createElement("div",{id:"mx_Dialog_content"},i.a.createElement("p",null,Object(c.a)("To continue you need to accept the terms of this service.")),i.a.createElement("table",{className:"mx_TermsDialog_termsTable"},i.a.createElement("tbody",null,i.a.createElement("tr",{className:"mx_TermsDialog_termsTableHeader"},i.a.createElement("th",null,Object(c.a)("Service")),i.a.createElement("th",null,Object(c.a)("Summary")),i.a.createElement("th",null,Object(c.a)("Document")),i.a.createElement("th",null,Object(c.a)("Accept"))),n))),i.a.createElement(t,{primaryButton:Object(c.a)("Next"),hasCancel:!0,onCancel:this._onCancelClick,onPrimaryButtonClick:this._onNextClick,primaryDisabled:!o}))}}R()(pd,"propTypes",{policiesAndServicePairs:Se.a.array.isRequired,agreedUrls:Se.a.arrayOf(Se.a.string),onFinished:Se.a.func.isRequired});class md extends i.a.Component{constructor(e){super(e),R()(this,"onOk",async e=>{if(e.preventDefault(),this.props.validator&&(await this._field.current.validate({allowEmpty:!1}),!this._field.current.state.valid))return this._field.current.focus(),void this._field.current.validate({allowEmpty:!1,focused:!0});this.props.onFinished(!0,this.state.value)}),R()(this,"onCancel",()=>{this.props.onFinished(!1)}),R()(this,"onChange",e=>{this.setState({value:e.target.value})}),R()(this,"onValidate",async e=>{const t=await this.props.validator(e);return this.setState({valid:t.valid}),t}),this._field=Object(r.createRef)(),this.state={value:this.props.value,valid:!1}}componentDidMount(){this.props.focus&&this._field.current.focus()}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons");return i.a.createElement(e,{className:"mx_TextInputDialog",onFinished:this.props.onFinished,title:this.props.title,fixedWidth:this.props.fixedWidth},i.a.createElement("form",{onSubmit:this.onOk},i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement("div",{className:"mx_TextInputDialog_label"},i.a.createElement("label",{htmlFor:"textinput"}," ",this.props.description," ")),i.a.createElement("div",null,i.a.createElement(Ce.a,{className:"mx_TextInputDialog_input",ref:this._field,type:"text",label:this.props.placeholder,value:this.state.value,onChange:this.onChange,onValidate:this.props.validator?this.onValidate:void 0,size:"64"})))),i.a.createElement(t,{primaryButton:this.props.button,onPrimaryButtonClick:this.onOk,onCancel:this.onCancel,hasCancel:this.props.hasCancel}))}}R()(md,"propTypes",{title:Se.a.string,description:Se.a.oneOfType([Se.a.element,Se.a.string]),value:Se.a.string,placeholder:Se.a.string,button:Se.a.string,focus:Se.a.bool,onFinished:Se.a.func.isRequired,hasCancel:Se.a.bool,validator:Se.a.func,fixedWidth:Se.a.bool}),R()(md,"defaultProps",{title:"",value:"",description:"",focus:!0,hasCancel:!0});class gd extends i.a.Component{constructor(e){super(e),R()(this,"_onCancelClick",()=>{this.props.onFinished(!1)}),R()(this,"_onUploadClick",()=>{this.props.onFinished(!0)}),R()(this,"_onUploadAllClick",()=>{this.props.onFinished(!0,!0)}),this._objectUrl=URL.createObjectURL(e.file)}componentWillUnmount(){this._objectUrl&&URL.revokeObjectURL(this._objectUrl)}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons");let o,r,a;return o=this.props.totalFiles>1&&void 0!==this.props.currentIndex?Object(c.a)("Upload files (%(current)s of %(total)s)",{current:this.props.currentIndex+1,total:this.props.totalFiles}):Object(c.a)("Upload files"),r=this.props.file.type.startsWith("image/")?i.a.createElement("div",{className:"mx_UploadConfirmDialog_previewOuter"},i.a.createElement("div",{className:"mx_UploadConfirmDialog_previewInner"},i.a.createElement("div",null,i.a.createElement("img",{className:"mx_UploadConfirmDialog_imagePreview",src:this._objectUrl})),i.a.createElement("div",null,this.props.file.name," (",Wr()(this.props.file.size),")"))):i.a.createElement("div",null,i.a.createElement("div",null,i.a.createElement("img",{className:"mx_UploadConfirmDialog_fileIcon",src:n(1586)}),this.props.file.name," (",Wr()(this.props.file.size),")")),this.props.currentIndex+1<this.props.totalFiles&&(a=i.a.createElement("button",{onClick:this._onUploadAllClick},Object(c.a)("Upload all"))),i.a.createElement(e,{className:"mx_UploadConfirmDialog",fixedWidth:!1,onFinished:this._onCancelClick,title:o,contentId:"mx_Dialog_content"},i.a.createElement("div",{id:"mx_Dialog_content"},r),i.a.createElement(t,{primaryButton:Object(c.a)("Upload"),hasCancel:!1,onPrimaryButtonClick:this._onUploadClick,focus:!0},a))}}R()(gd,"propTypes",{file:Se.a.object.isRequired,currentIndex:Se.a.number,totalFiles:Se.a.number,onFinished:Se.a.func.isRequired}),R()(gd,"defaultProps",{totalFiles:1});class fd extends i.a.Component{constructor(...e){super(...e),R()(this,"_onCancelClick",()=>{this.props.onFinished(!1)}),R()(this,"_onUploadClick",()=>{this.props.onFinished(!0)})}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons");let n,o;if(1===this.props.totalFiles&&1===this.props.badFiles.length)n=Object(c.a)("This file is <b>too large</b> to upload. The file size limit is %(limit)s but this file is %(sizeOfThisFile)s.",{limit:Wr()(this.props.contentMessages.getUploadLimit()),sizeOfThisFile:Wr()(this.props.badFiles[0].size)},{b:e=>i.a.createElement("b",null,e)}),o=i.a.createElement(t,{primaryButton:Object(c.a)("OK"),hasCancel:!1,onPrimaryButtonClick:this._onCancelClick,focus:!0});else if(this.props.totalFiles===this.props.badFiles.length)n=Object(c.a)("These files are <b>too large</b> to upload. The file size limit is %(limit)s.",{limit:Wr()(this.props.contentMessages.getUploadLimit())},{b:e=>i.a.createElement("b",null,e)}),o=i.a.createElement(t,{primaryButton:Object(c.a)("OK"),hasCancel:!1,onPrimaryButtonClick:this._onCancelClick,focus:!0});else{n=Object(c.a)("Some files are <b>too large</b> to be uploaded. The file size limit is %(limit)s.",{limit:Wr()(this.props.contentMessages.getUploadLimit())},{b:e=>i.a.createElement("b",null,e)});const e=this.props.totalFiles-this.props.badFiles.length;o=i.a.createElement(t,{primaryButton:Object(c.a)("Upload %(count)s other files",{count:e}),onPrimaryButtonClick:this._onUploadClick,hasCancel:!0,cancelButton:Object(c.a)("Cancel All"),onCancel:this._onCancelClick,focus:!0})}return i.a.createElement(e,{className:"mx_UploadFailureDialog",onFinished:this._onCancelClick,title:Object(c.a)("Upload Error"),contentId:"mx_Dialog_content"},i.a.createElement("div",{id:"mx_Dialog_content"},n,void 0),o)}}R()(fd,"propTypes",{badFiles:Se.a.arrayOf(Se.a.object).isRequired,totalFiles:Se.a.number.isRequired,contentMessages:Se.a.instanceOf(fl.a).isRequired,onFinished:Se.a.func.isRequired});var _d=n(720),bd=n(745),vd=n(718);class Ed extends i.a.Component{constructor(...e){super(...e),R()(this,"_onConfirm",()=>{this.props.onFinished(!0)}),R()(this,"_onDecline",()=>{this.props.onFinished(!1)})}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons");return i.a.createElement(e,{className:"mx_ConfirmDestroyCrossSigningDialog",hasCancel:!0,onFinished:this.props.onFinished,title:Object(c.a)("Destroy cross-signing keys?")},i.a.createElement("div",{className:"mx_ConfirmDestroyCrossSigningDialog_content"},i.a.createElement("p",null,Object(c.a)("Deleting cross-signing keys is permanent. Anyone you have verified with will see security alerts. You almost certainly don't want to do this, unless you've lost every device you can cross-sign from."))),i.a.createElement(t,{primaryButton:Object(c.a)("Clear cross-signing keys"),onPrimaryButtonClick:this._onConfirm,primaryButtonClass:"danger",cancelButton:Object(c.a)("Cancel"),onCancel:this._onDecline}))}}R()(Ed,"propTypes",{onFinished:Se.a.func.isRequired});var yd=n(717);class Sd extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{showTooltip:!1}),R()(this,"_onClick",e=>{e.stopPropagation(),E.a.trackEvent("Action Button","click",this.props.action),d.a.dispatch({action:this.props.action})}),R()(this,"_onMouseEnter",()=>{this.props.tooltip&&this.setState({showTooltip:!0}),this.props.mouseOverAction&&d.a.dispatch({action:this.props.mouseOverAction})}),R()(this,"_onMouseLeave",()=>{this.setState({showTooltip:!1})})}render(){const e=u.getComponent("elements.TintableSvg");let t;if(this.state.showTooltip){const e=u.getComponent("elements.Tooltip");t=i.a.createElement(e,{className:"mx_RoleButton_tooltip",label:this.props.label})}const n=this.props.iconPath?i.a.createElement(e,{src:this.props.iconPath,width:this.props.size,height:this.props.size}):void 0,o=["mx_RoleButton"];return this.props.className&&o.push(this.props.className),i.a.createElement(g.a,{className:o.join(" "),onClick:this._onClick,onMouseEnter:this._onMouseEnter,onMouseLeave:this._onMouseLeave,"aria-label":this.props.label},n,t)}}R()(Sd,"propTypes",{size:Se.a.string,tooltip:Se.a.bool,action:Se.a.string.isRequired,mouseOverAction:Se.a.string,label:Se.a.string.isRequired,iconPath:Se.a.string,className:Se.a.string}),R()(Sd,"defaultProps",{size:"25",tooltip:!1});class Td extends i.a.Component{constructor(e){super(e),R()(this,"moveSelectionTop",()=>{this.state.selected>0&&this.setState({selected:0,hover:!1})}),R()(this,"moveSelectionUp",()=>{this.state.selected>0&&this.setState({selected:this.state.selected-1,hover:!1})}),R()(this,"moveSelectionDown",()=>{this.state.selected<this._maxSelected(this.props.addressList)&&this.setState({selected:this.state.selected+1,hover:!1})}),R()(this,"chooseSelection",()=>{this.selectAddress(this.state.selected)}),R()(this,"onClick",e=>{this.selectAddress(e)}),R()(this,"onMouseEnter",e=>{this.setState({selected:e,hover:!0})}),R()(this,"onMouseLeave",()=>{this.setState({hover:!1})}),R()(this,"selectAddress",e=>{0!==this.props.addressList.length&&(this.props.onSelected(e),this.setState({hover:!1}))}),this.state={selected:void 0===this.props.selected?0:this.props.selected,hover:!1}}UNSAFE_componentWillReceiveProps(e){const t=this.state.selected,n=this._maxSelected(e.addressList);t>n&&this.setState({selected:n})}componentDidUpdate(){if(this.scrollElement&&this.props.addressList.length>0&&!this.state.hover){const e=this.addressListElement.getBoundingClientRect().height;this.scrollElement.scrollTop=this.state.selected*e-e}}createAddressListTiles(){const e=u.getComponent("elements.AddressTile"),t=this._maxSelected(this.props.addressList),o=[];if(this.props.addressList.length>0)for(let r=0;r<=t;r++){const t=M()({mx_AddressSelector_addressListElement:!0,mx_AddressSelector_selected:this.state.selected===r});o.push(i.a.createElement("div",{className:t,onClick:this.onClick.bind(this,r),onMouseEnter:this.onMouseEnter.bind(this,r),onMouseLeave:this.onMouseLeave,key:this.props.addressList[r].addressType+"/"+this.props.addressList[r].address,ref:e=>{this.addressListElement=e}},i.a.createElement(e,{address:this.props.addressList[r],showAddress:this.props.showAddress,justified:!0,networkName:"vector",networkUrl:n(1587)})))}return o}_maxSelected(e){const t=0===e.length?0:e.length-1;return t>this.props.truncateAt-1?this.props.truncateAt-1:t}render(){const e=M()({mx_AddressSelector:!0,mx_AddressSelector_empty:0===this.props.addressList.length});return i.a.createElement("div",{className:e,ref:e=>{this.scrollElement=e}},this.props.header,this.createAddressListTiles())}}R()(Td,"propTypes",{onSelected:Se.a.func.isRequired,addressList:Se.a.arrayOf(va.a).isRequired,showAddress:Se.a.bool,truncateAt:Se.a.number.isRequired,selected:Se.a.number,header:Se.a.node});class wd extends i.a.Component{render(){const e=this.props.address,t=e.displayName||e.address,o=[],r=["mx-user-id","mx-room-id"].includes(e.addressType);r&&e.avatarMxc?o.push(X.a.get().mxcUrlToHttp(e.avatarMxc,25,25,"crop")):"email"===e.addressType&&o.push(n(1588));const a=u.getComponent("avatars.BaseAvatar"),s=u.getComponent("elements.TintableSvg"),l=M()({mx_AddressTile_name:!0,mx_AddressTile_justified:this.props.justified});let d,h=!1;if(r&&e.isKnown){const n=M()({mx_AddressTile_id:!0,mx_AddressTile_justified:this.props.justified});d=i.a.createElement("div",{className:"mx_AddressTile_mx"},i.a.createElement("div",{className:l},t),this.props.showAddress?i.a.createElement("div",{className:n},e.address):i.a.createElement("div",null))}else if(r){const e=M()({mx_AddressTile_unknownMx:!0,mx_AddressTile_justified:this.props.justified});d=i.a.createElement("div",{className:e},this.props.address.address)}else if("email"===e.addressType){const t=M()({mx_AddressTile_email:!0,mx_AddressTile_justified:this.props.justified});let n=null;e.displayName&&(n=i.a.createElement("div",{className:l},e.displayName)),d=i.a.createElement("div",{className:"mx_AddressTile_mx"},i.a.createElement("div",{className:t},e.address),n)}else{h=!0;const e=M()({mx_AddressTile_unknown:!0,mx_AddressTile_justified:this.props.justified});d=i.a.createElement("div",{className:e},Object(c.a)("Unknown Address"))}const p=M()({mx_AddressTile:!0,mx_AddressTile_error:h});let m;return this.props.canDismiss&&(m=i.a.createElement("div",{className:"mx_AddressTile_dismiss",onClick:this.props.onDismissed},i.a.createElement(s,{src:n(1589),width:"9",height:"9"}))),i.a.createElement("div",{className:p},i.a.createElement("div",{className:"mx_AddressTile_avatar"},i.a.createElement(a,{defaultToInitialLetter:!0,width:25,height:25,name:t,title:t,urls:o})),d,m)}}R()(wd,"propTypes",{address:va.a.isRequired,canDismiss:Se.a.bool,onDismissed:Se.a.func,justified:Se.a.bool}),R()(wd,"defaultProps",{canDismiss:!1,onDismissed:function(){},justified:!1});var Cd=n(743),xd=n(744);class Od extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{hover:!1,profile:null}),R()(this,"_onFlairStoreUpdated",()=>{this.unmounted||an.a.getGroupProfileCached(this.context,this.props.tag).then(e=>{this.unmounted||this.setState({profile:e})}).catch(e=>{console.warn("Could not fetch group profile for "+this.props.tag,e)})}),R()(this,"onClick",e=>{e.preventDefault(),e.stopPropagation(),d.a.dispatch({action:"select_tag",tag:this.props.tag,ctrlOrCmdKey:Object(gn.c)(e),shiftKey:e.shiftKey}),"+"===this.props.tag[0]&&this._refreshGroup(this.props.tag)}),R()(this,"onMouseOver",()=>{P.a.getValue("feature_communities_v2_prototypes")||this.setState({hover:!0})}),R()(this,"onMouseLeave",()=>{this.setState({hover:!1})}),R()(this,"openMenu",e=>{e.stopPropagation(),e.preventDefault(),P.a.getValue("feature_communities_v2_prototypes")||(this.setState({hover:!1}),this.props.openMenu())})}componentDidMount(){this.unmounted=!1,"+"===this.props.tag[0]&&(an.a.addListener("updateGroupProfile",this._onFlairStoreUpdated),this._onFlairStoreUpdated(),this._refreshGroup(this.props.tag))}componentWillUnmount(){this.unmounted=!0,"+"===this.props.tag[0]&&an.a.removeListener("updateGroupProfile",this._onFlairStoreUpdated)}_refreshGroup(e){Ni.a.refreshGroupRooms(e),Ni.a.refreshGroupMembers(e)}render(){const e=u.getComponent("avatars.BaseAvatar"),t=this.state.profile||{},n=t.name||this.props.tag,o=t.avatarUrl?this.context.mxcUrlToHttp(t.avatarUrl,32,32,"crop"):null,r=P.a.getValue("feature_communities_v2_prototypes"),a=M()({mx_TagTile:!0,mx_TagTile_prototype:r,mx_TagTile_selected:this.props.selected&&!r,mx_TagTile_selected_prototype:this.props.selected&&r}),s=A.a.getGroupBadge(this.props.tag);let c;if(s&&!this.state.hover&&!this.props.menuDisplayed){const e=M()({mx_TagTile_badge:!0,mx_TagTile_badgeHighlight:s.highlight});c=i.a.createElement("div",{className:e},q.c(s.count))}const l=this.state.hover||this.props.menuDisplayed?i.a.createElement(g.a,{className:"mx_TagTile_context_button",onClick:this.openMenu,inputRef:this.props.contextMenuButtonRef},"···"):i.a.createElement("div",{ref:this.props.contextMenuButtonRef}),d=u.getComponent("elements.AccessibleTooltipButton");return i.a.createElement(d,{className:a,onClick:this.onClick,onContextMenu:this.openMenu,title:n},i.a.createElement("div",{className:"mx_TagTile_avatar",onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave},i.a.createElement(e,{name:n,idName:this.props.tag,url:o,width:32,height:32}),l,c))}}function kd(e){const[t,n,r,a]=Object(o.o)();let s=null;if(t&&n.current){const t=n.current.getBoundingClientRect(),r=u.getComponent("context_menus.TagTileContextMenu");s=i.a.createElement(o.b,Z()({},Object(o.n)(t),{onFinished:a}),i.a.createElement(r,{tag:e.tag,onFinished:a}))}return i.a.createElement("div",null,i.a.createElement(N.Draggable,{key:e.tag,draggableId:e.tag,index:e.index,type:"draggable-TagTile"},(o,a)=>i.a.createElement("div",Z()({ref:o.innerRef},o.draggableProps,o.dragHandleProps),i.a.createElement(Od,Z()({},e,{contextMenuButtonRef:n,menuDisplayed:t,openMenu:r})))),s)}R()(Od,"propTypes",{tag:Se.a.string,contextMenuButtonRef:Se.a.object,openMenu:Se.a.func,menuDisplayed:Se.a.bool,selected:Se.a.bool}),R()(Od,"contextType",b.a);class Rd extends i.a.Component{constructor(e){super(e),this._collectInput=this._collectInput.bind(this),this._onClearClick=this._onClearClick.bind(this),this._onChange=this._onChange.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onJoinButtonClick=this._onJoinButtonClick.bind(this),this.input=null,this.state={value:this.props.initialText||""}}_collectInput(e){this.input=e}_onClearClick(){this.setState({value:""}),this.input&&(this.input.focus(),this.props.onClear&&this.props.onClear())}_onChange(e){this.input&&(this.setState({value:e.target.value}),this.props.onChange&&this.props.onChange(e.target.value))}_onKeyUp(e){"Enter"==e.key&&this.props.showJoinButton&&this.props.onJoinClick&&this.props.onJoinClick(this.state.value)}_onJoinButtonClick(){this.props.onJoinClick&&this.props.onJoinClick(this.state.value)}render(){const e=u.getComponent("elements.AccessibleButton");let t;return{mx_DirectorySearchBox:!0}[this.props.className]=!0,this.props.showJoinButton&&(t=i.a.createElement(e,{className:"mx_DirectorySearchBox_joinButton",onClick:this._onJoinButtonClick},Object(c.a)("Join"))),i.a.createElement("div",{className:`mx_DirectorySearchBox ${this.props.className} mx_textinput`},i.a.createElement("input",{type:"text",name:"dirsearch",value:this.state.value,className:"mx_textinput_icon mx_textinput_search",ref:this._collectInput,onChange:this._onChange,onKeyUp:this._onKeyUp,placeholder:this.props.placeholder,autoFocus:!0}),t,i.a.createElement(e,{className:"mx_DirectorySearchBox_clear",onClick:this._onClearClick}))}}Rd.propTypes={className:Se.a.string,onChange:Se.a.func,onClear:Se.a.func,onJoinClick:Se.a.func,placeholder:Se.a.string,showJoinButton:Se.a.bool,initialText:Se.a.string};class Ad extends i.a.Component{constructor(e){super(e),this._onMouseEnter=this._onMouseEnter.bind(this),this._onClick=this._onClick.bind(this)}_onMouseEnter(){this.props.onMouseEnter(this.props.dropdownKey)}_onClick(e){e.preventDefault(),e.stopPropagation(),this.props.onClick(this.props.dropdownKey)}render(){const e=M()({mx_Dropdown_option:!0,mx_Dropdown_option_highlight:this.props.highlighted});return i.a.createElement("div",{id:this.props.id,className:e,onClick:this._onClick,onMouseEnter:this._onMouseEnter,role:"option","aria-selected":this.props.highlighted,ref:this.props.inputRef},this.props.children)}}R()(Ad,"defaultProps",{disabled:!1}),Ad.propTypes={children:Se.a.oneOfType([Se.a.arrayOf(Se.a.node),Se.a.node]),highlighted:Se.a.bool,dropdownKey:Se.a.string,onClick:Se.a.func.isRequired,onMouseEnter:Se.a.func.isRequired,inputRef:Se.a.any};class Id extends i.a.Component{constructor(e){super(e),R()(this,"_onInputKeyDown",e=>{let t=!0;switch(e.key){case gn.a.ENTER:this.props.onOptionChange(this.state.highlightedOption);case gn.a.ESCAPE:this._close();break;case gn.a.ARROW_DOWN:this.setState({highlightedOption:this._nextOption(this.state.highlightedOption)});break;case gn.a.ARROW_UP:this.setState({highlightedOption:this._prevOption(this.state.highlightedOption)});break;default:t=!1}t&&(e.preventDefault(),e.stopPropagation())}),this.dropdownRootElement=null,this.ignoreEvent=null,this._onInputClick=this._onInputClick.bind(this),this._onRootClick=this._onRootClick.bind(this),this._onDocumentClick=this._onDocumentClick.bind(this),this._onMenuOptionClick=this._onMenuOptionClick.bind(this),this._onInputChange=this._onInputChange.bind(this),this._collectRoot=this._collectRoot.bind(this),this._collectInputTextBox=this._collectInputTextBox.bind(this),this._setHighlightedOption=this._setHighlightedOption.bind(this),this.inputTextBox=null,this._reindexChildren(this.props.children);const t=i.a.Children.toArray(e.children)[0];this.state={expanded:!1,highlightedOption:t?t.key:null,searchQuery:""}}UNSAFE_componentWillMount(){this._button=Object(r.createRef)(),document.addEventListener("click",this._onDocumentClick,!1)}componentWillUnmount(){document.removeEventListener("click",this._onDocumentClick,!1)}UNSAFE_componentWillReceiveProps(e){if(!e.children||0===e.children.length)return;this._reindexChildren(e.children);const t=e.children[0];this.setState({highlightedOption:t?t.key:null})}_reindexChildren(e){this.childrenByKey={},i.a.Children.forEach(e,e=>{this.childrenByKey[e.key]=e})}_onDocumentClick(e){e!==this.ignoreEvent&&this.setState({expanded:!1})}_onRootClick(e){this.ignoreEvent=e}_onInputClick(e){this.props.disabled||this.state.expanded||(this.setState({expanded:!0}),e.preventDefault())}_close(){this.setState({expanded:!1}),this._button.current&&this._button.current.focus()}_onMenuOptionClick(e){this._close(),this.props.onOptionChange(e)}_onInputChange(e){this.setState({searchQuery:e.target.value}),this.props.onSearchChange&&this.props.onSearchChange(e.target.value)}_collectRoot(e){this.dropdownRootElement&&this.dropdownRootElement.removeEventListener("click",this._onRootClick,!1),e&&e.addEventListener("click",this._onRootClick,!1),this.dropdownRootElement=e}_collectInputTextBox(e){this.inputTextBox=e,e&&e.focus()}_setHighlightedOption(e){this.setState({highlightedOption:e})}_nextOption(e){const t=Object.keys(this.childrenByKey),n=t.indexOf(e);return t[(n+1)%t.length]}_prevOption(e){const t=Object.keys(this.childrenByKey),n=t.indexOf(e);return t[(n-1)%t.length]}_scrollIntoView(e){e&&e.scrollIntoView({block:"nearest",behavior:"auto"})}_getMenuOptions(){const e=i.a.Children.map(this.props.children,e=>{const t=this.state.highlightedOption===e.key;return i.a.createElement(Ad,{id:`${this.props.id}__${e.key}`,key:e.key,dropdownKey:e.key,highlighted:t,onMouseEnter:this._setHighlightedOption,onClick:this._onMenuOptionClick,inputRef:t?this._scrollIntoView:void 0},e)});return 0===e.length?[i.a.createElement("div",{key:"0",className:"mx_Dropdown_option",role:"option"},Object(c.a)("No results"))]:e}render(){let e;const t={};let n;if(this.props.menuWidth&&(t.width=this.props.menuWidth),this.state.expanded&&(this.props.searchEnabled&&(e=i.a.createElement("input",{type:"text",className:"mx_Dropdown_option",ref:this._collectInputTextBox,onKeyDown:this._onInputKeyDown,onChange:this._onInputChange,value:this.state.searchQuery,role:"combobox","aria-autocomplete":"list","aria-activedescendant":`${this.props.id}__${this.state.highlightedOption}`,"aria-owns":this.props.id+"_listbox","aria-disabled":this.props.disabled,"aria-label":this.props.label})),n=i.a.createElement("div",{className:"mx_Dropdown_menu",style:t,role:"listbox",id:this.props.id+"_listbox"},this._getMenuOptions())),!e){const t=this.props.getShortOption?this.props.getShortOption(this.props.value):this.childrenByKey[this.props.value];e=i.a.createElement("div",{className:"mx_Dropdown_option",id:this.props.id+"_value"},t)}const o={mx_Dropdown:!0,mx_Dropdown_disabled:this.props.disabled};return this.props.className&&(o[this.props.className]=!0),i.a.createElement("div",{className:M()(o),ref:this._collectRoot},i.a.createElement(g.a,{className:"mx_Dropdown_input mx_no_textinput",onClick:this._onInputClick,"aria-haspopup":"listbox","aria-expanded":this.state.expanded,disabled:this.props.disabled,inputRef:this._button,"aria-label":this.props.label,"aria-describedby":this.props.id+"_value"},e,i.a.createElement("span",{className:"mx_Dropdown_arrow"}),n))}}Id.propTypes={id:Se.a.string.isRequired,menuWidth:Se.a.number,onOptionChange:Se.a.func.isRequired,onSearchChange:Se.a.func,searchEnabled:Se.a.bool,getShortOption:Se.a.func,value:Se.a.string,disabled:Se.a.bool,label:Se.a.string.isRequired};class Dd extends i.a.Component{constructor(){super(),R()(this,"_onRemove",e=>{e.stopPropagation(),e.preventDefault(),this.setState({verifyRemove:!0})}),R()(this,"_onDontRemove",e=>{e.stopPropagation(),e.preventDefault(),this.setState({verifyRemove:!1})}),R()(this,"_onActuallyRemove",e=>{e.stopPropagation(),e.preventDefault(),this.props.onRemove&&this.props.onRemove(this.props.index),this.setState({verifyRemove:!1})}),this.state={verifyRemove:!1}}render(){return this.state.verifyRemove?i.a.createElement("div",{className:"mx_EditableItem"},i.a.createElement("span",{className:"mx_EditableItem_promptText"},Object(c.a)("Are you sure?")),i.a.createElement(g.a,{onClick:this._onActuallyRemove,kind:"primary_sm",className:"mx_EditableItem_confirmBtn"},Object(c.a)("Yes")),i.a.createElement(g.a,{onClick:this._onDontRemove,kind:"danger_sm",className:"mx_EditableItem_confirmBtn"},Object(c.a)("No"))):i.a.createElement("div",{className:"mx_EditableItem"},i.a.createElement("div",{onClick:this._onRemove,className:"mx_EditableItem_delete",title:Object(c.a)("Remove"),role:"button"}),i.a.createElement("span",{className:"mx_EditableItem_item"},this.props.value))}}R()(Dd,"propTypes",{index:Se.a.number,value:Se.a.string,onRemove:Se.a.func});class Nd extends i.a.Component{constructor(...e){super(...e),R()(this,"_onItemAdded",e=>{e.stopPropagation(),e.preventDefault(),this.props.onItemAdded&&this.props.onItemAdded(this.props.newItem)}),R()(this,"_onItemRemoved",e=>{this.props.onItemRemoved&&this.props.onItemRemoved(e)}),R()(this,"_onNewItemChanged",e=>{this.props.onNewItemChanged&&this.props.onNewItemChanged(e.target.value)})}_renderNewItemField(){return i.a.createElement("form",{onSubmit:this._onItemAdded,autoComplete:"off",noValidate:!0,className:"mx_EditableItemList_newItem"},i.a.createElement(Ce.a,{label:this.props.placeholder,type:"text",autoComplete:"off",value:this.props.newItem||"",onChange:this._onNewItemChanged,list:this.props.suggestionsListId}),i.a.createElement(g.a,{onClick:this._onItemAdded,kind:"primary",type:"submit"},Object(c.a)("Add")))}render(){const e=this.props.items.map((e,t)=>this.props.canRemove?i.a.createElement(Dd,{key:e,index:t,value:e,onRemove:this._onItemRemoved}):i.a.createElement("li",{key:e},e)),t=this.props.canRemove?e:i.a.createElement("ul",null,e),n=this.props.items.length>0?this.props.itemsLabel:this.props.noItemsLabel;return i.a.createElement("div",{className:"mx_EditableItemList"},i.a.createElement("div",{className:"mx_EditableItemList_label"},n),t,this.props.canEdit?this._renderNewItemField():i.a.createElement("div",null))}}R()(Nd,"propTypes",{id:Se.a.string.isRequired,items:Se.a.arrayOf(Se.a.string).isRequired,itemsLabel:Se.a.string,noItemsLabel:Se.a.string,placeholder:Se.a.string,newItem:Se.a.string,onItemAdded:Se.a.func,onItemRemoved:Se.a.func,onNewItemChanged:Se.a.func,canEdit:Se.a.bool,canRemove:Se.a.bool});class Fd extends i.a.Component{constructor(e){super(e),R()(this,"state",{phase:Fd.Phases.Display}),R()(this,"showPlaceholder",e=>{e?(this._editable_div.current.textContent=this.props.placeholder,this._editable_div.current.setAttribute("class",this.props.className+" "+this.props.placeholderClassName),this.placeholder=!0,this.value=""):(this._editable_div.current.textContent=this.value,this._editable_div.current.setAttribute("class",this.props.className),this.placeholder=!1)}),R()(this,"getValue",()=>this.value),R()(this,"setValue",e=>{this.value=e,this.showPlaceholder(!this.value)}),R()(this,"edit",()=>{this.setState({phase:Fd.Phases.Edit})}),R()(this,"cancelEdit",()=>{this.setState({phase:Fd.Phases.Display}),this.value=this.props.initialValue,this.showPlaceholder(!this.value),this.onValueChanged(!1),this._editable_div.current.blur()}),R()(this,"onValueChanged",e=>{this.props.onValueChanged(this.value,e)}),R()(this,"onKeyDown",e=>{this.placeholder&&this.showPlaceholder(!1),e.key===gn.a.ENTER&&(e.stopPropagation(),e.preventDefault())}),R()(this,"onKeyUp",e=>{e.target.textContent?this.placeholder||(this.value=e.target.textContent):this.showPlaceholder(!0),e.key===gn.a.ENTER?this.onFinish(e):e.key===gn.a.ESCAPE&&this.cancelEdit()}),R()(this,"onClickDiv",e=>{this.props.editable&&this.setState({phase:Fd.Phases.Edit})}),R()(this,"onFocus",e=>{const t=e.target.childNodes[0];if(t){const e=document.createRange();e.setStart(t,0),e.setEnd(t,t.length);const n=window.getSelection();n.removeAllRanges(),n.addRange(e)}}),R()(this,"onFinish",(e,t)=>{const n=this,o=e.key===gn.a.ENTER||t;this.setState({phase:Fd.Phases.Display},()=>{this.value!==this.props.initialValue&&n.onValueChanged(o)})}),R()(this,"onBlur",e=>{window.getSelection().removeAllRanges(),this.props.blurToCancel?this.cancelEdit():this.onFinish(e,this.props.blurToSubmit),this.showPlaceholder(!this.value)}),this.value="",this.placeholder=!1,this._editable_div=Object(r.createRef)()}UNSAFE_componentWillReceiveProps(e){e.initialValue!==this.props.initialValue&&(this.value=e.initialValue,this._editable_div.current&&this.showPlaceholder(!this.value))}componentDidMount(){this.value=this.props.initialValue,this._editable_div.current&&this.showPlaceholder(!this.value)}render(){const{className:e,editable:t,initialValue:n,label:o,labelClassName:r}=this.props;let a;return a=!t||this.state.phase===Fd.Phases.Display&&(o||r)&&!this.value?i.a.createElement("div",{className:e+" "+r,onClick:this.onClickDiv},o||n):i.a.createElement("div",{ref:this._editable_div,contentEditable:!0,className:e,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onFocus:this.onFocus,onBlur:this.onBlur}),a}}R()(Fd,"propTypes",{onValueChanged:Se.a.func,initialValue:Se.a.string,label:Se.a.string,placeholder:Se.a.string,className:Se.a.string,labelClassName:Se.a.string,placeholderClassName:Se.a.string,blurToCancel:Se.a.bool,blurToSubmit:Se.a.bool,editable:Se.a.bool}),R()(Fd,"Phases",{Display:"display",Edit:"edit"}),R()(Fd,"defaultProps",{onValueChanged(){},initialValue:"",label:"",placeholder:"",editable:!0,className:"mx_EditableText",placeholderClassName:"mx_EditableText_placeholder",blurToSubmit:!1});class Md extends i.a.Component{constructor(e){super(e),this._unmounted=!1,this.state={busy:!1,errorString:null,value:e.initialValue},this._onValueChanged=this._onValueChanged.bind(this)}componentDidMount(){void 0!==this.props.getInitialValue&&(this.setState({busy:!0}),this.props.getInitialValue().then(e=>{this._unmounted||this.setState({busy:!1,value:e})},e=>{this._unmounted||this.setState({errorString:e.toString(),busy:!1})}))}componentWillUnmount(){this._unmounted=!0}_onValueChanged(e,t){t&&(this.setState({busy:!0,errorString:null}),this.props.onSubmit(e).then(()=>{this._unmounted||this.setState({busy:!1,value:e})},e=>{this._unmounted||this.setState({errorString:e.toString(),busy:!1})}))}render(){if(this.state.busy){const e=u.getComponent("elements.Spinner");return i.a.createElement(e,null)}if(this.state.errorString)return i.a.createElement("div",{className:"error"},this.state.errorString);{const e=u.getComponent("elements.EditableText");return i.a.createElement(e,{initialValue:this.state.value,placeholder:this.props.placeholder,onValueChanged:this._onValueChanged,blurToSubmit:this.props.blurToSubmit})}}}Md.propTypes={getInitialValue:Se.a.func,initialValue:Se.a.string,placeholder:Se.a.string,onSubmit:Se.a.func,blurToSubmit:Se.a.bool},Md.defaultProps={initialValue:"",placeholder:"",blurToSubmit:!1,onSubmit:function(e){return Promise.resolve()}};var Pd=n(764);class Ld extends i.a.Component{constructor(){super(),this.onClick=this.onClick.bind(this)}onClick(e){e.preventDefault(),e.stopPropagation(),d.a.dispatch({action:"view_group",group_id:this.props.groupProfile.groupId})}render(){const e=this.context.mxcUrlToHttp(this.props.groupProfile.avatarUrl,16,16,"scale",!1),t=this.props.groupProfile.name?`${this.props.groupProfile.name} (${this.props.groupProfile.groupId})`:this.props.groupProfile.groupId;return i.a.createElement("img",{src:e,width:"16",height:"16",onClick:this.onClick,title:t})}}Ld.propTypes={groupProfile:Se.a.shape({groupId:Se.a.string.isRequired,name:Se.a.string,avatarUrl:Se.a.string.isRequired})},Ld.contextType=b.a;class Ud extends i.a.Component{constructor(){super(),this.state={profiles:[]}}componentDidMount(){this._unmounted=!1,this._generateAvatars(this.props.groups)}componentWillUnmount(){this._unmounted=!0}UNSAFE_componentWillReceiveProps(e){this._generateAvatars(e.groups)}async _getGroupProfiles(e){const t=[];for(const n of e){let e=null;try{e=await an.a.getGroupProfileCached(this.context,n)}catch(e){console.error("Could not get profile for group",n,e)}t.push(e)}return t.filter(e=>null!==e)}async _generateAvatars(e){if(!e||0===e.length)return;const t=await this._getGroupProfiles(e);this.unmounted||this.setState({profiles:t.filter(e=>!!e&&e.avatarUrl)})}render(){if(0===this.state.profiles.length)return i.a.createElement("span",{className:"mx_Flair"});const e=this.state.profiles.map((e,t)=>i.a.createElement(Ld,{key:t,groupProfile:e}));return i.a.createElement("span",{className:"mx_Flair"},e)}}Ud.propTypes={groups:Se.a.arrayOf(Se.a.string)},Ud.contextType=b.a;var Bd=n(495),jd=n(238);class Gd extends i.a.PureComponent{constructor(e){super(e),R()(this,"_onChange",e=>{this.props.onChange&&this.props.onChange(this._asFullAlias(e.target.value))}),R()(this,"_onValidate",async e=>{const t=await this._validationRules(e);return this.setState({isValid:t.valid}),t}),R()(this,"_validationRules",Object(bo.a)({rules:[{key:"safeLocalpart",test:async({value:e})=>{if(!e)return!0;const t=this._asFullAlias(e);return!e.includes("#")&&!e.includes(":")&&!e.includes(",")&&encodeURI(t)===t},invalid:()=>Object(c.a)("Some characters not allowed")},{key:"required",test:async({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Please provide a room address")},{key:"taken",final:!0,test:async({value:e})=>{if(!e)return!0;const t=X.a.get();try{return await t.getRoomIdForAlias(this._asFullAlias(e)),!1}catch(e){return!!e.errcode}},valid:()=>Object(c.a)("This address is available to use"),invalid:()=>Object(c.a)("This address is already in use")}]})),this.state={isValid:!0}}_asFullAlias(e){return`#${e}:${this.props.domain}`}render(){const e=u.getComponent("views.elements.Field"),t=i.a.createElement("span",null,"#"),n=":"+this.props.domain,o=i.a.createElement("span",{title:n},n),r=255-this.props.domain.length-2;return i.a.createElement(e,{label:Object(c.a)("Room address"),className:"mx_RoomAliasField",prefixComponent:t,postfixComponent:o,ref:e=>this._fieldRef=e,onValidate:this._onValidate,placeholder:Object(c.a)("e.g. my-room"),onChange:this._onChange,value:this.props.value.substring(1,this.props.value.length-this.props.domain.length-1),maxLength:r})}get isValid(){return this.state.isValid}validate(e){return this._fieldRef.validate(e)}focus(){this._fieldRef.focus()}}R()(Gd,"propTypes",{domain:Se.a.string.isRequired,onChange:Se.a.func,value:Se.a.string.isRequired});const qd=function(e){const t=u.getComponent("elements.ActionButton");return i.a.createElement(t,{action:h.a.ViewRoomDirectory,mouseOverAction:e.callout?"callout_room_directory":null,label:Object(c.a)("Room directory"),iconPath:n(1590),size:e.size,tooltip:e.tooltip})};qd.propTypes={size:Se.a.string,tooltip:Se.a.bool};var Hd=qd;class Vd extends i.a.Component{constructor(e){super(e),this.state={visible:!1}}toggleVisible(e){this.state.visible||(e.preventDefault(),e.stopPropagation()),this.setState({visible:!this.state.visible})}render(){const e=this.props.reason?i.a.createElement("span",{className:"mx_EventTile_spoiler_reason"},"("+this.props.reason+")"):null;return i.a.createElement("span",{className:"mx_EventTile_spoiler"+(this.state.visible?" visible":""),onClick:this.toggleVisible.bind(this)},e," ",i.a.createElement("span",{className:"mx_EventTile_spoiler_content",dangerouslySetInnerHTML:{__html:this.props.contentHtml}}))}}const zd=function(e){const t=u.getComponent("elements.ActionButton");return i.a.createElement(t,{action:"view_create_chat",mouseOverAction:e.callout?"callout_start_chat":null,label:Object(c.a)("Start chat"),iconPath:n(1591),size:e.size,tooltip:e.tooltip})};zd.propTypes={size:Se.a.string,tooltip:Se.a.bool};var Kd=zd;class Wd extends i.a.Component{constructor(...e){super(...e),R()(this,"tint",()=>{Jr.a.applySvgFixups(this.fixups)}),R()(this,"onLoad",e=>{this.fixups=Jr.a.calcSvgFixups([e.target]),Jr.a.applySvgFixups(this.fixups)})}componentDidMount(){this.fixups=[],this.id=Wd.idSequence++,Wd.mounts[this.id]=this}componentWillUnmount(){delete Wd.mounts[this.id]}render(){return i.a.createElement("object",{className:"mx_TintableSvg "+(this.props.className?this.props.className:""),type:"image/svg+xml",data:this.props.src,width:this.props.width,height:this.props.height,onLoad:this.onLoad,tabIndex:"-1"})}}R()(Wd,"propTypes",{src:Se.a.string.isRequired,width:Se.a.string.isRequired,height:Se.a.string.isRequired,className:Se.a.string}),R()(Wd,"mounts",{}),R()(Wd,"idSequence",0),Jr.a.registerTintable((function(){Wd.mounts&&Object.keys(Wd.mounts).forEach(e=>{Wd.mounts[e].tint()})}));var Yd=Wd;class $d extends i.a.Component{constructor(e){super(e)}render(){let e="mx_TintableSvgButton";return this.props.className&&(e+=" "+this.props.className),i.a.createElement("span",{width:this.props.width,height:this.props.height,className:e},i.a.createElement(Yd,{src:this.props.src,width:this.props.width,height:this.props.height}),i.a.createElement(g.a,{onClick:this.props.onClick,element:"span",title:this.props.title}))}}$d.propTypes={src:Se.a.string,title:Se.a.string,className:Se.a.string,width:Se.a.string.isRequired,height:Se.a.string.isRequired,onClick:Se.a.func},$d.defaultProps={onClick:function(){}};class Qd extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{hover:!1}),R()(this,"onMouseOver",()=>{this.setState({hover:!0})}),R()(this,"onMouseLeave",()=>{this.setState({hover:!1})})}render(){const e=u.getComponent("elements.Tooltip"),t=this.state.hover?i.a.createElement(e,{className:"mx_TooltipButton_container",tooltipClassName:"mx_TooltipButton_helpText",label:this.props.helpText}):i.a.createElement("div",null);return i.a.createElement("div",{className:"mx_TooltipButton",onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave},"?",t)}}class Xd extends i.a.Component{_getChildren(e,t){return this.props.getChildren&&this.props.getChildCount?this.props.getChildren(e,t):i.a.Children.toArray(this.props.children).filter(e=>null!=e).slice(e,t)}_getChildCount(){return this.props.getChildren&&this.props.getChildCount?this.props.getChildCount():i.a.Children.toArray(this.props.children).filter(e=>null!=e).length}render(){let e=null;const t=this._getChildCount();let n=t;if(this.props.truncateAt>=0){const o=t-this.props.truncateAt;o>1&&(e=this.props.createOverflowElement(o,t),n=this.props.truncateAt)}const o=this._getChildren(0,n);return i.a.createElement("div",{className:this.props.className},o,e)}}R()(Xd,"propTypes",{truncateAt:Se.a.number,className:Se.a.string,getChildren:Se.a.func,getChildCount:Se.a.func,createOverflowElement:Se.a.func}),R()(Xd,"defaultProps",{truncateAt:2,createOverflowElement:(e,t)=>i.a.createElement("div",null,Object(c.a)("And %(count)s more...",{count:e}))});class Jd extends i.a.Component{constructor(e,t){super(e,t),R()(this,"onClick",e=>{d.a.dispatch({action:"view_group",group_id:this.props.group.groupId})}),R()(this,"onMouseEnter",()=>{const e={hover:!0};this.context.isGuest()||(e.badgeHover=!0),this.setState(e)}),R()(this,"onMouseLeave",()=>{this.setState({badgeHover:!1,hover:!1})}),R()(this,"onContextMenuButtonClick",e=>{e.stopPropagation(),e.preventDefault(),this._showContextMenu(e.target.getBoundingClientRect())}),R()(this,"onContextMenu",e=>{e.preventDefault(),this._showContextMenu({right:e.clientX,top:e.clientY,height:0})}),R()(this,"closeMenu",()=>{this.setState({contextMenuPosition:null})}),this.state={hover:!1,badgeHover:!1,menuDisplayed:!1,selected:null===this.props.group.groupId}}_showContextMenu(e){if(X.a.get().isGuest())return;const t={contextMenuPosition:e};this.props.collapsed&&(t.hover=!1),this.setState(t)}render(){const e=u.getComponent("elements.AccessibleButton"),t=u.getComponent("avatars.BaseAvatar"),n=this.props.group.name||this.props.group.groupId,r=this.props.group.avatarUrl?this.context.mxcUrlToHttp(this.props.group.avatarUrl,24,24):null,a=i.a.createElement(t,{name:n,width:24,height:24,url:r}),s=Boolean(this.state.contextMenuPosition),l=M()("mx_RoomTile_name mx_RoomTile_invite mx_RoomTile_badgeShown",{mx_RoomTile_badgeShown:this.state.badgeHover||s}),d=i.a.createElement("div",{title:this.props.group.groupId,className:l,tabIndex:-1,dir:"auto"},n),h=this.state.badgeHover||s,p=M()("mx_RoomTile_badge mx_RoomTile_highlight",{mx_RoomTile_badgeButton:h}),m=h?"···":"!";let g;if(this.props.collapsed&&this.state.hover){const e=u.getComponent("elements.Tooltip");g=i.a.createElement(e,{className:"mx_RoomTile_tooltip",label:n,dir:"auto"})}const f=M()("mx_RoomTile mx_RoomTile_highlight",{mx_RoomTile_menuDisplayed:s,mx_RoomTile_selected:this.state.selected,mx_GroupInviteTile:!0});let _;if(s){const e=u.getComponent("context_menus.GroupInviteTileContextMenu");_=i.a.createElement(o.b,Z()({},Object(o.n)(this.state.contextMenuPosition),{onFinished:this.closeMenu}),i.a.createElement(e,{group:this.props.group,onFinished:this.closeMenu}))}return i.a.createElement(i.a.Fragment,null,i.a.createElement(K.d,null,({onFocus:t,isActive:n,ref:r})=>i.a.createElement(e,{onFocus:t,tabIndex:n?0:-1,inputRef:r,className:f,onClick:this.onClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onContextMenu:this.onContextMenu},i.a.createElement("div",{className:"mx_RoomTile_avatar"},a),i.a.createElement("div",{className:"mx_RoomTile_nameContainer"},d,i.a.createElement(o.c,{className:p,onClick:this.onContextMenuButtonClick,label:Object(c.a)("Options"),isExpanded:s,tabIndex:n?0:-1},m)),g)),_)}}R()(Jd,"propTypes",void 0),R()(Jd,"contextType",b.a);class Zd extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{members:null,membersError:null,invitedMembers:null,invitedMembersError:null,truncateAt:30}),R()(this,"_createOverflowTile",(e,t)=>{const o=u.getComponent("rooms.EntityTile"),r=u.getComponent("avatars.BaseAvatar"),a=Object(c.a)("and %(count)s others...",{count:e});return i.a.createElement(o,{className:"mx_EntityTile_ellipsis",avatarJsx:i.a.createElement(r,{url:n(517),name:"...",width:36,height:36}),name:a,presenceState:"online",suppressOnHover:!0,onClick:this._showFullMemberList})}),R()(this,"_showFullMemberList",()=>{this.setState({truncateAt:-1})}),R()(this,"onSearchQueryChanged",e=>{this.setState({searchQuery:e.target.value})}),R()(this,"onInviteToGroupButtonClick",()=>{Object(Ic.b)(this.props.groupId).then(()=>{d.a.dispatch({action:h.a.SetRightPanelPhase,phase:on.b.GroupMemberList,refireParams:{groupId:this.props.groupId}})})})}componentDidMount(){this._unmounted=!1,this._initGroupStore(this.props.groupId)}componentWillUnmount(){this._unmounted=!0}_initGroupStore(e){Ni.a.registerListener(e,()=>{this._fetchMembers()}),Ni.a.on("error",(t,n,o)=>{this._unmounted||e!==n||(o===Ni.a.STATE_KEY.GroupMembers&&this.setState({membersError:t}),o===Ni.a.STATE_KEY.GroupInvitedMembers&&this.setState({invitedMembersError:t}))})}_fetchMembers(){this._unmounted||this.setState({members:Ni.a.getGroupMembers(this.props.groupId),invitedMembers:Ni.a.getGroupInvitedMembers(this.props.groupId)})}makeGroupMemberTiles(e,t,n){if(n)return i.a.createElement("div",{className:"warning"},Object(c.a)("Failed to load group members"));const o=u.getComponent("groups.GroupMemberTile"),r=u.getComponent("elements.TruncatedList");(e=(e||"").toLowerCase())&&(t=t.filter(t=>{const n=(t.displayname||"").toLowerCase().includes(e),o=t.userId.toLowerCase().includes(e);return!(!n&&!o)}));const a={};t.forEach(e=>{a[e.userId]||(a[e.userId]=e)}),(t=Object.keys(a).map(e=>a[e])).sort((e,t)=>{if(e.isPrivileged===t.isPrivileged){const n=e.displayname||e.userId,o=t.displayname||t.userId;return n<o?-1:n>o?1:0}return e.isPrivileged?-1:1});const s=t.map(e=>i.a.createElement(o,{key:e.userId,groupId:this.props.groupId,member:e}));return i.a.createElement(r,{className:"mx_MemberList_wrapper",truncateAt:this.state.truncateAt,createOverflowElement:this._createOverflowTile},s)}render(){if(this.state.fetching||this.state.fetchingInvitedMembers){const e=u.getComponent("elements.Spinner");return i.a.createElement("div",{className:"mx_MemberList"},i.a.createElement(e,null))}const e=i.a.createElement("input",{className:"mx_GroupMemberList_query mx_textinput",id:"mx_GroupMemberList_query",type:"text",onChange:this.onSearchQueryChanged,value:this.state.searchQuery,placeholder:Object(c.a)("Filter community members"),autoComplete:"off"}),t=this.state.members?i.a.createElement("div",{className:"mx_MemberList_joined"},this.makeGroupMemberTiles(this.state.searchQuery,this.state.members,this.state.membersError)):i.a.createElement("div",null),n=this.state.invitedMembers&&this.state.invitedMembers.length>0?i.a.createElement("div",{className:"mx_MemberList_invited"},i.a.createElement("h2",null,Object(c.a)("Invited")),this.makeGroupMemberTiles(this.state.searchQuery,this.state.invitedMembers,this.state.invitedMembersError)):i.a.createElement("div",null);let o;return Ni.a.isUserPrivileged(this.props.groupId)&&(o=i.a.createElement(g.a,{className:"mx_MemberList_invite mx_MemberList_inviteCommunity",onClick:this.onInviteToGroupButtonClick},i.a.createElement("span",null,Object(c.a)("Invite to this community")))),i.a.createElement("div",{className:"mx_MemberList",role:"tabpanel"},o,i.a.createElement(a.a,null,t,n),e)}}R()(Zd,"propTypes",{groupId:Se.a.string.isRequired});class eh extends i.a.Component{constructor(...e){super(...e),R()(this,"onClick",e=>{d.a.dispatch({action:"view_group_user",member:this.props.member,groupId:this.props.groupId})})}render(){const e=u.getComponent("avatars.BaseAvatar"),t=u.getComponent("rooms.EntityTile"),n=this.props.member.displayname||this.props.member.userId,o=this.context.mxcUrlToHttp(this.props.member.avatarUrl,36,36,"crop"),r=i.a.createElement(e,{"aria-hidden":"true",name:this.props.member.displayname||this.props.member.userId,idName:this.props.member.userId,width:36,height:36,url:o});return i.a.createElement(t,{name:n,avatarJsx:r,onClick:this.onClick,suppressOnHover:!0,presenceState:"online",powerStatus:this.props.member.isPrivileged?t.POWER_STATUS_ADMIN:null})}}R()(eh,"propTypes",{groupId:Se.a.string.isRequired,member:qi.a.isRequired}),R()(eh,"contextType",b.a);class th extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{busy:!1,ready:!1,isGroupPublicised:!1}),R()(this,"_onPublicityToggle",()=>{this.setState({busy:!0,isGroupPublicised:!this.state.isGroupPublicised}),Ni.a.setGroupPublicity(this.props.groupId,!this.state.isGroupPublicised).then(()=>{this.setState({busy:!1})})})}componentDidMount(){this._initGroupStore(this.props.groupId)}_initGroupStore(e){this._groupStoreToken=Ni.a.registerListener(e,()=>{this.setState({isGroupPublicised:Boolean(Ni.a.getGroupPublicity(e)),ready:Ni.a.isStateReady(e,Ni.a.STATE_KEY.Summary)})})}componentWillUnmount(){this._groupStoreToken&&this._groupStoreToken.unregister()}render(){const e=u.getComponent("groups.GroupTile");return i.a.createElement("div",{className:"mx_GroupPublicity_toggle"},i.a.createElement(e,{groupId:this.props.groupId,showDescription:!1,avatarHeight:40,draggable:!1}),i.a.createElement(at.a,{checked:this.state.isGroupPublicised,disabled:!this.state.ready||this.state.busy,onChange:this._onPublicityToggle}))}}R()(th,"propTypes",{groupId:Se.a.string.isRequired});class nh extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{isUserPrivilegedInGroup:null,groupRoom:null,groupRoomPublicityLoading:!1,groupRoomRemoveLoading:!1}),R()(this,"onGroupStoreUpdated",()=>{this.setState({isUserPrivilegedInGroup:Ni.a.isUserPrivileged(this.props.groupId)}),this._updateGroupRoom()}),R()(this,"_onRemove",e=>{const t=this.props.groupId,n=this.state.groupRoom.displayname;e.preventDefault(),e.stopPropagation();const o=u.getComponent("dialogs.QuestionDialog");Ie.a.createTrackedDialog("Confirm removal of group from room","",o,{title:Object(c.a)("Are you sure you want to remove '%(roomName)s' from %(groupId)s?",{roomName:n,groupId:t}),description:Object(c.a)("Removing a room from the community will also remove it from the community page."),button:Object(c.a)("Remove"),onFinished:e=>{if(!e)return;this.setState({groupRoomRemoveLoading:!0});const t=this.props.groupId,o=this.props.groupRoomId;Ni.a.removeRoomFromGroup(this.props.groupId,o).then(()=>{d.a.dispatch({action:"view_group_room_list"})}).catch(e=>{console.error(`Error whilst removing ${o} from ${t}`,e);const r=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Failed to remove room from group","",r,{title:Object(c.a)("Failed to remove room from community"),description:Object(c.a)("Failed to remove '%(roomName)s' from %(groupId)s",{groupId:t,roomName:n})})}).finally(()=>{this.setState({groupRoomRemoveLoading:!1})})}})}),R()(this,"_onCancel",e=>{d.a.dispatch({action:"view_group_room_list"})}),R()(this,"_changeGroupRoomPublicity",e=>{const t="public"===e.target.value;this.setState({groupRoomPublicityLoading:!0});const n=this.props.groupId,o=this.props.groupRoomId,r=this.state.groupRoom.displayname;Ni.a.updateGroupRoomVisibility(this.props.groupId,o,t).catch(e=>{console.error(`Error whilst changing visibility of ${o} in ${n} to ${t}`,e);const i=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Failed to remove room from group","",i,{title:Object(c.a)("Something went wrong!"),description:Object(c.a)("The visibility of '%(roomName)s' in %(groupId)s could not be updated.",{roomName:r,groupId:n})})}).finally(()=>{this.setState({groupRoomPublicityLoading:!1})})})}componentDidMount(){this._initGroupStore(this.props.groupId)}UNSAFE_componentWillReceiveProps(e){e.groupId!==this.props.groupId&&(this._unregisterGroupStore(this.props.groupId),this._initGroupStore(e.groupId))}componentWillUnmount(){this._unregisterGroupStore(this.props.groupId)}_initGroupStore(e){Ni.a.registerListener(e,this.onGroupStoreUpdated)}_unregisterGroupStore(e){Ni.a.unregisterListener(this.onGroupStoreUpdated)}_updateGroupRoom(){this.setState({groupRoom:Ni.a.getGroupRooms(this.props.groupId).find(e=>e.roomId===this.props.groupRoomId)})}render(){const e=u.getComponent("elements.AccessibleButton"),t=u.getComponent("elements.InlineSpinner");if(this.state.groupRoomRemoveLoading||!this.state.groupRoom){const e=u.getComponent("elements.Spinner");return i.a.createElement("div",{className:"mx_MemberInfo"},i.a.createElement(e,null))}let o;this.state.isUserPrivilegedInGroup&&(o=i.a.createElement("div",{className:"mx_MemberInfo_adminTools"},i.a.createElement("h3",null,Object(c.a)("Admin Tools")),i.a.createElement("div",{className:"mx_MemberInfo_buttons"},i.a.createElement(e,{className:"mx_MemberInfo_field",onClick:this._onRemove},Object(c.a)("Remove from community"))),i.a.createElement("h3",null,Object(c.a)("Visibility in Room List"),this.state.groupRoomPublicityLoading?i.a.createElement(t,null):i.a.createElement("div",null)),i.a.createElement("div",null,i.a.createElement("label",null,i.a.createElement("input",{type:"radio",value:"public",checked:this.state.groupRoom.isPublic,onChange:this._changeGroupRoomPublicity}),i.a.createElement("div",{className:"mx_MemberInfo_label_text"},Object(c.a)("Visible to everyone")))),i.a.createElement("div",null,i.a.createElement("label",null,i.a.createElement("input",{type:"radio",value:"private",checked:!this.state.groupRoom.isPublic,onChange:this._changeGroupRoomPublicity}),i.a.createElement("div",{className:"mx_MemberInfo_label_text"},Object(c.a)("Only visible to community members"))))));const r=this.state.groupRoom.avatarUrl;let s;if(r){const e=this.context.mxcUrlToHttp(r,800,800);s=i.a.createElement("div",{className:"mx_MemberInfo_avatar"},i.a.createElement("img",{src:e}))}const l=this.state.groupRoom.displayname;return i.a.createElement("div",{className:"mx_MemberInfo",role:"tabpanel"},i.a.createElement(a.a,null,i.a.createElement(e,{className:"mx_MemberInfo_cancel",onClick:this._onCancel},i.a.createElement("img",{src:n(219),width:"18",height:"18",className:"mx_filterFlipColor"})),s,i.a.createElement("h2",null,l),i.a.createElement("div",{className:"mx_MemberInfo_profile"},i.a.createElement("div",{className:"mx_MemberInfo_profileField"},this.state.groupRoom.canonicalAlias)),o))}}R()(nh,"contextType",b.a),R()(nh,"propTypes",{groupId:Se.a.string,groupRoomId:Se.a.string});class oh extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{rooms:null,truncateAt:30,searchQuery:""}),R()(this,"onGroupStoreUpdated",()=>{this._unmounted||this.setState({rooms:Ni.a.getGroupRooms(this.props.groupId)})}),R()(this,"_createOverflowTile",(e,t)=>{const o=u.getComponent("rooms.EntityTile"),r=u.getComponent("avatars.BaseAvatar"),a=Object(c.a)("and %(count)s others...",{count:e});return i.a.createElement(o,{className:"mx_EntityTile_ellipsis",avatarJsx:i.a.createElement(r,{url:n(517),name:"...",width:36,height:36}),name:a,presenceState:"online",suppressOnHover:!0,onClick:this._showFullRoomList})}),R()(this,"_showFullRoomList",()=>{this.setState({truncateAt:-1})}),R()(this,"onSearchQueryChanged",e=>{this.setState({searchQuery:e.target.value})}),R()(this,"onAddRoomToGroupButtonClick",()=>{Object(Ic.a)(this.props.groupId).then(()=>{this.forceUpdate()})})}componentDidMount(){this._unmounted=!1,this._initGroupStore(this.props.groupId)}componentWillUnmount(){this._unmounted=!0,this._unregisterGroupStore()}_unregisterGroupStore(){Ni.a.unregisterListener(this.onGroupStoreUpdated)}_initGroupStore(e){Ni.a.registerListener(e,this.onGroupStoreUpdated),Ni.a.on("error",(t,n)=>{n===e&&this.setState({rooms:null})})}makeGroupRoomTiles(e){const t=u.getComponent("groups.GroupRoomTile");e=(e||"").toLowerCase();let n=this.state.rooms;return e&&(n=n.filter(t=>{const n=(t.name||"").toLowerCase().includes(e),o=(t.canonicalAlias||"").toLowerCase().includes(e);return n||o})),n=n.map((e,n)=>i.a.createElement(t,{key:n,groupId:this.props.groupId,groupRoom:e})),n}render(){if(null===this.state.rooms)return null;let e;Ni.a.isUserPrivileged(this.props.groupId)&&(e=i.a.createElement(g.a,{className:"mx_MemberList_invite mx_MemberList_addRoomToCommunity",onClick:this.onAddRoomToGroupButtonClick},i.a.createElement("span",null,Object(c.a)("Add rooms to this community"))));const t=i.a.createElement("input",{className:"mx_GroupRoomList_query mx_textinput",id:"mx_GroupRoomList_query",type:"text",onChange:this.onSearchQueryChanged,value:this.state.searchQuery,placeholder:Object(c.a)("Filter community rooms"),autoComplete:"off"}),n=u.getComponent("elements.TruncatedList");return i.a.createElement("div",{className:"mx_GroupRoomList",role:"tabpanel"},e,i.a.createElement(a.a,{className:"mx_GroupRoomList_joined mx_GroupRoomList_outerWrapper"},i.a.createElement(n,{className:"mx_GroupRoomList_wrapper",truncateAt:this.state.truncateAt,createOverflowElement:this._createOverflowTile},this.makeGroupRoomTiles(this.state.searchQuery))),t)}}R()(oh,"propTypes",{groupId:Se.a.string.isRequired});class rh extends i.a.Component{constructor(...e){super(...e),R()(this,"onClick",e=>{d.a.dispatch({action:"view_group_room",groupId:this.props.groupId,groupRoomId:this.props.groupRoom.roomId})})}render(){const e=u.getComponent("avatars.BaseAvatar"),t=u.getComponent("elements.AccessibleButton"),n=this.context.mxcUrlToHttp(this.props.groupRoom.avatarUrl,36,36,"crop"),o=i.a.createElement(e,{name:this.props.groupRoom.displayname,width:36,height:36,url:n});return i.a.createElement(t,{className:"mx_GroupRoomTile",onClick:this.onClick},i.a.createElement("div",{className:"mx_GroupRoomTile_avatar"},o),i.a.createElement("div",{className:"mx_GroupRoomTile_name"},this.props.groupRoom.displayname))}}R()(rh,"propTypes",{groupId:Se.a.string.isRequired,groupRoom:qi.b.isRequired}),R()(rh,"contextType",b.a);var ih=rh;function ah(){}class sh extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{profile:null}),R()(this,"onMouseDown",e=>{e.preventDefault(),d.a.dispatch({action:"view_group",group_id:this.props.groupId})})}componentDidMount(){an.a.getGroupProfileCached(this.context,this.props.groupId).then(e=>{this.setState({profile:e})}).catch(e=>{console.error("Error whilst getting cached profile for GroupTile",e)})}render(){const e=u.getComponent("avatars.BaseAvatar"),t=u.getComponent("elements.AccessibleButton"),n=this.state.profile||{},o=n.name||this.props.groupId,r=this.props.avatarHeight,a=this.props.showDescription?i.a.createElement("div",{className:"mx_GroupTile_desc"},n.shortDescription):i.a.createElement("div",null),s=n.avatarUrl?this.context.mxcUrlToHttp(n.avatarUrl,r,r,"crop"):null;let c=i.a.createElement("div",{className:"mx_GroupTile_avatar"},i.a.createElement(e,{name:o,idName:this.props.groupId,url:s,width:r,height:r}));if(this.props.draggable){const e=c;c=i.a.createElement(N.Droppable,{droppableId:"my-groups-droppable",type:"draggable-TagTile"},(t,n)=>i.a.createElement("div",{ref:t.innerRef},i.a.createElement(N.Draggable,{key:"GroupTile "+this.props.groupId,draggableId:"GroupTile "+this.props.groupId,index:this.props.groupId,type:"draggable-TagTile"},(t,n)=>i.a.createElement("div",null,i.a.createElement("div",Z()({ref:t.innerRef},t.draggableProps,t.dragHandleProps),e),t.placeholder?e:i.a.createElement("div",null)))))}return i.a.createElement(t,{className:"mx_GroupTile",onMouseDown:this.onMouseDown,onClick:ah},c,i.a.createElement("div",{className:"mx_GroupTile_profile"},i.a.createElement("div",{className:"mx_GroupTile_name"},o),a,i.a.createElement("div",{className:"mx_GroupTile_groupId"},this.props.groupId)))}}R()(sh,"propTypes",{groupId:Se.a.string.isRequired,showDescription:Se.a.bool,avatarHeight:Se.a.number,draggable:Se.a.bool}),R()(sh,"contextType",b.a),R()(sh,"defaultProps",{showDescription:!0,avatarHeight:50,draggable:!0});var ch=sh;class lh extends i.a.Component{getLabel(){const e=new Date(this.props.ts),t=new Date,n=new Date,o=[Object(c.a)("Sunday"),Object(c.a)("Monday"),Object(c.a)("Tuesday"),Object(c.a)("Wednesday"),Object(c.a)("Thursday"),Object(c.a)("Friday"),Object(c.a)("Saturday")];return n.setDate(t.getDate()-1),e.toDateString()===t.toDateString()?Object(c.a)("Today"):e.toDateString()===n.toDateString()?Object(c.a)("Yesterday"):t.getTime()-e.getTime()<5184e5?o[e.getDay()]:Object(Vc.c)(e)}render(){return i.a.createElement("h2",{className:"mx_DateSeparator",role:"separator",tabIndex:-1},i.a.createElement("hr",{role:"none"}),i.a.createElement("div",null,this.getLabel()),i.a.createElement("hr",{role:"none"}))}}R()(lh,"propTypes",{ts:Se.a.number.isRequired});var uh=n(1592),dh=n.n(uh),hh=n(1593);const ph=function(){let e=null;return function(t){return e||(e=document.createElement("textarea")),e.innerHTML=t,e.value}}();function mh(e){const t={stripReplyFallback:!0,returnString:!0};return"org.matrix.custom.html"===e.format?Object(ga.b)(e,null,t):function(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}(Object(ga.b)(e,null,t))}function gh(e){const t=document.createElement(Object(ga.c)(e)?"div":"span");return t.className="mx_EditHistoryMessage_insertion",t.appendChild(e),t}function fh(e){const t=document.createElement(Object(ga.c)(e)?"div":"span");return t.className="mx_EditHistoryMessage_deletion",t.appendChild(e),t}function _h(e){if("#text"===e.nodeName)return yh(e.data);{const t=document.createElement(e.nodeName);if(e.attributes)for(const[n,o]of Object.entries(e.attributes))t.setAttribute(n,o);if(e.childNodes)for(const n of e.childNodes)t.appendChild(_h(n));return t}}function bh(e,t,n){t?e.insertBefore(n,t):e.appendChild(n)}function vh(e,t){for(let n=0;n<e.length-1;++n)if(e[n]!==t[n])return!1;const n=e.length-1;return t[n]>=e[n]}function Eh(e,t){if("removeTextElement"===e.action||"removeElement"===e.action){const n=1;for(const o of t)vh(e.route,o.route)&&(o.route[e.route.length-1]+=n)}}function yh(e){return document.createTextNode(ph(e))}function Sh(e,t,n){const{refNode:o,refParentNode:r}=function(e,t,n){let o,r=e;const i=n?t.length-1:t.length;for(let e=0;e<i;++e)o=r,r=r.childNodes[t[e]];return{refNode:r,refParentNode:o}}(e,t.route);switch(t.action){case"replaceElement":{const e=document.createElement("span"),n=fh(_h(t.oldValue)),r=gh(_h(t.newValue));e.appendChild(n),e.appendChild(r),o.parentNode.replaceChild(e,o);break}case"removeTextElement":{const e=fh(yh(t.value));o.parentNode.replaceChild(e,o);break}case"removeElement":{const e=fh(_h(t.element));o.parentNode.replaceChild(e,o);break}case"modifyTextElement":{const e=n.diff_main(t.oldValue,t.newValue);n.diff_cleanupSemantic(e);const r=document.createElement("span");for(const[t,n]of e){let e=yh(n);t<0?e=fh(e):t>0&&(e=gh(e)),r.appendChild(e)}o.parentNode.replaceChild(r,o);break}case"addElement":bh(r,o,gh(_h(t.element)));break;case"addTextElement":bh(r,o,gh(yh("\n"!==t.value?t.value:"")));break;case"removeAttribute":case"addAttribute":case"modifyAttribute":{const e=fh(o.cloneNode(!0)),n=o.cloneNode(!0);"addAttribute"===t.action||"modifyAttribute"===t.action?n.setAttribute(t.name,t.newValue):n.removeAttribute(t.name);const r=gh(n),i=document.createElement(Object(ga.c)(o)?"div":"span");i.appendChild(e),i.appendChild(r),o.parentNode.replaceChild(i,o);break}default:console.warn("MessageDiffUtils::editBodyDiffToHtml: diff action not supported atm",t)}}function Th(e,t){return e.length===t.length&&!e.some((e,n)=>e!==t[n])}function wh(e,t){const n=`<div>${mh(e)}</div>`,o=`<div>${mh(t)}</div>`,r=function(e){const t=e.slice();for(let e=0;e<t.length;++e){const n=t[e];if("removeTextElement"===n.action){const o=t[e+1];o&&"addTextElement"===o.action&&o.text===n.text&&Th(o.route,n.route)&&t.splice(e,2)}}return t}((new hh.DiffDOM).diff(n,o)),a=new dh.a,s=(new DOMParser).parseFromString(n,"text/html").body.children[0];for(let e=0;e<r.length;++e){const t=r[e];Sh(s,t,a),Eh(t,r.slice(e+1))}const c=s.innerHTML,l=M()({mx_EventTile_body:!0,"markdown-body":!0});return i.a.createElement("span",{key:"body",className:l,dangerouslySetInnerHTML:{__html:c},dir:"auto"})}var Ch=n(791);function xh(e){const t=e.getOriginalContent();return t["m.new_content"]||t}class Oh extends i.a.PureComponent{constructor(e){super(e),R()(this,"_onAssociatedStatusChanged",()=>{this.setState({sendStatus:this.props.mxEvent.getAssociatedStatus()})}),R()(this,"_onRedactClick",async()=>{const e=this.props.mxEvent,t=X.a.get(),n=u.getComponent("dialogs.ConfirmAndWaitRedactDialog");Ie.a.createTrackedDialog("Confirm Redact Dialog","Edit history",n,{redact:()=>t.redactEvent(e.getRoomId(),e.getId())},"mx_Dialog_confirmredact")}),R()(this,"_onViewSourceClick",()=>{const e=u.getComponent("structures.ViewSource");Ie.a.createTrackedDialog("View Event Source","Edit history",e,{roomId:this.props.mxEvent.getRoomId(),eventId:this.props.mxEvent.getId(),content:this.props.mxEvent.event},"mx_Dialog_viewsource")});const t=X.a.get(),{userId:n}=t.credentials,o=this.props.mxEvent,i=t.getRoom(o.getRoomId());o.localRedactionEvent()&&o.localRedactionEvent().on("status",this._onAssociatedStatusChanged);const a=i.currentState.maySendRedactionForEvent(o,n);this.state={canRedact:a,sendStatus:o.getAssociatedStatus()},this._content=Object(r.createRef)(),this._pills=[]}pillifyLinks(){this._content.current&&Object(Ch.a)(this._content.current.children,this.props.mxEvent,this._pills)}componentDidMount(){this.pillifyLinks()}componentWillUnmount(){Object(Ch.b)(this._pills);const e=this.props.mxEvent;e.localRedactionEvent()&&e.localRedactionEvent().off("status",this._onAssociatedStatusChanged)}componentDidUpdate(){this.pillifyLinks()}_renderActionBar(){const e=u.getComponent("elements.AccessibleButton");let t;this.props.mxEvent.isRedacted()||this.props.isBaseEvent||!this.state.canRedact||(t=i.a.createElement(e,{onClick:this._onRedactClick},Object(c.a)("Remove")));const n=i.a.createElement(e,{onClick:this._onViewSourceClick},Object(c.a)("View Source"));return i.a.createElement("div",{className:"mx_MessageActionBar"},t,n)}render(){const{mxEvent:e}=this.props,t=xh(e);let n;if(e.isRedacted())n=i.a.createElement(si.a,{mxEvent:this.props.mxEvent});else{let o;if(o=this.props.previousEdit?wh(xh(this.props.previousEdit),t):ga.b(t,null,{stripReplyFallback:!0}),"m.emote"===e.getContent().msgtype){const t=e.sender?e.sender.name:e.getSender();n=i.a.createElement("div",{className:"mx_EventTile_content",ref:this._content},"* ",i.a.createElement("span",{className:"mx_MEmoteBody_sender"},t)," ",o)}else n=i.a.createElement("div",{className:"mx_EventTile_content",ref:this._content},o)}const o=Object(Vc.d)(new Date(e.getTs()),this.props.isTwelveHour),r=-1!==["sending","queued","encrypting"].indexOf(this.state.sendStatus),a=M()({mx_EventTile:!0,mx_EventTile_sending:r,mx_EventTile_notSent:"not_sent"===this.state.sendStatus});return i.a.createElement("li",null,i.a.createElement("div",{className:a},i.a.createElement("div",{className:"mx_EventTile_line"},i.a.createElement("span",{className:"mx_MessageTimestamp"},o),n,this._renderActionBar())))}}R()(Oh,"propTypes",{mxEvent:Se.a.instanceOf(Pe.j).isRequired,previousEdit:Se.a.instanceOf(Pe.j),isBaseEvent:Se.a.bool});class kh extends i.a.Component{constructor(e){super(e),this.state={playing:!1,decryptedUrl:null,decryptedBlob:null,error:null}}onPlayToggle(){this.setState({playing:!this.state.playing})}_getContentUrl(){const e=this.props.mxEvent.getContent();return void 0!==e.file?this.state.decryptedUrl:X.a.get().mxcUrlToHttp(e.url)}componentDidMount(){const e=this.props.mxEvent.getContent();if(void 0!==e.file&&null===this.state.decryptedUrl){let t;Xr(e.file).then((function(e){return t=e,URL.createObjectURL(t)})).then(e=>{this.setState({decryptedUrl:e,decryptedBlob:t})},e=>{console.warn("Unable to decrypt attachment: ",e),this.setState({error:e})})}}componentWillUnmount(){this.state.decryptedUrl&&URL.revokeObjectURL(this.state.decryptedUrl)}render(){const e=this.props.mxEvent.getContent();if(null!==this.state.error)return i.a.createElement("span",{className:"mx_MAudioBody"},i.a.createElement("img",{src:n(255),width:"16",height:"16"}),Object(c.a)("Error decrypting audio"));if(void 0!==e.file&&null===this.state.decryptedUrl)return i.a.createElement("span",{className:"mx_MAudioBody"},i.a.createElement(jt.a,null));const t=this._getContentUrl();return i.a.createElement("span",{className:"mx_MAudioBody"},i.a.createElement("audio",{src:t,controls:!0}),i.a.createElement(ii,Z()({},this.props,{decryptedBlob:this.state.decryptedBlob})))}}class Rh extends i.a.Component{constructor(e){super(e),this.onImageError=this.onImageError.bind(this),this.onImageLoad=this.onImageLoad.bind(this),this.onImageEnter=this.onImageEnter.bind(this),this.onImageLeave=this.onImageLeave.bind(this),this.onClientSync=this.onClientSync.bind(this),this.onClick=this.onClick.bind(this),this._isGif=this._isGif.bind(this),this.state={decryptedUrl:null,decryptedThumbnailUrl:null,decryptedBlob:null,error:null,imgError:!1,imgLoaded:!1,loadedImageDimensions:null,hover:!1,showImage:P.a.getValue("showImages")},this._image=Object(r.createRef)()}onClientSync(e,t){if(this.unmounted)return;"ERROR"!==e&&t!==e&&this.state.imgError&&this.setState({imgError:!1})}showImage(){localStorage.setItem("mx_ShowImage_"+this.props.mxEvent.getId(),"true"),this.setState({showImage:!0}),this._downloadImage()}onClick(e){if(0===e.button&&!e.metaKey){if(e.preventDefault(),!this.state.showImage)return void this.showImage();const t=this.props.mxEvent.getContent(),n=this._getContentUrl(),o=u.getComponent("elements.ImageView"),r={src:n,name:t.body&&t.body.length>0?t.body:Object(c.a)("Attachment"),mxEvent:this.props.mxEvent};t.info&&(r.width=t.info.w,r.height=t.info.h,r.fileSize=t.info.size),Ie.a.createDialog(o,r,"mx_Dialog_lightbox")}}_isGif(){const e=this.props.mxEvent.getContent();return e&&e.info&&"image/gif"===e.info.mimetype}onImageEnter(e){if(this.setState({hover:!0}),!this.state.showImage||!this._isGif()||P.a.getValue("autoplayGifsAndVideos"))return;e.target.src=this._getContentUrl()}onImageLeave(e){if(this.setState({hover:!1}),!this.state.showImage||!this._isGif()||P.a.getValue("autoplayGifsAndVideos"))return;e.target.src=this._getThumbUrl()}onImageError(){this.setState({imgError:!0})}onImageLoad(){let e;if(this.props.onHeightChanged(),this._image.current){const{naturalWidth:t,naturalHeight:n}=this._image.current;e={naturalWidth:t,naturalHeight:n}}this.setState({imgLoaded:!0,loadedImageDimensions:e})}_getContentUrl(){const e=this.props.mxEvent.getContent();return void 0!==e.file?this.state.decryptedUrl:this.context.mxcUrlToHttp(e.url)}_getThumbUrl(){const e=window.devicePixelRatio,t=Math.round(800*e),n=Math.round(600*e),o=this.props.mxEvent.getContent();if(void 0!==o.file)return this.state.decryptedThumbnailUrl?this.state.decryptedThumbnailUrl:this.state.decryptedUrl;if(o.info&&"image/svg+xml"===o.info.mimetype&&o.info.thumbnail_url)return this.context.mxcUrlToHttp(o.info.thumbnail_url,t,n);{const r=o.info;if(!this._isGif()&&1!==e&&r&&r.w&&r.h&&r.size){const e=r.w>t||r.h>n;return r.size>1048576&&e?this.context.mxcUrlToHttp(o.url,t,n):this.context.mxcUrlToHttp(o.url)}return this.context.mxcUrlToHttp(o.url,t,n)}}_downloadImage(){const e=this.props.mxEvent.getContent();if(void 0!==e.file&&null===this.state.decryptedUrl){let t,n=Promise.resolve(null);e.info&&e.info.thumbnail_file&&(n=Xr(e.info.thumbnail_file).then((function(e){return URL.createObjectURL(e)}))),n.then(n=>Xr(e.file).then((function(e){return t=e,URL.createObjectURL(e)})).then(e=>{this.unmounted||this.setState({decryptedUrl:e,decryptedThumbnailUrl:n,decryptedBlob:t})})).catch(e=>{this.unmounted||(console.warn("Unable to decrypt attachment: ",e),this.setState({error:e}))})}}componentDidMount(){this.unmounted=!1,this.context.on("sync",this.onClientSync);(this.state.showImage||"true"===localStorage.getItem("mx_ShowImage_"+this.props.mxEvent.getId()))&&(this._downloadImage(),this.setState({showImage:!0})),this._afterComponentDidMount()}_afterComponentDidMount(){}componentWillUnmount(){this.unmounted=!0,this.context.removeListener("sync",this.onClientSync),this._afterComponentWillUnmount(),this.state.decryptedUrl&&URL.revokeObjectURL(this.state.decryptedUrl),this.state.decryptedThumbnailUrl&&URL.revokeObjectURL(this.state.decryptedThumbnailUrl)}_afterComponentWillUnmount(){}_messageContent(e,t,n){let o,r;if(n&&n.info&&n.info.w&&n.info.h)o=n.info.w,r=n.info.h;else{if(!this.state.loadedImageDimensions){let o;return o=this.state.showImage?i.a.createElement("img",{style:{display:"none"},src:t,ref:this._image,alt:n.body,onError:this.onImageError,onLoad:this.onImageLoad}):i.a.createElement(Ah,null),this.wrapImage(e,o)}o=this.state.loadedImageDimensions.naturalWidth,r=this.state.loadedImageDimensions.naturalHeight}const a=Math.min(this.props.maxImageHeight||600,r),s=o*a/r;let c=null,l=null,u=null;void 0!==n.file&&null===this.state.decryptedUrl?l=i.a.createElement(jt.a,{w:32,h:32}):this.state.imgLoaded||(l=this.getPlaceholder());let d=Boolean(l);t&&!this.state.imgError&&(c=i.a.createElement("img",{className:"mx_MImageBody_thumbnail",src:t,ref:this._image,style:{maxWidth:s+"px"},alt:n.body,onError:this.onImageError,onLoad:this.onImageLoad,onMouseEnter:this.onImageEnter,onMouseLeave:this.onImageLeave})),this.state.showImage||(c=i.a.createElement(Ah,{style:{maxWidth:s+"px"}}),d=!1),!this._isGif()||P.a.getValue("autoplayGifsAndVideos")||this.state.hover||(u=i.a.createElement("p",{className:"mx_MImageBody_gifLabel"},"GIF"));const h=i.a.createElement("div",{className:"mx_MImageBody_thumbnail_container",style:{maxHeight:a+"px"}},i.a.createElement("div",{style:{paddingBottom:100*r/o+"%"}}),d&&i.a.createElement("div",{className:"mx_MImageBody_thumbnail",style:{maxWidth:o+"px"}},i.a.createElement("div",{className:"mx_MImageBody_thumbnail_spinner"},l)),i.a.createElement("div",{style:{display:d?"none":void 0}},c,u),this.state.hover&&this.getTooltip());return this.wrapImage(e,h)}wrapImage(e,t){return i.a.createElement("a",{href:e,onClick:this.onClick},t)}getPlaceholder(){return null}getTooltip(){return null}getFileBody(){return i.a.createElement(ii,Z()({},this.props,{decryptedBlob:this.state.decryptedBlob}))}render(){const e=this.props.mxEvent.getContent();if(null!==this.state.error)return i.a.createElement("span",{className:"mx_MImageBody"},i.a.createElement("img",{src:n(255),width:"16",height:"16"}),Object(c.a)("Error decrypting image"));const t=this._getContentUrl();let o;o=this._isGif()&&P.a.getValue("autoplayGifsAndVideos")?t:this._getThumbUrl();const r=this._messageContent(t,o,e),a=this.getFileBody();return i.a.createElement("span",{className:"mx_MImageBody"},r,a)}}R()(Rh,"propTypes",{mxEvent:Se.a.object.isRequired,onHeightChanged:Se.a.func.isRequired,maxImageHeight:Se.a.number}),R()(Rh,"contextType",b.a);class Ah extends i.a.PureComponent{render(){let e="mx_HiddenImagePlaceholder";return this.props.hover&&(e+=" mx_HiddenImagePlaceholder_hover"),i.a.createElement("div",{className:e},i.a.createElement("div",{className:"mx_HiddenImagePlaceholder_button"},i.a.createElement("span",{className:"mx_HiddenImagePlaceholder_eye"}),i.a.createElement("span",null,Object(c.a)("Show image"))))}}R()(Ah,"propTypes",{hover:Se.a.bool});class Ih extends i.a.Component{constructor(e){super(e),R()(this,"_onRequestChanged",()=>{this.forceUpdate()}),R()(this,"_onTrustChanged",(e,t)=>{const{mxEvent:n}=this.props,o=n.verificationRequest;o&&o.otherUserId===e&&this.forceUpdate()})}componentDidMount(){const e=this.props.mxEvent.verificationRequest;e&&e.on("change",this._onRequestChanged),X.a.get().on("userTrustStatusChanged",this._onTrustChanged)}componentWillUnmount(){const e=this.props.mxEvent.verificationRequest;e&&e.off("change",this._onRequestChanged);const t=X.a.get();t&&t.removeListener("userTrustStatusChanged",this._onTrustChanged)}_shouldRender(e,t){return!!t&&(!("m.key.verification.cancel"===e.getType()&&!t.cancelled)&&(!("m.key.verification.done"===e.getType()&&!t.done)&&(!t.pending&&!!X.a.get().checkUserTrust(t.otherUserId).isCrossSigningVerified())))}render(){const{mxEvent:e}=this.props,t=e.verificationRequest;if(!this._shouldRender(e,t))return null;const n=X.a.get().getUserId();let o;if(t.done)o=Object(c.a)("You verified %(name)s",{name:_c(t.otherUserId,e)});else if(t.cancelled){const r=t.cancellingUserId;o=r===n?Object(c.a)("You cancelled verifying %(name)s",{name:_c(t.otherUserId,e)}):Object(c.a)("%(name)s cancelled verifying",{name:_c(r,e)})}if(o){const n=M()("mx_cryptoEvent mx_cryptoEvent_icon",{mx_cryptoEvent_icon_verified:t.done});return i.a.createElement(Gr,{className:n,title:o,subtitle:bc(t.otherUserId,e.getRoomId())})}return null}}Ih.propTypes={mxEvent:Se.a.object.isRequired};class Dh extends i.a.Component{constructor(e){super(e),R()(this,"_openRequest",()=>{const{verificationRequest:e}=this.props.mxEvent,t=X.a.get().getUser(e.otherUserId);d.a.dispatch({action:h.a.SetRightPanelPhase,phase:on.b.EncryptionPanel,refireParams:{verificationRequest:e,member:t}})}),R()(this,"_onRequestChanged",()=>{this.forceUpdate()}),R()(this,"_onAcceptClicked",async()=>{const e=this.props.mxEvent.verificationRequest;if(e)try{this._openRequest(),await e.accept()}catch(e){console.error(e.message)}}),R()(this,"_onRejectClicked",async()=>{const e=this.props.mxEvent.verificationRequest;if(e)try{await e.cancel()}catch(e){console.error(e.message)}}),this.state={}}componentDidMount(){const e=this.props.mxEvent.verificationRequest;e&&e.on("change",this._onRequestChanged)}componentWillUnmount(){const e=this.props.mxEvent.verificationRequest;e&&e.off("change",this._onRequestChanged)}_acceptedLabel(e){return e===X.a.get().getUserId()?Object(c.a)("You accepted"):Object(c.a)("%(name)s accepted",{name:_c(e,this.props.mxEvent.getRoomId())})}_cancelledLabel(e){const t=X.a.get().getUserId(),{cancellationCode:n}=this.props.mxEvent.verificationRequest,o="m.user"===n;return e===t?o?Object(c.a)("You declined"):Object(c.a)("You cancelled"):o?Object(c.a)("%(name)s declined",{name:_c(e,this.props.mxEvent.getRoomId())}):Object(c.a)("%(name)s cancelled",{name:_c(e,this.props.mxEvent.getRoomId())})}render(){const e=u.getComponent("elements.AccessibleButton"),t=u.getComponent("elements.FormButton"),{mxEvent:n}=this.props,o=n.verificationRequest;if(!o||o.invalid)return null;let r,a,s;if(!o.canAccept){let t;o.ready||o.started||o.done?t=i.a.createElement(e,{onClick:this._openRequest},this._acceptedLabel(o.receivingUserId)):o.cancelled?t=this._cancelledLabel(o.cancellingUserId):o.accepting?t=Object(c.a)("Accepting …"):o.declining&&(t=Object(c.a)("Declining …")),s=i.a.createElement("div",{className:"mx_cryptoEvent_state"},t)}if(o.initiatedByMe)r=Object(c.a)("You sent a verification request"),a=bc(o.receivingUserId,n.getRoomId());else{const e=_c(o.requestingUserId,n.getRoomId());r=Object(c.a)("%(name)s wants to verify",{name:e}),a=bc(o.requestingUserId,n.getRoomId()),o.canAccept&&(s=i.a.createElement("div",{className:"mx_cryptoEvent_buttons"},i.a.createElement(t,{kind:"danger",onClick:this._onRejectClicked,label:Object(c.a)("Decline")}),i.a.createElement(t,{onClick:this._onAcceptClicked,label:Object(c.a)("Accept")})))}return r?i.a.createElement(Gr,{className:"mx_cryptoEvent mx_cryptoEvent_icon",title:r,subtitle:a},s):null}}Dh.propTypes={mxEvent:Se.a.object.isRequired};class Nh extends Rh{onClick(e){e.preventDefault(),this.state.showImage||this.showImage()}wrapImage(e,t){let n=null;return this.state.showImage||(n=this.onClick),i.a.createElement("div",{className:"mx_MStickerBody_wrapper",onClick:n}," ",t," ")}getPlaceholder(){const e=u.getComponent("elements.TintableSvg");return i.a.createElement(e,{src:n(1594),width:"75",height:"75"})}getTooltip(){const e=this.props.mxEvent&&this.props.mxEvent.getContent();if(!(e&&e.body&&e.info&&e.info.w))return null;const t=u.getComponent("elements.Tooltip");return i.a.createElement("div",{style:{left:e.info.w+"px"},className:"mx_MStickerBody_tooltip"},i.a.createElement(t,{label:e.body}))}getFileBody(){return null}}var Fh=n(227);const Mh=({mxEvent:e,getTile:t,getReplyThread:n,permalinkCreator:a,onFocusChange:s})=>{const[l,d,h,p]=Object(o.o)(),[m,g,f]=Object(K.e)(d);let _;if(Object(r.useEffect)(()=>{s(l)},[s,l]),l){const r=u.getComponent("context_menus.MessageContextMenu"),s=t&&t(),c=n&&n(),l=d.current.getBoundingClientRect();_=i.a.createElement(o.b,Z()({},Object(o.k)(l),{onFinished:p}),i.a.createElement(r,{mxEvent:e,permalinkCreator:a,eventTileOps:s&&s.getEventTileOps?s.getEventTileOps():void 0,collapseReplyThread:c&&c.canCollapse()?c.collapse:void 0,onFinished:p}))}return i.a.createElement(i.a.Fragment,null,i.a.createElement(o.d,{className:"mx_MessageActionBar_maskButton mx_MessageActionBar_optionsButton",title:Object(c.a)("Options"),onClick:h,isExpanded:l,inputRef:f,onFocus:m,tabIndex:g?0:-1}),_)},Ph=({mxEvent:e,reactions:t,onFocusChange:n})=>{const[a,s,l,d]=Object(o.o)(),[h,p,m]=Object(K.e)(s);let g;if(Object(r.useEffect)(()=>{n(a)},[n,a]),a){const n=s.current.getBoundingClientRect(),r=u.getComponent("emojipicker.ReactionPicker");g=i.a.createElement(o.b,Z()({},Object(o.k)(n),{onFinished:d,managed:!1}),i.a.createElement(r,{mxEvent:e,reactions:t,onFinished:d}))}return i.a.createElement(i.a.Fragment,null,i.a.createElement(o.d,{className:"mx_MessageActionBar_maskButton mx_MessageActionBar_reactButton",title:Object(c.a)("React"),onClick:l,isExpanded:a,inputRef:m,onFocus:h,tabIndex:p?0:-1}),g)};class Lh extends i.a.PureComponent{constructor(...e){super(...e),R()(this,"onDecrypted",()=>{this.forceUpdate()}),R()(this,"onBeforeRedaction",()=>{this.forceUpdate()}),R()(this,"onSent",()=>{this.forceUpdate()}),R()(this,"onFocusChange",e=>{this.props.onFocusChange&&this.props.onFocusChange(e)}),R()(this,"onReplyClick",e=>{d.a.dispatch({action:"reply_to_event",event:this.props.mxEvent})}),R()(this,"onEditClick",e=>{d.a.dispatch({action:"edit_event",event:this.props.mxEvent})})}componentDidMount(){this.props.mxEvent.status&&this.props.mxEvent.status!==Pe.b.SENT&&this.props.mxEvent.on("Event.status",this.onSent),this.props.mxEvent.isBeingDecrypted()&&this.props.mxEvent.once("Event.decrypted",this.onDecrypted),this.props.mxEvent.on("Event.beforeRedaction",this.onBeforeRedaction)}componentWillUnmount(){this.props.mxEvent.off("Event.status",this.onSent),this.props.mxEvent.off("Event.decrypted",this.onDecrypted),this.props.mxEvent.off("Event.beforeRedaction",this.onBeforeRedaction)}render(){let e,t,n;return Xl(this.props.mxEvent)&&(this.context.canReact&&(e=i.a.createElement(Ph,{mxEvent:this.props.mxEvent,reactions:this.props.reactions,onFocusChange:this.onFocusChange})),this.context.canReply&&(t=i.a.createElement(K.b,{className:"mx_MessageActionBar_maskButton mx_MessageActionBar_replyButton",title:Object(c.a)("Reply"),onClick:this.onReplyClick}))),Jl(this.props.mxEvent)&&(n=i.a.createElement(K.b,{className:"mx_MessageActionBar_maskButton mx_MessageActionBar_editButton",title:Object(c.a)("Edit"),onClick:this.onEditClick})),i.a.createElement(fn,{className:"mx_MessageActionBar","aria-label":Object(c.a)("Message Actions"),"aria-live":"off"},e,t,n,i.a.createElement(Mh,{mxEvent:this.props.mxEvent,getReplyThread:this.props.getReplyThread,getTile:this.props.getTile,permalinkCreator:this.props.permalinkCreator,onFocusChange:this.onFocusChange}))}}R()(Lh,"propTypes",{mxEvent:Se.a.object.isRequired,reactions:Se.a.object,permalinkCreator:Se.a.object,getTile:Se.a.func,getReplyThread:Se.a.func,onFocusChange:Se.a.func}),R()(Lh,"contextType",Fh.a);var Uh=n(770);class Bh extends i.a.Component{render(){const e=new Date(this.props.ts);return i.a.createElement("span",{className:"mx_MessageTimestamp",title:Object(Vc.b)(e,this.props.showTwelveHour),"aria-hidden":!0},Object(Vc.d)(e,this.props.showTwelveHour))}}R()(Bh,"propTypes",{ts:Se.a.number.isRequired,showTwelveHour:Se.a.bool});class jh extends i.a.Component{constructor(){super(),R()(this,"_onAllowClick",e=>{e.preventDefault(),e.stopPropagation();const t=`mx_mjolnir_render_${this.props.mxEvent.getRoomId()}__${this.props.mxEvent.getId()}`;localStorage.setItem(t,"true"),this.props.onMessageAllowed()})}render(){return i.a.createElement("div",{className:"mx_MjolnirBody"},i.a.createElement("i",null,Object(c.a)("You have ignored this user, so their message is hidden. <a>Show anyways.</a>",{},{a:e=>i.a.createElement("a",{href:"#",onClick:this._onAllowClick},e)})))}}R()(jh,"propTypes",{mxEvent:Se.a.object.isRequired,onMessageAllowed:Se.a.func.isRequired});class Gh extends i.a.PureComponent{constructor(e){super(e),R()(this,"onReactionsChange",()=>{this.setState({myReactions:this.getMyReactions()}),this.forceUpdate()}),R()(this,"onShowAllClick",()=>{this.setState({showAll:!0})}),e.reactions&&(e.reactions.on("Relations.add",this.onReactionsChange),e.reactions.on("Relations.remove",this.onReactionsChange),e.reactions.on("Relations.redaction",this.onReactionsChange)),this.state={myReactions:this.getMyReactions(),showAll:!1}}componentDidUpdate(e){e.reactions!==this.props.reactions&&(this.props.reactions.on("Relations.add",this.onReactionsChange),this.props.reactions.on("Relations.remove",this.onReactionsChange),this.props.reactions.on("Relations.redaction",this.onReactionsChange),this.onReactionsChange())}componentWillUnmount(){this.props.reactions&&(this.props.reactions.removeListener("Relations.add",this.onReactionsChange),this.props.reactions.removeListener("Relations.remove",this.onReactionsChange),this.props.reactions.removeListener("Relations.redaction",this.onReactionsChange))}getMyReactions(){const e=this.props.reactions;if(!e)return null;const t=X.a.get().getUserId(),n=e.getAnnotationsBySender()[t];return n?[...n.values()]:null}render(){const{mxEvent:e,reactions:t}=this.props,{myReactions:n,showAll:o}=this.state;if(!t||!Xl(e))return null;const r=u.getComponent("messages.ReactionsRowButton");let a,s=t.getSortedAnnotationsByKey().map(([t,o])=>{const a=o.size;if(!a)return null;const s=n&&n.find(e=>!e.isRedacted()&&e.getRelation().key===t);return i.a.createElement(r,{key:t,content:t,count:a,mxEvent:e,reactionEvents:o,myReactionEvent:s})}).filter(e=>!!e);return s.length>9&&!o&&(s=s.slice(0,8),a=i.a.createElement("a",{className:"mx_ReactionsRow_showAll",href:"#",onClick:this.onShowAllClick},Object(c.a)("Show all"))),i.a.createElement("div",{className:"mx_ReactionsRow",role:"toolbar","aria-label":Object(c.a)("Reactions")},s,a)}}R()(Gh,"propTypes",{mxEvent:Se.a.object.isRequired,reactions:Se.a.object});class qh extends i.a.PureComponent{constructor(e){super(e),R()(this,"onClick",e=>{const{mxEvent:t,myReactionEvent:n,content:o}=this.props;n?X.a.get().redactEvent(t.getRoomId(),n.getId()):(X.a.get().sendEvent(t.getRoomId(),"m.reaction",{"m.relates_to":{rel_type:"m.annotation",event_id:t.getId(),key:o}}),d.a.dispatch({action:"message_sent"}))}),R()(this,"onMouseOver",()=>{this.setState({tooltipRendered:!0,tooltipVisible:!0})}),R()(this,"onMouseLeave",()=>{this.setState({tooltipVisible:!1})}),this.state={tooltipVisible:!1}}render(){const e=u.getComponent("messages.ReactionsRowButtonTooltip"),{mxEvent:t,content:n,count:o,reactionEvents:r,myReactionEvent:a}=this.props,s=M()({mx_ReactionsRowButton:!0,mx_ReactionsRowButton_selected:!!a});let l;this.state.tooltipRendered&&(l=i.a.createElement(e,{mxEvent:this.props.mxEvent,content:n,reactionEvents:r,visible:this.state.tooltipVisible}));const d=X.a.get().getRoom(t.getRoomId());let h;if(d){const e=[];for(const t of r){const n=d.getMember(t.getSender()),o=n?n.name:t.getSender();e.push(o)}h=Object(c.a)("<reactors/><reactedWith> reacted with %(content)s</reactedWith>",{content:n},{reactors:()=>Object(q.b)(e,6),reactedWith:e=>n?e:null})}const p=u.getComponent("elements.AccessibleButton");return i.a.createElement(p,{className:s,"aria-label":h,onClick:this.onClick,onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave},i.a.createElement("span",{className:"mx_ReactionsRowButton_content","aria-hidden":"true"},n),i.a.createElement("span",{className:"mx_ReactionsRowButton_count","aria-hidden":"true"},o),l)}}R()(qh,"propTypes",{mxEvent:Se.a.object.isRequired,content:Se.a.string.isRequired,count:Se.a.number.isRequired,reactionEvents:Se.a.object.isRequired,myReactionEvent:Se.a.object});class Hh extends i.a.PureComponent{render(){const e=u.getComponent("elements.Tooltip"),{content:t,reactionEvents:n,mxEvent:o,visible:r}=this.props,a=X.a.get().getRoom(o.getRoomId());let s,l;if(a){const e=[];for(const t of n){const n=a.getMember(t.getSender()),o=n?n.name:t.getSender();e.push(o)}const o=Object(ga.j)(t);s=i.a.createElement("div",null,Object(c.a)("<reactors/><reactedWith>reacted with %(shortName)s</reactedWith>",{shortName:o},{reactors:()=>i.a.createElement("div",{className:"mx_Tooltip_title"},Object(q.b)(e,6)),reactedWith:e=>o?i.a.createElement("div",{className:"mx_Tooltip_sub"},e):null}))}return s&&(l=i.a.createElement(e,{visible:r,label:s})),l}}R()(Hh,"propTypes",{mxEvent:Se.a.object.isRequired,content:Se.a.string.isRequired,reactionEvents:Se.a.object.isRequired,visible:Se.a.bool.isRequired});class Vh extends i.a.Component{constructor(...e){super(...e),R()(this,"onAvatarClick",()=>{const e=X.a.get(),t=this.props.mxEvent,n=e.mxcUrlToHttp(t.getContent().url),o=e.getRoom(this.props.mxEvent.getRoomId()),r=Object(c.a)("%(senderDisplayName)s changed the avatar for %(roomName)s",{senderDisplayName:t.sender&&t.sender.name?t.sender.name:t.getSender(),roomName:o?o.name:""}),i=u.getComponent("elements.ImageView"),a={src:n,name:r};Ie.a.createDialog(i,a,"mx_Dialog_lightbox")})}render(){const e=this.props.mxEvent,t=e.sender&&e.sender.name?e.sender.name:e.getSender(),n=u.getComponent("avatars.RoomAvatar");if(!e.getContent().url||0===e.getContent().url.trim().length)return i.a.createElement("div",{className:"mx_TextualEvent"},Object(c.a)("%(senderDisplayName)s removed the room avatar.",{senderDisplayName:t}));const o=X.a.get().getRoom(e.getRoomId()),r={avatarUrl:e.getContent().url,name:o?o.name:""};return i.a.createElement("div",{className:"mx_RoomAvatarEvent"},Object(c.a)("%(senderDisplayName)s changed the room avatar to <img/>",{senderDisplayName:t},{img:()=>i.a.createElement(g.a,{key:"avatar",className:"mx_RoomAvatarEvent_avatar",onClick:this.onAvatarClick},i.a.createElement(n,{width:14,height:14,oobData:r}))}))}}R()(Vh,"propTypes",{mxEvent:Se.a.object.isRequired});class zh extends i.a.Component{constructor(...e){super(...e),R()(this,"_onLinkClicked",e=>{e.preventDefault();const t=this.props.mxEvent.getContent().predecessor;d.a.dispatch({action:"view_room",event_id:t.event_id,highlighted:!0,room_id:t.room_id})})}render(){const e=this.props.mxEvent.getContent().predecessor;if(void 0===e)return i.a.createElement("div",null);const t=X.a.get().getRoom(e.room_id),n=new ya.a(t,e.room_id);n.load();const o=n.forEvent(e.event_id),r=i.a.createElement("a",{href:o,onClick:this._onLinkClicked},Object(c.a)("Click here to see older messages."));return i.a.createElement(Gr,{className:"mx_CreateEvent",title:Object(c.a)("This room is a continuation of another conversation."),subtitle:r})}}R()(zh,"propTypes",{mxEvent:Se.a.object.isRequired});class Kh extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{userGroups:null,relatedGroups:[]}),R()(this,"onRoomStateEvents",e=>{"m.room.related_groups"===e.getType()&&e.getRoomId()===this.props.mxEvent.getRoomId()&&this._updateRelatedGroups()})}componentDidMount(){this.unmounted=!1,this._updateRelatedGroups(),an.a.getPublicisedGroupsCached(this.context,this.props.mxEvent.getSender()).then(e=>{this.unmounted||this.setState({userGroups:e})}),this.context.on("RoomState.events",this.onRoomStateEvents)}componentWillUnmount(){this.unmounted=!0,this.context.removeListener("RoomState.events",this.onRoomStateEvents)}_updateRelatedGroups(){if(this.unmounted)return;const e=this.context.getRoom(this.props.mxEvent.getRoomId());if(!e)return;const t=e.currentState.getStateEvents("m.room.related_groups","");this.setState({relatedGroups:t&&t.getContent().groups||[]})}_getDisplayedGroups(e,t){let n=e||[];return n=t&&t.length>0?t.filter(e=>n.includes(e)):[],n}render(){const{mxEvent:e}=this.props,t=Object(q.f)(e.getSender()),n=e.sender?e.sender.name:e.getSender(),{msgtype:o}=e.getContent();if("m.emote"===o)return i.a.createElement("span",null);let r=i.a.createElement("div",null);if(this.props.enableFlair){const t=this._getDisplayedGroups(this.state.userGroups,this.state.relatedGroups);r=i.a.createElement(Ud,{key:"flair",userId:e.getSender(),groups:t})}const a=n||"",s=i.a.createElement("span",null,i.a.createElement("span",{className:"mx_SenderProfile_name "+t},a),r),l=this.props.text?i.a.createElement("span",null,i.a.createElement("span",{className:"mx_SenderProfile_aux"},Object(c.a)(this.props.text,{senderName:()=>a}))):s;return i.a.createElement("div",{className:"mx_SenderProfile",dir:"auto",onClick:this.props.onClick},i.a.createElement("div",{className:"mx_SenderProfile_hover"},l))}}R()(Kh,"propTypes",{mxEvent:Se.a.object.isRequired,text:Se.a.string,onClick:Se.a.func}),R()(Kh,"contextType",b.a);var Wh=n(1595);class Yh extends i.a.Component{render(){const e=zc.a(this.props.mxEvent);return null==e||0===e.length?null:i.a.createElement("div",{className:"mx_TextualEvent"},e)}}R()(Yh,"propTypes",{mxEvent:Se.a.object.isRequired});class $h extends i.a.Component{constructor(e){super(e),R()(this,"_onBugReport",()=>{const e=u.getComponent("dialogs.BugReportDialog");e&&Ie.a.createTrackedDialog("Bug Report Dialog","",e,{label:"react-soft-crash-tile"})}),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}render(){if(this.state.error){const{mxEvent:e}=this.props,t={mx_EventTile:!0,mx_EventTile_info:!0,mx_EventTile_content:!0,mx_EventTile_tileError:!0};let n;return l.a.get().bug_report_endpoint_url&&(n=i.a.createElement("a",{onClick:this._onBugReport,href:"#"},Object(c.a)("Submit logs"))),i.a.createElement("div",{className:M()(t)},i.a.createElement("div",{className:"mx_EventTile_line"},i.a.createElement("span",null,Object(c.a)("Can't load this message"),e&&` (${e.getType()})`,n)))}return this.props.children}}var Qh,Xh=n(771);class Jh extends i.a.PureComponent{constructor(e){super(e),R()(this,"onToggle",e=>{e.preventDefault();const{expanded:t}=this.state;this.setState({expanded:!t})}),this.state={expanded:!1}}componentDidMount(){const{mxEvent:e}=this.props;e.isBeingDecrypted()&&e.once("Event.decrypted",()=>this.forceUpdate())}render(){const{mxEvent:e}=this.props,{expanded:t}=this.state;let n;n=t?i.a.createElement("pre",null,JSON.stringify(e,null,4)):i.a.createElement("code",null,`{ "type": ${e.getType()} }`);const o=M()("mx_ViewSourceEvent mx_EventTile_content",{mx_ViewSourceEvent_expanded:t});return i.a.createElement("span",{className:o},n,i.a.createElement("a",{className:"mx_ViewSourceEvent_toggle",href:"#",onClick:this.onToggle}))}}R()(Jh,"propTypes",{mxEvent:Se.a.object.isRequired});let Zh=Object(fo.a)("views.room_settings.RoomPublishSetting")(Qh=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"onRoomPublishChange",e=>{const t=this.state.isRoomPublished,n=!t;this.setState({isRoomPublished:n});X.a.get().setRoomDirectoryVisibility(this.props.roomId,n?"public":"private").catch(()=>{this.setState({isRoomPublished:t})})}),this.state={isRoomPublished:!1}}componentDidMount(){X.a.get().getRoomDirectoryVisibility(this.props.roomId).then(e=>{this.setState({isRoomPublished:"public"===e.visibility})})}render(){const e=X.a.get();return i.a.createElement(Xe.a,{value:this.state.isRoomPublished,onChange:this.onRoomPublishChange,disabled:!this.props.canSetCanonicalAlias,label:Object(c.a)("Publish this room to the public in %(domain)s's room directory?",{domain:e.getDomain()})})}})||Qh;class ep extends Nd{constructor(e){super(e),R()(this,"_onAliasAdded",async()=>{await this._aliasField.current.validate({allowEmpty:!1}),this._aliasField.current.isValid?this.props.onItemAdded&&this.props.onItemAdded(this.props.newItem):(this._aliasField.current.focus(),this._aliasField.current.validate({allowEmpty:!1,focused:!0}))}),this._aliasField=Object(r.createRef)()}_renderNewItemField(){if(!this.props.domain)return super._renderNewItemField();const e=u.getComponent("views.elements.RoomAliasField");return i.a.createElement("form",{onSubmit:this._onAliasAdded,autoComplete:"off",noValidate:!0,className:"mx_EditableItemList_newItem"},i.a.createElement(e,{ref:this._aliasField,onChange:e=>this._onNewItemChanged({target:{value:e}}),value:this.props.newItem||"",domain:this.props.domain}),i.a.createElement(g.a,{onClick:this._onAliasAdded,kind:"primary"},Object(c.a)("Add")))}}class tp extends i.a.Component{constructor(e){super(e),R()(this,"onNewAliasChanged",e=>{this.setState({newAlias:e})}),R()(this,"onLocalAliasAdded",e=>{if(!e||0===e.length)return;const t=X.a.get().getDomain();e.includes(":")||(e+=":"+t),X.a.get().createAlias(e,this.props.roomId).then(()=>{this.setState({localAliases:this.state.localAliases.concat(e),newAlias:null}),this.state.canonicalAlias||this.changeCanonicalAlias(e)}).catch(e=>{console.error(e),Ie.a.createTrackedDialog("Error creating address","",De.a,{title:Object(c.a)("Error creating address"),description:Object(c.a)("There was an error creating that address. It may not be allowed by the server or a temporary failure occurred.")})})}),R()(this,"onLocalAliasDeleted",e=>{const t=this.state.localAliases[e];X.a.get().deleteAlias(t).then(()=>{const e=this.state.localAliases.filter(e=>e!==t);this.setState({localAliases:e}),this.state.canonicalAlias===t&&this.changeCanonicalAlias(null)}).catch(e=>{let t;console.error(e),t="M_FORBIDDEN"===e.errcode?Object(c.a)("You don't have permission to delete the address."):Object(c.a)("There was an error removing that address. It may no longer exist or a temporary error occurred."),Ie.a.createTrackedDialog("Error removing address","",De.a,{title:Object(c.a)("Error removing address"),description:t})})}),R()(this,"onLocalAliasesToggled",e=>{e.target.open&&(this.props.canSetCanonicalAlias||0!==this.state.localAliases.length||this.loadLocalAliases()),this.setState({detailsOpen:e.target.open})}),R()(this,"onCanonicalAliasChange",e=>{this.changeCanonicalAlias(e.target.value)}),R()(this,"onNewAltAliasChanged",e=>{this.setState({newAltAlias:e})}),R()(this,"onAltAliasAdded",e=>{const t=this.state.altAliases.slice();t.some(t=>t.trim()===e.trim())||(t.push(e.trim()),this.changeAltAliases(t),this.setState({newAltAlias:""}))}),R()(this,"onAltAliasDeleted",e=>{const t=this.state.altAliases.slice();t.splice(e,1),this.changeAltAliases(t)});const t={altAliases:[],localAliases:[],canonicalAlias:null,updatingCanonicalAlias:!1,localAliasesLoading:!1,detailsOpen:!1};if(e.canonicalAliasEvent){const n=e.canonicalAliasEvent.getContent(),o=n.alt_aliases;Array.isArray(o)&&(t.altAliases=o.slice()),t.canonicalAlias=n.alias}this.state=t}componentDidMount(){this.props.canSetCanonicalAlias&&this.loadLocalAliases()}async loadLocalAliases(){this.setState({localAliasesLoading:!0});try{const e=X.a.get();let t=[];if(await e.doesServerSupportUnstableFeature("org.matrix.msc2432")){const n=await e.unstableGetLocalAliases(this.props.roomId);Array.isArray(n.aliases)&&(t=n.aliases)}this.setState({localAliases:t})}finally{this.setState({localAliasesLoading:!1})}}changeCanonicalAlias(e){if(!this.props.canSetCanonicalAlias)return;const t=this.state.canonicalAlias;this.setState({canonicalAlias:e,updatingCanonicalAlias:!0});const n={alt_aliases:this.state.altAliases};e&&(n.alias=e),X.a.get().sendStateEvent(this.props.roomId,"m.room.canonical_alias",n,"").catch(e=>{console.error(e),Ie.a.createTrackedDialog("Error updating main address","",De.a,{title:Object(c.a)("Error updating main address"),description:Object(c.a)("There was an error updating the room's main address. It may not be allowed by the server or a temporary failure occurred.")}),this.setState({canonicalAlias:t})}).finally(()=>{this.setState({updatingCanonicalAlias:!1})})}changeAltAliases(e){if(!this.props.canSetCanonicalAlias)return;this.setState({updatingCanonicalAlias:!0,altAliases:e});const t={};this.state.canonicalAlias&&(t.alias=this.state.canonicalAlias),e&&(t.alt_aliases=e),X.a.get().sendStateEvent(this.props.roomId,"m.room.canonical_alias",t,"").catch(e=>{console.error(e),Ie.a.createTrackedDialog("Error updating alternative addresses","",De.a,{title:Object(c.a)("Error updating main address"),description:Object(c.a)("There was an error updating the room's alternative addresses. It may not be allowed by the server or a temporary failure occurred.")})}).finally(()=>{this.setState({updatingCanonicalAlias:!1})})}_getAliases(){return this.state.altAliases.concat(this._getLocalNonAltAliases())}_getLocalNonAltAliases(){const{altAliases:e}=this.state;return this.state.localAliases.filter(t=>!e.includes(t))}render(){const e=X.a.get().getDomain();let t=!1;const n=this.state.canonicalAlias||"",o=i.a.createElement(Ce.a,{onChange:this.onCanonicalAliasChange,value:n,disabled:this.state.updatingCanonicalAlias||!this.props.canSetCanonicalAlias,element:"select",id:"canonicalAlias",label:Object(c.a)("Main address")},i.a.createElement("option",{value:"",key:"unset"},Object(c.a)("not specified")),this._getAliases().map((e,n)=>(e===this.state.canonicalAlias&&(t=!0),i.a.createElement("option",{value:e,key:n},e))),t||!this.state.canonicalAlias?"":i.a.createElement("option",{value:this.state.canonicalAlias,key:"arbitrary"},this.state.canonicalAlias));let r;if(this.state.localAliasesLoading){const e=u.getComponent("elements.Spinner");r=i.a.createElement(e,null)}else r=i.a.createElement(ep,{id:"roomAliases",className:"mx_RoomSettings_localAliases",items:this.state.localAliases,newItem:this.state.newAlias,onNewItemChanged:this.onNewAliasChanged,canRemove:this.props.canSetAliases,canEdit:this.props.canSetAliases,onItemAdded:this.onLocalAliasAdded,onItemRemoved:this.onLocalAliasDeleted,noItemsLabel:Object(c.a)("This room has no local addresses"),placeholder:Object(c.a)("Local address"),domain:e});return i.a.createElement("div",{className:"mx_AliasSettings"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Published Addresses")),i.a.createElement("p",null,Object(c.a)("Published addresses can be used by anyone on any server to join your room. To publish an address, it needs to be set as a local address first.")),o,i.a.createElement(Zh,{roomId:this.props.roomId,canSetCanonicalAlias:this.props.canSetCanonicalAlias}),i.a.createElement("datalist",{id:"mx_AliasSettings_altRecommendations"},this._getLocalNonAltAliases().map(e=>i.a.createElement("option",{value:e,key:e})),";"),i.a.createElement(ep,{id:"roomAltAliases",className:"mx_RoomSettings_altAliases",items:this.state.altAliases,newItem:this.state.newAltAlias,onNewItemChanged:this.onNewAltAliasChanged,canRemove:this.props.canSetCanonicalAlias,canEdit:this.props.canSetCanonicalAlias,onItemAdded:this.onAltAliasAdded,onItemRemoved:this.onAltAliasDeleted,suggestionsListId:"mx_AliasSettings_altRecommendations",itemsLabel:Object(c.a)("Other published addresses:"),noItemsLabel:Object(c.a)("No other published addresses yet, add one below"),placeholder:Object(c.a)("New published address (e.g. #alias:server)")}),i.a.createElement("span",{className:"mx_SettingsTab_subheading mx_AliasSettings_localAliasHeader"},Object(c.a)("Local Addresses")),i.a.createElement("p",null,Object(c.a)("Set addresses for this room so users can find this room through your homeserver (%(localDomain)s)",{localDomain:e})),i.a.createElement("details",{onToggle:this.onLocalAliasesToggled},i.a.createElement("summary",null,this.state.detailsOpen?Object(c.a)("Show less"):Object(c.a)("Show more")),r))}}R()(tp,"propTypes",{roomId:Se.a.string.isRequired,canSetCanonicalAlias:Se.a.bool.isRequired,canSetAliases:Se.a.bool.isRequired,canonicalAliasEvent:Se.a.object}),R()(tp,"defaultProps",{canSetAliases:!1,canSetCanonicalAlias:!1,aliasEvents:[]});const np=/\+\S+:\S+/;class op extends i.a.Component{constructor(e){super(e),R()(this,"onNewGroupChanged",e=>{this.setState({newGroupId:e})}),R()(this,"onGroupAdded",e=>{if(0===e.length||!this.validateGroupId(e))return;const t=[...this.state.newGroupsList,e];this.setState({newGroupsList:t,newGroupId:""}),this.updateGroups(t)}),R()(this,"onGroupDeleted",e=>{const t=this.state.newGroupsList[e],n=this.state.newGroupsList.filter(e=>e!==t);this.setState({newGroupsList:n}),this.updateGroups(n)}),this.state={newGroupId:"",newGroupsList:e.relatedGroupsEvent&&e.relatedGroupsEvent.getContent().groups||[]}}updateGroups(e){this.context.sendStateEvent(this.props.roomId,"m.room.related_groups",{groups:e},"").catch(e=>{console.error(e),Ie.a.createTrackedDialog("Error updating flair","",De.a,{title:Object(c.a)("Error updating flair"),description:Object(c.a)("There was an error updating the flair for this room. The server may not allow it or a temporary error occurred.")})})}validateGroupId(e){if(!np.test(e)){const t=u.getComponent("dialogs.ErrorDialog");return Ie.a.createTrackedDialog("Invalid related community ID","",t,{title:Object(c.a)("Invalid community ID"),description:Object(c.a)("'%(groupId)s' is not a valid community ID",{groupId:e})}),!1}return!0}render(){const e=this.context.getDomain(),t=u.getComponent("elements.EditableItemList");return i.a.createElement("div",null,i.a.createElement(t,{id:"relatedGroups",items:this.state.newGroupsList,className:"mx_RelatedGroupSettings",newItem:this.state.newGroupId,canRemove:this.props.canSetRelatedGroups,canEdit:this.props.canSetRelatedGroups,onNewItemChanged:this.onNewGroupChanged,onItemAdded:this.onGroupAdded,onItemRemoved:this.onGroupDeleted,itemsLabel:Object(c.a)("Showing flair for these communities:"),noItemsLabel:Object(c.a)("This room is not showing flair for any communities"),placeholder:Object(c.a)("New community ID (e.g. +foo:%(localDomain)s)",{localDomain:e})}))}}R()(op,"propTypes",{roomId:Se.a.string.isRequired,canSetRelatedGroups:Se.a.bool.isRequired,relatedGroupsEvent:Se.a.instanceOf(Pe.j)}),R()(op,"contextType",b.a),R()(op,"defaultProps",{canSetRelatedGroups:!1});class rp extends i.a.Component{constructor(...e){super(...e),R()(this,"_onClickUserSettings",e=>{e.preventDefault(),e.stopPropagation(),d.a.fire(h.a.ViewUserSettings)})}render(){const e=u.getComponent("elements.SettingsFlag"),t=this.props.room.roomId,n=X.a.get().isRoomEncrypted(t);let o=null,r=null;if(n)o=Object(c.a)("In encrypted rooms, like this one, URL previews are disabled by default to ensure that your homeserver (where the previews are generated) cannot gather information about links you see in this room.");else{if(o=P.a.getValueAt(Ye.a.ACCOUNT,"urlPreviewsEnabled")?Object(c.a)("You have <a>enabled</a> URL previews by default.",{},{a:e=>i.a.createElement("a",{onClick:this._onClickUserSettings,href:""},e)}):Object(c.a)("You have <a>disabled</a> URL previews by default.",{},{a:e=>i.a.createElement("a",{onClick:this._onClickUserSettings,href:""},e)}),P.a.canSetValue("urlPreviewsEnabled",t,"room"))r=i.a.createElement("label",null,i.a.createElement(e,{name:"urlPreviewsEnabled",level:Ye.a.ROOM,roomId:t,isExplicit:!0}));else{let e=Object(c.b)("URL previews are enabled by default for participants in this room.");P.a.getValueAt(Ye.a.ROOM,"urlPreviewsEnabled",t,!0)||(e=Object(c.b)("URL previews are disabled by default for participants in this room.")),r=i.a.createElement("label",null,Object(c.a)(e))}}const a=i.a.createElement(e,{name:n?"urlPreviewsEnabled_e2ee":"urlPreviewsEnabled",level:Ye.a.ROOM_ACCOUNT,roomId:t});return i.a.createElement("div",null,i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("When someone puts a URL in their message, a URL preview can be shown to give more information about that link such as the title, description, and an image from the website.")),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},o),r,i.a.createElement("label",null,a))}}R()(rp,"propTypes",{room:Se.a.object});var ip=n(773);function ap(e,t){const n=Math.min(e.length,t.length);for(let o=0;o<n;++o)if(e[o]!==t[o])return o;return n}function sp(e,t,n){const o=n-(t.length-e.length);return function(e,t){const n=Math.min(e.length,t.length),o=e.substr(0,n)===t.substr(0,n);if(o&&e.length>t.length)return{removed:e.substr(n),at:n};if(o&&e.length<t.length)return{added:t.substr(n),at:n};{const n=ap(e,t);return{removed:e.substr(n),added:t.substr(n),at:n}}}(e.substr(0,o),t.substr(0,n))}class cp{constructor(e,t){this.index=e,this.offset=t}compare(e){return this.index===e.index?this.offset-e.offset:this.index-e.index}iteratePartsBetween(e,t,n){if(-1===this.index||-1===e.index)return;const[o,r]=this.compare(e)<0?[this,e]:[e,this];if(o.index===r.index)n(t.parts[this.index],o.offset,r.offset);else{const e=t.parts[o.index];n(e,o.offset,e.text.length);for(let e=o.index+1;e<r.index;++e){const o=t.parts[e];n(o,0,o.text.length)}n(t.parts[r.index],0,r.offset)}}forwardsWhile(e,t){if(-1===this.index)return this;let{index:n,offset:o}=this;const{parts:r}=e;for(;n<r.length;){const e=r[n];for(;o<e.text.length;){if(!t(n,o,e))return new cp(n,o);o+=1}if(n===r.length-1)return new cp(n,o);n+=1,o=0}}backwardsWhile(e,t){if(-1===this.index)return this;let{index:n,offset:o}=this;const r=e.parts;for(;n>=0;){const e=r[n];for(;o>0;){if(!t(n,o-1,e))return new cp(n,o);o-=1}if(0===n)return new cp(n,o);n-=1,o=r[n].text.length}}asOffset(e){if(-1===this.index)return new Ts(0,!0);let t=0;for(let n=0;n<this.index;++n)t+=e.parts[n].text.length;t+=this.offset;const n=e.parts[this.index],o=!n||t>=n.text.length;return new Ts(t,o)}isAtEnd(e){if(0===e.parts.length)return!0;const t=e.parts.length-1,n=e.parts[t];return this.index===t&&this.offset===n.text.length}isAtStart(){return 0===this.index&&0===this.offset}}class lp{constructor(e,t,n=null){this.updateCallback=n,R()(this,"_parts",void 0),R()(this,"_partCreator",void 0),R()(this,"activePartIdx",null),R()(this,"_autoComplete",null),R()(this,"autoCompletePartIdx",null),R()(this,"autoCompletePartCount",0),R()(this,"transformCallback",null),R()(this,"onAutoComplete",({replaceParts:e,close:t})=>{let n;if(e){this._parts.splice(this.autoCompletePartIdx,this.autoCompletePartCount,...e),this.autoCompletePartCount=e.length;const t=e[e.length-1],o=this.autoCompletePartIdx+e.length-1;n=new cp(o,t.text.length)}t&&(this._autoComplete=null,this.autoCompletePartIdx=null,this.autoCompletePartCount=0),this.updateCallback(n)}),this._parts=e,this._partCreator=t,this.transformCallback=null}setTransformCallback(e){this.transformCallback=e}setUpdateCallback(e){this.updateCallback=e}get partCreator(){return this._partCreator}get isEmpty(){return 0===this._parts.reduce((e,t)=>e+t.text.length,0)}clone(){return new lp(this._parts,this._partCreator,this.updateCallback)}insertPart(e,t){this._parts.splice(e,0,t),this.activePartIdx>=e&&++this.activePartIdx,this.autoCompletePartIdx>=e&&++this.autoCompletePartIdx}removePart(e){this._parts.splice(e,1),e===this.activePartIdx?this.activePartIdx=null:this.activePartIdx>e&&--this.activePartIdx,e===this.autoCompletePartIdx?this.autoCompletePartIdx=null:this.autoCompletePartIdx>e&&--this.autoCompletePartIdx}replacePart(e,t){this._parts.splice(e,1,t)}get parts(){return this._parts}get autoComplete(){return this.activePartIdx===this.autoCompletePartIdx?this._autoComplete:null}getPositionAtEnd(){if(this._parts.length){const e=this._parts.length-1,t=this._parts[e];return new cp(e,t.text.length)}return new cp(-1,0)}serializeParts(){return this._parts.map(e=>e.serialize())}diff(e,t,n){const o=this.parts.reduce((e,t)=>e+t.text,"");return"deleteByDrag"===t?function(e,t){if(e===t)return{};const n=ap(e,t),o=e.length-t.length;return{at:n,removed:e.substr(n,o)}}(o,e):sp(o,e,n.offset)}reset(e,t,n){this._parts=e.map(e=>this._partCreator.deserializePart(e)),t||(t=this.getPositionAtEnd()),this._autoComplete&&(this._autoComplete=null,this.autoCompletePartIdx=null),this.updateCallback(t,n)}insert(e,t){const n=this.splitAt(t);let o=0;for(let t=0;t<e.length;++t){const r=e[t];o+=r.text.length,this.insertPart(n+t,r)}return o}update(e,t,n){const o=this.diff(e,t,n),r=this.positionForOffset(o.at,n.atNodeEnd);let i=0;o.removed&&(i=this.removeText(r,o.removed.length));let a=0;o.added&&(a=this.addText(r,o.added,t)),this.mergeAdjacentParts();const s=o.at-i+a;let c=this.positionForOffset(s,!0);const l="insertFromPaste"!==t&&"insertFromDrop"!==t,u=this.setActivePart(c,l);if(this.transformCallback){const e=this.getTransformAddedLen(c,t,o);c=this.positionForOffset(s+e,!0)}return this.updateCallback(c,t,o),u}getTransformAddedLen(e,t,n){const o=this.transformCallback(e,t,n);return Number.isFinite(o)?o:0}setActivePart(e,t){const{index:n}=e,o=this._parts[n];if(o){if(n!==this.activePartIdx&&(this.activePartIdx=n,t&&this.activePartIdx!==this.autoCompletePartIdx)){const e=o.createAutoComplete(this.onAutoComplete);e&&(this._autoComplete=e,this.autoCompletePartIdx=n,this.autoCompletePartCount=1)}if(this.autoComplete)return this.autoComplete.onPartUpdate(o,e)}else this.activePartIdx=null,this._autoComplete=null,this.autoCompletePartIdx=null,this.autoCompletePartCount=0;return Promise.resolve()}mergeAdjacentParts(){let e;for(let t=0;t<this._parts.length;++t){let n=this._parts[t];const o=!n.text.length,r=!o&&e&&e.merge(n);(o||r)&&(n=e,this.removePart(t),--t),e=n}}removeText(e,t){let{index:n,offset:o}=e,r=0;for(;t>0;){let e=this._parts[n];const i=Math.min(t,e.text.length-o);if(i)if(e.canEdit){const t=e.remove(o,i);"string"==typeof t&&this.replacePart(n,this._partCreator.createDefaultPart(t)),e=this._parts[n],e.text.length?n+=1:this.removePart(n)}else r+=o,this.removePart(n);else n+=1;t-=i,o=0}return r}splitAt(e){if(-1===e.index)return 0;if(0===e.offset)return e.index;const t=this._parts[e.index];if(e.offset>=t.text.length)return e.index+1;const n=t.split(e.offset);return this.insertPart(e.index+1,n),e.index+1}addText(e,t,n){let{index:o}=e;const{offset:r}=e;let i=t.length;const a=this._parts[o];if(a)if(a.canEdit)if(a.validateAndInsert(r,t,n))t=null;else{const e=a.split(r);o+=1,this.insertPart(o,e)}else 0!==r&&(i+=a.text.length-r,o+=1);else o<0&&(o=0);for(;t;){const e=this._partCreator.createPartForInput(t,o,n);t=e.appendUntilRejected(t,n),this.insertPart(o,e),o+=1}return i}positionForOffset(e,t){let n=0;const o=this._parts.findIndex(o=>{const r=o.text.length;return!!(t&&n+r>=e||!t&&n+r>e)||(n+=r,!1)});return-1===o?this.getPositionAtEnd():new cp(o,e-n)}startRange(e,t=e){return new ps(this,e,t)}replaceRange(e,t,n){const o=t.asOffset(this),r=this.splitAt(e);t=o.asPosition(this);for(let e=this.splitAt(t)-1;e>=r;--e)this.removePart(e);let i=r;for(const e of n)this.insertPart(i,e),i+=1;this.mergeAdjacentParts()}transform(e){const t=e();let n=null;return n=t instanceof ps?Promise.resolve():this.setActivePart(t,!0),this.updateCallback(t),n}}var up=n(428),dp=n(594),hp=n.n(dp);function pp(e,{forceHTML:t=!1}={}){let n=function(e){return e.parts.reduce((e,t)=>{switch(t.type){case"newline":return e+"\n";case"plain":case"command":case"pill-candidate":case"at-room-pill":return e+t.text;case"room-pill":case"user-pill":return e+`[${t.text.replace(/[[\\\]]/g,e=>"\\"+e)}](${Object(ya.d)(t.resourceId)})`}},"")}(e);if(P.a.getValue("feature_latex_maths")){const e=(l.a.get().latex_maths_delims||{}).display_pattern||"\\$\\$(([^$]|\\\\\\$)*)\\$\\$",t=(l.a.get().latex_maths_delims||{}).inline_pattern||"\\$(([^$]|\\\\\\$)*)\\$";n=n.replace(RegExp(e,"gm"),(function(e,t){return`<div data-mx-maths="${up.AllHtmlEntities.encode(t)}">\n\n</div>\n\n`})),n=n.replace(RegExp(t,"gm"),(function(e,t){return`<span data-mx-maths="${up.AllHtmlEntities.encode(t)}"></span>`})),n=n.replace(/(.)<div/g,(function(e,t){return t+"\n<div"}))}const o=new qu(n);if(!o.isPlainText()||t){const e=hp.a.load(o.toHTML(),{_useHtmlParser2:!0,decodeEntities:!1});return e("div, span").each((function(t,n){const o=e(n).attr("data-mx-maths");o&&e(n).html(`<code>${o}</code>`)})),e.html()}if(n.indexOf("\\")>-1)return o.toPlaintext()}function mp(e){return e.parts.reduce((e,t)=>{switch(t.type){case"newline":return e+"\n";case"plain":case"command":case"pill-candidate":case"at-room-pill":return e+t.text;case"room-pill":case"user-pill":return e+""+t.text}},"")}function gp(e){return fp(e,"/me ",!1)}function fp(e,t,n=!0){const o=e.parts[0];let r=o&&o.text;return n||(t=t.toLowerCase(),r=r.toLowerCase()),o&&("plain"===o.type||"command"===o.type)&&r.startsWith(t)}function _p(e){return bp(e,"/me ")}function bp(e,t){return(e=e.clone()).removeText({index:0,offset:0},t.length),e}var vp=n(763);function Ep(e,t){const n=gp(e);n&&(e=_p(e));const o=function(e){const t=e.getContent()["m.relates_to"];return!(!t||!t["m.in_reply_to"])}(t);let r="",i="";o&&(r=function(e){const t=e.getContent().body.split("\n").map(e=>e.trim());return t.length>2&&t[0].startsWith("> ")&&0===t[1].length?t[0]+"\n\n":""}(t),i=function(e){const t=e.getContent().formatted_body;if(!t)return"";const n=(new DOMParser).parseFromString(t,"text/html").body.querySelector("mx-reply");return n&&n.outerHTML||""}(t));const a=mp(e),s={msgtype:n?"m.emote":"m.text",body:a},c={msgtype:s.msgtype,body:`${r} * ${a}`},l=pp(e,{forceHTML:o});return l&&(s.format="org.matrix.custom.html",s.formatted_body=l,c.format=s.format,c.formatted_body=`${i} * ${l}`),Object.assign({"m.new_content":s,"m.relates_to":{rel_type:"m.replace",event_id:t.getId()}},c)}class yp extends i.a.Component{constructor(e,t){super(e,t),R()(this,"_setEditorRef",e=>{this._editorRef=e}),R()(this,"_onKeyDown",e=>{if(this._editorRef.isComposing(e))return;if(e.metaKey||e.altKey||e.shiftKey)return;if(!!P.a.getValue("MessageComposerInput.ctrlEnterToSend")?e.key===gn.a.ENTER&&Object(gn.d)(e):e.key===gn.a.ENTER)this._sendEdit(),e.preventDefault();else if(e.key===gn.a.ESCAPE)this._cancelEdit();else if(e.key===gn.a.ARROW_UP){if(this._editorRef.isModified()||!this._editorRef.isCaretAtStart())return;const t=Zl(this._getRoom(),!1,this.props.editState.getEvent().getId());t&&(d.a.dispatch({action:"edit_event",event:t}),e.preventDefault())}else if(e.key===gn.a.ARROW_DOWN){if(this._editorRef.isModified()||!this._editorRef.isCaretAtEnd())return;const t=Zl(this._getRoom(),!0,this.props.editState.getEvent().getId());t?d.a.dispatch({action:"edit_event",event:t}):(d.a.dispatch({action:"edit_event",event:null}),d.a.fire(h.a.FocusComposer)),e.preventDefault()}}),R()(this,"_cancelEdit",()=>{d.a.dispatch({action:"edit_event",event:null}),d.a.fire(h.a.FocusComposer)}),R()(this,"_sendEdit",()=>{const e=y.a.getTimestamp(),t=this.props.editState.getEvent(),n=Ep(this.model,t),o=n["m.new_content"];if(this._isContentModified(o)){const o=t.getRoomId();this._cancelPreviousPendingEdit();const r=this.context.sendMessage(o,n);d.a.dispatch({action:"message_sent"}),y.a.instance.trackSendMessage(e,r,o,!0,!1,n)}d.a.dispatch({action:"edit_event",event:null}),d.a.fire(h.a.FocusComposer)}),R()(this,"_onChange",()=>{this.state.saveDisabled&&this._editorRef&&this._editorRef.isModified()&&this.setState({saveDisabled:!1})}),this.model=null,this._editorRef=null,this.state={saveDisabled:!0},this._createEditorModel()}_getRoom(){return this.context.getRoom(this.props.editState.getEvent().getRoomId())}_isContentModified(e){const t=this.props.editState.getEvent().getContent();return!(!this._editorRef.isModified()||t.msgtype===e.msgtype&&t.body===e.body&&t.format===e.format&&t.formatted_body===e.formatted_body)}_cancelPreviousPendingEdit(){const e=this.props.editState.getEvent().replacingEvent();!e||e.status!==Pe.b.QUEUED&&e.status!==Pe.b.NOT_SENT||this.context.cancelPendingEvent(e)}componentWillUnmount(){const e=document.getSelection();let t;e.focusNode&&(t=Cs(this._editorRef,e).caret);const n=this.model.serializeParts();this.props.editState.setEditorState(t,n)}_createEditorModel(){const{editState:e}=this.props,t=this._getRoom(),n=new Bs(t,this.context);let o;o=e.hasEditorState()?e.getSerializedParts().map(e=>n.deserializePart(e)):Ws(e.getEvent(),n),this.model=new lp(o,n)}_getInitialCaretPosition(){const{editState:e}=this.props;let t;if(e.hasEditorState()&&e.getCaret()){const n=e.getCaret();t=this.model.positionForOffset(n.offset,n.atNodeEnd)}else t=this.model.getPositionAtEnd();return t}render(){const e=u.getComponent("elements.AccessibleButton");return i.a.createElement("div",{className:M()("mx_EditMessageComposer",this.props.className),onKeyDown:this._onKeyDown},i.a.createElement(nc,{ref:this._setEditorRef,model:this.model,room:this._getRoom(),initialCaret:this.props.editState.getCaret(),label:Object(c.a)("Edit message"),onChange:this._onChange}),i.a.createElement("div",{className:"mx_EditMessageComposer_buttons"},i.a.createElement(e,{kind:"secondary",onClick:this._cancelEdit},Object(c.a)("Cancel")),i.a.createElement(e,{kind:"primary",onClick:this._sendEdit,disabled:this.state.saveDisabled},Object(c.a)("Save"))))}}R()(yp,"propTypes",{editState:Se.a.instanceOf(vp.a).isRequired}),R()(yp,"contextType",b.a);const Sp={offline:"mx_EntityTile_offline",online:"mx_EntityTile_online",unavailable:"mx_EntityTile_unavailable"};class Tp extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{hover:!1})}shouldComponentUpdate(e,t){return this.state.hover!==t.hover||this.props.shouldComponentUpdate(e,t)}render(){const e={mx_EntityTile:!0,mx_EntityTile_noHover:this.props.suppressOnHover};this.props.className&&(e[this.props.className]=!0);var t,o;let r;e[(t=this.props.presenceState,o=this.props.presenceLastActiveAgo,!1===this.props.showPresence?"mx_EntityTile_online_beenactive":"offline"==t?o?Sp.offline+"_beenactive":Sp.offline+"_neveractive":t?Sp[t]:Sp.offline+"_neveractive")]=!0;const{name:a}=this.props;if(this.props.suppressOnHover)r=this.props.subtextLabel?i.a.createElement("div",{className:"mx_EntityTile_details"},i.a.createElement("div",{className:"mx_EntityTile_name",dir:"auto"},a),i.a.createElement("span",{className:"mx_EntityTile_subtext"},this.props.subtextLabel)):i.a.createElement("div",{className:"mx_EntityTile_name",dir:"auto"},a);else{const e=this.props.presenceLastActiveAgo?Date.now()-(this.props.presenceLastTs-this.props.presenceLastActiveAgo):-1,t=u.getComponent("rooms.PresenceLabel");let n=null;this.props.showPresence&&(n=i.a.createElement(t,{activeAgo:e,currentlyActive:this.props.presenceCurrentlyActive,presenceState:this.props.presenceState})),this.props.subtextLabel&&(n=i.a.createElement("span",{className:"mx_EntityTile_subtext"},this.props.subtextLabel)),r=i.a.createElement("div",{className:"mx_EntityTile_details"},i.a.createElement("div",{className:"mx_EntityTile_name",dir:"auto"},a),n)}let s,l;this.props.showInviteButton&&(s=i.a.createElement("div",{className:"mx_EntityTile_invite"},i.a.createElement("img",{src:n(1596),width:"16",height:"16"})));const d=this.props.powerStatus;if(d){const e={[Tp.POWER_STATUS_MODERATOR]:Object(c.a)("Mod"),[Tp.POWER_STATUS_ADMIN]:Object(c.a)("Admin")}[d];l=i.a.createElement("div",{className:"mx_EntityTile_power"},e)}let h;const{e2eStatus:p}=this.props;p&&(h=i.a.createElement(bi.b,{status:p,isUser:!0,bordered:!0}));const m=u.getComponent("avatars.BaseAvatar"),f=this.props.avatarJsx||i.a.createElement(m,{name:this.props.name,width:36,height:36,"aria-hidden":"true"});return i.a.createElement("div",{ref:e=>this.container=e},i.a.createElement(g.a,{className:M()(e),title:this.props.title,onClick:this.props.onClick},i.a.createElement("div",{className:"mx_EntityTile_avatar"},f,h),r,l,s))}}R()(Tp,"propTypes",{name:Se.a.string,title:Se.a.string,avatarJsx:Se.a.any,className:Se.a.string,presenceState:Se.a.string,presenceLastActiveAgo:Se.a.number,presenceLastTs:Se.a.number,presenceCurrentlyActive:Se.a.bool,showInviteButton:Se.a.bool,shouldComponentUpdate:Se.a.func,onClick:Se.a.func,suppressOnHover:Se.a.bool,showPresence:Se.a.bool,subtextLabel:Se.a.string,e2eStatus:Se.a.string}),R()(Tp,"defaultProps",{shouldComponentUpdate:function(e,t){return!0},onClick:function(){},presenceState:"offline",presenceLastActiveAgo:0,presenceLastTs:0,showInviteButton:!1,suppressOnHover:!1,showPresence:!0}),Tp.POWER_STATUS_MODERATOR="moderator",Tp.POWER_STATUS_ADMIN="admin";var wp=Tp,Cp=n(766),xp=e=>{const t=M()({mx_JumpToBottomButton:!0,mx_JumpToBottomButton_highlight:e.highlight});let n;return e.numUnreadMessages&&(n=React.createElement("div",{className:"mx_JumpToBottomButton_badge"},e.numUnreadMessages)),React.createElement("div",{className:t},React.createElement(g.a,{className:"mx_JumpToBottomButton_scrollDown",title:Object(c.a)("Scroll to most recent messages"),onClick:e.onScrollToBottomClick}),n)};class Op extends i.a.Component{constructor(e){super(e),R()(this,"onImageClick",e=>{const t=this.state.preview;if(0!=e.button||e.metaKey)return;e.preventDefault();const n=u.getComponent("elements.ImageView");let o=t["og:image"];o&&o.startsWith("mxc://")&&(o=X.a.get().mxcUrlToHttp(o));const r={src:o,width:t["og:image:width"],height:t["og:image:height"],name:t["og:title"]||t["og:description"]||this.props.link,fileSize:t["matrix:image:size"],link:this.props.link};Ie.a.createDialog(n,r,"mx_Dialog_lightbox")}),this.state={preview:null},this.unmounted=!1,X.a.get().getUrlPreview(this.props.link,this.props.mxEvent.getTs()).then(e=>{this.unmounted||this.setState({preview:e},this.props.onHeightChanged)},e=>{console.error("Failed to get URL preview: "+e)}),this._description=Object(r.createRef)()}componentDidMount(){this._description.current&&Object(ga.f)(this._description.current)}componentDidUpdate(){this._description.current&&Object(ga.f)(this._description.current)}componentWillUnmount(){this.unmounted=!0}render(){const e=this.state.preview;if(!e||0===Object.keys(e).length)return i.a.createElement("div",null);let t=e["og:image"];P.a.getValue("showImages")||(t=null);t&&t.startsWith("mxc://")&&(t=X.a.get().mxcUrlToHttp(t,100,100));let o,r=100;e["og:image:width"]&&e["og:image:height"]&&(r=function(e,t,n,o){if(!e||!t)return null;if(e<n&&t<o)return t;const r=n/e,i=o/t;return r<i?Math.floor(r*t):Math.floor(i*t)}(e["og:image:width"],e["og:image:height"],100,100)),t&&(o=i.a.createElement("div",{className:"mx_LinkPreviewWidget_image",style:{height:r}},i.a.createElement("img",{style:{maxWidth:100,maxHeight:100},src:t,onClick:this.onImageClick})));const a=up.AllHtmlEntities.decode(e["og:description"]||""),s=u.getComponent("elements.AccessibleButton");return i.a.createElement("div",{className:"mx_LinkPreviewWidget"},o,i.a.createElement("div",{className:"mx_LinkPreviewWidget_caption"},i.a.createElement("div",{className:"mx_LinkPreviewWidget_title"},i.a.createElement("a",{href:this.props.link,target:"_blank",rel:"noreferrer noopener"},e["og:title"])),i.a.createElement("div",{className:"mx_LinkPreviewWidget_siteName"},e["og:site_name"]?" - "+e["og:site_name"]:null),i.a.createElement("div",{className:"mx_LinkPreviewWidget_description",ref:this._description},a)),i.a.createElement(s,{className:"mx_LinkPreviewWidget_cancel",onClick:this.props.onCancelClick,"aria-label":Object(c.a)("Close preview")},i.a.createElement("img",{className:"mx_filterFlipColor",alt:"",role:"presentation",src:n(219),width:"18",height:"18"})))}}R()(Op,"propTypes",{link:Se.a.string.isRequired,mxEvent:Se.a.object.isRequired,onCancelClick:Se.a.func,onHeightChanged:Se.a.func});var kp=n(256);const Rp=/[\x21-\x2F\x3A-\x40\x5B-\x60\x7B-\x7E]+/g;class Ap extends i.a.Component{constructor(e){super(e),R()(this,"onUserPresenceChange",(e,t)=>{this.refs[t.userId]&&this._updateList()}),R()(this,"onRoom",e=>{e.roomId===this.props.roomId&&this._showMembersAccordingToMembershipWithLL()}),R()(this,"onMyMembership",(e,t,n)=>{e.roomId===this.props.roomId&&"join"===t&&this._showMembersAccordingToMembershipWithLL()}),R()(this,"onRoomStateMember",(e,t,n)=>{n.roomId===this.props.roomId&&this._updateList()}),R()(this,"onRoomMemberName",(e,t)=>{t.roomId===this.props.roomId&&this._updateList()}),R()(this,"onRoomStateEvent",(e,t)=>{e.getRoomId()===this.props.roomId&&"m.room.third_party_invite"===e.getType()&&this._updateList()}),R()(this,"_updateList",Object(kp.a)(()=>{this._updateListNow()},500)),R()(this,"_createOverflowTileJoined",(e,t)=>this._createOverflowTile(e,t,this._showMoreJoinedMemberList)),R()(this,"_createOverflowTileInvited",(e,t)=>this._createOverflowTile(e,t,this._showMoreInvitedMemberList)),R()(this,"_createOverflowTile",(e,t,o)=>{const r=u.getComponent("rooms.EntityTile"),a=u.getComponent("avatars.BaseAvatar"),s=Object(c.a)("and %(count)s others...",{count:e});return i.a.createElement(r,{className:"mx_EntityTile_ellipsis",avatarJsx:i.a.createElement(a,{url:n(517),name:"...",width:36,height:36}),name:s,presenceState:"online",suppressOnHover:!0,onClick:o})}),R()(this,"_showMoreJoinedMemberList",()=>{this.setState({truncateAtJoined:this.state.truncateAtJoined+100})}),R()(this,"_showMoreInvitedMemberList",()=>{this.setState({truncateAtInvited:this.state.truncateAtInvited+100})}),R()(this,"memberSort",(e,t)=>{const n=e.user,o=t.user;if(!n&&!o)return 0;if(n&&!o)return-1;if(!n&&o)return 1;if(this._showPresence){const e=e=>"unavailable"===e?"online":e,t=t=>{const n=["active","online","offline"],o=n.indexOf(e(t));return-1===o?n.length:o},r=t(n.currentlyActive?"active":n.presence),i=t(o.currentlyActive?"active":o.presence);if(r!==i)return r-i}if(e.powerLevel!==t.powerLevel)return t.powerLevel-e.powerLevel;if(this._showPresence&&n.getLastActiveTs()!==o.getLastActiveTs())return o.getLastActiveTs()-n.getLastActiveTs();const r=("@"===e.name[0]?e.name.substr(1):e.name).replace(Rp,""),i=("@"===t.name[0]?t.name.substr(1):t.name).replace(Rp,"");return r.localeCompare(i,{ignorePunctuation:!0,sensitivity:"base"})}),R()(this,"onSearchQueryChanged",e=>{this.setState({searchQuery:e,filteredJoinedMembers:this._filterMembers(this.state.members,"join",e),filteredInvitedMembers:this._filterMembers(this.state.members,"invite",e)})}),R()(this,"_onPending3pidInviteClick",e=>{d.a.dispatch({action:"view_3pid_invite",event:e})}),R()(this,"_getChildrenJoined",(e,t)=>this._makeMemberTiles(this.state.filteredJoinedMembers.slice(e,t))),R()(this,"_getChildCountJoined",()=>this.state.filteredJoinedMembers.length),R()(this,"_getChildrenInvited",(e,t)=>{let n=this.state.filteredInvitedMembers;return t>this.state.filteredInvitedMembers.length&&(n=n.concat(this._getPending3PidInvites())),this._makeMemberTiles(n.slice(e,t))}),R()(this,"_getChildCountInvited",()=>this.state.filteredInvitedMembers.length+(this._getPending3PidInvites()||[]).length),R()(this,"onInviteButtonClick",()=>{X.a.get().isGuest()?d.a.dispatch({action:"require_registration"}):d.a.dispatch({action:"view_invite",roomId:this.props.roomId})});const t=X.a.get();t.hasLazyLoadMembersEnabled()?this.state=this._getMembersState([]):this.state=this._getMembersState(this.roomMembers()),t.on("Room",this.onRoom);const o=l.a.get().enable_presence_by_hs_url,r=X.a.get().baseUrl;this._showPresence=!0,o&&void 0!==o[r]&&(this._showPresence=o[r])}UNSAFE_componentWillMount(){const e=X.a.get();this._mounted=!0,e.hasLazyLoadMembersEnabled()?(this._showMembersAccordingToMembershipWithLL(),e.on("Room.myMembership",this.onMyMembership)):this._listenForMembersChanges()}_listenForMembersChanges(){const e=X.a.get();e.on("RoomState.members",this.onRoomStateMember),e.on("RoomMember.name",this.onRoomMemberName),e.on("RoomState.events",this.onRoomStateEvent),e.on("User.lastPresenceTs",this.onUserPresenceChange),e.on("User.presence",this.onUserPresenceChange),e.on("User.currentlyActive",this.onUserPresenceChange)}componentWillUnmount(){this._mounted=!1;const e=X.a.get();e&&(e.removeListener("RoomState.members",this.onRoomStateMember),e.removeListener("RoomMember.name",this.onRoomMemberName),e.removeListener("Room.myMembership",this.onMyMembership),e.removeListener("RoomState.events",this.onRoomStateEvent),e.removeListener("Room",this.onRoom),e.removeListener("User.lastPresenceTs",this.onUserPresenceChange),e.removeListener("User.presence",this.onUserPresenceChange),e.removeListener("User.currentlyActive",this.onUserPresenceChange)),this._updateList.cancelPendingCall()}async _showMembersAccordingToMembershipWithLL(){if(X.a.get().hasLazyLoadMembersEnabled()){const e=X.a.get().getRoom(this.props.roomId);if("join"===(e&&e.getMyMembership())){this.setState({loading:!0});try{await e.loadMembersIfNeeded()}catch(e){}this._mounted&&(this.setState(this._getMembersState(this.roomMembers())),this._listenForMembersChanges())}else this.setState(this._getMembersState(this.roomMembers()))}}_getMembersState(e){return{loading:!1,members:e,filteredJoinedMembers:this._filterMembers(e,"join"),filteredInvitedMembers:this._filterMembers(e,"invite"),truncateAtJoined:30,truncateAtInvited:5,searchQuery:""}}_updateListNow(){const e={loading:!1,members:this.roomMembers()};e.filteredJoinedMembers=this._filterMembers(e.members,"join",this.state.searchQuery),e.filteredInvitedMembers=this._filterMembers(e.members,"invite",this.state.searchQuery),this.setState(e)}getMembersWithUser(){if(!this.props.roomId)return[];const e=X.a.get(),t=e.getRoom(this.props.roomId);if(!t)return[];const n=Object.values(t.currentState.members);return n.forEach((function(t){null===t.user&&(t.user=e.getUser(t.userId))})),n}roomMembers(){const e=this.getMembersWithUser().filter(e=>"join"===e.membership||"invite"===e.membership);return e.sort(this.memberSort),e}memberString(e){if(e){const t=e.user;return"("+e.name+", "+e.powerLevel+", "+(t?t.lastActiveAgo:"<null>")+", "+(t?t.getLastActiveTs():"<null>")+", "+(t?t.currentlyActive:"<null>")+", "+(t?t.presence:"<null>")+")"}return"(null)"}_filterMembers(e,t,n){return e.filter(e=>{if(n){n=n.toLowerCase();const t=-1!==e.name.toLowerCase().indexOf(n),o=-1!==e.userId.toLowerCase().indexOf(n);if(!t&&!o)return!1}return e.membership===t})}_getPending3PidInvites(){const e=X.a.get().getRoom(this.props.roomId);if(e)return e.currentState.getStateEvents("m.room.third_party_invite").filter((function(t){if(!Object(nn.c)(t))return!1;return!e.currentState.getInviteForThreePidToken(t.getStateKey())}))}_makeMemberTiles(e){const t=u.getComponent("rooms.MemberTile"),n=u.getComponent("rooms.EntityTile");return e.map(e=>e.userId?i.a.createElement(t,{key:e.userId,member:e,ref:e.userId,showPresence:this._showPresence}):i.a.createElement(n,{key:e.getStateKey(),name:e.getContent().display_name,suppressOnHover:!0,onClick:()=>this._onPending3pidInviteClick(e)}))}render(){if(this.state.loading){const e=u.getComponent("elements.Spinner");return i.a.createElement(ci.b,{className:"mx_MemberList",onClose:this.props.onClose,previousPhase:on.b.RoomSummary},i.a.createElement(e,null))}const e=u.getComponent("structures.SearchBox"),t=u.getComponent("elements.TruncatedList"),n=X.a.get(),o=n.getRoom(this.props.roomId);let r,a,s;if(o&&"join"===o.getMyMembership()){let e=!0;const t=o.currentState.getStateEvents("m.room.power_levels",""),a=o.getMember(n.getUserId());if(t&&a){const n=t.getContent();n&&n.invite>a.powerLevel&&(e=!1)}let s=Object(c.a)("Invite to this room");const l=he.a.instance.getSelectedCommunityGeneralChat();l&&l.roomId===this.props.roomId&&(s=Object(c.a)("Invite to this community"));const d=u.getComponent("elements.AccessibleButton");r=i.a.createElement(d,{className:"mx_MemberList_invite",onClick:this.onInviteButtonClick,disabled:!e},i.a.createElement("span",null,s))}this._getChildCountInvited()>0&&(a=i.a.createElement("h2",null,Object(c.a)("Invited")),s=i.a.createElement(t,{className:"mx_MemberList_section mx_MemberList_invited",truncateAt:this.state.truncateAtInvited,createOverflowElement:this._createOverflowTileInvited,getChildren:this._getChildrenInvited,getChildCount:this._getChildCountInvited}));const l=i.a.createElement(e,{className:"mx_MemberList_query mx_textinput_icon mx_textinput_search",placeholder:Object(c.a)("Filter room members"),onSearch:this.onSearchQueryChanged});return i.a.createElement(ci.b,{className:"mx_MemberList",header:r,footer:l,onClose:this.props.onClose,previousPhase:on.b.RoomSummary},i.a.createElement("div",{className:"mx_MemberList_wrapper"},i.a.createElement(t,{className:"mx_MemberList_section mx_MemberList_joined",truncateAt:this.state.truncateAtJoined,createOverflowElement:this._createOverflowTileJoined,getChildren:this._getChildrenJoined,getChildCount:this._getChildCountJoined}),a,s))}}class Ip extends i.a.Component{constructor(e){super(e),R()(this,"onRoomStateEvents",e=>{if("m.room.encryption"!==e.getType())return;const{roomId:t}=this.props.member;if(e.getRoomId()!==t)return;X.a.get().removeListener("RoomState.events",this.onRoomStateEvents),this.setState({isRoomEncrypted:!0}),this.updateE2EStatus()}),R()(this,"onUserTrustStatusChanged",(e,t)=>{e===this.props.member.userId&&this.updateE2EStatus()}),R()(this,"onDeviceVerificationChanged",(e,t,n)=>{e===this.props.member.userId&&this.updateE2EStatus()}),R()(this,"_onStatusMessageCommitted",()=>{this.setState({statusMessage:this.getStatusMessage()})}),R()(this,"onClick",e=>{d.a.dispatch({action:h.a.ViewUser,member:this.props.member})}),this.state={statusMessage:this.getStatusMessage(),isRoomEncrypted:!1,e2eStatus:null}}componentDidMount(){const e=X.a.get();if(P.a.getValue("feature_custom_status")){const{user:e}=this.props.member;e&&e.on("User._unstable_statusMessage",this._onStatusMessageCommitted)}const{roomId:t}=this.props.member;if(t){const n=e.isRoomEncrypted(t);this.setState({isRoomEncrypted:n}),n?(e.on("userTrustStatusChanged",this.onUserTrustStatusChanged),e.on("deviceVerificationChanged",this.onDeviceVerificationChanged),this.updateE2EStatus()):e.on("RoomState.events",this.onRoomStateEvents)}}componentWillUnmount(){const e=X.a.get(),{user:t}=this.props.member;t&&t.removeListener("User._unstable_statusMessage",this._onStatusMessageCommitted),e&&(e.removeListener("RoomState.events",this.onRoomStateEvents),e.removeListener("userTrustStatusChanged",this.onUserTrustStatusChanged),e.removeListener("deviceVerificationChanged",this.onDeviceVerificationChanged))}async updateE2EStatus(){const e=X.a.get(),{userId:t}=this.props.member,n=t===e.getUserId(),o=e.checkUserTrust(t);if(!o.isCrossSigningVerified())return void this.setState({e2eStatus:o.wasCrossSigningVerified()?"warning":"normal"});const r=e.getStoredDevicesForUser(t).some(o=>{const{deviceId:r}=o,i=e.checkDeviceTrust(t,r);return n?!i.isCrossSigningVerified():!i.isVerified()});this.setState({e2eStatus:r?"warning":"verified"})}getStatusMessage(){const{user:e}=this.props.member;return e?e._unstable_statusMessage:""}shouldComponentUpdate(e,t){return void 0===this.member_last_modified_time||this.member_last_modified_time<e.member.getLastModifiedTime()||(!(!e.member.user||!(void 0===this.user_last_modified_time||this.user_last_modified_time<e.member.user.getLastModifiedTime()))||(t.isRoomEncrypted!==this.state.isRoomEncrypted||t.e2eStatus!==this.state.e2eStatus))}_getDisplayName(){return this.props.member.name}getPowerLabel(){return Object(c.a)("%(userName)s (power %(powerLevelNumber)s)",{userName:this.props.member.userId,powerLevelNumber:this.props.member.powerLevel})}render(){const e=u.getComponent("avatars.MemberAvatar"),t=u.getComponent("rooms.EntityTile"),n=this.props.member,o=this._getDisplayName(),r=n.user?n.user.presence:null;let a=null;n.user&&P.a.getValue("feature_custom_status")&&(a=this.state.statusMessage);const s=i.a.createElement(e,{member:n,width:36,height:36,"aria-hidden":"true"});n.user&&(this.user_last_modified_time=n.user.getLastModifiedTime()),this.member_last_modified_time=n.getLastModifiedTime();const c=new Map([[100,t.POWER_STATUS_ADMIN],[50,t.POWER_STATUS_MODERATOR]]);let l=this.props.member.powerLevel;for(const[e]of c)if(this.props.member.powerLevel>=e){l=e;break}const d=c.get(l);let h;return this.state.isRoomEncrypted&&(h=this.state.e2eStatus),i.a.createElement(t,Z()({},this.props,{presenceState:r,presenceLastActiveAgo:n.user?n.user.lastActiveAgo:0,presenceLastTs:n.user?n.user.lastPresenceTs:0,presenceCurrentlyActive:!!n.user&&n.user.currentlyActive,avatarJsx:s,title:this.getPowerLabel(),name:o,powerStatus:d,showPresence:this.props.showPresence,subtextLabel:a,e2eStatus:h,onClick:this.onClick}))}}R()(Ip,"propTypes",{member:Se.a.any.isRequired,showPresence:Se.a.bool}),R()(Ip,"defaultProps",{showPresence:!0});var Dp=n(160),Np=n(261);class Fp extends i.a.Component{constructor(e){super(e),this._onShowStickersClick=this._onShowStickersClick.bind(this),this._onHideStickersClick=this._onHideStickersClick.bind(this),this._launchManageIntegrations=this._launchManageIntegrations.bind(this),this._removeStickerpickerWidgets=this._removeStickerpickerWidgets.bind(this),this._updateWidget=this._updateWidget.bind(this),this._onWidgetAction=this._onWidgetAction.bind(this),this._onResize=this._onResize.bind(this),this._onFinished=this._onFinished.bind(this),this.popoverWidth=300,this.popoverHeight=300,this.scalarClient=null,this.state={showStickers:!1,imError:null,stickerpickerX:null,stickerpickerY:null,stickerpickerWidget:null,widgetId:null}}_acquireScalarClient(){return this.scalarClient?Promise.resolve(this.scalarClient):Dp.a.sharedInstance().hasManager()?(this.scalarClient=Dp.a.sharedInstance().getPrimaryManager().getScalarClient(),this.scalarClient.connect().then(()=>(this.forceUpdate(),this.scalarClient)).catch(e=>{this._imError(Object(c.b)("Failed to connect to integration manager"),e)})):void Dp.a.sharedInstance().openNoManagerDialog()}async _removeStickerpickerWidgets(){const e=await this._acquireScalarClient();console.log("Removing Stickerpicker widgets"),this.state.widgetId?e?e.disableWidgetAssets(Sa.a.STICKERPICKER,this.state.widgetId).then(()=>{console.log("Assets disabled")}).catch(e=>{console.error("Failed to disable assets")}):console.error("Cannot disable assets: no scalar client"):console.warn("No widget ID specified, not disabling assets"),this.setState({showStickers:!1}),Sn.a.removeStickerpickerWidgets().then(()=>{this.forceUpdate()}).catch(e=>{console.error("Failed to remove sticker picker widget",e)})}componentDidMount(){window.addEventListener("resize",this._onResize),this.dispatcherRef=d.a.register(this._onWidgetAction),X.a.get().on("accountData",this._updateWidget),this._updateWidget()}componentWillUnmount(){const e=X.a.get();e&&e.removeListener("accountData",this._updateWidget),window.removeEventListener("resize",this._onResize),this.dispatcherRef&&d.a.unregister(this.dispatcherRef)}componentDidUpdate(e,t){this._sendVisibilityToWidget(this.state.showStickers)}_imError(e,t){console.error(e,t),this.setState({showStickers:!1,imError:Object(c.a)(e)})}_updateWidget(){const e=Sn.a.getStickerpickerWidgets()[0];if(!e)return Fp.currentWidget=null,void this.setState({stickerpickerWidget:null,widgetId:null});const t=Fp.currentWidget;let n=null;t&&t.content&&t.content.url&&(n=t.content.url);let o=null;e&&e.content&&e.content.url&&(o=e.content.url),o!==n&&Bd.a.destroyElement("stickerPicker"),Fp.currentWidget=e,this.setState({stickerpickerWidget:e,widgetId:e?e.id:null})}_onWidgetAction(e){switch(e.action){case"user_widget_updated":this.forceUpdate();break;case"stickerpicker_close":this.setState({showStickers:!1});break;case h.a.AfterRightPanelPhaseChange:case"show_left_panel":case"hide_left_panel":this.setState({showStickers:!1})}}_defaultStickerpickerContent(){return i.a.createElement(g.a,{onClick:this._launchManageIntegrations,className:"mx_Stickers_contentPlaceholder"},i.a.createElement("p",null,Object(c.a)("You don't currently have any stickerpacks enabled")),i.a.createElement("p",{className:"mx_Stickers_addLink"},Object(c.a)("Add some now")),i.a.createElement("img",{src:n(1597),alt:""}))}_errorStickerpickerContent(){return i.a.createElement("div",{style:{"text-align":"center"},className:"error"},i.a.createElement("p",null," ",this.state.imError," "))}_sendVisibilityToWidget(e){if(!this.state.stickerpickerWidget)return;const t=Np.a.instance.getMessagingForId(this.state.stickerpickerWidget.id);t&&e!==this._prevSentVisibility&&(t.updateVisibility(e).catch(e=>{console.error("Error updating widget visibility: ",e)}),this._prevSentVisibility=e)}_getStickerpickerContent(){if(this.state._imError)return this._errorStickerpickerContent();const e=this.state.stickerpickerWidget;let t;const n=u.getComponent("elements.PersistedElement");if(e&&e.content&&e.content.url){e.content.name=e.name||Object(c.a)("Stickerpack");const o={id:e.id,url:e.content.url,name:e.content.name,type:e.content.type,data:e.content.data};t=i.a.createElement("div",{className:"mx_Stickers_content_container"},i.a.createElement("div",{id:"stickersContent",className:"mx_Stickers_content",style:{border:"none",height:this.popoverHeight,width:this.popoverWidth}},i.a.createElement(n,{persistKey:"stickerPicker",style:{zIndex:3500}},i.a.createElement(wn.a,{app:o,room:this.props.room,fullWidth:!0,userId:X.a.get().credentials.userId,creatorUserId:e.sender||X.a.get().credentials.userId,waitForIframeLoad:!0,showMenubar:!0,onEditClick:this._launchManageIntegrations,onDeleteClick:this._removeStickerpickerWidgets,showTitle:!1,showCancel:!1,showPopout:!1,onMinimiseClick:this._onHideStickersClick,handleMinimisePointerEvents:!0,userWidget:!0}))))}else t=this._defaultStickerpickerContent();return t}_onShowStickersClick(e){if(!P.a.getValue("integrationProvisioning"))return Dp.a.sharedInstance().showDisabledDialog();const t=e.target.getBoundingClientRect();let n=t.right+window.pageXOffset-41;n=Math.min(n,document.body.clientWidth-312);const o=Math.max(10,2+window.pageXOffset+t.left-n),r=t.top+t.height/2+window.pageYOffset-19;this.setState({showStickers:!0,stickerPickerX:n,stickerPickerY:r,stickerPickerChevronOffset:o})}_onHideStickersClick(e){this.setState({showStickers:!1})}_onResize(){this.setState({showStickers:!1})}_onFinished(){this.setState({showStickers:!1})}_launchManageIntegrations(){P.a.getValue("feature_many_integration_managers")?Dp.a.sharedInstance().openAll(this.props.room,"type_"+Sa.a.STICKERPICKER.preferred,this.state.widgetId):Dp.a.sharedInstance().getPrimaryManager().open(this.props.room,"type_"+Sa.a.STICKERPICKER.preferred,this.state.widgetId)}render(){let e,t;const n=M()("mx_MessageComposer_button","mx_MessageComposer_stickers","mx_Stickers_hideStickers","mx_MessageComposer_button_highlight");if(this.state.showStickers){t=i.a.createElement(g.a,{id:"stickersButton",key:"controls_hide_stickers",className:n,onClick:this._onHideStickersClick,active:this.state.showStickers,title:Object(c.a)("Hide Stickers")});const r=u.getComponent("context_menus.GenericElementContextMenu");e=i.a.createElement(o.b,{chevronOffset:this.state.stickerPickerChevronOffset,chevronFace:"bottom",left:this.state.stickerPickerX,top:this.state.stickerPickerY,menuWidth:this.popoverWidth,menuHeight:this.popoverHeight,onFinished:this._onFinished,menuPaddingTop:0,menuPaddingLeft:0,menuPaddingRight:0,zIndex:3500},i.a.createElement(r,{element:this._getStickerpickerContent(),onResize:this._onFinished}))}else t=i.a.createElement(L.a,{id:"stickersButton",key:"controls_show_stickers",className:"mx_MessageComposer_button mx_MessageComposer_stickers",onClick:this._onShowStickersClick,title:Object(c.a)("Show Stickers")});return i.a.createElement(i.a.Fragment,null,t,e)}}function Mp(){d.a.dispatch({action:"reply_to_event",event:null})}R()(Fp,"currentWidget",void 0);class Pp extends i.a.Component{constructor(e){super(e),this.unmounted=!1,this.state={event:Y.a.getQuotingEvent()},this._onRoomViewStoreUpdate=this._onRoomViewStoreUpdate.bind(this),this._roomStoreToken=Y.a.addListener(this._onRoomViewStoreUpdate)}componentWillUnmount(){this.unmounted=!0,this._roomStoreToken&&this._roomStoreToken.remove()}_onRoomViewStoreUpdate(){if(this.unmounted)return;const e=Y.a.getQuotingEvent();this.state.event!==e&&this.setState({event:e})}render(){if(!this.state.event)return null;const e=u.getComponent("rooms.EventTile");return i.a.createElement("div",{className:"mx_ReplyPreview"},i.a.createElement("div",{className:"mx_ReplyPreview_section"},i.a.createElement("div",{className:"mx_ReplyPreview_header mx_ReplyPreview_title"},Object(c.a)("Replying")),i.a.createElement("div",{className:"mx_ReplyPreview_header mx_ReplyPreview_cancel"},i.a.createElement("img",{className:"mx_filterFlipColor",src:n(219),width:"18",height:"18",onClick:Mp})),i.a.createElement("div",{className:"mx_ReplyPreview_clear"}),i.a.createElement(e,{last:!0,tileShape:"reply_preview",mxEvent:this.state.event,permalinkCreator:this.props.permalinkCreator,isTwelveHour:P.a.getValue("showTwelveHourTimestamps"),enableFlair:P.a.getValue($e.a.Flair)})))}}function Lp(e){const t=u.getComponent("avatars.MemberStatusMessageAvatar");return i.a.createElement("div",{className:"mx_MessageComposer_avatar"},i.a.createElement(t,{member:e.me,width:24,height:24}))}function Up(e){return i.a.createElement(L.a,{className:"mx_MessageComposer_button mx_MessageComposer_voicecall",onClick:t=>{d.a.dispatch({action:"place_call",type:pe.a.Voice,room_id:e.roomId})},title:Object(c.a)("Voice call")})}function Bp(e){return i.a.createElement(L.a,{className:"mx_MessageComposer_button mx_MessageComposer_videocall",onClick:t=>{d.a.dispatch({action:"place_call",type:t.shiftKey?pe.a.ScreenSharing:pe.a.Video,room_id:e.roomId})},title:Object(c.a)("Video call")})}function jp(e){let t=Object(c.a)("Hangup");e.isConference&&e.canEndConference&&(t=Object(c.a)("End conference"));const n=!e.isConference||e.isInConference;return i.a.createElement(L.a,{className:"mx_MessageComposer_button mx_MessageComposer_hangup",onClick:()=>{if(e.isConference)return void d.a.dispatch({action:e.canEndConference?"end_conference":"hangup_conference",room_id:e.roomId});const t=pe.b.sharedInstance().getCallForRoom(e.roomId);if(!t)return;const n=t.state===$n.e.Ringing?"reject":"hangup";d.a.dispatch({action:n,room_id:t.roomId})},title:t,disabled:!n})}R()(Pp,"propTypes",{permalinkCreator:Se.a.instanceOf(ya.a).isRequired}),Lp.propTypes={me:Se.a.object.isRequired},Up.propTypes={roomId:Se.a.string.isRequired},Bp.propTypes={roomId:Se.a.string.isRequired},jp.propTypes={roomId:Se.a.string.isRequired,isConference:Se.a.bool.isRequired,canEndConference:Se.a.bool,isInConference:Se.a.bool};const Gp=({addEmoji:e})=>{const[t,n,r,a]=Object(o.o)();let s;if(t){const t=n.current.getBoundingClientRect(),r=u.getComponent("emojipicker.EmojiPicker");s=i.a.createElement(o.b,Z()({},Object(o.k)(t),{onFinished:a,catchTab:!1}),i.a.createElement(r,{onChoose:e,showQuickReactions:!0}))}const l=M()("mx_MessageComposer_button","mx_MessageComposer_emoji",{mx_MessageComposer_button_highlight:t});return i.a.createElement(i.a.Fragment,null,i.a.createElement(o.d,{className:l,onClick:r,isExpanded:t,title:Object(c.a)("Emoji picker"),inputRef:n}),s)};class qp extends i.a.Component{constructor(e){super(e),R()(this,"onAction",e=>{"upload_file"===e.action&&this.onUploadClick()}),this.onUploadClick=this.onUploadClick.bind(this),this.onUploadFileInputChange=this.onUploadFileInputChange.bind(this),this._uploadInput=Object(r.createRef)(),this._dispatcherRef=d.a.register(this.onAction)}componentWillUnmount(){d.a.unregister(this._dispatcherRef)}onUploadClick(e){X.a.get().isGuest()?d.a.dispatch({action:"require_registration"}):this._uploadInput.current.click()}onUploadFileInputChange(e){if(0===e.target.files.length)return;const t=[];for(let n=0;n<e.target.files.length;++n)t.push(e.target.files[n]);fl.a.sharedInstance().sendContentListToRoom(t,this.props.roomId,X.a.get()),e.target.value=""}render(){return i.a.createElement(L.a,{className:"mx_MessageComposer_button mx_MessageComposer_upload",onClick:this.onUploadClick,title:Object(c.a)("Upload file")},i.a.createElement("input",{ref:this._uploadInput,type:"file",style:{display:"none"},multiple:!0,onChange:this.onUploadFileInputChange}))}}R()(qp,"propTypes",{roomId:Se.a.string.isRequired});class Hp extends i.a.Component{constructor(e){super(e),R()(this,"onAction",e=>{"reply_to_event"===e.action&&setTimeout(()=>{this.props.resizeNotifier.notifyTimelineHeightChanged()},100)}),R()(this,"_onWidgetUpdate",()=>{this.setState({hasConference:Vr.b.instance.doesRoomHaveConference(this.props.room)})}),R()(this,"_onActiveWidgetUpdate",()=>{this.setState({joinedConference:Vr.b.instance.isJoinedToConferenceIn(this.props.room)})}),this.onInputStateChanged=this.onInputStateChanged.bind(this),this._onRoomStateEvents=this._onRoomStateEvents.bind(this),this._onTombstoneClick=this._onTombstoneClick.bind(this),this.renderPlaceholderText=this.renderPlaceholderText.bind(this),Vr.b.instance.on(f.b,this._onWidgetUpdate),Jn.a.on("update",this._onActiveWidgetUpdate),this._dispatcherRef=null,this.state={tombstone:this._getRoomTombstone(),canSendMessages:this.props.room.maySendMessage(),showCallButtons:P.a.getValue("showCallButtonsInComposer"),hasConference:Vr.b.instance.doesRoomHaveConference(this.props.room),joinedConference:Vr.b.instance.isJoinedToConferenceIn(this.props.room)}}componentDidMount(){this.dispatcherRef=d.a.register(this.onAction),X.a.get().on("RoomState.events",this._onRoomStateEvents),this._waitForOwnMember()}_waitForOwnMember(){const e=this.props.room.getMember(X.a.get().getUserId());e?this.setState({me:e}):this.props.room.loadMembersIfNeeded().then(()=>{const e=this.props.room.getMember(X.a.get().getUserId());this.setState({me:e})})}componentWillUnmount(){X.a.get()&&X.a.get().removeListener("RoomState.events",this._onRoomStateEvents),Vr.b.instance.removeListener(f.b,this._onWidgetUpdate),Jn.a.removeListener("update",this._onActiveWidgetUpdate),d.a.unregister(this.dispatcherRef)}_onRoomStateEvents(e,t){e.getRoomId()===this.props.room.roomId&&("m.room.tombstone"===e.getType()&&this.setState({tombstone:this._getRoomTombstone()}),"m.room.power_levels"===e.getType()&&this.setState({canSendMessages:this.props.room.maySendMessage()}))}_getRoomTombstone(){return this.props.room.currentState.getStateEvents("m.room.tombstone","")}onInputStateChanged(e){e=Object.assign({},this.state.inputState,e),this.setState({inputState:e})}_onTombstoneClick(e){e.preventDefault();const t=this.state.tombstone.getContent().replacement_room,n=X.a.get().getRoom(t);let o=null;if(n){const e=n.currentState.getStateEvents("m.room.create","");e&&e.getId()&&(o=e.getId())}const r=[this.state.tombstone.getSender().split(":").splice(1).join(":")];d.a.dispatch({action:"view_room",highlighted:!0,event_id:o,room_id:t,auto_join:!0,_type:"tombstone",via_servers:r,opts:{viaServers:r}})}renderPlaceholderText(){return this.props.replyToEvent?this.props.e2eStatus?Object(c.a)("Send an encrypted reply…"):Object(c.a)("Send a reply…"):this.props.e2eStatus?Object(c.a)("Send an encrypted message…"):Object(c.a)("Send a message…")}addEmoji(e){d.a.dispatch({action:"insert_emoji",emoji:e})}render(){const e=[this.state.me?i.a.createElement(Lp,{key:"controls_avatar",me:this.state.me}):null,this.props.e2eStatus?i.a.createElement(bi.b,{key:"e2eIcon",status:this.props.e2eStatus,className:"mx_MessageComposer_e2eIcon"}):null];if(!this.state.tombstone&&this.state.canSendMessages){const t=u.getComponent("rooms.SendMessageComposer"),n=this.props.callState&&"ended"!==this.props.callState;if(e.push(i.a.createElement(t,{ref:e=>this.messageComposerInput=e,key:"controls_input",room:this.props.room,placeholder:this.renderPlaceholderText(),resizeNotifier:this.props.resizeNotifier,permalinkCreator:this.props.permalinkCreator,replyToEvent:this.props.replyToEvent}),i.a.createElement(qp,{key:"controls_upload",roomId:this.props.room.roomId}),i.a.createElement(Gp,{key:"emoji_button",addEmoji:this.addEmoji})),P.a.getValue($e.a.Widgets)&&e.push(i.a.createElement(Fp,{key:"stickerpicker_controls_button",room:this.props.room})),this.state.showCallButtons)if(this.state.hasConference){const t=Sn.a.canUserModifyWidgets(this.props.room.roomId);e.push(i.a.createElement(jp,{key:"controls_hangup",roomId:this.props.room.roomId,isConference:!0,canEndConference:t,isInConference:this.state.joinedConference}))}else n?e.push(i.a.createElement(jp,{key:"controls_hangup",roomId:this.props.room.roomId,isConference:!1})):e.push(i.a.createElement(Up,{key:"controls_call",roomId:this.props.room.roomId}),i.a.createElement(Bp,{key:"controls_videocall",roomId:this.props.room.roomId}))}else if(this.state.tombstone){const t=this.state.tombstone.getContent().replacement_room,o=t?i.a.createElement("a",{href:Object(ya.f)(t),className:"mx_MessageComposer_roomReplaced_link",onClick:this._onTombstoneClick},Object(c.a)("The conversation continues here.")):"";e.push(i.a.createElement("div",{className:"mx_MessageComposer_replaced_wrapper",key:"room_replaced"},i.a.createElement("div",{className:"mx_MessageComposer_replaced_valign"},i.a.createElement("img",{className:"mx_MessageComposer_roomReplaced_icon",src:n(1598)}),i.a.createElement("span",{className:"mx_MessageComposer_roomReplaced_header"},Object(c.a)("This room has been replaced and is no longer active.")),i.a.createElement("br",null),o)))}else e.push(i.a.createElement("div",{key:"controls_error",className:"mx_MessageComposer_noperm_error"},Object(c.a)("You do not have permission to post to this room")));return i.a.createElement("div",{className:"mx_MessageComposer mx_GroupLayout"},i.a.createElement("div",{className:"mx_MessageComposer_wrapper"},i.a.createElement(Pp,{permalinkCreator:this.props.permalinkCreator}),i.a.createElement("div",{className:"mx_MessageComposer_row"},e)))}}Hp.propTypes={room:Se.a.object.isRequired,callState:Se.a.string,showApps:Se.a.bool};var Vp=n(769),zp=n(799),Kp=n(1599);function Wp(e){return e.canonicalAlias||(e.aliases?e.aliases[0]:"")}const Yp=Se.a.shape({name:Se.a.string,topic:Se.a.string,roomId:Se.a.string,avatarUrl:Se.a.string,numJoinedMembers:Se.a.number,canonicalAlias:Se.a.string,aliases:Se.a.arrayOf(Se.a.string),worldReadable:Se.a.bool,guestCanJoin:Se.a.bool});class $p extends i.a.Component{constructor(e){super(e),R()(this,"onClick",e=>{e.preventDefault(),this.props.onClick&&this.props.onClick(e,this.props.room)}),R()(this,"onTopicClick",e=>{e.stopPropagation()}),this._topic=Object(r.createRef)()}componentDidMount(){this._linkifyTopic()}componentDidUpdate(){this._linkifyTopic()}_linkifyTopic(){this._topic.current&&Object(ga.f)(this._topic.current)}render(){const e=u.getComponent("avatars.BaseAvatar"),t=this.props.room,n=t.name||Wp(t)||Object(c.a)("Unnamed room"),o=t.worldReadable?i.a.createElement("div",{className:"mx_RoomDirectory_perm"},Object(c.a)("World readable")):i.a.createElement("div",null),r=t.guestCanJoin?i.a.createElement("div",{className:"mx_RoomDirectory_perm"},Object(c.a)("Guests can join")):i.a.createElement("div",null),a=o||r?i.a.createElement("div",{className:"mx_RoomDirectory_perms"},o," ",r):i.a.createElement("div",null);return i.a.createElement("tr",{key:t.roomId,onClick:this.onClick,onMouseDown:this.props.onMouseDown},i.a.createElement("td",{className:"mx_RoomDirectory_roomAvatar"},i.a.createElement(e,{width:24,height:24,resizeMethod:"crop",name:n,idName:n,url:Object(ic.a)(X.a.get().getHomeserverUrl(),t.avatarUrl,24,24,"crop")})),i.a.createElement("td",{className:"mx_RoomDirectory_roomDescription"},i.a.createElement("div",{className:"mx_RoomDirectory_name"},n)," ",a,i.a.createElement("div",{className:"mx_RoomDirectory_topic",ref:this._topic,onClick:this.onTopicClick},t.topic),i.a.createElement("div",{className:"mx_RoomDirectory_alias"},Wp(t))),i.a.createElement("td",{className:"mx_RoomDirectory_roomMemberCount"},t.numJoinedMembers))}}R()($p,"propTypes",{room:Yp,onClick:Se.a.func,onMouseDown:Se.a.func});class Qp extends i.a.Component{constructor(...e){super(...e),R()(this,"onDetailsClick",(e,t)=>{d.a.dispatch({action:"view_room",room_id:t.roomId,room_alias:t.canonicalAlias||(t.aliases||[])[0]})})}getRows(){if(!this.props.rooms)return[];const e=u.getComponent("rooms.RoomDetailRow");return this.props.rooms.map((t,n)=>i.a.createElement(e,{key:n,room:t,onClick:this.onDetailsClick}))}render(){let e;return e=0===this.getRows().length?i.a.createElement("i",null,Object(c.a)("No rooms to show")):i.a.createElement("table",{className:"mx_RoomDirectory_table"},i.a.createElement("tbody",null,this.getRows())),i.a.createElement("div",{className:M()("mx_RoomDetailList",this.props.className)},e)}}R()(Qp,"propTypes",{rooms:Se.a.arrayOf(Yp),className:Se.a.string});var Xp=n(775),Jp=n(765),Zp=n(768),em=n(767);class tm extends i.a.Component{render(){const e=u.getComponent("messages.DateSeparator"),t=u.getComponent("rooms.EventTile"),n=this.props.searchResult,o=n.context.getEvent(),r=o.getId(),a=o.getTs(),s=[i.a.createElement(e,{key:a+"-search",ts:a})],c=n.context.getTimeline();for(let e=0;e<c.length;e++){const o=c[e];let a;const l=e!=n.context.getOurEventIndex();l||(a=this.props.searchHighlights),Object(ut.b)(o)&&s.push(i.a.createElement(t,{key:`${r}+${e}`,mxEvent:o,contextual:l,highlights:a,permalinkCreator:this.props.permalinkCreator,highlightLink:this.props.resultLink,onHeightChanged:this.props.onHeightChanged,isTwelveHour:P.a.getValue("showTwelveHourTimestamps"),enableFlair:P.a.getValue($e.a.Flair)}))}return i.a.createElement("li",{"data-scroll-tokens":r},s)}}R()(tm,"propTypes",{searchResult:Se.a.object.isRequired,searchHighlights:Se.a.array,resultLink:Se.a.string,onHeightChanged:Se.a.func});class nm{constructor(e,t){R()(this,"history",[]),R()(this,"prefix",void 0),R()(this,"lastIndex",0),R()(this,"currentIndex",0),this.prefix=t+e;let n,o=0;for(;n=sessionStorage.getItem(`${this.prefix}[${o}]`);){try{this.history.push(JSON.parse(n))}catch(e){console.warn("Throwing away unserialisable history",e);break}++o}this.lastIndex=this.history.length-1,this.currentIndex=this.lastIndex+1}static createItem(e,t){return{parts:e.serializeParts(),replyEventId:t?t.getId():void 0}}save(e,t){const n=nm.createItem(e,t);this.history.push(n),this.currentIndex=this.history.length,this.lastIndex+=1,sessionStorage.setItem(`${this.prefix}[${this.lastIndex}]`,JSON.stringify(n))}getItem(e){return this.currentIndex=Object(_r.clamp)(this.currentIndex+e,0,this.history.length-1),this.history[this.currentIndex]}}var om=n(306),rm=n(659),im=n.n(rm);function am(e,t,n){const o=gp(e);o&&(e=_p(e)),fp(e,"//")&&(e=bp(e,"/"));const r={msgtype:o?"m.emote":"m.text",body:mp(e=function(e){const{parts:t}=e;if(t.length){const n=t[0];"plain"===n.type&&n.text.startsWith("\\/")&&(e=e.clone()).removeText({index:0,offset:0},1)}return e}(e))},i=pp(e,{forceHTML:!!n});return i&&(r.format="org.matrix.custom.html",r.formatted_body=i),n&&function(e,t,n){const o=jd.a.makeReplyMixIn(t);Object.assign(e,o);const r=jd.a.getNestedReplyText(t,n);r&&(e.formatted_body&&(e.formatted_body=r.html+e.formatted_body),e.body=r.body+e.body)}(r,n,t),r}class sm extends i.a.Component{constructor(e,t){super(e,t),R()(this,"_setEditorRef",e=>{this._editorRef=e}),R()(this,"_onKeyDown",e=>{if(this._editorRef.isComposing(e))return;const t=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;(!!P.a.getValue("MessageComposerInput.ctrlEnterToSend")?e.key===gn.a.ENTER&&Object(gn.d)(e):e.key===gn.a.ENTER&&!t)?(this._sendMessage(),e.preventDefault()):e.key===gn.a.ARROW_UP?this.onVerticalArrow(e,!0):e.key===gn.a.ARROW_DOWN?this.onVerticalArrow(e,!1):this._prepareToEncrypt?this._prepareToEncrypt():e.key===gn.a.ESCAPE&&d.a.dispatch({action:"reply_to_event",event:null})}),R()(this,"_saveStoredEditorState",()=>{if(this.model.isEmpty)this._clearStoredEditorState();else{const e=nm.createItem(this.model,this.props.replyToEvent);localStorage.setItem(this._editorStateKey,JSON.stringify(e))}}),R()(this,"onAction",e=>{switch(e.action){case"reply_to_event":case h.a.FocusComposer:this._editorRef&&this._editorRef.focus();break;case"insert_mention":this._insertMention(e.user_id);break;case"quote":this._insertQuotedMessage(e.event);break;case"insert_emoji":this._insertEmoji(e.emoji)}}),R()(this,"_insertEmoji",e=>{const{model:t}=this,{partCreator:n}=t,o=this._editorRef.getCaret(),r=t.positionForOffset(o.offset,o.atNodeEnd);t.transform(()=>{const i=t.insert([n.plain(e)],r);return t.positionForOffset(o.offset+i,!0)})}),R()(this,"_onPaste",e=>{const{clipboardData:t}=e;if(t.files.length&&!t.types.some(e=>"text/plain"===e))return fl.a.sharedInstance().sendContentListToRoom(Array.from(t.files),this.props.room.roomId,this.context),!0}),this.model=null,this._editorRef=null,this.currentlyComposedEditorState=null,this.context.isCryptoEnabled()&&this.context.isRoomEncrypted(this.props.room.roomId)&&(this._prepareToEncrypt=new kp.a(()=>{this.context.prepareToEncrypt(this.props.room)},6e4)),window.addEventListener("beforeunload",this._saveStoredEditorState)}onVerticalArrow(e,t){if(e.shiftKey||e.metaKey)return;const n=e.altKey&&e.ctrlKey,o=!e.altKey&&!e.ctrlKey&&t&&!this.props.replyToEvent;if(n){this.selectSendHistory(t)&&e.preventDefault()}else if(o&&this._editorRef.isSelectionCollapsed()&&this._editorRef.isCaretAtStart()){const t=Zl(this.props.room,!1);t&&(e.preventDefault(),d.a.dispatch({action:"edit_event",event:t}))}}selectSendHistory(e){const t=e?-1:1;if(this.sendHistoryManager.currentIndex===this.sendHistoryManager.history.length){if(!e)return;this.currentlyComposedEditorState=this.model.serializeParts()}else if(this.sendHistoryManager.currentIndex+t===this.sendHistoryManager.history.length)return this.model.reset(this.currentlyComposedEditorState),void(this.sendHistoryManager.currentIndex=this.sendHistoryManager.history.length);const{parts:n,replyEventId:o}=this.sendHistoryManager.getItem(t);d.a.dispatch({action:"reply_to_event",event:o?this.props.room.findEventById(o):null}),n&&(this.model.reset(n),this._editorRef.focus())}_isSlashCommand(){const e=this.model.parts[0];if(e){if("command"===e.type&&e.text.startsWith("/")&&!e.text.startsWith("//"))return!0;if(e.text.startsWith("/")&&!e.text.startsWith("//")&&("plain"===e.type||"pill-candidate"===e.type))return!0}return!1}_sendQuickReaction(){const e=this.props.room.getLiveTimeline().getEvents(),t=this.model.parts[1].text;for(let n=e.length-1;n>=0;n--)if("m.room.message"===e[n].getType()){let o=!0;const r=e[n],i=X.a.get().getUserId(),a=this.props.room.getUnfilteredTimelineSet().getRelationsForEvent(r.getId(),"m.annotation","m.reaction");if(a){o=![...a.getAnnotationsBySender()[i]||[]].filter(e=>!e.isRedacted()).map(e=>e.getRelation().key).includes(t)}o&&(X.a.get().sendEvent(r.getRoomId(),"m.reaction",{"m.relates_to":{rel_type:"m.annotation",event_id:r.getId(),key:t}}),d.a.dispatch({action:"message_sent"}));break}}_getSlashCommand(){const e=this.model.parts.reduce((e,t)=>"user-pill"===t.type?e+t.resourceId:e+t.text,"");return[La(this.props.room.roomId,e),e]}async _runSlashCommand(e){const t=e();let n=t.error;if(t.promise)try{await t.promise}catch(e){n=e}if(n){console.error("Command failure: %s",n);const e=u.getComponent("dialogs.ErrorDialog"),o=!!t.promise?Object(c.b)("Server error"):Object(c.b)("Command error");let r;r="string"==typeof n?n:n.message?n.message:Object(c.a)("Server unavailable, overloaded, or something else went wrong."),Ie.a.createTrackedDialog(o,"",e,{title:Object(c.a)(o),description:r})}else console.log("Command success.")}async _sendMessage(){if(this.model.isEmpty)return;let e=!0;if(!gp(this.model)&&this._isSlashCommand()){const[t,n]=this._getSlashCommand();if(t)e=!1,this._runSlashCommand(t);else{const e=u.getComponent("dialogs.QuestionDialog"),{finished:t}=Ie.a.createTrackedDialog("Unknown command","",e,{title:Object(c.a)("Unknown Command"),description:i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Unrecognised command: %(commandText)s",{commandText:n})),i.a.createElement("p",null,Object(c.a)("You can use <code>/help</code> to list available commands. Did you mean to send this as a message?",{},{code:e=>i.a.createElement("code",null,e)})),i.a.createElement("p",null,Object(c.a)("Hint: Begin your message with <code>//</code> to start it with a slash.",{},{code:e=>i.a.createElement("code",null,e)}))),button:Object(c.a)("Send as message")}),[o]=await t;if(!o)return}}(function(e){const t=e.parts;if(0==t.length)return!1;const n=mp(e);if(t.length<=2){const e=n.startsWith("+")||n.startsWith("+ "),t=n.match(im.a);if(e&&t&&1==t.length)return t[0]===n.substring(1)||t[0]===n.substring(2)}return!1})(this.model)&&(e=!1,this._sendQuickReaction());const t=this.props.replyToEvent;if(e){const e=y.a.getTimestamp(),{roomId:n}=this.props.room,o=am(this.model,this.props.permalinkCreator,t);if(!o.body.trim())return;const r=this.context.sendMessage(n,o);t&&d.a.dispatch({action:"reply_to_event",event:null}),d.a.dispatch({action:"message_sent"}),xa.CHAT_EFFECTS.forEach(e=>{Object(om.containsEmoji)(o,e.emojis)&&d.a.dispatch({action:"effects."+e.command})}),y.a.instance.trackSendMessage(e,r,n,!1,!!t,o)}this.sendHistoryManager.save(this.model,t),this.model.reset([]),this._editorRef.clearUndoHistory(),this._editorRef.focus(),this._clearStoredEditorState()}componentWillUnmount(){d.a.unregister(this.dispatcherRef),window.removeEventListener("beforeunload",this._saveStoredEditorState),this._saveStoredEditorState()}UNSAFE_componentWillMount(){const e=new js(this.props.room,this.context),t=this._restoreStoredEditorState(e)||[];this.model=new lp(t,e),this.dispatcherRef=d.a.register(this.onAction),this.sendHistoryManager=new nm(this.props.room.roomId,"mx_cider_history_")}get _editorStateKey(){return"mx_cider_state_"+this.props.room.roomId}_clearStoredEditorState(){localStorage.removeItem(this._editorStateKey)}_restoreStoredEditorState(e){const t=localStorage.getItem(this._editorStateKey);if(t)try{const{parts:n,replyEventId:o}=JSON.parse(t),r=n.map(t=>e.deserializePart(t));return o&&d.a.dispatch({action:"reply_to_event",event:this.props.room.findEventById(o)}),r}catch(e){console.error(e)}}_insertMention(e){const{model:t}=this,{partCreator:n}=t,o=this.props.room.getMember(e),r=o?o.rawDisplayName:e,i=this._editorRef.getCaret(),a=t.positionForOffset(i.offset,i.atNodeEnd),s=a.index>0?a.index:0,c=n.createMentionParts(s,r,e);t.transform(()=>{const e=t.insert(c,a);return t.positionForOffset(i.offset+e,!0)}),this._editorRef&&this._editorRef.focus()}_insertQuotedMessage(e){const{model:t}=this,{partCreator:n}=t,o=Ws(e,n,{isQuotedMessage:!0});o.push(n.newline()),o.push(n.newline()),t.transform(()=>{const e=t.insert(o,t.positionForOffset(0));return t.positionForOffset(e,!0)}),this._editorRef&&this._editorRef.focus()}render(){return i.a.createElement("div",{className:"mx_SendMessageComposer",onClick:this.focusComposer,onKeyDown:this._onKeyDown},i.a.createElement(nc,{ref:this._setEditorRef,model:this.model,room:this.props.room,label:this.props.placeholder,placeholder:this.props.placeholder,onPaste:this._onPaste}))}}R()(sm,"propTypes",{room:Se.a.object.isRequired,placeholder:Se.a.string,permalinkCreator:Se.a.object.isRequired,replyToEvent:Se.a.object}),R()(sm,"contextType",b.a);var cm=n(776);class lm extends i.a.Component{constructor(e){super(e),R()(this,"onRoomStateEvents",e=>{if("m.room.third_party_invite"===e.getType()&&e.getStateKey()===this.state.stateKey){const t=e.getContent().display_name,n={invited:Object(nn.c)(e)};t&&(n.displayName=t),this.setState(n)}}),R()(this,"onCancel",()=>{d.a.dispatch({action:"view_3pid_invite",event:null})}),R()(this,"onKickClick",()=>{X.a.get().sendStateEvent(this.state.roomId,"m.room.third_party_invite",{},this.state.stateKey).catch(e=>{console.error(e),this.setState({invited:!0});const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Revoke 3pid invite failed","",t,{title:Object(c.a)("Failed to revoke invite"),description:Object(c.a)("Could not revoke the invite. The server may be experiencing a temporary problem or you do not have sufficient permissions to revoke the invite.")})}),this.setState({invited:!1})});const t=X.a.get().getRoom(this.props.event.getRoomId()),n=t.getMember(X.a.get().getUserId()),o=t.currentState.getStateEvents("m.room.power_levels","");let r=o?o.getContent().kick:50;"number"!=typeof r&&(r=50);const i=t.getMember(this.props.event.getSender());this.state={stateKey:this.props.event.getStateKey(),roomId:this.props.event.getRoomId(),displayName:this.props.event.getContent().display_name,invited:!0,canKick:!!n&&n.powerLevel>r,senderName:i?i.name:this.props.event.getSender()}}componentDidMount(){X.a.get().on("RoomState.events",this.onRoomStateEvents)}componentWillUnmount(){const e=X.a.get();e&&e.removeListener("RoomState.events",this.onRoomStateEvents)}render(){const e=u.getComponent("elements.AccessibleButton");let t=null;return this.state.canKick&&this.state.invited&&(t=i.a.createElement("div",{className:"mx_MemberInfo_container"},i.a.createElement("h3",null,Object(c.a)("Admin Tools")),i.a.createElement("div",{className:"mx_MemberInfo_buttons"},i.a.createElement(e,{className:"mx_MemberInfo_field",onClick:this.onKickClick},Object(c.a)("Revoke invite"))))),i.a.createElement("div",{className:"mx_MemberInfo",role:"tabpanel"},i.a.createElement("div",{className:"mx_MemberInfo_name"},i.a.createElement(e,{className:"mx_MemberInfo_cancel",onClick:this.onCancel,title:Object(c.a)("Close")}),i.a.createElement("h2",null,this.state.displayName)),i.a.createElement("div",{className:"mx_MemberInfo_container"},i.a.createElement("div",{className:"mx_MemberInfo_profile"},i.a.createElement("div",{className:"mx_MemberInfo_profileField"},Object(c.a)("Invited by %(sender)s",{sender:this.state.senderName})))),t)}}R()(lm,"propTypes",{event:Se.a.instanceOf(Pe.j).isRequired});class um extends i.a.Component{render(){return i.a.createElement("div",{className:"mx_TopUnreadMessagesBar"},i.a.createElement(g.a,{className:"mx_TopUnreadMessagesBar_scrollUp",title:Object(c.a)("Jump to first unread message."),onClick:this.props.onScrollUpClick}),i.a.createElement(g.a,{className:"mx_TopUnreadMessagesBar_markAsRead",title:Object(c.a)("Mark all as read"),onClick:this.props.onCloseClick}))}}function dm(e,t=[]){const n=[],o=Object.keys(e.currentState.members);for(let r=0;r<o.length;++r){const i=o[r];e.currentState.members[i].typing&&-1===t.indexOf(i)&&n.push(e.currentState.members[i])}return n}R()(um,"propTypes",{onScrollUpClick:Se.a.func,onCloseClick:Se.a.func});var hm=n(250);class pm extends i.a.Component{constructor(...e){var t;super(...e),R()(this,"state",{usersTyping:(t=this.props.room,dm(t,[X.a.get().getUserId()])),delayedStopTypingTimers:{}}),R()(this,"isVisible",()=>this._isVisible(this.state)),R()(this,"onRoomTimeline",(e,t)=>{if(t&&t.roomId===this.props.room.roomId){const t=e.getSender(),n=this.state.usersTyping.filter(e=>e.userId!==t);this.setState({usersTyping:n}),this._abortUserTimer(t)}}),R()(this,"onRoomMemberTyping",(e,t)=>{const n=function(e){return dm(e,[X.a.get().getUserId()].concat(X.a.get().getIgnoredUsers()))}(this.props.room);this.setState({delayedStopTypingTimers:this._updateDelayedStopTypingTimers(n),usersTyping:n})})}componentDidMount(){X.a.get().on("RoomMember.typing",this.onRoomMemberTyping),X.a.get().on("Room.timeline",this.onRoomTimeline)}componentDidUpdate(e,t){const n=this._isVisible(t),o=this._isVisible(this.state);this.props.onShown&&!n&&o?this.props.onShown():this.props.onHidden&&n&&!o&&this.props.onHidden()}componentWillUnmount(){const e=X.a.get();e&&(e.removeListener("RoomMember.typing",this.onRoomMemberTyping),e.removeListener("Room.timeline",this.onRoomTimeline)),Object.values(this.state.delayedStopTypingTimers).forEach(e=>e.abort())}_isVisible(e){return 0!==e.usersTyping.length||0!==Object.keys(e.delayedStopTypingTimers).length}_updateDelayedStopTypingTimers(e){const t=this.state.usersTyping.filter(t=>!e.some(e=>t.userId===e.userId)),n=e.filter(e=>!this.state.usersTyping.some(t=>e.userId===t.userId));n.forEach(e=>{const t=this.state.delayedStopTypingTimers[e.userId];t&&t.abort()});let o=Object.assign({},this.state.delayedStopTypingTimers);return o=n.reduce((e,t)=>(delete e[t.userId],e),o),o=t.reduce((e,t)=>{if(!e[t.userId]){const n=new hm.a(5e3);e[t.userId]=n,n.start(),n.finished().then(()=>this._removeUserTimer(t.userId),()=>{})}return e},o),o}_abortUserTimer(e){const t=this.state.delayedStopTypingTimers[e];t&&(t.abort(),this._removeUserTimer(e))}_removeUserTimer(e){if(this.state.delayedStopTypingTimers[e]){const t=Object.assign({},this.state.delayedStopTypingTimers);delete t[e],this.setState({delayedStopTypingTimers:t})}}_renderTypingIndicatorAvatars(e,t){let n=0;e.length>t&&(n=e.length-t+1,e=e.slice(0,t-1));const o=e.map(e=>i.a.createElement($o.a,{key:e.userId,member:e,width:24,height:24,resizeMethod:"crop",viewUserOnClick:!0}));return n>0&&o.push(i.a.createElement("span",{className:"mx_WhoIsTypingTile_remainingAvatarPlaceholder",key:"others"},"+",n)),o}render(){let e=this.state.usersTyping;const t=Object.keys(this.state.delayedStopTypingTimers).map(e=>this.props.room.getMember(e));e=e.concat(t),e.sort((e,t)=>e.name.localeCompare(t.name));const n=function(e,t){let n=0;if(e.length>t&&(n=e.length-t+1),0===e.length)return"";if(1===e.length)return Object(c.a)("%(displayName)s is typing …",{displayName:e[0].name});const o=e.map(e=>e.name);if(n>=1)return Object(c.a)("%(names)s and %(count)s others are typing …",{names:o.slice(0,t-1).join(", "),count:n});{const e=o.pop();return Object(c.a)("%(names)s and %(lastPerson)s are typing …",{names:o.join(", "),lastPerson:e})}}(e,this.props.whoIsTypingLimit);return n?i.a.createElement("li",{className:"mx_WhoIsTypingTile","aria-atomic":"true"},i.a.createElement("div",{className:"mx_WhoIsTypingTile_avatars"},this._renderTypingIndicatorAvatars(e,this.props.whoIsTypingLimit)),i.a.createElement("div",{className:"mx_WhoIsTypingTile_label"},n)):i.a.createElement("div",{className:"mx_WhoIsTypingTile_empty"})}}R()(pm,"propTypes",{room:Se.a.object.isRequired,onShown:Se.a.func,onHidden:Se.a.func,whoIsTypingLimit:Se.a.number}),R()(pm,"defaultProps",{whoIsTypingLimit:3});const mm=({avatarUrl:e,avatarAltText:t,avatarName:n,uploadAvatar:o,removeAvatar:a})=>{const[s,l]=Object(r.useState)(!1),u={onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)};let d,h,p=i.a.createElement(g.a,Z()({element:"div",onClick:o,className:"mx_AvatarSetting_avatarPlaceholder"},u));e&&(p=i.a.createElement(g.a,Z()({element:"img",src:e,alt:t,"aria-label":t,onClick:o},u))),o&&(d=i.a.createElement(g.a,Z()({onClick:o,className:"mx_AvatarSetting_uploadButton"},u))),e&&a&&(h=i.a.createElement(g.a,{onClick:a,kind:"link_sm"},Object(c.a)("Remove")));const m=M()({mx_AvatarSetting_avatar:!0,mx_AvatarSetting_avatar_hovering:s});return i.a.createElement("div",{className:m},p,i.a.createElement("div",{className:"mx_AvatarSetting_hover"},i.a.createElement("div",{className:"mx_AvatarSetting_hoverBg"}),i.a.createElement("span",null,Object(c.a)("Upload"))),d,h)};mm.propTypes={avatarUrl:Se.a.string,avatarName:Se.a.string.isRequired,uploadAvatar:Se.a.func,removeAvatar:Se.a.func,avatarAltText:Se.a.string.isRequired};var gm=mm;class fm extends i.a.Component{constructor(e){super(e),R()(this,"onRoomStateEvents",e=>{this.props.room&&e.getRoomId()===this.props.room.roomId&&"m.room.avatar"===e.getType()&&e.getSender()===X.a.get().getUserId()&&(e.getContent().url||(this.avatarSet=!1,this.setState({})))}),R()(this,"onFileSelected",e=>(this.avatarSet=!0,this.setAvatarFromFile(e.target.files[0]))),R()(this,"onError",e=>{this.setState({errorText:Object(c.a)("Failed to upload profile picture!")})}),this.state={avatarUrl:this.props.initialAvatarUrl,phase:fm.Phases.Display}}componentDidMount(){X.a.get().on("RoomState.events",this.onRoomStateEvents)}UNSAFE_componentWillReceiveProps(e){this.avatarSet||this.setState({avatarUrl:e.initialAvatarUrl})}componentWillUnmount(){X.a.get()&&X.a.get().removeListener("RoomState.events",this.onRoomStateEvents)}setAvatarFromFile(e){let t=null;this.setState({phase:fm.Phases.Uploading});const n=this,o=X.a.get().uploadContent(e).then((function(e){return t=e,n.props.room?X.a.get().sendStateEvent(n.props.room.roomId,"m.room.avatar",{url:e},""):X.a.get().setAvatarUrl(e)}));return o.then((function(){n.setState({phase:fm.Phases.Display,avatarUrl:X.a.get().mxcUrlToHttp(t)})}),(function(e){n.setState({phase:fm.Phases.Error}),n.onError(e)})),o}render(){let e,t;if(this.props.room&&!this.avatarSet){const t=u.getComponent("avatars.RoomAvatar");e=i.a.createElement(t,{room:this.props.room,width:this.props.width,height:this.props.height,resizeMethod:"crop"})}else{const t=u.getComponent("avatars.BaseAvatar");e=i.a.createElement(t,{width:this.props.width,height:this.props.height,resizeMethod:"crop",name:"?",idName:X.a.get().getUserIdLocalpart(),url:this.state.avatarUrl})}switch(this.props.showUploadSection&&(t=i.a.createElement("div",{className:this.props.className},Object(c.a)("Upload new:"),i.a.createElement("input",{type:"file",accept:"image/*",onChange:this.onFileSelected}),this.state.errorText)),this.state.phase){case fm.Phases.Display:case fm.Phases.Error:return i.a.createElement("div",null,i.a.createElement("div",{className:this.props.className},e),t);case fm.Phases.Uploading:return i.a.createElement(We.a,null)}}}R()(fm,"propTypes",{initialAvatarUrl:Se.a.string,room:Se.a.object,showUploadSection:Se.a.bool,width:Se.a.number,height:Se.a.number,className:Se.a.string}),R()(fm,"Phases",{Display:"display",Uploading:"uploading",Error:"error"}),R()(fm,"defaultProps",{showUploadSection:!0,className:"",width:80,height:80});class _m extends i.a.Component{constructor(...e){super(...e),R()(this,"_getDisplayName",async()=>{const e=X.a.get();try{return(await e.getProfileInfo(e.getUserId())).displayname}catch(e){throw new Error("Failed to fetch display name")}}),R()(this,"_changeDisplayName",e=>X.a.get().setDisplayName(e).catch((function(e){throw new Error("Failed to set display name",e)})))}render(){const e=u.getComponent("elements.EditableTextContainer");return i.a.createElement(e,{getInitialValue:this._getDisplayName,placeholder:Object(c.a)("No display name"),blurToSubmit:!0,onSubmit:this._changeDisplayName})}}class bm extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{fieldValid:{},phase:bm.Phases.Edit,oldPassword:"",newPassword:"",newPasswordConfirm:""}),R()(this,"_onExportE2eKeysClicked",()=>{Ie.a.createTrackedDialogAsync("Export E2E Keys","Change Password",n.e(3).then(n.bind(null,1626)),{matrixClient:X.a.get()})}),R()(this,"onChangeOldPassword",e=>{this.setState({oldPassword:e.target.value})}),R()(this,"onOldPasswordValidate",async e=>{const t=await this.validateOldPasswordRules(e);return this.markFieldValid("field_old_password",t.valid),t}),R()(this,"validateOldPasswordRules",Object(bo.a)({rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Passwords can't be empty")}]})),R()(this,"onChangeNewPassword",e=>{this.setState({newPassword:e.target.value})}),R()(this,"onNewPasswordValidate",e=>{this.markFieldValid("field_new_password",e.valid)}),R()(this,"onChangeNewPasswordConfirm",e=>{this.setState({newPasswordConfirm:e.target.value})}),R()(this,"onNewPasswordConfirmValidate",async e=>{const t=await this.validatePasswordConfirmRules(e);return this.markFieldValid("field_new_password_confirm",t.valid),t}),R()(this,"validatePasswordConfirmRules",Object(bo.a)({rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Confirm password")},{key:"match",test({value:e}){return!e||e===this.state.newPassword},invalid:()=>Object(c.a)("Passwords don't match")}]})),R()(this,"onClickChange",async e=>{e.preventDefault();if(!await this.verifyFieldsBeforeSubmit())return void y.a.instance.track("onboarding_registration_submit_failed");const t=this.state.oldPassword,n=this.state.newPassword,o=this.state.newPasswordConfirm,r=this.props.onCheckPassword(t,n,o);r?this.props.onError(r):this.changePassword(t,n)})}changePassword(e,t){const n=X.a.get();if(!this.props.confirm)return void this._changePassword(n,e,t);const o=u.getComponent("dialogs.QuestionDialog");Ie.a.createTrackedDialog("Change Password","",o,{title:Object(c.a)("Warning!"),description:i.a.createElement("div",null,Object(c.a)("Changing password will currently reset any end-to-end encryption keys on all sessions, making encrypted chat history unreadable, unless you first export your room keys and re-import them afterwards. In future this will be improved.")," ",i.a.createElement("a",{href:"https://github.com/vector-im/element-web/issues/2671",target:"_blank",rel:"noreferrer noopener"},"https://github.com/vector-im/element-web/issues/2671")),button:Object(c.a)("Continue"),extraButtons:[i.a.createElement("button",{key:"exportRoomKeys",className:"mx_Dialog_primary",onClick:this._onExportE2eKeysClicked},Object(c.a)("Export E2E room keys"))],onFinished:o=>{o&&this._changePassword(n,e,t)}})}_changePassword(e,t,n){const o={type:"m.login.password",identifier:{type:"m.id.user",user:e.credentials.userId},user:e.credentials.userId,password:t};this.setState({phase:bm.Phases.Uploading}),e.setPassword(o,n).then(()=>{if(this.props.shouldAskForEmail)return this._optionallySetEmail().then(e=>{this.props.onFinished({didSetEmail:e})});this.props.onFinished()},e=>{this.props.onError(e)}).finally(()=>{this.setState({phase:bm.Phases.Edit,oldPassword:"",newPassword:"",newPasswordConfirm:""})})}_optionallySetEmail(){const e=u.getComponent("dialogs.SetEmailDialog");return Ie.a.createTrackedDialog("Do you want to set an email address?","",e,{title:Object(c.a)("Do you want to set an email address?")}).finished.then(([e])=>e)}markFieldValid(e,t){const{fieldValid:n}=this.state;n[e]=t,this.setState({fieldValid:n})}async verifyFieldsBeforeSubmit(){const e=document.activeElement;e&&e.blur();const t=["field_old_password","field_new_password","field_new_password_confirm"];for(const e of t){const t=this[e];t&&await t.validate({allowEmpty:!1})}if(await new Promise(e=>this.setState({},e)),this.allFieldsValid())return!0;const n=this.findFirstInvalidField(t);return!n||(n.focus(),n.validate({allowEmpty:!1,focused:!0}),!1)}allFieldsValid(){const e=Object.keys(this.state.fieldValid);for(let t=0;t<e.length;++t)if(!this.state.fieldValid[e[t]])return!1;return!0}findFirstInvalidField(e){for(const t of e)if(!this.state.fieldValid[t]&&this[t])return this[t];return null}render(){const e=this.props.rowClassName,t=this.props.buttonClassName;switch(this.state.phase){case bm.Phases.Edit:return i.a.createElement("form",{className:this.props.className,onSubmit:this.onClickChange},i.a.createElement("div",{className:e},i.a.createElement(Ce.a,{ref:e=>this.field_old_password=e,type:"password",label:Object(c.a)("Current password"),value:this.state.oldPassword,onChange:this.onChangeOldPassword,onValidate:this.onOldPasswordValidate})),i.a.createElement("div",{className:e},i.a.createElement(qo.a,{fieldRef:e=>this.field_new_password=e,type:"password",label:"New Password",minScore:3,value:this.state.newPassword,autoFocus:this.props.autoFocusNewPasswordInput,onChange:this.onChangeNewPassword,onValidate:this.onNewPasswordValidate,autoComplete:"new-password"})),i.a.createElement("div",{className:e},i.a.createElement(Ce.a,{ref:e=>this.field_new_password_confirm=e,type:"password",label:Object(c.a)("Confirm password"),value:this.state.newPasswordConfirm,onChange:this.onChangeNewPasswordConfirm,onValidate:this.onNewPasswordConfirmValidate,autoComplete:"new-password"})),i.a.createElement(g.a,{className:t,kind:this.props.buttonKind,onClick:this.onClickChange},this.props.buttonLabel||Object(c.a)("Change Password")));case bm.Phases.Uploading:return i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement(We.a,null))}}}R()(bm,"propTypes",{onFinished:Se.a.func,onError:Se.a.func,onCheckPassword:Se.a.func,rowClassName:Se.a.string,buttonClassName:Se.a.string,buttonKind:Se.a.string,buttonLabel:Se.a.string,confirm:Se.a.bool,autoFocusNewPasswordInput:Se.a.bool}),R()(bm,"Phases",{Edit:"edit",Uploading:"uploading",Error:"error"}),R()(bm,"defaultProps",{onFinished(){},onError(){},onCheckPassword:(e,t,n)=>t!==n?{error:Object(c.a)("New passwords don't match")}:t&&0!==t.length?void 0:{error:Object(c.a)("Passwords can't be empty")},confirm:!0});class vm extends i.a.PureComponent{constructor(e){super(e),R()(this,"onAccountData",e=>{const t=e.getType();(t.startsWith("m.cross_signing")||t.startsWith("m.secret_storage"))&&this._getUpdatedStatus()}),R()(this,"_onBootstrapClick",()=>{this._bootstrapCrossSigning({forceReset:!1})}),R()(this,"onStatusChanged",()=>{this._getUpdatedStatus()}),R()(this,"_bootstrapCrossSigning",async({forceReset:e=!1})=>{this.setState({error:null});try{const t=X.a.get();await t.bootstrapCrossSigning({authUploadDeviceSigningKeys:async e=>{const{finished:n}=Ie.a.createTrackedDialog("Cross-signing keys dialog","",xl,{title:Object(c.a)("Setting up keys"),matrixClient:t,makeRequest:e}),[o]=await n;if(!o)throw new Error("Cross-signing key upload auth canceled")},setupNewCrossSigning:e})}catch(e){this.setState({error:e}),console.error("Error bootstrapping cross-signing",e)}this._unmounted||this._getUpdatedStatus()}),R()(this,"_resetCrossSigning",()=>{Ie.a.createDialog(Ed,{onFinished:e=>{e&&this._bootstrapCrossSigning({forceReset:!0})}})}),this._unmounted=!1,this.state={error:null,crossSigningPublicKeysOnDevice:null,crossSigningPrivateKeysInStorage:null,masterPrivateKeyCached:null,selfSigningPrivateKeyCached:null,userSigningPrivateKeyCached:null,homeserverSupportsCrossSigning:null,crossSigningReady:null}}componentDidMount(){const e=X.a.get();e.on("accountData",this.onAccountData),e.on("userTrustStatusChanged",this.onStatusChanged),e.on("crossSigning.keysChanged",this.onStatusChanged),this._getUpdatedStatus()}componentWillUnmount(){this._unmounted=!0;const e=X.a.get();e&&(e.removeListener("accountData",this.onAccountData),e.removeListener("userTrustStatusChanged",this.onStatusChanged),e.removeListener("crossSigning.keysChanged",this.onStatusChanged))}async _getUpdatedStatus(){const e=X.a.get(),t=e.getCrossSigningCacheCallbacks(),n=e._crypto._crossSigningInfo,o=e._crypto._secretStorage,r=n.getId(),i=await n.isStoredInSecretStorage(o),a=!(!t||!await t.getCrossSigningKeyCache("master")),s=!(!t||!await t.getCrossSigningKeyCache("self_signing")),c=!(!t||!await t.getCrossSigningKeyCache("user_signing")),l=await e.doesServerSupportUnstableFeature("org.matrix.e2e_cross_signing"),u=await e.isCrossSigningReady();this.setState({crossSigningPublicKeysOnDevice:r,crossSigningPrivateKeysInStorage:i,masterPrivateKeyCached:a,selfSigningPrivateKeyCached:s,userSigningPrivateKeyCached:c,homeserverSupportsCrossSigning:l,crossSigningReady:u})}render(){const e=u.getComponent("elements.AccessibleButton"),{error:t,crossSigningPublicKeysOnDevice:n,crossSigningPrivateKeysInStorage:o,masterPrivateKeyCached:r,selfSigningPrivateKeyCached:a,userSigningPrivateKeyCached:s,homeserverSupportsCrossSigning:l,crossSigningReady:d}=this.state;let h,p;t&&(h=i.a.createElement("div",{className:"error"},t.toString())),p=void 0===l?i.a.createElement(We.a,null):l?d?i.a.createElement("p",null,"✅ ",Object(c.a)("Cross-signing is ready for use.")):o?i.a.createElement("p",null,Object(c.a)("Your account has a cross-signing identity in secret storage, but it is not yet trusted by this session.")):i.a.createElement("p",null,Object(c.a)("Cross-signing is not set up.")):i.a.createElement("p",null,Object(c.a)("Your homeserver does not support cross-signing."));const m=n||o||r||a||s,g=[];let f;return!(n&&o&&r&&a&&s)&&l&&g.push(i.a.createElement(e,{key:"setup",kind:"primary",onClick:this._onBootstrapClick},Object(c.a)("Set up"))),m&&g.push(i.a.createElement(e,{key:"reset",kind:"danger",onClick:this._resetCrossSigning},Object(c.a)("Reset"))),g.length&&(f=i.a.createElement("div",{className:"mx_CrossSigningPanel_buttonRow"},g)),i.a.createElement("div",null,p,i.a.createElement("details",null,i.a.createElement("summary",null,Object(c.a)("Advanced")),i.a.createElement("table",{className:"mx_CrossSigningPanel_statusList"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Cross-signing public keys:")),i.a.createElement("td",null,n?Object(c.a)("in memory"):Object(c.a)("not found"))),i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Cross-signing private keys:")),i.a.createElement("td",null,o?Object(c.a)("in secret storage"):Object(c.a)("not found in storage"))),i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Master private key:")),i.a.createElement("td",null,r?Object(c.a)("cached locally"):Object(c.a)("not found locally"))),i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Self signing private key:")),i.a.createElement("td",null,a?Object(c.a)("cached locally"):Object(c.a)("not found locally"))),i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("User signing private key:")),i.a.createElement("td",null,s?Object(c.a)("cached locally"):Object(c.a)("not found locally"))),i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Homeserver feature support:")),i.a.createElement("td",null,l?Object(c.a)("exists"):Object(c.a)("not found")))))),h,f)}}class Em extends i.a.Component{constructor(e){super(e),this.state={devices:void 0,deviceLoadError:void 0,selectedDevices:[],deleting:!1},this._unmounted=!1,this._renderDevice=this._renderDevice.bind(this),this._onDeviceSelectionToggled=this._onDeviceSelectionToggled.bind(this),this._onDeleteClick=this._onDeleteClick.bind(this)}componentDidMount(){this._loadDevices()}componentWillUnmount(){this._unmounted=!0}_loadDevices(){X.a.get().getDevices().then(e=>{this._unmounted||this.setState({devices:e.devices||[]})},e=>{if(this._unmounted)return;let t;404==e.httpStatus?t=Object(c.a)("Your homeserver does not support session management."):(console.error("Error loading sessions:",e),t=Object(c.a)("Unable to load session list")),this.setState({deviceLoadError:t})})}_deviceCompare(e,t){const n=(t.last_seen_ts||0)-(e.last_seen_ts||0);if(0!==n)return n;const o=e.device_id,r=t.device_id;return o<r?-1:o>r?1:0}_onDeviceSelectionToggled(e){if(this._unmounted)return;const t=e.device_id;this.setState((e,n)=>{const o=e.selectedDevices.slice(),r=o.indexOf(t);return-1===r?o.push(t):o.splice(r,1),{selectedDevices:o}})}_onDeleteClick(){this.setState({deleting:!0}),this._makeDeleteRequest(null).catch(e=>{if(this._unmounted)return;if(401!==e.httpStatus||!e.data||!e.data.flows)throw e;const t=u.getComponent("dialogs.InteractiveAuthDialog"),n=this.state.selectedDevices.length,o={[Le.c.PHASE_PREAUTH]:{title:Object(c.a)("Use Single Sign On to continue"),body:Object(c.a)("Confirm deleting these sessions by using Single Sign On to prove your identity.",{count:n}),continueText:Object(c.a)("Single Sign On"),continueKind:"primary"},[Le.c.PHASE_POSTAUTH]:{title:Object(c.a)("Confirm deleting these sessions"),body:Object(c.a)("Click the button below to confirm deleting these sessions.",{count:n}),continueText:Object(c.a)("Delete sessions",{count:n}),continueKind:"danger"}};Ie.a.createTrackedDialog("Delete Device Dialog","",t,{title:Object(c.a)("Authentication"),matrixClient:X.a.get(),authData:e.data,makeRequest:this._makeDeleteRequest.bind(this),aestheticsForStagePhases:{[Le.c.LOGIN_TYPE]:o,[Le.c.UNSTABLE_LOGIN_TYPE]:o}})}).catch(e=>{console.error("Error deleting sessions",e),this._unmounted}).finally(()=>{this.setState({deleting:!1})})}_makeDeleteRequest(e){return X.a.get().deleteMultipleDevices(this.state.selectedDevices,e).then(()=>{this.setState({devices:this.state.devices.filter(e=>!this.state.selectedDevices.includes(e.device_id)),selectedDevices:[]})})}_renderDevice(e){const t=u.getComponent("settings.DevicesPanelEntry");return i.a.createElement(t,{key:e.device_id,device:e,selected:this.state.selectedDevices.includes(e.device_id),onDeviceToggled:this._onDeviceSelectionToggled})}render(){const e=u.getComponent("elements.Spinner"),t=u.getComponent("elements.AccessibleButton");if(void 0!==this.state.deviceLoadError){const e=M()(this.props.className,"error");return i.a.createElement("div",{className:e},this.state.deviceLoadError)}const n=this.state.devices;if(void 0===n){const t=this.props.className;return i.a.createElement(e,{className:t})}n.sort(this._deviceCompare);const o=this.state.deleting?i.a.createElement(e,{w:22,h:22}):i.a.createElement(t,{onClick:this._onDeleteClick,kind:"danger_sm"},Object(c.a)("Delete %(count)s sessions",{count:this.state.selectedDevices.length})),r=M()(this.props.className,"mx_DevicesPanel");return i.a.createElement("div",{className:r},i.a.createElement("div",{className:"mx_DevicesPanel_header"},i.a.createElement("div",{className:"mx_DevicesPanel_deviceId"},Object(c.a)("ID")),i.a.createElement("div",{className:"mx_DevicesPanel_deviceName"},Object(c.a)("Public Name")),i.a.createElement("div",{className:"mx_DevicesPanel_deviceLastSeen"},Object(c.a)("Last seen")),i.a.createElement("div",{className:"mx_DevicesPanel_deviceButtons"},this.state.selectedDevices.length>0?o:null)),n.map(this._renderDevice))}}Em.propTypes={className:Se.a.string};class ym extends i.a.Component{constructor(e){super(e),this._unmounted=!1,this.onDeviceToggled=this.onDeviceToggled.bind(this),this._onDisplayNameChanged=this._onDisplayNameChanged.bind(this)}componentWillUnmount(){this._unmounted=!0}_onDisplayNameChanged(e){const t=this.props.device;return X.a.get().setDeviceDetails(t.device_id,{display_name:e}).catch(e=>{throw console.error("Error setting session display name",e),new Error(Object(c.a)("Failed to set display name"))})}onDeviceToggled(){this.props.onDeviceToggled(this.props.device)}render(){const e=u.getComponent("elements.EditableTextContainer"),t=this.props.device;let n="";if(t.last_seen_ts){const e=Object(Vc.a)(new Date(t.last_seen_ts));n=t.last_seen_ip+" @ "+e.toLocaleString()}let o="";return t.device_id===X.a.get().getDeviceId()&&(o=" mx_DevicesPanel_myDevice"),i.a.createElement("div",{className:"mx_DevicesPanel_device"+o},i.a.createElement("div",{className:"mx_DevicesPanel_deviceId"},t.device_id),i.a.createElement("div",{className:"mx_DevicesPanel_deviceName"},i.a.createElement(e,{initialValue:t.display_name,onSubmit:this._onDisplayNameChanged,placeholder:t.device_id})),i.a.createElement("div",{className:"mx_DevicesPanel_lastSeen"},n),i.a.createElement("div",{className:"mx_DevicesPanel_deviceButtons"},i.a.createElement(je.a,{onChange:this.onDeviceToggled,checked:this.props.selected})))}}ym.propTypes={device:Se.a.object.isRequired,onDeviceToggled:Se.a.func},ym.defaultProps={onDeviceToggled:function(){}};class Sm extends i.a.Component{constructor(){super(),R()(this,"updateCurrentRoom",async e=>{const t=Cc.a.get();let n;try{n=await t.getStats()}catch{return}this.setState({eventIndexSize:n.size,roomCount:n.roomCount})}),R()(this,"_onManage",async()=>{Ie.a.createTrackedDialogAsync("Message search","Message search",n.e(27).then(n.bind(null,1628)),{onFinished:()=>{}},null,!1,!0)}),R()(this,"_onEnable",async()=>{this.setState({enabling:!0}),await Cc.a.initEventIndex(),await Cc.a.get().addInitialCheckpoints(),await Cc.a.get().startCrawler(),await P.a.setValue("enableEventIndexing",null,Ye.a.DEVICE,!0),await this.updateState()}),this.state={enabling:!1,eventIndexSize:0,roomCount:0,eventIndexingEnabled:P.a.getValueAt(Ye.a.DEVICE,"enableEventIndexing")}}componentWillUnmount(){const e=Cc.a.get();null!==e&&e.removeListener("changedCheckpoint",this.updateCurrentRoom)}async componentDidMount(){this.updateState()}async updateState(){const e=Cc.a.get(),t=P.a.getValueAt(Ye.a.DEVICE,"enableEventIndexing");let n=0,o=0;if(null!==e){e.on("changedCheckpoint",this.updateCurrentRoom);try{const t=await e.getStats();n=t.size,o=t.roomCount}catch{}}this.setState({enabling:!1,eventIndexSize:n,roomCount:o,eventIndexingEnabled:t})}render(){let e=null;const t=u.getComponent("elements.InlineSpinner"),n=l.a.get().brand;if(null!==Cc.a.get())e=i.a.createElement("div",null,i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Securely cache encrypted messages locally for them to appear in search results, using %(size)s to store messages from %(rooms)s rooms.",{size:Object(q.a)(this.state.eventIndexSize,0),count:this.state.roomCount,rooms:Object(q.d)(this.state.roomCount)})),i.a.createElement("div",null,i.a.createElement(g.a,{kind:"primary",onClick:this._onManage},Object(c.a)("Manage"))));else if(!this.state.eventIndexingEnabled&&Cc.a.supportIsInstalled())e=i.a.createElement("div",null,i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Securely cache encrypted messages locally for them to appear in search results.")),i.a.createElement("div",null,i.a.createElement(g.a,{kind:"primary",disabled:this.state.enabling,onClick:this._onEnable},Object(c.a)("Enable")),this.state.enabling?i.a.createElement(t,null):i.a.createElement("div",null)));else if(Cc.a.platformHasSupport()&&!Cc.a.supportIsInstalled()){const t="https://github.com/vector-im/element-web/blob/develop/docs/native-node-modules.md#adding-seshat-for-search-in-e2e-encrypted-rooms";e=i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("%(brand)s is missing some components required for securely caching encrypted messages locally. If you'd like to experiment with this feature, build a custom %(brand)s Desktop with <nativeLink>search components added</nativeLink>.",{brand:n},{nativeLink:e=>i.a.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener"},e)}))}else e=i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("%(brand)s can't securely cache encrypted messages locally while running in a web browser. Use <desktopLink>%(brand)s Desktop</desktopLink> for encrypted messages to appear in search results.",{brand:n},{desktopLink:e=>i.a.createElement("a",{href:"https://element.io/get-started",target:"_blank",rel:"noreferrer noopener"},e)}));return e}}var Tm=n(706);let wm,Cm,xm,Om;!function(e){e.AllMessages="all_messages",e.DirectMessagesMentionsKeywords="dm_mentions_keywords",e.MentionsKeywordsOnly="mentions_keywords",e.Never="never"}(wm||(wm={})),function(e){e.Notify="notify",e.DontNotify="dont_notify",e.Coalesce="coalesce",e.MarkUnread="mark_unread"}(Cm||(Cm={})),function(e){e.Override="override",e.ContentSpecific="content",e.RoomSpecific="room",e.SenderSpecific="sender",e.Underride="underride"}(xm||(xm={})),function(e){e.MasterRule=".m.rule.master",e.MessageRule=".m.rule.message",e.EncryptedMessageRule=".m.rule.encrypted",e.RoomOneToOneRule=".m.rule.room_one_to_one",e.EncryptedRoomOneToOneRule=".m.rule.room_one_to_one"}(Om||(Om={}));class km{static encodeActions(e){const t=e.notify,n=e.sound,o=e.highlight;if(t){const e=[Cm.Notify];return n&&e.push({set_tweak:"sound",value:n}),o?e.push({set_tweak:"highlight"}):e.push({set_tweak:"highlight",value:!1}),e}return[Cm.DontNotify]}static decodeActions(e){let t=!1,n=null,o=!1;for(let r=0;r<e.length;++r){const i=e[r];if(i===Cm.Notify)t=!0;else if(i===Cm.DontNotify)t=!1;else{if("object"!=typeof i)return null;if("sound"===i.set_tweak)n=i.value;else{if("highlight"!==i.set_tweak)return null;o=i.value}}}void 0===o&&(o=!0);const r={notify:t,highlight:o};return null!==n&&(r.sound=n),r}}const Rm=km.encodeActions;class Am{}let Im;R()(Am,"ACTION_NOTIFY",Rm({notify:!0})),R()(Am,"ACTION_NOTIFY_DEFAULT_SOUND",Rm({notify:!0,sound:"default"})),R()(Am,"ACTION_NOTIFY_RING_SOUND",Rm({notify:!0,sound:"ring"})),R()(Am,"ACTION_HIGHLIGHT",Rm({notify:!0,highlight:!0})),R()(Am,"ACTION_HIGHLIGHT_DEFAULT_SOUND",Rm({notify:!0,sound:"default",highlight:!0})),R()(Am,"ACTION_DONT_NOTIFY",Rm({notify:!1})),R()(Am,"ACTION_DISABLED",null),function(e){e.Off="off",e.On="on",e.Loud="loud"}(Im||(Im={}));class Dm{static actionsFor(e){return e===Im.On?Am.ACTION_NOTIFY:e===Im.Loud?Am.ACTION_HIGHLIGHT_DEFAULT_SOUND:void 0}static contentRuleVectorStateKind(e){const t=km.decodeActions(e.actions);if(!t)return null;let n=0;t.sound&&n++,t.highlight&&n++;let o=null;switch(n){case 0:o=Im.On;break;case 2:o=Im.Loud}return o}}R()(Dm,"OFF",Im.Off),R()(Dm,"ON",Im.On),R()(Dm,"LOUD",Im.Loud),R()(Dm,"states",Im);class Nm{constructor(e){this.kind=e.kind,this.description=e.description,this.vectorStateToActions=e.vectorStateToActions}ruleToVectorState(e){let t=!1;e&&(t=e.enabled);for(const n in Dm.states){const o=Dm.states[n],r=this.vectorStateToActions[o];if(r){if(t&&JSON.stringify(km.decodeActions(e.actions))===JSON.stringify(km.decodeActions(r)))return o}else if(!t)return o}console.error(`Cannot translate rule actions into Vector rule state. Rule: ${JSON.stringify(e)}, Expected: `+JSON.stringify(this.vectorStateToActions))}}const Fm={".m.rule.contains_display_name":new Nm({kind:"override",description:Object(c.b)("Messages containing my display name"),vectorStateToActions:{on:Am.ACTION_NOTIFY,loud:Am.ACTION_HIGHLIGHT_DEFAULT_SOUND,off:Am.ACTION_DISABLED}}),".m.rule.contains_user_name":new Nm({kind:"override",description:Object(c.b)("Messages containing my username"),vectorStateToActions:{on:Am.ACTION_NOTIFY,loud:Am.ACTION_HIGHLIGHT_DEFAULT_SOUND,off:Am.ACTION_DISABLED}}),".m.rule.roomnotif":new Nm({kind:"override",description:Object(c.b)("Messages containing @room"),vectorStateToActions:{on:Am.ACTION_NOTIFY,loud:Am.ACTION_HIGHLIGHT,off:Am.ACTION_DISABLED}}),".m.rule.room_one_to_one":new Nm({kind:"underride",description:Object(c.b)("Messages in one-to-one chats"),vectorStateToActions:{on:Am.ACTION_NOTIFY,loud:Am.ACTION_NOTIFY_DEFAULT_SOUND,off:Am.ACTION_DONT_NOTIFY}}),".m.rule.encrypted_room_one_to_one":new Nm({kind:"underride",description:Object(c.b)("Encrypted messages in one-to-one chats"),vectorStateToActions:{on:Am.ACTION_NOTIFY,loud:Am.ACTION_NOTIFY_DEFAULT_SOUND,off:Am.ACTION_DONT_NOTIFY}}),".m.rule.message":new Nm({kind:"underride",description:Object(c.b)("Messages in group chats"),vectorStateToActions:{on:Am.ACTION_NOTIFY,loud:Am.ACTION_NOTIFY_DEFAULT_SOUND,off:Am.ACTION_DONT_NOTIFY}}),".m.rule.encrypted":new Nm({kind:"underride",description:Object(c.b)("Encrypted messages in group chats"),vectorStateToActions:{on:Am.ACTION_NOTIFY,loud:Am.ACTION_NOTIFY_DEFAULT_SOUND,off:Am.ACTION_DONT_NOTIFY}}),".m.rule.invite_for_me":new Nm({kind:"underride",description:Object(c.b)("When I'm invited to a room"),vectorStateToActions:{on:Am.ACTION_NOTIFY,loud:Am.ACTION_NOTIFY_DEFAULT_SOUND,off:Am.ACTION_DISABLED}}),".m.rule.call":new Nm({kind:"underride",description:Object(c.b)("Call invitation"),vectorStateToActions:{on:Am.ACTION_NOTIFY,loud:Am.ACTION_NOTIFY_RING_SOUND,off:Am.ACTION_DISABLED}}),".m.rule.suppress_notices":new Nm({kind:"override",description:Object(c.b)("Messages sent by bot"),vectorStateToActions:{on:Am.ACTION_DISABLED,loud:Am.ACTION_NOTIFY_DEFAULT_SOUND,off:Am.ACTION_DONT_NOTIFY}}),".m.rule.tombstone":new Nm({kind:"override",description:Object(c.b)("When rooms are upgraded"),vectorStateToActions:{on:Am.ACTION_NOTIFY,loud:Am.ACTION_HIGHLIGHT,off:Am.ACTION_DISABLED}})};const Mm={"im.vector.rule.contains_display_name":".m.rule.contains_display_name","im.vector.rule.room_one_to_one":".m.rule.room_one_to_one","im.vector.rule.room_message":".m.rule.message","im.vector.rule.invite_for_me":".m.rule.invite_for_me","im.vector.rule.call":".m.rule.call","im.vector.rule.notices":".m.rule.suppress_notices"};function Pm(e){const t=km.decodeActions(e);return null!==t?km.encodeActions(t):e}class Lm extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{phase:Lm.phases.LOADING,masterPushRule:void 0,vectorPushRules:[],vectorContentRules:{vectorState:Dm.ON,rules:[]},externalPushRules:[],externalContentRules:[],threepids:[]}),R()(this,"onEnableNotificationsChange",e=>{const t=this;this.setState({phase:Lm.phases.LOADING}),X.a.get().setPushRuleEnabled("global",t.state.masterPushRule.kind,t.state.masterPushRule.rule_id,!e).then((function(){t._refreshFromServer()}))}),R()(this,"onEnableDesktopNotificationsChange",e=>{P.a.setValue("notificationsEnabled",null,Ye.a.DEVICE,e).finally(()=>{this.forceUpdate()})}),R()(this,"onEnableDesktopNotificationBodyChange",e=>{P.a.setValue("notificationBodyEnabled",null,Ye.a.DEVICE,e).finally(()=>{this.forceUpdate()})}),R()(this,"onEnableAudioNotificationsChange",e=>{P.a.setValue("audioNotificationsEnabled",null,Ye.a.DEVICE,e).finally(()=>{this.forceUpdate()})}),R()(this,"onEnableEmailNotificationsChange",(e,t)=>{let n;if(t){const t={};t.brand=l.a.get().brand,n=X.a.get().setPusher({kind:"email",app_id:"m.email",pushkey:e,app_display_name:"Email Notifications",device_display_name:e,lang:navigator.language,data:t,append:!0})}else{const t=this.getEmailPusher(this.state.pushers,e);t.kind=null,n=X.a.get().setPusher(t)}n.then(()=>{this._refreshFromServer()},e=>{const t=u.getComponent("dialogs.ErrorDialog");Ie.a.createTrackedDialog("Error saving email notification preferences","",t,{title:Object(c.a)("Error saving email notification preferences"),description:Object(c.a)("An error occurred whilst saving your email notification preferences.")})})}),R()(this,"onNotifStateButtonClicked",e=>{const t=e.target.className.split("-")[0],n=e.target.className.split("-")[1];if("_keywords"===t)this._setKeywordsPushRuleVectorState(n);else{const e=this.getRule(t);e&&this._setPushRuleVectorState(e,n)}}),R()(this,"onKeywordsClicked",e=>{let t=[];for(const e in this.state.vectorContentRules.rules){const n=this.state.vectorContentRules.rules[e];t.push(n.pattern)}t.length?(t.sort(),t=t.join(", ")):t="";const n=u.getComponent("dialogs.TextInputDialog");Ie.a.createTrackedDialog("Keywords Dialog","",n,{title:Object(c.a)("Keywords"),description:Object(c.a)("Enter keywords separated by a comma:"),button:Object(c.a)("OK"),value:t,onFinished:(e,n)=>{if(e&&n!==t){let e=n.split(",");for(const t in e)e[t]=e[t].trim();e=e.reduce((function(e,t){return""!==t&&e.indexOf(t)<0&&e.push(t),e}),[]),this._setKeywords(e)}}})}),R()(this,"_refreshFromServer",()=>{const e=this,t=X.a.get().getPushRules().then(e._portRulesToNewAPI).then((function(t){X.a.get().pushRules=t;const n={".m.rule.master":"master",".m.rule.contains_display_name":"vector",".m.rule.contains_user_name":"vector",".m.rule.roomnotif":"vector",".m.rule.room_one_to_one":"vector",".m.rule.encrypted_room_one_to_one":"vector",".m.rule.message":"vector",".m.rule.encrypted":"vector",".m.rule.invite_for_me":"vector",".m.rule.call":"vector",".m.rule.suppress_notices":"vector",".m.rule.tombstone":"vector"},o={master:[],vector:{},others:[]};for(const e in t.global)for(let r=0;r<Object.keys(t.global[e]).length;++r){const i=t.global[e][r],a=n[i.rule_id];i.kind=e,"."===i.rule_id[0]&&("vector"===a?o.vector[i.rule_id]=i:"master"===a?o.master.push(i):o.others.push(i))}o.master.length>0&&(e.state.masterPushRule=o.master[0]);const r=class{static parseContentRules(e){const t=this._categoriseContentRules(e);return t.loud.length?{vectorState:Im.Loud,rules:t.loud,externalRules:[...t.loud_but_disabled,...t.on,...t.on_but_disabled,...t.other]}:t.loud_but_disabled.length?{vectorState:Im.Off,rules:t.loud_but_disabled,externalRules:[...t.on,...t.on_but_disabled,...t.other]}:t.on.length?{vectorState:Im.On,rules:t.on,externalRules:[...t.on_but_disabled,...t.other]}:t.on_but_disabled.length?{vectorState:Im.Off,rules:t.on_but_disabled,externalRules:t.other}:{vectorState:Im.On,rules:[],externalRules:t.other}}static _categoriseContentRules(e){const t={on:[],on_but_disabled:[],loud:[],loud_but_disabled:[],other:[]};for(const n in e.global)for(let o=0;o<Object.keys(e.global[n]).length;++o){const r=e.global[n][o];if("."!==r.rule_id[0]&&"content"===n)switch(r.kind=n,Dm.contentRuleVectorStateKind(r)){case Im.On:r.enabled?t.on.push(r):t.on_but_disabled.push(r);break;case Im.Loud:r.enabled?t.loud.push(r):t.loud_but_disabled.push(r);break;default:t.other.push(r)}}return t}}.parseContentRules(t);e.state.vectorContentRules={vectorState:r.vectorState,rules:r.rules},e.state.externalContentRules=r.externalRules,e.state.vectorPushRules=[],e.state.externalPushRules=[];const a=[".m.rule.contains_display_name",".m.rule.contains_user_name",".m.rule.roomnotif","_keywords",".m.rule.room_one_to_one",".m.rule.encrypted_room_one_to_one",".m.rule.message",".m.rule.encrypted",".m.rule.invite_for_me",".m.rule.call",".m.rule.suppress_notices",".m.rule.tombstone"];for(const t in a){const n=a[t];if("_keywords"===n)e.state.vectorPushRules.push({vectorRuleId:"_keywords",description:i.a.createElement("span",null,Object(c.a)("Messages containing <span>keywords</span>",{},{span:t=>i.a.createElement("span",{className:"mx_UserNotifSettings_keywords",onClick:e.onKeywordsClicked},t)})),vectorState:e.state.vectorContentRules.vectorState});else{const t=Fm[n],r=o.vector[n],i=t.ruleToVectorState(r);e.state.vectorPushRules.push({vectorRuleId:n,description:Object(c.a)(t.description),rule:r,vectorState:i}),r&&!i&&(r.description=t.description,e.state.externalPushRules.push(r))}}const s={".m.rule.message":Object(c.a)("Notify for all other messages/rooms"),".m.rule.fallback":Object(c.a)("Notify me for anything else")};for(const t in o.others){const n=o.others[t],r=s[n.rule_id];r&&n.enabled&&!n.default&&(n.description=r,e.state.externalPushRules.push(n))}})),n=X.a.get().getPushers().then((function(t){e.setState({pushers:t.pushers})}));Promise.all([t,n]).then((function(){e.setState({phase:Lm.phases.DISPLAY})}),(function(t){console.error(t),e.setState({phase:Lm.phases.ERROR})})).finally(()=>{e.setState({masterPushRule:e.state.masterPushRule,vectorContentRules:e.state.vectorContentRules,vectorPushRules:e.state.vectorPushRules,externalContentRules:e.state.externalContentRules,externalPushRules:e.state.externalPushRules})}),X.a.get().getThreePids().then(e=>this.setState({threepids:e.threepids}))}),R()(this,"_onClearNotifications",()=>{const e=X.a.get();e.getRooms().forEach(t=>{if(t.getUnreadNotificationCount()>0){const n=t.getLiveTimeline().getEvents();n.length&&e.sendReadReceipt(n.pop())}})})}componentDidMount(){this._refreshFromServer()}getEmailPusher(e,t){if(void 0!==e)for(let n=0;n<e.length;++n)if("email"===e[n].kind&&e[n].pushkey===t)return e[n]}getRule(e){for(const t in this.state.vectorPushRules){const n=this.state.vectorPushRules[t];if(n.vectorRuleId===e)return n}}_setPushRuleVectorState(e,t){if(e&&e.vectorState!==t){this.setState({phase:Lm.phases.LOADING});const n=this,o=X.a.get(),r=[],i=Fm[e.vectorRuleId];if(e.rule){const n=i.vectorStateToActions[t];n?r.push(this._updatePushRuleActions(e.rule,n,!0)):r.push(o.setPushRuleEnabled("global",e.rule.kind,e.rule.rule_id,!1))}Promise.all(r).then((function(){n._refreshFromServer()}),(function(e){const t=u.getComponent("dialogs.ErrorDialog");console.error("Failed to change settings: "+e),Ie.a.createTrackedDialog("Failed to change settings","",t,{title:Object(c.a)("Failed to change settings"),description:e&&e.message?e.message:Object(c.a)("Operation failed"),onFinished:n._refreshFromServer})}))}}_setKeywordsPushRuleVectorState(e){if(this.state.vectorContentRules.vectorState===e||0===this.state.vectorContentRules.rules.length)return;const t=this,n=X.a.get();this.setState({phase:Lm.phases.LOADING});const o=[];for(const t in this.state.vectorContentRules.rules){const r=this.state.vectorContentRules.rules[t];let i,a;switch(e){case Dm.ON:1!==r.actions.length&&(a=Dm.actionsFor(Dm.ON)),this.state.vectorContentRules.vectorState===Dm.OFF&&(i=!0);break;case Dm.LOUD:3!==r.actions.length&&(a=Dm.actionsFor(Dm.LOUD)),this.state.vectorContentRules.vectorState===Dm.OFF&&(i=!0);break;case Dm.OFF:i=!1}a?o.push(this._updatePushRuleActions(r,a,i)):null!=i&&o.push(n.setPushRuleEnabled("global",r.kind,r.rule_id,i))}Promise.all(o).then((function(e){t._refreshFromServer()}),(function(e){const n=u.getComponent("dialogs.ErrorDialog");console.error("Can't update user notification settings: "+e),Ie.a.createTrackedDialog("Can't update user notifcation settings","",n,{title:Object(c.a)("Can't update user notification settings"),description:e&&e.message?e.message:Object(c.a)("Operation failed"),onFinished:t._refreshFromServer})}))}_setKeywords(e){this.setState({phase:Lm.phases.LOADING});const t=this,n=X.a.get(),o=[],r=[];for(const i in t.state.vectorContentRules.rules){const a=t.state.vectorContentRules.rules[i];r.push(a.pattern),e.indexOf(a.pattern)<0&&o.push(n.deletePushRule("global",a.kind,a.rule_id))}for(const r in t.state.externalContentRules){const i=t.state.externalContentRules[r];e.indexOf(i.pattern)>=0&&o.push(n.deletePushRule("global",i.kind,i.rule_id))}const i=function(e){const n=u.getComponent("dialogs.ErrorDialog");console.error("Failed to update keywords: "+e),Ie.a.createTrackedDialog("Failed to update keywords","",n,{title:Object(c.a)("Failed to update keywords"),description:e&&e.message?e.message:Object(c.a)("Operation failed"),onFinished:t._refreshFromServer})};Promise.all(o).then((function(o){const a=[];let s=t.state.vectorContentRules.vectorState;s===Dm.OFF&&(s=t.state.vectorContentRules.rules.length?Dm.contentRuleVectorStateKind(t.state.vectorContentRules.rules[0]):Dm.ON);for(const o in e){const i=e[o];r.indexOf(i)<0&&(t.state.vectorContentRules.vectorState!==Dm.OFF?a.push(n.addPushRule("global","content",i,{actions:Dm.actionsFor(s),pattern:i})):a.push(t._addDisabledPushRule("global","content",i,{actions:Dm.actionsFor(s),pattern:i})))}Promise.all(a).then((function(e){t._refreshFromServer()}),i)}),i)}_addDisabledPushRule(e,t,n,o){const r=X.a.get();return r.addPushRule(e,t,n,o).then(()=>r.setPushRuleEnabled(e,t,n,!1))}_portRulesToNewAPI(e){const t=[],n=X.a.get();for(const o in e.global){const r=e.global[o];for(let e=0;e<r.length;++e){const i=r[e];i.rule_id in Mm&&(console.log("Porting legacy rule",i),t.push(function(e,t){return n.setPushRuleActions("global",e,Mm[t.rule_id],Pm(t.actions)).then(()=>n.deletePushRule("global",e,t.rule_id)).catch(e=>{console.warn("Error when porting legacy rule: "+e)})}(o,i)))}}return t.length>0?Promise.all(t).then(()=>n.getPushRules()):e}_updatePushRuleActions(e,t,n){const o=X.a.get();return o.setPushRuleActions("global",e.kind,e.rule_id,t).then((function(){if(null!=n)return o.setPushRuleEnabled("global",e.kind,e.rule_id,n)}))}renderNotifRulesTableRow(e,t,n){return i.a.createElement("tr",{key:t},i.a.createElement("th",null,e),i.a.createElement("th",null,i.a.createElement("input",{className:t+"-"+Dm.OFF,type:"radio",checked:n===Dm.OFF,onChange:this.onNotifStateButtonClicked})),i.a.createElement("th",null,i.a.createElement("input",{className:t+"-"+Dm.ON,type:"radio",checked:n===Dm.ON,onChange:this.onNotifStateButtonClicked})),i.a.createElement("th",null,i.a.createElement("input",{className:t+"-"+Dm.LOUD,type:"radio",checked:n===Dm.LOUD,onChange:this.onNotifStateButtonClicked})))}renderNotifRulesTableRows(){const e=[];for(const t in this.state.vectorPushRules){const n=this.state.vectorPushRules[t];void 0===n.rule&&n.vectorRuleId.startsWith(".m.")?console.warn(`Skipping render of rule ${n.vectorRuleId} due to no underlying rule`):e.push(this.renderNotifRulesTableRow(n.description,n.vectorRuleId,n.vectorState))}return e}hasEmailPusher(e,t){if(void 0===e)return!1;for(let n=0;n<e.length;++n)if("email"===e[n].kind&&e[n].pushkey===t)return!0;return!1}emailNotificationsRow(e,t){return i.a.createElement(Xe.a,{value:this.hasEmailPusher(this.state.pushers,e),onChange:this.onEnableEmailNotificationsChange.bind(this,e),label:t,key:"emailNotif_"+t})}render(){let e,t,n;if(this.state.phase===Lm.phases.LOADING){const t=u.getComponent("elements.Spinner");e=i.a.createElement(t,null)}if(this.state.masterPushRule&&(t=i.a.createElement(Xe.a,{value:!this.state.masterPushRule.enabled,onChange:this.onEnableNotificationsChange,label:Object(c.a)("Enable notifications for this account")})),X.a.get().getRooms().some(e=>e.getUnreadNotificationCount()>0)&&(n=i.a.createElement(g.a,{onClick:this._onClearNotifications,kind:"danger"},Object(c.a)("Clear notifications"))),this.state.masterPushRule&&this.state.masterPushRule.enabled)return i.a.createElement("div",null,t,i.a.createElement("div",{className:"mx_UserNotifSettings_notifTable"},Object(c.a)("All notifications are currently disabled for all targets.")),n);const o=this.state.threepids.filter(e=>"email"===e.medium);let r;o.length>0?r=o.map(e=>this.emailNotificationsRow(e.address,`${Object(c.a)("Enable email notifications")} (${e.address})`)):P.a.getValue($e.a.ThirdPartyID)&&(r=i.a.createElement("div",null,Object(c.a)("Add an email address to configure email notifications")));const a=[];for(const e in this.state.externalPushRules){const t=this.state.externalPushRules[e];a.push(i.a.createElement("li",null,Object(c.a)(t.description)))}let s,d,h=[];for(const e in this.state.externalContentRules){const t=this.state.externalContentRules[e];h.push(t.pattern)}if(h.length&&(h=h.join(", "),a.push(i.a.createElement("li",null,Object(c.a)("Notifications on the following keywords follow rules which cant be displayed here:"),h))),void 0===this.state.pushers)s=i.a.createElement("div",{className:"error"},Object(c.a)("Unable to fetch notification target list"));else if(0===this.state.pushers.length)s=null;else{const e=[];for(let t=0;t<this.state.pushers.length;++t)e.push(i.a.createElement("tr",{key:t},i.a.createElement("td",null,this.state.pushers[t].app_display_name),i.a.createElement("td",null,this.state.pushers[t].device_display_name)));s=i.a.createElement("table",{className:"mx_UserNotifSettings_devicesTable"},i.a.createElement("tbody",null,e))}if(s&&(s=i.a.createElement("div",null,i.a.createElement("h3",null,Object(c.a)("Notification targets")),s)),a.length){const e=l.a.get().brand;d=i.a.createElement("div",null,i.a.createElement("h3",null,Object(c.a)("Advanced notification settings")),Object(c.a)("There are advanced notifications which are not shown here."),i.a.createElement("br",null),Object(c.a)("You might have configured them in a client other than %(brand)s. You cannot tune them in %(brand)s but they still apply.",{brand:e}),i.a.createElement("ul",null,a))}return i.a.createElement("div",null,t,i.a.createElement("div",{className:"mx_UserNotifSettings_notifTable"},e,i.a.createElement(Xe.a,{value:P.a.getValue("notificationsEnabled"),onChange:this.onEnableDesktopNotificationsChange,label:Object(c.a)("Enable desktop notifications for this session")}),i.a.createElement(Xe.a,{value:P.a.getValue("notificationBodyEnabled"),onChange:this.onEnableDesktopNotificationBodyChange,label:Object(c.a)("Show message in desktop notification")}),i.a.createElement(Xe.a,{value:P.a.getValue("audioNotificationsEnabled"),onChange:this.onEnableAudioNotificationsChange,label:Object(c.a)("Enable audible notifications for this session")}),r,i.a.createElement("div",{className:"mx_UserNotifSettings_pushRulesTableWrapper"},i.a.createElement("table",{className:"mx_UserNotifSettings_pushRulesTable"},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",{width:"55%"}),i.a.createElement("th",{width:"15%"},Object(c.a)("Off")),i.a.createElement("th",{width:"15%"},Object(c.a)("On")),i.a.createElement("th",{width:"15%"},Object(c.a)("Noisy")))),i.a.createElement("tbody",null,this.renderNotifRulesTableRows()))),d,s,n))}}R()(Lm,"phases",{LOADING:"LOADING",DISPLAY:"DISPLAY",ERROR:"ERROR"});class Um extends i.a.Component{constructor(){super(),R()(this,"onAction",e=>{"id_server_changed"===e.action&&this.setState({currentClientIdServer:X.a.get().getIdentityServerUrl()})}),R()(this,"_onIdentityServerChanged",e=>{const t=e.target.value;this.setState({idServer:t})}),R()(this,"_getTooltip",()=>{if(this.state.checking){const e=u.getComponent("views.elements.InlineSpinner");return i.a.createElement("div",null,i.a.createElement(e,null),Object(c.a)("Checking server"))}return this.state.error?i.a.createElement("span",{className:"warning"},this.state.error):null}),R()(this,"_idServerChangeEnabled",()=>!!this.state.idServer&&!this.state.busy),R()(this,"_saveIdServer",e=>{X.a.get().setAccountData("m.identity_server",{base_url:e}),this.setState({busy:!1,error:null,currentClientIdServer:e,idServer:""})}),R()(this,"_checkIdServer",async e=>{e.preventDefault();const{idServer:t,currentClientIdServer:n}=this.state;this.setState({busy:!0,checking:!0,error:null});const o=Object(ze.b)(t);let r=await async function(e){if("https:"!==Oe.a.parse(e).protocol)return Object(c.a)("Identity Server URL must be HTTPS");try{const t=await fetch(e+"/_matrix/identity/api/v1");return t.ok?null:t.status<200||t.status>=300?Object(c.a)("Not a valid Identity Server (status code %(code)s)",{code:t.status}):Object(c.a)("Could not connect to Identity Server")}catch(e){return Object(c.a)("Could not connect to Identity Server")}}(o);if(!r)try{this.setState({checking:!1});const e=new Ve.a(o);await e.getAccessToken();let r=!0;if(!await Object(Ea.b)(o)){const[e]=await this._showNoTermsWarning(o);r=e}if(r&&n&&o!==n){const[e]=await this._showServerChangeWarning({title:Object(c.a)("Change identity server"),unboundMessage:Object(c.a)("Disconnect from the identity server <current /> and connect to <new /> instead?",{},{current:e=>i.a.createElement("b",null,Object(ze.a)(n)),new:e=>i.a.createElement("b",null,Object(ze.a)(t))}),button:Object(c.a)("Continue")});r=e}r&&this._saveIdServer(o)}catch(e){console.error(e),r=Object(c.a)("Terms of service not accepted or the identity server is invalid.")}this.setState({busy:!1,checking:!1,error:r,currentClientIdServer:X.a.get().getIdentityServerUrl()})}),R()(this,"_onDisconnectClicked",async()=>{this.setState({disconnectBusy:!0});try{const[e]=await this._showServerChangeWarning({title:Object(c.a)("Disconnect identity server"),unboundMessage:Object(c.a)("Disconnect from the identity server <idserver />?",{},{idserver:e=>i.a.createElement("b",null,Object(ze.a)(this.state.currentClientIdServer))}),button:Object(c.a)("Disconnect")});e&&this._disconnectIdServer()}finally{this.setState({disconnectBusy:!1})}}),R()(this,"_disconnectIdServer",()=>{X.a.get().setAccountData("m.identity_server",{base_url:null});let e="";Object(Ea.c)()&&(e=Object(ze.a)(Object(Ea.c)())),this.setState({busy:!1,error:null,currentClientIdServer:X.a.get().getIdentityServerUrl(),idServer:e})});let e="";!X.a.get().getIdentityServerUrl()&&Object(Ea.c)()&&(e=Object(ze.a)(Object(Ea.c)())),this.state={defaultIdServer:e,currentClientIdServer:X.a.get().getIdentityServerUrl(),idServer:"",error:null,busy:!1,disconnectBusy:!1,checking:!1}}componentDidMount(){this.dispatcherRef=d.a.register(this.onAction)}componentWillUnmount(){d.a.unregister(this.dispatcherRef)}_showNoTermsWarning(e){const t=u.getComponent("views.dialogs.QuestionDialog"),{finished:n}=Ie.a.createTrackedDialog("No Terms Warning","",t,{title:Object(c.a)("Identity server has no terms of service"),description:i.a.createElement("div",null,i.a.createElement("span",{className:"warning"},Object(c.a)("The identity server you have chosen does not have any terms of service.")),i.a.createElement("span",null," ",Object(c.a)("Only continue if you trust the owner of the server."))),button:Object(c.a)("Continue")});return n}async _showServerChangeWarning({title:e,unboundMessage:t,button:n}){const{currentClientIdServer:o}=this.state;let r=[],a=!0;try{r=await Object(ft.e)(Ke(X.a.get()),Promise.reject(new Error("Timeout attempting to reach identity server")),1e4)}catch(e){a=!1,console.warn(`Unable to reach identity server at ${o} to check for 3PIDs during IS change flow`),console.warn(e)}const s=r.filter(e=>e.bound);let l,d=!1;const h={idserver:e=>i.a.createElement("b",null,Object(ze.a)(o)),b:e=>i.a.createElement("b",null,e)};a?s.length?(l=i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("You are still <b>sharing your personal data</b> on the identity server <idserver />.",{},h)),i.a.createElement("p",null,Object(c.a)("We recommend that you remove your email addresses and phone numbers from the identity server before disconnecting."))),d=!0,n=Object(c.a)("Disconnect anyway")):l=t:(l=i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("You should <b>remove your personal data</b> from identity server <idserver /> before disconnecting. Unfortunately, identity server <idserver /> is currently offline or cannot be reached.",{},h)),i.a.createElement("p",null,Object(c.a)("You should:")),i.a.createElement("ul",null,i.a.createElement("li",null,Object(c.a)("check your browser plugins for anything that might block the identity server (such as Privacy Badger)")),i.a.createElement("li",null,Object(c.a)("contact the administrators of identity server <idserver />",{},{idserver:h.idserver})),i.a.createElement("li",null,Object(c.a)("wait and try again later")))),d=!0,n=Object(c.a)("Disconnect anyway"));const p=u.getComponent("dialogs.QuestionDialog"),{finished:m}=Ie.a.createTrackedDialog("Identity Server Bound Warning","",p,{title:e,description:l,button:n,cancelButton:Object(c.a)("Go back"),danger:d});return m}render(){const e=u.getComponent("views.elements.AccessibleButton"),t=u.getComponent("elements.Field"),n=this.state.currentClientIdServer;let o,r,a;if(n?(o=Object(c.a)("Identity Server (%(server)s)",{server:Object(ze.a)(n)}),r=Object(c.a)("You are currently using <server></server> to discover and be discoverable by existing contacts you know. You can change your identity server below.",{},{server:e=>i.a.createElement("b",null,Object(ze.a)(n))}),this.props.missingTerms&&(r=Object(c.a)("If you don't want to use <server /> to discover and be discoverable by existing contacts you know, enter another identity server below.",{},{server:e=>i.a.createElement("b",null,Object(ze.a)(n))}))):(o=Object(c.a)("Identity Server"),r=Object(c.a)("You are not currently using an identity server. To discover and be discoverable by existing contacts you know, add one below.")),n){let t=Object(c.a)("Disconnect"),n=Object(c.a)("Disconnecting from your identity server will mean you won't be discoverable by other users and you won't be able to invite others by email or phone.");if(this.props.missingTerms&&(n=Object(c.a)("Using an identity server is optional. If you choose not to use an identity server, you won't be discoverable by other users and you won't be able to invite others by email or phone."),t=Object(c.a)("Do not use an identity server")),this.state.disconnectBusy){const e=u.getComponent("views.elements.InlineSpinner");t=i.a.createElement(e,null)}a=i.a.createElement("div",null,i.a.createElement("span",{className:"mx_SettingsTab_subsectionText"},n),i.a.createElement(e,{onClick:this._onDisconnectClicked,kind:"danger_sm"},t))}return i.a.createElement("form",{className:"mx_SettingsTab_section mx_SetIdServer",onSubmit:this._checkIdServer},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},o),i.a.createElement("span",{className:"mx_SettingsTab_subsectionText"},r),i.a.createElement(t,{label:Object(c.a)("Enter a new identity server"),type:"text",autoComplete:"off",placeholder:this.state.defaultIdServer,value:this.state.idServer,onChange:this._onIdentityServerChanged,tooltipContent:this._getTooltip(),tooltipClassName:"mx_SetIdServer_tooltip",disabled:this.state.busy,forceValidity:!this.state.error&&null}),i.a.createElement(e,{type:"submit",kind:"primary_sm",onClick:this._checkIdServer,disabled:!this._idServerChangeEnabled()},Object(c.a)("Change")),a)}}R()(Um,"propTypes",{missingTerms:Se.a.bool});class Bm extends i.a.Component{constructor(){super(),R()(this,"onProvisioningToggled",()=>{const e=this.state.provisioningEnabled;P.a.setValue("integrationProvisioning",null,Ye.a.ACCOUNT,!e).catch(t=>{console.error("Error changing integration manager provisioning"),console.error(t),this.setState({provisioningEnabled:e})}),this.setState({provisioningEnabled:!e})});const e=Dp.a.sharedInstance().getPrimaryManager();this.state={currentManager:e,provisioningEnabled:P.a.getValue("integrationProvisioning")}}render(){const e=u.getComponent("views.elements.ToggleSwitch"),t=this.state.currentManager;let n,o;return t?(n=`(${t.name})`,o=Object(c.a)("Use an Integration Manager <b>(%(serverName)s)</b> to manage bots, widgets, and sticker packs.",{serverName:t.name},{b:e=>i.a.createElement("b",null,e)})):o=Object(c.a)("Use an Integration Manager to manage bots, widgets, and sticker packs."),i.a.createElement("div",{className:"mx_SetIntegrationManager"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},i.a.createElement("span",null,Object(c.a)("Manage integrations")),i.a.createElement("span",{className:"mx_SettingsTab_subheading"},n),i.a.createElement(e,{checked:this.state.provisioningEnabled,onChange:this.onProvisioningToggled})),i.a.createElement("span",{className:"mx_SettingsTab_subsectionText"},o,i.a.createElement("br",null),i.a.createElement("br",null),Object(c.a)("Integration Managers receive configuration data, and can modify widgets, send room invites, and set power levels on your behalf.")))}}class jm extends i.a.Component{constructor(){super(),R()(this,"_onRemove",e=>{e.stopPropagation(),e.preventDefault(),this.setState({verifyRemove:!0})}),R()(this,"_onDontRemove",e=>{e.stopPropagation(),e.preventDefault(),this.setState({verifyRemove:!1})}),R()(this,"_onActuallyRemove",e=>{e.stopPropagation(),e.preventDefault(),X.a.get().deleteThreePid(this.props.email.medium,this.props.email.address).then(()=>this.props.onRemoved(this.props.email)).catch(e=>{const t=u.getComponent("dialogs.ErrorDialog");console.error("Unable to remove contact information: "+e),Ie.a.createTrackedDialog("Remove 3pid failed","",t,{title:Object(c.a)("Unable to remove contact information"),description:e&&e.message?e.message:Object(c.a)("Operation failed")})})}),this.state={verifyRemove:!1}}render(){return this.state.verifyRemove?i.a.createElement("div",{className:"mx_ExistingEmailAddress"},i.a.createElement("span",{className:"mx_ExistingEmailAddress_promptText"},Object(c.a)("Remove %(email)s?",{email:this.props.email.address})),i.a.createElement(g.a,{onClick:this._onActuallyRemove,kind:"danger_sm",className:"mx_ExistingEmailAddress_confirmBtn"},Object(c.a)("Remove")),i.a.createElement(g.a,{onClick:this._onDontRemove,kind:"link_sm",className:"mx_ExistingEmailAddress_confirmBtn"},Object(c.a)("Cancel"))):i.a.createElement("div",{className:"mx_ExistingEmailAddress"},i.a.createElement("span",{className:"mx_ExistingEmailAddress_email"},this.props.email.address),i.a.createElement(g.a,{onClick:this._onRemove,kind:"danger_sm"},Object(c.a)("Remove")))}}R()(jm,"propTypes",{email:Se.a.object.isRequired,onRemoved:Se.a.func.isRequired});class Gm extends i.a.Component{constructor(e){super(e),R()(this,"_onRemoved",e=>{const t=this.props.emails.filter(t=>t!==e);this.props.onEmailsChange(t)}),R()(this,"_onChangeNewEmailAddress",e=>{this.setState({newEmailAddress:e.target.value})}),R()(this,"_onAddClick",e=>{if(e.stopPropagation(),e.preventDefault(),!this.state.newEmailAddress)return;const t=u.getComponent("dialogs.ErrorDialog"),n=this.state.newEmailAddress;if(!vo.a(n))return void Ie.a.createTrackedDialog("Invalid email address","",t,{title:Object(c.a)("Invalid Email Address"),description:Object(c.a)("This doesn't appear to be a valid email address")});const o=new sd;this.setState({verifying:!0,continueDisabled:!0,addTask:o}),o.addEmailAddress(n).then(()=>{this.setState({continueDisabled:!1})}).catch(e=>{console.error("Unable to add email address "+n+" "+e),this.setState({verifying:!1,continueDisabled:!1,addTask:null}),Ie.a.createTrackedDialog("Unable to add email address","",t,{title:Object(c.a)("Unable to add email address"),description:e&&e.message?e.message:Object(c.a)("Operation failed")})})}),R()(this,"_onContinueClick",e=>{e.stopPropagation(),e.preventDefault(),this.setState({continueDisabled:!0}),this.state.addTask.checkEmailLinkClicked().then(()=>{const e=this.state.newEmailAddress;this.setState({addTask:null,continueDisabled:!1,verifying:!1,newEmailAddress:""});const t=[...this.props.emails,{address:e,medium:"email"}];this.props.onEmailsChange(t)}).catch(e=>{this.setState({continueDisabled:!1});const t=u.getComponent("dialogs.ErrorDialog");"M_THREEPID_AUTH_FAILED"===e.errcode?Ie.a.createTrackedDialog("Email hasn't been verified yet","",t,{title:Object(c.a)("Your email address hasn't been verified yet"),description:Object(c.a)("Click the link in the email you received to verify and then click continue again.")}):(console.error("Unable to verify email address: ",e),Ie.a.createTrackedDialog("Unable to verify email address","",t,{title:Object(c.a)("Unable to verify email address."),description:e&&e.message?e.message:Object(c.a)("Operation failed")}))})}),this.state={verifying:!1,addTask:null,continueDisabled:!1,newEmailAddress:""}}render(){const e=this.props.emails.map(e=>i.a.createElement(jm,{email:e,onRemoved:this._onRemoved,key:e.address}));let t=i.a.createElement(g.a,{onClick:this._onAddClick,kind:"primary"},Object(c.a)("Add"));return this.state.verifying&&(t=i.a.createElement("div",null,i.a.createElement("div",null,Object(c.a)("We've sent you an email to verify your address. Please follow the instructions there and then click the button below.")),i.a.createElement(g.a,{onClick:this._onContinueClick,kind:"primary",disabled:this.state.continueDisabled},Object(c.a)("Continue")))),i.a.createElement("div",{className:"mx_EmailAddresses"},e,i.a.createElement("form",{onSubmit:this._onAddClick,autoComplete:"off",noValidate:!0,className:"mx_EmailAddresses_new"},i.a.createElement(Ce.a,{type:"text",label:Object(c.a)("Email Address"),autoComplete:"off",disabled:this.state.verifying,value:this.state.newEmailAddress,onChange:this._onChangeNewEmailAddress}),t))}}R()(Gm,"propTypes",{emails:Se.a.array.isRequired,onEmailsChange:Se.a.func.isRequired});class qm extends i.a.Component{constructor(){super(),R()(this,"_onRemove",e=>{e.stopPropagation(),e.preventDefault(),this.setState({verifyRemove:!0})}),R()(this,"_onDontRemove",e=>{e.stopPropagation(),e.preventDefault(),this.setState({verifyRemove:!1})}),R()(this,"_onActuallyRemove",e=>{e.stopPropagation(),e.preventDefault(),X.a.get().deleteThreePid(this.props.msisdn.medium,this.props.msisdn.address).then(()=>this.props.onRemoved(this.props.msisdn)).catch(e=>{const t=u.getComponent("dialogs.ErrorDialog");console.error("Unable to remove contact information: "+e),Ie.a.createTrackedDialog("Remove 3pid failed","",t,{title:Object(c.a)("Unable to remove contact information"),description:e&&e.message?e.message:Object(c.a)("Operation failed")})})}),this.state={verifyRemove:!1}}render(){return this.state.verifyRemove?i.a.createElement("div",{className:"mx_ExistingPhoneNumber"},i.a.createElement("span",{className:"mx_ExistingPhoneNumber_promptText"},Object(c.a)("Remove %(phone)s?",{phone:this.props.msisdn.address})),i.a.createElement(g.a,{onClick:this._onActuallyRemove,kind:"danger_sm",className:"mx_ExistingPhoneNumber_confirmBtn"},Object(c.a)("Remove")),i.a.createElement(g.a,{onClick:this._onDontRemove,kind:"link_sm",className:"mx_ExistingPhoneNumber_confirmBtn"},Object(c.a)("Cancel"))):i.a.createElement("div",{className:"mx_ExistingPhoneNumber"},i.a.createElement("span",{className:"mx_ExistingPhoneNumber_address"},"+",this.props.msisdn.address),i.a.createElement(g.a,{onClick:this._onRemove,kind:"danger_sm"},Object(c.a)("Remove")))}}R()(qm,"propTypes",{msisdn:Se.a.object.isRequired,onRemoved:Se.a.func.isRequired});class Hm extends i.a.Component{constructor(e){super(e),R()(this,"_onRemoved",e=>{const t=this.props.msisdns.filter(t=>t!==e);this.props.onMsisdnsChange(t)}),R()(this,"_onChangeNewPhoneNumber",e=>{this.setState({newPhoneNumber:e.target.value})}),R()(this,"_onChangeNewPhoneNumberCode",e=>{this.setState({newPhoneNumberCode:e.target.value})}),R()(this,"_onAddClick",e=>{if(e.stopPropagation(),e.preventDefault(),!this.state.newPhoneNumber)return;const t=u.getComponent("dialogs.ErrorDialog"),n=this.state.newPhoneNumber,o=this.state.phoneCountry,r=new sd;this.setState({verifying:!0,continueDisabled:!0,addTask:r}),r.addMsisdn(o,n).then(e=>{this.setState({continueDisabled:!1,verifyMsisdn:e.msisdn})}).catch(e=>{console.error("Unable to add phone number "+n+" "+e),this.setState({verifying:!1,continueDisabled:!1,addTask:null}),Ie.a.createTrackedDialog("Add Phone Number Error","",t,{title:Object(c.a)("Error"),description:e&&e.message?e.message:Object(c.a)("Operation failed")})})}),R()(this,"_onContinueClick",e=>{e.stopPropagation(),e.preventDefault(),this.setState({continueDisabled:!0});const t=this.state.newPhoneNumberCode,n=this.state.verifyMsisdn;this.state.addTask.haveMsisdnToken(t).then(()=>{this.setState({addTask:null,continueDisabled:!1,verifying:!1,verifyMsisdn:"",verifyError:null,newPhoneNumber:"",newPhoneNumberCode:""});const e=[...this.props.msisdns,{address:n,medium:"msisdn"}];this.props.onMsisdnsChange(e)}).catch(e=>{if(this.setState({continueDisabled:!1}),"M_THREEPID_AUTH_FAILED"!==e.errcode){const t=u.getComponent("dialogs.ErrorDialog");console.error("Unable to verify phone number: "+e),Ie.a.createTrackedDialog("Unable to verify phone number","",t,{title:Object(c.a)("Unable to verify phone number."),description:e&&e.message?e.message:Object(c.a)("Operation failed")})}else this.setState({verifyError:Object(c.a)("Incorrect verification code")})})}),R()(this,"_onCountryChanged",e=>{this.setState({phoneCountry:e.iso2})}),this.state={verifying:!1,verifyError:!1,verifyMsisdn:"",addTask:null,continueDisabled:!1,phoneCountry:"",newPhoneNumber:"",newPhoneNumberCode:""}}render(){const e=this.props.msisdns.map(e=>i.a.createElement(qm,{msisdn:e,onRemoved:this._onRemoved,key:e.address}));let t=i.a.createElement(g.a,{onClick:this._onAddClick,kind:"primary"},Object(c.a)("Add"));if(this.state.verifying){const e=this.state.verifyMsisdn;t=i.a.createElement("div",null,i.a.createElement("div",null,Object(c.a)("A text message has been sent to +%(msisdn)s. Please enter the verification code it contains.",{msisdn:e}),i.a.createElement("br",null),this.state.verifyError),i.a.createElement("form",{onSubmit:this._onContinueClick,autoComplete:"off",noValidate:!0},i.a.createElement(Ce.a,{type:"text",label:Object(c.a)("Verification code"),autoComplete:"off",disabled:this.state.continueDisabled,value:this.state.newPhoneNumberCode,onChange:this._onChangeNewPhoneNumberCode}),i.a.createElement(g.a,{onClick:this._onContinueClick,kind:"primary",disabled:this.state.continueDisabled},Object(c.a)("Continue"))))}const n=i.a.createElement(xo,{onOptionChange:this._onCountryChanged,className:"mx_PhoneNumbers_country",value:this.state.phoneCountry,disabled:this.state.verifying,isSmall:!0,showPrefix:!0});return i.a.createElement("div",{className:"mx_PhoneNumbers"},e,i.a.createElement("form",{onSubmit:this._onAddClick,autoComplete:"off",noValidate:!0,className:"mx_PhoneNumbers_new"},i.a.createElement("div",{className:"mx_PhoneNumbers_input"},i.a.createElement(Ce.a,{type:"text",label:Object(c.a)("Phone Number"),autoComplete:"off",disabled:this.state.verifying,prefixComponent:n,value:this.state.newPhoneNumber,onChange:this._onChangeNewPhoneNumber}))),t)}}R()(Hm,"propTypes",{msisdns:Se.a.array.isRequired,onMsisdnsChange:Se.a.func.isRequired});class Vm extends i.a.Component{constructor(e){super(e),R()(this,"onRevokeClick",e=>{e.stopPropagation(),e.preventDefault(),this.changeBinding({bind:!1,label:"revoke",errorTitle:Object(c.a)("Unable to revoke sharing for email address")})}),R()(this,"onShareClick",e=>{e.stopPropagation(),e.preventDefault(),this.changeBinding({bind:!0,label:"share",errorTitle:Object(c.a)("Unable to share email address")})}),R()(this,"onContinueClick",async e=>{e.stopPropagation(),e.preventDefault(),this.setState({continueDisabled:!0});try{await this.state.addTask.checkEmailLinkClicked(),this.setState({addTask:null,continueDisabled:!1,verifying:!1})}catch(e){this.setState({continueDisabled:!1});const t=u.getComponent("dialogs.ErrorDialog");"M_THREEPID_AUTH_FAILED"===e.errcode?Ie.a.createTrackedDialog("E-mail hasn't been verified yet","",t,{title:Object(c.a)("Your email address hasn't been verified yet"),description:Object(c.a)("Click the link in the email you received to verify and then click continue again.")}):(console.error("Unable to verify email address: "+e),Ie.a.createTrackedDialog("Unable to verify email address","",t,{title:Object(c.a)("Unable to verify email address."),description:e&&e.message?e.message:Object(c.a)("Operation failed")}))}});const{bound:t}=e.email;this.state={verifying:!1,addTask:null,continueDisabled:!1,bound:t}}UNSAFE_componentWillReceiveProps(e){const{bound:t}=e.email;this.setState({bound:t})}async changeBinding({bind:e,label:t,errorTitle:n}){if(!await X.a.get().doesServerSupportSeparateAddAndBind())return this.changeBindingTangledAddBind({bind:e,label:t,errorTitle:n});const o=u.getComponent("dialogs.ErrorDialog"),{medium:r,address:i}=this.props.email;try{if(e){const e=new sd;this.setState({verifying:!0,continueDisabled:!0,addTask:e}),await e.bindEmailAddress(i),this.setState({continueDisabled:!1})}else await X.a.get().unbindThreePid(r,i);this.setState({bound:e})}catch(e){console.error(`Unable to ${t} email address ${i} ${e}`),this.setState({verifying:!1,continueDisabled:!1,addTask:null}),Ie.a.createTrackedDialog(`Unable to ${t} email address`,"",o,{title:n,description:e&&e.message?e.message:Object(c.a)("Operation failed")})}}async changeBindingTangledAddBind({bind:e,label:t,errorTitle:n}){const o=u.getComponent("dialogs.ErrorDialog"),{medium:r,address:i}=this.props.email,a=new sd;this.setState({verifying:!0,continueDisabled:!0,addTask:a});try{await X.a.get().deleteThreePid(r,i),e?await a.bindEmailAddress(i):await a.addEmailAddress(i),this.setState({continueDisabled:!1,bound:e})}catch(e){console.error(`Unable to ${t} email address ${i} ${e}`),this.setState({verifying:!1,continueDisabled:!1,addTask:null}),Ie.a.createTrackedDialog(`Unable to ${t} email address`,"",o,{title:n,description:e&&e.message?e.message:Object(c.a)("Operation failed")})}}render(){const e=u.getComponent("elements.AccessibleButton"),{address:t}=this.props.email,{verifying:n,bound:o}=this.state;let r;return r=n?i.a.createElement("span",null,Object(c.a)("Verify the link in your inbox"),i.a.createElement(e,{className:"mx_ExistingEmailAddress_confirmBtn",kind:"primary_sm",onClick:this.onContinueClick},Object(c.a)("Complete"))):o?i.a.createElement(e,{className:"mx_ExistingEmailAddress_confirmBtn",kind:"danger_sm",onClick:this.onRevokeClick},Object(c.a)("Revoke")):i.a.createElement(e,{className:"mx_ExistingEmailAddress_confirmBtn",kind:"primary_sm",onClick:this.onShareClick},Object(c.a)("Share")),i.a.createElement("div",{className:"mx_ExistingEmailAddress"},i.a.createElement("span",{className:"mx_ExistingEmailAddress_email"},t),r)}}R()(Vm,"propTypes",{email:Se.a.object.isRequired});class zm extends i.a.Component{render(){let e;return e=this.props.emails.length>0?this.props.emails.map(e=>i.a.createElement(Vm,{email:e,key:e.address})):i.a.createElement("span",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Discovery options will appear once you have added an email above.")),i.a.createElement("div",{className:"mx_EmailAddresses"},e)}}R()(zm,"propTypes",{emails:Se.a.array.isRequired});class Km extends i.a.Component{constructor(e){super(e),R()(this,"onRevokeClick",e=>{e.stopPropagation(),e.preventDefault(),this.changeBinding({bind:!1,label:"revoke",errorTitle:Object(c.a)("Unable to revoke sharing for phone number")})}),R()(this,"onShareClick",e=>{e.stopPropagation(),e.preventDefault(),this.changeBinding({bind:!0,label:"share",errorTitle:Object(c.a)("Unable to share phone number")})}),R()(this,"onVerificationCodeChange",e=>{this.setState({verificationCode:e.target.value})}),R()(this,"onContinueClick",async e=>{e.stopPropagation(),e.preventDefault(),this.setState({continueDisabled:!0});const t=this.state.verificationCode;try{await this.state.addTask.haveMsisdnToken(t),this.setState({addTask:null,continueDisabled:!1,verifying:!1,verifyError:null,verificationCode:""})}catch(e){if(this.setState({continueDisabled:!1}),"M_THREEPID_AUTH_FAILED"!==e.errcode){const t=u.getComponent("dialogs.ErrorDialog");console.error("Unable to verify phone number: "+e),Ie.a.createTrackedDialog("Unable to verify phone number","",t,{title:Object(c.a)("Unable to verify phone number."),description:e&&e.message?e.message:Object(c.a)("Operation failed")})}else this.setState({verifyError:Object(c.a)("Incorrect verification code")})}});const{bound:t}=e.msisdn;this.state={verifying:!1,verificationCode:"",addTask:null,continueDisabled:!1,bound:t}}UNSAFE_componentWillReceiveProps(e){const{bound:t}=e.msisdn;this.setState({bound:t})}async changeBinding({bind:e,label:t,errorTitle:n}){if(!await X.a.get().doesServerSupportSeparateAddAndBind())return this.changeBindingTangledAddBind({bind:e,label:t,errorTitle:n});const o=u.getComponent("dialogs.ErrorDialog"),{medium:r,address:i}=this.props.msisdn;try{if(e){const e=new sd;this.setState({verifying:!0,continueDisabled:!0,addTask:e}),await e.bindMsisdn(null,"+"+i),this.setState({continueDisabled:!1})}else await X.a.get().unbindThreePid(r,i);this.setState({bound:e})}catch(e){console.error(`Unable to ${t} phone number ${i} ${e}`),this.setState({verifying:!1,continueDisabled:!1,addTask:null}),Ie.a.createTrackedDialog(`Unable to ${t} phone number`,"",o,{title:n,description:e&&e.message?e.message:Object(c.a)("Operation failed")})}}async changeBindingTangledAddBind({bind:e,label:t,errorTitle:n}){const o=u.getComponent("dialogs.ErrorDialog"),{medium:r,address:i}=this.props.msisdn,a=new sd;this.setState({verifying:!0,continueDisabled:!0,addTask:a});try{await X.a.get().deleteThreePid(r,i),e?await a.bindMsisdn(null,"+"+i):await a.addMsisdn(null,"+"+i),this.setState({continueDisabled:!1,bound:e})}catch(e){console.error(`Unable to ${t} phone number ${i} ${e}`),this.setState({verifying:!1,continueDisabled:!1,addTask:null}),Ie.a.createTrackedDialog(`Unable to ${t} phone number`,"",o,{title:n,description:e&&e.message?e.message:Object(c.a)("Operation failed")})}}render(){const e=u.getComponent("elements.AccessibleButton"),t=u.getComponent("elements.Field"),{address:n}=this.props.msisdn,{verifying:o,bound:r}=this.state;let a;return a=o?i.a.createElement("span",{className:"mx_ExistingPhoneNumber_verification"},i.a.createElement("span",null,Object(c.a)("Please enter verification code sent via text."),i.a.createElement("br",null),this.state.verifyError),i.a.createElement("form",{onSubmit:this.onContinueClick,autoComplete:"off",noValidate:!0},i.a.createElement(t,{type:"text",label:Object(c.a)("Verification code"),autoComplete:"off",disabled:this.state.continueDisabled,value:this.state.verificationCode,onChange:this.onVerificationCodeChange}))):r?i.a.createElement(e,{className:"mx_ExistingPhoneNumber_confirmBtn",kind:"danger_sm",onClick:this.onRevokeClick},Object(c.a)("Revoke")):i.a.createElement(e,{className:"mx_ExistingPhoneNumber_confirmBtn",kind:"primary_sm",onClick:this.onShareClick},Object(c.a)("Share")),i.a.createElement("div",{className:"mx_ExistingPhoneNumber"},i.a.createElement("span",{className:"mx_ExistingPhoneNumber_address"},"+",n),a)}}R()(Km,"propTypes",{msisdn:Se.a.object.isRequired});class Wm extends i.a.Component{render(){let e;return e=this.props.msisdns.length>0?this.props.msisdns.map(e=>i.a.createElement(Km,{msisdn:e,key:e.address})):i.a.createElement("span",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Discovery options will appear once you have added a phone number above.")),i.a.createElement("div",{className:"mx_PhoneNumbers"},e)}}R()(Wm,"propTypes",{msisdns:Se.a.array.isRequired});class Ym extends i.a.Component{constructor(){super(),R()(this,"_togglePolicy",e=>{const t=Object(ue.a)(this.state.policies);t[e].checked=!t[e].checked,this.setState({policies:t})}),R()(this,"_onContinue",()=>{!!this.state.policies.some(e=>!e.checked)||(this.setState({busy:!0}),this.props.onFinished(this.state.policies.map(e=>e.url)))}),this.state={policies:[],busy:!1}}componentDidMount(){const e=[];for(const t of this.props.policiesAndServicePairs){const n=Object.values(t.policies);for(const t of n){const n=Object(c.j)(Object.keys(t).filter(e=>"version"!==e)),o={checked:!1,url:t[n].url,name:t[n].name};e.push(o)}}this.setState({policies:e})}_renderCheckboxes(){const e=[];for(let t=0;t<this.state.policies.length;t++){const n=this.state.policies[t],o=Object(c.a)("Accept <policyLink /> to continue:",{},{policyLink:()=>i.a.createElement("a",{href:n.url,rel:"noreferrer noopener",target:"_blank"},n.name,i.a.createElement("span",{className:"mx_InlineTermsAgreement_link"}))});e.push(i.a.createElement("div",{key:t,className:"mx_InlineTermsAgreement_cbContainer"},i.a.createElement("div",null,o),i.a.createElement("div",{className:"mx_InlineTermsAgreement_checkbox"},i.a.createElement(je.a,{onChange:()=>this._togglePolicy(t),checked:n.checked},Object(c.a)("Accept")))))}return e}render(){const e=u.getComponent("views.elements.AccessibleButton"),t=!!this.state.policies.some(e=>!e.checked);return i.a.createElement("div",null,this.props.introElement,this._renderCheckboxes(),i.a.createElement(e,{onClick:this._onContinue,disabled:t||this.state.busy,kind:"primary_sm"},Object(c.a)("Continue")))}}R()(Ym,"propTypes",{policiesAndServicePairs:Se.a.array.isRequired,agreedUrls:Se.a.array.isRequired,onFinished:Se.a.func.isRequired,introElement:Se.a.node});class $m extends i.a.Component{render(){const e=u.getComponent("views.elements.DialogButtons");return i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("The other party cancelled the verification.")),i.a.createElement(e,{primaryButton:Object(c.a)("OK"),hasCancel:!1,onPrimaryButtonClick:this.props.onDone}))}}R()($m,"propTypes",{onDone:Se.a.func.isRequired});class Qm extends i.a.Component{render(){const e=u.getComponent("views.elements.DialogButtons");return i.a.createElement("div",null,i.a.createElement("h2",null,Object(c.a)("Verified!")),i.a.createElement("p",null,Object(c.a)("You've successfully verified this user.")),i.a.createElement("p",null,Object(c.a)("Secure messages with this user are end-to-end encrypted and not able to be read by third parties.")),i.a.createElement(e,{onPrimaryButtonClick:this.props.onDone,primaryButton:Object(c.a)("Got It"),hasCancel:!1}))}}var Xm,Jm,Zm;R()(Qm,"propTypes",{onDone:Se.a.func.isRequired});let eg=Object(fo.a)("views.verification.VerificationQREmojiOptions")((Zm=Jm=class extends i.a.Component{render(){const{request:e}=this.props;let t;return t=e.otherPartySupportsMethod(gi.c)?i.a.createElement(fi,{qrCodeData:e.qrCodeData}):i.a.createElement("div",{className:"mx_VerificationQREmojiOptions_noQR"},i.a.createElement(We.a,null)),i.a.createElement("div",null,Object(c.a)("Verify this session by completing one of the following:"),i.a.createElement("div",{className:"mx_IncomingSasDialog_startOptions"},i.a.createElement("div",{className:"mx_IncomingSasDialog_startOption"},i.a.createElement("p",null,Object(c.a)("Scan this unique code")),t),i.a.createElement("div",{className:"mx_IncomingSasDialog_betweenText"},Object(c.a)("or")),i.a.createElement("div",{className:"mx_IncomingSasDialog_startOption"},i.a.createElement("p",null,Object(c.a)("Compare unique emoji")),i.a.createElement("span",{className:"mx_IncomingSasDialog_helpText"},Object(c.a)("Compare a unique set of emoji if you don't have a camera on either device")),i.a.createElement(g.a,{onClick:this.props.onStartEmoji,kind:"primary"},Object(c.a)("Start")))),i.a.createElement(g.a,{onClick:this.props.onCancel,kind:"danger"},Object(c.a)("Cancel")))}},R()(Jm,"propTypes",{request:Se.a.object.isRequired,onCancel:Se.a.func.isRequired,onStartEmoji:Se.a.func.isRequired}),Xm=Zm))||Xm;class tg extends i.a.Component{constructor(e){super(e),R()(this,"onMatchClick",()=>{this.setState({pending:!0}),this.props.onDone()}),R()(this,"onDontMatchClick",()=>{this.setState({cancelling:!0}),this.props.onCancel()}),this.state={pending:!1}}componentWillMount(){Nn()}render(){let e,t,n;if(this.props.sas.emoji){const n=this.props.sas.emoji.map((e,t)=>{return i.a.createElement("div",{className:"mx_VerificationShowSas_emojiSas_block",key:t},i.a.createElement("div",{className:"mx_VerificationShowSas_emojiSas_emoji"},e[0]),i.a.createElement("div",{className:"mx_VerificationShowSas_emojiSas_label"},Object(c.a)((n=e[1]).charAt(0).toUpperCase()+n.slice(1))));var n});e=i.a.createElement("div",{className:"mx_VerificationShowSas_emojiSas"},n.slice(0,4),i.a.createElement("div",{className:"mx_VerificationShowSas_emojiSas_break"}),n.slice(4)),t=this.props.isSelf?Object(c.a)("Confirm the emoji below are displayed on both sessions, in the same order:"):Object(c.a)("Verify this user by confirming the following emoji appear on their screen.")}else{if(!this.props.sas.decimal)return i.a.createElement("div",null,Object(c.a)("Unable to find a supported verification method."),i.a.createElement(g.a,{kind:"primary",onClick:this.props.onCancel,className:"mx_UserInfo_wideButton"},Object(c.a)("Cancel")));{const n=this.props.sas.decimal.map((e,t)=>i.a.createElement("span",{key:t},e));e=i.a.createElement("div",{className:"mx_VerificationShowSas_decimalSas"},n),t=this.props.isSelf?Object(c.a)("Verify this session by confirming the following number appears on its screen."):Object(c.a)("Verify this user by confirming the following number appears on their screen.")}}if(this.state.pending||this.state.cancelling){let e;if(this.state.pending)if(this.props.isSelf)e=this.props.device?Object(c.a)("Waiting for your other session, %(deviceName)s (%(deviceId)s), to verify…",{deviceName:this.props.device?this.props.device.getDisplayName():"",deviceId:this.props.device?this.props.device.deviceId:""}):Object(c.a)("Waiting for your other session to verify…");else{const{displayName:t}=this.props;e=Object(c.a)("Waiting for %(displayName)s to verify…",{displayName:t})}else e=Object(c.a)("Cancelling…");n=i.a.createElement(li,{text:e})}else n=this.props.inDialog?i.a.createElement(Vo.a,{primaryButton:Object(c.a)("They match"),onPrimaryButtonClick:this.onMatchClick,primaryButtonClass:"mx_UserInfo_wideButton mx_VerificationShowSas_matchButton",cancelButton:Object(c.a)("They don't match"),onCancel:this.onDontMatchClick,cancelButtonClass:"mx_UserInfo_wideButton mx_VerificationShowSas_noMatchButton"}):i.a.createElement(i.a.Fragment,null,i.a.createElement(g.a,{onClick:this.onDontMatchClick,kind:"danger"},Object(c.a)("They don't match")),i.a.createElement(g.a,{onClick:this.onMatchClick,kind:"primary"},Object(c.a)("They match")));return i.a.createElement("div",{className:"mx_VerificationShowSas"},i.a.createElement("p",null,t),e,i.a.createElement("p",null,this.props.isSelf?"":Object(c.a)("To be secure, do this in person or use a trusted way to communicate.")),n)}}R()(tg,"propTypes",{pending:Se.a.bool,displayName:Se.a.string,device:Se.a.object,onDone:Se.a.func.isRequired,onCancel:Se.a.func.isRequired,sas:Se.a.object.isRequired,isSelf:Se.a.bool,inDialog:Se.a.bool}),Object(c.b)("Dog"),Object(c.b)("Cat"),Object(c.b)("Lion"),Object(c.b)("Horse"),Object(c.b)("Unicorn"),Object(c.b)("Pig"),Object(c.b)("Elephant"),Object(c.b)("Rabbit"),Object(c.b)("Panda"),Object(c.b)("Rooster"),Object(c.b)("Penguin"),Object(c.b)("Turtle"),Object(c.b)("Fish"),Object(c.b)("Octopus"),Object(c.b)("Butterfly"),Object(c.b)("Flower"),Object(c.b)("Tree"),Object(c.b)("Cactus"),Object(c.b)("Mushroom"),Object(c.b)("Globe"),Object(c.b)("Moon"),Object(c.b)("Cloud"),Object(c.b)("Fire"),Object(c.b)("Banana"),Object(c.b)("Apple"),Object(c.b)("Strawberry"),Object(c.b)("Corn"),Object(c.b)("Pizza"),Object(c.b)("Cake"),Object(c.b)("Heart"),Object(c.b)("Smiley"),Object(c.b)("Robot"),Object(c.b)("Hat"),Object(c.b)("Glasses"),Object(c.b)("Spanner"),Object(c.b)("Santa"),Object(c.b)("Thumbs up"),Object(c.b)("Umbrella"),Object(c.b)("Hourglass"),Object(c.b)("Clock"),Object(c.b)("Gift"),Object(c.b)("Light bulb"),Object(c.b)("Book"),Object(c.b)("Pencil"),Object(c.b)("Paperclip"),Object(c.b)("Scissors"),Object(c.b)("Lock"),Object(c.b)("Key"),Object(c.b)("Hammer"),Object(c.b)("Telephone"),Object(c.b)("Flag"),Object(c.b)("Train"),Object(c.b)("Bicycle"),Object(c.b)("Aeroplane"),Object(c.b)("Rocket"),Object(c.b)("Trophy"),Object(c.b)("Ball"),Object(c.b)("Guitar"),Object(c.b)("Trumpet"),Object(c.b)("Bell"),Object(c.b)("Anchor"),Object(c.b)("Headphones"),Object(c.b)("Folder"),Object(c.b)("Pin");let ng={};o.m&&(ng["structures.ContextMenu"]=o.m),O&&(ng["structures.HomePage"]=O),kn&&(ng["structures.LeftPanel"]=kn),xn&&(ng["structures.LeftPanelWidget"]=xn),co&&(ng["structures.LoggedInView"]=co),lo.a&&(ng["structures.MatrixChat"]=lo.a),io&&(ng["structures.NonUrgentToastContainer"]=io),ln.a&&(ng["structures.RoomSearch"]=ln.a),uo.a&&(ng["structures.RoomView"]=uo.a),we&&(ng["structures.TabbedView"]=we),ho&&(ng["structures.ToastContainer"]=ho),cn&&(ng["structures.UserMenu"]=cn),Bo&&(ng["structures.auth.Login"]=Bo),Go&&(ng["structures.auth.Registration"]=Go),qo.a&&(ng["views.auth.PassphraseField"]=qo.a),Ro&&(ng["views.auth.PasswordLogin"]=Ro),Yo&&(ng["views.auth.RegistrationForm"]=Yo),p.a&&(ng["views.avatars.BaseAvatar"]=p.a),pn.a&&(ng["views.avatars.DecoratedRoomAvatar"]=pn.a),ne&&(ng["views.avatars.GroupAvatar"]=ne),$o.a&&(ng["views.avatars.MemberAvatar"]=$o.a),Wn.a&&(ng["views.avatars.RoomAvatar"]=Wn.a),Qo.a&&(ng["views.avatars.WidgetAvatar"]=Qo.a),Xo.a&&(ng["views.context_menus.CallContextMenu"]=Xo.a),de.e&&(ng["views.context_menus.IconizedContextMenu"]=de.e),Jo.a&&(ng["views.context_menus.WidgetContextMenu"]=Jo.a),Zo.a&&(ng["views.dialogs.CommunityPrototypeInviteDialog"]=Zo.a),er.a&&(ng["views.dialogs.CreateCommunityPrototypeDialog"]=er.a),sn&&(ng["views.dialogs.EditCommunityPrototypeDialog"]=sn),tr.d&&(ng["views.dialogs.InviteDialog"]=tr.d),nr.a&&(ng["views.dialogs.ModalWidgetDialog"]=nr.a),Wo&&(ng["views.dialogs.RegistrationEmailPromptDialog"]=Wo),or.a&&(ng["views.dialogs.ServerOfflineDialog"]=or.a),Fo&&(ng["views.dialogs.ServerPickerDialog"]=Fo),rr.a&&(ng["views.dialogs.ShareDialog"]=rr.a),ir.a&&(ng["views.dialogs.WidgetCapabilitiesPromptDialog"]=ir.a),g.a&&(ng["views.elements.AccessibleButton"]=g.a),L.a&&(ng["views.elements.AccessibleTooltipButton"]=L.a),ar.b&&(ng["views.elements.DesktopBuildsNotice"]=ar.b),sr&&(ng["views.elements.Draggable"]=sr),cr.a&&(ng["views.elements.EffectsOverlay"]=cr.a),lr&&(ng["views.elements.EventListSummary"]=lr),dt&&(ng["views.elements.EventTilePreview"]=dt),Ce.a&&(ng["views.elements.Field"]=Ce.a),ur&&(ng["views.elements.IRCTimelineProfileResizer"]=ur),hr.a&&(ng["views.elements.InfoTooltip"]=hr.a),pr&&(ng["views.elements.MemberEventListSummary"]=pr),v.b&&(ng["views.elements.MiniAvatarUploader"]=v.b),mr&&(ng["views.elements.ProgressBar"]=mr),gr.a&&(ng["views.elements.QRCode"]=gr.a),Io&&(ng["views.elements.SSOButtons"]=Io),Po&&(ng["views.elements.ServerPicker"]=Po),st&&(ng["views.elements.SettingsFlag"]=st),nt&&(ng["views.elements.Slider"]=nt),je.a&&(ng["views.elements.StyledCheckbox"]=je.a),it.a&&(ng["views.elements.StyledRadioButton"]=it.a),ht&&(ng["views.elements.StyledRadioGroup"]=ht),at.a&&(ng["views.elements.ToggleSwitch"]=at.a),fr.a&&(ng["views.elements.Tooltip"]=fr.a),U&&(ng["views.elements.UserTagTile"]=U),bo.a&&(ng["views.elements.Validation"]=bo.a),Ur&&(ng["views.emojipicker.Category"]=Ur),kr&&(ng["views.emojipicker.Emoji"]=kr),Fr&&(ng["views.emojipicker.EmojiPicker"]=Fr),Sr&&(ng["views.emojipicker.Header"]=Sr),xr&&(ng["views.emojipicker.Preview"]=xr),Ir&&(ng["views.emojipicker.QuickReactions"]=Ir),jr&&(ng["views.emojipicker.ReactionPicker"]=jr),wr&&(ng["views.emojipicker.Search"]=wr),Hr&&(ng["views.messages.EncryptionEvent"]=Hr),Gr&&(ng["views.messages.EventTileBubble"]=Gr),zr&&(ng["views.messages.MJitsiWidgetEvent"]=zr),ai&&(ng["views.messages.MVideoBody"]=ai),si.a&&(ng["views.messages.RedactedBody"]=si.a),ci.b&&(ng["views.right_panel.BaseCard"]=ci.b),pi&&(ng["views.right_panel.EncryptionInfo"]=pi),Si&&(ng["views.right_panel.EncryptionPanel"]=Si),Oi&&(ng["views.right_panel.GroupHeaderButtons"]=Oi),Ti.a&&(ng["views.right_panel.HeaderButton"]=Ti.a),wi.b&&(ng["views.right_panel.HeaderButtons"]=wi.b),ki.a&&(ng["views.right_panel.RoomHeaderButtons"]=ki.a),Ri.a&&(ng["views.right_panel.RoomSummaryCard"]=Ri.a),sa&&(ng["views.right_panel.UserInfo"]=sa),Ei&&(ng["views.right_panel.VerificationPanel"]=Ei),ca.a&&(ng["views.right_panel.WidgetCard"]=ca.a),ts&&(ng["views.rooms.Autocomplete"]=ts),ns.a&&(ng["views.rooms.AuxPanel"]=ns.a),nc&&(ng["views.rooms.BasicMessageComposer"]=nc),oc.a&&(ng["views.rooms.NewRoomIntro"]=oc.a),oe.a&&(ng["views.rooms.NotificationBadge"]=oe.a),_n&&(ng["views.rooms.RoomBreadcrumbs"]=_n),Ee&&(ng["views.rooms.RoomList"]=Ee),vn&&(ng["views.rooms.RoomListNumResults"]=vn),Q.b&&(ng["views.rooms.RoomSublist"]=Q.b),rc.a&&(ng["views.rooms.RoomTile"]=rc.a),re&&(ng["views.rooms.TemporaryTile"]=re),Ht&&(ng["views.settings.UpdateCheckButton"]=Ht),mc&&(ng["views.settings.tabs.room.BridgeSettingsTab"]=mc),gt&&(ng["views.settings.tabs.user.AppearanceUserSettingsTab"]=gt),gc.a&&(ng["views.toasts.GenericExpiringToast"]=gc.a),Hn.a&&(ng["views.toasts.GenericToast"]=Hn.a),fc.a&&(ng["views.toasts.NonUrgentEchoFailureToast"]=fc.a),vc&&(ng["views.toasts.VerificationRequestToast"]=vc),oo&&(ng["views.voip.CallContainer"]=oo),no&&(ng["views.voip.CallPreview"]=no),Xn.a&&(ng["views.voip.CallView"]=Xn.a),Ec.a&&(ng["views.voip.CallViewForRoom"]=Ec.a),yc.a&&(ng["views.voip.DialPad"]=yc.a),Sc.a&&(ng["views.voip.DialPadModal"]=Sc.a),Qn&&(ng["views.voip.IncomingCallBox"]=Qn),Tc.b&&(ng["views.voip.VideoFeed"]=Tc.b),a.a&&(ng["structures.AutoHideScrollbar"]=a.a),z&&(ng["structures.CustomRoomTagPanel"]=z),wc.a&&(ng["structures.EmbeddedPage"]=wc.a),Oc&&(ng["structures.FilePanel"]=Oc),kc&&(ng["structures.GenericErrorPage"]=kc),j&&(ng["structures.GroupFilterPanel"]=j),jc&&(ng["structures.GroupView"]=jc),bn&&(ng["structures.IndicatorScrollbar"]=bn),Be&&(ng["structures.InteractiveAuth"]=Be),Rc.a&&(ng["structures.MainSplit"]=Rc.a),Yc&&(ng["structures.MessagePanel"]=Yc),Jc&&(ng["structures.MyGroups"]=Jc),el&&(ng["structures.NotificationPanel"]=el),Ac.a&&(ng["structures.RightPanel"]=Ac.a),cl&&(ng["structures.RoomDirectory"]=cl),hl&&(ng["structures.RoomStatusBar"]=hl),pl.a&&(ng["structures.ScrollPanel"]=pl.a),ml&&(ng["structures.SearchBox"]=ml),gl.a&&(ng["structures.TimelinePanel"]=gl.a),_l&&(ng["structures.UploadBar"]=_l),bl&&(ng["structures.UserView"]=bl),yl&&(ng["structures.ViewSource"]=yl),wl&&(ng["structures.auth.CompleteSecurity"]=wl),kl&&(ng["structures.auth.E2eSetup"]=kl),Al&&(ng["structures.auth.ForgotPassword"]=Al),Tl.a&&(ng["structures.auth.SetupEncryptionBody"]=Tl.a),Ll&&(ng["structures.auth.SoftLogout"]=Ll),Ul&&(ng["views.auth.AuthBody"]=Ul),Bl&&(ng["views.auth.AuthFooter"]=Bl),jl&&(ng["views.auth.AuthHeader"]=jl),Gl&&(ng["views.auth.AuthHeaderLogo"]=Gl),_o&&(ng["views.auth.AuthPage"]=_o),ql.a&&(ng["views.auth.CaptchaForm"]=ql.a),Cl&&(ng["views.auth.CompleteSecurityBody"]=Cl),xo&&(ng["views.auth.CountryDropdown"]=xo),Le.d&&(ng["views.auth.InteractiveAuthEntryComponents"]=Le.d),Vl&&(ng["views.auth.LanguageSelector"]=Vl),zl&&(ng["views.auth.Welcome"]=zl),Wl&&(ng["views.avatars.MemberStatusMessageAvatar"]=Wl),Yl&&(ng["views.context_menus.GenericElementContextMenu"]=Yl),$l&&(ng["views.context_menus.GenericTextContextMenu"]=$l),Ql&&(ng["views.context_menus.GroupInviteTileContextMenu"]=Ql),tu&&(ng["views.context_menus.MessageContextMenu"]=tu),Kl&&(ng["views.context_menus.StatusMessageContextMenu"]=Kl),nu&&(ng["views.context_menus.TagTileContextMenu"]=nu),ru&&(ng["views.dialogs.AddressPickerDialog"]=ru),iu&&(ng["views.dialogs.AskInviteAnywayDialog"]=iu),rn.a&&(ng["views.dialogs.BaseDialog"]=rn.a),Jt&&(ng["views.dialogs.BugReportDialog"]=Jt),au.a&&(ng["views.dialogs.ChangelogDialog"]=au.a),su&&(ng["views.dialogs.ConfirmAndWaitRedactDialog"]=su),cu&&(ng["views.dialogs.ConfirmRedactDialog"]=cu),Hi&&(ng["views.dialogs.ConfirmUserActionDialog"]=Hi),lu&&(ng["views.dialogs.ConfirmWipeDeviceDialog"]=lu),uu&&(ng["views.dialogs.CreateGroupDialog"]=uu),du&&(ng["views.dialogs.CreateRoomDialog"]=du),hu&&(ng["views.dialogs.CryptoStoreTooNewDialog"]=hu),Ge&&(ng["views.dialogs.DeactivateAccountDialog"]=Ge),Cu&&(ng["views.dialogs.DevtoolsDialog"]=Cu),De.a&&(ng["views.dialogs.ErrorDialog"]=De.a),en&&(ng["views.dialogs.FeedbackDialog"]=en),xu&&(ng["views.dialogs.IncomingSasDialog"]=xu),Zt.a&&(ng["views.dialogs.InfoDialog"]=Zt.a),Ou.a&&(ng["views.dialogs.IntegrationsDisabledDialog"]=Ou.a),ku.a&&(ng["views.dialogs.IntegrationsImpossibleDialog"]=ku.a),xl&&(ng["views.dialogs.InteractiveAuthDialog"]=xl),Ru&&(ng["views.dialogs.KeySignatureUploadFailedDialog"]=Ru),Au&&(ng["views.dialogs.LazyLoadingDisabledDialog"]=Au),Iu&&(ng["views.dialogs.LazyLoadingResyncDialog"]=Iu),tn&&(ng["views.dialogs.LogoutDialog"]=tn),Du&&(ng["views.dialogs.ManualDeviceKeyVerificationDialog"]=Du),Nu&&(ng["views.dialogs.MessageEditHistoryDialog"]=Nu),Fu.a&&(ng["views.dialogs.NewSessionReviewDialog"]=Fu.a),vt.a&&(ng["views.dialogs.QuestionDialog"]=vt.a),Hu&&(ng["views.dialogs.ReportEventDialog"]=Hu),nd&&(ng["views.dialogs.RoomSettingsDialog"]=nd),od&&(ng["views.dialogs.RoomUpgradeDialog"]=od),rd&&(ng["views.dialogs.RoomUpgradeWarningDialog"]=rd),id&&(ng["views.dialogs.SessionRestoreErrorDialog"]=id),cd&&(ng["views.dialogs.SetEmailDialog"]=cd),ld&&(ng["views.dialogs.SlashCommandHelpDialog"]=ld),ud&&(ng["views.dialogs.StorageEvictedDialog"]=ud),dd.a&&(ng["views.dialogs.TabbedIntegrationManagerDialog"]=dd.a),pd&&(ng["views.dialogs.TermsDialog"]=pd),md&&(ng["views.dialogs.TextInputDialog"]=md),gd&&(ng["views.dialogs.UploadConfirmDialog"]=gd),fd&&(ng["views.dialogs.UploadFailureDialog"]=fd),Qt&&(ng["views.dialogs.UserSettingsDialog"]=Qt),_d.a&&(ng["views.dialogs.VerificationRequestDialog"]=_d.a),bd.a&&(ng["views.dialogs.WidgetOpenIDPermissionsDialog"]=bd.a),vd.a&&(ng["views.dialogs.security.AccessSecretStorageDialog"]=vd.a),Ed&&(ng["views.dialogs.security.ConfirmDestroyCrossSigningDialog"]=Ed),Ol&&(ng["views.dialogs.security.CreateCrossSigningDialog"]=Ol),Et.a&&(ng["views.dialogs.security.RestoreKeyBackupDialog"]=Et.a),yd.a&&(ng["views.dialogs.security.SetupEncryptionDialog"]=yd.a),al&&(ng["views.directory.NetworkDropdown"]=al),Sd&&(ng["views.elements.ActionButton"]=Sd),Td&&(ng["views.elements.AddressSelector"]=Td),wd&&(ng["views.elements.AddressTile"]=wd),Cd.a&&(ng["views.elements.AppPermission"]=Cd.a),wn.a&&(ng["views.elements.AppTile"]=wn.a),xd.a&&(ng["views.elements.AppWarning"]=xd.a),kd&&(ng["views.elements.DNDTagTile"]=kd),Vo.a&&(ng["views.elements.DialogButtons"]=Vo.a),Rd&&(ng["views.elements.DirectorySearchBox"]=Rd),Id&&(ng["views.elements.Dropdown"]=Id),Nd&&(ng["views.elements.EditableItemList"]=Nd),Fd&&(ng["views.elements.EditableText"]=Fd),Md&&(ng["views.elements.EditableTextContainer"]=Md),Pd.a&&(ng["views.elements.ErrorBoundary"]=Pd.a),Ud&&(ng["views.elements.Flair"]=Ud),Yn.a&&(ng["views.elements.FormButton"]=Yn.a),Bi.a&&(ng["views.elements.ImageView"]=Bi.a),jt.a&&(ng["views.elements.InlineSpinner"]=jt.a),Xe.a&&(ng["views.elements.LabelledToggleSwitch"]=Xe.a),Fe&&(ng["views.elements.LanguageDropdown"]=Fe),Pr&&(ng["views.elements.LazyRenderList"]=Pr),Bd.a&&(ng["views.elements.PersistedElement"]=Bd.a),Zn&&(ng["views.elements.PersistentApp"]=Zn),dc&&(ng["views.elements.Pill"]=dc),ji&&(ng["views.elements.PowerSelector"]=ji),jd.a&&(ng["views.elements.ReplyThread"]=jd.a),Ln.a&&(ng["views.elements.ResizeHandle"]=Ln.a),Gd&&(ng["views.elements.RoomAliasField"]=Gd),Hd&&(ng["views.elements.RoomDirectoryButton"]=Hd),We.a&&(ng["views.elements.Spinner"]=We.a),Vd&&(ng["views.elements.Spoiler"]=Vd),Kd&&(ng["views.elements.StartChatButton"]=Kd),El&&(ng["views.elements.SyntaxHighlight"]=El),Od&&(ng["views.elements.TagTile"]=Od),Do.a&&(ng["views.elements.TextWithTooltip"]=Do.a),Yd&&(ng["views.elements.TintableSvg"]=Yd),$d&&(ng["views.elements.TintableSvgButton"]=$d),Qd&&(ng["views.elements.TooltipButton"]=Qd),Xd&&(ng["views.elements.TruncatedList"]=Xd),fi&&(ng["views.elements.crypto.VerificationQRCode"]=fi),Jd&&(ng["views.groups.GroupInviteTile"]=Jd),Zd&&(ng["views.groups.GroupMemberList"]=Zd),eh&&(ng["views.groups.GroupMemberTile"]=eh),th&&(ng["views.groups.GroupPublicityToggle"]=th),nh&&(ng["views.groups.GroupRoomInfo"]=nh),oh&&(ng["views.groups.GroupRoomList"]=oh),ih&&(ng["views.groups.GroupRoomTile"]=ih),ch&&(ng["views.groups.GroupTile"]=ch),zt&&(ng["views.groups.GroupUserSettings"]=zt),lh&&(ng["views.messages.DateSeparator"]=lh),Oh&&(ng["views.messages.EditHistoryMessage"]=Oh),kh&&(ng["views.messages.MAudioBody"]=kh),ii&&(ng["views.messages.MFileBody"]=ii),Rh&&(ng["views.messages.MImageBody"]=Rh),Ih&&(ng["views.messages.MKeyVerificationConclusion"]=Ih),Dh&&(ng["views.messages.MKeyVerificationRequest"]=Dh),Nh&&(ng["views.messages.MStickerBody"]=Nh),Lh&&(ng["views.messages.MessageActionBar"]=Lh),Uh.a&&(ng["views.messages.MessageEvent"]=Uh.a),Bh&&(ng["views.messages.MessageTimestamp"]=Bh),jh&&(ng["views.messages.MjolnirBody"]=jh),Gh&&(ng["views.messages.ReactionsRow"]=Gh),qh&&(ng["views.messages.ReactionsRowButton"]=qh),Hh&&(ng["views.messages.ReactionsRowButtonTooltip"]=Hh),Vh&&(ng["views.messages.RoomAvatarEvent"]=Vh),zh&&(ng["views.messages.RoomCreate"]=zh),Kh&&(ng["views.messages.SenderProfile"]=Kh),Wh.a&&(ng["views.messages.TextualBody"]=Wh.a),Yh&&(ng["views.messages.TextualEvent"]=Yh),$h&&(ng["views.messages.TileErrorBoundary"]=$h),Xh.a&&(ng["views.messages.UnknownBody"]=Xh.a),Jh&&(ng["views.messages.ViewSourceEvent"]=Jh),tp&&(ng["views.room_settings.AliasSettings"]=tp),op&&(ng["views.room_settings.RelatedGroupSettings"]=op),Xu&&(ng["views.room_settings.RoomProfileSettings"]=Xu),Zh&&(ng["views.room_settings.RoomPublishSetting"]=Zh),rp&&(ng["views.room_settings.UrlPreviewSettings"]=rp),ip.a&&(ng["views.rooms.AppsDrawer"]=ip.a),bi.b&&(ng["views.rooms.E2EIcon"]=bi.b),yp&&(ng["views.rooms.EditMessageComposer"]=yp),wp&&(ng["views.rooms.EntityTile"]=wp),ut.a&&(ng["views.rooms.EventTile"]=ut.a),Cp.a&&(ng["views.rooms.ForwardMessage"]=Cp.a),xp&&(ng["views.rooms.JumpToBottomButton"]=xp),Op&&(ng["views.rooms.LinkPreviewWidget"]=Op),Ap&&(ng["views.rooms.MemberList"]=Ap),Ip&&(ng["views.rooms.MemberTile"]=Ip),Hp&&(ng["views.rooms.MessageComposer"]=Hp),$s&&(ng["views.rooms.MessageComposerFormatBar"]=$s),Vp.a&&(ng["views.rooms.PinnedEventTile"]=Vp.a),zp.a&&(ng["views.rooms.PinnedEventsPanel"]=zp.a),Gi&&(ng["views.rooms.PresenceLabel"]=Gi),Kp.a&&(ng["views.rooms.ReadReceiptMarker"]=Kp.a),Pp&&(ng["views.rooms.ReplyPreview"]=Pp),Qp&&(ng["views.rooms.RoomDetailList"]=Qp),$p&&(ng["views.rooms.RoomDetailRow"]=$p),Xp.a&&(ng["views.rooms.RoomHeader"]=Xp.a),Jp.a&&(ng["views.rooms.RoomPreviewBar"]=Jp.a),Zp.a&&(ng["views.rooms.RoomUpgradeWarningBar"]=Zp.a),em.a&&(ng["views.rooms.SearchBar"]=em.a),tm&&(ng["views.rooms.SearchResultTile"]=tm),sm&&(ng["views.rooms.SendMessageComposer"]=sm),cm.b&&(ng["views.rooms.SimpleRoomHeader"]=cm.b),Fp&&(ng["views.rooms.Stickerpicker"]=Fp),lm&&(ng["views.rooms.ThirdPartyMemberInfo"]=lm),um&&(ng["views.rooms.TopUnreadMessagesBar"]=um),pm&&(ng["views.rooms.WhoIsTypingTile"]=pm),gm&&(ng["views.settings.AvatarSetting"]=gm),hc&&(ng["views.settings.BridgeTile"]=hc),fm&&(ng["views.settings.ChangeAvatar"]=fm),_m&&(ng["views.settings.ChangeDisplayName"]=_m),bm&&(ng["views.settings.ChangePassword"]=bm),vm&&(ng["views.settings.CrossSigningPanel"]=vm),Em&&(ng["views.settings.DevicesPanel"]=Em),ym&&(ng["views.settings.DevicesPanelEntry"]=ym),Tt&&(ng["views.settings.E2eAdvancedPanel"]=Tt),Sm&&(ng["views.settings.EventIndexPanel"]=Sm),Tm.a&&(ng["views.settings.IntegrationManager"]=Tm.a),Lm&&(ng["views.settings.Notifications"]=Lm),Ne&&(ng["views.settings.ProfileSettings"]=Ne),St&&(ng["views.settings.SecureBackupPanel"]=St),Um&&(ng["views.settings.SetIdServer"]=Um),Bm&&(ng["views.settings.SetIntegrationManager"]=Bm),Gm&&(ng["views.settings.account.EmailAddresses"]=Gm),Hm&&(ng["views.settings.account.PhoneNumbers"]=Hm),zm&&(ng["views.settings.discovery.EmailAddresses"]=zm),Wm&&(ng["views.settings.discovery.PhoneNumbers"]=Wm),zu&&(ng["views.settings.tabs.room.AdvancedRoomSettingsTab"]=zu),Ju&&(ng["views.settings.tabs.room.GeneralRoomSettingsTab"]=Ju),td&&(ng["views.settings.tabs.room.NotificationSettingsTab"]=td),Qu&&(ng["views.settings.tabs.room.RolesRoomSettingsTab"]=Qu),Zu&&(ng["views.settings.tabs.room.SecurityRoomSettingsTab"]=Zu),Kt&&(ng["views.settings.tabs.user.FlairUserSettingsTab"]=Kt),Qe&&(ng["views.settings.tabs.user.GeneralUserSettingsTab"]=Qe),Vt&&(ng["views.settings.tabs.user.HelpUserSettingsTab"]=Vt),Ze&&(ng["views.settings.tabs.user.LabsUserSettingsTab"]=Ze),$t&&(ng["views.settings.tabs.user.MjolnirUserSettingsTab"]=$t),xt&&(ng["views.settings.tabs.user.NotificationUserSettingsTab"]=xt),Ot&&(ng["views.settings.tabs.user.PreferencesUserSettingsTab"]=Ot),Ct&&(ng["views.settings.tabs.user.SecurityUserSettingsTab"]=Ct),Lt&&(ng["views.settings.tabs.user.VoiceUserSettingsTab"]=Lt),Ym&&(ng["views.terms.InlineTermsAgreement"]=Ym),$m&&(ng["views.verification.VerificationCancelled"]=$m),Qm&&(ng["views.verification.VerificationComplete"]=Qm),eg&&(ng["views.verification.VerificationQREmojiOptions"]=eg),tg&&(ng["views.verification.VerificationShowSas"]=tg)},function(e,t,n){"use strict";n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return D}));var o=n(82),r=n.n(o),i=n(1),a=n(123),s=n(6),c=n(117),l=n(587),u=n(120),d=n(335),h=n(192),p=n(237);var m=n(86),g=n(589);const f={[p.b.Recent]:new class{async sortRooms(e,t){let n="";m.a.get()&&(n=m.a.get().getUserId());const o={},r=e=>{if(o[e.roomId])return o[e.roomId];const t=(()=>{if(!e||!e.timeline)return Number.MAX_SAFE_INTEGER;if(Object(h.b)(e.getMyMembership())!==h.a.Join){const t=e.currentState.getStateEvents("m.room.member",n);if(t&&!Array.isArray(t))return t.getTs()}for(let t=e.timeline.length-1;t>=0;--t){const o=e.timeline[t];if(o.getTs()&&(o.getSender()===n||g.b(o)))return o.getTs()}return e.timeline.length&&e.timeline[0].getTs()?e.timeline[0].getTs():Number.MAX_SAFE_INTEGER})();return o[e.roomId]=t,t};return e.sort((e,t)=>r(t)-r(e))}},[p.b.Alphabetic]:new class{async sortRooms(e,t){return e.sort((e,t)=>e.name.localeCompare(t.name))}},[p.b.Manual]:new class{async sortRooms(e,t){const n=e=>e.tags[t].order||0;return e.sort((e,t)=>n(e)-n(t))}}};function _(e,t,n){return function(e){if(!f[e])throw new Error(e+" is not a known algorithm");return f[e]}(n).sortRooms(e,t)}var b=n(541),v=n.n(b);class E{constructor(e,t){this.tagId=e,r()(this,"cachedOrderedRooms",void 0),r()(this,"sortingAlgorithm",void 0),r()(this,"updateLock",new v.a),this.setSortAlgorithm(t)}get orderedRooms(){return this.cachedOrderedRooms||[]}async setSortAlgorithm(e){if(!e)throw new Error("A sorting algorithm must be defined");this.sortingAlgorithm=e,await this.setRooms(this.orderedRooms)}getRoomIndex(e){let t=this.cachedOrderedRooms.indexOf(e);return-1===t&&(console.warn(`Degrading performance to find missing room in "${this.tagId}": ${e.roomId}`),t=this.cachedOrderedRooms.findIndex(t=>t.roomId===e.roomId)),t}}var y=n(244),S=n(173);const T=[y.a.Red,y.a.Grey,y.a.Bold,y.a.None];class w extends E{constructor(e,t){super(e,t),r()(this,"indices",{})}categorizeRooms(e){const t={[y.a.Red]:[],[y.a.Grey]:[],[y.a.Bold]:[],[y.a.None]:[]};for(const n of e){t[this.getRoomCategory(n)].push(n)}return t}getRoomCategory(e){return S.a.instance.getRoomState(e).color}async setRooms(e){if(this.sortingAlgorithm===p.b.Manual)this.cachedOrderedRooms=await _(e,this.tagId,this.sortingAlgorithm);else{const t=this.categorizeRooms(e);for(const e of Object.keys(t)){const n=t[e];t[e]=await _(n,this.tagId,this.sortingAlgorithm)}const n=[],o={};for(const e of T)o[e]=n.length,n.push(...t[e]);this.indices=o,this.cachedOrderedRooms=n}}async handleSplice(e,t){if(t===u.c.NewRoom){const t=this.getRoomCategory(e);this.alterCategoryPositionBy(t,1,this.indices),this.cachedOrderedRooms.splice(this.indices[t],0,e),await this.sortCategory(t)}else{if(t!==u.c.RoomRemoved)throw new Error("Unhandled splice: "+t);{const t=this.getRoomIndex(e);if(-1===t)return console.warn(`Tried to remove unknown room from ${this.tagId}: ${e.roomId}`),!1;const n=this.getCategoryFromIndices(t,this.indices);this.alterCategoryPositionBy(n,-1,this.indices),this.cachedOrderedRooms.splice(t,1)}}return!0}async handleRoomUpdate(e,t){try{if(await this.updateLock.acquireAsync(),t===u.c.NewRoom||t===u.c.RoomRemoved)return this.handleSplice(e,t);if(t!==u.c.Timeline&&t!==u.c.ReadReceipt)throw new Error("Unsupported update cause: "+t);const n=this.getRoomCategory(e);if(this.sortingAlgorithm===p.b.Manual)return;const o=this.getRoomIndex(e);if(-1===o)throw new Error(`Room ${e.roomId} has no index in ${this.tagId}`);const r=this.getCategoryFromIndices(o,this.indices);return r!==n&&(this.moveRoomIndexes(1,r,n,this.indices),this.cachedOrderedRooms.splice(o,1),this.cachedOrderedRooms.splice(this.indices[n],0,e)),await this.sortCategory(n),!0}finally{await this.updateLock.release()}}async sortCategory(e){const t=e===T[T.length-1]?Number.MAX_SAFE_INTEGER:this.indices[T[T.indexOf(e)+1]],n=this.indices[e],o=t-n,r=this.cachedOrderedRooms.splice(n,o),i=await _(r,this.tagId,this.sortingAlgorithm);this.cachedOrderedRooms.splice(n,0,...i)}getCategoryFromIndices(e,t){for(let n=0;n<T.length;n++){const o=T[n],r=n===T.length-1,i=t[o],a=r?Number.MAX_SAFE_INTEGER:t[T[n+1]];if(e>=i&&e<a)return o}throw new Error("Programming error: somehow you've ended up with an index that isn't in a category")}moveRoomIndexes(e,t,n,o){this.alterCategoryPositionBy(t,-e,o),this.alterCategoryPositionBy(n,+e,o)}alterCategoryPositionBy(e,t,n){const o=T.indexOf(e)+1;if(t>0)for(let e=o;e<T.length;e++){n[T[e]]+=Math.abs(t)}else if(t<0)for(let e=o;e<T.length;e++){n[T[e]]-=Math.abs(t)}for(let e=1;e<=T.length;e++){const t=T[e-1],o=T[e];n[t]>n[o]&&console.warn(`!! Room list index corruption: ${t} (i:${n[t]}) is greater than ${o} (i:${n[o]}) - category indices are likely desynced from reality`)}}}class C extends E{constructor(e,t){super(e,t)}async setRooms(e){this.cachedOrderedRooms=await _(e,this.tagId,this.sortingAlgorithm)}async handleRoomUpdate(e,t){try{await this.updateLock.acquireAsync();const n=t===u.c.NewRoom||t===u.c.RoomRemoved,o=t===u.c.Timeline||t===u.c.ReadReceipt;if(!n&&!o)throw new Error("Unsupported update cause: "+t);if(t===u.c.NewRoom)this.cachedOrderedRooms.push(e);else if(t===u.c.RoomRemoved){const t=this.getRoomIndex(e);t>=0?this.cachedOrderedRooms.splice(t,1):console.warn(`Tried to remove unknown room from ${this.tagId}: ${e.roomId}`)}return this.cachedOrderedRooms=await _(this.cachedOrderedRooms,this.tagId,this.sortingAlgorithm),!0}finally{await this.updateLock.release()}}}const x={[p.a.Natural]:(e,t)=>new C(e,t),[p.a.Importance]:(e,t)=>new w(e,t)};function O(e,t,n){if(!x[e])throw new Error(e+" is not a known algorithm");return x[e](t,n)}var k=n(88),R=n(803);const A="list_updated_event",I=[u.c.Timeline,u.c.ReadReceipt];class D extends s.EventEmitter{constructor(){super(),r()(this,"_cachedRooms",{}),r()(this,"_cachedStickyRooms",{}),r()(this,"filteredRooms",{}),r()(this,"_stickyRoom",null),r()(this,"_lastStickyRoom",null),r()(this,"sortAlgorithms",void 0),r()(this,"listAlgorithms",void 0),r()(this,"algorithms",void 0),r()(this,"rooms",[]),r()(this,"roomIdsToTags",{}),r()(this,"allowedByFilter",new Map),r()(this,"allowedRoomsByFilters",new Set)}get stickyRoom(){return this._stickyRoom?this._stickyRoom.room:null}get hasFilters(){return this.allowedByFilter.size>0}set cachedRooms(e){this._cachedRooms=e,this.recalculateFilteredRooms(),this.recalculateStickyRoom()}get cachedRooms(){return this._cachedRooms}async setStickyRoom(e){await this.updateStickyRoom(e)}getTagSorting(e){return this.sortAlgorithms?this.sortAlgorithms[e]:null}async setTagSorting(e,t){if(!e)throw new Error("Tag ID must be defined");if(!t)throw new Error("Algorithm must be defined");this.sortAlgorithms[e]=t;const n=this.algorithms[e];await n.setSortAlgorithm(t),this._cachedRooms[e]=n.orderedRooms,this.recalculateFilteredRoomsForTag(e),this.recalculateStickyRoom(e)}getListOrdering(e){return this.listAlgorithms?this.listAlgorithms[e]:null}async setListOrdering(e,t){if(!e)throw new Error("Tag ID must be defined");if(!t)throw new Error("Algorithm must be defined");this.listAlgorithms[e]=t;const n=O(t,e,this.sortAlgorithms[e]);this.algorithms[e]=n,await n.setRooms(this._cachedRooms[e]),this._cachedRooms[e]=n.orderedRooms,this.recalculateFilteredRoomsForTag(e),this.recalculateStickyRoom(e)}addFilterCondition(e){this.allowedByFilter.set(e,this.rooms.filter(t=>e.isVisible(t))),this.recalculateFilteredRooms(),e.on(d.a,this.handleFilterChange.bind(this))}removeFilterCondition(e){e.off(d.a,this.handleFilterChange.bind(this)),this.allowedByFilter.has(e)&&(this.allowedByFilter.delete(e),this.recalculateFilteredRooms(),this.hasFilters||this.emit(A))}async handleFilterChange(){await this.recalculateFilteredRooms(),this.emit(d.a)}async updateStickyRoom(e){try{return await this.doUpdateStickyRoom(e)}finally{this._lastStickyRoom=null}}async doUpdateStickyRoom(e){if(e&&!R.a.instance.isRoomVisible(e)&&(e=null),this._lastStickyRoom=this._stickyRoom||{},!e){if(this._stickyRoom){const e=this._stickyRoom.room;return this._stickyRoom=null,void await this.handleRoomUpdate(e,u.c.NewRoom)}return}let t=this.roomIdsToTags[e.roomId][0];if(!t)throw new Error(e.roomId+" does not belong to a tag and cannot be sticky");let n=(this.getOrderedRoomsWithoutSticky()[t]||[]).indexOf(e);const o=!!this._lastStickyRoom.room&&this._lastStickyRoom.room.roomId===e.roomId;if(this._lastStickyRoom.tag&&t!==this._lastStickyRoom.tag&&o&&n<0&&(console.warn(`Sticky room ${e.roomId} changed tags during sticky room handling`),n=0),n<0)throw new Error(e.roomId+" does not appear to be known and cannot be sticky");const r=this._stickyRoom;if(this._stickyRoom=null,this.recalculateStickyRoom(),r&&r.room&&r.room.roomId!==e.roomId&&await this.handleRoomUpdate(r.room,u.c.NewRoom),await this.handleRoomUpdate(e,u.c.RoomRemoved),this._stickyRoom){if(this._stickyRoom.room!==e){if(this._stickyRoom.room.roomId!==e.roomId)throw new Error("Sticky room changed while the sticky room was changing");console.warn("Sticky room changed references")}console.warn(`Sticky room changed tag & position from ${t} / ${n} to ${this._stickyRoom.tag} / ${this._stickyRoom.position}`),t=this._stickyRoom.tag,n=this._stickyRoom.position}r&&r.tag===t&&r.position<=n&&n++,this._stickyRoom={room:e,position:n,tag:t},this.recalculateFilteredRoomsForTag(t),r&&r.tag!==t&&this.recalculateFilteredRoomsForTag(r.tag),this.recalculateStickyRoom(),this.emit(A)}recalculateFilteredRooms(){if(!this.hasFilters)return;console.warn("Recalculating filtered room list");const e=Array.from(this.allowedByFilter.keys()),t=new c.a(e).groupBy(e=>e.relativePriority).orderBy(Object(l.a)(d.b)).value,n={};for(const e of Object.keys(this.cachedRooms)){const o=this.cachedRooms[e].map(e=>e);this.tryInsertStickyRoomToFilterSet(o,e);let r=o.map(e=>e),i=[],a=t[0].relativePriority;for(const e of t){e.relativePriority!==a&&(r=i,i=[],a=e.relativePriority);const t=r.filter(t=>e.isVisible(t));for(const e of t){const t=r.indexOf(e);t>=0&&r.splice(t,1),i.push(e)}}n[e]=i,k.a.getValue("advancedRoomListLogging")&&console.log(`[DEBUG] ${n[e].length}/${o.length} rooms filtered into ${e}`)}const o=Object.values(n).reduce((e,t)=>(e.push(...t),e),[]);this.allowedRoomsByFilters=new Set(o),this.filteredRooms=n,this.emit(A)}recalculateFilteredRoomsForTag(e){if(!this.hasFilters)return;k.a.getValue("advancedRoomListLogging")&&console.log("Recalculating filtered rooms for "+e),delete this.filteredRooms[e];const t=this.cachedRooms[e].map(e=>e);this.tryInsertStickyRoomToFilterSet(t,e);const n=t.filter(e=>this.allowedRoomsByFilters.has(e));n.length>0&&(this.filteredRooms[e]=n),k.a.getValue("advancedRoomListLogging")&&console.log(`[DEBUG] ${n.length}/${t.length} rooms filtered into ${e}`)}tryInsertStickyRoomToFilterSet(e,t){if(!this._stickyRoom||!this._stickyRoom.room||this._stickyRoom.tag!==t)return;const n=this._stickyRoom.position;n>=e.length?e.push(this._stickyRoom.room):e.splice(n,0,this._stickyRoom.room)}recalculateStickyRoom(e=null){if(!this._stickyRoom)return void(this._cachedStickyRooms&&(this._cachedStickyRooms=null,this.emit(A)));if(!this._cachedStickyRooms||!e){k.a.getValue("advancedRoomListLogging")&&console.log("Generating clone of cached rooms for sticky room handling");const e={};for(const t of Object.keys(this.cachedRooms))e[t]=this.cachedRooms[t].map(e=>e);this._cachedStickyRooms=e}e&&(k.a.getValue("advancedRoomListLogging")&&console.log("Replacing cached sticky rooms for "+e),this._cachedStickyRooms[e]=this.cachedRooms[e].map(e=>e));const t=this._stickyRoom;e&&e!==t.tag||(k.a.getValue("advancedRoomListLogging")&&console.log(`Inserting sticky room ${t.room.roomId} at position ${t.position} in ${t.tag}`),this._cachedStickyRooms[t.tag].splice(t.position,0,t.room)),this.emit(A)}async populateTags(e,t){if(!e)throw new Error("Sorting map cannot be null or empty");if(!t)throw new Error("Ordering ma cannot be null or empty");if(Object(c.d)(Object.keys(e),Object.keys(t)))throw new Error("Both maps must contain the exact same tags");this.sortAlgorithms=e,this.listAlgorithms=t,this.algorithms={};for(const t of Object.keys(e))this.algorithms[t]=O(this.listAlgorithms[t],t,this.sortAlgorithms[t]);return this.setKnownRooms(this.rooms)}getOrderedRooms(){return this.hasFilters?this.filteredRooms:this._cachedStickyRooms||this.cachedRooms}getUnfilteredRooms(){return this._cachedStickyRooms||this.cachedRooms}getOrderedRoomsWithoutSticky(){return this.hasFilters?this.filteredRooms:this.cachedRooms}async setKnownRooms(e){if(Object(i.r)(e))throw new Error("Array of rooms cannot be null");if(!this.sortAlgorithms)throw new Error("Cannot set known rooms without a tag sorting map");console.warn("Resetting known rooms, initiating regeneration");const t=this._stickyRoom;await this.updateStickyRoom(null),this.rooms=e;const n={};for(const e in this.sortAlgorithms)n[e]=[];if(!e.length)return await this.generateFreshTags(n),void(this.cachedRooms=n);const o=Object(h.e)(e);for(const e of o[h.a.Invite])n[u.a.Invite].push(e);for(const e of o[h.a.Leave])n[u.a.Archived].push(e);for(const e of o[h.a.Join]){const t=this.getTagsOfJoinedRoom(e);let o=!1;if(t.length>0)for(const r of t)Object(i.r)(n[r])||(n[r].push(e),o=!0);o||(a.a.shared().getUserIdForRoomId(e.roomId)?n[u.a.DM].push(e):n[u.a.Untagged].push(e))}await this.generateFreshTags(n),this.cachedRooms=n,this.updateTagsFromCache(),this.recalculateFilteredRooms(),t&&t.room&&(await this.updateStickyRoom(t.room),this._stickyRoom&&this._stickyRoom.room&&this._stickyRoom.tag!==t.tag&&(this._stickyRoom.position=0,this.recalculateStickyRoom(this._stickyRoom.tag)))}getTagsForRoom(e){const t=[],n=Object(h.b)(e.getMyMembership());return n===h.a.Invite?t.push(u.a.Invite):n===h.a.Leave?t.push(u.a.Archived):t.push(...this.getTagsOfJoinedRoom(e)),t.length||t.push(u.a.Untagged),t}getTagsOfJoinedRoom(e){let t=Object.keys(e.tags||{});return 0===t.length&&a.a.shared().getUserIdForRoomId(e.roomId)&&(t=[u.a.DM]),t}updateTagsFromCache(){const e={},t=Object.keys(this.cachedRooms);for(const n of t){const t=this.cachedRooms[n];for(const o of t)e[o.roomId]||(e[o.roomId]=[]),e[o.roomId].push(n)}this.roomIdsToTags=e}async generateFreshTags(e){if(!this.algorithms)throw new Error("Not ready: no algorithms to determine tags from");for(const t of Object.keys(e)){const n=this.algorithms[t];if(!n)throw new Error("No algorithm for "+t);await n.setRooms(e[t]),e[t]=n.orderedRooms}}async handleRoomUpdate(e,t){if(k.a.getValue("advancedRoomListLogging")&&console.log(`Handle room update for ${e.roomId} called with cause ${t}`),!this.algorithms)throw new Error("Not ready: no algorithms to determine tags from");const n=this._stickyRoom&&this._stickyRoom.room&&this._stickyRoom.room.roomId===e.roomId;if(t===u.c.NewRoom){const o=this._lastStickyRoom&&this._lastStickyRoom.room===e,r=this.roomIdsToTags[e.roomId],i=r&&r.length>0;i&&!o&&(console.warn(e.roomId+" is reportedly new but is already known - assuming TagChange instead"),t=u.c.PossibleTagChange);let a=this.rooms.includes(e);if(i&&!a&&(console.warn(e.roomId+" might be a reference change - attempting to update reference"),this.rooms=this.rooms.map(t=>t.roomId===e.roomId?e:t),a=this.rooms.includes(e),a||console.warn(e.roomId+" is still not referenced. It may be sticky.")),i&&!a&&!n)throw new Error(e.roomId+" is missing from room array but is known - trying to find duplicate");i&&n&&(this._stickyRoom.room=e),t!==u.c.NewRoom||n||a||this.rooms.push(e)}let o=!1;if(t===u.c.PossibleTagChange){const r=this.roomIdsToTags[e.roomId]||[],i=this.getTagsForRoom(e),a=Object(c.b)(r,i);if(a.removed.length>0||a.added.length>0){for(const t of a.removed){k.a.getValue("advancedRoomListLogging")&&console.log(`Removing ${e.roomId} from ${t}`);const n=this.algorithms[t];if(!n)throw new Error("No algorithm for "+t);await n.handleRoomUpdate(e,u.c.RoomRemoved),this._cachedRooms[t]=n.orderedRooms,this.recalculateFilteredRoomsForTag(t),this.recalculateStickyRoom(t)}for(const t of a.added){k.a.getValue("advancedRoomListLogging")&&console.log(`Adding ${e.roomId} to ${t}`);const n=this.algorithms[t];if(!n)throw new Error("No algorithm for "+t);await n.handleRoomUpdate(e,u.c.NewRoom),this._cachedRooms[t]=n.orderedRooms}this.roomIdsToTags[e.roomId]=i,k.a.getValue("advancedRoomListLogging")&&console.log(`Changing update cause for ${e.roomId} to Timeline to sort rooms`),t=u.c.Timeline,o=!0}else k.a.getValue("advancedRoomListLogging")&&console.log(`Received no-op update for ${e.roomId} - changing to Timeline update`),t=u.c.Timeline;o&&n&&(this._lastStickyRoom?this._stickyRoom={room:e,tag:this.roomIdsToTags[e.roomId][0],position:0}:await this.setStickyRoom(e))}if(t!==u.c.NewRoom&&t!==u.c.RoomRemoved&&this.stickyRoom===e)return k.a.getValue("advancedRoomListLogging")&&console.warn(`[RoomListDebug] Received ${t} update for sticky room ${e.roomId} - ignoring`),!1;if(!this.roomIdsToTags[e.roomId]){if(I.includes(t))return k.a.getValue("advancedRoomListLogging")&&console.warn(`Skipping tag update for ${e.roomId} because we don't know about the room`),!1;k.a.getValue("advancedRoomListLogging")&&console.log(`[RoomListDebug] Updating tags for room ${e.roomId} (${e.name})`);const n=this.getTagsForRoom(e).filter(e=>!Object(i.r)(this.cachedRooms[e]));if(!n.length)throw new Error("Tags cannot be determined for "+e.roomId);this.roomIdsToTags[e.roomId]=n,k.a.getValue("advancedRoomListLogging")&&console.log(`[RoomListDebug] Updated tags for ${e.roomId}:`,n)}k.a.getValue("advancedRoomListLogging")&&console.log(`[RoomListDebug] Reached algorithmic handling for ${e.roomId} and cause ${t}`);const r=this.roomIdsToTags[e.roomId];if(!r)return console.warn(`No tags known for "${e.name}" (${e.roomId})`),!1;let a=o;for(const n of r){const o=this.algorithms[n];if(!o)throw new Error("No algorithm for "+n);await o.handleRoomUpdate(e,t),this._cachedRooms[n]=o.orderedRooms,this.recalculateFilteredRoomsForTag(n),this.recalculateStickyRoom(n),a=!0}return k.a.getValue("advancedRoomListLogging")&&console.log(`[RoomListDebug] Finished handling ${e.roomId} with cause ${t} (changed=${a})`),a}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return S}));var o=n(82),r=n.n(o),i=n(139),a=n(87),s=n(83),c=n(86),l=n(120);function u(e){const t=c.a.get().getUserId();return"m.room.member"===e.getType()?e.getStateKey()===t:e.getSender()===t}function d(e,t){if(t!==l.a.DM)return!0;const n=c.a.get().getRoom(e);return!n||2!==n.currentState.getJoinedMemberCount()}function h(e){return e.sender?e.sender.name:e.getSender()}var p=n(238),m=n(121);var g=n(1);var f=n(88),_=n(123);var b=n(115);const v="room_preview_changed",E={"m.room.message":{isState:!1,previewer:new class{getTextFor(e,t){let n=e.getContent();if(e.isRelation("m.replace")&&(n=e.getContent()["m.new_content"]),!n||!n.body)return null;let o=(n.body||"").trim();const r=n.msgtype;if(!o||!r)return null;const i="org.matrix.custom.html"===n.format&&n.formatted_body;i&&(o=n.formatted_body);const a=e.getWireContent()["m.relates_to"];return a&&a["m.in_reply_to"]&&(o=i?(p.a.stripHTMLReply(o)||"").trim():(p.a.stripPlainReply(o)||"").trim(),!o)?null:(i&&(o=Object(m.h)(o)),"m.emote"===r?Object(s.a)("* %(senderName)s %(emote)s",{senderName:h(e),emote:o}):u(e)||!d(e.getRoomId(),t)?o:Object(s.a)("%(senderName)s: %(message)s",{senderName:h(e),message:o}))}}},"m.call.invite":{isState:!1,previewer:new class{getTextFor(e,t){return d(e.getRoomId(),t)?u(e)?Object(s.a)("You started a call"):Object(s.a)("%(senderName)s started a call",{senderName:h(e)}):u(e)?Object(s.a)("Waiting for answer"):Object(s.a)("%(senderName)s is calling",{senderName:h(e)})}}},"m.call.answer":{isState:!1,previewer:new class{getTextFor(e,t){return d(e.getRoomId(),t)?u(e)?Object(s.a)("You joined the call"):Object(s.a)("%(senderName)s joined the call",{senderName:h(e)}):Object(s.a)("Call in progress")}}},"m.call.hangup":{isState:!1,previewer:new class{getTextFor(e,t){return d(e.getRoomId(),t)?u(e)?Object(s.a)("You ended the call"):Object(s.a)("%(senderName)s ended the call",{senderName:h(e)}):Object(s.a)("Call ended")}}},"m.sticker":{isState:!1,previewer:new class{getTextFor(e,t){const n=e.getContent().body;return n?u(e)||!d(e.getRoomId(),t)?n:Object(s.a)("%(senderName)s: %(stickerName)s",{senderName:h(e),stickerName:n}):null}}},"m.reaction":{isState:!1,previewer:new class{getTextFor(e,t){const n=f.a.getValue("feature_roomlist_preview_reactions_dms");if(!(f.a.getValue("feature_roomlist_preview_reactions_all")||n&&_.a.shared().getUserIdForRoomId(e.getRoomId())))return null;const o=e.getRelation();if(!o)return null;const r=o.key;return r?u(e)||!d(e.getRoomId(),t)?r:Object(s.a)("%(senderName)s: %(reaction)s",{senderName:h(e),reaction:r}):null}}}},y="im.vector.any";class S extends i.a{constructor(){super(a.a,{}),r()(this,"previews",new Map)}static get instance(){return S.internalInstance}getPreviewForRoom(e,t){if(!e)return null;this.previews.has(e.roomId)||this.generatePreview(e,t);const n=this.previews.get(e.roomId);return n?n.has(t)?n.get(t):n.get(y):null}generatePreview(e,t){const n=e.timeline;if(!n)return;let o=this.previews.get(e.roomId);o||(o=new Map,this.previews.set(e.roomId,o)),o.has(y)||o.set(y,null),t&&!o.has(t)&&o.set(t,null);let r=!1;for(let t=n.length-1;t>=0;t--){if(t===n.length-50)return;const i=n[t],a=E[i.getType()];if(!a)continue;if(a.isState&&Object(g.r)(i.getStateKey()))continue;const s=a.previewer.getTextFor(i,null);if(!s)continue;r=r||s!==o.get(y),o.set(y,s);const c=Array.from(o.keys()).filter(e=>e!==y);for(const e of c){const t=e===y?null:e,n=a.previewer.getTextFor(i,t);n===s?(r=r||s!==o.get(e),o.delete(e)):(r=r||n!==o.get(e),o.set(e,n))}return void(r&&(this.previews.set(e.roomId,o),this.emit(b.b,this),this.emit(v,e)))}this.previews.set(e.roomId,new Map),this.emit(b.b,this),this.emit(v,e)}async onAction(e){if(this.matrixClient&&("MatrixActions.Room.timeline"===e.action||"MatrixActions.Event.decrypted"===e.action)){const t=e.event;if(!this.previews.has(t.getRoomId()))return;this.generatePreview(this.matrixClient.getRoom(t.getRoomId()),y)}}}r()(S,"internalInstance",new S)},function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var o=n(82),r=n.n(o),i=n(86),a=n(87),s=n(83),c=n(157),l=n(134);var u=n(89),d=n(85),h=n(717),p=n(170),m=n(248);const g=e=>{switch(e){case v.SET_UP_ENCRYPTION:return Object(s.a)("Set up Secure Backup");case v.UPGRADE_ENCRYPTION:return Object(s.a)("Encryption upgrade available");case v.VERIFY_THIS_SESSION:return Object(s.a)("Verify this session")}},f=e=>{switch(e){case v.SET_UP_ENCRYPTION:case v.UPGRADE_ENCRYPTION:return"secure_backup";case v.VERIFY_THIS_SESSION:return"verification_warning"}},_=e=>{switch(e){case v.SET_UP_ENCRYPTION:return Object(s.a)("Continue");case v.UPGRADE_ENCRYPTION:return Object(s.a)("Upgrade");case v.VERIFY_THIS_SESSION:return Object(s.a)("Verify")}},b=e=>{switch(e){case v.SET_UP_ENCRYPTION:case v.UPGRADE_ENCRYPTION:return Object(s.a)("Safeguard against losing access to encrypted messages & data");case v.VERIFY_THIS_SESSION:return Object(s.a)("Other users may not trust it")}};let v;!function(e){e.SET_UP_ENCRYPTION="set_up_encryption",e.UPGRADE_ENCRYPTION="upgrade_encryption",e.VERIFY_THIS_SESSION="verify_this_session"}(v||(v={}));const E=()=>{R.sharedInstance().dismissEncryptionSetup()},y=e=>{var t;if(null===(t=m.a.setupEncryptionNeeded)||void 0===t?void 0:t.call(m.a,e))return;l.a.sharedInstance().addOrReplaceToast({key:"setupencryption",title:g(e),icon:f(e),props:{description:b(e),acceptLabel:_(e),onAccept:async()=>{if(e===v.VERIFY_THIS_SESSION)u.a.createTrackedDialog("Verify session","Verify session",h.a,{},null,!1,!0);else{const e=d.getComponent("elements.Spinner"),t=u.a.createDialog(e,null,"mx_Dialog_spinner",!1,!0);try{await Object(p.b)()}finally{t.close()}}},rejectLabel:Object(s.a)("Later"),onReject:E},component:c.a,priority:e===v.VERIFY_THIS_SESSION?95:40})},S=()=>{l.a.sharedInstance().dismissToast("setupencryption")};var T=n(719);function w(e){return"unverified_session_"+e}const C=e=>{const t=i.a.get(),n=t.getStoredDevice(t.getUserId(),e);l.a.sharedInstance().addOrReplaceToast({key:w(e),title:Object(s.a)("New login. Was this you?"),icon:"verification_warning",props:{description:Object(s.a)("Verify the new login accessing your account: %(name)s",{name:n.getDisplayName()}),acceptLabel:Object(s.a)("Verify"),onAccept:()=>{u.a.createTrackedDialog("New Session Review","Starting dialog",T.a,{userId:t.getUserId(),device:t.getStoredDevice(t.getUserId(),e),onFinished:t=>{t||R.sharedInstance().dismissUnverifiedSessions([e])}},null,!1,!0)},rejectLabel:Object(s.a)("Later"),onReject:()=>{R.sharedInstance().dismissUnverifiedSessions([e])}},component:c.a,priority:80})},x=e=>{l.a.sharedInstance().dismissToast(w(e))};var O=n(295),k=n(796);class R{constructor(){r()(this,"dispatcherRef",void 0),r()(this,"dismissed",new Set),r()(this,"dismissedThisDeviceToast",!1),r()(this,"keyBackupInfo",null),r()(this,"keyBackupFetchedAt",null),r()(this,"ourDeviceIdsAtStart",null),r()(this,"displayingToastsForDeviceIds",new Set),r()(this,"_onWillUpdateDevices",async(e,t)=>{if(t)return;const n=i.a.get().getUserId();e.includes(n)&&this._ensureDeviceIdsAtStartPopulated()}),r()(this,"_onDevicesUpdated",e=>{e.includes(i.a.get().getUserId())&&this._recheck()}),r()(this,"_onDeviceVerificationChanged",e=>{e===i.a.get().getUserId()&&this._recheck()}),r()(this,"_onUserTrustStatusChanged",e=>{e===i.a.get().getUserId()&&this._recheck()}),r()(this,"_onCrossSingingKeysChanged",()=>{this._recheck()}),r()(this,"_onAccountData",e=>{(e.getType().startsWith("m.secret_storage.")||e.getType().startsWith("m.cross_signing."))&&this._recheck()}),r()(this,"_onSync",(e,t)=>{"PREPARED"===e&&null===t&&this._recheck()}),r()(this,"_onRoomStateEvents",e=>{"m.room.encryption"===e.getType()&&this._recheck()}),r()(this,"_onAction",({action:e})=>{"on_logged_in"===e&&this._recheck()})}static sharedInstance(){return window.mxDeviceListener||(window.mxDeviceListener=new R),window.mxDeviceListener}start(){i.a.get().on("crypto.willUpdateDevices",this._onWillUpdateDevices),i.a.get().on("crypto.devicesUpdated",this._onDevicesUpdated),i.a.get().on("deviceVerificationChanged",this._onDeviceVerificationChanged),i.a.get().on("userTrustStatusChanged",this._onUserTrustStatusChanged),i.a.get().on("crossSigning.keysChanged",this._onCrossSingingKeysChanged),i.a.get().on("accountData",this._onAccountData),i.a.get().on("sync",this._onSync),i.a.get().on("RoomState.events",this._onRoomStateEvents),this.dispatcherRef=a.a.register(this._onAction),this._recheck()}stop(){i.a.get()&&(i.a.get().removeListener("crypto.willUpdateDevices",this._onWillUpdateDevices),i.a.get().removeListener("crypto.devicesUpdated",this._onDevicesUpdated),i.a.get().removeListener("deviceVerificationChanged",this._onDeviceVerificationChanged),i.a.get().removeListener("userTrustStatusChanged",this._onUserTrustStatusChanged),i.a.get().removeListener("crossSigning.keysChanged",this._onCrossSingingKeysChanged),i.a.get().removeListener("accountData",this._onAccountData),i.a.get().removeListener("sync",this._onSync),i.a.get().removeListener("RoomState.events",this._onRoomStateEvents)),this.dispatcherRef&&(a.a.unregister(this.dispatcherRef),this.dispatcherRef=null),this.dismissed.clear(),this.dismissedThisDeviceToast=!1,this.keyBackupInfo=null,this.keyBackupFetchedAt=null,this.ourDeviceIdsAtStart=null,this.displayingToastsForDeviceIds=new Set}async dismissUnverifiedSessions(e){for(const t of e)this.dismissed.add(t);this._recheck()}dismissEncryptionSetup(){this.dismissedThisDeviceToast=!0,this._recheck()}_ensureDeviceIdsAtStartPopulated(){if(null===this.ourDeviceIdsAtStart){const e=i.a.get();this.ourDeviceIdsAtStart=new Set(e.getStoredDevicesForUser(e.getUserId()).map(e=>e.deviceId))}}async _getKeyBackupInfo(){const e=(new Date).getTime();return(!this.keyBackupInfo||this.keyBackupFetchedAt<e-3e5)&&(this.keyBackupInfo=await i.a.get().getKeyBackupVersion(),this.keyBackupFetchedAt=e),this.keyBackupInfo}shouldShowSetupEncryptionToast(){if(Object(p.d)())return!1;const e=i.a.get();return e&&e.getRooms().some(t=>e.isRoomEncrypted(t.roomId))}async _recheck(){const e=i.a.get();if(!await e.doesServerSupportUnstableFeature("org.matrix.e2e_cross_signing"))return;if(!e.isCryptoEnabled())return;if(!e.isInitialSyncComplete())return;const t=await e.isCrossSigningReady(),n=await e.isSecretStorageReady(),o=t&&n;if(this.dismissedThisDeviceToast||o)S();else if(this.shouldShowSetupEncryptionToast())if(await e.downloadKeys([e.getUserId()]),!e.getCrossSigningId()&&e.getStoredCrossSigningForUser(e.getUserId()))y(v.VERIFY_THIS_SESSION);else{await this._getKeyBackupInfo()?y(v.UPGRADE_ENCRYPTION):(await e.waitForClientWellKnown(),Object(O.c)()&&Object(k.b)()?(S(),Object(p.b)()):y(v.SET_UP_ENCRYPTION))}this._ensureDeviceIdsAtStartPopulated();const r=new Set,u=new Set;if(t){const t=e.getStoredDevicesForUser(e.getUserId());for(const n of t){if(n.deviceId===e.deviceId)continue;(await e.checkDeviceTrust(e.getUserId(),n.deviceId)).isCrossSigningVerified()||this.dismissed.has(n.deviceId)||(this.ourDeviceIdsAtStart.has(n.deviceId)?r.add(n.deviceId):u.add(n.deviceId))}}var d;r.size>0?(d=r,l.a.sharedInstance().addOrReplaceToast({key:"reviewsessions",title:Object(s.a)("Review where youre logged in"),icon:"verification_warning",props:{description:Object(s.a)("Verify all your sessions to ensure your account & messages are safe"),acceptLabel:Object(s.a)("Review"),onAccept:()=>{R.sharedInstance().dismissUnverifiedSessions(d),a.a.dispatch({action:"view_user_info",userId:i.a.get().getUserId()})},rejectLabel:Object(s.a)("Later"),onReject:()=>{R.sharedInstance().dismissUnverifiedSessions(d)}},component:c.a,priority:50})):l.a.sharedInstance().dismissToast("reviewsessions");for(const e of u)C(e);for(const e of this.displayingToastsForDeviceIds)u.has(e)||x(e);this.displayingToastsForDeviceIds=u}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(1);function r(e){this._timeline=[e],this._ourEventIndex=0,this._paginateTokens={b:null,f:null},this._paginateRequests={b:null,f:null}}function i(e,t){this.rank=e,this.context=t}r.prototype.getEvent=function(){return this._timeline[this._ourEventIndex]},r.prototype.getTimeline=function(){return this._timeline},r.prototype.getOurEventIndex=function(){return this._ourEventIndex},r.prototype.getPaginateToken=function(e){return this._paginateTokens[e?"b":"f"]},r.prototype.setPaginateToken=function(e,t){this._paginateTokens[t?"b":"f"]=e},r.prototype.addEvents=function(e,t){t?(this._timeline=e.concat(this._timeline),this._ourEventIndex+=e.length):this._timeline=this._timeline.concat(e)},i.fromJson=function(e,t){const n=e.context||{},a=n.events_before||[],s=n.events_after||[],c=new r(t(e.result));return c.setPaginateToken(n.start,!0),c.addEvents(o.u(a,t),!0),c.addEvents(o.u(s,t),!1),c.setPaginateToken(n.end,!1),new i(e.rank,c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(82),r=n.n(o),i=n(178),a=n(335),s=n(6),c=n(109),l=n(117),u=n(123);class d extends s.EventEmitter{constructor(e){super(),this.community=e,r()(this,"roomIds",[]),r()(this,"userIds",[]),r()(this,"onStoreUpdate",async()=>{const e=this.roomIds;this.roomIds=(await c.a.getGroupRooms(this.community.groupId)).map(e=>e.roomId);const t=this.userIds;this.userIds=(await c.a.getGroupMembers(this.community.groupId)).map(e=>e.userId),(Object(l.d)(e,this.roomIds)||Object(l.d)(t,this.userIds))&&this.emit(a.a)}),c.a.on("update",this.onStoreUpdate),this.onStoreUpdate()}get relativePriority(){return a.b.Lowest}isVisible(e){return this.roomIds.includes(e.roomId)||this.userIds.includes(u.a.shared().getUserIdForRoomId(e.roomId))}destroy(){c.a.off("update",this.onStoreUpdate)}}class h{constructor(e){this.store=e,r()(this,"filters",new Map),r()(this,"onTagsUpdated",()=>{const e=Array.from(this.filters.keys()),t=i.a.getSelectedTags();if(Object(l.d)(e,t)){if(!this.store.matrixClient)return void console.warn("Tag update without an associated matrix client - ignoring");const n=new Map,o=t.filter(e=>e.startsWith("+"));for(const e of o){const t=this.store.matrixClient.getGroup(e);if(!t){console.warn("Group selected with no group object available: "+e);continue}let o=this.filters.get(e);o||(o=new d(t)),n.set(e,o)}const r=Object(l.b)(e,t);for(const e of r.added){const t=n.get(e);t&&this.store.addFilter(t)}for(const e of r.removed){const t=this.filters.get(e);t&&(this.store.removeFilter(t),t.destroy())}this.filters=n}}),i.a.addListener(this.onTagsUpdated)}}}]]);
//# sourceMappingURL=vendors~init.js.map