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
17 KiB

/*! 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=[];s<i.length;s++)n=i[s],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&l.push(o[n][0]),o[n]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r]);for(u&&u(t);l.length;)l.shift()()}var r={},n={8:0},o={8:0};function i(e){return a.p+"bundles/6f5c25b49711cab9c570/"+({9:"compatibility-view",10:"element-web-app",11:"element-web-component-index",12:"error-view",14:"init",25:"vendors~init"}[e]||e)+".js"}function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.e=function(e){var t=[];n[e]?t.push(n[e]):0!==n[e]&&{9:1,12:1}[e]&&t.push(n[e]=new Promise((function(t,r){for(var o="bundles/6f5c25b49711cab9c570/"+({9:"compatibility-view",10:"element-web-app",11:"element-web-component-index",12:"error-view",14:"init",25:"vendors~init"}[e]||e)+".css",i=a.p+o,s=document.getElementsByTagName("link"),l=0;l<s.length;l++){var c=(d=s[l]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(c===o||c===i))return t()}var u=document.getElementsByTagName("style");for(l=0;l<u.length;l++){var d;if((c=(d=u[l]).getAttribute("data-href"))===o||c===i)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var o=t&&t.target&&t.target.src||i,a=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=o,delete n[e],f.parentNode.removeChild(f),r(a)},f.href=i,document.getElementsByTagName("head")[0].appendChild(f)})).then((function(){n[e]=0})));var r=o[e];if(0!==r)if(r)t.push(r[2]);else{var s=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=s);var l,c=document.createElement("script");c.charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.nc),c.src=i(e);var u=new Error;l=function(t){c.onerror=c.onload=null,clearTimeout(d);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+n+": "+i+")",u.name="ChunkLoadError",u.type=n,u.request=i,r[1](u)}o[e]=void 0}};var d=setTimeout((function(){l({type:"timeout",target:c})}),12e4);c.onerror=c.onload=l,document.head.appendChild(c)}var f={14:[10,11]}[e];return f&&f.forEach((function(e){if(void 0===o[e]){o[e]=null;var t=document.createElement("link");t.charset="utf-8",a.nc&&t.setAttribute("nonce",a.nc),t.rel="preload",t.as="script",t.href=i(e),document.head.appendChild(t)}})),Promise.all(t)},a.m=e,a.c=r,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var s=window.webpackJsonp=window.webpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var u=l;a(a.s=69)}({16:function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,i){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var d,f,p,m,y=e[u].replace(s,"%20"),g=y.indexOf(r);g>=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;n<e.length;n++)r.push(t(e[n],n));return r}var a=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},2:function(e,t,r){"use strict";t.decode=t.parse=r(16),t.encode=t.stringify=r(17)},32:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return i}));var n=r(2);function o(e){const t=e.hash.substring(1).split("?"),r={location:decodeURIComponent(t[0]),params:{}};return t.length>1&&(r.params=n.parse(t[1])),r}function i(e){return n.parse(e.search.substring(1))}},69:function(e,t,r){"use strict";r.r(t);var n=r(32);r(73);async function o(...e){for(const t of e)try{await t}catch(e){console.error(e)}}r(70),r(71),r(72);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("promiseallsettled",()=>{var e;return"function"==typeof(null===(e=window.Promise)||void 0===e?void 0:e.allSettled)}),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;r<e.length;r++){if(void 0===window.Modernizr[e[r]])return console.error("Looked for feature '%s' but Modernizr has no results for this. Has it been configured correctly?",e[r]),!1;!1===window.Modernizr[e[r]]&&(console.error("Browser missing feature: '%s'",e[r]),t=!1)}return t}();(async function(){const{rageshakePromise:e,setupLogStorage:t,preparePlatform:a,loadOlm:s,loadConfig:l,loadSkin:c,loadLanguage:u,loadTheme:d,loadApp:f,showError:p,showIncompatibleBrowser:m,_t:y}=await Promise.all([r.e(25),r.e(14)]).then(r.bind(null,86));try{await o(e);const r=Object(n.b)(window.location);if(!(r.params.client_secret||r.location.length>0)){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)})},70:function(e,t,r){},71:function(e,t,r){},72:function(e,t,r){},73: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 T.style,delete T.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"];!T.style&&h.length;)f=!0,T.modElem=s(h.shift()),T.style=T.modElem.style;for(m=e.length,p=0;p<m;p++)if(y=e[p],g=T.style[y],a(y,"-")&&(y=d(y)),T.style[y]!==n){if(i||o(r,"undefined"))return l(),"pfx"!==t||y;try{T.style[y]=r}catch(e){}if(T.style[y]!==g)return l(),"pfx"!==t||y}return l(),!1}function p(e,t){return function(){return e.apply(t,arguments)}}function m(e,t,r,n,i){var a=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+C.join(a+" ")+a).split(" ");return o(t,"string")||o(t,"undefined")?f(s,t,n,i):function(e,t,r){var n;for(var i in e)if(e[i]in t)return!1===r?e[i]:o(n=t[e[i]],"function")?p(n,r||t):n;return!1}(s=(e+" "+j.join(a+" ")+a).split(" "),t,r)}function y(e,t,r){return m(e,n,n,t,r)}function g(e,t){if("object"==typeof e)for(var r in e)k(e,r)&&g(r,e[r]);else{var n=(e=e.toLowerCase()).split("."),o=w[n[0]];if(2===n.length&&(o=o[n[1]]),void 0!==o)return w;t="function"==typeof t?t():t,1===n.length?w[n[0]]=t:(!w[n[0]]||w[n[0]]instanceof Boolean||(w[n[0]]=new Boolean(w[n[0]])),w[n[0]][n[1]]=t),i([(t&&!1!==t?"":"no-")+n.join("-")]),w._trigger(e,t)}return w}var h=[],v={_version:"3.10.0",_config:{classPrefix:"modernizr_",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var r=this;setTimeout((function(){t(r[e])}),0)},addTest:function(e,t,r){h.push({name:e,fn:t,options:r})},addAsyncTest:function(e){h.push({name:null,fn:e})}},w=function(){};w.prototype=v,w=new w;var b=[],S=r.documentElement,O="svg"===S.nodeName.toLowerCase(),x="Moz O ms Webkit",C=v._config.usePrefixes?x.split(" "):[];v._cssomPrefixes=C;var _={elem:s("modernizr")};w._q.push((function(){delete _.elem}));var T={style:_.elem.style};w._q.unshift((function(){delete T.style}));var j=v._config.usePrefixes?x.toLowerCase().split(" "):[];v._domPrefixes=j,v.testAllProps=m,v.testAllProps=y,w.addTest("cssanimations",y("animationName","a",!0)),(v.testStyles=l)("#modernizr{display: table; direction: ltr}#modernizr div{display: table-cell; padding: 10px}",(function(e){var t,r=e.childNodes;t=r[0].offsetLeft<r[1].offsetLeft,w.addTest("displaytable",t,{aliases:["display-table"]})}),2);var P=v._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];v._prefixes=P;var E="CSS"in t&&"supports"in t.CSS,A="supportsCSS"in t;w.addTest("supports",E||A),w.addTest("cssfilters",(function(){if(w.supports)return y("filter","blur(2px)");var e=s("a");return e.style.cssText=P.join("filter:blur(2px); "),!!e.style.length&&(r.documentMode===n||r.documentMode>9)})),w.addTest("flexbox",y("flexBasis","1px",!0));var z=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<o;a++){var s=P[a];if(s.toUpperCase()+"_"+r in i)return"@-"+s.toLowerCase()+"-"+e}return!1};v.atRule=z;var k,M=v.prefixed=function(e,t,r){return 0===e.indexOf("@")?z(e):(-1!==e.indexOf("-")&&(e=d(e)),t?m(e,t,r):m(e,"pfx"))};w.addTest("objectfit",!!M("objectFit"),{aliases:["object-fit"]}),w.addTest("es5date",(function(){var e=!1;try{e=!!Date.parse("2013-04-12T06:06:37.307Z")}catch(e){}return!!(Date.now&&Date.prototype&&Date.prototype.toISOString&&Date.prototype.toJSON&&e)})),w.addTest("es5function",(function(){return!(!Function.prototype||!Function.prototype.bind)})),w.addTest("es5object",(function(){return!!(Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions)})),w.addTest("es5undefined",(function(){var e,r;try{r=t.undefined,t.undefined=12345,e=void 0===t.undefined,t.undefined=r}catch(e){return!1}return e})),w.addTest("es6array",!!(Array.prototype&&Array.prototype.copyWithin&&Array.prototype.fill&&Array.prototype.find&&Array.prototype.findIndex&&Array.prototype.keys&&Array.prototype.entries&&Array.prototype.values&&Array.from&&Array.of)),w.addTest("es6collections",!!(t.Map&&t.Set&&t.WeakMap&&t.WeakSet)),w.addTest("promises",(function(){return"Promise"in t&&"resolve"in t.Promise&&"reject"in t.Promise&&"all"in t.Promise&&"race"in t.Promise&&function(){var e;return new t.Promise((function(t){e=t})),"function"==typeof e}()})),w.addTest("es6string",!!(String.fromCodePoint&&String.raw&&String.prototype.codePointAt&&String.prototype.repeat&&String.prototype.startsWith&&String.prototype.endsWith&&String.prototype.includes)),w.addTest("svg",!!r.createElementNS&&!!r.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),function(){var e={}.hasOwnProperty;k=o(e,"undefined")||o(e.call,"undefined")?function(e,t){return t in e&&o(e.constructor.prototype[t],"undefined")}:function(t,r){return e.call(t,r)}}(),v._l={},v.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),w.hasOwnProperty(e)&&setTimeout((function(){w._trigger(e,w[e])}),0)},v._trigger=function(e,t){if(this._l[e]){var r=this._l[e];setTimeout((function(){var e;for(e=0;e<r.length;e++)(0,r[e])(t)}),0),delete this._l[e]}},w._q.push((function(){v.addTest=g})),w.addTest("svgasimg",r.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")),w.addTest("svgfilters",(function(){var e=!1;try{e="SVGFEColorMatrixElement"in t&&2===SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE}catch(e){}return e})),w.addTest("urlparser",(function(){try{return"http://modernizr.com/"===new URL("http://modernizr.com/").href}catch(e){return!1}})),w.addTest("urlsearchparams","URLSearchParams"in t),w.addTest("cors","XMLHttpRequest"in t&&"withCredentials"in new XMLHttpRequest);var N=M("crypto",t);w.addTest("crypto",!!M("subtle",N)),w.addTest("sandbox","sandbox"in s("iframe")),w.addTest("json","JSON"in t&&"parse"in JSON&&"stringify"in JSON),w.addTest("fetch","fetch"in t),w.addTest("localstorage",(function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}})),function(){var e,t,r,n,i,a;for(var s in h)if(h.hasOwnProperty(s)){if(e=[],(t=h[s]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(r=0;r<t.options.aliases.length;r++)e.push(t.options.aliases[r].toLowerCase());for(n=o(t.fn,"function")?t.fn():t.fn,i=0;i<e.length;i++)1===(a=e[i].split(".")).length?w[a[0]]=n:(w[a[0]]&&(!w[a[0]]||w[a[0]]instanceof Boolean)||(w[a[0]]=new Boolean(w[a[0]])),w[a[0]][a[1]]=n),b.push((n?"":"no-")+a.join("-"))}}(),i(b),delete v.addTest,delete v.addAsyncTest;for(var R=0;R<w._q.length;R++)w._q[R]();e.Modernizr=w}(window,window,document)}});
//# sourceMappingURL=bundle.js.map