/*! For license information please see bundle.js.LICENSE.txt */ !function(e){function t(t){for(var r,n,i=t[0],a=t[1],s=0,l=[];s0&&c>l&&(c=l);for(var u=0;u=0?(d=y.substr(0,g),f=y.substr(g+1)):(d=y,f=""),p=decodeURIComponent(d),m=decodeURIComponent(f),n(a,p)?o(a[p])?a[p].push(m):a[p]=[a[p],m]:a[p]=m}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},17:function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?i(a(e),(function(a){var s=encodeURIComponent(n(a))+r;return o(e[a])?i(e[a],(function(e){return s+encodeURIComponent(n(e))})).join(t):s+encodeURIComponent(n(e[a]))})).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n1&&(r.params=n.parse(t[1])),r}function i(e){return n.parse(e.search.substring(1))}},68:function(e,t,r){"use strict";r.r(t);var n=r(32);r(72);async function o(...e){for(const t of e)try{await t}catch(e){console.error(e)}}r(69),r(70),r(71);const i=function(){if(!window.Modernizr)return console.error("Cannot check features - Modernizr global is missing."),!1;window.Modernizr.addTest("promiseprototypefinally",()=>{var e,t;return"function"==typeof(null===(e=window.Promise)||void 0===e||null===(t=e.prototype)||void 0===t?void 0:t.finally)}),window.Modernizr.addTest("regexpdotall",()=>{var e,t;return(null===(e=window.RegExp)||void 0===e?void 0:e.prototype)&&!(null===(t=Object.getOwnPropertyDescriptor(window.RegExp.prototype,"dotAll"))||void 0===t||!t.get)}),window.Modernizr.addTest("objectfromentries",()=>{var e;return"function"==typeof(null===(e=window.Object)||void 0===e?void 0:e.fromEntries)});const e=Object.keys(window.Modernizr);let t=!0;for(let r=0;r0)){const e=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,t=/Android/.test(navigator.userAgent);if((e||t)&&-1===document.cookie.indexOf("element_mobile_redirect_to_guide=false"))return void(window.location.href="mobile_guide/")}const g=s();a();const h=l();await o(h);const v=t(),w=u(),b=d(),S=c();await o(S,b,w);let O=i;!O&&window.localStorage&&(O=Boolean(window.localStorage.getItem("mx_accepts_unsupported_browser"))),O||await new Promise(e=>{console.error("Browser is missing required features."),m(()=>{window.localStorage&&window.localStorage.setItem("mx_accepts_unsupported_browser",String(!0)),console.log("User accepts the compatibility risks."),e()})});try{await h}catch(e){return e.err&&e.err instanceof SyntaxError?p(y("Your Element is misconfigured"),[y("Your Element configuration contains invalid JSON. Please correct the problem and reload the page."),y("The message from the parser is: %(message)s",{message:e.err.message||y("Invalid JSON")})]):p(y("Unable to load config file: please refresh the page to try again."))}await g,await S,await b,await w,await o(v),await f(r.params)}catch(e){console.error(e),await p(y("Your Element is misconfigured"),[e.translatedMessage||y("Unexpected error preparing the app. See console for details.")])}})().catch(e=>{console.error(e),delete document.body.style.height;const t=document.createElement("iframe");t.sandbox="",t.src=i?"static/unable-to-load.html":"static/incompatible-browser.html",t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.right="0",t.style.bottom="0",t.style.border="0",document.getElementById("matrixchat").appendChild(t)})},69:function(e,t,r){},70:function(e,t,r){},71:function(e,t,r){},72:function(e,t){!function(e,t,r,n){function o(e,t){return typeof e===t}function i(e){var t=S.className,r=w._config.classPrefix||"";if(O&&(t=t.baseVal),w._config.enableJSClass){var n=new RegExp("(^|\\s)"+r+"no-js(\\s|$)");t=t.replace(n,"$1"+r+"js$2")}w._config.enableClasses&&(e.length>0&&(t+=" "+r+e.join(" "+r)),O?S.className.baseVal=t:S.className=t)}function a(e,t){return!!~(""+e).indexOf(t)}function s(){return"function"!=typeof r.createElement?r.createElement(arguments[0]):O?r.createElementNS.call(r,"http://www.w3.org/2000/svg",arguments[0]):r.createElement.apply(r,arguments)}function l(e,t,n,o){var i,a,l,c,u="modernizr",d=s("div"),f=function(){var e=r.body;return e||((e=s(O?"svg":"body")).fake=!0),e}();if(parseInt(n,10))for(;n--;)(l=s("div")).id=o?o[n]:u+(n+1),d.appendChild(l);return(i=s("style")).type="text/css",i.id="s"+u,(f.fake?f:d).appendChild(i),f.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(r.createTextNode(e)),d.id=u,f.fake&&(f.style.background="",f.style.overflow="hidden",c=S.style.overflow,S.style.overflow="hidden",S.appendChild(f)),a=t(d,e),f.fake?(f.parentNode.removeChild(f),S.style.overflow=c,S.offsetHeight):d.parentNode.removeChild(d),!!a}function c(e){return e.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()})).replace(/^ms-/,"-ms-")}function u(e,r){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(c(e[o]),r))return!0;return!1}if("CSSSupportsRule"in t){for(var i=[];o--;)i.push("("+c(e[o])+":"+r+")");return l("@supports ("+(i=i.join(" or "))+") { #modernizr { position: absolute; } }",(function(e){return"absolute"===function(e,r,n){var o;if("getComputedStyle"in t){o=getComputedStyle.call(t,e,r);var i=t.console;if(null!==o)n&&(o=o.getPropertyValue(n));else if(i){i[i.error?"error":"log"].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!r&&e.currentStyle&&e.currentStyle[n];return o}(e,null,"position")}))}return n}function d(e){return e.replace(/([a-z])-([a-z])/g,(function(e,t,r){return t+r.toUpperCase()})).replace(/^-/,"")}function f(e,t,r,i){function l(){f&&(delete j.style,delete j.modElem)}if(i=!o(i,"undefined")&&i,!o(r,"undefined")){var c=u(e,r);if(!o(c,"undefined"))return c}for(var f,p,m,y,g,h=["modernizr","tspan","samp"];!j.style&&h.length;)f=!0,j.modElem=s(h.shift()),j.style=j.modElem.style;for(m=e.length,p=0;p9)})),w.addTest("flexbox",y("flexBasis","1px",!0));var k=function(e){var r,o=P.length,i=t.CSSRule;if(void 0===i)return n;if(!e)return!1;if((r=(e=e.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in i)return"@"+e;for(var a=0;a