system.min.js 19.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/*!
 * SystemJS 6.14.2
 */
!function(){function e(e,t){return(t||"")+" (SystemJS Error#"+e+" https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+e+")"}function t(e,t){if(-1!==e.indexOf("\\")&&(e=e.replace(j,"/")),"/"===e[0]&&"/"===e[1])return t.slice(0,t.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){var n,r=t.slice(0,t.indexOf(":")+1);if(n="/"===t[r.length+1]?"file:"!==r?(n=t.slice(r.length+2)).slice(n.indexOf("/")+1):t.slice(8):t.slice(r.length+("/"===t[r.length])),"/"===e[0])return t.slice(0,t.length-n.length-1)+e;for(var i=n.slice(0,n.lastIndexOf("/")+1)+e,o=[],s=-1,u=0;u<i.length;u++)-1!==s?"/"===i[u]&&(o.push(i.slice(s,u+1)),s=-1):"."===i[u]?"."!==i[u+1]||"/"!==i[u+2]&&u+2!==i.length?"/"===i[u+1]||u+1===i.length?u+=1:s=u:(o.pop(),u+=2):s=u;return-1!==s&&o.push(i.slice(s)),t.slice(0,t.length-n.length)+o.join("")}}function n(e,n){return t(e,n)||(-1!==e.indexOf(":")?e:t("./"+e,n))}function r(e,n,r,i,o){for(var s in e){var a=t(s,r)||s,f=e[s];if("string"==typeof f){var l=c(i,t(f,r)||f,o);l?n[a]=l:u("W1",s,f,"bare specifier did not resolve")}}}function i(e,t,i){var o;for(o in e.imports&&r(e.imports,i.imports,t,i,null),e.scopes||{}){var s=n(o,t);r(e.scopes[o],i.scopes[s]||(i.scopes[s]={}),t,i,s)}for(o in e.depcache||{})i.depcache[n(o,t)]=e.depcache[o];for(o in e.integrity||{})i.integrity[n(o,t)]=e.integrity[o]}function o(e,t){if(t[e])return e;var n=e.length;do{var r=e.slice(0,n+1);if(r in t)return r}while(-1!==(n=e.lastIndexOf("/",n-1)))}function s(e,t){var n=o(e,t);if(n){var r=t[n];if(null===r)return;if(!(e.length>n.length&&"/"!==r[r.length-1]))return r+e.slice(n.length);u("W2",n,r,"should have a trailing '/'")}}function u(t,n,r,i){console.warn(e(t,"Package target "+i+", resolving target '"+r+"' for "+n))}function c(e,t,n){for(var r=e.scopes,i=n&&o(n,r);i;){var u=s(t,r[i]);if(u)return u;i=o(i.slice(0,i.lastIndexOf("/")),r)}return s(t,e.imports)||-1!==t.indexOf(":")&&t}function a(){this[M]={}}function f(e){return e.id}function l(e,t,n,r){if(e.onload(n,t.id,t.d&&t.d.map(f),!!r),n)throw n}function d(t,n,r,i){var o=t[M][n];if(o)return o;var s=[],u=Object.create(null);P&&Object.defineProperty(u,P,{value:"Module"});var c=Promise.resolve().then((function(){return t.instantiate(n,r,i)})).then((function(r){if(!r)throw Error(e(2,"Module "+n+" did not instantiate"));var i=r[1]((function(e,t){o.h=!0;var n=!1;if("string"==typeof e)e in u&&u[e]===t||(u[e]=t,n=!0);else{for(var r in e)t=e[r],r in u&&u[r]===t||(u[r]=t,n=!0);e&&e.__esModule&&(u.__esModule=e.__esModule)}if(n)for(var i=0;i<s.length;i++){var c=s[i];c&&c(u)}return t}),2===r[1].length?{import:function(e,r){return t.import(e,n,r)},meta:t.createContext(n)}:void 0);return o.e=i.execute||function(){},[r[0],i.setters||[],r[2]||[]]}),(function(e){throw o.e=null,o.er=e,l(t,o,e,!0),e})),a=c.then((function(e){return Promise.all(e[0].map((function(r,i){var o=e[1][i],s=e[2][i];return Promise.resolve(t.resolve(r,n)).then((function(e){var r=d(t,e,n,s);return Promise.resolve(r.I).then((function(){return o&&(r.i.push(o),!r.h&&r.I||o(r.n)),r}))}))}))).then((function(e){o.d=e}))}));return o=t[M][n]={id:n,i:s,n:u,m:i,I:c,L:a,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0,p:void 0}}function h(e,t,n,r){if(!r[t.id])return r[t.id]=!0,Promise.resolve(t.L).then((function(){return t.p&&null!==t.p.e||(t.p=n),Promise.all(t.d.map((function(t){return h(e,t,n,r)})))})).catch((function(n){if(t.er)throw n;throw t.e=null,l(e,t,n,!1),n}))}function p(e,t){return t.C=h(e,t,t,{}).then((function(){return v(e,t,{})})).then((function(){return t.n}))}function v(e,t,n){function r(){try{var n=o.call(C);if(n)return n=n.then((function(){t.C=t.n,t.E=null,l(e,t,null,!0)}),(function(n){throw t.er=n,t.E=null,l(e,t,n,!0),n})),t.E=n;t.C=t.n,t.L=t.I=void 0}catch(r){throw t.er=r,r}finally{l(e,t,t.er,!0)}}if(!n[t.id]){if(n[t.id]=!0,!t.e){if(t.er)throw t.er;return t.E?t.E:void 0}var i,o=t.e;return t.e=null,t.d.forEach((function(r){try{var o=v(e,r,n);o&&(i=i||[]).push(o)}catch(s){throw t.er=s,l(e,t,s,!1),s}})),i?Promise.all(i).then(r):r()}}function m(){[].forEach.call(document.querySelectorAll("script"),(function(t){if(!t.sp)if("systemjs-module"===t.type){if(t.sp=!0,!t.src)return;System.import("import:"===t.src.slice(0,7)?t.src.slice(7):n(t.src,g)).catch((function(e){if(e.message.indexOf("https://github.com/systemjs/systemjs/blob/main/docs/errors.md#3")>-1){var n=document.createEvent("Event");n.initEvent("error",!1,!1),t.dispatchEvent(n)}return Promise.reject(e)}))}else if("systemjs-importmap"===t.type){t.sp=!0;var r=t.src?(System.fetch||fetch)(t.src,{integrity:t.integrity,passThrough:!0}).then((function(e){if(!e.ok)throw Error("Invalid status code: "+e.status);return e.text()})).catch((function(n){return n.message=e("W4","Error fetching systemjs-import map "+t.src)+"\n"+n.message,console.warn(n),"function"==typeof t.onerror&&t.onerror(),"{}"})):t.innerHTML;W=W.then((function(){return r})).then((function(n){!function(t,n,r){var o={};try{o=JSON.parse(n)}catch(s){console.warn(Error(e("W5","systemjs-importmap contains invalid JSON")+"\n\n"+n+"\n"))}i(o,r,t)}(T,n,t.src||g)}))}}))}var g,y="undefined"!=typeof Symbol,b="undefined"!=typeof self,w="undefined"!=typeof document,S=b?self:global;if(w){var E=document.querySelector("base[href]");E&&(g=E.href)}if(!g&&"undefined"!=typeof location){var O=(g=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==O&&(g=g.slice(0,O+1))}var x,j=/\\/g,P=y&&Symbol.toStringTag,M=y?Symbol():"@",L=a.prototype;L.import=function(e,t,n){var r=this;return t&&"object"==typeof t&&(n=t,t=void 0),Promise.resolve(r.prepareImport()).then((function(){return r.resolve(e,t,n)})).then((function(e){var t=d(r,e,void 0,n);return t.C||p(r,t)}))},L.createContext=function(e){var t=this;return{url:e,resolve:function(n,r){return Promise.resolve(t.resolve(n,r||e))}}},L.onload=function(){},L.register=function(e,t,n){x=[e,t,n]},L.getRegister=function(){var e=x;return x=void 0,e};var C=Object.freeze(Object.create(null));S.System=new a;var I,R,W=Promise.resolve(),T={imports:{},scopes:{},depcache:{},integrity:{}},A=w;if(L.prepareImport=function(e){return(A||e)&&(m(),A=!1),W},w&&(m(),window.addEventListener("DOMContentLoaded",m)),L.addImportMap=function(e,t){i(e,t||g,T)},w){window.addEventListener("error",(function(e){_=e.filename,J=e.error}));var N=location.origin}L.createScript=function(e){var t=document.createElement("script");t.async=!0,e.indexOf(N+"/")&&(t.crossOrigin="anonymous");var n=T.integrity[e];return n&&(t.integrity=n),t.src=e,t};var _,J,k={},U=L.register;L.register=function(e,t){if(w&&"loading"===document.readyState&&"string"!=typeof e){var n=document.querySelectorAll("script[src]"),r=n[n.length-1];if(r){I=e;var i=this;R=setTimeout((function(){k[r.src]=[e,t],i.import(r.src)}))}}else I=void 0;return U.call(this,e,t)},L.instantiate=function(t,n){var r=k[t];if(r)return delete k[t],r;var i=this;return Promise.resolve(L.createScript(t)).then((function(r){return new Promise((function(o,s){r.addEventListener("error",(function(){s(Error(e(3,"Error loading "+t+(n?" from "+n:""))))})),r.addEventListener("load",(function(){if(document.head.removeChild(r),_===t)s(J);else{var e=i.getRegister(t);e&&e[0]===I&&clearTimeout(R),o(e)}})),document.head.appendChild(r)}))}))},L.shouldFetch=function(){return!1},"undefined"!=typeof fetch&&(L.fetch=fetch);var $=L.instantiate,B=/^(text|application)\/(x-)?javascript(;|$)/;L.instantiate=function(t,n,r){var i=this;return this.shouldFetch(t,n,r)?this.fetch(t,{credentials:"same-origin",integrity:T.integrity[t],meta:r}).then((function(r){if(!r.ok)throw Error(e(7,r.status+" "+r.statusText+", loading "+t+(n?" from "+n:"")));var o=r.headers.get("content-type");if(!o||!B.test(o))throw Error(e(4,'Unknown Content-Type "'+o+'", loading '+t+(n?" from "+n:"")));return r.text().then((function(e){return e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL="+t),(0,eval)(e),i.getRegister(t)}))})):$.apply(this,arguments)},L.resolve=function(n,r){return c(T,t(n,r=r||g)||n,r)||function(t,n){throw Error(e(8,"Unable to resolve bare specifier '"+t+(n?"' from "+n:"'")))}(n,r)};var F=L.instantiate;L.instantiate=function(e,t,n){var r=T.depcache[e];if(r)for(var i=0;i<r.length;i++)d(this,this.resolve(r[i],e),e);return F.call(this,e,t,n)},b&&"function"==typeof importScripts&&(L.instantiate=function(e){var t=this;return Promise.resolve().then((function(){return importScripts(e),t.getRegister(e)}))}),function(e){function t(t){return!e.hasOwnProperty(t)||!isNaN(t)&&t<e.length||a&&e[t]&&"undefined"!=typeof window&&e[t].parent===window}var n,r,i,o=e.System.constructor.prototype,s=o.import;o.import=function(o,u,c){return function(){for(var o in n=r=void 0,e)t(o)||(n?r||(r=o):n=o,i=o)}(),s.call(this,o,u,c)};var u=[[],function(){return{}}],c=o.getRegister;o.getRegister=function(){var o=c.call(this);if(o)return o;var s,a=function(o){var s,u,c=0;for(var a in e)if(!t(a)){if(0===c&&a!==n||1===c&&a!==r)return a;s?(i=a,u=o&&u||a):s=a===i,c++}return u}(this.firstGlobalProp);if(!a)return u;try{s=e[a]}catch(f){return u}return[[],function(e){return{execute:function(){e(s),e({default:s,__useDefault:!0})}}}]};var a="undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Trident")}("undefined"!=typeof self?self:global),function(e){var t=e.System.constructor.prototype,r=/^[^#?]+\.(css|html|json|wasm)([?#].*)?$/,i=t.shouldFetch.bind(t);t.shouldFetch=function(e){return i(e)||r.test(e)};var o=/^application\/json(;|$)/,s=/^text\/css(;|$)/,u=/^application\/wasm(;|$)/,c=t.fetch;t.fetch=function(t,r){return c(t,r).then((function(i){if(r.passThrough)return i;if(!i.ok)return i;var c=i.headers.get("content-type");return o.test(c)?i.json().then((function(e){return new Response(new Blob(['System.register([],function(e){return{execute:function(){e("default",'+JSON.stringify(e)+")}}})"],{type:"application/javascript"}))})):s.test(c)?i.text().then((function(e){return e=e.replace(/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g,(function(e,r,i,o){return"url("+r+n(i||o,t)+r+")"})),new Response(new Blob(["System.register([],function(e){return{execute:function(){var s=new CSSStyleSheet();s.replaceSync("+JSON.stringify(e)+');e("default",s)}}})'],{type:"application/javascript"}))})):u.test(c)?(WebAssembly.compileStreaming?WebAssembly.compileStreaming(i):i.arrayBuffer().then(WebAssembly.compile)).then((function(n){e.System.wasmModules||(e.System.wasmModules=Object.create(null)),e.System.wasmModules[t]=n;var r=[],i=[];return WebAssembly.Module.imports&&WebAssembly.Module.imports(n).forEach((function(e){var t=JSON.stringify(e.module);-1===r.indexOf(t)&&(r.push(t),i.push("function(m){i["+t+"]=m}"))})),new Response(new Blob(["System.register(["+r.join(",")+"],function(e){var i={};return{setters:["+i.join(",")+"],execute:function(){return WebAssembly.instantiate(System.wasmModules["+JSON.stringify(t)+"],i).then(function(m){e(m.exports)})}}})"],{type:"application/javascript"}))})):i}))}}("undefined"!=typeof self?self:global);var q="undefined"!=typeof Symbol&&Symbol.toStringTag;L.get=function(e){var t=this[M][e];if(t&&null===t.e&&!t.E)return t.er?null:t.n},L.set=function(t,n){try{new URL(t)}catch(s){console.warn(Error(e("W3",'"'+t+'" is not a valid URL to set in the module registry')))}var r;q&&"Module"===n[q]?r=n:(r=Object.assign(Object.create(null),n),q&&Object.defineProperty(r,q,{value:"Module"}));var i=Promise.resolve(r),o=this[M][t]||(this[M][t]={id:t,i:[],h:!1,d:[],e:null,er:void 0,E:void 0});return!o.e&&!o.E&&(Object.assign(o,{n:r,I:void 0,L:void 0,C:i}),r)},L.has=function(e){return!!this[M][e]},L.delete=function(e){var t=this[M],n=t[e];if(!n||n.p&&null!==n.p.e||n.E)return!1;var r=n.i;return n.d&&n.d.forEach((function(e){var t=e.i.indexOf(n);-1!==t&&e.i.splice(t,1)})),delete t[e],function(){var n=t[e];if(!n||!r||null!==n.e||n.E)return!1;r.forEach((function(e){n.i.push(e),e(n.n)})),r=null}};var D="undefined"!=typeof Symbol&&Symbol.iterator;L.entries=function(){var e,t,n=this,r=Object.keys(n[M]),i=0,o={next:function(){for(;void 0!==(t=r[i++])&&void 0===(e=n.get(t)););return{done:void 0===t,value:void 0!==t&&[t,e]}}};return o[D]=function(){return this},o}}();
/*!
 * SystemJS named-register 6.14.2
 */
!function(t){function e(t){t.registerRegistry=Object.create(null),t.namedRegisterAliases=Object.create(null)}var r=t.System;e(r);var i,s,n=r.constructor.prototype,l=r.constructor,a=function(){l.call(this),e(this)};a.prototype=n,r.constructor=a;var o=n.register;n.register=function(t,e,r,n){if("string"!=typeof t)return o.apply(this,arguments);var l=[e,r,n];return this.registerRegistry[t]=l,i||(i=l,s=t),Promise.resolve().then((function(){i=null,s=null})),o.call(this,e,r,n)};var c=n.resolve;n.resolve=function(t,e){try{return c.call(this,t,e)}catch(r){if(t in this.registerRegistry)return this.namedRegisterAliases[t]||t;throw r}};var u=n.instantiate;n.instantiate=function(t,e,r){var i=this.registerRegistry[t];return i?(this.registerRegistry[t]=null,i):u.call(this,t,e,r)};var g=n.getRegister;n.getRegister=function(t){var e=g.call(this,t);s&&t&&(this.namedRegisterAliases[s]=t);var r=i||e;return i=null,s=null,r}}("undefined"!=typeof self?self:global);
/*!
 * systemjs-plugins 0.0.1 (https://gitee.com/Yuzuriha_Inori/systemjs-plugins.git)
 */
12
(function(g){typeof define=="function"&&define.amd?define(g):g()})(function(){"use strict";function g(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function d(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function P(o,e){for(var r="",i=0,t=-1,l=0,n,s=0;s<=o.length;++s){if(s<o.length)n=o.charCodeAt(s);else{if(n===47)break;n=47}if(n===47){if(!(t===s-1||l===1))if(t!==s-1&&l===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var a=r.lastIndexOf("/");if(a!==r.length-1){a===-1?(r="",i=0):(r=r.slice(0,a),i=r.length-1-r.lastIndexOf("/")),t=s,l=0;continue}}else if(r.length===2||r.length===1){r="",i=0,t=s,l=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+o.slice(t+1,s):r=o.slice(t+1,s),i=s-t-1;t=s,l=0}else n===46&&l!==-1?++l:l=-1}return r}function _(o,e){var r=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+i:r+o+i:i}var v={resolve:function(){for(var e="",r=!1,i,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(i===void 0&&(i=process.cwd()),l=i),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=P(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=P(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return d(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];d(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":v.normalize(e)},relative:function(e,r){if(d(e),d(r),e===r||(e=v.resolve(e),r=v.resolve(r),e===r))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var t=e.length,l=t-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(var s=r.length,a=s-n,c=l<a?l:a,u=-1,f=0;f<=c;++f){if(f===c){if(a>c){if(r.charCodeAt(n+f)===47)return r.slice(n+f+1);if(f===0)return r.slice(n+f)}else l>c&&(e.charCodeAt(i+f)===47?u=f:f===0&&(u=0));break}var S=e.charCodeAt(i+f),z=r.charCodeAt(n+f);if(S!==z)break;S===47&&(u=f)}var h="";for(f=i+u+1;f<=t;++f)(f===t||e.charCodeAt(f)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+r.slice(n+u):(n+=u,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){return e},dirname:function(e){if(d(e),e.length===0)return".";for(var r=e.charCodeAt(0),i=r===47,t=-1,l=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!l){t=n;break}}else l=!1;return t===-1?i?"/":".":i&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');d(e);var i=0,t=-1,l=!0,n;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,a=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(c===47){if(!l){i=n+1;break}}else a===-1&&(l=!1,a=n+1),s>=0&&(c===r.charCodeAt(s)?--s===-1&&(t=n):(s=-1,t=a))}return i===t?t=a:t===-1&&(t=e.length),e.slice(i,t)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!l){i=n+1;break}}else t===-1&&(l=!1,t=n+1);return t===-1?"":e.slice(i,t)}},extname:function(e){d(e);for(var r=-1,i=0,t=-1,l=!0,n=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(a===47){if(!l){i=s+1;break}continue}t===-1&&(l=!1,t=s+1),a===46?r===-1?r=s:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||t===-1||n===0||n===1&&r===t-1&&r===i+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return _("/",e)},parse:function(e){d(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var i=e.charCodeAt(0),t=i===47,l;t?(r.root="/",l=1):l=0;for(var n=-1,s=0,a=-1,c=!0,u=e.length-1,f=0;u>=l;--u){if(i=e.charCodeAt(u),i===47){if(!c){s=u+1;break}continue}a===-1&&(c=!1,a=u+1),i===46?n===-1?n=u:f!==1&&(f=1):n!==-1&&(f=-1)}return n===-1||a===-1||f===0||f===1&&n===a-1&&n===s+1?a!==-1&&(s===0&&t?r.base=r.name=e.slice(1,a):r.base=r.name=e.slice(s,a)):(s===0&&t?(r.name=e.slice(1,n),r.base=e.slice(1,a)):(r.name=e.slice(s,n),r.base=e.slice(s,a)),r.ext=e.slice(n,a)),s>0?r.dir=e.slice(0,s-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};v.posix=v;var L=v,y=g(L),E=Object.defineProperty,M=(o,e,r)=>e in o?E(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,b=(o,e,r)=>(M(o,typeof e!="symbol"?e+"":e,r),r),D=(o,e,r)=>new Promise((i,t)=>{var l=a=>{try{s(r.next(a))}catch(c){t(c)}},n=a=>{try{s(r.throw(a))}catch(c){t(c)}},s=a=>a.done?i(a.value):Promise.resolve(a.value).then(l,n);s((r=r.apply(o,e)).next())});class w{constructor(e){b(this,"baseDir"),b(this,"styleElementMap",new Map),b(this,"url"),b(this,"regex",/^https?:\/\//),this.url=this.regex.test(e)?new URL(e):new URL(e,y.join(location.origin,location.pathname));const r=y.dirname(this.url.pathname);this.baseDir=r}dir(e){return this.regex.test(e)?e:y.resolve(this.baseDir,e)}loadStyle(e){return D(this,null,function*(){const r=e.map(i=>{const t=this.dir(i);return this.styleElementMap.has(t)?!1:(this.styleElementMap.set(t,null),new Promise((l,n)=>{const s=document.createElement("link");s.setAttribute("type","text/css"),s.setAttribute("rel","stylesheet"),s.setAttribute("href",t),s.onload=l,s.onerror=n,document.head.appendChild(s)}))});yield Promise.all(r)})}}var R=Object.defineProperty,k=(o,e,r)=>e in o?R(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,A=(o,e,r)=>(k(o,typeof e!="symbol"?e+"":e,r),r),C=(o,e,r)=>new Promise((i,t)=>{var l=a=>{try{s(r.next(a))}catch(c){t(c)}},n=a=>{try{s(r.throw(a))}catch(c){t(c)}},s=a=>a.done?i(a.value):Promise.resolve(a.value).then(l,n);s((r=r.apply(o,e)).next())});const m=class p{static addImportStyleMap(e,r){const i=new w(e);this.map.set(i,r)}static init(){const e=this,r=System.constructor.prototype.resolve;System.constructor.prototype.resolve=function(t,l){return Promise.resolve(r.call(this,t,l)).then(n=>C(this,null,function*(){return n&&(yield e.loadStyle(t)),n}))};const i=System.constructor.prototype.addImportMap;System.constructor.prototype.addImportMap=function(t){i.call(this,t),t.styles&&p.addImportStyleMap(y.join(location.origin,location.pathname),t.styles)}}static loadStyle(e){return C(this,null,function*(){this.isLoaded===!1&&(this.isLoaded=!0,this.configLoadPromise=this.resolveConfig()),this.configLoadPromise&&(yield this.configLoadPromise);const r=[];this.map.forEach((i,t)=>{const l=i[e];l&&(Array.isArray(l)?r.push(t.loadStyle(l)):r.push(t.loadStyle([l])))}),yield Promise.all(r)})}static resolveConfig(){return C(this,null,function*(){const e=document.querySelectorAll("script"),i=Array.from(e).map(t=>C(this,null,function*(){if(t.type==="systemjs-importmap"){const l=yield window.fetch(t.src);if(l.ok){const n=yield l.json();if(n.styles){const s=new w(t.src);this.map.set(s,n.styles)}}}}));yield Promise.all(i),this.configLoadPromise&&(this.configLoadPromise=null)})}};A(m,"map",new Map),A(m,"styleElementMap",new Map),A(m,"configLoadPromise",null),A(m,"isLoaded",!1),m.init()});