diff --git a/.gitignore b/.gitignore index f5063fda..48a9945c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,4 @@ .*.sw? yarn.lock node_modules -package.json -package-lock.json *.pyc diff --git a/README.md b/README.md index 2c203bde..08a37b60 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,6 @@ cd(Pkg.dir("WebIO", "assets")) **Development setup** if you want to edit the javascript files in this repository, you will need to setup ways to build them. It's made easy for you: ```julia using WebIO -WebIO.devsetup() # run once WebIO.bundlejs() # run every time you update a file ``` diff --git a/assets/webio/dist/bundle.js b/assets/webio/dist/bundle.js index 4595e16a..9fad5770 100644 --- a/assets/webio/dist/bundle.js +++ b/assets/webio/dist/bundle.js @@ -73,26 +73,26 @@ /* 0 */ /***/ (function(module, exports) { -var g; - -// This works in non-strict mode -g = (function() { - return this; -})(); - -try { - // This works if eval is allowed (see CSP) - g = g || Function("return this")() || (1, eval)("this"); -} catch (e) { - // This works if the window reference is available - if (typeof window === "object") g = window; -} - -// g can still be undefined, but nothing to do about it... -// We return undefined, instead of nothing here, so it's -// easier to handle this case. if(!global) { ...} - -module.exports = g; +var g; + +// This works in non-strict mode +g = (function() { + return this; +})(); + +try { + // This works if eval is allowed (see CSP) + g = g || Function("return this")() || (1, eval)("this"); +} catch (e) { + // This works if the window reference is available + if (typeof window === "object") g = window; +} + +// g can still be undefined, but nothing to do about it... +// We return undefined, instead of nothing here, so it's +// easier to handle this case. if(!global) { ...} + +module.exports = g; /***/ }), @@ -557,7 +557,7 @@ module.exports = Array.isArray || function (arr) { exports.read = function (buffer, offset, isLE, mLen, nBytes) { var e, m - var eLen = nBytes * 8 - mLen - 1 + var eLen = (nBytes * 8) - mLen - 1 var eMax = (1 << eLen) - 1 var eBias = eMax >> 1 var nBits = -7 @@ -570,12 +570,12 @@ exports.read = function (buffer, offset, isLE, mLen, nBytes) { e = s & ((1 << (-nBits)) - 1) s >>= (-nBits) nBits += eLen - for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {} + for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {} m = e & ((1 << (-nBits)) - 1) e >>= (-nBits) nBits += mLen - for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {} + for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {} if (e === 0) { e = 1 - eBias @@ -590,7 +590,7 @@ exports.read = function (buffer, offset, isLE, mLen, nBytes) { exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var e, m, c - var eLen = nBytes * 8 - mLen - 1 + var eLen = (nBytes * 8) - mLen - 1 var eMax = (1 << eLen) - 1 var eBias = eMax >> 1 var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0) @@ -623,7 +623,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { m = 0 e = eMax } else if (e + eBias >= 1) { - m = (value * c - 1) * Math.pow(2, mLen) + m = ((value * c) - 1) * Math.pow(2, mLen) e = e + eBias } else { m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen) @@ -667,65 +667,97 @@ for (var i = 0, len = code.length; i < len; ++i) { revLookup['-'.charCodeAt(0)] = 62 revLookup['_'.charCodeAt(0)] = 63 -function placeHoldersCount (b64) { +function getLens (b64) { var len = b64.length + if (len % 4 > 0) { throw new Error('Invalid string. Length must be a multiple of 4') } - // the number of equal signs (place holders) - // if there are two placeholders, than the two characters before it - // represent one byte - // if there is only one, then the three characters before it represent 2 bytes - // this is just a cheap hack to not do indexOf twice - return b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0 + // Trim off extra bytes after placeholder bytes are found + // See: https://github.com/beatgammit/base64-js/issues/42 + var validLen = b64.indexOf('=') + if (validLen === -1) validLen = len + + var placeHoldersLen = validLen === len + ? 0 + : 4 - (validLen % 4) + + return [validLen, placeHoldersLen] } +// base64 is 4/3 + up to two characters of the original data function byteLength (b64) { - // base64 is 4/3 + up to two characters of the original data - return (b64.length * 3 / 4) - placeHoldersCount(b64) + var lens = getLens(b64) + var validLen = lens[0] + var placeHoldersLen = lens[1] + return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen +} + +function _byteLength (b64, validLen, placeHoldersLen) { + return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen } function toByteArray (b64) { - var i, l, tmp, placeHolders, arr - var len = b64.length - placeHolders = placeHoldersCount(b64) + var tmp + var lens = getLens(b64) + var validLen = lens[0] + var placeHoldersLen = lens[1] - arr = new Arr((len * 3 / 4) - placeHolders) + var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)) + + var curByte = 0 // if there are placeholders, only get up to the last complete 4 chars - l = placeHolders > 0 ? len - 4 : len + var len = placeHoldersLen > 0 + ? validLen - 4 + : validLen - var L = 0 + for (var i = 0; i < len; i += 4) { + tmp = + (revLookup[b64.charCodeAt(i)] << 18) | + (revLookup[b64.charCodeAt(i + 1)] << 12) | + (revLookup[b64.charCodeAt(i + 2)] << 6) | + revLookup[b64.charCodeAt(i + 3)] + arr[curByte++] = (tmp >> 16) & 0xFF + arr[curByte++] = (tmp >> 8) & 0xFF + arr[curByte++] = tmp & 0xFF + } - for (i = 0; i < l; i += 4) { - tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)] - arr[L++] = (tmp >> 16) & 0xFF - arr[L++] = (tmp >> 8) & 0xFF - arr[L++] = tmp & 0xFF + if (placeHoldersLen === 2) { + tmp = + (revLookup[b64.charCodeAt(i)] << 2) | + (revLookup[b64.charCodeAt(i + 1)] >> 4) + arr[curByte++] = tmp & 0xFF } - if (placeHolders === 2) { - tmp = (revLookup[b64.charCodeAt(i)] << 2) | (revLookup[b64.charCodeAt(i + 1)] >> 4) - arr[L++] = tmp & 0xFF - } else if (placeHolders === 1) { - tmp = (revLookup[b64.charCodeAt(i)] << 10) | (revLookup[b64.charCodeAt(i + 1)] << 4) | (revLookup[b64.charCodeAt(i + 2)] >> 2) - arr[L++] = (tmp >> 8) & 0xFF - arr[L++] = tmp & 0xFF + if (placeHoldersLen === 1) { + tmp = + (revLookup[b64.charCodeAt(i)] << 10) | + (revLookup[b64.charCodeAt(i + 1)] << 4) | + (revLookup[b64.charCodeAt(i + 2)] >> 2) + arr[curByte++] = (tmp >> 8) & 0xFF + arr[curByte++] = tmp & 0xFF } return arr } function tripletToBase64 (num) { - return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F] + return lookup[num >> 18 & 0x3F] + + lookup[num >> 12 & 0x3F] + + lookup[num >> 6 & 0x3F] + + lookup[num & 0x3F] } function encodeChunk (uint8, start, end) { var tmp var output = [] for (var i = start; i < end; i += 3) { - tmp = ((uint8[i] << 16) & 0xFF0000) + ((uint8[i + 1] << 8) & 0xFF00) + (uint8[i + 2] & 0xFF) + tmp = + ((uint8[i] << 16) & 0xFF0000) + + ((uint8[i + 1] << 8) & 0xFF00) + + (uint8[i + 2] & 0xFF) output.push(tripletToBase64(tmp)) } return output.join('') @@ -735,31 +767,34 @@ function fromByteArray (uint8) { var tmp var len = uint8.length var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes - var output = '' var parts = [] var maxChunkLength = 16383 // must be multiple of 3 // go through the array every three bytes, we'll deal with trailing stuff later for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { - parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength))) + parts.push(encodeChunk( + uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength) + )) } // pad the end with zeros, but make sure to not forget the extra bytes if (extraBytes === 1) { tmp = uint8[len - 1] - output += lookup[tmp >> 2] - output += lookup[(tmp << 4) & 0x3F] - output += '==' + parts.push( + lookup[tmp >> 2] + + lookup[(tmp << 4) & 0x3F] + + '==' + ) } else if (extraBytes === 2) { - tmp = (uint8[len - 2] << 8) + (uint8[len - 1]) - output += lookup[tmp >> 10] - output += lookup[(tmp >> 4) & 0x3F] - output += lookup[(tmp << 2) & 0x3F] - output += '=' + tmp = (uint8[len - 2] << 8) + uint8[len - 1] + parts.push( + lookup[tmp >> 10] + + lookup[(tmp >> 4) & 0x3F] + + lookup[(tmp << 2) & 0x3F] + + '=' + ) } - parts.push(output) - return parts.join('') } @@ -2566,9 +2601,9 @@ function isnan (val) { /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(Buffer, process, global, __filename) {var require;/* - * SystemJS v0.21.0 Dev + * SystemJS v0.20.19 Dev */ -!function(){"use strict";function e(e){return rt?Symbol():"@@"+e}function t(e,t){Qe||(t=t.replace(et?/file:\/\/\//g:/file:\/\//g,""));var r,n=(e.message||e)+"\n "+t;r=it&&e.fileName?new Error(n,e.fileName,e.lineNumber):new Error(n);var o=e.originalErr?e.originalErr.stack:e.stack;return r.stack=Ve?n+"\n "+o:o,r.originalErr=e.originalErr||e,r}function r(e,t){throw new RangeError('Unable to resolve "'+e+'" to '+t)}function n(e,t){e=e.trim();var n=t&&t.substr(0,t.indexOf(":")+1),o=e[0],i=e[1];if("/"===o&&"/"===i)return n||r(e,t),n+e;if("."===o&&("/"===i||"."===i&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===o){var a,s=!n||"/"!==t[n.length];if(s?(void 0===t&&r(e,t),a=t):a="/"===t[n.length+1]?"file:"!==n?(a=t.substr(n.length+2)).substr(a.indexOf("/")+1):t.substr(8):t.substr(n.length+1),"/"===o){if(!s)return t.substr(0,t.length-a.length-1)+e;r(e,t)}for(var u=a.substr(0,a.lastIndexOf("/")+1)+e,l=[],c=-1,f=0;f1&&g(e,r,i))})).then(function(t){if(void 0!==t){if(!(t instanceof l))throw new TypeError("Instantiate did not return a valid Module object.");return delete i.records[r.key],e.trace&&v(e,r,n),o[r.key]=t}var a=r.registration;if(r.registration=void 0,!a)throw new TypeError("Module instantiation did not call an anonymous or correctly named System.register.");return n.dependencies=a[0],r.importerSetters=[],n.moduleObj={},a[2]?(n.moduleObj.default=n.moduleObj.__useDefault={},n.executingRequire=a[1],n.execute=a[2]):y(e,r,n,a[1]),r}).catch(function(e){throw r.linkRecord=void 0,r.loadError=r.loadError||t(e,"Instantiating "+r.key)}))}function m(e,t,r,n,o,i){return e.resolve(t,r).then(function(r){i&&(i[t]=r);var a=o.records[r],s=n[r];if(s&&(!a||a.module&&s!==a.module))return s;if(a&&a.loadError)throw a.loadError;(!a||!s&&a.module)&&(a=d(o,r,a&&a.registration));var u=a.linkRecord;return u?h(e,a,u,n,o):a})}function v(e,t,r){e.loads=e.loads||{},e.loads[t.key]={key:t.key,deps:r.dependencies,dynamicDeps:[],depMap:r.depMap||{}}}function y(e,t,r,n){var o=r.moduleObj,i=t.importerSetters,a=!1,s=n.call(tt,function(e,t){if("object"==typeof e){var r=!1;for(var n in e)t=e[n],"__useDefault"===n||n in o&&o[n]===t||(r=!0,o[n]=t);if(!1===r)return t}else{if((a||e in o)&&o[e]===t)return t;o[e]=t}for(var s=0;sthis.len&&(this.match=e,this.len=r)}}function z(e,t){if(Object.hasOwnProperty.call(e,t))return t;var r={name:t,match:void 0,len:0};return Object.keys(e).forEach(T,r),r.match}function N(e,t,r,n){return new Promise(function(r,o){function i(){r(n?s.response:s.responseText)}function a(){o(new Error("XHR error: "+(s.status?" ("+s.status+(s.statusText?" "+s.statusText:"")+")":"")+" loading "+e))}e=e.replace(/#/g,"%23");var s=new XMLHttpRequest;n&&(s.responseType="arraybuffer"),s.onreadystatechange=function(){4===s.readyState&&(0==s.status?s.response?i():(s.addEventListener("error",a),s.addEventListener("load",i)):200===s.status?i():a())},s.open("GET",e,!0),s.setRequestHeader&&(s.setRequestHeader("Accept","application/x-es-module, */*"),t&&("string"==typeof t&&s.setRequestHeader("Authorization",t),s.withCredentials=!0)),s.send(null)})}function J(){return{pluginKey:void 0,pluginArgument:void 0,pluginModule:void 0,packageKey:void 0,packageConfig:void 0,load:void 0}}function $(e,t,r){var n=J();if(r){var o;t.pluginFirst?-1!==(o=r.lastIndexOf("!"))&&(n.pluginArgument=n.pluginKey=r.substr(0,o)):-1!==(o=r.indexOf("!"))&&(n.pluginArgument=n.pluginKey=r.substr(o+1)),n.packageKey=z(t.packages,r),n.packageKey&&(n.packageConfig=t.packages[n.packageKey])}return n}function B(e,t){var r=Q(e.pluginFirst,t);if(r){var n=B.call(this,e,r.plugin);return V(e.pluginFirst,G.call(this,e,r.argument,void 0,!1,!1),n)}return G.call(this,e,t,void 0,!1,!1)}function W(e,t){var r=this[bt],n=J(),o=o||$(this,r,t),i=Q(r.pluginFirst,e);return i?(n.pluginKey=W.call(this,i.plugin,t),V(r.pluginFirst,H.call(this,r,i.argument,o.pluginArgument||t,n,o,!!n.pluginKey),n.pluginKey)):H.call(this,r,e,o.pluginArgument||t,n,o,!!n.pluginKey)}function G(e,t,r,o,i){var a=n(t,r||Ye);if(a)return q(e.baseURL,e.paths,a);if(o){var s=z(e.map,t);if(s&&(t=e.map[s]+t.substr(s.length),a=n(t,Ye)))return q(e.baseURL,e.paths,a)}if(this.registry.has(t))return t;if("@node/"===t.substr(0,6))return t;var u=i&&"/"!==t[t.length-1],l=q(e.baseURL,e.paths,u?t+"/":t);return u?l.substr(0,l.length-1):l}function H(e,t,r,n,o,i){if(o&&o.packageConfig&&"."!==t[0]){var a=o.packageConfig.map,s=a&&z(a,t);if(s&&"string"==typeof a[s]){var u=ne(this,e,o.packageConfig,o.packageKey,s,t,n,i);if(u)return u}}var l=G.call(this,e,t,r,!0,!0),c=se(e,l);if(n.packageKey=c&&c.packageKey||z(e.packages,l),!n.packageKey)return l;if(-1!==e.packageConfigKeys.indexOf(l))return n.packageKey=void 0,l;n.packageConfig=e.packages[n.packageKey]||(e.packages[n.packageKey]=me());var f=l.substr(n.packageKey.length+1);return te(this,e,n.packageConfig,n.packageKey,f,n,i)}function Z(e,t,r,n,o,i){var a=this;return vt.then(function(){if(o&&o.packageConfig&&"./"!==t.substr(0,2)){var r=o.packageConfig.map,s=r&&z(r,t);if(s)return ie(a,e,o.packageConfig,o.packageKey,s,t,n,i)}return vt}).then(function(o){if(o)return o;var s=G.call(a,e,t,r,!0,!0),u=se(e,s);return n.packageKey=u&&u.packageKey||z(e.packages,s),n.packageKey?-1!==e.packageConfigKeys.indexOf(s)?(n.packageKey=void 0,n.load=X(),n.load.format="json",n.load.loader="",Promise.resolve(s)):(n.packageConfig=e.packages[n.packageKey]||(e.packages[n.packageKey]=me()),(u&&!n.packageConfig.configured?ue(a,e,u.configPath,n):vt).then(function(){var t=s.substr(n.packageKey.length+1);return oe(a,e,n.packageConfig,n.packageKey,t,n,i)})):Promise.resolve(s)})}function X(){return{extension:"",deps:void 0,format:void 0,loader:void 0,scriptLoad:void 0,globals:void 0,nonce:void 0,integrity:void 0,sourceMap:void 0,exports:void 0,encapsulateGlobal:!1,crossOrigin:void 0,cjsRequireDetection:!0,cjsDeferDepsExecute:!1,esModule:!1}}function Y(e,t,r){r.load=r.load||X();var n,o=0;for(var i in e.meta)if(-1!==(n=i.indexOf("*"))&&i.substr(0,n)===t.substr(0,n)&&i.substr(n+1)===t.substr(t.length-i.length+n+1)){var a=i.split("/").length;a>o&&(o=a),I(r.load,e.meta[i],o!==a)}if(e.meta[t]&&I(r.load,e.meta[t],!1),r.packageKey){var s=t.substr(r.packageKey.length+1),u={};if(r.packageConfig.meta){o=0;le(r.packageConfig.meta,s,function(e,t,r){r>o&&(o=r),I(u,t,r&&o>r)}),I(r.load,u,!1)}!r.packageConfig.format||r.pluginKey||r.load.loader||(r.load.format=r.load.format||r.packageConfig.format)}}function Q(e,t){var r,n,o=e?t.indexOf("!"):t.lastIndexOf("!");if(-1!==o)return e?(r=t.substr(o+1),n=t.substr(0,o)):(r=t.substr(0,o),n=t.substr(o+1)||r.substr(r.lastIndexOf(".")+1)),{argument:r,plugin:n}}function V(e,t,r){return e?r+"!"+t:t+"!"+r}function ee(e,t,r,n,o){if(!n||!t.defaultExtension||"/"===n[n.length-1]||o)return n;var i=!1;if(t.meta&&le(t.meta,n,function(e,t,r){if(0===r||e.lastIndexOf("*")!==e.length-1)return i=!0}),!i&&e.meta&&le(e.meta,r+"/"+n,function(e,t,r){if(0===r||e.lastIndexOf("*")!==e.length-1)return i=!0}),i)return n;var a="."+t.defaultExtension;return n.substr(n.length-a.length)!==a?n+a:n}function te(e,t,r,n,o,i,a){if(!o){if(!r.main)return n;o="./"===r.main.substr(0,2)?r.main.substr(2):r.main}if(r.map){var s="./"+o,u=z(r.map,s);if(u||(s="./"+ee(t,r,n,o,a))!=="./"+o&&(u=z(r.map,s)),u){var l=ne(e,t,r,n,u,s,i,a);if(l)return l}}return n+"/"+ee(t,r,n,o,a)}function re(e,t,r){return!(t.substr(0,e.length)===e&&r.length>e.length)}function ne(e,t,r,n,o,i,a,s){"/"===i[i.length-1]&&(i=i.substr(0,i.length-1));var u=r.map[o];if("object"==typeof u)throw new Error("Synchronous conditional normalization not supported sync normalizing "+o+" in "+n);if(re(o,u,i)&&"string"==typeof u)return H.call(e,t,u+i.substr(o.length),n+"/",a,a,s)}function oe(e,t,r,n,o,i,a){if(!o){if(!r.main)return Promise.resolve(n);o="./"===r.main.substr(0,2)?r.main.substr(2):r.main}var s,u;return r.map&&(s="./"+o,(u=z(r.map,s))||(s="./"+ee(t,r,n,o,a))!=="./"+o&&(u=z(r.map,s))),(u?ie(e,t,r,n,u,s,i,a):vt).then(function(e){return e?Promise.resolve(e):Promise.resolve(n+"/"+ee(t,r,n,o,a))})}function ie(e,t,r,n,o,i,a,s){"/"===i[i.length-1]&&(i=i.substr(0,i.length-1));var u=r.map[o];if("string"==typeof u)return re(o,u,i)?Z.call(e,t,u+i.substr(o.length),n+"/",a,a,s).then(function(t){return de.call(e,t,n+"/",a)}):vt;var l=[],c=[];for(var d in u){var p=ce(d);c.push({condition:p,map:u[d]}),l.push(f.prototype.import.call(e,p.module,n))}return Promise.all(l).then(function(e){for(var t=0;t1?o instanceof Array?r[n]=[].concat(o):"object"==typeof o?r[n]=ge(o,t-1):"packageConfig"!==n&&(r[n]=o):r[n]=o}return r}function he(e,t){var r=e[t];return r instanceof Array?e[t].concat([]):"object"==typeof r?ge(r,3):e[t]}function me(){return{defaultExtension:void 0,main:void 0,format:void 0,meta:void 0,map:void 0,packageConfig:void 0,configured:!1}}function ve(e,t,r,n,o){for(var i in t)"main"===i||"format"===i||"defaultExtension"===i||"configured"===i?n&&void 0!==e[i]||(e[i]=t[i]):"map"===i?(n?A:L)(e.map=e.map||{},t.map):"meta"===i?(n?A:L)(e.meta=e.meta||{},t.meta):Object.hasOwnProperty.call(t,i)&&M.call(o,'"'+i+'" is not a valid package configuration option in package '+r);return void 0===e.defaultExtension&&(e.defaultExtension="js"),void 0===e.main&&e.map&&e.map["."]?(e.main=e.map["."],delete e.map["."]):"object"==typeof e.main&&(e.map=e.map||{},e.map["./@main"]=e.main,e.main.default=e.main.default||"./",e.main="@main"),e}function ye(e){return It?qt+new Buffer(e).toString("base64"):"undefined"!=typeof btoa?qt+btoa(unescape(encodeURIComponent(e))):""}function be(e,t,r,n){var o=e.lastIndexOf("\n");if(t){if("object"!=typeof t)throw new TypeError("load.metadata.sourceMap must be set to an object.");t=JSON.stringify(t)}return(n?"(function(System, SystemJS) {":"")+e+(n?"\n})(System, System);":"")+("\n//# sourceURL="!=e.substr(o,15)?"\n//# sourceURL="+r+(t?"!transpiled":""):"")+(t&&ye(t)||"")}function we(e,t,r,n,o){Ft||(Ft=document.head||document.body||document.documentElement);var i=document.createElement("script");i.text=be(t,r,n,!1);var a,s=window.onerror;if(window.onerror=function(e){a=addToError(e,"Evaluating "+n),s&&s.apply(this,arguments)},xe(e),o&&i.setAttribute("nonce",o),Ft.appendChild(i),Ft.removeChild(i),ke(),window.onerror=s,a)return a}function xe(e){0==Tt++&&(Ut=tt.System),tt.System=tt.SystemJS=e}function ke(){0==--Tt&&(tt.System=tt.SystemJS=Ut)}function Ee(e,t,r,n,o,i,a){if(t){if(i&&zt)return we(e,t,r,n,i);try{xe(e),!Kt&&e._nodeRequire&&(Kt=e._nodeRequire("vm"),Dt=Kt.runInThisContext("typeof System !== 'undefined' && System")===e),Dt?Kt.runInThisContext(be(t,r,n,!a),{filename:n+(r?"!transpiled":"")}):(0,eval)(be(t,r,n,!a)),ke()}catch(e){return ke(),e}}}function Oe(e){e.set("@@cjs-helpers",e.newModule({requireResolve:_e.bind(e),getPathVars:Pe})),e.set("@@global-helpers",e.newModule({prepareGlobal:Le}))}function Se(e){function t(r,n,o,i){if("object"==typeof r&&!(r instanceof Array))return t.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if("string"==typeof r&&"function"==typeof n&&(r=[r]),!(r instanceof Array)){if("string"==typeof r){var a=e.decanonicalize(r,i),s=e.get(a);if(!s)throw new Error('Module not already loaded loading "'+r+'" as '+a+(i?' from "'+i+'".':"."));return"__useDefault"in s?s.__useDefault:s}throw new TypeError("Invalid require")}for(var u=[],l=0;lt.index)return!0;return!1}_t.lastIndex=Gt.lastIndex=Ht.lastIndex=0;var r,n=[],o=[],i=[];if(e.length/e.split("\n").length<200){for(;r=Ht.exec(e);)o.push([r.index,r.index+r[0].length]);for(;r=Gt.exec(e);)t(o,r)||i.push([r.index+r[1].length,r.index+r[0].length-1])}for(;r=_t.exec(e);)if(!t(o,r)&&!t(i,r)){var a=r[1].substr(1,r[1].length-2);if(a.match(/"|'/))continue;n.push(a)}return n}function Re(e){if(-1===Zt.indexOf(e)){try{var t=tt[e]}catch(t){Zt.push(e)}this(e,t)}}function Ce(e){if("string"==typeof e)return U(e,tt);if(!(e instanceof Array))throw new Error("Global exports must be a string or array.");for(var t={},r=0;r1;)e=e[n=o.shift()]=e[n]||{};void 0===e[n=o.shift()]&&(e[n]=r)}function Ge(e,t){var r=e.match(fr);if(r)for(var n=r[0].match(dr),o=0;o "+o.paths[a]+" is no longer supported as wildcards are deprecated."),delete o.paths[a])}if(e.defaultJSExtensions&&M.call(o,"The defaultJSExtensions configuration option is deprecated.\n Use packages defaultExtension instead.",!0),"boolean"==typeof e.pluginFirst&&(o.pluginFirst=e.pluginFirst),e.map)for(var a in e.map){var s=e.map[a];if("string"==typeof s){var u=G.call(r,o,s,void 0,!1,!1);"/"===u[u.length-1]&&":"!==a[a.length-1]&&"/"!==a[a.length-1]&&(u=u.substr(0,u.length-1)),o.map[a]=u}else{m=(m=G.call(r,o,"/"!==a[a.length-1]?a+"/":a,void 0,!0,!0)).substr(0,m.length-1);var l=o.packages[m];l||((l=o.packages[m]={defaultExtension:void 0,main:void 0,format:void 0,meta:void 0,map:void 0,packageConfig:void 0,configured:!1}).defaultExtension=""),ve(l,{map:s},m,!1,o)}}if(e.packageConfigPaths){for(var c=[],f=0;f1&&g(e,r,i))})).then(function(t){if(void 0!==t){if(!(t instanceof l))throw new TypeError("Instantiate did not return a valid Module object.");return delete i.records[r.key],e.trace&&v(e,r,n),o[r.key]=t}var a=r.registration;if(r.registration=void 0,!a)throw new TypeError("Module instantiation did not call an anonymous or correctly named System.register.");return n.dependencies=a[0],r.importerSetters=[],n.moduleObj={},a[2]?(n.moduleObj.default=n.moduleObj.__useDefault={},n.executingRequire=a[1],n.execute=a[2]):y(e,r,n,a[1]),r}).catch(function(e){throw r.linkRecord=void 0,r.loadError=r.loadError||t(e,"Instantiating "+r.key)}))}function m(e,t,r,n,o,i){return e.resolve(t,r).then(function(r){i&&(i[t]=r);var a=o.records[r],s=n[r];if(s&&(!a||a.module&&s!==a.module))return s;if(a&&a.loadError)throw a.loadError;(!a||!s&&a.module)&&(a=d(o,r,a&&a.registration));var u=a.linkRecord;return u?h(e,a,u,n,o):a})}function v(e,t,r){e.loads=e.loads||{},e.loads[t.key]={key:t.key,deps:r.dependencies,dynamicDeps:[],depMap:r.depMap||{}}}function y(e,t,r,n){var o=r.moduleObj,i=t.importerSetters,a=!1,s=n.call(st,function(e,t){if("object"==typeof e){var r=!1;for(var n in e)t=e[n],"__useDefault"===n||n in o&&o[n]===t||(r=!0,o[n]=t);if(!1===r)return t}else{if((a||e in o)&&o[e]===t)return t;o[e]=t}for(var s=0;sthis.len&&(this.match=e,this.len=r)}}function N(e,t){if(Object.hasOwnProperty.call(e,t))return t;var r={name:t,match:void 0,len:0};return Object.keys(e).forEach(z,r),r.match}function J(e,t,r,n){if("file:///"===e.substr(0,8)){if(Ft)return $(e,t,r,n);throw new Error("Unable to fetch file URLs in this environment.")}e=e.replace(/#/g,"%23");var o={headers:{Accept:"application/x-es-module, */*"}};return r&&(o.integrity=r),t&&("string"==typeof t&&(o.headers.Authorization=t),o.credentials="include"),fetch(e,o).then(function(e){if(e.ok)return n?e.arrayBuffer():e.text();throw new Error("Fetch error: "+e.status+" "+e.statusText)})}function $(e,t,r,n){return new Promise(function(r,o){function i(){r(n?s.response:s.responseText)}function a(){o(new Error("XHR error: "+(s.status?" ("+s.status+(s.statusText?" "+s.statusText:"")+")":"")+" loading "+e))}e=e.replace(/#/g,"%23");var s=new XMLHttpRequest;n&&(s.responseType="arraybuffer"),s.onreadystatechange=function(){4===s.readyState&&(0==s.status?s.response?i():(s.addEventListener("error",a),s.addEventListener("load",i)):200===s.status?i():a())},s.open("GET",e,!0),s.setRequestHeader&&(s.setRequestHeader("Accept","application/x-es-module, */*"),t&&("string"==typeof t&&s.setRequestHeader("Authorization",t),s.withCredentials=!0)),s.send(null)})}function B(e,t,r,n){return"file:///"!=e.substr(0,8)?Promise.reject(new Error('Unable to fetch "'+e+'". Only file URLs of the form file:/// supported running in Node.')):(Lt=Lt||__webpack_require__(2),e=at?e.replace(/\//g,"\\").substr(8):e.substr(7),new Promise(function(t,r){Lt.readFile(e,function(e,o){if(e)return r(e);if(n)t(o);else{var i=o+"";"\ufeff"===i[0]&&(i=i.substr(1)),t(i)}})}))}function W(){throw new Error("No fetch method is defined for this environment.")}function G(){return{pluginKey:void 0,pluginArgument:void 0,pluginModule:void 0,packageKey:void 0,packageConfig:void 0,load:void 0}}function H(e,t,r){var n=G();if(r){var o;t.pluginFirst?-1!==(o=r.lastIndexOf("!"))&&(n.pluginArgument=n.pluginKey=r.substr(0,o)):-1!==(o=r.indexOf("!"))&&(n.pluginArgument=n.pluginKey=r.substr(o+1)),n.packageKey=N(t.packages,r),n.packageKey&&(n.packageConfig=t.packages[n.packageKey])}return n}function Z(e,t){var r=this[St],n=G(),o=H(this,r,t),i=this;return Promise.resolve().then(function(){var r=e.lastIndexOf("#?");if(-1===r)return Promise.resolve(e);var n=he.call(i,e.substr(r+2));return me.call(i,n,t,!0).then(function(t){return t?e.substr(0,r):"@empty"})}).then(function(e){var a=ne(r.pluginFirst,e);return a?(n.pluginKey=a.plugin,Promise.all([ee.call(i,r,a.argument,o&&o.pluginArgument||t,n,o,!0),i.resolve(a.plugin,t)]).then(function(e){if(n.pluginArgument=e[0],n.pluginKey=e[1],n.pluginArgument===n.pluginKey)throw new Error("Plugin "+n.pluginArgument+" cannot load itself, make sure it is excluded from any wildcard meta configuration via a custom loader: false rule.");return oe(r.pluginFirst,e[0],e[1])})):ee.call(i,r,e,o&&o.pluginArgument||t,n,o,!1)}).then(function(e){return ve.call(i,e,t,o)}).then(function(e){return re.call(i,r,e,n),n.pluginKey||!n.load.loader?e:i.resolve(n.load.loader,e).then(function(t){return n.pluginKey=t,n.pluginArgument=e,e})}).then(function(e){return i[jt][e]=n,e})}function X(e,t){var r=ne(e.pluginFirst,t);if(r){var n=X.call(this,e,r.plugin);return oe(e.pluginFirst,Q.call(this,e,r.argument,void 0,!1,!1),n)}return Q.call(this,e,t,void 0,!1,!1)}function Y(e,t){var r=this[St],n=G(),o=o||H(this,r,t),i=ne(r.pluginFirst,e);return i?(n.pluginKey=Y.call(this,i.plugin,t),oe(r.pluginFirst,V.call(this,r,i.argument,o.pluginArgument||t,n,o,!!n.pluginKey),n.pluginKey)):V.call(this,r,e,o.pluginArgument||t,n,o,!!n.pluginKey)}function Q(e,t,r,o,i){var a=n(t,r||nt);if(a)return T(e.baseURL,e.paths,a);if(o){var s=N(e.map,t);if(s&&(t=e.map[s]+t.substr(s.length),a=n(t,nt)))return T(e.baseURL,e.paths,a)}if(this.registry.has(t))return t;if("@node/"===t.substr(0,6))return t;var u=i&&"/"!==t[t.length-1],l=T(e.baseURL,e.paths,u?t+"/":t);return u?l.substr(0,l.length-1):l}function V(e,t,r,n,o,i){if(o&&o.packageConfig&&"."!==t[0]){var a=o.packageConfig.map,s=a&&N(a,t);if(s&&"string"==typeof a[s]){var u=ue(this,e,o.packageConfig,o.packageKey,s,t,n,i);if(u)return u}}var l=Q.call(this,e,t,r,!0,!0),c=de(e,l);if(n.packageKey=c&&c.packageKey||N(e.packages,l),!n.packageKey)return l;if(-1!==e.packageConfigKeys.indexOf(l))return n.packageKey=void 0,l;n.packageConfig=e.packages[n.packageKey]||(e.packages[n.packageKey]=Ee());var f=l.substr(n.packageKey.length+1);return ae(this,e,n.packageConfig,n.packageKey,f,n,i)}function ee(e,t,r,n,o,i){var a=this;return Et.then(function(){if(o&&o.packageConfig&&"./"!==t.substr(0,2)){var r=o.packageConfig.map,s=r&&N(r,t);if(s)return ce(a,e,o.packageConfig,o.packageKey,s,t,n,i)}return Et}).then(function(o){if(o)return o;var s=Q.call(a,e,t,r,!0,!0),u=de(e,s);return n.packageKey=u&&u.packageKey||N(e.packages,s),n.packageKey?-1!==e.packageConfigKeys.indexOf(s)?(n.packageKey=void 0,n.load=te(),n.load.format="json",n.load.loader="",Promise.resolve(s)):(n.packageConfig=e.packages[n.packageKey]||(e.packages[n.packageKey]=Ee()),(u&&!n.packageConfig.configured?pe(a,e,u.configPath,n):Et).then(function(){var t=s.substr(n.packageKey.length+1);return le(a,e,n.packageConfig,n.packageKey,t,n,i)})):Promise.resolve(s)})}function te(){return{extension:"",deps:void 0,format:void 0,loader:void 0,scriptLoad:void 0,globals:void 0,nonce:void 0,integrity:void 0,sourceMap:void 0,exports:void 0,encapsulateGlobal:!1,crossOrigin:void 0,cjsRequireDetection:!0,cjsDeferDepsExecute:!1,esModule:!1}}function re(e,t,r){r.load=r.load||te();var n,o=0;for(var i in e.meta)if(-1!==(n=i.indexOf("*"))&&i.substr(0,n)===t.substr(0,n)&&i.substr(n+1)===t.substr(t.length-i.length+n+1)){var a=i.split("/").length;a>o&&(o=a),F(r.load,e.meta[i],o!==a)}if(e.meta[t]&&F(r.load,e.meta[t],!1),r.packageKey){var s=t.substr(r.packageKey.length+1),u={};if(r.packageConfig.meta){o=0;ge(r.packageConfig.meta,s,function(e,t,r){r>o&&(o=r),F(u,t,r&&o>r)}),F(r.load,u,!1)}!r.packageConfig.format||r.pluginKey||r.load.loader||(r.load.format=r.load.format||r.packageConfig.format)}}function ne(e,t){var r,n,o=e?t.indexOf("!"):t.lastIndexOf("!");if(-1!==o)return e?(r=t.substr(o+1),n=t.substr(0,o)):(r=t.substr(0,o),n=t.substr(o+1)||r.substr(r.lastIndexOf(".")+1)),{argument:r,plugin:n}}function oe(e,t,r){return e?r+"!"+t:t+"!"+r}function ie(e,t,r,n,o){if(!n||!t.defaultExtension||"/"===n[n.length-1]||o)return n;var i=!1;if(t.meta&&ge(t.meta,n,function(e,t,r){if(0===r||e.lastIndexOf("*")!==e.length-1)return i=!0}),!i&&e.meta&&ge(e.meta,r+"/"+n,function(e,t,r){if(0===r||e.lastIndexOf("*")!==e.length-1)return i=!0}),i)return n;var a="."+t.defaultExtension;return n.substr(n.length-a.length)!==a?n+a:n}function ae(e,t,r,n,o,i,a){if(!o){if(!r.main)return n;o="./"===r.main.substr(0,2)?r.main.substr(2):r.main}if(r.map){var s="./"+o,u=N(r.map,s);if(u||(s="./"+ie(t,r,n,o,a))!=="./"+o&&(u=N(r.map,s)),u){var l=ue(e,t,r,n,u,s,i,a);if(l)return l}}return n+"/"+ie(t,r,n,o,a)}function se(e,t,r){return!(t.substr(0,e.length)===e&&r.length>e.length)}function ue(e,t,r,n,o,i,a,s){"/"===i[i.length-1]&&(i=i.substr(0,i.length-1));var u=r.map[o];if("object"==typeof u)throw new Error("Synchronous conditional normalization not supported sync normalizing "+o+" in "+n);if(se(o,u,i)&&"string"==typeof u)return V.call(e,t,u+i.substr(o.length),n+"/",a,a,s)}function le(e,t,r,n,o,i,a){if(!o){if(!r.main)return Promise.resolve(n);o="./"===r.main.substr(0,2)?r.main.substr(2):r.main}var s,u;return r.map&&(s="./"+o,(u=N(r.map,s))||(s="./"+ie(t,r,n,o,a))!=="./"+o&&(u=N(r.map,s))),(u?ce(e,t,r,n,u,s,i,a):Et).then(function(e){return e?Promise.resolve(e):Promise.resolve(n+"/"+ie(t,r,n,o,a))})}function ce(e,t,r,n,o,i,a,s){"/"===i[i.length-1]&&(i=i.substr(0,i.length-1));var u=r.map[o];if("string"==typeof u)return se(o,u,i)?ee.call(e,t,u+i.substr(o.length),n+"/",a,a,s).then(function(t){return ve.call(e,t,n+"/",a)}):Et;var l=[],c=[];for(var d in u){var p=he(d);c.push({condition:p,map:u[d]}),l.push(f.prototype.import.call(e,p.module,n))}return Promise.all(l).then(function(e){for(var t=0;t1?o instanceof Array?r[n]=[].concat(o):"object"==typeof o?r[n]=be(o,t-1):"packageConfig"!==n&&(r[n]=o):r[n]=o}return r}function we(e,t){var r=e[t];return r instanceof Array?e[t].concat([]):"object"==typeof r?be(r,3):e[t]}function xe(e){if(e){if(-1!==Or.indexOf(e))return we(this[St],e);throw new Error('"'+e+'" is not a valid configuration name. Must be one of '+Or.join(", ")+".")}for(var t={},r=0;r "+o.paths[a]+" is no longer supported as wildcards are deprecated."),delete o.paths[a])}if(e.defaultJSExtensions&&R.call(o,"The defaultJSExtensions configuration option is deprecated.\n Use packages defaultExtension instead.",!0),"boolean"==typeof e.pluginFirst&&(o.pluginFirst=e.pluginFirst),e.map)for(var a in e.map){var s=e.map[a];if("string"==typeof s){var u=Q.call(r,o,s,void 0,!1,!1);"/"===u[u.length-1]&&":"!==a[a.length-1]&&"/"!==a[a.length-1]&&(u=u.substr(0,u.length-1)),o.map[a]=u}else{m=(m=Q.call(r,o,"/"!==a[a.length-1]?a+"/":a,void 0,!0,!0)).substr(0,m.length-1);var l=o.packages[m];l||((l=o.packages[m]=Ee()).defaultExtension=""),Oe(l,{map:s},m,!1,o)}}if(e.packageConfigPaths){for(var c=[],f=0;ft.index)return!0;return!1}It.lastIndex=tr.lastIndex=rr.lastIndex=0;var r,n=[],o=[],i=[];if(e.length/e.split("\n").length<200){for(;r=rr.exec(e);)o.push([r.index,r.index+r[0].length]);for(;r=tr.exec(e);)t(o,r)||i.push([r.index+r[1].length,r.index+r[0].length-1])}for(;r=It.exec(e);)if(!t(o,r)&&!t(i,r)){var a=r[1].substr(1,r[1].length-2);if(a.match(/"|'/))continue;n.push(a)}return n}function Fe(e){if(-1===nr.indexOf(e)){try{var t=st[e]}catch(t){nr.push(e)}this(e,t)}}function Ke(e){if("string"==typeof e)return q(e,st);if(!(e instanceof Array))throw new Error("Global exports must be a string or array.");for(var t={},r=0;r1;)e=e[n=o.shift()]=e[n]||{};void 0===e[n=o.shift()]&&(e[n]=r)}function Ve(e,t){var r=e.match(br);if(r)for(var n=r[0].match(wr),o=0;o1)for(var n=1;n"+this.innerHTML+""},set:function(t){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(m.body.innerHTML=t,t=this.ownerDocument.createDocumentFragment();m.body.firstChild;)c.call(t,m.body.firstChild);u.call(this.parentNode,t,this)},configurable:!0})};b(t.prototype),w(t.prototype),t.J=function(n){for(var o,r=0,i=(n=e(n,"template")).length;r]/g,N=function(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case" ":return" "}}}if(n||p){t.ca=function(t,e){var n=i.call(t,!1);return this.D&&this.D(n),e&&(c.call(n.content,i.call(t.content,!0)),C(n.content,t.content)),n};var C=function(n,o){if(o.querySelectorAll&&0!==(o=e(o,"template")).length)for(var r,i,a=0,s=(n=e(n,"template")).length;a]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,v={La:function(t,e){if(t.href&&t.setAttribute("href",v.Y(t.getAttribute("href"),e)),t.src&&t.setAttribute("src",v.Y(t.getAttribute("src"),e)),"style"===t.localName){var n=v.ta(t.textContent,e,p);t.textContent=v.ta(n,e,m)}},ta:function(t,e,n){return t.replace(n,function(t,n,o,r){return t=o.replace(/["']/g,""),e&&(t=v.Y(t,e)),n+"'"+t+"'"+r})},Y:function(t,e){if(void 0===v.ba){v.ba=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",v.ba="http://a/c%20d"===n.href}catch(t){}}return v.ba?new URL(t,e).href:((n=v.Ba)||(n=document.implementation.createHTMLDocument("temp"),v.Ba=n,n.ma=n.createElement("base"),n.head.appendChild(n.ma),n.la=n.createElement("a")),n.ma.href=e,n.la.href=t,n.la.href||t)}},_={async:!0,load:function(t,e,n){if(t)if(t.match(/^data:/)){var o=(t=t.split(","))[1];o=-1r.status?e(o,t):n(o)},r.send()}else n("error: href must be specified")}},g=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);s.prototype.loadImports=function(t){var e=this;c(t=l(t,"link[rel=import]"),function(t){return e.s(t)})},s.prototype.s=function(t){var e=this,n=t.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(t.__import=o,this.h(t))}else this.b++,this.a[n]="pending",_.load(n,function(t,o){t=e.Sa(t,o||n),e.a[n]=t,e.b--,e.loadImports(t),e.L()},function(){e.a[n]=null,e.b--,e.L()})},s.prototype.Sa=function(t,e){if(!t)return document.createDocumentFragment();g&&(t=t.replace(y,function(t,e,n){return-1===t.indexOf("type=")?e+" type=import-disable "+n:t}));var n=document.createElement("template");if(n.innerHTML=t,n.content)(function t(e){c(l(e,"template"),function(e){c(l(e.content,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]'),function(t){var e=document.createElement("script");c(t.attributes,function(t){return e.setAttribute(t.name,t.value)}),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}),t(e.content)})})(t=n.content);else for(t=document.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);(n=t.querySelector("base"))&&(e=v.Y(n.getAttribute("href"),e),n.removeAttribute("href"));var o=0;return c(n=l(t,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"]'),function(t){i(t),v.La(t,e),t.setAttribute("import-dependency",""),"script"===t.localName&&!t.src&&t.textContent&&(t.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(t.textContent+"\n//# sourceURL="+e+(o?"-"+o:"")+".js\n")),t.textContent="",o++)}),t},s.prototype.L=function(){var t=this;if(!this.b){this.c.disconnect(),this.flatten(document);var e=!1,n=!1,o=function(){n&&e&&(t.loadImports(document),t.b||(t.c.observe(document.head,{childList:!0,subtree:!0}),t.Pa()))};this.Ua(function(){n=!0,o()}),this.Ta(function(){e=!0,o()})}},s.prototype.flatten=function(t){var e=this;c(t=l(t,"link[rel=import]"),function(t){var n=e.a[t.href];(t.__import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e.a[t.href]=t,t.readyState="loading",t.__import=t,e.flatten(n),t.appendChild(n))})},s.prototype.Ta=function(t){var e=l(document,"script[import-dependency]"),n=e.length;!function o(r){if(r]/g;function Wt(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}}function Vt(t){for(var e={},n=0;n";break t;case Node.TEXT_NODE:s=s.data,s=l&&Ut[l.localName]?s:s.replace(qt,Wt);break t;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break t;default:throw window.console.error(s),Error("not implemented")}}o+=s}return o}var $t={},Kt=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Xt=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function Yt(t){var e=[];for(Kt.currentNode=t,t=Kt.firstChild();t;)e.push(t),t=Kt.nextSibling();return e}$t.parentNode=function(t){return Kt.currentNode=t,Kt.parentNode()},$t.firstChild=function(t){return Kt.currentNode=t,Kt.firstChild()},$t.lastChild=function(t){return Kt.currentNode=t,Kt.lastChild()},$t.previousSibling=function(t){return Kt.currentNode=t,Kt.previousSibling()},$t.nextSibling=function(t){return Kt.currentNode=t,Kt.nextSibling()},$t.childNodes=Yt,$t.parentElement=function(t){return Xt.currentNode=t,Xt.parentNode()},$t.firstElementChild=function(t){return Xt.currentNode=t,Xt.firstChild()},$t.lastElementChild=function(t){return Xt.currentNode=t,Xt.lastChild()},$t.previousElementSibling=function(t){return Xt.currentNode=t,Xt.previousSibling()},$t.nextElementSibling=function(t){return Xt.currentNode=t,Xt.nextSibling()},$t.children=function(t){var e=[];for(Xt.currentNode=t,t=Xt.firstChild();t;)e.push(t),t=Xt.nextSibling();return e},$t.innerHTML=function(t){return Gt(t,function(t){return Yt(t)})},$t.textContent=function(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}};var zt=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),Jt=document.implementation.createHTMLDocument("inert"),Zt=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),Qt={parentElement:{get:function(){var t=this.__shady&&this.__shady.parentNode;return t&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:$t.parentElement(this)},configurable:!0},parentNode:{get:function(){var t=this.__shady&&this.__shady.parentNode;return void 0!==t?t:$t.parentNode(this)},configurable:!0},nextSibling:{get:function(){var t=this.__shady&&this.__shady.nextSibling;return void 0!==t?t:$t.nextSibling(this)},configurable:!0},previousSibling:{get:function(){var t=this.__shady&&this.__shady.previousSibling;return void 0!==t?t:$t.previousSibling(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var t=this.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return $t.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var t=this.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return $t.previousElementSibling(this)},configurable:!0}},te={childNodes:{get:function(){if(at(this)){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var t=this.firstChild;t;t=t.nextSibling)this.__shady.childNodes.push(t)}var e=this.__shady.childNodes}else e=$t.childNodes(this);return e.item=function(t){return e[t]},e},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var t=this.__shady&&this.__shady.firstChild;return void 0!==t?t:$t.firstChild(this)},configurable:!0},lastChild:{get:function(){var t=this.__shady&&this.__shady.lastChild;return void 0!==t?t:$t.lastChild(this)},configurable:!0},textContent:{get:function(){if(at(this)){for(var t,e=[],n=0,o=this.childNodes;t=o[n];n++)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")}return $t.textContent(this)},set:function(t){switch(void 0!==t&&null!==t||(t=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(0t.__shady.assignedNodes.length&&(t.__shady.ia=!0)}t.__shady.ia&&(t.__shady.ia=!1,Be(this,t))}for(e=this.o,t=[],n=0;nt.indexOf(o))||t.push(o);for(e=0;e "+e}))}return{value:t=t.replace(ur,function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'}),Ka:e,stop:i}}(i,r,e,n),o=o||t.stop,r=t.Ka,i=t.value),r+i}),r&&(t=zo(t)),t},Uo.prototype.c=function(t){return t.match(ar)?this.b(t,tr):Jo(t.trim(),tr)},r.Object.defineProperties(Uo.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Qo=/:(nth[-\w]+)\(([^)]+)\)/,tr=":not(.style-scope)",er=",",nr=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,or=/[[.:#*]/,rr=":host",ir=":root",ar="::slotted",sr=new RegExp("^("+ar+")"),lr=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,cr=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ur=/(.*):dir\((?:(ltr|rtl))\)/,dr=".",hr=":",fr="class",pr="should_not_match",mr=new Uo;function yr(t,e,n,o){this.w=t||null,this.b=e||null,this.ja=n||[],this.G=null,this.P=o||"",this.a=this.u=this.B=null}function vr(t){return t?t.__styleInfo:null}function _r(t,e){return t.__styleInfo=e}yr.prototype.c=function(){return this.w},yr.prototype._getStyleRules=yr.prototype.c;var gr,br=window.Element.prototype;gr=br.matches||br.matchesSelector||br.mozMatchesSelector||br.msMatchesSelector||br.oMatchesSelector||br.webkitMatchesSelector;var wr=navigator.userAgent.match("Trident");function Er(){}function Nr(t){if(!t.i){var e={},n={};Cr(t,n)&&(e.v=n,t.rules=null),e.cssText=t.parsedCssText.replace(jo,"").replace(xo,""),t.i=e}}function Cr(t,e){var n=t.i;if(!n){n=t.parsedCssText;for(var o;t=xo.exec(n);)"inherit"===(o=(t[2]||t[3]).trim())&&"unset"===o||(e[t[1].trim()]=o),o=!0;return o}if(n.v)return Object.assign(e,n.v),!0}function Sr(t,e,n){return e&&(e=0<=e.indexOf(";")?Tr(t,e,n):function t(e,n){var o=e.indexOf("var(");if(-1===o)return n(e,"","","");t:{for(var r=0,i=o+3,a=e.length;i *"===i||"html"===i,s=0===i.indexOf(":host")&&!a;"shady"===n&&(s=!(a=i===r+" > *."+r||-1!==i.indexOf("html"))&&0===i.indexOf(r)),"shadow"===n&&(a=":host > *"===i||"html"===i,s=s&&!a),(a||s)&&(n=r,s&&(So&&!e.m&&(e.m=Yo(mr,e,mr.b,t?dr+t:"",r)),n=e.m||r),o({Xa:n,Qa:s,hb:a}))}}(t,e,r,function(r){gr.call(t.b||t,r.Xa)&&(r.Qa?Cr(e,n):Cr(e,o))})},null,!0),{Wa:o,Oa:n}}function xr(t,e,n,o){var r=Bo(e),i=Xo(r.is,r.P),a=new RegExp("(?:^|[^.#[:])"+(e.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])"),s=function(t,e){t=t.b;var n={};if(!So&&t)for(var o=0,r=t[o];o=c._useCount&&c.parentNode&&c.parentNode.removeChild(c)),So?i.a?(i.a.textContent=r,o=i.a):r&&(o=Io(r,s,t.shadowRoot,i.b)):o?o.parentNode||(wr&&-11)for(var n=1;n"+this.innerHTML+""},set:function(t){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(m.body.innerHTML=t,t=this.ownerDocument.createDocumentFragment();m.body.firstChild;)c.call(t,m.body.firstChild);u.call(this.parentNode,t,this)},configurable:!0})};w(t.prototype),E(t.prototype),t.M=function(n){for(var o,r=0,i=(n=e(n,"template")).length;r]/g,S=function(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}},_=(g=function(t){for(var e={},n=0;n";break t;case Node.TEXT_NODE:l=l.data,l=s&&T[s.localName]?l:l.replace(C,S);break t;case Node.COMMENT_NODE:l="\x3c!--"+l.data+"--\x3e";break t;default:throw window.console.error(l),Error("not implemented")}}o+=l}return o}}if(n||h){t.ha=function(t,e){var n=i.call(t,!1);return this.H&&this.H(n),e&&(c.call(n.content,i.call(t.content,!0)),D(n.content,t.content)),n};var D=function(n,o){if(o.querySelectorAll&&0!==(o=e(o,"template")).length)for(var r,i,a=0,l=(n=e(n,"template")).length;a]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,g={Pa:function(t,e){if(t.href&&t.setAttribute("href",g.aa(t.getAttribute("href"),e)),t.src&&t.setAttribute("src",g.aa(t.getAttribute("src"),e)),"style"===t.localName){var n=g.ya(t.textContent,e,h);t.textContent=g.ya(n,e,m)}},ya:function(t,e,n){return t.replace(n,function(t,n,o,r){return t=o.replace(/["']/g,""),e&&(t=g.aa(t,e)),n+"'"+t+"'"+r})},aa:function(t,e){if(void 0===g.ga){g.ga=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",g.ga="http://a/c%20d"===n.href}catch(t){}}return g.ga?new URL(t,e).href:((n=g.Fa)||(n=document.implementation.createHTMLDocument("temp"),g.Fa=n,n.pa=n.createElement("base"),n.head.appendChild(n.pa),n.oa=n.createElement("a")),n.pa.href=e,n.oa.href=t,n.oa.href||t)}},y={async:!0,load:function(t,e,n){if(t)if(t.match(/^data:/)){var o=(t=t.split(","))[1];o=-1r.status?e(o,t):n(o)},r.send()}else n("error: href must be specified")}},b=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);l.prototype.loadImports=function(t){var e=this;c(t=s(t,"link[rel=import]"),function(t){return e.s(t)})},l.prototype.s=function(t){var e=this,n=t.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(t.__import=o,this.i(t))}else this.b++,this.a[n]="pending",y.load(n,function(t,o){t=e.Wa(t,o||n),e.a[n]=t,e.b--,e.loadImports(t),e.N()},function(){e.a[n]=null,e.b--,e.N()})},l.prototype.Wa=function(t,e){if(!t)return document.createDocumentFragment();b&&(t=t.replace(v,function(t,e,n){return-1===t.indexOf("type=")?e+" type=import-disable "+n:t}));var n=document.createElement("template");if(n.innerHTML=t,n.content)(function t(e){c(s(e,"template"),function(e){c(s(e.content,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]'),function(t){var e=document.createElement("script");c(t.attributes,function(t){return e.setAttribute(t.name,t.value)}),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}),t(e.content)})})(t=n.content);else for(t=document.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);(n=t.querySelector("base"))&&(e=g.aa(n.getAttribute("href"),e),n.removeAttribute("href"));var o=0;return c(n=s(t,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"]'),function(t){i(t),g.Pa(t,e),t.setAttribute("import-dependency",""),"script"===t.localName&&!t.src&&t.textContent&&(t.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(t.textContent+"\n//# sourceURL="+e+(o?"-"+o:"")+".js\n")),t.textContent="",o++)}),t},l.prototype.N=function(){var t=this;if(!this.b){this.c.disconnect(),this.flatten(document);var e=!1,n=!1,o=function(){n&&e&&(t.loadImports(document),t.b||(t.c.observe(document.head,{childList:!0,subtree:!0}),t.Ta()))};this.Ya(function(){n=!0,o()}),this.Xa(function(){e=!0,o()})}},l.prototype.flatten=function(t){var e=this;c(t=s(t,"link[rel=import]"),function(t){var n=e.a[t.href];(t.__import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e.a[t.href]=t,t.readyState="loading",t.__import=t,e.flatten(n),t.appendChild(n))})},l.prototype.Xa=function(t){var e=s(document,"script[import-dependency]"),n=e.length;!function o(r){if(r]/g;function Zt(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}}function Qt(t){for(var e={},n=0;n";break t;case Node.TEXT_NODE:l=l.data,l=s&&ee[s.localName]?l:l.replace(zt,Zt);break t;case Node.COMMENT_NODE:l="\x3c!--"+l.data+"--\x3e";break t;default:throw window.console.error(l),Error("not implemented")}}o+=l}return o}var oe={},re=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),ie=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function ae(t){var e=[];for(re.currentNode=t,t=re.firstChild();t;)e.push(t),t=re.nextSibling();return e}oe.parentNode=function(t){return re.currentNode=t,re.parentNode()},oe.firstChild=function(t){return re.currentNode=t,re.firstChild()},oe.lastChild=function(t){return re.currentNode=t,re.lastChild()},oe.previousSibling=function(t){return re.currentNode=t,re.previousSibling()},oe.nextSibling=function(t){return re.currentNode=t,re.nextSibling()},oe.childNodes=ae,oe.parentElement=function(t){return ie.currentNode=t,ie.parentNode()},oe.firstElementChild=function(t){return ie.currentNode=t,ie.firstChild()},oe.lastElementChild=function(t){return ie.currentNode=t,ie.lastChild()},oe.previousElementSibling=function(t){return ie.currentNode=t,ie.previousSibling()},oe.nextElementSibling=function(t){return ie.currentNode=t,ie.nextSibling()},oe.children=function(t){var e=[];for(ie.currentNode=t,t=ie.firstChild();t;)e.push(t),t=ie.nextSibling();return e},oe.innerHTML=function(t){return ne(t,function(t){return ae(t)})},oe.textContent=function(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}};var le={},se=lt.w,ce=[Node.prototype,Element.prototype,HTMLElement.prototype];function ue(t){var e;t:{for(e=0;eo.assignedNodes.length&&(o.Y=!0)}o.Y&&(o.Y=!1,yn(this,t))}for(e=this.g,t=[],o=0;ot.indexOf(n))||t.push(n);for(e=0;e "+e}))}return{value:t=t.replace(Ir,function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'}),Oa:e,stop:i}}(i,r,e,n),o=o||t.stop,r=t.Oa,i=t.value),r+i}),r&&(t=_r(t)),t},br.prototype.c=function(t){return t.match(Rr)?this.b(t,xr):Tr(t.trim(),xr)},r.Object.defineProperties(br.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Dr=/:(nth[-\w]+)\(([^)]+)\)/,xr=":not(.style-scope)",Mr=",",Ar=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Lr=/[[.:#*]/,jr=":host",kr=":root",Rr="::slotted",Pr=new RegExp("^("+Rr+")"),Fr=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Hr=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ir=/(.*):dir\((?:(ltr|rtl))\)/,Ur=".",qr=":",Wr="class",Br="should_not_match",Vr=new br;function Gr(t,e,n,o){this.B=t||null,this.b=e||null,this.na=n||[],this.K=null,this.R=o||"",this.a=this.u=this.F=null}function $r(t){return t?t.__styleInfo:null}function Kr(t,e){return t.__styleInfo=e}function Xr(t){var e=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return e&&e.call(this,t)}Gr.prototype.c=function(){return this.B},Gr.prototype._getStyleRules=Gr.prototype.c;var Yr=navigator.userAgent.match("Trident");function Jr(){}function zr(t){if(!t.m){var e={},n={};Zr(t,n)&&(e.A=n,t.rules=null),e.cssText=t.parsedCssText.replace(sr,"").replace(or,""),t.m=e}}function Zr(t,e){var n=t.m;if(!n){n=t.parsedCssText;for(var o;t=or.exec(n);)"inherit"===(o=(t[2]||t[3]).trim())&&"unset"===o||(e[t[1].trim()]=o),o=!0;return o}if(n.A)return Object.assign(e,n.A),!0}function Qr(t,e,n){return e&&(e=0<=e.indexOf(";")?ti(t,e,n):function t(e,n){var o=e.indexOf("var(");if(-1===o)return n(e,"","","");t:{for(var r=0,i=o+3,a=e.length;i *"===i||"html"===i,l=0===i.indexOf(":host")&&!a;"shady"===n&&(l=!(a=i===r+" > *."+r||-1!==i.indexOf("html"))&&0===i.indexOf(r)),"shadow"===n&&(a=":host > *"===i||"html"===i,l=l&&!a),(a||l)&&(n=r,l&&(e.o||(e.o=Sr(Vr,e,Vr.b,t?Ur+t:"",r)),n=e.o||r),o({ab:n,Ua:l,tb:a}))}}(t,e,r,function(r){Xr.call(t.b||t,r.ab)&&(r.Ua?Zr(e,n):Zr(e,o))})},null,!0),{$a:o,Sa:n}}function ni(t,e,n,o){var r=yr(e),i=Cr(r.is,r.R),a=new RegExp("(?:^|[^.#[:])"+(e.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])"),l=function(t,e){t=t.b;var n={};if(!tr&&t)for(var o=0,r=t[o];o=c._useCount&&c.parentNode&&c.parentNode.removeChild(c)),tr?i.a?(i.a.textContent=r,o=i.a):r&&(o=hr(r,l,t.shadowRoot,i.b)):o?o.parentNode||(Yr&&-1